@dynamic-labs/ethereum 0.19.0-alpha.2 → 0.19.0-alpha.21
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 +293 -0
- package/package.json +13 -10
- package/src/EthWalletConnector.cjs +189 -193
- package/src/EthWalletConnector.d.ts +298 -41
- package/src/EthWalletConnector.js +190 -194
- package/src/coinbase/client/client.cjs +76 -0
- package/src/coinbase/client/client.d.ts +6 -0
- package/src/coinbase/client/client.js +69 -0
- package/src/coinbase/client/index.d.ts +2 -0
- package/src/coinbase/client/types.d.ts +14 -0
- package/src/coinbase/coinbase.cjs +71 -0
- package/src/coinbase/coinbase.d.ts +535 -0
- package/src/coinbase/coinbase.js +67 -0
- package/src/coinbase/index.d.ts +3 -0
- package/src/constants.d.ts +1 -1
- package/src/ethProviderHelper.cjs +132 -209
- package/src/ethProviderHelper.d.ts +28 -36
- package/src/ethProviderHelper.js +133 -210
- package/src/index.cjs +30 -26
- package/src/index.d.ts +9 -8
- package/src/index.js +25 -20
- package/src/injected/BloctoInjected.cjs +6 -6
- package/src/injected/BloctoInjected.d.ts +4 -4
- package/src/injected/BloctoInjected.js +6 -6
- package/src/injected/BraveEvm.cjs +6 -6
- package/src/injected/BraveEvm.d.ts +4 -4
- package/src/injected/BraveEvm.js +6 -6
- package/src/injected/Dawn.cjs +6 -6
- package/src/injected/Dawn.d.ts +4 -4
- package/src/injected/Dawn.js +6 -6
- package/src/injected/ExodusEvm.cjs +8 -8
- package/src/injected/ExodusEvm.d.ts +5 -5
- package/src/injected/ExodusEvm.js +7 -7
- package/src/injected/Frame.cjs +6 -6
- package/src/injected/Frame.d.ts +4 -4
- package/src/injected/Frame.js +6 -6
- package/src/injected/GameStop.cjs +6 -6
- package/src/injected/GameStop.d.ts +4 -4
- package/src/injected/GameStop.js +6 -6
- package/src/injected/InjectedWalletBase.cjs +86 -65
- package/src/injected/InjectedWalletBase.d.ts +29 -24
- package/src/injected/InjectedWalletBase.js +86 -65
- package/src/injected/LegacyInjectedWalletBase.cjs +83 -0
- package/src/injected/LegacyInjectedWalletBase.d.ts +24 -0
- package/src/injected/LegacyInjectedWalletBase.js +81 -0
- package/src/injected/Opera.cjs +6 -6
- package/src/injected/Opera.d.ts +4 -4
- package/src/injected/Opera.js +6 -6
- package/src/injected/PhantomEvm.cjs +28 -28
- package/src/injected/PhantomEvm.d.ts +5 -5
- package/src/injected/PhantomEvm.js +28 -28
- package/src/injected/Rabby.cjs +8 -8
- package/src/injected/Rabby.d.ts +5 -5
- package/src/injected/Rabby.js +7 -7
- package/src/injected/Superb.cjs +6 -6
- package/src/injected/Superb.d.ts +4 -4
- package/src/injected/Superb.js +6 -6
- package/src/injected/Trust.cjs +8 -8
- package/src/injected/Trust.d.ts +5 -5
- package/src/injected/Trust.js +7 -7
- package/src/injected/Zerion.cjs +8 -8
- package/src/injected/Zerion.d.ts +5 -5
- package/src/injected/Zerion.js +7 -7
- package/src/injected/fetchInjectedWalletConnectors.cjs +33 -0
- package/src/injected/fetchInjectedWalletConnectors.d.ts +6 -0
- package/src/injected/fetchInjectedWalletConnectors.js +29 -0
- package/src/injected/index.d.ts +13 -16
- package/src/injected/legacyInjectedWallets.cjs +48 -0
- package/src/injected/legacyInjectedWallets.d.ts +3 -0
- package/src/injected/legacyInjectedWallets.js +43 -0
- package/src/legacyEthProviderHelper.cjs +187 -0
- package/src/legacyEthProviderHelper.d.ts +34 -0
- package/src/legacyEthProviderHelper.js +183 -0
- package/src/polyfills.cjs +11 -11
- package/src/polyfills.d.ts +1 -1
- package/src/polyfills.js +11 -11
- package/src/types.d.ts +37 -24
- package/src/utils/eventListenerHandlers.cjs +34 -0
- package/src/utils/eventListenerHandlers.d.ts +8 -0
- package/src/utils/eventListenerHandlers.js +30 -0
- package/src/utils/findEvmNetwork.cjs +13 -13
- package/src/utils/findEvmNetwork.d.ts +6 -6
- package/src/utils/findEvmNetwork.js +13 -13
- package/src/utils/isString.d.ts +1 -1
- package/src/utils/isUnsupportedProviderError/index.d.ts +1 -1
- package/src/utils/isUnsupportedProviderError/isUnsupportedProviderError.cjs +6 -6
- package/src/utils/isUnsupportedProviderError/isUnsupportedProviderError.d.ts +6 -6
- package/src/utils/isUnsupportedProviderError/isUnsupportedProviderError.js +6 -6
- package/src/utils/last.d.ts +1 -1
- package/src/utils/parseIntSafe.cjs +13 -13
- package/src/utils/parseIntSafe.d.ts +1 -1
- package/src/utils/parseIntSafe.js +13 -13
- package/src/walletConnect/client/client.cjs +179 -176
- package/src/walletConnect/client/client.d.ts +17 -17
- package/src/walletConnect/client/client.js +179 -176
- package/src/walletConnect/client/index.d.ts +1 -1
- package/src/walletConnect/client/types.d.ts +4 -4
- package/src/walletConnect/fetchWalletConnectWallets.cjs +37 -52
- package/src/walletConnect/fetchWalletConnectWallets.d.ts +9 -10
- package/src/walletConnect/fetchWalletConnectWallets.js +38 -52
- package/src/walletConnect/index.d.ts +3 -3
- package/src/walletConnect/walletConnect.cjs +131 -130
- package/src/walletConnect/walletConnect.d.ts +52 -50
- package/src/walletConnect/walletConnect.js +131 -130
- package/src/walletConnect/walletConnectV2.cjs +419 -374
- package/src/walletConnect/walletConnectV2.d.ts +326 -61
- package/src/walletConnect/walletConnectV2.js +420 -375
- package/src/injected/MetaMask.cjs +0 -15
- package/src/injected/MetaMask.d.ts +0 -5
- package/src/injected/MetaMask.js +0 -11
- package/src/injected/OKX.cjs +0 -15
- package/src/injected/OKX.d.ts +0 -5
- package/src/injected/OKX.js +0 -11
- package/src/injected/UnknownInjectedWallet.cjs +0 -14
- package/src/injected/UnknownInjectedWallet.d.ts +0 -4
- package/src/injected/UnknownInjectedWallet.js +0 -10
- package/src/injected/index.cjs +0 -53
- package/src/injected/index.js +0 -49
|
@@ -1,41 +1,298 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { NameServiceData, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
-
import { EvmNetwork, GenericNetwork } from '@dynamic-labs/types';
|
|
4
|
-
import { ChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
5
|
-
import { WalletBookSchema } from '@dynamic-labs/wallet-book';
|
|
6
|
-
export type SwitchNetworkOps = {
|
|
7
|
-
networkChainId?: number;
|
|
8
|
-
networkName?: string;
|
|
9
|
-
};
|
|
10
|
-
type EvmRpcMap = {
|
|
11
|
-
[chainId: number]: string;
|
|
12
|
-
};
|
|
13
|
-
export type EthWalletConnectorOpts = {
|
|
14
|
-
chainRpcProviders: typeof ChainRpcProviders;
|
|
15
|
-
evmNetworks: GenericNetwork[];
|
|
16
|
-
isWalletConnectV2Enabled?: boolean;
|
|
17
|
-
walletBook: WalletBookSchema;
|
|
18
|
-
};
|
|
19
|
-
export declare abstract class EthWalletConnector extends WalletConnectorBase {
|
|
20
|
-
evmNetworks: EvmNetwork[];
|
|
21
|
-
abstract
|
|
22
|
-
|
|
23
|
-
constructor(props: EthWalletConnectorOpts);
|
|
24
|
-
getNetwork(): Promise<number | undefined>;
|
|
25
|
-
getNameService(): Promise<NameServiceData | undefined>;
|
|
26
|
-
getSigner(): Promise<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
1
|
+
import { WalletClient, PublicClient } from 'viem';
|
|
2
|
+
import { NameServiceData, WalletConnectorBase } from '@dynamic-labs/wallet-connector-core';
|
|
3
|
+
import { EvmNetwork, GenericNetwork } from '@dynamic-labs/types';
|
|
4
|
+
import { ChainRpcProviders } from '@dynamic-labs/rpc-providers';
|
|
5
|
+
import { WalletBookSchema } from '@dynamic-labs/wallet-book';
|
|
6
|
+
export type SwitchNetworkOps = {
|
|
7
|
+
networkChainId?: number;
|
|
8
|
+
networkName?: string;
|
|
9
|
+
};
|
|
10
|
+
type EvmRpcMap = {
|
|
11
|
+
[chainId: number]: string;
|
|
12
|
+
};
|
|
13
|
+
export type EthWalletConnectorOpts = {
|
|
14
|
+
chainRpcProviders: typeof ChainRpcProviders;
|
|
15
|
+
evmNetworks: GenericNetwork[];
|
|
16
|
+
isWalletConnectV2Enabled?: boolean;
|
|
17
|
+
walletBook: WalletBookSchema;
|
|
18
|
+
};
|
|
19
|
+
export declare abstract class EthWalletConnector extends WalletConnectorBase {
|
|
20
|
+
evmNetworks: EvmNetwork[];
|
|
21
|
+
abstract getWalletClient(): WalletClient | undefined;
|
|
22
|
+
getPublicClient(): Promise<PublicClient | undefined>;
|
|
23
|
+
constructor(props: EthWalletConnectorOpts);
|
|
24
|
+
getNetwork(): Promise<number | undefined>;
|
|
25
|
+
getNameService(): Promise<NameServiceData | undefined>;
|
|
26
|
+
getSigner(): Promise<{
|
|
27
|
+
account: import("viem").Account | undefined;
|
|
28
|
+
batch?: {
|
|
29
|
+
multicall?: boolean | {
|
|
30
|
+
batchSize?: number | undefined;
|
|
31
|
+
wait?: number | undefined;
|
|
32
|
+
} | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
cacheTime: number;
|
|
35
|
+
chain: import("viem").Chain | undefined;
|
|
36
|
+
key: string;
|
|
37
|
+
name: string;
|
|
38
|
+
pollingInterval: number;
|
|
39
|
+
request: import("viem").EIP1193RequestFn<import("viem").WalletRpcSchema>;
|
|
40
|
+
transport: import("viem").TransportConfig<string, import("viem").EIP1193RequestFn> & Record<string, any>;
|
|
41
|
+
type: string;
|
|
42
|
+
uid: string;
|
|
43
|
+
addChain: (args: import("viem").AddChainParameters) => Promise<void>;
|
|
44
|
+
deployContract: <const TAbi extends import("viem").Abi | readonly unknown[], TChainOverride extends import("viem").Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride>) => Promise<`0x${string}`>;
|
|
45
|
+
getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
|
|
46
|
+
getChainId: () => Promise<number>;
|
|
47
|
+
getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
|
|
48
|
+
prepareTransactionRequest: <TChainOverride_1 extends import("viem").Chain | undefined>(args: import("viem").PrepareTransactionRequestParameters<import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_1>) => Promise<import("viem").PrepareTransactionRequestReturnType>;
|
|
49
|
+
requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
|
|
50
|
+
requestPermissions: (args: {
|
|
51
|
+
[x: string]: Record<string, any>;
|
|
52
|
+
eth_accounts: Record<string, any>;
|
|
53
|
+
}) => Promise<import("viem").RequestPermissionsReturnType>;
|
|
54
|
+
sendRawTransaction: (args: import("viem/_types/actions/wallet/sendRawTransaction").SendRawTransactionParameters) => Promise<`0x${string}`>;
|
|
55
|
+
sendTransaction: <TChainOverride_2 extends import("viem").Chain | undefined>(args: import("viem").SendTransactionParameters<import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_2>) => Promise<`0x${string}`>;
|
|
56
|
+
signMessage: (args: import("viem").SignMessageParameters<import("viem").Account | undefined>) => Promise<`0x${string}`>;
|
|
57
|
+
signTransaction: <TChainOverride_3 extends import("viem").Chain | undefined>(args: import("viem/_types/actions/wallet/signTransaction").SignTransactionParameters<import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_3>) => Promise<`0x${string}`>;
|
|
58
|
+
signTypedData: <const TTypedData extends {
|
|
59
|
+
[x: string]: readonly import("viem").TypedDataParameter[];
|
|
60
|
+
[x: `string[${string}]`]: undefined;
|
|
61
|
+
[x: `function[${string}]`]: undefined;
|
|
62
|
+
[x: `address[${string}]`]: undefined;
|
|
63
|
+
[x: `bool[${string}]`]: undefined;
|
|
64
|
+
[x: `bytes[${string}]`]: undefined;
|
|
65
|
+
[x: `bytes1[${string}]`]: undefined;
|
|
66
|
+
[x: `bytes32[${string}]`]: undefined;
|
|
67
|
+
[x: `bytes31[${string}]`]: undefined;
|
|
68
|
+
[x: `bytes30[${string}]`]: undefined;
|
|
69
|
+
[x: `bytes29[${string}]`]: undefined;
|
|
70
|
+
[x: `bytes28[${string}]`]: undefined;
|
|
71
|
+
[x: `bytes27[${string}]`]: undefined;
|
|
72
|
+
[x: `bytes26[${string}]`]: undefined;
|
|
73
|
+
[x: `bytes25[${string}]`]: undefined;
|
|
74
|
+
[x: `bytes24[${string}]`]: undefined;
|
|
75
|
+
[x: `bytes23[${string}]`]: undefined;
|
|
76
|
+
[x: `bytes22[${string}]`]: undefined;
|
|
77
|
+
[x: `bytes21[${string}]`]: undefined;
|
|
78
|
+
[x: `bytes20[${string}]`]: undefined;
|
|
79
|
+
[x: `bytes19[${string}]`]: undefined;
|
|
80
|
+
[x: `bytes18[${string}]`]: undefined;
|
|
81
|
+
[x: `bytes2[${string}]`]: undefined;
|
|
82
|
+
[x: `bytes17[${string}]`]: undefined;
|
|
83
|
+
[x: `bytes16[${string}]`]: undefined;
|
|
84
|
+
[x: `bytes15[${string}]`]: undefined;
|
|
85
|
+
[x: `bytes14[${string}]`]: undefined;
|
|
86
|
+
[x: `bytes13[${string}]`]: undefined;
|
|
87
|
+
[x: `bytes12[${string}]`]: undefined;
|
|
88
|
+
[x: `bytes11[${string}]`]: undefined;
|
|
89
|
+
[x: `bytes10[${string}]`]: undefined;
|
|
90
|
+
[x: `bytes9[${string}]`]: undefined;
|
|
91
|
+
[x: `bytes8[${string}]`]: undefined;
|
|
92
|
+
[x: `bytes7[${string}]`]: undefined;
|
|
93
|
+
[x: `bytes6[${string}]`]: undefined;
|
|
94
|
+
[x: `bytes5[${string}]`]: undefined;
|
|
95
|
+
[x: `bytes4[${string}]`]: undefined;
|
|
96
|
+
[x: `bytes3[${string}]`]: undefined;
|
|
97
|
+
[x: `int[${string}]`]: undefined;
|
|
98
|
+
[x: `int32[${string}]`]: undefined;
|
|
99
|
+
[x: `int24[${string}]`]: undefined;
|
|
100
|
+
[x: `int16[${string}]`]: undefined;
|
|
101
|
+
[x: `int8[${string}]`]: undefined;
|
|
102
|
+
[x: `int40[${string}]`]: undefined;
|
|
103
|
+
[x: `int48[${string}]`]: undefined;
|
|
104
|
+
[x: `int56[${string}]`]: undefined;
|
|
105
|
+
[x: `int64[${string}]`]: undefined;
|
|
106
|
+
[x: `int72[${string}]`]: undefined;
|
|
107
|
+
[x: `int80[${string}]`]: undefined;
|
|
108
|
+
[x: `int88[${string}]`]: undefined;
|
|
109
|
+
[x: `int96[${string}]`]: undefined;
|
|
110
|
+
[x: `int104[${string}]`]: undefined;
|
|
111
|
+
[x: `int112[${string}]`]: undefined;
|
|
112
|
+
[x: `int120[${string}]`]: undefined;
|
|
113
|
+
[x: `int128[${string}]`]: undefined;
|
|
114
|
+
[x: `int136[${string}]`]: undefined;
|
|
115
|
+
[x: `int144[${string}]`]: undefined;
|
|
116
|
+
[x: `int152[${string}]`]: undefined;
|
|
117
|
+
[x: `int160[${string}]`]: undefined;
|
|
118
|
+
[x: `int168[${string}]`]: undefined;
|
|
119
|
+
[x: `int176[${string}]`]: undefined;
|
|
120
|
+
[x: `int184[${string}]`]: undefined;
|
|
121
|
+
[x: `int192[${string}]`]: undefined;
|
|
122
|
+
[x: `int200[${string}]`]: undefined;
|
|
123
|
+
[x: `int208[${string}]`]: undefined;
|
|
124
|
+
[x: `int216[${string}]`]: undefined;
|
|
125
|
+
[x: `int224[${string}]`]: undefined;
|
|
126
|
+
[x: `int232[${string}]`]: undefined;
|
|
127
|
+
[x: `int240[${string}]`]: undefined;
|
|
128
|
+
[x: `int248[${string}]`]: undefined;
|
|
129
|
+
[x: `int256[${string}]`]: undefined;
|
|
130
|
+
[x: `uint[${string}]`]: undefined;
|
|
131
|
+
[x: `uint32[${string}]`]: undefined;
|
|
132
|
+
[x: `uint24[${string}]`]: undefined;
|
|
133
|
+
[x: `uint16[${string}]`]: undefined;
|
|
134
|
+
[x: `uint8[${string}]`]: undefined;
|
|
135
|
+
[x: `uint40[${string}]`]: undefined;
|
|
136
|
+
[x: `uint48[${string}]`]: undefined;
|
|
137
|
+
[x: `uint56[${string}]`]: undefined;
|
|
138
|
+
[x: `uint64[${string}]`]: undefined;
|
|
139
|
+
[x: `uint72[${string}]`]: undefined;
|
|
140
|
+
[x: `uint80[${string}]`]: undefined;
|
|
141
|
+
[x: `uint88[${string}]`]: undefined;
|
|
142
|
+
[x: `uint96[${string}]`]: undefined;
|
|
143
|
+
[x: `uint104[${string}]`]: undefined;
|
|
144
|
+
[x: `uint112[${string}]`]: undefined;
|
|
145
|
+
[x: `uint120[${string}]`]: undefined;
|
|
146
|
+
[x: `uint128[${string}]`]: undefined;
|
|
147
|
+
[x: `uint136[${string}]`]: undefined;
|
|
148
|
+
[x: `uint144[${string}]`]: undefined;
|
|
149
|
+
[x: `uint152[${string}]`]: undefined;
|
|
150
|
+
[x: `uint160[${string}]`]: undefined;
|
|
151
|
+
[x: `uint168[${string}]`]: undefined;
|
|
152
|
+
[x: `uint176[${string}]`]: undefined;
|
|
153
|
+
[x: `uint184[${string}]`]: undefined;
|
|
154
|
+
[x: `uint192[${string}]`]: undefined;
|
|
155
|
+
[x: `uint200[${string}]`]: undefined;
|
|
156
|
+
[x: `uint208[${string}]`]: undefined;
|
|
157
|
+
[x: `uint216[${string}]`]: undefined;
|
|
158
|
+
[x: `uint224[${string}]`]: undefined;
|
|
159
|
+
[x: `uint232[${string}]`]: undefined;
|
|
160
|
+
[x: `uint240[${string}]`]: undefined;
|
|
161
|
+
[x: `uint248[${string}]`]: undefined;
|
|
162
|
+
[x: `uint256[${string}]`]: undefined;
|
|
163
|
+
string?: undefined;
|
|
164
|
+
address?: undefined;
|
|
165
|
+
bool?: undefined;
|
|
166
|
+
bytes?: undefined;
|
|
167
|
+
bytes1?: undefined;
|
|
168
|
+
bytes32?: undefined;
|
|
169
|
+
bytes31?: undefined;
|
|
170
|
+
bytes30?: undefined;
|
|
171
|
+
bytes29?: undefined;
|
|
172
|
+
bytes28?: undefined;
|
|
173
|
+
bytes27?: undefined;
|
|
174
|
+
bytes26?: undefined;
|
|
175
|
+
bytes25?: undefined;
|
|
176
|
+
bytes24?: undefined;
|
|
177
|
+
bytes23?: undefined;
|
|
178
|
+
bytes22?: undefined;
|
|
179
|
+
bytes21?: undefined;
|
|
180
|
+
bytes20?: undefined;
|
|
181
|
+
bytes19?: undefined;
|
|
182
|
+
bytes18?: undefined;
|
|
183
|
+
bytes2?: undefined;
|
|
184
|
+
bytes17?: undefined;
|
|
185
|
+
bytes16?: undefined;
|
|
186
|
+
bytes15?: undefined;
|
|
187
|
+
bytes14?: undefined;
|
|
188
|
+
bytes13?: undefined;
|
|
189
|
+
bytes12?: undefined;
|
|
190
|
+
bytes11?: undefined;
|
|
191
|
+
bytes10?: undefined;
|
|
192
|
+
bytes9?: undefined;
|
|
193
|
+
bytes8?: undefined;
|
|
194
|
+
bytes7?: undefined;
|
|
195
|
+
bytes6?: undefined;
|
|
196
|
+
bytes5?: undefined;
|
|
197
|
+
bytes4?: undefined;
|
|
198
|
+
bytes3?: undefined;
|
|
199
|
+
int32?: undefined;
|
|
200
|
+
int24?: undefined;
|
|
201
|
+
int16?: undefined;
|
|
202
|
+
int8?: undefined;
|
|
203
|
+
int40?: undefined;
|
|
204
|
+
int48?: undefined;
|
|
205
|
+
int56?: undefined;
|
|
206
|
+
int64?: undefined;
|
|
207
|
+
int72?: undefined;
|
|
208
|
+
int80?: undefined;
|
|
209
|
+
int88?: undefined;
|
|
210
|
+
int96?: undefined;
|
|
211
|
+
int104?: undefined;
|
|
212
|
+
int112?: undefined;
|
|
213
|
+
int120?: undefined;
|
|
214
|
+
int128?: undefined;
|
|
215
|
+
int136?: undefined;
|
|
216
|
+
int144?: undefined;
|
|
217
|
+
int152?: undefined;
|
|
218
|
+
int160?: undefined;
|
|
219
|
+
int168?: undefined;
|
|
220
|
+
int176?: undefined;
|
|
221
|
+
int184?: undefined;
|
|
222
|
+
int192?: undefined;
|
|
223
|
+
int200?: undefined;
|
|
224
|
+
int208?: undefined;
|
|
225
|
+
int216?: undefined;
|
|
226
|
+
int224?: undefined;
|
|
227
|
+
int232?: undefined;
|
|
228
|
+
int240?: undefined;
|
|
229
|
+
int248?: undefined;
|
|
230
|
+
int256?: undefined;
|
|
231
|
+
uint32?: undefined;
|
|
232
|
+
uint24?: undefined;
|
|
233
|
+
uint16?: undefined;
|
|
234
|
+
uint8?: undefined;
|
|
235
|
+
uint40?: undefined;
|
|
236
|
+
uint48?: undefined;
|
|
237
|
+
uint56?: undefined;
|
|
238
|
+
uint64?: undefined;
|
|
239
|
+
uint72?: undefined;
|
|
240
|
+
uint80?: undefined;
|
|
241
|
+
uint88?: undefined;
|
|
242
|
+
uint96?: undefined;
|
|
243
|
+
uint104?: undefined;
|
|
244
|
+
uint112?: undefined;
|
|
245
|
+
uint120?: undefined;
|
|
246
|
+
uint128?: undefined;
|
|
247
|
+
uint136?: undefined;
|
|
248
|
+
uint144?: undefined;
|
|
249
|
+
uint152?: undefined;
|
|
250
|
+
uint160?: undefined;
|
|
251
|
+
uint168?: undefined;
|
|
252
|
+
uint176?: undefined;
|
|
253
|
+
uint184?: undefined;
|
|
254
|
+
uint192?: undefined;
|
|
255
|
+
uint200?: undefined;
|
|
256
|
+
uint208?: undefined;
|
|
257
|
+
uint216?: undefined;
|
|
258
|
+
uint224?: undefined;
|
|
259
|
+
uint232?: undefined;
|
|
260
|
+
uint240?: undefined;
|
|
261
|
+
uint248?: undefined;
|
|
262
|
+
uint256?: undefined;
|
|
263
|
+
} | {
|
|
264
|
+
[key: string]: unknown;
|
|
265
|
+
}, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, import("viem").Account | undefined>) => Promise<`0x${string}`>;
|
|
266
|
+
switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
|
|
267
|
+
watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
|
|
268
|
+
writeContract: <const TAbi_1 extends import("viem").Abi | readonly unknown[], TFunctionName extends string, TChainOverride_4 extends import("viem").Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, import("viem").Chain | undefined, import("viem").Account | undefined, TChainOverride_4>) => Promise<`0x${string}`>;
|
|
269
|
+
extend: <const client extends {
|
|
270
|
+
[x: string]: unknown;
|
|
271
|
+
account?: undefined;
|
|
272
|
+
batch?: undefined;
|
|
273
|
+
cacheTime?: undefined;
|
|
274
|
+
chain?: undefined;
|
|
275
|
+
key?: undefined;
|
|
276
|
+
name?: undefined;
|
|
277
|
+
pollingInterval?: undefined;
|
|
278
|
+
request?: undefined;
|
|
279
|
+
transport?: undefined;
|
|
280
|
+
type?: undefined;
|
|
281
|
+
uid?: undefined;
|
|
282
|
+
}>(fn: (client: import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, import("viem").Account | undefined, import("viem").WalletRpcSchema, import("viem").WalletActions<import("viem").Chain | undefined, import("viem").Account | undefined>>) => client) => import("viem").Client<import("viem").Transport, import("viem").Chain | undefined, import("viem").Account | undefined, import("viem").WalletRpcSchema, { [K in keyof client]: client[K]; } & import("viem").WalletActions<import("viem").Chain | undefined, import("viem").Account | undefined>>;
|
|
283
|
+
} | undefined>;
|
|
284
|
+
getBalance(): Promise<string | undefined>;
|
|
285
|
+
supportsNetworkSwitching(): boolean;
|
|
286
|
+
switchNetwork({ networkName, networkChainId, }: SwitchNetworkOps): Promise<void>;
|
|
287
|
+
getConnectedAccounts(): Promise<string[]>;
|
|
288
|
+
providerSwitchNetwork({ network, provider, }: {
|
|
289
|
+
network: EvmNetwork;
|
|
290
|
+
provider: WalletClient;
|
|
291
|
+
}): Promise<void>;
|
|
292
|
+
protected providerAddNetwork({ network, provider, }: {
|
|
293
|
+
network: EvmNetwork;
|
|
294
|
+
provider: WalletClient;
|
|
295
|
+
}): Promise<void>;
|
|
296
|
+
protected evmNetworkRpcMap: () => EvmRpcMap;
|
|
297
|
+
}
|
|
298
|
+
export {};
|