@dynamic-labs/wagmi-connector 2.0.0-alpha.3 → 2.0.0-alpha.30
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.
- package/CHANGELOG.md +394 -0
- package/package.json +11 -9
- package/src/lib/Connector.d.ts +315 -67
- package/src/lib/Connector.js +71 -96
- package/src/lib/DynamicWagmiConnector.d.ts +3 -4
- package/src/lib/DynamicWagmiConnector.js +28 -51
- package/src/lib/SyncDynamicWagmi.d.ts +1 -1
- package/src/lib/SyncDynamicWagmi.js +4 -9
- package/src/lib/hooks/useConnectorId/index.d.ts +1 -0
- package/src/lib/hooks/useConnectorId/useConnectorId.d.ts +7 -0
- package/src/lib/hooks/useConnectorId/useConnectorId.js +23 -0
- package/src/lib/hooks/useFindEvmWallet/index.d.ts +1 -0
- package/src/lib/hooks/useFindEvmWallet/useFindEvmWallet.d.ts +2 -0
- package/src/lib/hooks/useFindEvmWallet/useFindEvmWallet.js +21 -0
- package/src/lib/useChainMismatchLogger.d.ts +3 -0
- package/src/lib/useChainMismatchLogger.js +44 -0
- package/src/lib/getConnector.d.ts +0 -3
- package/src/lib/getConnector.js +0 -9
- package/src/lib/getWagmiChainsFromDynamicChains.d.ts +0 -3
- package/src/lib/getWagmiChainsFromDynamicChains.js +0 -9
- package/src/lib/getWagmiProvidersFromDynamicChains.d.ts +0 -3
- package/src/lib/getWagmiProvidersFromDynamicChains.js +0 -37
- package/src/lib/mappers/chain.d.ts +0 -4
- package/src/lib/mappers/chain.js +0 -50
- package/src/lib/utils/findAndOrderEvmWallets/findAndOrderEvmWallets.d.ts +0 -2
- package/src/lib/utils/findAndOrderEvmWallets/findAndOrderEvmWallets.js +0 -13
- package/src/lib/utils/findAndOrderEvmWallets/index.d.ts +0 -1
- package/src/lib/utils/index.d.ts +0 -2
- package/src/lib/utils/resolveRpcUrlFromEvmNetworks/index.d.ts +0 -1
- package/src/lib/utils/resolveRpcUrlFromEvmNetworks/resolveRpcUrlFromEvmNetworks.d.ts +0 -2
- package/src/lib/utils/resolveRpcUrlFromEvmNetworks/resolveRpcUrlFromEvmNetworks.js +0 -9
package/src/lib/Connector.d.ts
CHANGED
|
@@ -1,41 +1,23 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { Account, Transport, WalletClient } from 'viem';
|
|
2
|
+
import { Account, Transport, Chain } from 'viem';
|
|
4
3
|
import { WalletConnector } from '@dynamic-labs/sdk-react-core';
|
|
5
|
-
export
|
|
4
|
+
export type ConnectorParameters = {
|
|
5
|
+
connectorId: string;
|
|
6
6
|
handleLogOut: () => Promise<void>;
|
|
7
7
|
walletConnector: WalletConnector;
|
|
8
|
-
id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
ready: boolean;
|
|
11
|
-
/** See this variable's reason in it's definition in DynamicContext */
|
|
12
8
|
preventWagmiSyncFromCallingLogout: MutableRefObject<boolean>;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
chain: number | string;
|
|
24
|
-
}): void;
|
|
25
|
-
_onDisconnect(): void;
|
|
26
|
-
setupEventListeners(): void;
|
|
27
|
-
connect(config?: {
|
|
28
|
-
chainId?: number;
|
|
29
|
-
}): Promise<Required<ConnectorData>>;
|
|
30
|
-
disconnect(): Promise<void>;
|
|
31
|
-
getAccount(): Promise<Address>;
|
|
32
|
-
getChainId(): Promise<number>;
|
|
33
|
-
getProvider(config?: {
|
|
34
|
-
chainId?: number;
|
|
35
|
-
} | undefined): Promise<WalletClient<Transport, Chain, Account>>;
|
|
36
|
-
getWalletClient(config?: {
|
|
9
|
+
};
|
|
10
|
+
export declare const getCreateConnectorFn: (parameters: ConnectorParameters) => import("@wagmi/core").CreateConnectorFn<unknown, {
|
|
11
|
+
connect: () => Promise<{
|
|
12
|
+
accounts: readonly `0x${string}`[];
|
|
13
|
+
chainId: number;
|
|
14
|
+
}>;
|
|
15
|
+
disconnect: () => Promise<void>;
|
|
16
|
+
getAccounts: () => Promise<`0x${string}`[]>;
|
|
17
|
+
getChainId: () => Promise<number>;
|
|
18
|
+
getClient: (args?: {
|
|
37
19
|
chainId?: number;
|
|
38
|
-
} | undefined)
|
|
20
|
+
} | undefined) => Promise<{
|
|
39
21
|
account: Account;
|
|
40
22
|
batch?: {
|
|
41
23
|
multicall?: boolean | {
|
|
@@ -53,21 +35,23 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
53
35
|
type: string;
|
|
54
36
|
uid: string;
|
|
55
37
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
56
|
-
deployContract: <const
|
|
38
|
+
deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<abi, Chain, Account, chainOverride>) => Promise<`0x${string}`>;
|
|
57
39
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
58
40
|
getChainId: () => Promise<number>;
|
|
59
41
|
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
60
|
-
prepareTransactionRequest: <
|
|
42
|
+
prepareTransactionRequest: <TParameterType extends import("viem").PrepareTransactionRequestParameterType, TChainOverride extends Chain | undefined = undefined, TAccountOverride extends `0x${string}` | Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<Chain, Account, TChainOverride, TAccountOverride, TParameterType>) => Promise<import("viem").PrepareTransactionRequestReturnType<Chain, Account, TChainOverride, TAccountOverride, TParameterType>>;
|
|
61
43
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
62
44
|
requestPermissions: (args: {
|
|
63
45
|
[x: string]: Record<string, any>;
|
|
64
46
|
eth_accounts: Record<string, any>;
|
|
65
47
|
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
66
|
-
sendRawTransaction: (args: import("
|
|
67
|
-
sendTransaction: <
|
|
48
|
+
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
49
|
+
sendTransaction: <TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<Chain, Account, TChainOverride_1>) => Promise<`0x${string}`>;
|
|
68
50
|
signMessage: (args: import("viem").SignMessageParameters<Account>) => Promise<`0x${string}`>;
|
|
69
|
-
signTransaction: <
|
|
51
|
+
signTransaction: <TChainOverride_2 extends Chain | undefined>(args: import("viem").SignTransactionParameters<Chain, Account, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
70
52
|
signTypedData: <const TTypedData extends {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
} | {
|
|
71
55
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
72
56
|
[x: `string[${string}]`]: undefined;
|
|
73
57
|
[x: `function[${string}]`]: undefined;
|
|
@@ -272,12 +256,10 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
272
256
|
uint240?: undefined;
|
|
273
257
|
uint248?: undefined;
|
|
274
258
|
uint256?: undefined;
|
|
275
|
-
} | {
|
|
276
|
-
[key: string]: unknown;
|
|
277
259
|
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, Account>) => Promise<`0x${string}`>;
|
|
278
260
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
279
261
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
280
|
-
writeContract: <const
|
|
262
|
+
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "payable" | "nonpayable">, args extends import("viem").ContractFunctionArgs<abi_1, "pure" | "view", functionName>, TChainOverride_3 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, Chain, Account, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
281
263
|
extend: <const client extends {
|
|
282
264
|
[x: string]: unknown;
|
|
283
265
|
account?: undefined;
|
|
@@ -291,7 +273,7 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
291
273
|
transport?: undefined;
|
|
292
274
|
type?: undefined;
|
|
293
275
|
uid?: undefined;
|
|
294
|
-
} & Partial<Pick<import("viem").PublicActions, "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, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, import("viem").WalletActions<Chain, Account>>) => client) => import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<Chain, Account>>;
|
|
276
|
+
} & Partial<Pick<import("viem").PublicActions<Transport, Chain, Account>, "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<Chain, Account>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, import("viem").WalletActions<Chain, Account>>) => client) => import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<Chain, Account>>;
|
|
295
277
|
} | {
|
|
296
278
|
account: {
|
|
297
279
|
address: `0x${string}`;
|
|
@@ -313,36 +295,41 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
313
295
|
type: string;
|
|
314
296
|
uid: string;
|
|
315
297
|
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
316
|
-
deployContract: <const
|
|
298
|
+
deployContract: <const abi_2 extends import("viem").Abi | readonly unknown[], chainOverride_1 extends Chain | undefined>(args: import("viem").DeployContractParameters<abi_2, Chain, {
|
|
317
299
|
address: `0x${string}`;
|
|
318
300
|
type: "json-rpc";
|
|
319
|
-
},
|
|
301
|
+
}, chainOverride_1>) => Promise<`0x${string}`>;
|
|
320
302
|
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
321
303
|
getChainId: () => Promise<number>;
|
|
322
304
|
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
323
|
-
prepareTransactionRequest: <
|
|
305
|
+
prepareTransactionRequest: <TParameterType_1 extends import("viem").PrepareTransactionRequestParameterType, TChainOverride_4 extends Chain | undefined = undefined, TAccountOverride_1 extends `0x${string}` | Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<Chain, {
|
|
324
306
|
address: `0x${string}`;
|
|
325
307
|
type: "json-rpc";
|
|
326
|
-
},
|
|
308
|
+
}, TChainOverride_4, TAccountOverride_1, TParameterType_1>) => Promise<import("viem").PrepareTransactionRequestReturnType<Chain, {
|
|
309
|
+
address: `0x${string}`;
|
|
310
|
+
type: "json-rpc";
|
|
311
|
+
}, TChainOverride_4, TAccountOverride_1, TParameterType_1>>;
|
|
327
312
|
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
328
313
|
requestPermissions: (args: {
|
|
329
314
|
[x: string]: Record<string, any>;
|
|
330
315
|
eth_accounts: Record<string, any>;
|
|
331
316
|
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
332
|
-
sendRawTransaction: (args: import("
|
|
333
|
-
sendTransaction: <
|
|
317
|
+
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
318
|
+
sendTransaction: <TChainOverride_5 extends Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<Chain, {
|
|
334
319
|
address: `0x${string}`;
|
|
335
320
|
type: "json-rpc";
|
|
336
|
-
},
|
|
321
|
+
}, TChainOverride_5>) => Promise<`0x${string}`>;
|
|
337
322
|
signMessage: (args: import("viem").SignMessageParameters<{
|
|
338
323
|
address: `0x${string}`;
|
|
339
324
|
type: "json-rpc";
|
|
340
325
|
}>) => Promise<`0x${string}`>;
|
|
341
|
-
signTransaction: <
|
|
326
|
+
signTransaction: <TChainOverride_6 extends Chain | undefined>(args: import("viem").SignTransactionParameters<Chain, {
|
|
342
327
|
address: `0x${string}`;
|
|
343
328
|
type: "json-rpc";
|
|
344
|
-
},
|
|
329
|
+
}, TChainOverride_6>) => Promise<`0x${string}`>;
|
|
345
330
|
signTypedData: <const TTypedData_1 extends {
|
|
331
|
+
[key: string]: unknown;
|
|
332
|
+
} | {
|
|
346
333
|
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
347
334
|
[x: `string[${string}]`]: undefined;
|
|
348
335
|
[x: `function[${string}]`]: undefined;
|
|
@@ -547,18 +534,16 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
547
534
|
uint240?: undefined;
|
|
548
535
|
uint248?: undefined;
|
|
549
536
|
uint256?: undefined;
|
|
550
|
-
} | {
|
|
551
|
-
[key: string]: unknown;
|
|
552
537
|
}, TPrimaryType_1 extends string>(args: import("viem").SignTypedDataParameters<TTypedData_1, TPrimaryType_1, {
|
|
553
538
|
address: `0x${string}`;
|
|
554
539
|
type: "json-rpc";
|
|
555
540
|
}>) => Promise<`0x${string}`>;
|
|
556
541
|
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
557
542
|
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
558
|
-
writeContract: <const
|
|
543
|
+
writeContract: <const abi_3 extends import("viem").Abi | readonly unknown[], functionName_1 extends import("viem").ContractFunctionName<abi_3, "payable" | "nonpayable">, args_1 extends import("viem").ContractFunctionArgs<abi_3, "pure" | "view", functionName_1>, TChainOverride_7 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_3, functionName_1, args_1, Chain, {
|
|
559
544
|
address: `0x${string}`;
|
|
560
545
|
type: "json-rpc";
|
|
561
|
-
},
|
|
546
|
+
}, TChainOverride_7>) => Promise<`0x${string}`>;
|
|
562
547
|
extend: <const client_1 extends {
|
|
563
548
|
[x: string]: unknown;
|
|
564
549
|
account?: undefined;
|
|
@@ -572,7 +557,13 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
572
557
|
transport?: undefined;
|
|
573
558
|
type?: undefined;
|
|
574
559
|
uid?: undefined;
|
|
575
|
-
} & Partial<Pick<import("viem").PublicActions
|
|
560
|
+
} & Partial<Pick<import("viem").PublicActions<import("viem").CustomTransport, Chain, {
|
|
561
|
+
address: `0x${string}`;
|
|
562
|
+
type: "json-rpc";
|
|
563
|
+
}>, "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<Chain, {
|
|
564
|
+
address: `0x${string}`;
|
|
565
|
+
type: "json-rpc";
|
|
566
|
+
}>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<import("viem").CustomTransport, Chain, {
|
|
576
567
|
address: `0x${string}`;
|
|
577
568
|
type: "json-rpc";
|
|
578
569
|
}, import("viem").WalletRpcSchema, import("viem").WalletActions<Chain, {
|
|
@@ -586,15 +577,272 @@ export declare class Connector extends BaseWagmiConnector<WalletClient<Transport
|
|
|
586
577
|
type: "json-rpc";
|
|
587
578
|
}>>;
|
|
588
579
|
}>;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
580
|
+
getProvider: () => Promise<{
|
|
581
|
+
account: Account;
|
|
582
|
+
batch?: {
|
|
583
|
+
multicall?: boolean | {
|
|
584
|
+
batchSize?: number | undefined;
|
|
585
|
+
wait?: number | undefined;
|
|
586
|
+
} | undefined;
|
|
587
|
+
} | undefined;
|
|
588
|
+
cacheTime: number;
|
|
589
|
+
chain: Chain;
|
|
590
|
+
key: string;
|
|
591
|
+
name: string;
|
|
592
|
+
pollingInterval: number;
|
|
593
|
+
request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
|
|
594
|
+
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
595
|
+
type: string;
|
|
596
|
+
uid: string;
|
|
597
|
+
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
598
|
+
deployContract: <const abi extends import("viem").Abi | readonly unknown[], chainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<abi, Chain, Account, chainOverride>) => Promise<`0x${string}`>;
|
|
599
|
+
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
600
|
+
getChainId: () => Promise<number>;
|
|
601
|
+
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
602
|
+
prepareTransactionRequest: <TParameterType extends import("viem").PrepareTransactionRequestParameterType, TChainOverride extends Chain | undefined = undefined, TAccountOverride extends `0x${string}` | Account | undefined = undefined>(args: import("viem").PrepareTransactionRequestParameters<Chain, Account, TChainOverride, TAccountOverride, TParameterType>) => Promise<import("viem").PrepareTransactionRequestReturnType<Chain, Account, TChainOverride, TAccountOverride, TParameterType>>;
|
|
603
|
+
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
604
|
+
requestPermissions: (args: {
|
|
605
|
+
[x: string]: Record<string, any>;
|
|
606
|
+
eth_accounts: Record<string, any>;
|
|
607
|
+
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
608
|
+
sendRawTransaction: (args: import("viem").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
609
|
+
sendTransaction: <TChainOverride_1 extends Chain | undefined = undefined>(args: import("viem").SendTransactionParameters<Chain, Account, TChainOverride_1>) => Promise<`0x${string}`>;
|
|
610
|
+
signMessage: (args: import("viem").SignMessageParameters<Account>) => Promise<`0x${string}`>;
|
|
611
|
+
signTransaction: <TChainOverride_2 extends Chain | undefined>(args: import("viem").SignTransactionParameters<Chain, Account, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
612
|
+
signTypedData: <const TTypedData extends {
|
|
613
|
+
[key: string]: unknown;
|
|
614
|
+
} | {
|
|
615
|
+
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
616
|
+
[x: `string[${string}]`]: undefined;
|
|
617
|
+
[x: `function[${string}]`]: undefined;
|
|
618
|
+
[x: `address[${string}]`]: undefined;
|
|
619
|
+
[x: `bool[${string}]`]: undefined;
|
|
620
|
+
[x: `bytes[${string}]`]: undefined;
|
|
621
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
622
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
623
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
624
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
625
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
626
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
627
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
628
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
629
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
630
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
631
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
632
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
633
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
634
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
635
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
636
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
637
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
638
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
639
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
640
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
641
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
642
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
643
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
644
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
645
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
646
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
647
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
648
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
649
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
650
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
651
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
652
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
653
|
+
[x: `int[${string}]`]: undefined;
|
|
654
|
+
[x: `int16[${string}]`]: undefined;
|
|
655
|
+
[x: `int8[${string}]`]: undefined;
|
|
656
|
+
[x: `int24[${string}]`]: undefined;
|
|
657
|
+
[x: `int32[${string}]`]: undefined;
|
|
658
|
+
[x: `int40[${string}]`]: undefined;
|
|
659
|
+
[x: `int48[${string}]`]: undefined;
|
|
660
|
+
[x: `int56[${string}]`]: undefined;
|
|
661
|
+
[x: `int64[${string}]`]: undefined;
|
|
662
|
+
[x: `int72[${string}]`]: undefined;
|
|
663
|
+
[x: `int80[${string}]`]: undefined;
|
|
664
|
+
[x: `int88[${string}]`]: undefined;
|
|
665
|
+
[x: `int96[${string}]`]: undefined;
|
|
666
|
+
[x: `int104[${string}]`]: undefined;
|
|
667
|
+
[x: `int112[${string}]`]: undefined;
|
|
668
|
+
[x: `int120[${string}]`]: undefined;
|
|
669
|
+
[x: `int128[${string}]`]: undefined;
|
|
670
|
+
[x: `int136[${string}]`]: undefined;
|
|
671
|
+
[x: `int144[${string}]`]: undefined;
|
|
672
|
+
[x: `int152[${string}]`]: undefined;
|
|
673
|
+
[x: `int160[${string}]`]: undefined;
|
|
674
|
+
[x: `int168[${string}]`]: undefined;
|
|
675
|
+
[x: `int176[${string}]`]: undefined;
|
|
676
|
+
[x: `int184[${string}]`]: undefined;
|
|
677
|
+
[x: `int192[${string}]`]: undefined;
|
|
678
|
+
[x: `int200[${string}]`]: undefined;
|
|
679
|
+
[x: `int208[${string}]`]: undefined;
|
|
680
|
+
[x: `int216[${string}]`]: undefined;
|
|
681
|
+
[x: `int224[${string}]`]: undefined;
|
|
682
|
+
[x: `int232[${string}]`]: undefined;
|
|
683
|
+
[x: `int240[${string}]`]: undefined;
|
|
684
|
+
[x: `int248[${string}]`]: undefined;
|
|
685
|
+
[x: `int256[${string}]`]: undefined;
|
|
686
|
+
[x: `uint[${string}]`]: undefined;
|
|
687
|
+
[x: `uint16[${string}]`]: undefined;
|
|
688
|
+
[x: `uint8[${string}]`]: undefined;
|
|
689
|
+
[x: `uint24[${string}]`]: undefined;
|
|
690
|
+
[x: `uint32[${string}]`]: undefined;
|
|
691
|
+
[x: `uint40[${string}]`]: undefined;
|
|
692
|
+
[x: `uint48[${string}]`]: undefined;
|
|
693
|
+
[x: `uint56[${string}]`]: undefined;
|
|
694
|
+
[x: `uint64[${string}]`]: undefined;
|
|
695
|
+
[x: `uint72[${string}]`]: undefined;
|
|
696
|
+
[x: `uint80[${string}]`]: undefined;
|
|
697
|
+
[x: `uint88[${string}]`]: undefined;
|
|
698
|
+
[x: `uint96[${string}]`]: undefined;
|
|
699
|
+
[x: `uint104[${string}]`]: undefined;
|
|
700
|
+
[x: `uint112[${string}]`]: undefined;
|
|
701
|
+
[x: `uint120[${string}]`]: undefined;
|
|
702
|
+
[x: `uint128[${string}]`]: undefined;
|
|
703
|
+
[x: `uint136[${string}]`]: undefined;
|
|
704
|
+
[x: `uint144[${string}]`]: undefined;
|
|
705
|
+
[x: `uint152[${string}]`]: undefined;
|
|
706
|
+
[x: `uint160[${string}]`]: undefined;
|
|
707
|
+
[x: `uint168[${string}]`]: undefined;
|
|
708
|
+
[x: `uint176[${string}]`]: undefined;
|
|
709
|
+
[x: `uint184[${string}]`]: undefined;
|
|
710
|
+
[x: `uint192[${string}]`]: undefined;
|
|
711
|
+
[x: `uint200[${string}]`]: undefined;
|
|
712
|
+
[x: `uint208[${string}]`]: undefined;
|
|
713
|
+
[x: `uint216[${string}]`]: undefined;
|
|
714
|
+
[x: `uint224[${string}]`]: undefined;
|
|
715
|
+
[x: `uint232[${string}]`]: undefined;
|
|
716
|
+
[x: `uint240[${string}]`]: undefined;
|
|
717
|
+
[x: `uint248[${string}]`]: undefined;
|
|
718
|
+
[x: `uint256[${string}]`]: undefined;
|
|
719
|
+
string?: undefined;
|
|
720
|
+
address?: undefined;
|
|
721
|
+
bool?: undefined;
|
|
722
|
+
bytes?: undefined;
|
|
723
|
+
bytes16?: undefined;
|
|
724
|
+
bytes1?: undefined;
|
|
725
|
+
bytes2?: undefined;
|
|
726
|
+
bytes3?: undefined;
|
|
727
|
+
bytes4?: undefined;
|
|
728
|
+
bytes5?: undefined;
|
|
729
|
+
bytes6?: undefined;
|
|
730
|
+
bytes7?: undefined;
|
|
731
|
+
bytes8?: undefined;
|
|
732
|
+
bytes9?: undefined;
|
|
733
|
+
bytes10?: undefined;
|
|
734
|
+
bytes11?: undefined;
|
|
735
|
+
bytes12?: undefined;
|
|
736
|
+
bytes13?: undefined;
|
|
737
|
+
bytes14?: undefined;
|
|
738
|
+
bytes15?: undefined;
|
|
739
|
+
bytes17?: undefined;
|
|
740
|
+
bytes18?: undefined;
|
|
741
|
+
bytes19?: undefined;
|
|
742
|
+
bytes20?: undefined;
|
|
743
|
+
bytes21?: undefined;
|
|
744
|
+
bytes22?: undefined;
|
|
745
|
+
bytes23?: undefined;
|
|
746
|
+
bytes24?: undefined;
|
|
747
|
+
bytes25?: undefined;
|
|
748
|
+
bytes26?: undefined;
|
|
749
|
+
bytes27?: undefined;
|
|
750
|
+
bytes28?: undefined;
|
|
751
|
+
bytes29?: undefined;
|
|
752
|
+
bytes30?: undefined;
|
|
753
|
+
bytes31?: undefined;
|
|
754
|
+
bytes32?: undefined;
|
|
755
|
+
int16?: undefined;
|
|
756
|
+
int8?: undefined;
|
|
757
|
+
int24?: undefined;
|
|
758
|
+
int32?: undefined;
|
|
759
|
+
int40?: undefined;
|
|
760
|
+
int48?: undefined;
|
|
761
|
+
int56?: undefined;
|
|
762
|
+
int64?: undefined;
|
|
763
|
+
int72?: undefined;
|
|
764
|
+
int80?: undefined;
|
|
765
|
+
int88?: undefined;
|
|
766
|
+
int96?: undefined;
|
|
767
|
+
int104?: undefined;
|
|
768
|
+
int112?: undefined;
|
|
769
|
+
int120?: undefined;
|
|
770
|
+
int128?: undefined;
|
|
771
|
+
int136?: undefined;
|
|
772
|
+
int144?: undefined;
|
|
773
|
+
int152?: undefined;
|
|
774
|
+
int160?: undefined;
|
|
775
|
+
int168?: undefined;
|
|
776
|
+
int176?: undefined;
|
|
777
|
+
int184?: undefined;
|
|
778
|
+
int192?: undefined;
|
|
779
|
+
int200?: undefined;
|
|
780
|
+
int208?: undefined;
|
|
781
|
+
int216?: undefined;
|
|
782
|
+
int224?: undefined;
|
|
783
|
+
int232?: undefined;
|
|
784
|
+
int240?: undefined;
|
|
785
|
+
int248?: undefined;
|
|
786
|
+
int256?: undefined;
|
|
787
|
+
uint16?: undefined;
|
|
788
|
+
uint8?: undefined;
|
|
789
|
+
uint24?: undefined;
|
|
790
|
+
uint32?: undefined;
|
|
791
|
+
uint40?: undefined;
|
|
792
|
+
uint48?: undefined;
|
|
793
|
+
uint56?: undefined;
|
|
794
|
+
uint64?: undefined;
|
|
795
|
+
uint72?: undefined;
|
|
796
|
+
uint80?: undefined;
|
|
797
|
+
uint88?: undefined;
|
|
798
|
+
uint96?: undefined;
|
|
799
|
+
uint104?: undefined;
|
|
800
|
+
uint112?: undefined;
|
|
801
|
+
uint120?: undefined;
|
|
802
|
+
uint128?: undefined;
|
|
803
|
+
uint136?: undefined;
|
|
804
|
+
uint144?: undefined;
|
|
805
|
+
uint152?: undefined;
|
|
806
|
+
uint160?: undefined;
|
|
807
|
+
uint168?: undefined;
|
|
808
|
+
uint176?: undefined;
|
|
809
|
+
uint184?: undefined;
|
|
810
|
+
uint192?: undefined;
|
|
811
|
+
uint200?: undefined;
|
|
812
|
+
uint208?: undefined;
|
|
813
|
+
uint216?: undefined;
|
|
814
|
+
uint224?: undefined;
|
|
815
|
+
uint232?: undefined;
|
|
816
|
+
uint240?: undefined;
|
|
817
|
+
uint248?: undefined;
|
|
818
|
+
uint256?: undefined;
|
|
819
|
+
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, Account>) => Promise<`0x${string}`>;
|
|
820
|
+
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
821
|
+
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
822
|
+
writeContract: <const abi_1 extends import("viem").Abi | readonly unknown[], functionName extends import("viem").ContractFunctionName<abi_1, "payable" | "nonpayable">, args extends import("viem").ContractFunctionArgs<abi_1, "pure" | "view", functionName>, TChainOverride_3 extends Chain | undefined = undefined>(args: import("viem").WriteContractParameters<abi_1, functionName, args, Chain, Account, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
823
|
+
extend: <const client extends {
|
|
824
|
+
[x: string]: unknown;
|
|
825
|
+
account?: undefined;
|
|
826
|
+
batch?: undefined;
|
|
827
|
+
cacheTime?: undefined;
|
|
828
|
+
chain?: undefined;
|
|
829
|
+
key?: undefined;
|
|
830
|
+
name?: undefined;
|
|
831
|
+
pollingInterval?: undefined;
|
|
832
|
+
request?: undefined;
|
|
833
|
+
transport?: undefined;
|
|
834
|
+
type?: undefined;
|
|
835
|
+
uid?: undefined;
|
|
836
|
+
} & Partial<Pick<import("viem").PublicActions<Transport, Chain, Account>, "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<Chain, Account>, "sendTransaction" | "writeContract">>>(fn: (client: import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, import("viem").WalletActions<Chain, Account>>) => client) => import("viem").Client<Transport, Chain, Account, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<Chain, Account>>;
|
|
837
|
+
}>;
|
|
838
|
+
id: string;
|
|
839
|
+
isAuthorized: () => Promise<boolean>;
|
|
840
|
+
name: "Dynamic";
|
|
841
|
+
onAccountsChanged: (accounts: string[]) => void;
|
|
842
|
+
onChainChanged: (chainId: number | string) => void;
|
|
843
|
+
onDisconnect: () => void;
|
|
844
|
+
switchChain: ({ chainId }: {
|
|
845
|
+
chainId: number;
|
|
846
|
+
}) => Promise<Chain>;
|
|
847
|
+
type: "dynamic";
|
|
848
|
+
}, {}>;
|