@funkit/core 0.8.0

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 (234) hide show
  1. package/README.md +110 -0
  2. package/dist/fetch-polyfill.d.ts +1 -0
  3. package/dist/fetch-polyfill.js +35 -0
  4. package/dist/fetch-polyfill.js.map +1 -0
  5. package/dist/index.d.ts +12 -0
  6. package/dist/index.js +29 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/src/abis/ApproveAndExec.json +1 -0
  9. package/dist/src/abis/ApproveAndSwap.json +1 -0
  10. package/dist/src/abis/ERC20.json +1 -0
  11. package/dist/src/abis/ERC721.json +1 -0
  12. package/dist/src/abis/EntryPoint.json +1 -0
  13. package/dist/src/abis/EstimationPaymaster.json +1 -0
  14. package/dist/src/abis/FeePercentOracle.json +1 -0
  15. package/dist/src/abis/FunWallet.json +1 -0
  16. package/dist/src/abis/FunWalletFactory.json +1 -0
  17. package/dist/src/abis/GaslessPaymaster.json +1 -0
  18. package/dist/src/abis/LidoWithdrawQueue.json +1 -0
  19. package/dist/src/abis/RoleBasedAccessControl.json +1 -0
  20. package/dist/src/abis/TestNFT.json +1 -0
  21. package/dist/src/abis/TokenPaymaster.json +1 -0
  22. package/dist/src/abis/TokenPriceOracle.json +1 -0
  23. package/dist/src/abis/UniswapV2Factory.json +1 -0
  24. package/dist/src/abis/UniswapV2Router02.json +1 -0
  25. package/dist/src/abis/UniswapV3LimitOrder.json +1 -0
  26. package/dist/src/abis/UserAuthentication.json +1 -0
  27. package/dist/src/abis/univ3factory.json +1 -0
  28. package/dist/src/abis/univ3quoter.json +1 -0
  29. package/dist/src/abis/univ3router.json +1 -0
  30. package/dist/src/actions/AccessControl.d.ts +9 -0
  31. package/dist/src/actions/AccessControl.js +88 -0
  32. package/dist/src/actions/AccessControl.js.map +1 -0
  33. package/dist/src/actions/BatchActions.d.ts +3 -0
  34. package/dist/src/actions/BatchActions.js +12 -0
  35. package/dist/src/actions/BatchActions.js.map +1 -0
  36. package/dist/src/actions/FirstClassActions.d.ts +161 -0
  37. package/dist/src/actions/FirstClassActions.js +347 -0
  38. package/dist/src/actions/FirstClassActions.js.map +1 -0
  39. package/dist/src/actions/Group.d.ts +6 -0
  40. package/dist/src/actions/Group.js +44 -0
  41. package/dist/src/actions/Group.js.map +1 -0
  42. package/dist/src/actions/LimitOrder.d.ts +4 -0
  43. package/dist/src/actions/LimitOrder.js +45 -0
  44. package/dist/src/actions/LimitOrder.js.map +1 -0
  45. package/dist/src/actions/Stake.d.ts +8 -0
  46. package/dist/src/actions/Stake.js +124 -0
  47. package/dist/src/actions/Stake.js.map +1 -0
  48. package/dist/src/actions/Swap.d.ts +9 -0
  49. package/dist/src/actions/Swap.js +169 -0
  50. package/dist/src/actions/Swap.js.map +1 -0
  51. package/dist/src/actions/Token.d.ts +12 -0
  52. package/dist/src/actions/Token.js +102 -0
  53. package/dist/src/actions/Token.js.map +1 -0
  54. package/dist/src/actions/index.d.ts +7 -0
  55. package/dist/src/actions/index.js +24 -0
  56. package/dist/src/actions/index.js.map +1 -0
  57. package/dist/src/actions/types.d.ts +117 -0
  58. package/dist/src/actions/types.js +11 -0
  59. package/dist/src/actions/types.js.map +1 -0
  60. package/dist/src/apis/AccessControlApis.d.ts +5 -0
  61. package/dist/src/apis/AccessControlApis.js +22 -0
  62. package/dist/src/apis/AccessControlApis.js.map +1 -0
  63. package/dist/src/apis/AssetApis.d.ts +79 -0
  64. package/dist/src/apis/AssetApis.js +100 -0
  65. package/dist/src/apis/AssetApis.js.map +1 -0
  66. package/dist/src/apis/ContractApis.d.ts +1 -0
  67. package/dist/src/apis/ContractApis.js +11 -0
  68. package/dist/src/apis/ContractApis.js.map +1 -0
  69. package/dist/src/apis/GroupApis.d.ts +8 -0
  70. package/dist/src/apis/GroupApis.js +45 -0
  71. package/dist/src/apis/GroupApis.js.map +1 -0
  72. package/dist/src/apis/InfoApis.d.ts +6 -0
  73. package/dist/src/apis/InfoApis.js +59 -0
  74. package/dist/src/apis/InfoApis.js.map +1 -0
  75. package/dist/src/apis/ListenerApis.d.ts +3 -0
  76. package/dist/src/apis/ListenerApis.js +36 -0
  77. package/dist/src/apis/ListenerApis.js.map +1 -0
  78. package/dist/src/apis/NFTApis.d.ts +22 -0
  79. package/dist/src/apis/NFTApis.js +34 -0
  80. package/dist/src/apis/NFTApis.js.map +1 -0
  81. package/dist/src/apis/OnOffRampApis.d.ts +2 -0
  82. package/dist/src/apis/OnOffRampApis.js +23 -0
  83. package/dist/src/apis/OnOffRampApis.js.map +1 -0
  84. package/dist/src/apis/OnOffRampUtils.d.ts +2 -0
  85. package/dist/src/apis/OnOffRampUtils.js +23 -0
  86. package/dist/src/apis/OnOffRampUtils.js.map +1 -0
  87. package/dist/src/apis/OperationApis.d.ts +14 -0
  88. package/dist/src/apis/OperationApis.js +77 -0
  89. package/dist/src/apis/OperationApis.js.map +1 -0
  90. package/dist/src/apis/PaymasterApis.d.ts +15 -0
  91. package/dist/src/apis/PaymasterApis.js +89 -0
  92. package/dist/src/apis/PaymasterApis.js.map +1 -0
  93. package/dist/src/apis/UserApis.d.ts +12 -0
  94. package/dist/src/apis/UserApis.js +77 -0
  95. package/dist/src/apis/UserApis.js.map +1 -0
  96. package/dist/src/apis/index.d.ts +10 -0
  97. package/dist/src/apis/index.js +27 -0
  98. package/dist/src/apis/index.js.map +1 -0
  99. package/dist/src/apis/types.d.ts +49 -0
  100. package/dist/src/apis/types.js +3 -0
  101. package/dist/src/apis/types.js.map +1 -0
  102. package/dist/src/auth/Auth.d.ts +81 -0
  103. package/dist/src/auth/Auth.js +317 -0
  104. package/dist/src/auth/Auth.js.map +1 -0
  105. package/dist/src/auth/SessionKeyAuth.d.ts +19 -0
  106. package/dist/src/auth/SessionKeyAuth.js +118 -0
  107. package/dist/src/auth/SessionKeyAuth.js.map +1 -0
  108. package/dist/src/auth/index.d.ts +2 -0
  109. package/dist/src/auth/index.js +19 -0
  110. package/dist/src/auth/index.js.map +1 -0
  111. package/dist/src/auth/types.d.ts +20 -0
  112. package/dist/src/auth/types.js +3 -0
  113. package/dist/src/auth/types.js.map +1 -0
  114. package/dist/src/common/constants.d.ts +1072 -0
  115. package/dist/src/common/constants.js +153 -0
  116. package/dist/src/common/constants.js.map +1 -0
  117. package/dist/src/common/index.d.ts +2 -0
  118. package/dist/src/common/index.js +19 -0
  119. package/dist/src/common/index.js.map +1 -0
  120. package/dist/src/common/types.d.ts +32 -0
  121. package/dist/src/common/types.js +3 -0
  122. package/dist/src/common/types.js.map +1 -0
  123. package/dist/src/config/Config.d.ts +3 -0
  124. package/dist/src/config/Config.js +46 -0
  125. package/dist/src/config/Config.js.map +1 -0
  126. package/dist/src/config/index.d.ts +2 -0
  127. package/dist/src/config/index.js +19 -0
  128. package/dist/src/config/index.js.map +1 -0
  129. package/dist/src/config/types.d.ts +21 -0
  130. package/dist/src/config/types.js +3 -0
  131. package/dist/src/config/types.js.map +1 -0
  132. package/dist/src/data/Chain.d.ts +29 -0
  133. package/dist/src/data/Chain.js +174 -0
  134. package/dist/src/data/Chain.js.map +1 -0
  135. package/dist/src/data/NFT.d.ts +24 -0
  136. package/dist/src/data/NFT.js +104 -0
  137. package/dist/src/data/NFT.js.map +1 -0
  138. package/dist/src/data/Operation.d.ts +33 -0
  139. package/dist/src/data/Operation.js +68 -0
  140. package/dist/src/data/Operation.js.map +1 -0
  141. package/dist/src/data/SolidityData.d.ts +8 -0
  142. package/dist/src/data/SolidityData.js +72 -0
  143. package/dist/src/data/SolidityData.js.map +1 -0
  144. package/dist/src/data/Token.d.ts +26 -0
  145. package/dist/src/data/Token.js +122 -0
  146. package/dist/src/data/Token.js.map +1 -0
  147. package/dist/src/data/index.d.ts +6 -0
  148. package/dist/src/data/index.js +23 -0
  149. package/dist/src/data/index.js.map +1 -0
  150. package/dist/src/data/types.d.ts +112 -0
  151. package/dist/src/data/types.js +25 -0
  152. package/dist/src/data/types.js.map +1 -0
  153. package/dist/src/errors/BaseError.d.ts +9 -0
  154. package/dist/src/errors/BaseError.js +23 -0
  155. package/dist/src/errors/BaseError.js.map +1 -0
  156. package/dist/src/errors/ClientError.d.ts +22 -0
  157. package/dist/src/errors/ClientError.js +75 -0
  158. package/dist/src/errors/ClientError.js.map +1 -0
  159. package/dist/src/errors/ServerError.d.ts +7 -0
  160. package/dist/src/errors/ServerError.js +18 -0
  161. package/dist/src/errors/ServerError.js.map +1 -0
  162. package/dist/src/errors/index.d.ts +4 -0
  163. package/dist/src/errors/index.js +21 -0
  164. package/dist/src/errors/index.js.map +1 -0
  165. package/dist/src/errors/types.d.ts +54 -0
  166. package/dist/src/errors/types.js +45 -0
  167. package/dist/src/errors/types.js.map +1 -0
  168. package/dist/src/sponsors/GaslessSponsor.d.ts +19 -0
  169. package/dist/src/sponsors/GaslessSponsor.js +91 -0
  170. package/dist/src/sponsors/GaslessSponsor.js.map +1 -0
  171. package/dist/src/sponsors/Sponsor.d.ts +31 -0
  172. package/dist/src/sponsors/Sponsor.js +94 -0
  173. package/dist/src/sponsors/Sponsor.js.map +1 -0
  174. package/dist/src/sponsors/TokenSponsor.d.ts +40 -0
  175. package/dist/src/sponsors/TokenSponsor.js +271 -0
  176. package/dist/src/sponsors/TokenSponsor.js.map +1 -0
  177. package/dist/src/sponsors/index.d.ts +3 -0
  178. package/dist/src/sponsors/index.js +20 -0
  179. package/dist/src/sponsors/index.js.map +1 -0
  180. package/dist/src/sponsors/types.d.ts +9 -0
  181. package/dist/src/sponsors/types.js +10 -0
  182. package/dist/src/sponsors/types.js.map +1 -0
  183. package/dist/src/utils/ApiUtils.d.ts +19 -0
  184. package/dist/src/utils/ApiUtils.js +97 -0
  185. package/dist/src/utils/ApiUtils.js.map +1 -0
  186. package/dist/src/utils/AuthUtils.d.ts +4 -0
  187. package/dist/src/utils/AuthUtils.js +54 -0
  188. package/dist/src/utils/AuthUtils.js.map +1 -0
  189. package/dist/src/utils/ChainUtils.d.ts +12 -0
  190. package/dist/src/utils/ChainUtils.js +89 -0
  191. package/dist/src/utils/ChainUtils.js.map +1 -0
  192. package/dist/src/utils/MerkleUtils.d.ts +18 -0
  193. package/dist/src/utils/MerkleUtils.js +96 -0
  194. package/dist/src/utils/MerkleUtils.js.map +1 -0
  195. package/dist/src/utils/PaymasterUtils.d.ts +3 -0
  196. package/dist/src/utils/PaymasterUtils.js +17 -0
  197. package/dist/src/utils/PaymasterUtils.js.map +1 -0
  198. package/dist/src/utils/SwapUtils.d.ts +35 -0
  199. package/dist/src/utils/SwapUtils.js +193 -0
  200. package/dist/src/utils/SwapUtils.js.map +1 -0
  201. package/dist/src/utils/TypeUtils.d.ts +1 -0
  202. package/dist/src/utils/TypeUtils.js +13 -0
  203. package/dist/src/utils/TypeUtils.js.map +1 -0
  204. package/dist/src/utils/UserOpUtils.d.ts +12 -0
  205. package/dist/src/utils/UserOpUtils.js +166 -0
  206. package/dist/src/utils/UserOpUtils.js.map +1 -0
  207. package/dist/src/utils/ViemUtils.d.ts +9 -0
  208. package/dist/src/utils/ViemUtils.js +30 -0
  209. package/dist/src/utils/ViemUtils.js.map +1 -0
  210. package/dist/src/utils/WalletUtils.d.ts +11 -0
  211. package/dist/src/utils/WalletUtils.js +61 -0
  212. package/dist/src/utils/WalletUtils.js.map +1 -0
  213. package/dist/src/utils/index.d.ts +7 -0
  214. package/dist/src/utils/index.js +24 -0
  215. package/dist/src/utils/index.js.map +1 -0
  216. package/dist/src/viem/ContractInterface.d.ts +19 -0
  217. package/dist/src/viem/ContractInterface.js +88 -0
  218. package/dist/src/viem/ContractInterface.js.map +1 -0
  219. package/dist/src/viem/Converter.d.ts +1770 -0
  220. package/dist/src/viem/Converter.js +50 -0
  221. package/dist/src/viem/Converter.js.map +1 -0
  222. package/dist/src/viem/index.d.ts +2 -0
  223. package/dist/src/viem/index.js +19 -0
  224. package/dist/src/viem/index.js.map +1 -0
  225. package/dist/src/wallet/FunWallet.d.ts +185 -0
  226. package/dist/src/wallet/FunWallet.js +720 -0
  227. package/dist/src/wallet/FunWallet.js.map +1 -0
  228. package/dist/src/wallet/index.d.ts +2 -0
  229. package/dist/src/wallet/index.js +19 -0
  230. package/dist/src/wallet/index.js.map +1 -0
  231. package/dist/src/wallet/types.d.ts +13 -0
  232. package/dist/src/wallet/types.js +3 -0
  233. package/dist/src/wallet/types.js.map +1 -0
  234. package/package.json +89 -0
@@ -0,0 +1,1770 @@
1
+ import { Chain } from "viem/chains";
2
+ interface web3ProviderConversionInterface {
3
+ provider: any;
4
+ viemChain?: Chain;
5
+ }
6
+ interface web3SignerConversionInterface {
7
+ signer: any;
8
+ viemChain?: Chain;
9
+ }
10
+ export declare const convertProviderToClient: ({ provider, viemChain }: web3ProviderConversionInterface) => {
11
+ chain: Chain | {
12
+ readonly id: 1;
13
+ readonly network: "homestead";
14
+ readonly name: "Ethereum";
15
+ readonly nativeCurrency: {
16
+ readonly name: "Ether";
17
+ readonly symbol: "ETH";
18
+ readonly decimals: 18;
19
+ };
20
+ readonly rpcUrls: {
21
+ readonly alchemy: {
22
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
23
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
24
+ };
25
+ readonly infura: {
26
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
27
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
28
+ };
29
+ readonly default: {
30
+ readonly http: readonly ["https://cloudflare-eth.com"];
31
+ };
32
+ readonly public: {
33
+ readonly http: readonly ["https://cloudflare-eth.com"];
34
+ };
35
+ };
36
+ readonly blockExplorers: {
37
+ readonly etherscan: {
38
+ readonly name: "Etherscan";
39
+ readonly url: "https://etherscan.io";
40
+ };
41
+ readonly default: {
42
+ readonly name: "Etherscan";
43
+ readonly url: "https://etherscan.io";
44
+ };
45
+ };
46
+ readonly contracts: {
47
+ readonly ensRegistry: {
48
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
49
+ };
50
+ readonly ensUniversalResolver: {
51
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
52
+ readonly blockCreated: 16773775;
53
+ };
54
+ readonly multicall3: {
55
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
56
+ readonly blockCreated: 14353601;
57
+ };
58
+ };
59
+ };
60
+ key: string;
61
+ name: string;
62
+ pollingInterval: number;
63
+ request: {
64
+ (args: {
65
+ method: "web3_clientVersion";
66
+ params?: undefined;
67
+ }): Promise<string>;
68
+ (args: {
69
+ method: "web3_sha3";
70
+ params: [data: `0x${string}`];
71
+ }): Promise<string>;
72
+ (args: {
73
+ method: "net_listening";
74
+ params?: undefined;
75
+ }): Promise<boolean>;
76
+ (args: {
77
+ method: "net_peerCount";
78
+ params?: undefined;
79
+ }): Promise<`0x${string}`>;
80
+ (args: {
81
+ method: "net_version";
82
+ params?: undefined;
83
+ }): Promise<`0x${string}`>;
84
+ (args: {
85
+ method: "eth_blockNumber";
86
+ params?: undefined;
87
+ }): Promise<`0x${string}`>;
88
+ (args: {
89
+ method: "eth_call";
90
+ params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
91
+ }): Promise<`0x${string}`>;
92
+ (args: {
93
+ method: "eth_chainId";
94
+ params?: undefined;
95
+ }): Promise<`0x${string}`>;
96
+ (args: {
97
+ method: "eth_coinbase";
98
+ params?: undefined;
99
+ }): Promise<`0x${string}`>;
100
+ (args: {
101
+ method: "eth_estimateGas";
102
+ params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
103
+ }): Promise<`0x${string}`>;
104
+ (args: {
105
+ method: "eth_feeHistory";
106
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
107
+ }): Promise<import("viem").RpcFeeHistory>;
108
+ (args: {
109
+ method: "eth_gasPrice";
110
+ params?: undefined;
111
+ }): Promise<`0x${string}`>;
112
+ (args: {
113
+ method: "eth_getBalance";
114
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
115
+ }): Promise<`0x${string}`>;
116
+ (args: {
117
+ method: "eth_getBlockByHash";
118
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
119
+ }): Promise<import("viem").RpcBlock | null>;
120
+ (args: {
121
+ method: "eth_getBlockByNumber";
122
+ params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
123
+ }): Promise<import("viem").RpcBlock | null>;
124
+ (args: {
125
+ method: "eth_getBlockTransactionCountByHash";
126
+ params: [hash: `0x${string}`];
127
+ }): Promise<`0x${string}`>;
128
+ (args: {
129
+ method: "eth_getBlockTransactionCountByNumber";
130
+ params: [block: `0x${string}` | import("viem").BlockTag];
131
+ }): Promise<`0x${string}`>;
132
+ (args: {
133
+ method: "eth_getCode";
134
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
135
+ }): Promise<`0x${string}`>;
136
+ (args: {
137
+ method: "eth_getFilterChanges";
138
+ params: [filterId: `0x${string}`];
139
+ }): Promise<`0x${string}`[] | import("viem").RpcLog[]>;
140
+ (args: {
141
+ method: "eth_getFilterLogs";
142
+ params: [filterId: `0x${string}`];
143
+ }): Promise<import("viem").RpcLog[]>;
144
+ (args: {
145
+ method: "eth_getLogs";
146
+ params: [parameters: {
147
+ address?: `0x${string}` | `0x${string}`[] | undefined;
148
+ topics?: import("viem").LogTopic[] | undefined;
149
+ } & ({
150
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
151
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
152
+ blockHash?: undefined;
153
+ } | {
154
+ fromBlock?: undefined;
155
+ toBlock?: undefined;
156
+ blockHash?: `0x${string}` | undefined;
157
+ })];
158
+ }): Promise<import("viem").RpcLog[]>;
159
+ (args: {
160
+ method: "eth_getStorageAt";
161
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
162
+ }): Promise<`0x${string}`>;
163
+ (args: {
164
+ method: "eth_getTransactionByBlockHashAndIndex";
165
+ params: [hash: `0x${string}`, index: `0x${string}`];
166
+ }): Promise<import("viem").RpcTransaction | null>;
167
+ (args: {
168
+ method: "eth_getTransactionByBlockNumberAndIndex";
169
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
170
+ }): Promise<import("viem").RpcTransaction | null>;
171
+ (args: {
172
+ method: "eth_getTransactionByHash";
173
+ params: [hash: `0x${string}`];
174
+ }): Promise<import("viem").RpcTransaction | null>;
175
+ (args: {
176
+ method: "eth_getTransactionCount";
177
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
178
+ }): Promise<`0x${string}`>;
179
+ (args: {
180
+ method: "eth_getTransactionReceipt";
181
+ params: [hash: `0x${string}`];
182
+ }): Promise<import("viem").RpcTransactionReceipt | null>;
183
+ (args: {
184
+ method: "eth_getUncleByBlockHashAndIndex";
185
+ params: [hash: `0x${string}`, index: `0x${string}`];
186
+ }): Promise<import("viem").RpcUncle | null>;
187
+ (args: {
188
+ method: "eth_getUncleByBlockNumberAndIndex";
189
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
190
+ }): Promise<import("viem").RpcUncle | null>;
191
+ (args: {
192
+ method: "eth_getUncleCountByBlockHash";
193
+ params: [hash: `0x${string}`];
194
+ }): Promise<`0x${string}`>;
195
+ (args: {
196
+ method: "eth_getUncleCountByBlockNumber";
197
+ params: [block: `0x${string}` | import("viem").BlockTag];
198
+ }): Promise<`0x${string}`>;
199
+ (args: {
200
+ method: "eth_newBlockFilter";
201
+ params?: undefined;
202
+ }): Promise<`0x${string}`>;
203
+ (args: {
204
+ method: "eth_newFilter";
205
+ params: [filter: {
206
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
207
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
208
+ address?: `0x${string}` | `0x${string}`[] | undefined;
209
+ topics?: import("viem").LogTopic[] | undefined;
210
+ }];
211
+ }): Promise<`0x${string}`>;
212
+ (args: {
213
+ method: "eth_newPendingTransactionFilter";
214
+ params?: undefined;
215
+ }): Promise<`0x${string}`>;
216
+ (args: {
217
+ method: "eth_protocolVersion";
218
+ params?: undefined;
219
+ }): Promise<string>;
220
+ (args: {
221
+ method: "eth_sendRawTransaction";
222
+ params: [signedTransaction: `0x${string}`];
223
+ }): Promise<`0x${string}`>;
224
+ (args: {
225
+ method: "eth_uninstallFilter";
226
+ params: [filterId: `0x${string}`];
227
+ }): Promise<boolean>;
228
+ } & {
229
+ (args: {
230
+ method: "eth_sendTransaction";
231
+ params: [request: import("viem").RpcTransactionRequest];
232
+ }): Promise<`0x${string}`>;
233
+ (args: {
234
+ method: "eth_sign";
235
+ params: [address: `0x${string}`, data: `0x${string}`];
236
+ }): Promise<`0x${string}`>;
237
+ (args: {
238
+ method: "eth_signTransaction";
239
+ params: [request: import("viem").RpcTransactionRequest];
240
+ }): Promise<`0x${string}`>;
241
+ (args: {
242
+ method: "eth_signTypedData_v4";
243
+ params: [address: `0x${string}`, message: string];
244
+ }): Promise<`0x${string}`>;
245
+ (args: {
246
+ method: "eth_syncing";
247
+ params?: undefined;
248
+ }): Promise<false | import("viem").NetworkSync>;
249
+ (args: {
250
+ method: "personal_sign";
251
+ params: [data: `0x${string}`, address: `0x${string}`];
252
+ }): Promise<`0x${string}`>;
253
+ } & {
254
+ (args: {
255
+ method: "eth_accounts";
256
+ params?: undefined;
257
+ }): Promise<`0x${string}`[]>;
258
+ (args: {
259
+ method: "eth_chainId";
260
+ params?: undefined;
261
+ }): Promise<`0x${string}`>;
262
+ (args: {
263
+ method: "eth_requestAccounts";
264
+ params?: undefined;
265
+ }): Promise<`0x${string}`[]>;
266
+ (args: {
267
+ method: "wallet_requestPermissions";
268
+ params: [permissions: {
269
+ eth_accounts: Record<string, any>;
270
+ }];
271
+ }): Promise<import("viem").WalletPermission[]>;
272
+ (args: {
273
+ method: "wallet_getPermissions";
274
+ params?: undefined;
275
+ }): Promise<import("viem").WalletPermission[]>;
276
+ (args: {
277
+ method: "wallet_addEthereumChain";
278
+ params: [chain: import("viem").AddEthereumChainParameter];
279
+ }): Promise<null>;
280
+ (args: {
281
+ method: "wallet_switchEthereumChain";
282
+ params: [chain: {
283
+ chainId: string;
284
+ }];
285
+ }): Promise<null>;
286
+ (args: {
287
+ method: "wallet_watchAsset";
288
+ params: import("viem").WatchAssetParams;
289
+ }): Promise<boolean>;
290
+ };
291
+ transport: import("viem").TransportConfig<"custom", {
292
+ (args: {
293
+ method: "web3_clientVersion";
294
+ params?: undefined;
295
+ }): Promise<string>;
296
+ (args: {
297
+ method: "web3_sha3";
298
+ params: [data: `0x${string}`];
299
+ }): Promise<string>;
300
+ (args: {
301
+ method: "net_listening";
302
+ params?: undefined;
303
+ }): Promise<boolean>;
304
+ (args: {
305
+ method: "net_peerCount";
306
+ params?: undefined;
307
+ }): Promise<`0x${string}`>;
308
+ (args: {
309
+ method: "net_version";
310
+ params?: undefined;
311
+ }): Promise<`0x${string}`>;
312
+ (args: {
313
+ method: "eth_blockNumber";
314
+ params?: undefined;
315
+ }): Promise<`0x${string}`>;
316
+ (args: {
317
+ method: "eth_call";
318
+ params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
319
+ }): Promise<`0x${string}`>;
320
+ (args: {
321
+ method: "eth_chainId";
322
+ params?: undefined;
323
+ }): Promise<`0x${string}`>;
324
+ (args: {
325
+ method: "eth_coinbase";
326
+ params?: undefined;
327
+ }): Promise<`0x${string}`>;
328
+ (args: {
329
+ method: "eth_estimateGas";
330
+ params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
331
+ }): Promise<`0x${string}`>;
332
+ (args: {
333
+ method: "eth_feeHistory";
334
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
335
+ }): Promise<import("viem").RpcFeeHistory>;
336
+ (args: {
337
+ method: "eth_gasPrice";
338
+ params?: undefined;
339
+ }): Promise<`0x${string}`>;
340
+ (args: {
341
+ method: "eth_getBalance";
342
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
343
+ }): Promise<`0x${string}`>;
344
+ (args: {
345
+ method: "eth_getBlockByHash";
346
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
347
+ }): Promise<import("viem").RpcBlock | null>;
348
+ (args: {
349
+ method: "eth_getBlockByNumber";
350
+ params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
351
+ }): Promise<import("viem").RpcBlock | null>;
352
+ (args: {
353
+ method: "eth_getBlockTransactionCountByHash";
354
+ params: [hash: `0x${string}`];
355
+ }): Promise<`0x${string}`>;
356
+ (args: {
357
+ method: "eth_getBlockTransactionCountByNumber";
358
+ params: [block: `0x${string}` | import("viem").BlockTag];
359
+ }): Promise<`0x${string}`>;
360
+ (args: {
361
+ method: "eth_getCode";
362
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
363
+ }): Promise<`0x${string}`>;
364
+ (args: {
365
+ method: "eth_getFilterChanges";
366
+ params: [filterId: `0x${string}`];
367
+ }): Promise<`0x${string}`[] | import("viem").RpcLog[]>;
368
+ (args: {
369
+ method: "eth_getFilterLogs";
370
+ params: [filterId: `0x${string}`];
371
+ }): Promise<import("viem").RpcLog[]>;
372
+ (args: {
373
+ method: "eth_getLogs";
374
+ params: [parameters: {
375
+ address?: `0x${string}` | `0x${string}`[] | undefined;
376
+ topics?: import("viem").LogTopic[] | undefined;
377
+ } & ({
378
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
379
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
380
+ blockHash?: undefined;
381
+ } | {
382
+ fromBlock?: undefined;
383
+ toBlock?: undefined;
384
+ blockHash?: `0x${string}` | undefined;
385
+ })];
386
+ }): Promise<import("viem").RpcLog[]>;
387
+ (args: {
388
+ method: "eth_getStorageAt";
389
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
390
+ }): Promise<`0x${string}`>;
391
+ (args: {
392
+ method: "eth_getTransactionByBlockHashAndIndex";
393
+ params: [hash: `0x${string}`, index: `0x${string}`];
394
+ }): Promise<import("viem").RpcTransaction | null>;
395
+ (args: {
396
+ method: "eth_getTransactionByBlockNumberAndIndex";
397
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
398
+ }): Promise<import("viem").RpcTransaction | null>;
399
+ (args: {
400
+ method: "eth_getTransactionByHash";
401
+ params: [hash: `0x${string}`];
402
+ }): Promise<import("viem").RpcTransaction | null>;
403
+ (args: {
404
+ method: "eth_getTransactionCount";
405
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
406
+ }): Promise<`0x${string}`>;
407
+ (args: {
408
+ method: "eth_getTransactionReceipt";
409
+ params: [hash: `0x${string}`];
410
+ }): Promise<import("viem").RpcTransactionReceipt | null>;
411
+ (args: {
412
+ method: "eth_getUncleByBlockHashAndIndex";
413
+ params: [hash: `0x${string}`, index: `0x${string}`];
414
+ }): Promise<import("viem").RpcUncle | null>;
415
+ (args: {
416
+ method: "eth_getUncleByBlockNumberAndIndex";
417
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
418
+ }): Promise<import("viem").RpcUncle | null>;
419
+ (args: {
420
+ method: "eth_getUncleCountByBlockHash";
421
+ params: [hash: `0x${string}`];
422
+ }): Promise<`0x${string}`>;
423
+ (args: {
424
+ method: "eth_getUncleCountByBlockNumber";
425
+ params: [block: `0x${string}` | import("viem").BlockTag];
426
+ }): Promise<`0x${string}`>;
427
+ (args: {
428
+ method: "eth_newBlockFilter";
429
+ params?: undefined;
430
+ }): Promise<`0x${string}`>;
431
+ (args: {
432
+ method: "eth_newFilter";
433
+ params: [filter: {
434
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
435
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
436
+ address?: `0x${string}` | `0x${string}`[] | undefined;
437
+ topics?: import("viem").LogTopic[] | undefined;
438
+ }];
439
+ }): Promise<`0x${string}`>;
440
+ (args: {
441
+ method: "eth_newPendingTransactionFilter";
442
+ params?: undefined;
443
+ }): Promise<`0x${string}`>;
444
+ (args: {
445
+ method: "eth_protocolVersion";
446
+ params?: undefined;
447
+ }): Promise<string>;
448
+ (args: {
449
+ method: "eth_sendRawTransaction";
450
+ params: [signedTransaction: `0x${string}`];
451
+ }): Promise<`0x${string}`>;
452
+ (args: {
453
+ method: "eth_uninstallFilter";
454
+ params: [filterId: `0x${string}`];
455
+ }): Promise<boolean>;
456
+ } & {
457
+ (args: {
458
+ method: "eth_sendTransaction";
459
+ params: [request: import("viem").RpcTransactionRequest];
460
+ }): Promise<`0x${string}`>;
461
+ (args: {
462
+ method: "eth_sign";
463
+ params: [address: `0x${string}`, data: `0x${string}`];
464
+ }): Promise<`0x${string}`>;
465
+ (args: {
466
+ method: "eth_signTransaction";
467
+ params: [request: import("viem").RpcTransactionRequest];
468
+ }): Promise<`0x${string}`>;
469
+ (args: {
470
+ method: "eth_signTypedData_v4";
471
+ params: [address: `0x${string}`, message: string];
472
+ }): Promise<`0x${string}`>;
473
+ (args: {
474
+ method: "eth_syncing";
475
+ params?: undefined;
476
+ }): Promise<false | import("viem").NetworkSync>;
477
+ (args: {
478
+ method: "personal_sign";
479
+ params: [data: `0x${string}`, address: `0x${string}`];
480
+ }): Promise<`0x${string}`>;
481
+ } & {
482
+ (args: {
483
+ method: "eth_accounts";
484
+ params?: undefined;
485
+ }): Promise<`0x${string}`[]>;
486
+ (args: {
487
+ method: "eth_chainId";
488
+ params?: undefined;
489
+ }): Promise<`0x${string}`>;
490
+ (args: {
491
+ method: "eth_requestAccounts";
492
+ params?: undefined;
493
+ }): Promise<`0x${string}`[]>;
494
+ (args: {
495
+ method: "wallet_requestPermissions";
496
+ params: [permissions: {
497
+ eth_accounts: Record<string, any>;
498
+ }];
499
+ }): Promise<import("viem").WalletPermission[]>;
500
+ (args: {
501
+ method: "wallet_getPermissions";
502
+ params?: undefined;
503
+ }): Promise<import("viem").WalletPermission[]>;
504
+ (args: {
505
+ method: "wallet_addEthereumChain";
506
+ params: [chain: import("viem").AddEthereumChainParameter];
507
+ }): Promise<null>;
508
+ (args: {
509
+ method: "wallet_switchEthereumChain";
510
+ params: [chain: {
511
+ chainId: string;
512
+ }];
513
+ }): Promise<null>;
514
+ (args: {
515
+ method: "wallet_watchAsset";
516
+ params: import("viem").WatchAssetParams;
517
+ }): Promise<boolean>;
518
+ }> & ((...args: any) => Promise<any>);
519
+ type: string;
520
+ uid: string;
521
+ addChain: (args: import("viem").AddChainParameters) => Promise<void>;
522
+ deployContract: <TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, Chain | {
523
+ readonly id: 1;
524
+ readonly network: "homestead";
525
+ readonly name: "Ethereum";
526
+ readonly nativeCurrency: {
527
+ readonly name: "Ether";
528
+ readonly symbol: "ETH";
529
+ readonly decimals: 18;
530
+ };
531
+ readonly rpcUrls: {
532
+ readonly alchemy: {
533
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
534
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
535
+ };
536
+ readonly infura: {
537
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
538
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
539
+ };
540
+ readonly default: {
541
+ readonly http: readonly ["https://cloudflare-eth.com"];
542
+ };
543
+ readonly public: {
544
+ readonly http: readonly ["https://cloudflare-eth.com"];
545
+ };
546
+ };
547
+ readonly blockExplorers: {
548
+ readonly etherscan: {
549
+ readonly name: "Etherscan";
550
+ readonly url: "https://etherscan.io";
551
+ };
552
+ readonly default: {
553
+ readonly name: "Etherscan";
554
+ readonly url: "https://etherscan.io";
555
+ };
556
+ };
557
+ readonly contracts: {
558
+ readonly ensRegistry: {
559
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
560
+ };
561
+ readonly ensUniversalResolver: {
562
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
563
+ readonly blockCreated: 16773775;
564
+ };
565
+ readonly multicall3: {
566
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
567
+ readonly blockCreated: 14353601;
568
+ };
569
+ };
570
+ }, undefined, TChainOverride>) => Promise<`0x${string}`>;
571
+ getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
572
+ getChainId: () => Promise<number>;
573
+ getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
574
+ requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
575
+ requestPermissions: (args: {
576
+ [x: string]: Record<string, any>;
577
+ eth_accounts: Record<string, any>;
578
+ }) => Promise<import("viem").RequestPermissionsReturnType>;
579
+ sendTransaction: <TChainOverride_1 extends Chain | undefined>(args: import("viem").SendTransactionParameters<Chain | {
580
+ readonly id: 1;
581
+ readonly network: "homestead";
582
+ readonly name: "Ethereum";
583
+ readonly nativeCurrency: {
584
+ readonly name: "Ether";
585
+ readonly symbol: "ETH";
586
+ readonly decimals: 18;
587
+ };
588
+ readonly rpcUrls: {
589
+ readonly alchemy: {
590
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
591
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
592
+ };
593
+ readonly infura: {
594
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
595
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
596
+ };
597
+ readonly default: {
598
+ readonly http: readonly ["https://cloudflare-eth.com"];
599
+ };
600
+ readonly public: {
601
+ readonly http: readonly ["https://cloudflare-eth.com"];
602
+ };
603
+ };
604
+ readonly blockExplorers: {
605
+ readonly etherscan: {
606
+ readonly name: "Etherscan";
607
+ readonly url: "https://etherscan.io";
608
+ };
609
+ readonly default: {
610
+ readonly name: "Etherscan";
611
+ readonly url: "https://etherscan.io";
612
+ };
613
+ };
614
+ readonly contracts: {
615
+ readonly ensRegistry: {
616
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
617
+ };
618
+ readonly ensUniversalResolver: {
619
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
620
+ readonly blockCreated: 16773775;
621
+ };
622
+ readonly multicall3: {
623
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
624
+ readonly blockCreated: 14353601;
625
+ };
626
+ };
627
+ }, undefined, TChainOverride_1>) => Promise<`0x${string}`>;
628
+ signMessage: (args: import("viem").SignMessageParameters<undefined>) => Promise<`0x${string}`>;
629
+ signTypedData: <TTypedData extends {
630
+ [x: string]: readonly import("viem").TypedDataParameter[];
631
+ [x: `string[${string}]`]: undefined;
632
+ [x: `function[${string}]`]: undefined;
633
+ [x: `address[${string}]`]: undefined;
634
+ [x: `bool[${string}]`]: undefined;
635
+ [x: `bytes[${string}]`]: undefined;
636
+ [x: `bytes2[${string}]`]: undefined;
637
+ [x: `bytes1[${string}]`]: undefined;
638
+ [x: `bytes5[${string}]`]: undefined;
639
+ [x: `bytes32[${string}]`]: undefined;
640
+ [x: `bytes3[${string}]`]: undefined;
641
+ [x: `bytes4[${string}]`]: undefined;
642
+ [x: `bytes6[${string}]`]: undefined;
643
+ [x: `bytes7[${string}]`]: undefined;
644
+ [x: `bytes8[${string}]`]: undefined;
645
+ [x: `bytes9[${string}]`]: undefined;
646
+ [x: `bytes10[${string}]`]: undefined;
647
+ [x: `bytes11[${string}]`]: undefined;
648
+ [x: `bytes12[${string}]`]: undefined;
649
+ [x: `bytes13[${string}]`]: undefined;
650
+ [x: `bytes14[${string}]`]: undefined;
651
+ [x: `bytes15[${string}]`]: undefined;
652
+ [x: `bytes16[${string}]`]: undefined;
653
+ [x: `bytes17[${string}]`]: undefined;
654
+ [x: `bytes18[${string}]`]: undefined;
655
+ [x: `bytes19[${string}]`]: undefined;
656
+ [x: `bytes20[${string}]`]: undefined;
657
+ [x: `bytes21[${string}]`]: undefined;
658
+ [x: `bytes22[${string}]`]: undefined;
659
+ [x: `bytes23[${string}]`]: undefined;
660
+ [x: `bytes24[${string}]`]: undefined;
661
+ [x: `bytes25[${string}]`]: undefined;
662
+ [x: `bytes26[${string}]`]: undefined;
663
+ [x: `bytes27[${string}]`]: undefined;
664
+ [x: `bytes28[${string}]`]: undefined;
665
+ [x: `bytes29[${string}]`]: undefined;
666
+ [x: `bytes30[${string}]`]: undefined;
667
+ [x: `bytes31[${string}]`]: undefined;
668
+ [x: `int[${string}]`]: undefined;
669
+ [x: `int32[${string}]`]: undefined;
670
+ [x: `int8[${string}]`]: undefined;
671
+ [x: `int16[${string}]`]: undefined;
672
+ [x: `int24[${string}]`]: undefined;
673
+ [x: `int40[${string}]`]: undefined;
674
+ [x: `int48[${string}]`]: undefined;
675
+ [x: `int56[${string}]`]: undefined;
676
+ [x: `int64[${string}]`]: undefined;
677
+ [x: `int72[${string}]`]: undefined;
678
+ [x: `int80[${string}]`]: undefined;
679
+ [x: `int88[${string}]`]: undefined;
680
+ [x: `int96[${string}]`]: undefined;
681
+ [x: `int104[${string}]`]: undefined;
682
+ [x: `int112[${string}]`]: undefined;
683
+ [x: `int120[${string}]`]: undefined;
684
+ [x: `int128[${string}]`]: undefined;
685
+ [x: `int136[${string}]`]: undefined;
686
+ [x: `int144[${string}]`]: undefined;
687
+ [x: `int152[${string}]`]: undefined;
688
+ [x: `int160[${string}]`]: undefined;
689
+ [x: `int168[${string}]`]: undefined;
690
+ [x: `int176[${string}]`]: undefined;
691
+ [x: `int184[${string}]`]: undefined;
692
+ [x: `int192[${string}]`]: undefined;
693
+ [x: `int200[${string}]`]: undefined;
694
+ [x: `int208[${string}]`]: undefined;
695
+ [x: `int216[${string}]`]: undefined;
696
+ [x: `int224[${string}]`]: undefined;
697
+ [x: `int232[${string}]`]: undefined;
698
+ [x: `int240[${string}]`]: undefined;
699
+ [x: `int248[${string}]`]: undefined;
700
+ [x: `int256[${string}]`]: undefined;
701
+ [x: `uint[${string}]`]: undefined;
702
+ [x: `uint32[${string}]`]: undefined;
703
+ [x: `uint8[${string}]`]: undefined;
704
+ [x: `uint16[${string}]`]: undefined;
705
+ [x: `uint24[${string}]`]: undefined;
706
+ [x: `uint40[${string}]`]: undefined;
707
+ [x: `uint48[${string}]`]: undefined;
708
+ [x: `uint56[${string}]`]: undefined;
709
+ [x: `uint64[${string}]`]: undefined;
710
+ [x: `uint72[${string}]`]: undefined;
711
+ [x: `uint80[${string}]`]: undefined;
712
+ [x: `uint88[${string}]`]: undefined;
713
+ [x: `uint96[${string}]`]: undefined;
714
+ [x: `uint104[${string}]`]: undefined;
715
+ [x: `uint112[${string}]`]: undefined;
716
+ [x: `uint120[${string}]`]: undefined;
717
+ [x: `uint128[${string}]`]: undefined;
718
+ [x: `uint136[${string}]`]: undefined;
719
+ [x: `uint144[${string}]`]: undefined;
720
+ [x: `uint152[${string}]`]: undefined;
721
+ [x: `uint160[${string}]`]: undefined;
722
+ [x: `uint168[${string}]`]: undefined;
723
+ [x: `uint176[${string}]`]: undefined;
724
+ [x: `uint184[${string}]`]: undefined;
725
+ [x: `uint192[${string}]`]: undefined;
726
+ [x: `uint200[${string}]`]: undefined;
727
+ [x: `uint208[${string}]`]: undefined;
728
+ [x: `uint216[${string}]`]: undefined;
729
+ [x: `uint224[${string}]`]: undefined;
730
+ [x: `uint232[${string}]`]: undefined;
731
+ [x: `uint240[${string}]`]: undefined;
732
+ [x: `uint248[${string}]`]: undefined;
733
+ [x: `uint256[${string}]`]: undefined;
734
+ string?: undefined;
735
+ address?: undefined;
736
+ bool?: undefined;
737
+ bytes?: undefined;
738
+ bytes2?: undefined;
739
+ bytes1?: undefined;
740
+ bytes5?: undefined;
741
+ bytes32?: undefined;
742
+ bytes3?: undefined;
743
+ bytes4?: undefined;
744
+ bytes6?: undefined;
745
+ bytes7?: undefined;
746
+ bytes8?: undefined;
747
+ bytes9?: undefined;
748
+ bytes10?: undefined;
749
+ bytes11?: undefined;
750
+ bytes12?: undefined;
751
+ bytes13?: undefined;
752
+ bytes14?: undefined;
753
+ bytes15?: undefined;
754
+ bytes16?: undefined;
755
+ bytes17?: undefined;
756
+ bytes18?: undefined;
757
+ bytes19?: undefined;
758
+ bytes20?: undefined;
759
+ bytes21?: undefined;
760
+ bytes22?: undefined;
761
+ bytes23?: undefined;
762
+ bytes24?: undefined;
763
+ bytes25?: undefined;
764
+ bytes26?: undefined;
765
+ bytes27?: undefined;
766
+ bytes28?: undefined;
767
+ bytes29?: undefined;
768
+ bytes30?: undefined;
769
+ bytes31?: undefined;
770
+ int32?: undefined;
771
+ int8?: undefined;
772
+ int16?: undefined;
773
+ int24?: undefined;
774
+ int40?: undefined;
775
+ int48?: undefined;
776
+ int56?: undefined;
777
+ int64?: undefined;
778
+ int72?: undefined;
779
+ int80?: undefined;
780
+ int88?: undefined;
781
+ int96?: undefined;
782
+ int104?: undefined;
783
+ int112?: undefined;
784
+ int120?: undefined;
785
+ int128?: undefined;
786
+ int136?: undefined;
787
+ int144?: undefined;
788
+ int152?: undefined;
789
+ int160?: undefined;
790
+ int168?: undefined;
791
+ int176?: undefined;
792
+ int184?: undefined;
793
+ int192?: undefined;
794
+ int200?: undefined;
795
+ int208?: undefined;
796
+ int216?: undefined;
797
+ int224?: undefined;
798
+ int232?: undefined;
799
+ int240?: undefined;
800
+ int248?: undefined;
801
+ int256?: undefined;
802
+ uint32?: undefined;
803
+ uint8?: undefined;
804
+ uint16?: undefined;
805
+ uint24?: undefined;
806
+ uint40?: undefined;
807
+ uint48?: undefined;
808
+ uint56?: undefined;
809
+ uint64?: undefined;
810
+ uint72?: undefined;
811
+ uint80?: undefined;
812
+ uint88?: undefined;
813
+ uint96?: undefined;
814
+ uint104?: undefined;
815
+ uint112?: undefined;
816
+ uint120?: undefined;
817
+ uint128?: undefined;
818
+ uint136?: undefined;
819
+ uint144?: undefined;
820
+ uint152?: undefined;
821
+ uint160?: undefined;
822
+ uint168?: undefined;
823
+ uint176?: undefined;
824
+ uint184?: undefined;
825
+ uint192?: undefined;
826
+ uint200?: undefined;
827
+ uint208?: undefined;
828
+ uint216?: undefined;
829
+ uint224?: undefined;
830
+ uint232?: undefined;
831
+ uint240?: undefined;
832
+ uint248?: undefined;
833
+ uint256?: undefined;
834
+ } | {
835
+ [key: string]: unknown;
836
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, undefined>) => Promise<`0x${string}`>;
837
+ switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
838
+ watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
839
+ writeContract: <TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends string, TChainOverride_2 extends Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, Chain | {
840
+ readonly id: 1;
841
+ readonly network: "homestead";
842
+ readonly name: "Ethereum";
843
+ readonly nativeCurrency: {
844
+ readonly name: "Ether";
845
+ readonly symbol: "ETH";
846
+ readonly decimals: 18;
847
+ };
848
+ readonly rpcUrls: {
849
+ readonly alchemy: {
850
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
851
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
852
+ };
853
+ readonly infura: {
854
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
855
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
856
+ };
857
+ readonly default: {
858
+ readonly http: readonly ["https://cloudflare-eth.com"];
859
+ };
860
+ readonly public: {
861
+ readonly http: readonly ["https://cloudflare-eth.com"];
862
+ };
863
+ };
864
+ readonly blockExplorers: {
865
+ readonly etherscan: {
866
+ readonly name: "Etherscan";
867
+ readonly url: "https://etherscan.io";
868
+ };
869
+ readonly default: {
870
+ readonly name: "Etherscan";
871
+ readonly url: "https://etherscan.io";
872
+ };
873
+ };
874
+ readonly contracts: {
875
+ readonly ensRegistry: {
876
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
877
+ };
878
+ readonly ensUniversalResolver: {
879
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
880
+ readonly blockCreated: 16773775;
881
+ };
882
+ readonly multicall3: {
883
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
884
+ readonly blockCreated: 14353601;
885
+ };
886
+ };
887
+ }, undefined, TChainOverride_2>) => Promise<`0x${string}`>;
888
+ account: undefined;
889
+ };
890
+ export declare const convertSignerToClient: ({ signer, viemChain }: web3SignerConversionInterface) => {
891
+ chain: Chain | {
892
+ readonly id: 1;
893
+ readonly network: "homestead";
894
+ readonly name: "Ethereum";
895
+ readonly nativeCurrency: {
896
+ readonly name: "Ether";
897
+ readonly symbol: "ETH";
898
+ readonly decimals: 18;
899
+ };
900
+ readonly rpcUrls: {
901
+ readonly alchemy: {
902
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
903
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
904
+ };
905
+ readonly infura: {
906
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
907
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
908
+ };
909
+ readonly default: {
910
+ readonly http: readonly ["https://cloudflare-eth.com"];
911
+ };
912
+ readonly public: {
913
+ readonly http: readonly ["https://cloudflare-eth.com"];
914
+ };
915
+ };
916
+ readonly blockExplorers: {
917
+ readonly etherscan: {
918
+ readonly name: "Etherscan";
919
+ readonly url: "https://etherscan.io";
920
+ };
921
+ readonly default: {
922
+ readonly name: "Etherscan";
923
+ readonly url: "https://etherscan.io";
924
+ };
925
+ };
926
+ readonly contracts: {
927
+ readonly ensRegistry: {
928
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
929
+ };
930
+ readonly ensUniversalResolver: {
931
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
932
+ readonly blockCreated: 16773775;
933
+ };
934
+ readonly multicall3: {
935
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
936
+ readonly blockCreated: 14353601;
937
+ };
938
+ };
939
+ };
940
+ key: string;
941
+ name: string;
942
+ pollingInterval: number;
943
+ request: {
944
+ (args: {
945
+ method: "web3_clientVersion";
946
+ params?: undefined;
947
+ }): Promise<string>;
948
+ (args: {
949
+ method: "web3_sha3";
950
+ params: [data: `0x${string}`];
951
+ }): Promise<string>;
952
+ (args: {
953
+ method: "net_listening";
954
+ params?: undefined;
955
+ }): Promise<boolean>;
956
+ (args: {
957
+ method: "net_peerCount";
958
+ params?: undefined;
959
+ }): Promise<`0x${string}`>;
960
+ (args: {
961
+ method: "net_version";
962
+ params?: undefined;
963
+ }): Promise<`0x${string}`>;
964
+ (args: {
965
+ method: "eth_blockNumber";
966
+ params?: undefined;
967
+ }): Promise<`0x${string}`>;
968
+ (args: {
969
+ method: "eth_call";
970
+ params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
971
+ }): Promise<`0x${string}`>;
972
+ (args: {
973
+ method: "eth_chainId";
974
+ params?: undefined;
975
+ }): Promise<`0x${string}`>;
976
+ (args: {
977
+ method: "eth_coinbase";
978
+ params?: undefined;
979
+ }): Promise<`0x${string}`>;
980
+ (args: {
981
+ method: "eth_estimateGas";
982
+ params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
983
+ }): Promise<`0x${string}`>;
984
+ (args: {
985
+ method: "eth_feeHistory";
986
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
987
+ }): Promise<import("viem").RpcFeeHistory>;
988
+ (args: {
989
+ method: "eth_gasPrice";
990
+ params?: undefined;
991
+ }): Promise<`0x${string}`>;
992
+ (args: {
993
+ method: "eth_getBalance";
994
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
995
+ }): Promise<`0x${string}`>;
996
+ (args: {
997
+ method: "eth_getBlockByHash";
998
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
999
+ }): Promise<import("viem").RpcBlock | null>;
1000
+ (args: {
1001
+ method: "eth_getBlockByNumber";
1002
+ params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
1003
+ }): Promise<import("viem").RpcBlock | null>;
1004
+ (args: {
1005
+ method: "eth_getBlockTransactionCountByHash";
1006
+ params: [hash: `0x${string}`];
1007
+ }): Promise<`0x${string}`>;
1008
+ (args: {
1009
+ method: "eth_getBlockTransactionCountByNumber";
1010
+ params: [block: `0x${string}` | import("viem").BlockTag];
1011
+ }): Promise<`0x${string}`>;
1012
+ (args: {
1013
+ method: "eth_getCode";
1014
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1015
+ }): Promise<`0x${string}`>;
1016
+ (args: {
1017
+ method: "eth_getFilterChanges";
1018
+ params: [filterId: `0x${string}`];
1019
+ }): Promise<`0x${string}`[] | import("viem").RpcLog[]>;
1020
+ (args: {
1021
+ method: "eth_getFilterLogs";
1022
+ params: [filterId: `0x${string}`];
1023
+ }): Promise<import("viem").RpcLog[]>;
1024
+ (args: {
1025
+ method: "eth_getLogs";
1026
+ params: [parameters: {
1027
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1028
+ topics?: import("viem").LogTopic[] | undefined;
1029
+ } & ({
1030
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1031
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1032
+ blockHash?: undefined;
1033
+ } | {
1034
+ fromBlock?: undefined;
1035
+ toBlock?: undefined;
1036
+ blockHash?: `0x${string}` | undefined;
1037
+ })];
1038
+ }): Promise<import("viem").RpcLog[]>;
1039
+ (args: {
1040
+ method: "eth_getStorageAt";
1041
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1042
+ }): Promise<`0x${string}`>;
1043
+ (args: {
1044
+ method: "eth_getTransactionByBlockHashAndIndex";
1045
+ params: [hash: `0x${string}`, index: `0x${string}`];
1046
+ }): Promise<import("viem").RpcTransaction | null>;
1047
+ (args: {
1048
+ method: "eth_getTransactionByBlockNumberAndIndex";
1049
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1050
+ }): Promise<import("viem").RpcTransaction | null>;
1051
+ (args: {
1052
+ method: "eth_getTransactionByHash";
1053
+ params: [hash: `0x${string}`];
1054
+ }): Promise<import("viem").RpcTransaction | null>;
1055
+ (args: {
1056
+ method: "eth_getTransactionCount";
1057
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1058
+ }): Promise<`0x${string}`>;
1059
+ (args: {
1060
+ method: "eth_getTransactionReceipt";
1061
+ params: [hash: `0x${string}`];
1062
+ }): Promise<import("viem").RpcTransactionReceipt | null>;
1063
+ (args: {
1064
+ method: "eth_getUncleByBlockHashAndIndex";
1065
+ params: [hash: `0x${string}`, index: `0x${string}`];
1066
+ }): Promise<import("viem").RpcUncle | null>;
1067
+ (args: {
1068
+ method: "eth_getUncleByBlockNumberAndIndex";
1069
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1070
+ }): Promise<import("viem").RpcUncle | null>;
1071
+ (args: {
1072
+ method: "eth_getUncleCountByBlockHash";
1073
+ params: [hash: `0x${string}`];
1074
+ }): Promise<`0x${string}`>;
1075
+ (args: {
1076
+ method: "eth_getUncleCountByBlockNumber";
1077
+ params: [block: `0x${string}` | import("viem").BlockTag];
1078
+ }): Promise<`0x${string}`>;
1079
+ (args: {
1080
+ method: "eth_newBlockFilter";
1081
+ params?: undefined;
1082
+ }): Promise<`0x${string}`>;
1083
+ (args: {
1084
+ method: "eth_newFilter";
1085
+ params: [filter: {
1086
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1087
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1088
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1089
+ topics?: import("viem").LogTopic[] | undefined;
1090
+ }];
1091
+ }): Promise<`0x${string}`>;
1092
+ (args: {
1093
+ method: "eth_newPendingTransactionFilter";
1094
+ params?: undefined;
1095
+ }): Promise<`0x${string}`>;
1096
+ (args: {
1097
+ method: "eth_protocolVersion";
1098
+ params?: undefined;
1099
+ }): Promise<string>;
1100
+ (args: {
1101
+ method: "eth_sendRawTransaction";
1102
+ params: [signedTransaction: `0x${string}`];
1103
+ }): Promise<`0x${string}`>;
1104
+ (args: {
1105
+ method: "eth_uninstallFilter";
1106
+ params: [filterId: `0x${string}`];
1107
+ }): Promise<boolean>;
1108
+ } & {
1109
+ (args: {
1110
+ method: "eth_sendTransaction";
1111
+ params: [request: import("viem").RpcTransactionRequest];
1112
+ }): Promise<`0x${string}`>;
1113
+ (args: {
1114
+ method: "eth_sign";
1115
+ params: [address: `0x${string}`, data: `0x${string}`];
1116
+ }): Promise<`0x${string}`>;
1117
+ (args: {
1118
+ method: "eth_signTransaction";
1119
+ params: [request: import("viem").RpcTransactionRequest];
1120
+ }): Promise<`0x${string}`>;
1121
+ (args: {
1122
+ method: "eth_signTypedData_v4";
1123
+ params: [address: `0x${string}`, message: string];
1124
+ }): Promise<`0x${string}`>;
1125
+ (args: {
1126
+ method: "eth_syncing";
1127
+ params?: undefined;
1128
+ }): Promise<false | import("viem").NetworkSync>;
1129
+ (args: {
1130
+ method: "personal_sign";
1131
+ params: [data: `0x${string}`, address: `0x${string}`];
1132
+ }): Promise<`0x${string}`>;
1133
+ } & {
1134
+ (args: {
1135
+ method: "eth_accounts";
1136
+ params?: undefined;
1137
+ }): Promise<`0x${string}`[]>;
1138
+ (args: {
1139
+ method: "eth_chainId";
1140
+ params?: undefined;
1141
+ }): Promise<`0x${string}`>;
1142
+ (args: {
1143
+ method: "eth_requestAccounts";
1144
+ params?: undefined;
1145
+ }): Promise<`0x${string}`[]>;
1146
+ (args: {
1147
+ method: "wallet_requestPermissions";
1148
+ params: [permissions: {
1149
+ eth_accounts: Record<string, any>;
1150
+ }];
1151
+ }): Promise<import("viem").WalletPermission[]>;
1152
+ (args: {
1153
+ method: "wallet_getPermissions";
1154
+ params?: undefined;
1155
+ }): Promise<import("viem").WalletPermission[]>;
1156
+ (args: {
1157
+ method: "wallet_addEthereumChain";
1158
+ params: [chain: import("viem").AddEthereumChainParameter];
1159
+ }): Promise<null>;
1160
+ (args: {
1161
+ method: "wallet_switchEthereumChain";
1162
+ params: [chain: {
1163
+ chainId: string;
1164
+ }];
1165
+ }): Promise<null>;
1166
+ (args: {
1167
+ method: "wallet_watchAsset";
1168
+ params: import("viem").WatchAssetParams;
1169
+ }): Promise<boolean>;
1170
+ };
1171
+ transport: import("viem").TransportConfig<"custom", {
1172
+ (args: {
1173
+ method: "web3_clientVersion";
1174
+ params?: undefined;
1175
+ }): Promise<string>;
1176
+ (args: {
1177
+ method: "web3_sha3";
1178
+ params: [data: `0x${string}`];
1179
+ }): Promise<string>;
1180
+ (args: {
1181
+ method: "net_listening";
1182
+ params?: undefined;
1183
+ }): Promise<boolean>;
1184
+ (args: {
1185
+ method: "net_peerCount";
1186
+ params?: undefined;
1187
+ }): Promise<`0x${string}`>;
1188
+ (args: {
1189
+ method: "net_version";
1190
+ params?: undefined;
1191
+ }): Promise<`0x${string}`>;
1192
+ (args: {
1193
+ method: "eth_blockNumber";
1194
+ params?: undefined;
1195
+ }): Promise<`0x${string}`>;
1196
+ (args: {
1197
+ method: "eth_call";
1198
+ params: [request: Partial<import("viem").RpcTransactionRequest>, block?: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier | undefined];
1199
+ }): Promise<`0x${string}`>;
1200
+ (args: {
1201
+ method: "eth_chainId";
1202
+ params?: undefined;
1203
+ }): Promise<`0x${string}`>;
1204
+ (args: {
1205
+ method: "eth_coinbase";
1206
+ params?: undefined;
1207
+ }): Promise<`0x${string}`>;
1208
+ (args: {
1209
+ method: "eth_estimateGas";
1210
+ params: [parameters: import("viem").RpcTransactionRequest, block?: `0x${string}` | import("viem").BlockTag | undefined];
1211
+ }): Promise<`0x${string}`>;
1212
+ (args: {
1213
+ method: "eth_feeHistory";
1214
+ params: [blockCount: `0x${string}`, newestBlock: `0x${string}` | import("viem").BlockTag, rewardPercentiles: number[] | undefined];
1215
+ }): Promise<import("viem").RpcFeeHistory>;
1216
+ (args: {
1217
+ method: "eth_gasPrice";
1218
+ params?: undefined;
1219
+ }): Promise<`0x${string}`>;
1220
+ (args: {
1221
+ method: "eth_getBalance";
1222
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1223
+ }): Promise<`0x${string}`>;
1224
+ (args: {
1225
+ method: "eth_getBlockByHash";
1226
+ params: [hash: `0x${string}`, includeTransactionObjects: boolean];
1227
+ }): Promise<import("viem").RpcBlock | null>;
1228
+ (args: {
1229
+ method: "eth_getBlockByNumber";
1230
+ params: [block: `0x${string}` | import("viem").BlockTag, includeTransactionObjects: boolean];
1231
+ }): Promise<import("viem").RpcBlock | null>;
1232
+ (args: {
1233
+ method: "eth_getBlockTransactionCountByHash";
1234
+ params: [hash: `0x${string}`];
1235
+ }): Promise<`0x${string}`>;
1236
+ (args: {
1237
+ method: "eth_getBlockTransactionCountByNumber";
1238
+ params: [block: `0x${string}` | import("viem").BlockTag];
1239
+ }): Promise<`0x${string}`>;
1240
+ (args: {
1241
+ method: "eth_getCode";
1242
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1243
+ }): Promise<`0x${string}`>;
1244
+ (args: {
1245
+ method: "eth_getFilterChanges";
1246
+ params: [filterId: `0x${string}`];
1247
+ }): Promise<`0x${string}`[] | import("viem").RpcLog[]>;
1248
+ (args: {
1249
+ method: "eth_getFilterLogs";
1250
+ params: [filterId: `0x${string}`];
1251
+ }): Promise<import("viem").RpcLog[]>;
1252
+ (args: {
1253
+ method: "eth_getLogs";
1254
+ params: [parameters: {
1255
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1256
+ topics?: import("viem").LogTopic[] | undefined;
1257
+ } & ({
1258
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1259
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1260
+ blockHash?: undefined;
1261
+ } | {
1262
+ fromBlock?: undefined;
1263
+ toBlock?: undefined;
1264
+ blockHash?: `0x${string}` | undefined;
1265
+ })];
1266
+ }): Promise<import("viem").RpcLog[]>;
1267
+ (args: {
1268
+ method: "eth_getStorageAt";
1269
+ params: [address: `0x${string}`, index: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1270
+ }): Promise<`0x${string}`>;
1271
+ (args: {
1272
+ method: "eth_getTransactionByBlockHashAndIndex";
1273
+ params: [hash: `0x${string}`, index: `0x${string}`];
1274
+ }): Promise<import("viem").RpcTransaction | null>;
1275
+ (args: {
1276
+ method: "eth_getTransactionByBlockNumberAndIndex";
1277
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1278
+ }): Promise<import("viem").RpcTransaction | null>;
1279
+ (args: {
1280
+ method: "eth_getTransactionByHash";
1281
+ params: [hash: `0x${string}`];
1282
+ }): Promise<import("viem").RpcTransaction | null>;
1283
+ (args: {
1284
+ method: "eth_getTransactionCount";
1285
+ params: [address: `0x${string}`, block: `0x${string}` | import("viem").BlockTag | import("viem").RpcBlockIdentifier];
1286
+ }): Promise<`0x${string}`>;
1287
+ (args: {
1288
+ method: "eth_getTransactionReceipt";
1289
+ params: [hash: `0x${string}`];
1290
+ }): Promise<import("viem").RpcTransactionReceipt | null>;
1291
+ (args: {
1292
+ method: "eth_getUncleByBlockHashAndIndex";
1293
+ params: [hash: `0x${string}`, index: `0x${string}`];
1294
+ }): Promise<import("viem").RpcUncle | null>;
1295
+ (args: {
1296
+ method: "eth_getUncleByBlockNumberAndIndex";
1297
+ params: [block: `0x${string}` | import("viem").BlockTag, index: `0x${string}`];
1298
+ }): Promise<import("viem").RpcUncle | null>;
1299
+ (args: {
1300
+ method: "eth_getUncleCountByBlockHash";
1301
+ params: [hash: `0x${string}`];
1302
+ }): Promise<`0x${string}`>;
1303
+ (args: {
1304
+ method: "eth_getUncleCountByBlockNumber";
1305
+ params: [block: `0x${string}` | import("viem").BlockTag];
1306
+ }): Promise<`0x${string}`>;
1307
+ (args: {
1308
+ method: "eth_newBlockFilter";
1309
+ params?: undefined;
1310
+ }): Promise<`0x${string}`>;
1311
+ (args: {
1312
+ method: "eth_newFilter";
1313
+ params: [filter: {
1314
+ fromBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1315
+ toBlock?: `0x${string}` | import("viem").BlockTag | undefined;
1316
+ address?: `0x${string}` | `0x${string}`[] | undefined;
1317
+ topics?: import("viem").LogTopic[] | undefined;
1318
+ }];
1319
+ }): Promise<`0x${string}`>;
1320
+ (args: {
1321
+ method: "eth_newPendingTransactionFilter";
1322
+ params?: undefined;
1323
+ }): Promise<`0x${string}`>;
1324
+ (args: {
1325
+ method: "eth_protocolVersion";
1326
+ params?: undefined;
1327
+ }): Promise<string>;
1328
+ (args: {
1329
+ method: "eth_sendRawTransaction";
1330
+ params: [signedTransaction: `0x${string}`];
1331
+ }): Promise<`0x${string}`>;
1332
+ (args: {
1333
+ method: "eth_uninstallFilter";
1334
+ params: [filterId: `0x${string}`];
1335
+ }): Promise<boolean>;
1336
+ } & {
1337
+ (args: {
1338
+ method: "eth_sendTransaction";
1339
+ params: [request: import("viem").RpcTransactionRequest];
1340
+ }): Promise<`0x${string}`>;
1341
+ (args: {
1342
+ method: "eth_sign";
1343
+ params: [address: `0x${string}`, data: `0x${string}`];
1344
+ }): Promise<`0x${string}`>;
1345
+ (args: {
1346
+ method: "eth_signTransaction";
1347
+ params: [request: import("viem").RpcTransactionRequest];
1348
+ }): Promise<`0x${string}`>;
1349
+ (args: {
1350
+ method: "eth_signTypedData_v4";
1351
+ params: [address: `0x${string}`, message: string];
1352
+ }): Promise<`0x${string}`>;
1353
+ (args: {
1354
+ method: "eth_syncing";
1355
+ params?: undefined;
1356
+ }): Promise<false | import("viem").NetworkSync>;
1357
+ (args: {
1358
+ method: "personal_sign";
1359
+ params: [data: `0x${string}`, address: `0x${string}`];
1360
+ }): Promise<`0x${string}`>;
1361
+ } & {
1362
+ (args: {
1363
+ method: "eth_accounts";
1364
+ params?: undefined;
1365
+ }): Promise<`0x${string}`[]>;
1366
+ (args: {
1367
+ method: "eth_chainId";
1368
+ params?: undefined;
1369
+ }): Promise<`0x${string}`>;
1370
+ (args: {
1371
+ method: "eth_requestAccounts";
1372
+ params?: undefined;
1373
+ }): Promise<`0x${string}`[]>;
1374
+ (args: {
1375
+ method: "wallet_requestPermissions";
1376
+ params: [permissions: {
1377
+ eth_accounts: Record<string, any>;
1378
+ }];
1379
+ }): Promise<import("viem").WalletPermission[]>;
1380
+ (args: {
1381
+ method: "wallet_getPermissions";
1382
+ params?: undefined;
1383
+ }): Promise<import("viem").WalletPermission[]>;
1384
+ (args: {
1385
+ method: "wallet_addEthereumChain";
1386
+ params: [chain: import("viem").AddEthereumChainParameter];
1387
+ }): Promise<null>;
1388
+ (args: {
1389
+ method: "wallet_switchEthereumChain";
1390
+ params: [chain: {
1391
+ chainId: string;
1392
+ }];
1393
+ }): Promise<null>;
1394
+ (args: {
1395
+ method: "wallet_watchAsset";
1396
+ params: import("viem").WatchAssetParams;
1397
+ }): Promise<boolean>;
1398
+ }> & ((...args: any) => Promise<any>);
1399
+ type: string;
1400
+ uid: string;
1401
+ addChain: (args: import("viem").AddChainParameters) => Promise<void>;
1402
+ deployContract: <TAbi extends readonly unknown[] | import("viem").Abi, TChainOverride extends Chain | undefined>(args: import("viem").DeployContractParameters<TAbi, Chain | {
1403
+ readonly id: 1;
1404
+ readonly network: "homestead";
1405
+ readonly name: "Ethereum";
1406
+ readonly nativeCurrency: {
1407
+ readonly name: "Ether";
1408
+ readonly symbol: "ETH";
1409
+ readonly decimals: 18;
1410
+ };
1411
+ readonly rpcUrls: {
1412
+ readonly alchemy: {
1413
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
1414
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
1415
+ };
1416
+ readonly infura: {
1417
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
1418
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
1419
+ };
1420
+ readonly default: {
1421
+ readonly http: readonly ["https://cloudflare-eth.com"];
1422
+ };
1423
+ readonly public: {
1424
+ readonly http: readonly ["https://cloudflare-eth.com"];
1425
+ };
1426
+ };
1427
+ readonly blockExplorers: {
1428
+ readonly etherscan: {
1429
+ readonly name: "Etherscan";
1430
+ readonly url: "https://etherscan.io";
1431
+ };
1432
+ readonly default: {
1433
+ readonly name: "Etherscan";
1434
+ readonly url: "https://etherscan.io";
1435
+ };
1436
+ };
1437
+ readonly contracts: {
1438
+ readonly ensRegistry: {
1439
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
1440
+ };
1441
+ readonly ensUniversalResolver: {
1442
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
1443
+ readonly blockCreated: 16773775;
1444
+ };
1445
+ readonly multicall3: {
1446
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1447
+ readonly blockCreated: 14353601;
1448
+ };
1449
+ };
1450
+ }, undefined, TChainOverride>) => Promise<`0x${string}`>;
1451
+ getAddresses: () => Promise<import("viem").GetAddressesReturnType>;
1452
+ getChainId: () => Promise<number>;
1453
+ getPermissions: () => Promise<import("viem").GetPermissionsReturnType>;
1454
+ requestAddresses: () => Promise<import("viem").RequestAddressesReturnType>;
1455
+ requestPermissions: (args: {
1456
+ [x: string]: Record<string, any>;
1457
+ eth_accounts: Record<string, any>;
1458
+ }) => Promise<import("viem").RequestPermissionsReturnType>;
1459
+ sendTransaction: <TChainOverride_1 extends Chain | undefined>(args: import("viem").SendTransactionParameters<Chain | {
1460
+ readonly id: 1;
1461
+ readonly network: "homestead";
1462
+ readonly name: "Ethereum";
1463
+ readonly nativeCurrency: {
1464
+ readonly name: "Ether";
1465
+ readonly symbol: "ETH";
1466
+ readonly decimals: 18;
1467
+ };
1468
+ readonly rpcUrls: {
1469
+ readonly alchemy: {
1470
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
1471
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
1472
+ };
1473
+ readonly infura: {
1474
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
1475
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
1476
+ };
1477
+ readonly default: {
1478
+ readonly http: readonly ["https://cloudflare-eth.com"];
1479
+ };
1480
+ readonly public: {
1481
+ readonly http: readonly ["https://cloudflare-eth.com"];
1482
+ };
1483
+ };
1484
+ readonly blockExplorers: {
1485
+ readonly etherscan: {
1486
+ readonly name: "Etherscan";
1487
+ readonly url: "https://etherscan.io";
1488
+ };
1489
+ readonly default: {
1490
+ readonly name: "Etherscan";
1491
+ readonly url: "https://etherscan.io";
1492
+ };
1493
+ };
1494
+ readonly contracts: {
1495
+ readonly ensRegistry: {
1496
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
1497
+ };
1498
+ readonly ensUniversalResolver: {
1499
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
1500
+ readonly blockCreated: 16773775;
1501
+ };
1502
+ readonly multicall3: {
1503
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1504
+ readonly blockCreated: 14353601;
1505
+ };
1506
+ };
1507
+ }, undefined, TChainOverride_1>) => Promise<`0x${string}`>;
1508
+ signMessage: (args: import("viem").SignMessageParameters<undefined>) => Promise<`0x${string}`>;
1509
+ signTypedData: <TTypedData extends {
1510
+ [x: string]: readonly import("viem").TypedDataParameter[];
1511
+ [x: `string[${string}]`]: undefined;
1512
+ [x: `function[${string}]`]: undefined;
1513
+ [x: `address[${string}]`]: undefined;
1514
+ [x: `bool[${string}]`]: undefined;
1515
+ [x: `bytes[${string}]`]: undefined;
1516
+ [x: `bytes2[${string}]`]: undefined;
1517
+ [x: `bytes1[${string}]`]: undefined;
1518
+ [x: `bytes5[${string}]`]: undefined;
1519
+ [x: `bytes32[${string}]`]: undefined;
1520
+ [x: `bytes3[${string}]`]: undefined;
1521
+ [x: `bytes4[${string}]`]: undefined;
1522
+ [x: `bytes6[${string}]`]: undefined;
1523
+ [x: `bytes7[${string}]`]: undefined;
1524
+ [x: `bytes8[${string}]`]: undefined;
1525
+ [x: `bytes9[${string}]`]: undefined;
1526
+ [x: `bytes10[${string}]`]: undefined;
1527
+ [x: `bytes11[${string}]`]: undefined;
1528
+ [x: `bytes12[${string}]`]: undefined;
1529
+ [x: `bytes13[${string}]`]: undefined;
1530
+ [x: `bytes14[${string}]`]: undefined;
1531
+ [x: `bytes15[${string}]`]: undefined;
1532
+ [x: `bytes16[${string}]`]: undefined;
1533
+ [x: `bytes17[${string}]`]: undefined;
1534
+ [x: `bytes18[${string}]`]: undefined;
1535
+ [x: `bytes19[${string}]`]: undefined;
1536
+ [x: `bytes20[${string}]`]: undefined;
1537
+ [x: `bytes21[${string}]`]: undefined;
1538
+ [x: `bytes22[${string}]`]: undefined;
1539
+ [x: `bytes23[${string}]`]: undefined;
1540
+ [x: `bytes24[${string}]`]: undefined;
1541
+ [x: `bytes25[${string}]`]: undefined;
1542
+ [x: `bytes26[${string}]`]: undefined;
1543
+ [x: `bytes27[${string}]`]: undefined;
1544
+ [x: `bytes28[${string}]`]: undefined;
1545
+ [x: `bytes29[${string}]`]: undefined;
1546
+ [x: `bytes30[${string}]`]: undefined;
1547
+ [x: `bytes31[${string}]`]: undefined;
1548
+ [x: `int[${string}]`]: undefined;
1549
+ [x: `int32[${string}]`]: undefined;
1550
+ [x: `int8[${string}]`]: undefined;
1551
+ [x: `int16[${string}]`]: undefined;
1552
+ [x: `int24[${string}]`]: undefined;
1553
+ [x: `int40[${string}]`]: undefined;
1554
+ [x: `int48[${string}]`]: undefined;
1555
+ [x: `int56[${string}]`]: undefined;
1556
+ [x: `int64[${string}]`]: undefined;
1557
+ [x: `int72[${string}]`]: undefined;
1558
+ [x: `int80[${string}]`]: undefined;
1559
+ [x: `int88[${string}]`]: undefined;
1560
+ [x: `int96[${string}]`]: undefined;
1561
+ [x: `int104[${string}]`]: undefined;
1562
+ [x: `int112[${string}]`]: undefined;
1563
+ [x: `int120[${string}]`]: undefined;
1564
+ [x: `int128[${string}]`]: undefined;
1565
+ [x: `int136[${string}]`]: undefined;
1566
+ [x: `int144[${string}]`]: undefined;
1567
+ [x: `int152[${string}]`]: undefined;
1568
+ [x: `int160[${string}]`]: undefined;
1569
+ [x: `int168[${string}]`]: undefined;
1570
+ [x: `int176[${string}]`]: undefined;
1571
+ [x: `int184[${string}]`]: undefined;
1572
+ [x: `int192[${string}]`]: undefined;
1573
+ [x: `int200[${string}]`]: undefined;
1574
+ [x: `int208[${string}]`]: undefined;
1575
+ [x: `int216[${string}]`]: undefined;
1576
+ [x: `int224[${string}]`]: undefined;
1577
+ [x: `int232[${string}]`]: undefined;
1578
+ [x: `int240[${string}]`]: undefined;
1579
+ [x: `int248[${string}]`]: undefined;
1580
+ [x: `int256[${string}]`]: undefined;
1581
+ [x: `uint[${string}]`]: undefined;
1582
+ [x: `uint32[${string}]`]: undefined;
1583
+ [x: `uint8[${string}]`]: undefined;
1584
+ [x: `uint16[${string}]`]: undefined;
1585
+ [x: `uint24[${string}]`]: undefined;
1586
+ [x: `uint40[${string}]`]: undefined;
1587
+ [x: `uint48[${string}]`]: undefined;
1588
+ [x: `uint56[${string}]`]: undefined;
1589
+ [x: `uint64[${string}]`]: undefined;
1590
+ [x: `uint72[${string}]`]: undefined;
1591
+ [x: `uint80[${string}]`]: undefined;
1592
+ [x: `uint88[${string}]`]: undefined;
1593
+ [x: `uint96[${string}]`]: undefined;
1594
+ [x: `uint104[${string}]`]: undefined;
1595
+ [x: `uint112[${string}]`]: undefined;
1596
+ [x: `uint120[${string}]`]: undefined;
1597
+ [x: `uint128[${string}]`]: undefined;
1598
+ [x: `uint136[${string}]`]: undefined;
1599
+ [x: `uint144[${string}]`]: undefined;
1600
+ [x: `uint152[${string}]`]: undefined;
1601
+ [x: `uint160[${string}]`]: undefined;
1602
+ [x: `uint168[${string}]`]: undefined;
1603
+ [x: `uint176[${string}]`]: undefined;
1604
+ [x: `uint184[${string}]`]: undefined;
1605
+ [x: `uint192[${string}]`]: undefined;
1606
+ [x: `uint200[${string}]`]: undefined;
1607
+ [x: `uint208[${string}]`]: undefined;
1608
+ [x: `uint216[${string}]`]: undefined;
1609
+ [x: `uint224[${string}]`]: undefined;
1610
+ [x: `uint232[${string}]`]: undefined;
1611
+ [x: `uint240[${string}]`]: undefined;
1612
+ [x: `uint248[${string}]`]: undefined;
1613
+ [x: `uint256[${string}]`]: undefined;
1614
+ string?: undefined;
1615
+ address?: undefined;
1616
+ bool?: undefined;
1617
+ bytes?: undefined;
1618
+ bytes2?: undefined;
1619
+ bytes1?: undefined;
1620
+ bytes5?: undefined;
1621
+ bytes32?: undefined;
1622
+ bytes3?: undefined;
1623
+ bytes4?: undefined;
1624
+ bytes6?: undefined;
1625
+ bytes7?: undefined;
1626
+ bytes8?: undefined;
1627
+ bytes9?: undefined;
1628
+ bytes10?: undefined;
1629
+ bytes11?: undefined;
1630
+ bytes12?: undefined;
1631
+ bytes13?: undefined;
1632
+ bytes14?: undefined;
1633
+ bytes15?: undefined;
1634
+ bytes16?: undefined;
1635
+ bytes17?: undefined;
1636
+ bytes18?: undefined;
1637
+ bytes19?: undefined;
1638
+ bytes20?: undefined;
1639
+ bytes21?: undefined;
1640
+ bytes22?: undefined;
1641
+ bytes23?: undefined;
1642
+ bytes24?: undefined;
1643
+ bytes25?: undefined;
1644
+ bytes26?: undefined;
1645
+ bytes27?: undefined;
1646
+ bytes28?: undefined;
1647
+ bytes29?: undefined;
1648
+ bytes30?: undefined;
1649
+ bytes31?: undefined;
1650
+ int32?: undefined;
1651
+ int8?: undefined;
1652
+ int16?: undefined;
1653
+ int24?: undefined;
1654
+ int40?: undefined;
1655
+ int48?: undefined;
1656
+ int56?: undefined;
1657
+ int64?: undefined;
1658
+ int72?: undefined;
1659
+ int80?: undefined;
1660
+ int88?: undefined;
1661
+ int96?: undefined;
1662
+ int104?: undefined;
1663
+ int112?: undefined;
1664
+ int120?: undefined;
1665
+ int128?: undefined;
1666
+ int136?: undefined;
1667
+ int144?: undefined;
1668
+ int152?: undefined;
1669
+ int160?: undefined;
1670
+ int168?: undefined;
1671
+ int176?: undefined;
1672
+ int184?: undefined;
1673
+ int192?: undefined;
1674
+ int200?: undefined;
1675
+ int208?: undefined;
1676
+ int216?: undefined;
1677
+ int224?: undefined;
1678
+ int232?: undefined;
1679
+ int240?: undefined;
1680
+ int248?: undefined;
1681
+ int256?: undefined;
1682
+ uint32?: undefined;
1683
+ uint8?: undefined;
1684
+ uint16?: undefined;
1685
+ uint24?: undefined;
1686
+ uint40?: undefined;
1687
+ uint48?: undefined;
1688
+ uint56?: undefined;
1689
+ uint64?: undefined;
1690
+ uint72?: undefined;
1691
+ uint80?: undefined;
1692
+ uint88?: undefined;
1693
+ uint96?: undefined;
1694
+ uint104?: undefined;
1695
+ uint112?: undefined;
1696
+ uint120?: undefined;
1697
+ uint128?: undefined;
1698
+ uint136?: undefined;
1699
+ uint144?: undefined;
1700
+ uint152?: undefined;
1701
+ uint160?: undefined;
1702
+ uint168?: undefined;
1703
+ uint176?: undefined;
1704
+ uint184?: undefined;
1705
+ uint192?: undefined;
1706
+ uint200?: undefined;
1707
+ uint208?: undefined;
1708
+ uint216?: undefined;
1709
+ uint224?: undefined;
1710
+ uint232?: undefined;
1711
+ uint240?: undefined;
1712
+ uint248?: undefined;
1713
+ uint256?: undefined;
1714
+ } | {
1715
+ [key: string]: unknown;
1716
+ }, TPrimaryType extends string>(args: import("viem").SignTypedDataParameters<TTypedData, TPrimaryType, undefined>) => Promise<`0x${string}`>;
1717
+ switchChain: (args: import("viem").SwitchChainParameters) => Promise<void>;
1718
+ watchAsset: (args: import("viem").WatchAssetParams) => Promise<boolean>;
1719
+ writeContract: <TAbi_1 extends readonly unknown[] | import("viem").Abi, TFunctionName extends string, TChainOverride_2 extends Chain | undefined>(args: import("viem").WriteContractParameters<TAbi_1, TFunctionName, Chain | {
1720
+ readonly id: 1;
1721
+ readonly network: "homestead";
1722
+ readonly name: "Ethereum";
1723
+ readonly nativeCurrency: {
1724
+ readonly name: "Ether";
1725
+ readonly symbol: "ETH";
1726
+ readonly decimals: 18;
1727
+ };
1728
+ readonly rpcUrls: {
1729
+ readonly alchemy: {
1730
+ readonly http: readonly ["https://eth-mainnet.g.alchemy.com/v2"];
1731
+ readonly webSocket: readonly ["wss://eth-mainnet.g.alchemy.com/v2"];
1732
+ };
1733
+ readonly infura: {
1734
+ readonly http: readonly ["https://mainnet.infura.io/v3"];
1735
+ readonly webSocket: readonly ["wss://mainnet.infura.io/ws/v3"];
1736
+ };
1737
+ readonly default: {
1738
+ readonly http: readonly ["https://cloudflare-eth.com"];
1739
+ };
1740
+ readonly public: {
1741
+ readonly http: readonly ["https://cloudflare-eth.com"];
1742
+ };
1743
+ };
1744
+ readonly blockExplorers: {
1745
+ readonly etherscan: {
1746
+ readonly name: "Etherscan";
1747
+ readonly url: "https://etherscan.io";
1748
+ };
1749
+ readonly default: {
1750
+ readonly name: "Etherscan";
1751
+ readonly url: "https://etherscan.io";
1752
+ };
1753
+ };
1754
+ readonly contracts: {
1755
+ readonly ensRegistry: {
1756
+ readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
1757
+ };
1758
+ readonly ensUniversalResolver: {
1759
+ readonly address: "0xE4Acdd618deED4e6d2f03b9bf62dc6118FC9A4da";
1760
+ readonly blockCreated: 16773775;
1761
+ };
1762
+ readonly multicall3: {
1763
+ readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
1764
+ readonly blockCreated: 14353601;
1765
+ };
1766
+ };
1767
+ }, undefined, TChainOverride_2>) => Promise<`0x${string}`>;
1768
+ account: undefined;
1769
+ };
1770
+ export {};