@@ -43,6 +43,10 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
43
43
44
44
icon : string ;
45
45
46
+ /**
47
+ * Determines whether the wallet is connected.
48
+ * @deprecated This property is deprecated and will be removed in a future release.
49
+ */
46
50
isConnected : boolean ;
47
51
48
52
snap : MetaMaskSnap ;
@@ -146,6 +150,10 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
146
150
return accountResponse . address ;
147
151
}
148
152
153
+ /**
154
+ * Starknet.js Account interface.
155
+ * @deprecated This property is deprecated and will be removed in a future release.
156
+ */
149
157
get account ( ) {
150
158
if ( ! this . #account) {
151
159
if ( ! this . selectedAddress ) {
@@ -159,6 +167,10 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
159
167
return this . #account;
160
168
}
161
169
170
+ /**
171
+ * Starknet.js Provider interface.
172
+ * @deprecated This property is deprecated and will be removed in a future release.
173
+ */
162
174
get provider ( ) : ProviderInterface {
163
175
if ( ! this . #provider) {
164
176
if ( ! this . #network) {
@@ -172,10 +184,18 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
172
184
return this . #provider;
173
185
}
174
186
187
+ /**
188
+ * The selected account's address of the wallet.
189
+ * @deprecated This property is deprecated and will be removed in a future release. Use RPC `wallet_requestAccounts` instead.
190
+ */
175
191
get selectedAddress ( ) : string {
176
192
return this . #selectedAddress;
177
193
}
178
194
195
+ /**
196
+ * The selected chain id of the wallet.
197
+ * @deprecated This property is deprecated and will be removed in a future release. Use RPC `wallet_requestChainId` instead.
198
+ */
179
199
get chainId ( ) : string {
180
200
return this . #chainId;
181
201
}
@@ -231,12 +251,17 @@ export class MetaMaskSnapWallet implements StarknetWindowObject {
231
251
* accommodate potential support for multiple addresses in the future.
232
252
*
233
253
* @returns An array of address.
254
+ * @deprecated This property is deprecated and will be removed in a future release.
234
255
*/
235
256
async enable ( ) {
236
257
await this . init ( ) ;
237
258
return [ this . selectedAddress ] ;
238
259
}
239
260
261
+ /**
262
+ * Checks if the wallet is preauthorized.
263
+ * @deprecated This property is deprecated and will be removed in a future release.
264
+ */
240
265
async isPreauthorized ( ) {
241
266
return true ;
242
267
}
0 commit comments