viem 1.10.10 → 1.10.12

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 (925) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/_cjs/{abi.js → abi/index.js} +9 -9
  3. package/_cjs/abi/index.js.map +1 -0
  4. package/_cjs/chains/{utils.js → utils/index.js} +5 -5
  5. package/_cjs/chains/utils/index.js.map +1 -0
  6. package/_cjs/{contract.js → contract/index.js} +25 -25
  7. package/_cjs/contract/index.js.map +1 -0
  8. package/_cjs/{ens.js → ens/index.js} +9 -9
  9. package/_cjs/ens/index.js.map +1 -0
  10. package/_cjs/errors/version.js +1 -1
  11. package/_cjs/{public.js → public/index.js} +29 -29
  12. package/_cjs/public/index.js.map +1 -0
  13. package/_cjs/{test.js → test/index.js} +29 -29
  14. package/_cjs/test/index.js.map +1 -0
  15. package/_cjs/{wallet.js → wallet/index.js} +11 -11
  16. package/_cjs/wallet/index.js.map +1 -0
  17. package/_cjs/{window.js → window/index.js} +2 -2
  18. package/_cjs/window/index.js.map +1 -0
  19. package/_esm/abi/index.js +7 -0
  20. package/_esm/abi/index.js.map +1 -0
  21. package/_esm/chains/utils/index.js +5 -0
  22. package/_esm/chains/utils/index.js.map +1 -0
  23. package/_esm/contract/index.js +26 -0
  24. package/_esm/contract/index.js.map +1 -0
  25. package/_esm/ens/index.js +9 -0
  26. package/_esm/ens/index.js.map +1 -0
  27. package/_esm/errors/version.js +1 -1
  28. package/_esm/public/index.js +30 -0
  29. package/_esm/public/index.js.map +1 -0
  30. package/_esm/test/index.js +30 -0
  31. package/_esm/test/index.js.map +1 -0
  32. package/_esm/wallet/index.js +12 -0
  33. package/_esm/wallet/index.js.map +1 -0
  34. package/_esm/window/index.js +2 -0
  35. package/_esm/window/index.js.map +1 -0
  36. package/_types/abi/index.d.ts +6 -0
  37. package/_types/abi/index.d.ts.map +1 -0
  38. package/_types/accounts/generateMnemonic.d.ts +9 -0
  39. package/_types/accounts/generateMnemonic.d.ts.map +1 -0
  40. package/_types/accounts/generatePrivateKey.d.ts +8 -0
  41. package/_types/accounts/generatePrivateKey.d.ts.map +1 -0
  42. package/_types/accounts/hdKeyToAccount.d.ts +9 -0
  43. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -0
  44. package/_types/accounts/index.d.ts +27 -0
  45. package/_types/accounts/index.d.ts.map +1 -0
  46. package/_types/accounts/mnemonicToAccount.d.ts +8 -0
  47. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -0
  48. package/_types/accounts/privateKeyToAccount.d.ts +9 -0
  49. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -0
  50. package/_types/accounts/toAccount.d.ts +11 -0
  51. package/_types/accounts/toAccount.d.ts.map +1 -0
  52. package/_types/accounts/types.d.ts +52 -0
  53. package/_types/accounts/types.d.ts.map +1 -0
  54. package/_types/accounts/utils/parseAccount.d.ts +4 -0
  55. package/_types/accounts/utils/parseAccount.d.ts.map +1 -0
  56. package/_types/accounts/utils/privateKeyToAddress.d.ts +11 -0
  57. package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -0
  58. package/_types/accounts/utils/publicKeyToAddress.d.ts +11 -0
  59. package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -0
  60. package/_types/accounts/utils/sign.d.ts +16 -0
  61. package/_types/accounts/utils/sign.d.ts.map +1 -0
  62. package/_types/accounts/utils/signMessage.d.ts +16 -0
  63. package/_types/accounts/utils/signMessage.d.ts.map +1 -0
  64. package/_types/accounts/utils/signTransaction.d.ts +12 -0
  65. package/_types/accounts/utils/signTransaction.d.ts.map +1 -0
  66. package/_types/accounts/utils/signTypedData.d.ts +20 -0
  67. package/_types/accounts/utils/signTypedData.d.ts.map +1 -0
  68. package/_types/actions/ens/getEnsAddress.d.ts +45 -0
  69. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -0
  70. package/_types/actions/ens/getEnsAvatar.d.ts +41 -0
  71. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -0
  72. package/_types/actions/ens/getEnsName.d.ts +41 -0
  73. package/_types/actions/ens/getEnsName.d.ts.map +1 -0
  74. package/_types/actions/ens/getEnsResolver.d.ts +43 -0
  75. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -0
  76. package/_types/actions/ens/getEnsText.d.ts +46 -0
  77. package/_types/actions/ens/getEnsText.d.ts.map +1 -0
  78. package/_types/actions/getContract.d.ts +314 -0
  79. package/_types/actions/getContract.d.ts.map +1 -0
  80. package/_types/actions/index.d.ts +85 -0
  81. package/_types/actions/index.d.ts.map +1 -0
  82. package/_types/actions/public/call.d.ts +56 -0
  83. package/_types/actions/public/call.d.ts.map +1 -0
  84. package/_types/actions/public/createBlockFilter.d.ts +28 -0
  85. package/_types/actions/public/createBlockFilter.d.ts.map +1 -0
  86. package/_types/actions/public/createContractEventFilter.d.ts +50 -0
  87. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -0
  88. package/_types/actions/public/createEventFilter.d.ts +76 -0
  89. package/_types/actions/public/createEventFilter.d.ts.map +1 -0
  90. package/_types/actions/public/createPendingTransactionFilter.d.ts +28 -0
  91. package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -0
  92. package/_types/actions/public/estimateContractGas.d.ts +39 -0
  93. package/_types/actions/public/estimateContractGas.d.ts.map +1 -0
  94. package/_types/actions/public/estimateFeesPerGas.d.ts +48 -0
  95. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -0
  96. package/_types/actions/public/estimateGas.d.ts +49 -0
  97. package/_types/actions/public/estimateGas.d.ts.map +1 -0
  98. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +37 -0
  99. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
  100. package/_types/actions/public/getBalance.d.ts +55 -0
  101. package/_types/actions/public/getBalance.d.ts.map +1 -0
  102. package/_types/actions/public/getBlock.d.ts +56 -0
  103. package/_types/actions/public/getBlock.d.ts.map +1 -0
  104. package/_types/actions/public/getBlockNumber.d.ts +57 -0
  105. package/_types/actions/public/getBlockNumber.d.ts.map +1 -0
  106. package/_types/actions/public/getBlockTransactionCount.d.ts +47 -0
  107. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -0
  108. package/_types/actions/public/getBytecode.d.ts +41 -0
  109. package/_types/actions/public/getBytecode.d.ts.map +1 -0
  110. package/_types/actions/public/getChainId.d.ts +28 -0
  111. package/_types/actions/public/getChainId.d.ts.map +1 -0
  112. package/_types/actions/public/getFeeHistory.d.ts +53 -0
  113. package/_types/actions/public/getFeeHistory.d.ts.map +1 -0
  114. package/_types/actions/public/getFilterChanges.d.ts +96 -0
  115. package/_types/actions/public/getFilterChanges.d.ts.map +1 -0
  116. package/_types/actions/public/getFilterLogs.d.ts +40 -0
  117. package/_types/actions/public/getFilterLogs.d.ts.map +1 -0
  118. package/_types/actions/public/getGasPrice.d.ts +27 -0
  119. package/_types/actions/public/getGasPrice.d.ts.map +1 -0
  120. package/_types/actions/public/getLogs.d.ts +71 -0
  121. package/_types/actions/public/getLogs.d.ts.map +1 -0
  122. package/_types/actions/public/getStorageAt.d.ts +43 -0
  123. package/_types/actions/public/getStorageAt.d.ts.map +1 -0
  124. package/_types/actions/public/getTransaction.d.ts +65 -0
  125. package/_types/actions/public/getTransaction.d.ts.map +1 -0
  126. package/_types/actions/public/getTransactionConfirmations.d.ts +41 -0
  127. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -0
  128. package/_types/actions/public/getTransactionCount.d.ts +44 -0
  129. package/_types/actions/public/getTransactionCount.d.ts.map +1 -0
  130. package/_types/actions/public/getTransactionReceipt.d.ts +36 -0
  131. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -0
  132. package/_types/actions/public/multicall.d.ts +56 -0
  133. package/_types/actions/public/multicall.d.ts.map +1 -0
  134. package/_types/actions/public/readContract.d.ts +41 -0
  135. package/_types/actions/public/readContract.d.ts.map +1 -0
  136. package/_types/actions/public/simulateContract.d.ts +54 -0
  137. package/_types/actions/public/simulateContract.d.ts.map +1 -0
  138. package/_types/actions/public/uninstallFilter.d.ts +34 -0
  139. package/_types/actions/public/uninstallFilter.d.ts.map +1 -0
  140. package/_types/actions/public/verifyHash.d.ts +24 -0
  141. package/_types/actions/public/verifyHash.d.ts.map +1 -0
  142. package/_types/actions/public/verifyMessage.d.ts +28 -0
  143. package/_types/actions/public/verifyMessage.d.ts.map +1 -0
  144. package/_types/actions/public/verifyTypedData.d.ts +27 -0
  145. package/_types/actions/public/verifyTypedData.d.ts.map +1 -0
  146. package/_types/actions/public/waitForTransactionReceipt.d.ts +72 -0
  147. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -0
  148. package/_types/actions/public/watchBlockNumber.d.ts +59 -0
  149. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -0
  150. package/_types/actions/public/watchBlocks.d.ts +67 -0
  151. package/_types/actions/public/watchBlocks.d.ts.map +1 -0
  152. package/_types/actions/public/watchContractEvent.d.ts +89 -0
  153. package/_types/actions/public/watchContractEvent.d.ts.map +1 -0
  154. package/_types/actions/public/watchEvent.d.ts +104 -0
  155. package/_types/actions/public/watchEvent.d.ts.map +1 -0
  156. package/_types/actions/public/watchPendingTransactions.d.ts +74 -0
  157. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -0
  158. package/_types/actions/test/dropTransaction.d.ts +33 -0
  159. package/_types/actions/test/dropTransaction.d.ts.map +1 -0
  160. package/_types/actions/test/getAutomine.d.ts +27 -0
  161. package/_types/actions/test/getAutomine.d.ts.map +1 -0
  162. package/_types/actions/test/getTxpoolContent.d.ts +34 -0
  163. package/_types/actions/test/getTxpoolContent.d.ts.map +1 -0
  164. package/_types/actions/test/getTxpoolStatus.d.ts +30 -0
  165. package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -0
  166. package/_types/actions/test/impersonateAccount.d.ts +33 -0
  167. package/_types/actions/test/impersonateAccount.d.ts.map +1 -0
  168. package/_types/actions/test/increaseTime.d.ts +32 -0
  169. package/_types/actions/test/increaseTime.d.ts.map +1 -0
  170. package/_types/actions/test/inspectTxpool.d.ts +31 -0
  171. package/_types/actions/test/inspectTxpool.d.ts.map +1 -0
  172. package/_types/actions/test/mine.d.ts +32 -0
  173. package/_types/actions/test/mine.d.ts.map +1 -0
  174. package/_types/actions/test/removeBlockTimestampInterval.d.ts +25 -0
  175. package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -0
  176. package/_types/actions/test/reset.d.ts +32 -0
  177. package/_types/actions/test/reset.d.ts.map +1 -0
  178. package/_types/actions/test/revert.d.ts +31 -0
  179. package/_types/actions/test/revert.d.ts.map +1 -0
  180. package/_types/actions/test/sendUnsignedTransaction.d.ts +35 -0
  181. package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -0
  182. package/_types/actions/test/setAutomine.d.ts +25 -0
  183. package/_types/actions/test/setAutomine.d.ts.map +1 -0
  184. package/_types/actions/test/setBalance.d.ts +36 -0
  185. package/_types/actions/test/setBalance.d.ts.map +1 -0
  186. package/_types/actions/test/setBlockGasLimit.d.ts +30 -0
  187. package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -0
  188. package/_types/actions/test/setBlockTimestampInterval.d.ts +30 -0
  189. package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -0
  190. package/_types/actions/test/setCode.d.ts +37 -0
  191. package/_types/actions/test/setCode.d.ts.map +1 -0
  192. package/_types/actions/test/setCoinbase.d.ts +33 -0
  193. package/_types/actions/test/setCoinbase.d.ts.map +1 -0
  194. package/_types/actions/test/setIntervalMining.d.ts +30 -0
  195. package/_types/actions/test/setIntervalMining.d.ts.map +1 -0
  196. package/_types/actions/test/setLoggingEnabled.d.ts +25 -0
  197. package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -0
  198. package/_types/actions/test/setMinGasPrice.d.ts +34 -0
  199. package/_types/actions/test/setMinGasPrice.d.ts.map +1 -0
  200. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +32 -0
  201. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -0
  202. package/_types/actions/test/setNextBlockTimestamp.d.ts +30 -0
  203. package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -0
  204. package/_types/actions/test/setNonce.d.ts +36 -0
  205. package/_types/actions/test/setNonce.d.ts.map +1 -0
  206. package/_types/actions/test/setRpcUrl.d.ts +26 -0
  207. package/_types/actions/test/setRpcUrl.d.ts.map +1 -0
  208. package/_types/actions/test/setStorageAt.d.ts +40 -0
  209. package/_types/actions/test/setStorageAt.d.ts.map +1 -0
  210. package/_types/actions/test/snapshot.d.ts +25 -0
  211. package/_types/actions/test/snapshot.d.ts.map +1 -0
  212. package/_types/actions/test/stopImpersonatingAccount.d.ts +33 -0
  213. package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -0
  214. package/_types/actions/wallet/addChain.d.ts +29 -0
  215. package/_types/actions/wallet/addChain.d.ts.map +1 -0
  216. package/_types/actions/wallet/deployContract.d.ts +44 -0
  217. package/_types/actions/wallet/deployContract.d.ts.map +1 -0
  218. package/_types/actions/wallet/getAddresses.d.ts +28 -0
  219. package/_types/actions/wallet/getAddresses.d.ts.map +1 -0
  220. package/_types/actions/wallet/getPermissions.d.ts +28 -0
  221. package/_types/actions/wallet/getPermissions.d.ts.map +1 -0
  222. package/_types/actions/wallet/prepareTransactionRequest.d.ts +52 -0
  223. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -0
  224. package/_types/actions/wallet/requestAddresses.d.ts +32 -0
  225. package/_types/actions/wallet/requestAddresses.d.ts.map +1 -0
  226. package/_types/actions/wallet/requestPermissions.d.ts +37 -0
  227. package/_types/actions/wallet/requestPermissions.d.ts.map +1 -0
  228. package/_types/actions/wallet/sendRawTransaction.d.ts +38 -0
  229. package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -0
  230. package/_types/actions/wallet/sendTransaction.d.ts +58 -0
  231. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -0
  232. package/_types/actions/wallet/signMessage.d.ts +58 -0
  233. package/_types/actions/wallet/signMessage.d.ts.map +1 -0
  234. package/_types/actions/wallet/signTransaction.d.ts +55 -0
  235. package/_types/actions/wallet/signTransaction.d.ts.map +1 -0
  236. package/_types/actions/wallet/signTypedData.d.ts +114 -0
  237. package/_types/actions/wallet/signTypedData.d.ts.map +1 -0
  238. package/_types/actions/wallet/switchChain.d.ts +30 -0
  239. package/_types/actions/wallet/switchChain.d.ts.map +1 -0
  240. package/_types/actions/wallet/watchAsset.d.ts +37 -0
  241. package/_types/actions/wallet/watchAsset.d.ts.map +1 -0
  242. package/_types/actions/wallet/writeContract.d.ts +69 -0
  243. package/_types/actions/wallet/writeContract.d.ts.map +1 -0
  244. package/_types/chains/celo/formatters.d.ts +493 -0
  245. package/_types/chains/celo/formatters.d.ts.map +1 -0
  246. package/_types/chains/celo/parsers.d.ts +6 -0
  247. package/_types/chains/celo/parsers.d.ts.map +1 -0
  248. package/_types/chains/celo/serializers.d.ts +9 -0
  249. package/_types/chains/celo/serializers.d.ts.map +1 -0
  250. package/_types/chains/celo/types.d.ts +100 -0
  251. package/_types/chains/celo/types.d.ts.map +1 -0
  252. package/_types/chains/definitions/arbitrum.d.ts +43 -0
  253. package/_types/chains/definitions/arbitrum.d.ts.map +1 -0
  254. package/_types/chains/definitions/arbitrumGoerli.d.ts +44 -0
  255. package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -0
  256. package/_types/chains/definitions/arbitrumNova.d.ts +43 -0
  257. package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -0
  258. package/_types/chains/definitions/aurora.d.ts +32 -0
  259. package/_types/chains/definitions/aurora.d.ts.map +1 -0
  260. package/_types/chains/definitions/auroraTestnet.d.ts +33 -0
  261. package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -0
  262. package/_types/chains/definitions/avalanche.d.ts +35 -0
  263. package/_types/chains/definitions/avalanche.d.ts.map +1 -0
  264. package/_types/chains/definitions/avalancheFuji.d.ts +36 -0
  265. package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -0
  266. package/_types/chains/definitions/base.d.ts +338 -0
  267. package/_types/chains/definitions/base.d.ts.map +1 -0
  268. package/_types/chains/definitions/baseGoerli.d.ts +336 -0
  269. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -0
  270. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +25 -0
  271. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -0
  272. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +26 -0
  273. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -0
  274. package/_types/chains/definitions/boba.d.ts +35 -0
  275. package/_types/chains/definitions/boba.d.ts.map +1 -0
  276. package/_types/chains/definitions/bronos.d.ts +25 -0
  277. package/_types/chains/definitions/bronos.d.ts.map +1 -0
  278. package/_types/chains/definitions/bronosTestnet.d.ts +26 -0
  279. package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -0
  280. package/_types/chains/definitions/bsc.d.ts +35 -0
  281. package/_types/chains/definitions/bsc.d.ts.map +1 -0
  282. package/_types/chains/definitions/bscTestnet.d.ts +36 -0
  283. package/_types/chains/definitions/bscTestnet.d.ts.map +1 -0
  284. package/_types/chains/definitions/bxn.d.ts +25 -0
  285. package/_types/chains/definitions/bxn.d.ts.map +1 -0
  286. package/_types/chains/definitions/bxnTestnet.d.ts +25 -0
  287. package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -0
  288. package/_types/chains/definitions/canto.d.ts +31 -0
  289. package/_types/chains/definitions/canto.d.ts.map +1 -0
  290. package/_types/chains/definitions/celo.d.ts +528 -0
  291. package/_types/chains/definitions/celo.d.ts.map +1 -0
  292. package/_types/chains/definitions/celoAlfajores.d.ts +528 -0
  293. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -0
  294. package/_types/chains/definitions/celoCannoli.d.ts +521 -0
  295. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -0
  296. package/_types/chains/definitions/classic.d.ts +25 -0
  297. package/_types/chains/definitions/classic.d.ts.map +1 -0
  298. package/_types/chains/definitions/confluxESpace.d.ts +31 -0
  299. package/_types/chains/definitions/confluxESpace.d.ts.map +1 -0
  300. package/_types/chains/definitions/cronos.d.ts +31 -0
  301. package/_types/chains/definitions/cronos.d.ts.map +1 -0
  302. package/_types/chains/definitions/cronosTestnet.d.ts +32 -0
  303. package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -0
  304. package/_types/chains/definitions/crossbell.d.ts +31 -0
  305. package/_types/chains/definitions/crossbell.d.ts.map +1 -0
  306. package/_types/chains/definitions/dfk.d.ts +29 -0
  307. package/_types/chains/definitions/dfk.d.ts.map +1 -0
  308. package/_types/chains/definitions/dogechain.d.ts +29 -0
  309. package/_types/chains/definitions/dogechain.d.ts.map +1 -0
  310. package/_types/chains/definitions/edgeware.d.ts +35 -0
  311. package/_types/chains/definitions/edgeware.d.ts.map +1 -0
  312. package/_types/chains/definitions/edgewareTestnet.d.ts +29 -0
  313. package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -0
  314. package/_types/chains/definitions/ekta.d.ts +25 -0
  315. package/_types/chains/definitions/ekta.d.ts.map +1 -0
  316. package/_types/chains/definitions/ektaTestnet.d.ts +26 -0
  317. package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -0
  318. package/_types/chains/definitions/eon.d.ts +26 -0
  319. package/_types/chains/definitions/eon.d.ts.map +1 -0
  320. package/_types/chains/definitions/eos.d.ts +35 -0
  321. package/_types/chains/definitions/eos.d.ts.map +1 -0
  322. package/_types/chains/definitions/eosTestnet.d.ts +36 -0
  323. package/_types/chains/definitions/eosTestnet.d.ts.map +1 -0
  324. package/_types/chains/definitions/evmos.d.ts +25 -0
  325. package/_types/chains/definitions/evmos.d.ts.map +1 -0
  326. package/_types/chains/definitions/evmosTestnet.d.ts +25 -0
  327. package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -0
  328. package/_types/chains/definitions/fantom.d.ts +35 -0
  329. package/_types/chains/definitions/fantom.d.ts.map +1 -0
  330. package/_types/chains/definitions/fantomTestnet.d.ts +35 -0
  331. package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -0
  332. package/_types/chains/definitions/fibo.d.ts +25 -0
  333. package/_types/chains/definitions/fibo.d.ts.map +1 -0
  334. package/_types/chains/definitions/filecoin.d.ts +37 -0
  335. package/_types/chains/definitions/filecoin.d.ts.map +1 -0
  336. package/_types/chains/definitions/filecoinCalibration.d.ts +25 -0
  337. package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -0
  338. package/_types/chains/definitions/filecoinHyperspace.d.ts +29 -0
  339. package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -0
  340. package/_types/chains/definitions/flare.d.ts +25 -0
  341. package/_types/chains/definitions/flare.d.ts.map +1 -0
  342. package/_types/chains/definitions/flareTestnet.d.ts +26 -0
  343. package/_types/chains/definitions/flareTestnet.d.ts.map +1 -0
  344. package/_types/chains/definitions/foundry.d.ts +21 -0
  345. package/_types/chains/definitions/foundry.d.ts.map +1 -0
  346. package/_types/chains/definitions/fuse.d.ts +25 -0
  347. package/_types/chains/definitions/fuse.d.ts.map +1 -0
  348. package/_types/chains/definitions/fuseSparknet.d.ts +25 -0
  349. package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -0
  350. package/_types/chains/definitions/gnosis.d.ts +35 -0
  351. package/_types/chains/definitions/gnosis.d.ts.map +1 -0
  352. package/_types/chains/definitions/gnosisChiado.d.ts +26 -0
  353. package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -0
  354. package/_types/chains/definitions/gobi.d.ts +27 -0
  355. package/_types/chains/definitions/gobi.d.ts.map +1 -0
  356. package/_types/chains/definitions/goerli.d.ts +51 -0
  357. package/_types/chains/definitions/goerli.d.ts.map +1 -0
  358. package/_types/chains/definitions/haqqMainnet.d.ts +25 -0
  359. package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -0
  360. package/_types/chains/definitions/haqqTestedge2.d.ts +25 -0
  361. package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -0
  362. package/_types/chains/definitions/hardhat.d.ts +19 -0
  363. package/_types/chains/definitions/hardhat.d.ts.map +1 -0
  364. package/_types/chains/definitions/harmonyOne.d.ts +31 -0
  365. package/_types/chains/definitions/harmonyOne.d.ts.map +1 -0
  366. package/_types/chains/definitions/iotex.d.ts +27 -0
  367. package/_types/chains/definitions/iotex.d.ts.map +1 -0
  368. package/_types/chains/definitions/iotexTestnet.d.ts +27 -0
  369. package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -0
  370. package/_types/chains/definitions/klaytn.d.ts +29 -0
  371. package/_types/chains/definitions/klaytn.d.ts.map +1 -0
  372. package/_types/chains/definitions/linea.d.ts +46 -0
  373. package/_types/chains/definitions/linea.d.ts.map +1 -0
  374. package/_types/chains/definitions/lineaTestnet.d.ts +46 -0
  375. package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -0
  376. package/_types/chains/definitions/localhost.d.ts +19 -0
  377. package/_types/chains/definitions/localhost.d.ts.map +1 -0
  378. package/_types/chains/definitions/mainnet.d.ts +50 -0
  379. package/_types/chains/definitions/mainnet.d.ts.map +1 -0
  380. package/_types/chains/definitions/mantle.d.ts +35 -0
  381. package/_types/chains/definitions/mantle.d.ts.map +1 -0
  382. package/_types/chains/definitions/mantleTestnet.d.ts +30 -0
  383. package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -0
  384. package/_types/chains/definitions/meter.d.ts +25 -0
  385. package/_types/chains/definitions/meter.d.ts.map +1 -0
  386. package/_types/chains/definitions/meterTestnet.d.ts +25 -0
  387. package/_types/chains/definitions/meterTestnet.d.ts.map +1 -0
  388. package/_types/chains/definitions/metis.d.ts +31 -0
  389. package/_types/chains/definitions/metis.d.ts.map +1 -0
  390. package/_types/chains/definitions/metisGoerli.d.ts +31 -0
  391. package/_types/chains/definitions/metisGoerli.d.ts.map +1 -0
  392. package/_types/chains/definitions/mev.d.ts +31 -0
  393. package/_types/chains/definitions/mev.d.ts.map +1 -0
  394. package/_types/chains/definitions/mevTestnet.d.ts +32 -0
  395. package/_types/chains/definitions/mevTestnet.d.ts.map +1 -0
  396. package/_types/chains/definitions/modeTestnet.d.ts +26 -0
  397. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -0
  398. package/_types/chains/definitions/moonbaseAlpha.d.ts +38 -0
  399. package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -0
  400. package/_types/chains/definitions/moonbeam.d.ts +38 -0
  401. package/_types/chains/definitions/moonbeam.d.ts.map +1 -0
  402. package/_types/chains/definitions/moonriver.d.ts +38 -0
  403. package/_types/chains/definitions/moonriver.d.ts.map +1 -0
  404. package/_types/chains/definitions/neonDevnet.d.ts +32 -0
  405. package/_types/chains/definitions/neonDevnet.d.ts.map +1 -0
  406. package/_types/chains/definitions/nexi.d.ts +35 -0
  407. package/_types/chains/definitions/nexi.d.ts.map +1 -0
  408. package/_types/chains/definitions/nexilix.d.ts +35 -0
  409. package/_types/chains/definitions/nexilix.d.ts.map +1 -0
  410. package/_types/chains/definitions/oasys.d.ts +25 -0
  411. package/_types/chains/definitions/oasys.d.ts.map +1 -0
  412. package/_types/chains/definitions/okc.d.ts +31 -0
  413. package/_types/chains/definitions/okc.d.ts.map +1 -0
  414. package/_types/chains/definitions/opBNB.d.ts +31 -0
  415. package/_types/chains/definitions/opBNB.d.ts.map +1 -0
  416. package/_types/chains/definitions/opBNBTestnet.d.ts +32 -0
  417. package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -0
  418. package/_types/chains/definitions/optimism.d.ts +338 -0
  419. package/_types/chains/definitions/optimism.d.ts.map +1 -0
  420. package/_types/chains/definitions/optimismGoerli.d.ts +339 -0
  421. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -0
  422. package/_types/chains/definitions/plinga.d.ts +31 -0
  423. package/_types/chains/definitions/plinga.d.ts.map +1 -0
  424. package/_types/chains/definitions/polygon.d.ts +43 -0
  425. package/_types/chains/definitions/polygon.d.ts.map +1 -0
  426. package/_types/chains/definitions/polygonMumbai.d.ts +44 -0
  427. package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -0
  428. package/_types/chains/definitions/polygonZkEvm.d.ts +31 -0
  429. package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -0
  430. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +36 -0
  431. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -0
  432. package/_types/chains/definitions/pulsechain.d.ts +37 -0
  433. package/_types/chains/definitions/pulsechain.d.ts.map +1 -0
  434. package/_types/chains/definitions/pulsechainV4.d.ts +37 -0
  435. package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -0
  436. package/_types/chains/definitions/qMainnet.d.ts +25 -0
  437. package/_types/chains/definitions/qMainnet.d.ts.map +1 -0
  438. package/_types/chains/definitions/qTestnet.d.ts +26 -0
  439. package/_types/chains/definitions/qTestnet.d.ts.map +1 -0
  440. package/_types/chains/definitions/rollux.d.ts +32 -0
  441. package/_types/chains/definitions/rollux.d.ts.map +1 -0
  442. package/_types/chains/definitions/rolluxTestnet.d.ts +32 -0
  443. package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -0
  444. package/_types/chains/definitions/ronin.d.ts +31 -0
  445. package/_types/chains/definitions/ronin.d.ts.map +1 -0
  446. package/_types/chains/definitions/saigon.d.ts +32 -0
  447. package/_types/chains/definitions/saigon.d.ts.map +1 -0
  448. package/_types/chains/definitions/scrollSepolia.d.ts +34 -0
  449. package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -0
  450. package/_types/chains/definitions/scrollTestnet.d.ts +28 -0
  451. package/_types/chains/definitions/scrollTestnet.d.ts.map +1 -0
  452. package/_types/chains/definitions/sepolia.d.ts +51 -0
  453. package/_types/chains/definitions/sepolia.d.ts.map +1 -0
  454. package/_types/chains/definitions/shardeumSphinx.d.ts +26 -0
  455. package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -0
  456. package/_types/chains/definitions/skale/brawl.d.ts +32 -0
  457. package/_types/chains/definitions/skale/brawl.d.ts.map +1 -0
  458. package/_types/chains/definitions/skale/calypso.d.ts +37 -0
  459. package/_types/chains/definitions/skale/calypso.d.ts.map +1 -0
  460. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +38 -0
  461. package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -0
  462. package/_types/chains/definitions/skale/chaosTestnet.d.ts +38 -0
  463. package/_types/chains/definitions/skale/chaosTestnet.d.ts.map +1 -0
  464. package/_types/chains/definitions/skale/cryptoBlades.d.ts +32 -0
  465. package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -0
  466. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +32 -0
  467. package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -0
  468. package/_types/chains/definitions/skale/europa.d.ts +37 -0
  469. package/_types/chains/definitions/skale/europa.d.ts.map +1 -0
  470. package/_types/chains/definitions/skale/europaTestnet.d.ts +38 -0
  471. package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -0
  472. package/_types/chains/definitions/skale/exorde.d.ts +32 -0
  473. package/_types/chains/definitions/skale/exorde.d.ts.map +1 -0
  474. package/_types/chains/definitions/skale/humanProtocol.d.ts +32 -0
  475. package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -0
  476. package/_types/chains/definitions/skale/nebula.d.ts +37 -0
  477. package/_types/chains/definitions/skale/nebula.d.ts.map +1 -0
  478. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +38 -0
  479. package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -0
  480. package/_types/chains/definitions/skale/razor.d.ts +32 -0
  481. package/_types/chains/definitions/skale/razor.d.ts.map +1 -0
  482. package/_types/chains/definitions/skale/titan.d.ts +37 -0
  483. package/_types/chains/definitions/skale/titan.d.ts.map +1 -0
  484. package/_types/chains/definitions/skale/titanTestnet.d.ts +38 -0
  485. package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -0
  486. package/_types/chains/definitions/songbird.d.ts +25 -0
  487. package/_types/chains/definitions/songbird.d.ts.map +1 -0
  488. package/_types/chains/definitions/songbirdTestnet.d.ts +26 -0
  489. package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -0
  490. package/_types/chains/definitions/syscoin.d.ts +33 -0
  491. package/_types/chains/definitions/syscoin.d.ts.map +1 -0
  492. package/_types/chains/definitions/syscoinTestnet.d.ts +33 -0
  493. package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -0
  494. package/_types/chains/definitions/taikoJolnir.d.ts +25 -0
  495. package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -0
  496. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +25 -0
  497. package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -0
  498. package/_types/chains/definitions/taraxa.d.ts +25 -0
  499. package/_types/chains/definitions/taraxa.d.ts.map +1 -0
  500. package/_types/chains/definitions/taraxaTestnet.d.ts +26 -0
  501. package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -0
  502. package/_types/chains/definitions/telos.d.ts +31 -0
  503. package/_types/chains/definitions/telos.d.ts.map +1 -0
  504. package/_types/chains/definitions/telosTestnet.d.ts +26 -0
  505. package/_types/chains/definitions/telosTestnet.d.ts.map +1 -0
  506. package/_types/chains/definitions/thunderTestnet.d.ts +26 -0
  507. package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -0
  508. package/_types/chains/definitions/vechain.d.ts +29 -0
  509. package/_types/chains/definitions/vechain.d.ts.map +1 -0
  510. package/_types/chains/definitions/wanchain.d.ts +35 -0
  511. package/_types/chains/definitions/wanchain.d.ts.map +1 -0
  512. package/_types/chains/definitions/wanchainTestnet.d.ts +36 -0
  513. package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -0
  514. package/_types/chains/definitions/xdc.d.ts +29 -0
  515. package/_types/chains/definitions/xdc.d.ts.map +1 -0
  516. package/_types/chains/definitions/xdcTestnet.d.ts +29 -0
  517. package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -0
  518. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +26 -0
  519. package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -0
  520. package/_types/chains/definitions/zhejiang.d.ts +34 -0
  521. package/_types/chains/definitions/zhejiang.d.ts.map +1 -0
  522. package/_types/chains/definitions/zkSync.d.ts +32 -0
  523. package/_types/chains/definitions/zkSync.d.ts.map +1 -0
  524. package/_types/chains/definitions/zkSyncTestnet.d.ts +33 -0
  525. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -0
  526. package/_types/chains/definitions/zora.d.ts +328 -0
  527. package/_types/chains/definitions/zora.d.ts.map +1 -0
  528. package/_types/chains/definitions/zoraTestnet.d.ts +329 -0
  529. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -0
  530. package/_types/chains/index.d.ts +140 -0
  531. package/_types/chains/index.d.ts.map +1 -0
  532. package/_types/chains/optimism/formatters.d.ts +299 -0
  533. package/_types/chains/optimism/formatters.d.ts.map +1 -0
  534. package/_types/chains/optimism/types.d.ts +53 -0
  535. package/_types/chains/optimism/types.d.ts.map +1 -0
  536. package/_types/chains/utils/index.d.ts +7 -0
  537. package/_types/chains/utils/index.d.ts.map +1 -0
  538. package/_types/clients/createClient.d.ts +79 -0
  539. package/_types/clients/createClient.d.ts.map +1 -0
  540. package/_types/clients/createPublicClient.d.ts +29 -0
  541. package/_types/clients/createPublicClient.d.ts.map +1 -0
  542. package/_types/clients/createTestClient.d.ts +43 -0
  543. package/_types/clients/createTestClient.d.ts.map +1 -0
  544. package/_types/clients/createWalletClient.d.ts +49 -0
  545. package/_types/clients/createWalletClient.d.ts.map +1 -0
  546. package/_types/clients/decorators/public.d.ts +1199 -0
  547. package/_types/clients/decorators/public.d.ts.map +1 -0
  548. package/_types/clients/decorators/test.d.ts +599 -0
  549. package/_types/clients/decorators/test.d.ts.map +1 -0
  550. package/_types/clients/decorators/wallet.d.ts +560 -0
  551. package/_types/clients/decorators/wallet.d.ts.map +1 -0
  552. package/_types/clients/transports/createTransport.d.ts +34 -0
  553. package/_types/clients/transports/createTransport.d.ts.map +1 -0
  554. package/_types/clients/transports/custom.d.ts +21 -0
  555. package/_types/clients/transports/custom.d.ts.map +1 -0
  556. package/_types/clients/transports/fallback.d.ts +75 -0
  557. package/_types/clients/transports/fallback.d.ts.map +1 -0
  558. package/_types/clients/transports/http.d.ts +40 -0
  559. package/_types/clients/transports/http.d.ts.map +1 -0
  560. package/_types/clients/transports/webSocket.d.ts +45 -0
  561. package/_types/clients/transports/webSocket.d.ts.map +1 -0
  562. package/_types/constants/abis.d.ts +165 -0
  563. package/_types/constants/abis.d.ts.map +1 -0
  564. package/_types/constants/address.d.ts +2 -0
  565. package/_types/constants/address.d.ts.map +1 -0
  566. package/_types/constants/contract.d.ts +2 -0
  567. package/_types/constants/contract.d.ts.map +1 -0
  568. package/_types/constants/contracts.d.ts +2 -0
  569. package/_types/constants/contracts.d.ts.map +1 -0
  570. package/_types/constants/number.d.ts +97 -0
  571. package/_types/constants/number.d.ts.map +1 -0
  572. package/_types/constants/solidity.d.ts +15 -0
  573. package/_types/constants/solidity.d.ts.map +1 -0
  574. package/_types/constants/unit.d.ts +13 -0
  575. package/_types/constants/unit.d.ts.map +1 -0
  576. package/_types/contract/index.d.ts +30 -0
  577. package/_types/contract/index.d.ts.map +1 -0
  578. package/_types/ens/index.d.ts +9 -0
  579. package/_types/ens/index.d.ts.map +1 -0
  580. package/_types/errors/abi.d.ts +169 -0
  581. package/_types/errors/abi.d.ts.map +1 -0
  582. package/_types/errors/account.d.ts +8 -0
  583. package/_types/errors/account.d.ts.map +1 -0
  584. package/_types/errors/address.d.ts +8 -0
  585. package/_types/errors/address.d.ts.map +1 -0
  586. package/_types/errors/base.d.ts +24 -0
  587. package/_types/errors/base.d.ts.map +1 -0
  588. package/_types/errors/block.d.ts +10 -0
  589. package/_types/errors/block.d.ts.map +1 -0
  590. package/_types/errors/ccip.d.ts +29 -0
  591. package/_types/errors/ccip.d.ts.map +1 -0
  592. package/_types/errors/chain.d.ts +35 -0
  593. package/_types/errors/chain.d.ts.map +1 -0
  594. package/_types/errors/contract.d.ts +64 -0
  595. package/_types/errors/contract.d.ts.map +1 -0
  596. package/_types/errors/data.d.ts +18 -0
  597. package/_types/errors/data.d.ts.map +1 -0
  598. package/_types/errors/encoding.d.ts +53 -0
  599. package/_types/errors/encoding.d.ts.map +1 -0
  600. package/_types/errors/ens.d.ts +26 -0
  601. package/_types/errors/ens.d.ts.map +1 -0
  602. package/_types/errors/estimateGas.d.ts +14 -0
  603. package/_types/errors/estimateGas.d.ts.map +1 -0
  604. package/_types/errors/fee.d.ts +16 -0
  605. package/_types/errors/fee.d.ts.map +1 -0
  606. package/_types/errors/log.d.ts +6 -0
  607. package/_types/errors/log.d.ts.map +1 -0
  608. package/_types/errors/node.d.ts +105 -0
  609. package/_types/errors/node.d.ts.map +1 -0
  610. package/_types/errors/request.d.ts +61 -0
  611. package/_types/errors/request.d.ts.map +1 -0
  612. package/_types/errors/rpc.d.ts +221 -0
  613. package/_types/errors/rpc.d.ts.map +1 -0
  614. package/_types/errors/transaction.d.ts +79 -0
  615. package/_types/errors/transaction.d.ts.map +1 -0
  616. package/_types/errors/transport.d.ts +5 -0
  617. package/_types/errors/transport.d.ts.map +1 -0
  618. package/_types/errors/utils.d.ts +5 -0
  619. package/_types/errors/utils.d.ts.map +1 -0
  620. package/_types/errors/version.d.ts +2 -0
  621. package/_types/errors/version.d.ts.map +1 -0
  622. package/_types/index.d.ts +217 -0
  623. package/_types/index.d.ts.map +1 -0
  624. package/_types/public/index.d.ts +33 -0
  625. package/_types/public/index.d.ts.map +1 -0
  626. package/_types/test/index.d.ts +29 -0
  627. package/_types/test/index.d.ts.map +1 -0
  628. package/_types/types/account.d.ts +12 -0
  629. package/_types/types/account.d.ts.map +1 -0
  630. package/_types/types/block.d.ts +62 -0
  631. package/_types/types/block.d.ts.map +1 -0
  632. package/_types/types/chain.d.ts +167 -0
  633. package/_types/types/chain.d.ts.map +1 -0
  634. package/_types/types/contract.d.ts +138 -0
  635. package/_types/types/contract.d.ts.map +1 -0
  636. package/_types/types/eip1193.d.ts +1228 -0
  637. package/_types/types/eip1193.d.ts.map +1 -0
  638. package/_types/types/ens.d.ts +5 -0
  639. package/_types/types/ens.d.ts.map +1 -0
  640. package/_types/types/fee.d.ts +30 -0
  641. package/_types/types/fee.d.ts.map +1 -0
  642. package/_types/types/filter.d.ts +40 -0
  643. package/_types/types/filter.d.ts.map +1 -0
  644. package/_types/types/log.d.ts +55 -0
  645. package/_types/types/log.d.ts.map +1 -0
  646. package/_types/types/misc.d.ts +14 -0
  647. package/_types/types/misc.d.ts.map +1 -0
  648. package/_types/types/multicall.d.ts +48 -0
  649. package/_types/types/multicall.d.ts.map +1 -0
  650. package/_types/types/rpc.d.ts +20 -0
  651. package/_types/types/rpc.d.ts.map +1 -0
  652. package/_types/types/transaction.d.ts +147 -0
  653. package/_types/types/transaction.d.ts.map +1 -0
  654. package/_types/types/transport.d.ts +3 -0
  655. package/_types/types/transport.d.ts.map +1 -0
  656. package/_types/types/typedData.d.ts +47 -0
  657. package/_types/types/typedData.d.ts.map +1 -0
  658. package/_types/types/utils.d.ts +188 -0
  659. package/_types/types/utils.d.ts.map +1 -0
  660. package/_types/types/window.d.ts +7 -0
  661. package/_types/types/window.d.ts.map +1 -0
  662. package/_types/utils/abi/decodeAbiParameters.d.ts +5 -0
  663. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -0
  664. package/_types/utils/abi/decodeDeployData.d.ts +13 -0
  665. package/_types/utils/abi/decodeDeployData.d.ts.map +1 -0
  666. package/_types/utils/abi/decodeErrorResult.d.ts +16 -0
  667. package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -0
  668. package/_types/utils/abi/decodeEventLog.d.ts +20 -0
  669. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -0
  670. package/_types/utils/abi/decodeFunctionData.d.ts +15 -0
  671. package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -0
  672. package/_types/utils/abi/decodeFunctionResult.d.ts +14 -0
  673. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -0
  674. package/_types/utils/abi/encodeAbiParameters.d.ts +9 -0
  675. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -0
  676. package/_types/utils/abi/encodeDeployData.d.ts +9 -0
  677. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -0
  678. package/_types/utils/abi/encodeErrorResult.d.ts +11 -0
  679. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -0
  680. package/_types/utils/abi/encodeEventTopics.d.ts +13 -0
  681. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -0
  682. package/_types/utils/abi/encodeFunctionData.d.ts +11 -0
  683. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -0
  684. package/_types/utils/abi/encodeFunctionResult.d.ts +13 -0
  685. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -0
  686. package/_types/utils/abi/encodePacked.d.ts +11 -0
  687. package/_types/utils/abi/encodePacked.d.ts.map +1 -0
  688. package/_types/utils/abi/formatAbiItem.d.ts +9 -0
  689. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -0
  690. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +8 -0
  691. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -0
  692. package/_types/utils/abi/getAbiItem.d.ts +13 -0
  693. package/_types/utils/abi/getAbiItem.d.ts.map +1 -0
  694. package/_types/utils/accounts.d.ts +3 -0
  695. package/_types/utils/accounts.d.ts.map +1 -0
  696. package/_types/utils/address/getAddress.d.ts +4 -0
  697. package/_types/utils/address/getAddress.d.ts.map +1 -0
  698. package/_types/utils/address/getContractAddress.d.ts +20 -0
  699. package/_types/utils/address/getContractAddress.d.ts.map +1 -0
  700. package/_types/utils/address/isAddress.d.ts +3 -0
  701. package/_types/utils/address/isAddress.d.ts.map +1 -0
  702. package/_types/utils/address/isAddressEqual.d.ts +3 -0
  703. package/_types/utils/address/isAddressEqual.d.ts.map +1 -0
  704. package/_types/utils/buildRequest.d.ts +6 -0
  705. package/_types/utils/buildRequest.d.ts.map +1 -0
  706. package/_types/utils/ccip.d.ts +37 -0
  707. package/_types/utils/ccip.d.ts.map +1 -0
  708. package/_types/utils/chain.d.ts +14 -0
  709. package/_types/utils/chain.d.ts.map +1 -0
  710. package/_types/utils/contract/extractFunctionParts.d.ts +13 -0
  711. package/_types/utils/contract/extractFunctionParts.d.ts.map +1 -0
  712. package/_types/utils/data/concat.d.ts +6 -0
  713. package/_types/utils/data/concat.d.ts.map +1 -0
  714. package/_types/utils/data/isBytes.d.ts +3 -0
  715. package/_types/utils/data/isBytes.d.ts.map +1 -0
  716. package/_types/utils/data/isBytesEqual.d.ts +3 -0
  717. package/_types/utils/data/isBytesEqual.d.ts.map +1 -0
  718. package/_types/utils/data/isHex.d.ts +5 -0
  719. package/_types/utils/data/isHex.d.ts.map +1 -0
  720. package/_types/utils/data/pad.d.ts +11 -0
  721. package/_types/utils/data/pad.d.ts.map +1 -0
  722. package/_types/utils/data/size.d.ts +9 -0
  723. package/_types/utils/data/size.d.ts.map +1 -0
  724. package/_types/utils/data/slice.d.ts +33 -0
  725. package/_types/utils/data/slice.d.ts.map +1 -0
  726. package/_types/utils/data/trim.d.ts +8 -0
  727. package/_types/utils/data/trim.d.ts.map +1 -0
  728. package/_types/utils/encoding/fromBytes.d.ts +109 -0
  729. package/_types/utils/encoding/fromBytes.d.ts.map +1 -0
  730. package/_types/utils/encoding/fromHex.d.ts +138 -0
  731. package/_types/utils/encoding/fromHex.d.ts.map +1 -0
  732. package/_types/utils/encoding/fromRlp.d.ts +6 -0
  733. package/_types/utils/encoding/fromRlp.d.ts.map +1 -0
  734. package/_types/utils/encoding/toBytes.d.ts +125 -0
  735. package/_types/utils/encoding/toBytes.d.ts.map +1 -0
  736. package/_types/utils/encoding/toHex.d.ts +139 -0
  737. package/_types/utils/encoding/toHex.d.ts.map +1 -0
  738. package/_types/utils/encoding/toRlp.d.ts +8 -0
  739. package/_types/utils/encoding/toRlp.d.ts.map +1 -0
  740. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +9 -0
  741. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -0
  742. package/_types/utils/ens/avatar/utils.d.ts +37 -0
  743. package/_types/utils/ens/avatar/utils.d.ts.map +1 -0
  744. package/_types/utils/ens/encodeLabelhash.d.ts +3 -0
  745. package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -0
  746. package/_types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
  747. package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -0
  748. package/_types/utils/ens/errors.d.ts +2 -0
  749. package/_types/utils/ens/errors.d.ts.map +1 -0
  750. package/_types/utils/ens/labelhash.d.ts +11 -0
  751. package/_types/utils/ens/labelhash.d.ts.map +1 -0
  752. package/_types/utils/ens/namehash.d.ts +13 -0
  753. package/_types/utils/ens/namehash.d.ts.map +1 -0
  754. package/_types/utils/ens/normalize.d.ts +12 -0
  755. package/_types/utils/ens/normalize.d.ts.map +1 -0
  756. package/_types/utils/ens/packetToBytes.d.ts +3 -0
  757. package/_types/utils/ens/packetToBytes.d.ts.map +1 -0
  758. package/_types/utils/errors/getCallError.d.ts +9 -0
  759. package/_types/utils/errors/getCallError.d.ts.map +1 -0
  760. package/_types/utils/errors/getContractError.d.ts +12 -0
  761. package/_types/utils/errors/getContractError.d.ts.map +1 -0
  762. package/_types/utils/errors/getEstimateGasError.d.ts +11 -0
  763. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -0
  764. package/_types/utils/errors/getNodeError.d.ts +7 -0
  765. package/_types/utils/errors/getNodeError.d.ts.map +1 -0
  766. package/_types/utils/errors/getTransactionError.d.ts +12 -0
  767. package/_types/utils/errors/getTransactionError.d.ts.map +1 -0
  768. package/_types/utils/filters/createFilterRequestScope.d.ts +22 -0
  769. package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -0
  770. package/_types/utils/formatters/block.d.ts +28 -0
  771. package/_types/utils/formatters/block.d.ts.map +1 -0
  772. package/_types/utils/formatters/extract.d.ts +8 -0
  773. package/_types/utils/formatters/extract.d.ts.map +1 -0
  774. package/_types/utils/formatters/feeHistory.d.ts +4 -0
  775. package/_types/utils/formatters/feeHistory.d.ts.map +1 -0
  776. package/_types/utils/formatters/formatter.d.ts +10 -0
  777. package/_types/utils/formatters/formatter.d.ts.map +1 -0
  778. package/_types/utils/formatters/log.d.ts +7 -0
  779. package/_types/utils/formatters/log.d.ts.map +1 -0
  780. package/_types/utils/formatters/transaction.d.ts +30 -0
  781. package/_types/utils/formatters/transaction.d.ts.map +1 -0
  782. package/_types/utils/formatters/transactionReceipt.d.ts +14 -0
  783. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -0
  784. package/_types/utils/formatters/transactionRequest.d.ts +19 -0
  785. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -0
  786. package/_types/utils/hash/getEventSelector.d.ts +4 -0
  787. package/_types/utils/hash/getEventSelector.d.ts.map +1 -0
  788. package/_types/utils/hash/getFunctionSelector.d.ts +3 -0
  789. package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -0
  790. package/_types/utils/hash/hashFunction.d.ts +4 -0
  791. package/_types/utils/hash/hashFunction.d.ts.map +1 -0
  792. package/_types/utils/hash/isHash.d.ts +3 -0
  793. package/_types/utils/hash/isHash.d.ts.map +1 -0
  794. package/_types/utils/hash/keccak256.d.ts +6 -0
  795. package/_types/utils/hash/keccak256.d.ts.map +1 -0
  796. package/_types/utils/index.d.ts +84 -0
  797. package/_types/utils/index.d.ts.map +1 -0
  798. package/_types/utils/observe.d.ts +17 -0
  799. package/_types/utils/observe.d.ts.map +1 -0
  800. package/_types/utils/poll.d.ts +13 -0
  801. package/_types/utils/poll.d.ts.map +1 -0
  802. package/_types/utils/promise/createBatchScheduler.d.ts +17 -0
  803. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -0
  804. package/_types/utils/promise/withCache.d.ts +36 -0
  805. package/_types/utils/promise/withCache.d.ts.map +1 -0
  806. package/_types/utils/promise/withRetry.d.ts +12 -0
  807. package/_types/utils/promise/withRetry.d.ts.map +1 -0
  808. package/_types/utils/promise/withTimeout.d.ts +8 -0
  809. package/_types/utils/promise/withTimeout.d.ts.map +1 -0
  810. package/_types/utils/regex.d.ts +4 -0
  811. package/_types/utils/regex.d.ts.map +1 -0
  812. package/_types/utils/rpc.d.ts +73 -0
  813. package/_types/utils/rpc.d.ts.map +1 -0
  814. package/_types/utils/signature/hashMessage.d.ts +6 -0
  815. package/_types/utils/signature/hashMessage.d.ts.map +1 -0
  816. package/_types/utils/signature/hashTypedData.d.ts +20 -0
  817. package/_types/utils/signature/hashTypedData.d.ts.map +1 -0
  818. package/_types/utils/signature/hexToSignature.d.ts +13 -0
  819. package/_types/utils/signature/hexToSignature.d.ts.map +1 -0
  820. package/_types/utils/signature/recoverAddress.d.ts +9 -0
  821. package/_types/utils/signature/recoverAddress.d.ts.map +1 -0
  822. package/_types/utils/signature/recoverMessageAddress.d.ts +9 -0
  823. package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -0
  824. package/_types/utils/signature/recoverPublicKey.d.ts +8 -0
  825. package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -0
  826. package/_types/utils/signature/recoverTypedDataAddress.d.ts +13 -0
  827. package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -0
  828. package/_types/utils/signature/signatureToHex.d.ts +17 -0
  829. package/_types/utils/signature/signatureToHex.d.ts.map +1 -0
  830. package/_types/utils/signature/verifyMessage.d.ts +25 -0
  831. package/_types/utils/signature/verifyMessage.d.ts.map +1 -0
  832. package/_types/utils/signature/verifyTypedData.d.ts +28 -0
  833. package/_types/utils/signature/verifyTypedData.d.ts.map +1 -0
  834. package/_types/utils/stringify.d.ts +2 -0
  835. package/_types/utils/stringify.d.ts.map +1 -0
  836. package/_types/utils/transaction/assertRequest.d.ts +5 -0
  837. package/_types/utils/transaction/assertRequest.d.ts.map +1 -0
  838. package/_types/utils/transaction/assertTransaction.d.ts +5 -0
  839. package/_types/utils/transaction/assertTransaction.d.ts.map +1 -0
  840. package/_types/utils/transaction/getSerializedTransactionType.d.ts +4 -0
  841. package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -0
  842. package/_types/utils/transaction/getTransactionType.d.ts +4 -0
  843. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -0
  844. package/_types/utils/transaction/parseTransaction.d.ts +9 -0
  845. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -0
  846. package/_types/utils/transaction/serializeAccessList.d.ts +5 -0
  847. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -0
  848. package/_types/utils/transaction/serializeTransaction.d.ts +7 -0
  849. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -0
  850. package/_types/utils/typedData.d.ts +13 -0
  851. package/_types/utils/typedData.d.ts.map +1 -0
  852. package/_types/utils/uid.d.ts +2 -0
  853. package/_types/utils/uid.d.ts.map +1 -0
  854. package/_types/utils/unit/formatEther.d.ts +2 -0
  855. package/_types/utils/unit/formatEther.d.ts.map +1 -0
  856. package/_types/utils/unit/formatGwei.d.ts +2 -0
  857. package/_types/utils/unit/formatGwei.d.ts.map +1 -0
  858. package/_types/utils/unit/formatUnits.d.ts +2 -0
  859. package/_types/utils/unit/formatUnits.d.ts.map +1 -0
  860. package/_types/utils/unit/parseEther.d.ts +2 -0
  861. package/_types/utils/unit/parseEther.d.ts.map +1 -0
  862. package/_types/utils/unit/parseGwei.d.ts +2 -0
  863. package/_types/utils/unit/parseGwei.d.ts.map +1 -0
  864. package/_types/utils/unit/parseUnits.d.ts +2 -0
  865. package/_types/utils/unit/parseUnits.d.ts.map +1 -0
  866. package/_types/utils/wait.d.ts +2 -0
  867. package/_types/utils/wait.d.ts.map +1 -0
  868. package/_types/wallet/index.d.ts +11 -0
  869. package/_types/wallet/index.d.ts.map +1 -0
  870. package/_types/window/index.d.ts +2 -0
  871. package/_types/window/index.d.ts.map +1 -0
  872. package/{abi.ts → abi/index.ts} +15 -13
  873. package/abi/package.json +6 -0
  874. package/accounts/package.json +6 -0
  875. package/actions/package.json +6 -0
  876. package/chains/package.json +6 -0
  877. package/chains/{utils.ts → utils/index.ts} +6 -6
  878. package/chains/utils/package.json +6 -0
  879. package/clients/package.json +6 -0
  880. package/{contract.ts → contract/index.ts} +27 -25
  881. package/contract/package.json +6 -0
  882. package/{ens.ts → ens/index.ts} +8 -8
  883. package/ens/package.json +6 -0
  884. package/errors/version.ts +1 -1
  885. package/package.json +37 -34
  886. package/{public.ts → public/index.ts} +30 -28
  887. package/public/package.json +6 -0
  888. package/test/index.ts +85 -0
  889. package/test/package.json +6 -0
  890. package/utils/package.json +6 -0
  891. package/{wallet.ts → wallet/index.ts} +15 -10
  892. package/wallet/package.json +6 -0
  893. package/window/index.ts +1 -0
  894. package/window/package.json +6 -0
  895. package/_cjs/_test/generated.js +0 -360
  896. package/_cjs/_test/generated.js.map +0 -1
  897. package/_cjs/abi.js.map +0 -1
  898. package/_cjs/chains/utils.js.map +0 -1
  899. package/_cjs/contract.js.map +0 -1
  900. package/_cjs/ens.js.map +0 -1
  901. package/_cjs/public.js.map +0 -1
  902. package/_cjs/test.js.map +0 -1
  903. package/_cjs/wallet.js.map +0 -1
  904. package/_cjs/window.js.map +0 -1
  905. package/_esm/_test/generated.js +0 -388
  906. package/_esm/_test/generated.js.map +0 -1
  907. package/_esm/abi.js +0 -6
  908. package/_esm/abi.js.map +0 -1
  909. package/_esm/chains/utils.js +0 -5
  910. package/_esm/chains/utils.js.map +0 -1
  911. package/_esm/contract.js +0 -25
  912. package/_esm/contract.js.map +0 -1
  913. package/_esm/ens.js +0 -9
  914. package/_esm/ens.js.map +0 -1
  915. package/_esm/public.js +0 -29
  916. package/_esm/public.js.map +0 -1
  917. package/_esm/test.js +0 -29
  918. package/_esm/test.js.map +0 -1
  919. package/_esm/wallet.js +0 -11
  920. package/_esm/wallet.js.map +0 -1
  921. package/_esm/window.js +0 -2
  922. package/_esm/window.js.map +0 -1
  923. package/_test/generated.ts +0 -407
  924. package/test.ts +0 -83
  925. package/window.ts +0 -1
@@ -0,0 +1,139 @@
1
+ import type { ByteArray, Hex } from '../../types/misc.js';
2
+ export type ToHexParameters = {
3
+ /** The size (in bytes) of the output hex value. */
4
+ size?: number;
5
+ };
6
+ /**
7
+ * Encodes a string, number, bigint, or ByteArray into a hex string
8
+ *
9
+ * - Docs: https://viem.sh/docs/utilities/toHex.html
10
+ * - Example: https://viem.sh/docs/utilities/toHex.html#usage
11
+ *
12
+ * @param value Value to encode.
13
+ * @param opts Options.
14
+ * @returns Hex value.
15
+ *
16
+ * @example
17
+ * import { toHex } from 'viem'
18
+ * const data = toHex('Hello world')
19
+ * // '0x48656c6c6f20776f726c6421'
20
+ *
21
+ * @example
22
+ * import { toHex } from 'viem'
23
+ * const data = toHex(420)
24
+ * // '0x1a4'
25
+ *
26
+ * @example
27
+ * import { toHex } from 'viem'
28
+ * const data = toHex('Hello world', { size: 32 })
29
+ * // '0x48656c6c6f20776f726c64210000000000000000000000000000000000000000'
30
+ */
31
+ export declare function toHex(value: string | number | bigint | boolean | ByteArray, opts?: ToHexParameters): Hex;
32
+ export type BoolToHexOpts = {
33
+ /** The size (in bytes) of the output hex value. */
34
+ size?: number;
35
+ };
36
+ /**
37
+ * Encodes a boolean into a hex string
38
+ *
39
+ * - Docs: https://viem.sh/docs/utilities/toHex.html#booltohex
40
+ *
41
+ * @param value Value to encode.
42
+ * @param opts Options.
43
+ * @returns Hex value.
44
+ *
45
+ * @example
46
+ * import { boolToHex } from 'viem'
47
+ * const data = boolToHex(true)
48
+ * // '0x1'
49
+ *
50
+ * @example
51
+ * import { boolToHex } from 'viem'
52
+ * const data = boolToHex(false)
53
+ * // '0x0'
54
+ *
55
+ * @example
56
+ * import { boolToHex } from 'viem'
57
+ * const data = boolToHex(true, { size: 32 })
58
+ * // '0x0000000000000000000000000000000000000000000000000000000000000001'
59
+ */
60
+ export declare function boolToHex(value: boolean, opts?: BoolToHexOpts): Hex;
61
+ export type BytesToHexOpts = {
62
+ /** The size (in bytes) of the output hex value. */
63
+ size?: number;
64
+ };
65
+ /**
66
+ * Encodes a bytes array into a hex string
67
+ *
68
+ * - Docs: https://viem.sh/docs/utilities/toHex.html#bytestohex
69
+ *
70
+ * @param value Value to encode.
71
+ * @param opts Options.
72
+ * @returns Hex value.
73
+ *
74
+ * @example
75
+ * import { bytesToHex } from 'viem'
76
+ * const data = bytesToHex(Uint8Array.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33])
77
+ * // '0x48656c6c6f20576f726c6421'
78
+ *
79
+ * @example
80
+ * import { bytesToHex } from 'viem'
81
+ * const data = bytesToHex(Uint8Array.from([72, 101, 108, 108, 111, 32, 87, 111, 114, 108, 100, 33]), { size: 32 })
82
+ * // '0x48656c6c6f20576f726c64210000000000000000000000000000000000000000'
83
+ */
84
+ export declare function bytesToHex(value: ByteArray, opts?: BytesToHexOpts): Hex;
85
+ export type NumberToHexOpts = {
86
+ /** Whether or not the number of a signed representation. */
87
+ signed?: boolean;
88
+ /** The size (in bytes) of the output hex value. */
89
+ size: number;
90
+ } | {
91
+ signed?: never;
92
+ /** The size (in bytes) of the output hex value. */
93
+ size?: number;
94
+ };
95
+ /**
96
+ * Encodes a number or bigint into a hex string
97
+ *
98
+ * - Docs: https://viem.sh/docs/utilities/toHex.html#numbertohex
99
+ *
100
+ * @param value Value to encode.
101
+ * @param opts Options.
102
+ * @returns Hex value.
103
+ *
104
+ * @example
105
+ * import { numberToHex } from 'viem'
106
+ * const data = numberToHex(420)
107
+ * // '0x1a4'
108
+ *
109
+ * @example
110
+ * import { numberToHex } from 'viem'
111
+ * const data = numberToHex(420, { size: 32 })
112
+ * // '0x00000000000000000000000000000000000000000000000000000000000001a4'
113
+ */
114
+ export declare function numberToHex(value_: number | bigint, opts?: NumberToHexOpts): Hex;
115
+ export type StringToHexOpts = {
116
+ /** The size (in bytes) of the output hex value. */
117
+ size?: number;
118
+ };
119
+ /**
120
+ * Encodes a UTF-8 string into a hex string
121
+ *
122
+ * - Docs: https://viem.sh/docs/utilities/toHex.html#stringtohex
123
+ *
124
+ * @param value Value to encode.
125
+ * @param opts Options.
126
+ * @returns Hex value.
127
+ *
128
+ * @example
129
+ * import { stringToHex } from 'viem'
130
+ * const data = stringToHex('Hello World!')
131
+ * // '0x48656c6c6f20576f726c6421'
132
+ *
133
+ * @example
134
+ * import { stringToHex } from 'viem'
135
+ * const data = stringToHex('Hello World!', { size: 32 })
136
+ * // '0x48656c6c6f20576f726c64210000000000000000000000000000000000000000'
137
+ */
138
+ export declare function stringToHex(value_: string, opts?: StringToHexOpts): Hex;
139
+ //# sourceMappingURL=toHex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toHex.d.ts","sourceRoot":"","sources":["../../../utils/encoding/toHex.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AASzD,MAAM,MAAM,eAAe,GAAG;IAC5B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,KAAK,CACnB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,EACrD,IAAI,GAAE,eAAoB,GACzB,GAAG,CAQL;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,GAAE,aAAkB,GAAG,GAAG,CAOvE;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,GAAE,cAAmB,GAAG,GAAG,CAY3E;AAED,MAAM,MAAM,eAAe,GACvB;IACE,4DAA4D;IAC5D,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAA;CACb,GACD;IACE,MAAM,CAAC,EAAE,KAAK,CAAA;IACd,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAEL;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,IAAI,GAAE,eAAoB,GACzB,GAAG,CAgCL;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,mDAAmD;IACnD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA;AAID;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,GAAE,eAAoB,GAAG,GAAG,CAG3E"}
@@ -0,0 +1,8 @@
1
+ import type { ByteArray, Hex } from '../../types/misc.js';
2
+ export type RecursiveArray<T> = T | RecursiveArray<T>[];
3
+ type To = 'hex' | 'bytes';
4
+ export type ToRlpReturnType<TTo extends To> = TTo extends 'bytes' ? ByteArray : TTo extends 'hex' ? Hex : never;
5
+ export declare function toRlp<TTo extends To = 'hex'>(hexOrBytes: RecursiveArray<Hex> | RecursiveArray<ByteArray>, to_?: TTo): ToRlpReturnType<TTo>;
6
+ export declare function bytesToRlp(bytes: RecursiveArray<ByteArray>): ByteArray;
7
+ export {};
8
+ //# sourceMappingURL=toRlp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toRlp.d.ts","sourceRoot":"","sources":["../../../utils/encoding/toRlp.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAMzD,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,EAAE,CAAA;AAEvD,KAAK,EAAE,GAAG,KAAK,GAAG,OAAO,CAAA;AAEzB,MAAM,MAAM,eAAe,CAAC,GAAG,SAAS,EAAE,IAAI,GAAG,SAAS,OAAO,GAC7D,SAAS,GACT,GAAG,SAAS,KAAK,GACjB,GAAG,GACH,KAAK,CAAA;AAET,wBAAgB,KAAK,CAAC,GAAG,SAAS,EAAE,GAAG,KAAK,EAC1C,UAAU,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,cAAc,CAAC,SAAS,CAAC,EAC3D,GAAG,CAAC,EAAE,GAAG,wBAIV;AAaD,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAQtE"}
@@ -0,0 +1,9 @@
1
+ import type { Client } from '../../../clients/createClient.js';
2
+ import type { Transport } from '../../../clients/transports/createTransport.js';
3
+ import type { Chain } from '../../../types/chain.js';
4
+ import type { AssetGatewayUrls } from '../../../types/ens.js';
5
+ export declare function parseAvatarRecord<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { gatewayUrls, record, }: {
6
+ gatewayUrls?: AssetGatewayUrls;
7
+ record: string;
8
+ }): Promise<string>;
9
+ //# sourceMappingURL=parseAvatarRecord.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseAvatarRecord.d.ts","sourceRoot":"","sources":["../../../../utils/ens/avatar/parseAvatarRecord.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW7D,wBAAsB,iBAAiB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACtE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EACE,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf,GACA,OAAO,CAAC,MAAM,CAAC,CAIjB"}
@@ -0,0 +1,37 @@
1
+ import type { Address } from 'abitype';
2
+ import type { Client } from '../../../clients/createClient.js';
3
+ import type { Transport } from '../../../clients/transports/createTransport.js';
4
+ import type { Chain } from '../../../types/chain.js';
5
+ import type { AssetGatewayUrls } from '../../../types/ens.js';
6
+ type UriItem = {
7
+ uri: string;
8
+ isOnChain: boolean;
9
+ isEncoded: boolean;
10
+ };
11
+ export declare function isImageUri(uri: string): Promise<unknown>;
12
+ export declare function getGateway(custom: string | undefined, defaultGateway: string): string;
13
+ export declare function resolveAvatarUri({ uri, gatewayUrls, }: {
14
+ uri: string;
15
+ gatewayUrls?: AssetGatewayUrls | undefined;
16
+ }): UriItem;
17
+ export declare function getJsonImage(data: any): any;
18
+ export declare function getMetadataAvatarUri({ gatewayUrls, uri, }: {
19
+ gatewayUrls?: AssetGatewayUrls | undefined;
20
+ uri: string;
21
+ }): Promise<string>;
22
+ export declare function parseAvatarUri({ gatewayUrls, uri, }: {
23
+ gatewayUrls?: AssetGatewayUrls | undefined;
24
+ uri: string;
25
+ }): Promise<string>;
26
+ type ParsedNft = {
27
+ chainID: number;
28
+ namespace: string;
29
+ contractAddress: Address;
30
+ tokenID: string;
31
+ };
32
+ export declare function parseNftUri(uri_: string): ParsedNft;
33
+ export declare function getNftTokenUri<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { nft }: {
34
+ nft: ParsedNft;
35
+ }): Promise<string>;
36
+ export {};
37
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../utils/ens/avatar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAO/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AASD,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,oBA6B3C;AAED,wBAAgB,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,cAAc,EAAE,MAAM,UAI5E;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,WAAW,GACZ,EAAE;IACD,GAAG,EAAE,MAAM,CAAA;IACX,WAAW,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;CAC3C,GAAG,OAAO,CAuDV;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,OAUrC;AAED,wBAAsB,oBAAoB,CAAC,EACzC,WAAW,EACX,GAAG,GACJ,EAAE;IACD,WAAW,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,OAAO,CAAC,MAAM,CAAC,CAWlB;AAED,wBAAsB,cAAc,CAAC,EACnC,WAAW,EACX,GAAG,GACJ,EAAE;IACD,WAAW,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAA;IAC1C,GAAG,EAAE,MAAM,CAAA;CACZ,GAAG,OAAO,CAAC,MAAM,CAAC,CASlB;AAED,KAAK,SAAS,GAAG;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,eAAe,EAAE,OAAO,CAAA;IACxB,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,CAgCnD;AAED,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,SAAS,CAAA;CAAE,mBAmC5B"}
@@ -0,0 +1,3 @@
1
+ import type { Hex } from '../../types/misc.js';
2
+ export declare function encodeLabelhash(hash: Hex): `[${string}]`;
3
+ //# sourceMappingURL=encodeLabelhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodeLabelhash.d.ts","sourceRoot":"","sources":["../../../utils/ens/encodeLabelhash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAE9C,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,MAAM,GAAG,CAExD"}
@@ -0,0 +1,3 @@
1
+ import type { Hex } from '../../types/misc.js';
2
+ export declare function encodedLabelToLabelhash(label: string): Hex | null;
3
+ //# sourceMappingURL=encodedLabelToLabelhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encodedLabelToLabelhash.d.ts","sourceRoot":"","sources":["../../../utils/ens/encodedLabelToLabelhash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAG9C,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAOjE"}
@@ -0,0 +1,2 @@
1
+ export declare function isNullUniversalResolverError(err: unknown, callType: 'resolve' | 'reverse'): boolean;
2
+ //# sourceMappingURL=errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../utils/ens/errors.ts"],"names":[],"mappings":"AAOA,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,OAAO,EACZ,QAAQ,EAAE,SAAS,GAAG,SAAS,GAC9B,OAAO,CAgBT"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * @description Hashes ENS label
3
+ *
4
+ * - Since ENS labels prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS labels](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `labelhash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
5
+ *
6
+ * @example
7
+ * labelhash('eth')
8
+ * '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'
9
+ */
10
+ export declare function labelhash(label: string): `0x${string}`;
11
+ //# sourceMappingURL=labelhash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"labelhash.d.ts","sourceRoot":"","sources":["../../../utils/ens/labelhash.ts"],"names":[],"mappings":"AAKA;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,iBAItC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @description Hashes ENS name
3
+ *
4
+ * - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `namehash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
5
+ *
6
+ * @example
7
+ * namehash('wagmi-dev.eth')
8
+ * '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'
9
+ *
10
+ * @link https://eips.ethereum.org/EIPS/eip-137
11
+ */
12
+ export declare function namehash(name: string): `0x${string}`;
13
+ //# sourceMappingURL=namehash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"namehash.d.ts","sourceRoot":"","sources":["../../../utils/ens/namehash.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,iBAepC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * @description Normalizes ENS name according to ENSIP-15.
3
+ *
4
+ * @example
5
+ * normalize('wagmi-dev.eth')
6
+ * 'wagmi-dev.eth'
7
+ *
8
+ * @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
9
+ * @see https://github.com/ensdomains/docs/blob/9edf9443de4333a0ea7ec658a870672d5d180d53/ens-improvement-proposals/ensip-15-normalization-standard.md
10
+ */
11
+ export declare function normalize(name: string): string;
12
+ //# sourceMappingURL=normalize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalize.d.ts","sourceRoot":"","sources":["../../../utils/ens/normalize.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,UAErC"}
@@ -0,0 +1,3 @@
1
+ import type { ByteArray } from '../../types/misc.js';
2
+ export declare function packetToBytes(packet: string): ByteArray;
3
+ //# sourceMappingURL=packetToBytes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"packetToBytes.d.ts","sourceRoot":"","sources":["../../../utils/ens/packetToBytes.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAQpD,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAuBvD"}
@@ -0,0 +1,9 @@
1
+ import type { CallParameters } from '../../actions/public/call.js';
2
+ import type { BaseError } from '../../errors/base.js';
3
+ import { CallExecutionError } from '../../errors/contract.js';
4
+ import type { Chain } from '../../types/chain.js';
5
+ export declare function getCallError(err: BaseError, { docsPath, ...args }: CallParameters & {
6
+ chain?: Chain;
7
+ docsPath?: string;
8
+ }): CallExecutionError;
9
+ //# sourceMappingURL=getCallError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCallError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getCallError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAE7D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAIjD,wBAAgB,YAAY,CAC1B,GAAG,EAAE,SAAS,EACd,EACE,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,cAAc,GAAG;IAClB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,sBAQF"}
@@ -0,0 +1,12 @@
1
+ import type { Abi, Address } from 'abitype';
2
+ import { BaseError } from '../../errors/base.js';
3
+ import { ContractFunctionExecutionError } from '../../errors/contract.js';
4
+ export declare function getContractError(err: BaseError, { abi, address, args, docsPath, functionName, sender, }: {
5
+ abi: Abi;
6
+ args: any;
7
+ address?: Address;
8
+ docsPath?: string;
9
+ functionName: string;
10
+ sender?: Address;
11
+ }): ContractFunctionExecutionError;
12
+ //# sourceMappingURL=getContractError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getContractError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getContractError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EACL,8BAA8B,EAI/B,MAAM,0BAA0B,CAAA;AAKjC,wBAAgB,gBAAgB,CAC9B,GAAG,EAAE,SAAS,EACd,EACE,GAAG,EACH,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,MAAM,GACP,EAAE;IACD,GAAG,EAAE,GAAG,CAAA;IACR,IAAI,EAAE,GAAG,CAAA;IACT,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB,kCAiCF"}
@@ -0,0 +1,11 @@
1
+ import type { Account } from '../../accounts/types.js';
2
+ import type { EstimateGasParameters } from '../../actions/public/estimateGas.js';
3
+ import type { BaseError } from '../../errors/base.js';
4
+ import { EstimateGasExecutionError } from '../../errors/estimateGas.js';
5
+ import type { Chain } from '../../types/chain.js';
6
+ export declare function getEstimateGasError(err: BaseError, { docsPath, ...args }: Omit<EstimateGasParameters, 'account'> & {
7
+ account?: Account;
8
+ chain?: Chain;
9
+ docsPath?: string;
10
+ }): EstimateGasExecutionError;
11
+ //# sourceMappingURL=getEstimateGasError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEstimateGasError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getEstimateGasError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAIjD,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,SAAS,EACd,EACE,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,IAAI,CAAC,qBAAqB,EAAE,SAAS,CAAC,GAAG;IAC1C,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,6BAQF"}
@@ -0,0 +1,7 @@
1
+ import type { SendTransactionParameters } from '../../actions/wallet/sendTransaction.js';
2
+ import { BaseError } from '../../errors/base.js';
3
+ import { ExecutionRevertedError, FeeCapTooHighError, FeeCapTooLowError, InsufficientFundsError, IntrinsicGasTooHighError, IntrinsicGasTooLowError, NonceMaxValueError, NonceTooHighError, NonceTooLowError, TipAboveFeeCapError, TransactionTypeNotSupportedError, UnknownNodeError } from '../../errors/node.js';
4
+ export declare function containsNodeError(err: BaseError): boolean;
5
+ export type GetNodeErrorParameters = Partial<SendTransactionParameters<any>>;
6
+ export declare function getNodeError(err: BaseError, args: GetNodeErrorParameters): ExecutionRevertedError | FeeCapTooHighError | FeeCapTooLowError | NonceTooHighError | NonceTooLowError | NonceMaxValueError | InsufficientFundsError | IntrinsicGasTooHighError | IntrinsicGasTooLowError | TransactionTypeNotSupportedError | TipAboveFeeCapError | UnknownNodeError;
7
+ //# sourceMappingURL=getNodeError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getNodeError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getNodeError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AACxF,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EACL,sBAAsB,EACtB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,wBAAwB,EACxB,uBAAuB,EACvB,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,mBAAmB,EACnB,gCAAgC,EAChC,gBAAgB,EACjB,MAAM,sBAAsB,CAAA;AAO7B,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,SAAS,WAM/C;AAED,MAAM,MAAM,sBAAsB,GAAG,OAAO,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC,CAAA;AAE5E,wBAAgB,YAAY,CAAC,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,sBAAsB,yRAiDxE"}
@@ -0,0 +1,12 @@
1
+ import type { Account } from '../../accounts/types.js';
2
+ import type { SendTransactionParameters } from '../../actions/wallet/sendTransaction.js';
3
+ import type { BaseError } from '../../errors/base.js';
4
+ import { TransactionExecutionError } from '../../errors/transaction.js';
5
+ import type { Chain } from '../../types/chain.js';
6
+ export type GetTransactionErrorParameters = Omit<SendTransactionParameters, 'account' | 'chain'> & {
7
+ account: Account;
8
+ chain?: Chain;
9
+ docsPath?: string;
10
+ };
11
+ export declare function getTransactionError(err: BaseError, { docsPath, ...args }: GetTransactionErrorParameters): TransactionExecutionError;
12
+ //# sourceMappingURL=getTransactionError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getTransactionError.d.ts","sourceRoot":"","sources":["../../../utils/errors/getTransactionError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AACxF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAErD,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AACvE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAIjD,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAC9C,yBAAyB,EACzB,SAAS,GAAG,OAAO,CACpB,GAAG;IACF,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,SAAS,EACd,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,EAAE,6BAA6B,6BAQrD"}
@@ -0,0 +1,22 @@
1
+ import type { Client } from '../../clients/createClient.js';
2
+ import type { Transport } from '../../clients/transports/createTransport.js';
3
+ import type { Chain } from '../../types/chain.js';
4
+ import type { PublicRpcSchema } from '../../types/eip1193.js';
5
+ import type { EIP1193RequestFn } from '../../types/eip1193.js';
6
+ import type { Hex } from '../../types/misc.js';
7
+ import type { Filter } from '../../types/utils.js';
8
+ type CreateFilterRequestScopeParameters = {
9
+ method: 'eth_newFilter' | 'eth_newPendingTransactionFilter' | 'eth_newBlockFilter';
10
+ };
11
+ type FilterRpcSchema = Filter<PublicRpcSchema, {
12
+ Method: 'eth_getFilterLogs' | 'eth_getFilterChanges';
13
+ }>;
14
+ type CreateFilterRequestScopeReturnType = (id: Hex) => EIP1193RequestFn<FilterRpcSchema>;
15
+ /**
16
+ * Scopes `request` to the filter ID. If the client is a fallback, it will
17
+ * listen for responses and scope the child transport `request` function
18
+ * to the successful filter ID.
19
+ */
20
+ export declare function createFilterRequestScope<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { method }: CreateFilterRequestScopeParameters): CreateFilterRequestScopeReturnType;
21
+ export {};
22
+ //# sourceMappingURL=createFilterRequestScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createFilterRequestScope.d.ts","sourceRoot":"","sources":["../../../utils/filters/createFilterRequestScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,MAAM,EACF,eAAe,GACf,iCAAiC,GACjC,oBAAoB,CAAA;CACzB,CAAA;AAED,KAAK,eAAe,GAAG,MAAM,CAC3B,eAAe,EACf;IAAE,MAAM,EAAE,mBAAmB,GAAG,sBAAsB,CAAA;CAAE,CACzD,CAAA;AAED,KAAK,kCAAkC,GAAG,CACxC,EAAE,EAAE,GAAG,KACJ,gBAAgB,CAAC,eAAe,CAAC,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACvE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,MAAM,EAAE,EAAE,kCAAkC,GAC7C,kCAAkC,CAkBpC"}
@@ -0,0 +1,28 @@
1
+ import type { Block, BlockTag } from '../../types/block.js';
2
+ import type { Chain } from '../../types/chain.js';
3
+ import type { ExtractChainFormatterExclude, ExtractChainFormatterReturnType } from '../../types/chain.js';
4
+ import type { Hash } from '../../types/misc.js';
5
+ import type { RpcBlock } from '../../types/rpc.js';
6
+ import type { Prettify } from '../../types/utils.js';
7
+ import { type FormattedTransaction } from './transaction.js';
8
+ type BlockPendingDependencies = 'hash' | 'logsBloom' | 'nonce' | 'number';
9
+ export type FormattedBlock<TChain extends {
10
+ formatters?: Chain['formatters'];
11
+ } | undefined = {
12
+ formatters?: Chain['formatters'];
13
+ } | undefined, TIncludeTransactions extends boolean = boolean, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'block', Block<bigint, TIncludeTransactions>>, _ExcludedPendingDependencies extends string = BlockPendingDependencies & ExtractChainFormatterExclude<TChain, 'block'>, _Formatted = Omit<_FormatterReturnType, BlockPendingDependencies> & {
14
+ [K in _ExcludedPendingDependencies]: never;
15
+ } & Pick<Block<bigint, TIncludeTransactions, TBlockTag>, BlockPendingDependencies>, _Transactions = TIncludeTransactions extends true ? Prettify<FormattedTransaction<TChain, TBlockTag>>[] : Hash[]> = Omit<_Formatted, 'transactions'> & {
16
+ transactions: _Transactions;
17
+ };
18
+ export declare function formatBlock(block: Partial<RpcBlock>): Block;
19
+ export declare const defineBlock: <TOverrideParameters, TOverrideReturnType, TExclude extends (keyof RpcBlock)[] = []>({ exclude, format: overrides, }: {
20
+ exclude?: TExclude | undefined;
21
+ format: (_: TOverrideParameters) => TOverrideReturnType;
22
+ }) => {
23
+ exclude: TExclude | undefined;
24
+ format: (args: import("../../types/utils.js").Assign<Partial<RpcBlock>, TOverrideParameters>) => (import("../../types/utils.js").Assign<Block, TOverrideReturnType> extends infer T ? { [K in keyof T]: import("../../types/utils.js").Assign<Block, TOverrideReturnType>[K]; } : never) & { [K_1 in TExclude[number]]: never; };
25
+ type: "block";
26
+ };
27
+ export {};
28
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../utils/formatters/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EAAE,KAAK,oBAAoB,EAAqB,MAAM,kBAAkB,CAAA;AAE/E,KAAK,wBAAwB,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzE,MAAM,MAAM,cAAc,CACxB,MAAM,SAAS;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAAE,GAAG,SAAS,GAC3D;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAAE,GACpC,SAAS,EACb,oBAAoB,SAAS,OAAO,GAAG,OAAO,EAC9C,SAAS,SAAS,QAAQ,GAAG,QAAQ,EACrC,oBAAoB,GAAG,+BAA+B,CACpD,MAAM,EACN,OAAO,EACP,KAAK,CAAC,MAAM,EAAE,oBAAoB,CAAC,CACpC,EACD,4BAA4B,SAAS,MAAM,GAAG,wBAAwB,GACpE,4BAA4B,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/C,UAAU,GAAG,IAAI,CAAC,oBAAoB,EAAE,wBAAwB,CAAC,GAAG;KACjE,CAAC,IAAI,4BAA4B,GAAG,KAAK;CAC3C,GAAG,IAAI,CACJ,KAAK,CAAC,MAAM,EAAE,oBAAoB,EAAE,SAAS,CAAC,EAC9C,wBAAwB,CACzB,EACH,aAAa,GAAG,oBAAoB,SAAS,IAAI,GAC7C,QAAQ,CAAC,oBAAoB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAAE,GACnD,IAAI,EAAE,IACR,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,GAAG;IACrC,YAAY,EAAE,aAAa,CAAA;CAC5B,CAAA;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,SAsBnD;AAED,eAAO,MAAM,WAAW;;;;;;;CAAsD,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { ChainFormatter } from '../../types/chain.js';
2
+ /**
3
+ * @description Picks out the keys from `value` that exist in the formatter.
4
+ */
5
+ export declare function extract(value: Record<string, unknown>, { format }: {
6
+ format?: ChainFormatter['format'];
7
+ }): Record<string, unknown>;
8
+ //# sourceMappingURL=extract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extract.d.ts","sourceRoot":"","sources":["../../../utils/formatters/extract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D;;GAEG;AACH,wBAAgB,OAAO,CACrB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC9B,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,CAAC,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAA;CAAE,2BAWlD"}
@@ -0,0 +1,4 @@
1
+ import type { FeeHistory } from '../../types/fee.js';
2
+ import type { RpcFeeHistory } from '../../types/rpc.js';
3
+ export declare function formatFeeHistory(feeHistory: RpcFeeHistory): FeeHistory;
4
+ //# sourceMappingURL=feeHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feeHistory.d.ts","sourceRoot":"","sources":["../../../utils/formatters/feeHistory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,aAAa,GAAG,UAAU,CAStE"}
@@ -0,0 +1,10 @@
1
+ import type { Assign } from '../../types/utils.js';
2
+ export declare function defineFormatter<TType extends string, TParameters, TReturnType>(type: TType, format: (_: TParameters) => TReturnType): <TOverrideParameters, TOverrideReturnType, TExclude extends (keyof TParameters)[] = []>({ exclude, format: overrides, }: {
3
+ exclude?: TExclude | undefined;
4
+ format: (_: TOverrideParameters) => TOverrideReturnType;
5
+ }) => {
6
+ exclude: TExclude | undefined;
7
+ format: (args: Assign<TParameters, TOverrideParameters>) => (Assign<TReturnType, TOverrideReturnType> extends infer T ? { [K in keyof T]: Assign<TReturnType, TOverrideReturnType>[K]; } : never) & { [K_1 in TExclude[number]]: never; };
8
+ type: TType;
9
+ };
10
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../../../utils/formatters/formatter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAY,MAAM,sBAAsB,CAAA;AAE5D,wBAAgB,eAAe,CAAC,KAAK,SAAS,MAAM,EAAE,WAAW,EAAE,WAAW,EAC5E,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,CAAC,CAAC,EAAE,WAAW,KAAK,WAAW;;;;;;;EAgCxC"}
@@ -0,0 +1,7 @@
1
+ import type { Log } from '../../types/log.js';
2
+ import type { RpcLog } from '../../types/rpc.js';
3
+ export declare function formatLog(log: Partial<RpcLog>, { args, eventName }?: {
4
+ args?: unknown;
5
+ eventName?: string;
6
+ }): Log;
7
+ //# sourceMappingURL=log.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../utils/formatters/log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,wBAAgB,SAAS,CACvB,GAAG,EAAE,OAAO,CAAC,MAAM,CAAC,EACpB,EAAE,IAAI,EAAE,SAAS,EAAE,GAAE;IAAE,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,OAajE"}
@@ -0,0 +1,30 @@
1
+ import type { BlockTag } from '../../types/block.js';
2
+ import type { Chain } from '../../types/chain.js';
3
+ import type { ExtractChainFormatterExclude, ExtractChainFormatterReturnType } from '../../types/chain.js';
4
+ import type { RpcTransaction } from '../../types/rpc.js';
5
+ import type { Transaction } from '../../types/transaction.js';
6
+ import type { UnionOmit } from '../../types/utils.js';
7
+ type TransactionPendingDependencies = 'blockHash' | 'blockNumber' | 'transactionIndex';
8
+ export type FormattedTransaction<TChain extends {
9
+ formatters?: Chain['formatters'];
10
+ } | undefined = {
11
+ formatters?: Chain['formatters'];
12
+ } | undefined, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'transaction', Transaction>, _ExcludedPendingDependencies extends string = TransactionPendingDependencies & ExtractChainFormatterExclude<TChain, 'transaction'>> = UnionOmit<_FormatterReturnType, TransactionPendingDependencies> & {
13
+ [K in _ExcludedPendingDependencies]: never;
14
+ } & Pick<Transaction<bigint, number, TBlockTag extends 'pending' ? true : false>, TransactionPendingDependencies>;
15
+ export declare const transactionType: {
16
+ readonly '0x0': "legacy";
17
+ readonly '0x1': "eip2930";
18
+ readonly '0x2': "eip1559";
19
+ };
20
+ export declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction;
21
+ export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("type" | "gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "blockHash" | "blockNumber" | "from" | "hash" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "accessList" | "chainId")[] = []>({ exclude, format: overrides, }: {
22
+ exclude?: TExclude | undefined;
23
+ format: (_: TOverrideParameters) => TOverrideReturnType;
24
+ }) => {
25
+ exclude: TExclude | undefined;
26
+ format: (args: import("../../types/utils.js").Assign<Partial<RpcTransaction>, TOverrideParameters>) => ((import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionLegacy<bigint, number, boolean, "legacy">, TOverrideReturnType> & TOverrideReturnType extends infer T ? { [K in keyof T]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionLegacy<bigint, number, boolean, "legacy">, TOverrideReturnType> & TOverrideReturnType)[K]; } : never) | (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionEIP2930<bigint, number, boolean, "eip2930">, TOverrideReturnType> & TOverrideReturnType extends infer T_1 ? { [K_1 in keyof T_1]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionEIP2930<bigint, number, boolean, "eip2930">, TOverrideReturnType> & TOverrideReturnType)[K_1]; } : never) | (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionEIP1559<bigint, number, boolean, "eip1559">, TOverrideReturnType> & TOverrideReturnType extends infer T_2 ? { [K_2 in keyof T_2]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionEIP1559<bigint, number, boolean, "eip1559">, TOverrideReturnType> & TOverrideReturnType)[K_2]; } : never)) & { [K_3 in TExclude[number]]: never; };
27
+ type: "transaction";
28
+ };
29
+ export {};
30
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAIrD,KAAK,8BAA8B,GAC/B,WAAW,GACX,aAAa,GACb,kBAAkB,CAAA;AAEtB,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAAE,GAAG,SAAS,GAC3D;IAAE,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAA;CAAE,GACpC,SAAS,EACb,SAAS,SAAS,QAAQ,GAAG,QAAQ,EACrC,oBAAoB,GAAG,+BAA+B,CACpD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,EACD,4BAA4B,SAAS,MAAM,GAAG,8BAA8B,GAC1E,4BAA4B,CAAC,MAAM,EAAE,aAAa,CAAC,IACnD,SAAS,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,GAAG;KACnE,CAAC,IAAI,4BAA4B,GAAG,KAAK;CAC3C,GAAG,IAAI,CACJ,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,SAAS,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,EACvE,8BAA8B,CAC/B,CAAA;AAEH,eAAO,MAAM,eAAe;;;;CAIlB,CAAA;AAEV,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,eAqCrE;AAED,eAAO,MAAM,iBAAiB;;;;;;;CAG7B,CAAA"}
@@ -0,0 +1,14 @@
1
+ import type { Chain, ExtractChainFormatterReturnType } from '../../types/chain.js';
2
+ import type { RpcTransactionReceipt } from '../../types/rpc.js';
3
+ import type { TransactionReceipt } from '../../types/transaction.js';
4
+ export type FormattedTransactionReceipt<TChain extends Chain | undefined = Chain | undefined> = ExtractChainFormatterReturnType<TChain, 'transactionReceipt', TransactionReceipt>;
5
+ export declare function formatTransactionReceipt(transactionReceipt: Partial<RpcTransactionReceipt>): TransactionReceipt;
6
+ export declare const defineTransactionReceipt: <TOverrideParameters, TOverrideReturnType, TExclude extends (keyof RpcTransactionReceipt)[] = []>({ exclude, format: overrides, }: {
7
+ exclude?: TExclude | undefined;
8
+ format: (_: TOverrideParameters) => TOverrideReturnType;
9
+ }) => {
10
+ exclude: TExclude | undefined;
11
+ format: (args: import("../../types/utils.js").Assign<Partial<RpcTransactionReceipt>, TOverrideParameters>) => (import("../../types/utils.js").Assign<TransactionReceipt, TOverrideReturnType> extends infer T ? { [K in keyof T]: import("../../types/utils.js").Assign<TransactionReceipt, TOverrideReturnType>[K]; } : never) & { [K_1 in TExclude[number]]: never; };
12
+ type: "transactionReceipt";
13
+ };
14
+ //# sourceMappingURL=transactionReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionReceipt.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAOpE,MAAM,MAAM,2BAA2B,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,+BAA+B,CACjC,MAAM,EACN,oBAAoB,EACpB,kBAAkB,CACnB,CAAA;AAOD,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,OAAO,CAAC,qBAAqB,CAAC,sBAmCnD;AAED,eAAO,MAAM,wBAAwB;;;;;;;CAGpC,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { Chain, ExtractChainFormatterParameters } from '../../types/chain.js';
2
+ import type { RpcTransactionRequest } from '../../types/rpc.js';
3
+ import type { TransactionRequest } from '../../types/transaction.js';
4
+ export type FormattedTransactionRequest<TChain extends Chain | undefined = Chain | undefined> = ExtractChainFormatterParameters<TChain, 'transactionRequest', TransactionRequest>;
5
+ export declare const rpcTransactionType: {
6
+ readonly legacy: "0x0";
7
+ readonly eip2930: "0x1";
8
+ readonly eip1559: "0x2";
9
+ };
10
+ export declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
11
+ export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("type" | "gas" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "from" | "nonce" | "to" | "accessList" | "data")[] = []>({ exclude, format: overrides, }: {
12
+ exclude?: TExclude | undefined;
13
+ format: (_: TOverrideParameters) => TOverrideReturnType;
14
+ }) => {
15
+ exclude: TExclude | undefined;
16
+ format: (args: import("../../types/utils.js").Assign<Partial<TransactionRequest>, TOverrideParameters>) => ((import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestLegacy<`0x${string}`, `0x${string}`, "0x0">, TOverrideReturnType> & TOverrideReturnType extends infer T ? { [K in keyof T]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestLegacy<`0x${string}`, `0x${string}`, "0x0">, TOverrideReturnType> & TOverrideReturnType)[K]; } : never) | (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestEIP2930<`0x${string}`, `0x${string}`, "0x1">, TOverrideReturnType> & TOverrideReturnType extends infer T_1 ? { [K_1 in keyof T_1]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestEIP2930<`0x${string}`, `0x${string}`, "0x1">, TOverrideReturnType> & TOverrideReturnType)[K_1]; } : never) | (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestEIP1559<`0x${string}`, `0x${string}`, "0x2">, TOverrideReturnType> & TOverrideReturnType extends infer T_2 ? { [K_2 in keyof T_2]: (import("../../types/utils.js").Assign_<import("../../types/transaction.js").TransactionRequestEIP1559<`0x${string}`, `0x${string}`, "0x2">, TOverrideReturnType> & TOverrideReturnType)[K_2]; } : never)) & { [K_3 in TExclude[number]]: never; };
17
+ type: "transactionRequest";
18
+ };
19
+ //# sourceMappingURL=transactionRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionRequest.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transactionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAIpE,MAAM,MAAM,2BAA2B,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,+BAA+B,CACjC,MAAM,EACN,oBAAoB,EACpB,kBAAkB,CACnB,CAAA;AAED,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAA;AAEV,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,CAAC,yBAiChD;AAED,eAAO,MAAM,wBAAwB;;;;;;;CAGpC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { AbiEvent } from 'abitype';
2
+ import type { EventDefinition } from '../../types/contract.js';
3
+ export declare const getEventSelector: (event: EventDefinition | AbiEvent) => `0x${string}`;
4
+ //# sourceMappingURL=getEventSelector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getEventSelector.d.ts","sourceRoot":"","sources":["../../../utils/hash/getEventSelector.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AAI9D,eAAO,MAAM,gBAAgB,UAAW,eAAe,GAAG,QAAQ,kBAGjE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { AbiFunction } from 'abitype';
2
+ export declare const getFunctionSelector: (fn: string | AbiFunction) => `0x${string}`;
3
+ //# sourceMappingURL=getFunctionSelector.d.ts.map