@dynamic-labs/ethereum 2.0.0-alpha.3 → 2.0.0-alpha.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/CHANGELOG.md +407 -0
  2. package/package.json +11 -12
  3. package/src/EthWalletConnector.cjs +13 -21
  4. package/src/EthWalletConnector.d.ts +16 -14
  5. package/src/EthWalletConnector.js +15 -23
  6. package/src/coinbase/client/client.cjs +14 -14
  7. package/src/coinbase/client/client.d.ts +5 -4
  8. package/src/coinbase/client/client.js +13 -13
  9. package/src/coinbase/client/types.d.ts +6 -3
  10. package/src/coinbase/coinbase.cjs +31 -15
  11. package/src/coinbase/coinbase.d.ts +20 -18
  12. package/src/coinbase/coinbase.js +32 -16
  13. package/src/ethProviderHelper.cjs +11 -6
  14. package/src/ethProviderHelper.d.ts +6 -4
  15. package/src/ethProviderHelper.js +11 -6
  16. package/src/index.cjs +9 -13
  17. package/src/index.d.ts +2 -0
  18. package/src/index.js +8 -13
  19. package/src/injected/ExodusEvm.cjs +1 -0
  20. package/src/injected/ExodusEvm.d.ts +1 -0
  21. package/src/injected/ExodusEvm.js +1 -0
  22. package/src/injected/InjectedWalletBase.cjs +28 -19
  23. package/src/injected/InjectedWalletBase.d.ts +2 -2
  24. package/src/injected/InjectedWalletBase.js +28 -19
  25. package/src/injected/PhantomEvm.cjs +4 -3
  26. package/src/injected/PhantomEvm.d.ts +2 -1
  27. package/src/injected/PhantomEvm.js +4 -3
  28. package/src/injected/Zerion.cjs +38 -0
  29. package/src/injected/Zerion.d.ts +10 -0
  30. package/src/injected/Zerion.js +34 -0
  31. package/src/injected/fetchInjectedWalletConnectors.cjs +25 -0
  32. package/src/injected/fetchInjectedWalletConnectors.d.ts +0 -1
  33. package/src/injected/fetchInjectedWalletConnectors.js +25 -0
  34. package/src/utils/index.d.ts +1 -0
  35. package/src/utils/isEthWalletConnector/index.d.ts +1 -0
  36. package/src/utils/isEthWalletConnector/isEthWalletConnector.cjs +7 -0
  37. package/src/utils/isEthWalletConnector/isEthWalletConnector.d.ts +3 -0
  38. package/src/utils/isEthWalletConnector/isEthWalletConnector.js +3 -0
  39. package/src/walletConnect/fetchWalletConnectWallets.cjs +14 -33
  40. package/src/walletConnect/fetchWalletConnectWallets.d.ts +2 -5
  41. package/src/walletConnect/fetchWalletConnectWallets.js +14 -33
  42. package/src/walletConnect/index.d.ts +0 -1
  43. package/src/walletConnect/walletConnect.cjs +452 -78
  44. package/src/walletConnect/walletConnect.d.ts +313 -31
  45. package/src/walletConnect/walletConnect.js +453 -80
  46. package/src/walletConnect/client/client.cjs +0 -201
  47. package/src/walletConnect/client/client.d.ts +0 -17
  48. package/src/walletConnect/client/client.js +0 -187
  49. package/src/walletConnect/client/index.d.ts +0 -1
  50. package/src/walletConnect/client/types.d.ts +0 -4
  51. package/src/walletConnect/walletConnectV2.cjs +0 -475
  52. package/src/walletConnect/walletConnectV2.d.ts +0 -333
  53. package/src/walletConnect/walletConnectV2.js +0 -466
@@ -1,52 +1,334 @@
1
- import Client from '@walletconnect/client';
2
- import { Hex, WalletClient } from 'viem';
3
- import { Chain, FetchPublicAddressOpts, DeepLinkVariant } from '@dynamic-labs/wallet-connector-core';
1
+ import type { SessionTypes } from '@walletconnect/types';
2
+ import { Chain, GetAddressOpts, DeepLinkVariant, IWalletConnectConnector } from '@dynamic-labs/wallet-connector-core';
4
3
  import { EvmNetwork } from '@dynamic-labs/types';
5
4
  import { EthWalletConnector, EthWalletConnectorOpts } from '../EthWalletConnector';
6
- type ConnectorSession = {
7
- connected: boolean;
8
- accounts: string[];
9
- chainId: number;
10
- bridge: string;
11
- key: string;
12
- clientId: string;
13
- clientMeta: any;
14
- peerId: string;
15
- peerMeta: any;
16
- handshakeId: number;
17
- handshakeTopic: string;
18
- };
19
5
  export type WalletConnectOpts = EthWalletConnectorOpts & {
20
- walletConnectV1Bridge: string;
6
+ projectId?: string;
21
7
  walletName: string;
22
8
  deepLinkPreference?: DeepLinkVariant;
9
+ walletConnectPreferredChains?: `eip155:${number}`[];
23
10
  };
24
- export declare class WalletConnect extends EthWalletConnector {
11
+ export declare class WalletConnect extends EthWalletConnector implements IWalletConnectConnector {
25
12
  supportedChains: Chain[];
26
13
  connectedChain: Chain;
27
14
  name: string;
28
- bridge: string;
15
+ session: SessionTypes.Struct | undefined;
16
+ isInitialized: boolean;
17
+ initializePromise: Promise<void> | undefined;
29
18
  canConnectViaQrCode: boolean;
30
19
  isWalletConnect: boolean;
31
- switchNetworkOnlyFromWallet: boolean;
20
+ private static provider;
21
+ private projectId?;
32
22
  private deepLinkPreference;
33
- client?: Client;
34
- clientOptions?: any;
35
- constructor({ walletConnectV1Bridge, walletName, ...props }: WalletConnectOpts);
36
- getClient(): Client;
23
+ private preferredChains;
24
+ private _currentChainId;
25
+ private _hasSwitchedNetwork;
26
+ constructor(opts: WalletConnectOpts);
27
+ private getMappedChains;
28
+ private getMappedChainsByPreferredOrder;
29
+ private initConnection;
30
+ private createProvider;
31
+ private getWalletClientFromInitializedProvider;
32
+ private createInitProviderPromise;
33
+ private initProvider;
34
+ private refreshSession;
35
+ init(): Promise<void>;
36
+ get sessionTopicKey(): string;
37
+ get activeAccountKey(): string;
38
+ get swicthedNetworkKey(): string;
39
+ get currentChainKey(): string;
40
+ private set currentChainId(value);
41
+ private get currentChainId();
42
+ private set hasSwitchedNetwork(value);
43
+ private get hasSwitchedNetwork();
37
44
  supportsNetworkSwitching(): boolean;
45
+ private sessionEventHandler;
46
+ private sessionDeleteHandler;
38
47
  setupEventListeners(): void;
39
48
  teardownEventListeners(): void;
40
- getWalletClient(): WalletClient | undefined;
41
- fetchPublicAddress(opts?: FetchPublicAddressOpts): Promise<string | undefined>;
49
+ getWalletClient(chainId?: string): {
50
+ account: import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined;
51
+ batch?: {
52
+ multicall?: boolean | {
53
+ batchSize?: number | undefined;
54
+ wait?: number | undefined;
55
+ } | undefined;
56
+ } | undefined;
57
+ cacheTime: number;
58
+ chain: import("viem").Chain;
59
+ key: string;
60
+ name: string;
61
+ pollingInterval: number;
62
+ request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
63
+ transport: import("viem").TransportConfig<"custom", import("viem").EIP1193RequestFn>;
64
+ type: string;
65
+ uid: string;
66
+ addChain: (args: import("viem").AddChainParameters) => Promise<void>;
67
+ deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<abi, import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, chainOverride>) => Promise<`0x${string}`>;
68
+ getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
69
+ getChainId: () => Promise<number>;
70
+ getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
71
+ prepareTransactionRequest: <TParameterType extends import("viem").PrepareTransactionRequestParameterType, TChainOverride extends import("viem").Chain | undefined = undefined, TAccountOverride extends `0x${string}` | import("viem").Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, TChainOverride, TAccountOverride, TParameterType>) => Promise<import("viem").PrepareTransactionRequestReturnType<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, TChainOverride, TAccountOverride, TParameterType>>;
72
+ requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
73
+ requestPermissions: (args: {
74
+ [x: string]: Record<string, any>;
75
+ eth_accounts: Record<string, any>;
76
+ }) => Promise<import("viem").RequestPermissionsReturnType>;
77
+ sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<`0x${string}`>;
78
+ sendTransaction: <TChainOverride_1 extends import("viem").Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, TChainOverride_1>) => Promise<`0x${string}`>;
79
+ signMessage: (args: import("viem").SignMessageParameters<import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>) => Promise<`0x${string}`>;
80
+ signTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").SignTransactionParameters<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, TChainOverride_2>) => Promise<`0x${string}`>;
81
+ signTypedData: <const TTypedData extends {
82
+ [x: string]: readonly import("viem").TypedDataParameter[];
83
+ [x: `string[${string}]`]: undefined;
84
+ [x: `function[${string}]`]: undefined;
85
+ [x: `address[${string}]`]: undefined;
86
+ [x: `bool[${string}]`]: undefined;
87
+ [x: `bytes[${string}]`]: undefined;
88
+ [x: `bytes16[${string}]`]: undefined;
89
+ [x: `bytes1[${string}]`]: undefined;
90
+ [x: `bytes2[${string}]`]: undefined;
91
+ [x: `bytes3[${string}]`]: undefined;
92
+ [x: `bytes4[${string}]`]: undefined;
93
+ [x: `bytes5[${string}]`]: undefined;
94
+ [x: `bytes6[${string}]`]: undefined;
95
+ [x: `bytes7[${string}]`]: undefined;
96
+ [x: `bytes8[${string}]`]: undefined;
97
+ [x: `bytes9[${string}]`]: undefined;
98
+ [x: `bytes10[${string}]`]: undefined;
99
+ [x: `bytes11[${string}]`]: undefined;
100
+ [x: `bytes12[${string}]`]: undefined;
101
+ [x: `bytes13[${string}]`]: undefined;
102
+ [x: `bytes14[${string}]`]: undefined;
103
+ [x: `bytes15[${string}]`]: undefined;
104
+ [x: `bytes17[${string}]`]: undefined;
105
+ [x: `bytes18[${string}]`]: undefined;
106
+ [x: `bytes19[${string}]`]: undefined;
107
+ [x: `bytes20[${string}]`]: undefined;
108
+ [x: `bytes21[${string}]`]: undefined;
109
+ [x: `bytes22[${string}]`]: undefined;
110
+ [x: `bytes23[${string}]`]: undefined;
111
+ [x: `bytes24[${string}]`]: undefined;
112
+ [x: `bytes25[${string}]`]: undefined;
113
+ [x: `bytes26[${string}]`]: undefined;
114
+ [x: `bytes27[${string}]`]: undefined;
115
+ [x: `bytes28[${string}]`]: undefined;
116
+ [x: `bytes29[${string}]`]: undefined;
117
+ [x: `bytes30[${string}]`]: undefined;
118
+ [x: `bytes31[${string}]`]: undefined;
119
+ [x: `bytes32[${string}]`]: undefined;
120
+ [x: `int[${string}]`]: undefined;
121
+ [x: `int16[${string}]`]: undefined;
122
+ [x: `int8[${string}]`]: undefined;
123
+ [x: `int24[${string}]`]: undefined;
124
+ [x: `int32[${string}]`]: undefined;
125
+ [x: `int40[${string}]`]: undefined;
126
+ [x: `int48[${string}]`]: undefined;
127
+ [x: `int56[${string}]`]: undefined;
128
+ [x: `int64[${string}]`]: undefined;
129
+ [x: `int72[${string}]`]: undefined;
130
+ [x: `int80[${string}]`]: undefined;
131
+ [x: `int88[${string}]`]: undefined;
132
+ [x: `int96[${string}]`]: undefined;
133
+ [x: `int104[${string}]`]: undefined;
134
+ [x: `int112[${string}]`]: undefined;
135
+ [x: `int120[${string}]`]: undefined;
136
+ [x: `int128[${string}]`]: undefined;
137
+ [x: `int136[${string}]`]: undefined;
138
+ [x: `int144[${string}]`]: undefined;
139
+ [x: `int152[${string}]`]: undefined;
140
+ [x: `int160[${string}]`]: undefined;
141
+ [x: `int168[${string}]`]: undefined;
142
+ [x: `int176[${string}]`]: undefined;
143
+ [x: `int184[${string}]`]: undefined;
144
+ [x: `int192[${string}]`]: undefined;
145
+ [x: `int200[${string}]`]: undefined;
146
+ [x: `int208[${string}]`]: undefined;
147
+ [x: `int216[${string}]`]: undefined;
148
+ [x: `int224[${string}]`]: undefined;
149
+ [x: `int232[${string}]`]: undefined;
150
+ [x: `int240[${string}]`]: undefined;
151
+ [x: `int248[${string}]`]: undefined;
152
+ [x: `int256[${string}]`]: undefined;
153
+ [x: `uint[${string}]`]: undefined;
154
+ [x: `uint16[${string}]`]: undefined;
155
+ [x: `uint8[${string}]`]: undefined;
156
+ [x: `uint24[${string}]`]: undefined;
157
+ [x: `uint32[${string}]`]: undefined;
158
+ [x: `uint40[${string}]`]: undefined;
159
+ [x: `uint48[${string}]`]: undefined;
160
+ [x: `uint56[${string}]`]: undefined;
161
+ [x: `uint64[${string}]`]: undefined;
162
+ [x: `uint72[${string}]`]: undefined;
163
+ [x: `uint80[${string}]`]: undefined;
164
+ [x: `uint88[${string}]`]: undefined;
165
+ [x: `uint96[${string}]`]: undefined;
166
+ [x: `uint104[${string}]`]: undefined;
167
+ [x: `uint112[${string}]`]: undefined;
168
+ [x: `uint120[${string}]`]: undefined;
169
+ [x: `uint128[${string}]`]: undefined;
170
+ [x: `uint136[${string}]`]: undefined;
171
+ [x: `uint144[${string}]`]: undefined;
172
+ [x: `uint152[${string}]`]: undefined;
173
+ [x: `uint160[${string}]`]: undefined;
174
+ [x: `uint168[${string}]`]: undefined;
175
+ [x: `uint176[${string}]`]: undefined;
176
+ [x: `uint184[${string}]`]: undefined;
177
+ [x: `uint192[${string}]`]: undefined;
178
+ [x: `uint200[${string}]`]: undefined;
179
+ [x: `uint208[${string}]`]: undefined;
180
+ [x: `uint216[${string}]`]: undefined;
181
+ [x: `uint224[${string}]`]: undefined;
182
+ [x: `uint232[${string}]`]: undefined;
183
+ [x: `uint240[${string}]`]: undefined;
184
+ [x: `uint248[${string}]`]: undefined;
185
+ [x: `uint256[${string}]`]: undefined;
186
+ string?: undefined;
187
+ address?: undefined;
188
+ bool?: undefined;
189
+ bytes?: undefined;
190
+ bytes16?: undefined;
191
+ bytes1?: undefined;
192
+ bytes2?: undefined;
193
+ bytes3?: undefined;
194
+ bytes4?: undefined;
195
+ bytes5?: undefined;
196
+ bytes6?: undefined;
197
+ bytes7?: undefined;
198
+ bytes8?: undefined;
199
+ bytes9?: undefined;
200
+ bytes10?: undefined;
201
+ bytes11?: undefined;
202
+ bytes12?: undefined;
203
+ bytes13?: undefined;
204
+ bytes14?: undefined;
205
+ bytes15?: undefined;
206
+ bytes17?: undefined;
207
+ bytes18?: undefined;
208
+ bytes19?: undefined;
209
+ bytes20?: undefined;
210
+ bytes21?: undefined;
211
+ bytes22?: undefined;
212
+ bytes23?: undefined;
213
+ bytes24?: undefined;
214
+ bytes25?: undefined;
215
+ bytes26?: undefined;
216
+ bytes27?: undefined;
217
+ bytes28?: undefined;
218
+ bytes29?: undefined;
219
+ bytes30?: undefined;
220
+ bytes31?: undefined;
221
+ bytes32?: undefined;
222
+ int16?: undefined;
223
+ int8?: undefined;
224
+ int24?: undefined;
225
+ int32?: undefined;
226
+ int40?: undefined;
227
+ int48?: undefined;
228
+ int56?: undefined;
229
+ int64?: undefined;
230
+ int72?: undefined;
231
+ int80?: undefined;
232
+ int88?: undefined;
233
+ int96?: undefined;
234
+ int104?: undefined;
235
+ int112?: undefined;
236
+ int120?: undefined;
237
+ int128?: undefined;
238
+ int136?: undefined;
239
+ int144?: undefined;
240
+ int152?: undefined;
241
+ int160?: undefined;
242
+ int168?: undefined;
243
+ int176?: undefined;
244
+ int184?: undefined;
245
+ int192?: undefined;
246
+ int200?: undefined;
247
+ int208?: undefined;
248
+ int216?: undefined;
249
+ int224?: undefined;
250
+ int232?: undefined;
251
+ int240?: undefined;
252
+ int248?: undefined;
253
+ int256?: undefined;
254
+ uint16?: undefined;
255
+ uint8?: undefined;
256
+ uint24?: undefined;
257
+ uint32?: undefined;
258
+ uint40?: undefined;
259
+ uint48?: undefined;
260
+ uint56?: undefined;
261
+ uint64?: undefined;
262
+ uint72?: undefined;
263
+ uint80?: undefined;
264
+ uint88?: undefined;
265
+ uint96?: undefined;
266
+ uint104?: undefined;
267
+ uint112?: undefined;
268
+ uint120?: undefined;
269
+ uint128?: undefined;
270
+ uint136?: undefined;
271
+ uint144?: undefined;
272
+ uint152?: undefined;
273
+ uint160?: undefined;
274
+ uint168?: undefined;
275
+ uint176?: undefined;
276
+ uint184?: undefined;
277
+ uint192?: undefined;
278
+ uint200?: undefined;
279
+ uint208?: undefined;
280
+ uint216?: undefined;
281
+ uint224?: undefined;
282
+ uint232?: undefined;
283
+ uint240?: undefined;
284
+ uint248?: undefined;
285
+ uint256?: undefined;
286
+ } | {
287
+ [key: string]: unknown;
288
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>) => Promise<`0x${string}`>;
289
+ switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
290
+ watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
291
+ writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "nonpayable" | "payable">, args extends import("viem").ContractFunctionArgs<abi_1, "pure" | "view", functionName>, TChainOverride_3 extends import("viem").Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, TChainOverride_3>) => Promise<`0x${string}`>;
292
+ extend: <const client extends {
293
+ [x: string]: unknown;
294
+ account?: undefined;
295
+ batch?: undefined;
296
+ cacheTime?: undefined;
297
+ chain?: undefined;
298
+ key?: undefined;
299
+ name?: undefined;
300
+ pollingInterval?: undefined;
301
+ request?: undefined;
302
+ transport?: undefined;
303
+ type?: undefined;
304
+ uid?: undefined;
305
+ } & Partial<Pick<import("viem").PublicActions<import("viem").CustomTransport, import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>, "getChainId" | "prepareTransactionRequest" | "sendRawTransaction" | "call" | "createContractEventFilter" | "createEventFilter" | "estimateContractGas" | "estimateGas" | "getBlock" | "getBlockNumber" | "getContractEvents" | "getEnsText" | "getFilterChanges" | "getGasPrice" | "getLogs" | "getTransaction" | "getTransactionCount" | "getTransactionReceipt" | "readContract" | "simulateContract" | "uninstallFilter" | "watchBlockNumber" | "watchContractEvent"> & Pick<import("viem").WalletActions<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").CustomTransport, import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, import("viem").WalletRpcSchema, import("viem").WalletActions<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>>) => client) => import("viem").Client<import("viem").CustomTransport, import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<import("viem").Chain, import("viem").JsonRpcAccount<`0x${string}`> | import("viem").LocalAccount<string, `0x${string}`> | undefined>>;
306
+ } | undefined;
307
+ getAddress(opts?: GetAddressOpts): Promise<string | undefined>;
308
+ /**
309
+ * WalletConnect V2 will fail to send the sign message request if the chainId
310
+ * is not the same as the one in the session. This method will wait for the
311
+ * chainId to change and then retry the sign message request.
312
+ *
313
+ * Otherwise it will just return the result of the sign message request.
314
+ *
315
+ * @param signMessageFn - Function to sign message with provider
316
+ * @param messageToSign - Message to sign
317
+ * @returns
318
+ */
319
+ protected waitForSignMessage(signMessageFn: (messageToSign: string) => Promise<string | undefined>, messageToSign: string): Promise<string | undefined>;
42
320
  getDeepLink(): string | undefined;
43
321
  signMessage(messageToSign: string): Promise<string | undefined>;
322
+ private clearActiveAccount;
323
+ private clearSession;
324
+ private setWCActiveAccount;
325
+ private setSession;
44
326
  endSession(): Promise<void>;
45
- providerSwitchNetwork({ network, provider, }: {
327
+ getNetwork(): Promise<number | undefined>;
328
+ providerSwitchNetwork({ network, }: {
46
329
  network: EvmNetwork;
47
- provider: WalletClient;
48
330
  }): Promise<void>;
49
- getConnectedAccounts(): Promise<Hex[]>;
50
- getSession(): Promise<ConnectorSession | undefined>;
331
+ getConnectedAccounts(): Promise<string[]>;
332
+ private isMetaMask;
333
+ getSupportedNetworks(): Promise<string[]>;
51
334
  }
52
- export {};