viem 2.0.0-alpha.9 → 2.0.0-beta.1

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 (2738) hide show
  1. package/CHANGELOG.md +2200 -0
  2. package/LICENSE +21 -0
  3. package/README.md +219 -0
  4. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  5. package/_cjs/accounts/generatePrivateKey.js.map +1 -1
  6. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  7. package/_cjs/accounts/index.js.map +1 -1
  8. package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
  9. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  10. package/_cjs/accounts/toAccount.js.map +1 -1
  11. package/_cjs/accounts/utils/parseAccount.js.map +1 -1
  12. package/_cjs/accounts/utils/privateKeyToAddress.js.map +1 -1
  13. package/_cjs/accounts/utils/publicKeyToAddress.js.map +1 -1
  14. package/_cjs/accounts/utils/sign.js.map +1 -1
  15. package/_cjs/accounts/utils/signMessage.js.map +1 -1
  16. package/_cjs/accounts/utils/signTransaction.js.map +1 -1
  17. package/_cjs/accounts/utils/signTypedData.js.map +1 -1
  18. package/_cjs/actions/ens/getEnsAddress.js +4 -3
  19. package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
  20. package/_cjs/actions/ens/getEnsAvatar.js +2 -1
  21. package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
  22. package/_cjs/actions/ens/getEnsName.js +4 -3
  23. package/_cjs/actions/ens/getEnsName.js.map +1 -1
  24. package/_cjs/actions/ens/getEnsResolver.js +4 -3
  25. package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
  26. package/_cjs/actions/ens/getEnsText.js +4 -3
  27. package/_cjs/actions/ens/getEnsText.js.map +1 -1
  28. package/_cjs/actions/getContract.js +36 -7
  29. package/_cjs/actions/getContract.js.map +1 -1
  30. package/_cjs/actions/index.js.map +1 -1
  31. package/_cjs/actions/public/call.js +5 -5
  32. package/_cjs/actions/public/call.js.map +1 -1
  33. package/_cjs/actions/public/createBlockFilter.js.map +1 -1
  34. package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
  35. package/_cjs/actions/public/createEventFilter.js.map +1 -1
  36. package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
  37. package/_cjs/actions/public/estimateContractGas.js +11 -2
  38. package/_cjs/actions/public/estimateContractGas.js.map +1 -1
  39. package/_cjs/actions/public/estimateFeesPerGas.js +3 -2
  40. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  41. package/_cjs/actions/public/estimateGas.js +3 -3
  42. package/_cjs/actions/public/estimateGas.js.map +1 -1
  43. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +5 -4
  44. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  45. package/_cjs/actions/public/getBalance.js.map +1 -1
  46. package/_cjs/actions/public/getBlock.js.map +1 -1
  47. package/_cjs/actions/public/getBlockNumber.js +2 -2
  48. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  49. package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
  50. package/_cjs/actions/public/getBytecode.js.map +1 -1
  51. package/_cjs/actions/public/getChainId.js.map +1 -1
  52. package/_cjs/actions/public/getContractEvents.js +27 -0
  53. package/_cjs/actions/public/getContractEvents.js.map +1 -0
  54. package/_cjs/actions/public/getFeeHistory.js.map +1 -1
  55. package/_cjs/actions/public/getFilterChanges.js.map +1 -1
  56. package/_cjs/actions/public/getFilterLogs.js.map +1 -1
  57. package/_cjs/actions/public/getGasPrice.js.map +1 -1
  58. package/_cjs/actions/public/getLogs.js.map +1 -1
  59. package/_cjs/actions/public/getProof.js +16 -0
  60. package/_cjs/actions/public/getProof.js.map +1 -0
  61. package/_cjs/actions/public/getStorageAt.js.map +1 -1
  62. package/_cjs/actions/public/getTransaction.js.map +1 -1
  63. package/_cjs/actions/public/getTransactionConfirmations.js +3 -2
  64. package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  65. package/_cjs/actions/public/getTransactionCount.js.map +1 -1
  66. package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
  67. package/_cjs/actions/public/multicall.js +4 -3
  68. package/_cjs/actions/public/multicall.js.map +1 -1
  69. package/_cjs/actions/public/readContract.js +7 -2
  70. package/_cjs/actions/public/readContract.js.map +1 -1
  71. package/_cjs/actions/public/simulateContract.js +5 -2
  72. package/_cjs/actions/public/simulateContract.js.map +1 -1
  73. package/_cjs/actions/public/uninstallFilter.js.map +1 -1
  74. package/_cjs/actions/public/verifyHash.js +2 -1
  75. package/_cjs/actions/public/verifyHash.js.map +1 -1
  76. package/_cjs/actions/public/verifyMessage.js.map +1 -1
  77. package/_cjs/actions/public/verifyTypedData.js.map +1 -1
  78. package/_cjs/actions/public/waitForTransactionReceipt.js +6 -5
  79. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  80. package/_cjs/actions/public/watchBlockNumber.js +2 -1
  81. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  82. package/_cjs/actions/public/watchBlocks.js +4 -3
  83. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  84. package/_cjs/actions/public/watchContractEvent.js +11 -12
  85. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  86. package/_cjs/actions/public/watchEvent.js +6 -5
  87. package/_cjs/actions/public/watchEvent.js.map +1 -1
  88. package/_cjs/actions/public/watchPendingTransactions.js +4 -3
  89. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  90. package/_cjs/actions/test/dropTransaction.js.map +1 -1
  91. package/_cjs/actions/test/getAutomine.js.map +1 -1
  92. package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
  93. package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
  94. package/_cjs/actions/test/impersonateAccount.js.map +1 -1
  95. package/_cjs/actions/test/increaseTime.js.map +1 -1
  96. package/_cjs/actions/test/inspectTxpool.js.map +1 -1
  97. package/_cjs/actions/test/mine.js.map +1 -1
  98. package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
  99. package/_cjs/actions/test/reset.js.map +1 -1
  100. package/_cjs/actions/test/revert.js.map +1 -1
  101. package/_cjs/actions/test/sendUnsignedTransaction.js +3 -3
  102. package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  103. package/_cjs/actions/test/setAutomine.js.map +1 -1
  104. package/_cjs/actions/test/setBalance.js.map +1 -1
  105. package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
  106. package/_cjs/actions/test/setBlockTimestampInterval.js +6 -1
  107. package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
  108. package/_cjs/actions/test/setCode.js.map +1 -1
  109. package/_cjs/actions/test/setCoinbase.js.map +1 -1
  110. package/_cjs/actions/test/setIntervalMining.js +6 -1
  111. package/_cjs/actions/test/setIntervalMining.js.map +1 -1
  112. package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
  113. package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
  114. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  115. package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
  116. package/_cjs/actions/test/setNonce.js.map +1 -1
  117. package/_cjs/actions/test/setRpcUrl.js.map +1 -1
  118. package/_cjs/actions/test/setStorageAt.js.map +1 -1
  119. package/_cjs/actions/test/snapshot.js.map +1 -1
  120. package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
  121. package/_cjs/actions/wallet/addChain.js.map +1 -1
  122. package/_cjs/actions/wallet/deployContract.js.map +1 -1
  123. package/_cjs/actions/wallet/getAddresses.js +2 -0
  124. package/_cjs/actions/wallet/getAddresses.js.map +1 -1
  125. package/_cjs/actions/wallet/getPermissions.js.map +1 -1
  126. package/_cjs/actions/wallet/prepareTransactionRequest.js +4 -3
  127. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  128. package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
  129. package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
  130. package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
  131. package/_cjs/actions/wallet/sendTransaction.js +10 -8
  132. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  133. package/_cjs/actions/wallet/signMessage.js.map +1 -1
  134. package/_cjs/actions/wallet/signTransaction.js +5 -4
  135. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  136. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  137. package/_cjs/actions/wallet/switchChain.js.map +1 -1
  138. package/_cjs/actions/wallet/watchAsset.js.map +1 -1
  139. package/_cjs/actions/wallet/writeContract.js +3 -2
  140. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  141. package/_cjs/chains/celo/formatters.js +32 -15
  142. package/_cjs/chains/celo/formatters.js.map +1 -1
  143. package/_cjs/chains/celo/parsers.js +55 -0
  144. package/_cjs/chains/celo/parsers.js.map +1 -1
  145. package/_cjs/chains/celo/serializers.js +65 -19
  146. package/_cjs/chains/celo/serializers.js.map +1 -1
  147. package/_cjs/chains/celo/utils.js +44 -0
  148. package/_cjs/chains/celo/utils.js.map +1 -0
  149. package/_cjs/chains/definitions/arbitrum.js +2 -15
  150. package/_cjs/chains/definitions/arbitrum.js.map +1 -1
  151. package/_cjs/chains/definitions/arbitrumGoerli.js +4 -16
  152. package/_cjs/chains/definitions/arbitrumGoerli.js.map +1 -1
  153. package/_cjs/chains/definitions/arbitrumNova.js +2 -15
  154. package/_cjs/chains/definitions/arbitrumNova.js.map +1 -1
  155. package/_cjs/chains/definitions/arbitrumSepolia.js +32 -0
  156. package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -0
  157. package/_cjs/chains/definitions/astar.js +29 -0
  158. package/_cjs/chains/definitions/astar.js.map +1 -0
  159. package/_cjs/chains/definitions/astarZkatana.js +42 -0
  160. package/_cjs/chains/definitions/astarZkatana.js.map +1 -0
  161. package/_cjs/chains/definitions/aurora.js +2 -6
  162. package/_cjs/chains/definitions/aurora.js.map +1 -1
  163. package/_cjs/chains/definitions/auroraTestnet.js +2 -6
  164. package/_cjs/chains/definitions/auroraTestnet.js.map +1 -1
  165. package/_cjs/chains/definitions/avalanche.js +2 -5
  166. package/_cjs/chains/definitions/avalanche.js.map +1 -1
  167. package/_cjs/chains/definitions/avalancheFuji.js +2 -5
  168. package/_cjs/chains/definitions/avalancheFuji.js.map +1 -1
  169. package/_cjs/chains/definitions/base.js +2 -19
  170. package/_cjs/chains/definitions/base.js.map +1 -1
  171. package/_cjs/chains/definitions/baseGoerli.js +3 -18
  172. package/_cjs/chains/definitions/baseGoerli.js.map +1 -1
  173. package/_cjs/chains/definitions/baseSepolia.js +33 -0
  174. package/_cjs/chains/definitions/baseSepolia.js.map +1 -0
  175. package/_cjs/chains/definitions/bearNetworkChainMainnet.js +2 -4
  176. package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
  177. package/_cjs/chains/definitions/bearNetworkChainTestnet.js +2 -4
  178. package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
  179. package/_cjs/chains/definitions/boba.js +2 -5
  180. package/_cjs/chains/definitions/boba.js.map +1 -1
  181. package/_cjs/chains/definitions/bronos.js +2 -4
  182. package/_cjs/chains/definitions/bronos.js.map +1 -1
  183. package/_cjs/chains/definitions/bronosTestnet.js +2 -4
  184. package/_cjs/chains/definitions/bronosTestnet.js.map +1 -1
  185. package/_cjs/chains/definitions/bsc.js +2 -5
  186. package/_cjs/chains/definitions/bsc.js.map +1 -1
  187. package/_cjs/chains/definitions/bscTestnet.js +2 -5
  188. package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
  189. package/_cjs/chains/definitions/bxn.js +2 -6
  190. package/_cjs/chains/definitions/bxn.js.map +1 -1
  191. package/_cjs/chains/definitions/bxnTestnet.js +2 -6
  192. package/_cjs/chains/definitions/bxnTestnet.js.map +1 -1
  193. package/_cjs/chains/definitions/canto.js +2 -4
  194. package/_cjs/chains/definitions/canto.js.map +1 -1
  195. package/_cjs/chains/definitions/celo.js +2 -11
  196. package/_cjs/chains/definitions/celo.js.map +1 -1
  197. package/_cjs/chains/definitions/celoAlfajores.js +2 -11
  198. package/_cjs/chains/definitions/celoAlfajores.js.map +1 -1
  199. package/_cjs/chains/definitions/celoCannoli.js +2 -7
  200. package/_cjs/chains/definitions/celoCannoli.js.map +1 -1
  201. package/_cjs/chains/definitions/classic.js +2 -4
  202. package/_cjs/chains/definitions/classic.js.map +1 -1
  203. package/_cjs/chains/definitions/confluxESpace.js +2 -6
  204. package/_cjs/chains/definitions/confluxESpace.js.map +1 -1
  205. package/_cjs/chains/definitions/coreDao.js +27 -0
  206. package/_cjs/chains/definitions/coreDao.js.map +1 -0
  207. package/_cjs/chains/definitions/cronos.js +2 -4
  208. package/_cjs/chains/definitions/cronos.js.map +1 -1
  209. package/_cjs/chains/definitions/cronosTestnet.js +2 -4
  210. package/_cjs/chains/definitions/cronosTestnet.js.map +1 -1
  211. package/_cjs/chains/definitions/crossbell.js +2 -6
  212. package/_cjs/chains/definitions/crossbell.js.map +1 -1
  213. package/_cjs/chains/definitions/dfk.js +2 -10
  214. package/_cjs/chains/definitions/dfk.js.map +1 -1
  215. package/_cjs/chains/definitions/dogechain.js +2 -8
  216. package/_cjs/chains/definitions/dogechain.js.map +1 -1
  217. package/_cjs/chains/definitions/edgeware.js +2 -5
  218. package/_cjs/chains/definitions/edgeware.js.map +1 -1
  219. package/_cjs/chains/definitions/edgewareTestnet.js +2 -8
  220. package/_cjs/chains/definitions/edgewareTestnet.js.map +1 -1
  221. package/_cjs/chains/definitions/ekta.js +2 -4
  222. package/_cjs/chains/definitions/ekta.js.map +1 -1
  223. package/_cjs/chains/definitions/ektaTestnet.js +2 -4
  224. package/_cjs/chains/definitions/ektaTestnet.js.map +1 -1
  225. package/_cjs/chains/definitions/eon.js +2 -4
  226. package/_cjs/chains/definitions/eon.js.map +1 -1
  227. package/_cjs/chains/definitions/eos.js +2 -8
  228. package/_cjs/chains/definitions/eos.js.map +1 -1
  229. package/_cjs/chains/definitions/eosTestnet.js +2 -8
  230. package/_cjs/chains/definitions/eosTestnet.js.map +1 -1
  231. package/_cjs/chains/definitions/evmos.js +2 -4
  232. package/_cjs/chains/definitions/evmos.js.map +1 -1
  233. package/_cjs/chains/definitions/evmosTestnet.js +2 -4
  234. package/_cjs/chains/definitions/evmosTestnet.js.map +1 -1
  235. package/_cjs/chains/definitions/fantom.js +2 -5
  236. package/_cjs/chains/definitions/fantom.js.map +1 -1
  237. package/_cjs/chains/definitions/fantomTestnet.js +2 -5
  238. package/_cjs/chains/definitions/fantomTestnet.js.map +1 -1
  239. package/_cjs/chains/definitions/fibo.js +2 -4
  240. package/_cjs/chains/definitions/fibo.js.map +1 -1
  241. package/_cjs/chains/definitions/filecoin.js +2 -7
  242. package/_cjs/chains/definitions/filecoin.js.map +1 -1
  243. package/_cjs/chains/definitions/filecoinCalibration.js +2 -4
  244. package/_cjs/chains/definitions/filecoinCalibration.js.map +1 -1
  245. package/_cjs/chains/definitions/filecoinHyperspace.js +2 -5
  246. package/_cjs/chains/definitions/filecoinHyperspace.js.map +1 -1
  247. package/_cjs/chains/definitions/flare.js +2 -4
  248. package/_cjs/chains/definitions/flare.js.map +1 -1
  249. package/_cjs/chains/definitions/flareTestnet.js +2 -4
  250. package/_cjs/chains/definitions/flareTestnet.js.map +1 -1
  251. package/_cjs/chains/definitions/foundry.js +2 -7
  252. package/_cjs/chains/definitions/foundry.js.map +1 -1
  253. package/_cjs/chains/definitions/fuse.js +8 -4
  254. package/_cjs/chains/definitions/fuse.js.map +1 -1
  255. package/_cjs/chains/definitions/fuseSparknet.js +2 -4
  256. package/_cjs/chains/definitions/fuseSparknet.js.map +1 -1
  257. package/_cjs/chains/definitions/gnosis.js +6 -9
  258. package/_cjs/chains/definitions/gnosis.js.map +1 -1
  259. package/_cjs/chains/definitions/gnosisChiado.js +12 -5
  260. package/_cjs/chains/definitions/gnosisChiado.js.map +1 -1
  261. package/_cjs/chains/definitions/gobi.js +2 -4
  262. package/_cjs/chains/definitions/gobi.js.map +1 -1
  263. package/_cjs/chains/definitions/goerli.js +2 -18
  264. package/_cjs/chains/definitions/goerli.js.map +1 -1
  265. package/_cjs/chains/definitions/haqqMainnet.js +2 -6
  266. package/_cjs/chains/definitions/haqqMainnet.js.map +1 -1
  267. package/_cjs/chains/definitions/haqqTestedge2.js +2 -6
  268. package/_cjs/chains/definitions/haqqTestedge2.js.map +1 -1
  269. package/_cjs/chains/definitions/hardhat.js +2 -4
  270. package/_cjs/chains/definitions/hardhat.js.map +1 -1
  271. package/_cjs/chains/definitions/harmonyOne.js +2 -4
  272. package/_cjs/chains/definitions/harmonyOne.js.map +1 -1
  273. package/_cjs/chains/definitions/holesky.js +8 -7
  274. package/_cjs/chains/definitions/holesky.js.map +1 -1
  275. package/_cjs/chains/definitions/iotex.js +2 -7
  276. package/_cjs/chains/definitions/iotex.js.map +1 -1
  277. package/_cjs/chains/definitions/iotexTestnet.js +2 -7
  278. package/_cjs/chains/definitions/iotexTestnet.js.map +1 -1
  279. package/_cjs/chains/definitions/kava.js +29 -0
  280. package/_cjs/chains/definitions/kava.js.map +1 -0
  281. package/_cjs/chains/definitions/kavaTestnet.js +32 -0
  282. package/_cjs/chains/definitions/kavaTestnet.js.map +1 -0
  283. package/_cjs/chains/definitions/klaytn.js +2 -5
  284. package/_cjs/chains/definitions/klaytn.js.map +1 -1
  285. package/_cjs/chains/definitions/kroma.js +2 -6
  286. package/_cjs/chains/definitions/kroma.js.map +1 -1
  287. package/_cjs/chains/definitions/kromaSepolia.js +2 -6
  288. package/_cjs/chains/definitions/kromaSepolia.js.map +1 -1
  289. package/_cjs/chains/definitions/linea.js +2 -19
  290. package/_cjs/chains/definitions/linea.js.map +1 -1
  291. package/_cjs/chains/definitions/lineaTestnet.js +2 -19
  292. package/_cjs/chains/definitions/lineaTestnet.js.map +1 -1
  293. package/_cjs/chains/definitions/localhost.js +2 -4
  294. package/_cjs/chains/definitions/localhost.js.map +1 -1
  295. package/_cjs/chains/definitions/mainnet.js +2 -18
  296. package/_cjs/chains/definitions/mainnet.js.map +1 -1
  297. package/_cjs/chains/definitions/manta.js +35 -0
  298. package/_cjs/chains/definitions/manta.js.map +1 -0
  299. package/_cjs/chains/definitions/mantaTestnet.js +36 -0
  300. package/_cjs/chains/definitions/mantaTestnet.js.map +1 -0
  301. package/_cjs/chains/definitions/mantle.js +2 -8
  302. package/_cjs/chains/definitions/mantle.js.map +1 -1
  303. package/_cjs/chains/definitions/mantleTestnet.js +2 -8
  304. package/_cjs/chains/definitions/mantleTestnet.js.map +1 -1
  305. package/_cjs/chains/definitions/meter.js +2 -4
  306. package/_cjs/chains/definitions/meter.js.map +1 -1
  307. package/_cjs/chains/definitions/meterTestnet.js +2 -4
  308. package/_cjs/chains/definitions/meterTestnet.js.map +1 -1
  309. package/_cjs/chains/definitions/metis.js +2 -4
  310. package/_cjs/chains/definitions/metis.js.map +1 -1
  311. package/_cjs/chains/definitions/metisGoerli.js +2 -4
  312. package/_cjs/chains/definitions/metisGoerli.js.map +1 -1
  313. package/_cjs/chains/definitions/mev.js +2 -6
  314. package/_cjs/chains/definitions/mev.js.map +1 -1
  315. package/_cjs/chains/definitions/mevTestnet.js +2 -6
  316. package/_cjs/chains/definitions/mevTestnet.js.map +1 -1
  317. package/_cjs/chains/definitions/modeTestnet.js +8 -6
  318. package/_cjs/chains/definitions/modeTestnet.js.map +1 -1
  319. package/_cjs/chains/definitions/moonbaseAlpha.js +2 -11
  320. package/_cjs/chains/definitions/moonbaseAlpha.js.map +1 -1
  321. package/_cjs/chains/definitions/moonbeam.js +2 -11
  322. package/_cjs/chains/definitions/moonbeam.js.map +1 -1
  323. package/_cjs/chains/definitions/moonbeamDev.js +20 -0
  324. package/_cjs/chains/definitions/moonbeamDev.js.map +1 -0
  325. package/_cjs/chains/definitions/moonriver.js +2 -11
  326. package/_cjs/chains/definitions/moonriver.js.map +1 -1
  327. package/_cjs/chains/definitions/neonDevnet.js +3 -7
  328. package/_cjs/chains/definitions/neonDevnet.js.map +1 -1
  329. package/_cjs/chains/definitions/neonMainnet.js +27 -0
  330. package/_cjs/chains/definitions/neonMainnet.js.map +1 -0
  331. package/_cjs/chains/definitions/nexi.js +2 -10
  332. package/_cjs/chains/definitions/nexi.js.map +1 -1
  333. package/_cjs/chains/definitions/nexilix.js +2 -5
  334. package/_cjs/chains/definitions/nexilix.js.map +1 -1
  335. package/_cjs/chains/definitions/oasys.js +2 -6
  336. package/_cjs/chains/definitions/oasys.js.map +1 -1
  337. package/_cjs/chains/definitions/okc.js +2 -4
  338. package/_cjs/chains/definitions/okc.js.map +1 -1
  339. package/_cjs/chains/definitions/opBNB.js +2 -4
  340. package/_cjs/chains/definitions/opBNB.js.map +1 -1
  341. package/_cjs/chains/definitions/opBNBTestnet.js +2 -4
  342. package/_cjs/chains/definitions/opBNBTestnet.js.map +1 -1
  343. package/_cjs/chains/definitions/optimism.js +2 -19
  344. package/_cjs/chains/definitions/optimism.js.map +1 -1
  345. package/_cjs/chains/definitions/optimismGoerli.js +2 -19
  346. package/_cjs/chains/definitions/optimismGoerli.js.map +1 -1
  347. package/_cjs/chains/definitions/optimismSepolia.js +30 -0
  348. package/_cjs/chains/definitions/optimismSepolia.js.map +1 -0
  349. package/_cjs/chains/definitions/plinga.js +2 -6
  350. package/_cjs/chains/definitions/plinga.js.map +1 -1
  351. package/_cjs/chains/definitions/polygon.js +2 -18
  352. package/_cjs/chains/definitions/polygon.js.map +1 -1
  353. package/_cjs/chains/definitions/polygonMumbai.js +2 -18
  354. package/_cjs/chains/definitions/polygonMumbai.js.map +1 -1
  355. package/_cjs/chains/definitions/polygonZkEvm.js +2 -6
  356. package/_cjs/chains/definitions/polygonZkEvm.js.map +1 -1
  357. package/_cjs/chains/definitions/polygonZkEvmTestnet.js +2 -10
  358. package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
  359. package/_cjs/chains/definitions/pulsechain.js +2 -7
  360. package/_cjs/chains/definitions/pulsechain.js.map +1 -1
  361. package/_cjs/chains/definitions/pulsechainV4.js +2 -7
  362. package/_cjs/chains/definitions/pulsechainV4.js.map +1 -1
  363. package/_cjs/chains/definitions/qMainnet.js +2 -4
  364. package/_cjs/chains/definitions/qMainnet.js.map +1 -1
  365. package/_cjs/chains/definitions/qTestnet.js +2 -4
  366. package/_cjs/chains/definitions/qTestnet.js.map +1 -1
  367. package/_cjs/chains/definitions/rollux.js +2 -4
  368. package/_cjs/chains/definitions/rollux.js.map +1 -1
  369. package/_cjs/chains/definitions/rolluxTestnet.js +2 -4
  370. package/_cjs/chains/definitions/rolluxTestnet.js.map +1 -1
  371. package/_cjs/chains/definitions/ronin.js +2 -6
  372. package/_cjs/chains/definitions/ronin.js.map +1 -1
  373. package/_cjs/chains/definitions/saigon.js +2 -6
  374. package/_cjs/chains/definitions/saigon.js.map +1 -1
  375. package/_cjs/chains/definitions/scroll.js +29 -0
  376. package/_cjs/chains/definitions/scroll.js.map +1 -0
  377. package/_cjs/chains/definitions/scrollSepolia.js +2 -8
  378. package/_cjs/chains/definitions/scrollSepolia.js.map +1 -1
  379. package/_cjs/chains/definitions/scrollTestnet.js +2 -7
  380. package/_cjs/chains/definitions/scrollTestnet.js.map +1 -1
  381. package/_cjs/chains/definitions/sepolia.js +3 -19
  382. package/_cjs/chains/definitions/sepolia.js.map +1 -1
  383. package/_cjs/chains/definitions/shardeumSphinx.js +2 -6
  384. package/_cjs/chains/definitions/shardeumSphinx.js.map +1 -1
  385. package/_cjs/chains/definitions/skale/brawl.js +2 -11
  386. package/_cjs/chains/definitions/skale/brawl.js.map +1 -1
  387. package/_cjs/chains/definitions/skale/calypso.js +2 -13
  388. package/_cjs/chains/definitions/skale/calypso.js.map +1 -1
  389. package/_cjs/chains/definitions/skale/calypsoTestnet.js +2 -15
  390. package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +1 -1
  391. package/_cjs/chains/definitions/skale/chaosTestnet.js +2 -15
  392. package/_cjs/chains/definitions/skale/chaosTestnet.js.map +1 -1
  393. package/_cjs/chains/definitions/skale/cryptoBlades.js +2 -13
  394. package/_cjs/chains/definitions/skale/cryptoBlades.js.map +1 -1
  395. package/_cjs/chains/definitions/skale/cryptoColosseum.js +2 -11
  396. package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +1 -1
  397. package/_cjs/chains/definitions/skale/europa.js +2 -11
  398. package/_cjs/chains/definitions/skale/europa.js.map +1 -1
  399. package/_cjs/chains/definitions/skale/europaTestnet.js +2 -13
  400. package/_cjs/chains/definitions/skale/europaTestnet.js.map +1 -1
  401. package/_cjs/chains/definitions/skale/exorde.js +2 -11
  402. package/_cjs/chains/definitions/skale/exorde.js.map +1 -1
  403. package/_cjs/chains/definitions/skale/humanProtocol.js +2 -11
  404. package/_cjs/chains/definitions/skale/humanProtocol.js.map +1 -1
  405. package/_cjs/chains/definitions/skale/nebula.js +2 -11
  406. package/_cjs/chains/definitions/skale/nebula.js.map +1 -1
  407. package/_cjs/chains/definitions/skale/nebulaTestnet.js +2 -13
  408. package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +1 -1
  409. package/_cjs/chains/definitions/skale/razor.js +2 -11
  410. package/_cjs/chains/definitions/skale/razor.js.map +1 -1
  411. package/_cjs/chains/definitions/skale/titan.js +2 -11
  412. package/_cjs/chains/definitions/skale/titan.js.map +1 -1
  413. package/_cjs/chains/definitions/skale/titanTestnet.js +2 -15
  414. package/_cjs/chains/definitions/skale/titanTestnet.js.map +1 -1
  415. package/_cjs/chains/definitions/songbird.js +2 -4
  416. package/_cjs/chains/definitions/songbird.js.map +1 -1
  417. package/_cjs/chains/definitions/songbirdTestnet.js +2 -4
  418. package/_cjs/chains/definitions/songbirdTestnet.js.map +1 -1
  419. package/_cjs/chains/definitions/syscoin.js +2 -7
  420. package/_cjs/chains/definitions/syscoin.js.map +1 -1
  421. package/_cjs/chains/definitions/syscoinTestnet.js +2 -7
  422. package/_cjs/chains/definitions/syscoinTestnet.js.map +1 -1
  423. package/_cjs/chains/definitions/taikoJolnir.js +2 -6
  424. package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
  425. package/_cjs/chains/definitions/taikoTestnetSepolia.js +2 -6
  426. package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +1 -1
  427. package/_cjs/chains/definitions/taraxa.js +2 -6
  428. package/_cjs/chains/definitions/taraxa.js.map +1 -1
  429. package/_cjs/chains/definitions/taraxaTestnet.js +2 -6
  430. package/_cjs/chains/definitions/taraxaTestnet.js.map +1 -1
  431. package/_cjs/chains/definitions/telos.js +2 -4
  432. package/_cjs/chains/definitions/telos.js.map +1 -1
  433. package/_cjs/chains/definitions/telosTestnet.js +2 -4
  434. package/_cjs/chains/definitions/telosTestnet.js.map +1 -1
  435. package/_cjs/chains/definitions/tenet.js +23 -0
  436. package/_cjs/chains/definitions/tenet.js.map +1 -0
  437. package/_cjs/chains/definitions/thunderTestnet.js +2 -6
  438. package/_cjs/chains/definitions/thunderTestnet.js.map +1 -1
  439. package/_cjs/chains/definitions/vechain.js +2 -6
  440. package/_cjs/chains/definitions/vechain.js.map +1 -1
  441. package/_cjs/chains/definitions/wanchain.js +2 -13
  442. package/_cjs/chains/definitions/wanchain.js.map +1 -1
  443. package/_cjs/chains/definitions/wanchainTestnet.js +2 -10
  444. package/_cjs/chains/definitions/wanchainTestnet.js.map +1 -1
  445. package/_cjs/chains/definitions/xdc.js +2 -4
  446. package/_cjs/chains/definitions/xdc.js.map +1 -1
  447. package/_cjs/chains/definitions/xdcTestnet.js +2 -4
  448. package/_cjs/chains/definitions/xdcTestnet.js.map +1 -1
  449. package/_cjs/chains/definitions/zetachainAthensTestnet.js +2 -6
  450. package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +1 -1
  451. package/_cjs/chains/definitions/zhejiang.js +2 -14
  452. package/_cjs/chains/definitions/zhejiang.js.map +1 -1
  453. package/_cjs/chains/definitions/zkSync.js +6 -6
  454. package/_cjs/chains/definitions/zkSync.js.map +1 -1
  455. package/_cjs/chains/definitions/zkSyncTestnet.js +6 -6
  456. package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
  457. package/_cjs/chains/definitions/zora.js +2 -8
  458. package/_cjs/chains/definitions/zora.js.map +1 -1
  459. package/_cjs/chains/definitions/zoraSepolia.js +40 -0
  460. package/_cjs/chains/definitions/zoraSepolia.js.map +1 -0
  461. package/_cjs/chains/definitions/zoraTestnet.js +2 -8
  462. package/_cjs/chains/definitions/zoraTestnet.js.map +1 -1
  463. package/_cjs/chains/index.js +34 -3
  464. package/_cjs/chains/index.js.map +1 -1
  465. package/_cjs/chains/utils.js +11 -1
  466. package/_cjs/chains/utils.js.map +1 -1
  467. package/_cjs/chains/zksync/formatters.js +128 -0
  468. package/_cjs/chains/zksync/formatters.js.map +1 -0
  469. package/_cjs/chains/zksync/serializers.js +74 -0
  470. package/_cjs/chains/zksync/serializers.js.map +1 -0
  471. package/_cjs/chains/zksync/types.js +3 -0
  472. package/_cjs/chains/zksync/types.js.map +1 -0
  473. package/_cjs/clients/createClient.js.map +1 -1
  474. package/_cjs/clients/createPublicClient.js.map +1 -1
  475. package/_cjs/clients/createTestClient.js.map +1 -1
  476. package/_cjs/clients/createWalletClient.js.map +1 -1
  477. package/_cjs/clients/decorators/public.js +4 -0
  478. package/_cjs/clients/decorators/public.js.map +1 -1
  479. package/_cjs/clients/transports/createTransport.js.map +1 -1
  480. package/_cjs/clients/transports/custom.js.map +1 -1
  481. package/_cjs/clients/transports/fallback.js.map +1 -1
  482. package/_cjs/clients/transports/http.js +2 -0
  483. package/_cjs/clients/transports/http.js.map +1 -1
  484. package/_cjs/clients/transports/webSocket.js.map +1 -1
  485. package/_cjs/ens/index.js.map +1 -1
  486. package/_cjs/errors/abi.js.map +1 -1
  487. package/_cjs/errors/account.js.map +1 -1
  488. package/_cjs/errors/address.js.map +1 -1
  489. package/_cjs/errors/base.js.map +1 -1
  490. package/_cjs/errors/block.js.map +1 -1
  491. package/_cjs/errors/ccip.js.map +1 -1
  492. package/_cjs/errors/chain.js.map +1 -1
  493. package/_cjs/errors/contract.js +1 -1
  494. package/_cjs/errors/contract.js.map +1 -1
  495. package/_cjs/errors/cursor.js +29 -0
  496. package/_cjs/errors/cursor.js.map +1 -0
  497. package/_cjs/errors/data.js.map +1 -1
  498. package/_cjs/errors/encoding.js +1 -37
  499. package/_cjs/errors/encoding.js.map +1 -1
  500. package/_cjs/errors/ens.js.map +1 -1
  501. package/_cjs/errors/estimateGas.js +1 -1
  502. package/_cjs/errors/estimateGas.js.map +1 -1
  503. package/_cjs/errors/fee.js.map +1 -1
  504. package/_cjs/errors/log.js.map +1 -1
  505. package/_cjs/errors/node.js +11 -11
  506. package/_cjs/errors/node.js.map +1 -1
  507. package/_cjs/errors/request.js.map +1 -1
  508. package/_cjs/errors/rpc.js +18 -18
  509. package/_cjs/errors/rpc.js.map +1 -1
  510. package/_cjs/errors/transaction.js +1 -1
  511. package/_cjs/errors/transaction.js.map +1 -1
  512. package/_cjs/errors/transport.js.map +1 -1
  513. package/_cjs/errors/utils.js.map +1 -1
  514. package/_cjs/errors/version.js +1 -1
  515. package/_cjs/errors/version.js.map +1 -1
  516. package/_cjs/index.js +51 -13
  517. package/_cjs/index.js.map +1 -1
  518. package/_cjs/types/eip1193.js.map +1 -1
  519. package/_cjs/types/proof.js +3 -0
  520. package/_cjs/types/proof.js.map +1 -0
  521. package/_cjs/types/withdrawal.js +3 -0
  522. package/_cjs/types/withdrawal.js.map +1 -0
  523. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  524. package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
  525. package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
  526. package/_cjs/utils/abi/decodeEventLog.js +9 -11
  527. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  528. package/_cjs/utils/abi/decodeFunctionData.js.map +1 -1
  529. package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
  530. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  531. package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
  532. package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
  533. package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
  534. package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
  535. package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
  536. package/_cjs/utils/abi/encodePacked.js.map +1 -1
  537. package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
  538. package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +1 -1
  539. package/_cjs/utils/abi/getAbiItem.js +3 -3
  540. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  541. package/_cjs/utils/address/getAddress.js.map +1 -1
  542. package/_cjs/utils/address/getContractAddress.js +8 -3
  543. package/_cjs/utils/address/getContractAddress.js.map +1 -1
  544. package/_cjs/utils/address/isAddress.js.map +1 -1
  545. package/_cjs/utils/address/isAddressEqual.js.map +1 -1
  546. package/_cjs/utils/buildRequest.js.map +1 -1
  547. package/_cjs/utils/ccip.js.map +1 -1
  548. package/_cjs/utils/chain/assertCurrentChain.js +12 -0
  549. package/_cjs/utils/chain/assertCurrentChain.js.map +1 -0
  550. package/_cjs/utils/chain/defineChain.js +13 -0
  551. package/_cjs/utils/chain/defineChain.js.map +1 -0
  552. package/_cjs/utils/chain/extractChain.js +8 -0
  553. package/_cjs/utils/chain/extractChain.js.map +1 -0
  554. package/_cjs/utils/{chain.js → chain/getChainContractAddress.js} +3 -20
  555. package/_cjs/utils/chain/getChainContractAddress.js.map +1 -0
  556. package/_cjs/utils/cursor.js +134 -0
  557. package/_cjs/utils/cursor.js.map +1 -0
  558. package/_cjs/utils/data/concat.js.map +1 -1
  559. package/_cjs/utils/data/isBytes.js.map +1 -1
  560. package/_cjs/utils/data/isBytesEqual.js.map +1 -1
  561. package/_cjs/utils/data/isHex.js.map +1 -1
  562. package/_cjs/utils/data/pad.js.map +1 -1
  563. package/_cjs/utils/data/size.js.map +1 -1
  564. package/_cjs/utils/data/slice.js.map +1 -1
  565. package/_cjs/utils/data/trim.js.map +1 -1
  566. package/_cjs/utils/encoding/fromBytes.js +4 -4
  567. package/_cjs/utils/encoding/fromBytes.js.map +1 -1
  568. package/_cjs/utils/encoding/fromHex.js.map +1 -1
  569. package/_cjs/utils/encoding/fromRlp.js +55 -76
  570. package/_cjs/utils/encoding/fromRlp.js.map +1 -1
  571. package/_cjs/utils/encoding/toBytes.js +26 -8
  572. package/_cjs/utils/encoding/toBytes.js.map +1 -1
  573. package/_cjs/utils/encoding/toHex.js +3 -3
  574. package/_cjs/utils/encoding/toHex.js.map +1 -1
  575. package/_cjs/utils/encoding/toRlp.js +94 -24
  576. package/_cjs/utils/encoding/toRlp.js.map +1 -1
  577. package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  578. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  579. package/_cjs/utils/ens/encodeLabelhash.js.map +1 -1
  580. package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
  581. package/_cjs/utils/ens/errors.js.map +1 -1
  582. package/_cjs/utils/ens/labelhash.js.map +1 -1
  583. package/_cjs/utils/ens/namehash.js.map +1 -1
  584. package/_cjs/utils/ens/normalize.js.map +1 -1
  585. package/_cjs/utils/ens/packetToBytes.js.map +1 -1
  586. package/_cjs/utils/errors/getCallError.js +6 -3
  587. package/_cjs/utils/errors/getCallError.js.map +1 -1
  588. package/_cjs/utils/errors/getContractError.js +14 -13
  589. package/_cjs/utils/errors/getContractError.js.map +1 -1
  590. package/_cjs/utils/errors/getEstimateGasError.js +6 -3
  591. package/_cjs/utils/errors/getEstimateGasError.js.map +1 -1
  592. package/_cjs/utils/errors/getNodeError.js +3 -1
  593. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  594. package/_cjs/utils/errors/getTransactionError.js +6 -3
  595. package/_cjs/utils/errors/getTransactionError.js.map +1 -1
  596. package/_cjs/utils/formatters/block.js.map +1 -1
  597. package/_cjs/utils/formatters/extract.js +15 -7
  598. package/_cjs/utils/formatters/extract.js.map +1 -1
  599. package/_cjs/utils/formatters/feeHistory.js.map +1 -1
  600. package/_cjs/utils/formatters/formatter.js.map +1 -1
  601. package/_cjs/utils/formatters/log.js.map +1 -1
  602. package/_cjs/utils/formatters/proof.js +22 -0
  603. package/_cjs/utils/formatters/proof.js.map +1 -0
  604. package/_cjs/utils/formatters/transaction.js.map +1 -1
  605. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  606. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  607. package/_cjs/utils/getAction.js +8 -0
  608. package/_cjs/utils/getAction.js.map +1 -0
  609. package/_cjs/utils/hash/getEventSelector.js +5 -6
  610. package/_cjs/utils/hash/getEventSelector.js.map +1 -1
  611. package/_cjs/utils/hash/getEventSignature.js +9 -0
  612. package/_cjs/utils/hash/getEventSignature.js.map +1 -0
  613. package/_cjs/utils/hash/getFunctionSelector.js +5 -6
  614. package/_cjs/utils/hash/getFunctionSelector.js.map +1 -1
  615. package/_cjs/utils/hash/getFunctionSignature.js +15 -0
  616. package/_cjs/utils/hash/getFunctionSignature.js.map +1 -0
  617. package/_cjs/utils/hash/hashFunction.js +2 -4
  618. package/_cjs/utils/hash/hashFunction.js.map +1 -1
  619. package/_cjs/utils/hash/isHash.js.map +1 -1
  620. package/_cjs/utils/hash/keccak256.js.map +1 -1
  621. package/_cjs/utils/hash/normalizeSignature.js +48 -0
  622. package/_cjs/utils/hash/normalizeSignature.js.map +1 -0
  623. package/_cjs/utils/index.js +14 -15
  624. package/_cjs/utils/index.js.map +1 -1
  625. package/_cjs/utils/observe.js.map +1 -1
  626. package/_cjs/utils/poll.js.map +1 -1
  627. package/_cjs/utils/promise/createBatchScheduler.js +3 -1
  628. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  629. package/_cjs/utils/promise/withCache.js.map +1 -1
  630. package/_cjs/utils/promise/withRetry.js.map +1 -1
  631. package/_cjs/utils/promise/withTimeout.js +1 -1
  632. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  633. package/_cjs/utils/rpc.js +3 -6
  634. package/_cjs/utils/rpc.js.map +1 -1
  635. package/_cjs/utils/signature/compactSignatureToHex.js +10 -0
  636. package/_cjs/utils/signature/compactSignatureToHex.js.map +1 -0
  637. package/_cjs/utils/signature/compactSignatureToSignature.js +15 -0
  638. package/_cjs/utils/signature/compactSignatureToSignature.js.map +1 -0
  639. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  640. package/_cjs/utils/signature/hashTypedData.js.map +1 -1
  641. package/_cjs/utils/signature/hexToCompactSignature.js +14 -0
  642. package/_cjs/utils/signature/hexToCompactSignature.js.map +1 -0
  643. package/_cjs/utils/signature/hexToSignature.js.map +1 -1
  644. package/_cjs/utils/signature/recoverAddress.js.map +1 -1
  645. package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
  646. package/_cjs/utils/signature/recoverPublicKey.js.map +1 -1
  647. package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
  648. package/_cjs/utils/signature/signatureToCompactSignature.js +17 -0
  649. package/_cjs/utils/signature/signatureToCompactSignature.js.map +1 -0
  650. package/_cjs/utils/signature/signatureToHex.js.map +1 -1
  651. package/_cjs/utils/signature/verifyMessage.js.map +1 -1
  652. package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
  653. package/_cjs/utils/stringify.js.map +1 -1
  654. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  655. package/_cjs/utils/transaction/assertTransaction.js.map +1 -1
  656. package/_cjs/utils/transaction/getSerializedTransactionType.js.map +1 -1
  657. package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
  658. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  659. package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
  660. package/_cjs/utils/transaction/serializeTransaction.js +14 -5
  661. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  662. package/_cjs/utils/typedData.js.map +1 -1
  663. package/_cjs/utils/unit/formatEther.js.map +1 -1
  664. package/_cjs/utils/unit/formatGwei.js.map +1 -1
  665. package/_cjs/utils/unit/formatUnits.js.map +1 -1
  666. package/_cjs/utils/unit/parseEther.js.map +1 -1
  667. package/_cjs/utils/unit/parseGwei.js.map +1 -1
  668. package/_cjs/utils/unit/parseUnits.js.map +1 -1
  669. package/_esm/accounts/generateMnemonic.js.map +1 -1
  670. package/_esm/accounts/generatePrivateKey.js.map +1 -1
  671. package/_esm/accounts/hdKeyToAccount.js +1 -1
  672. package/_esm/accounts/hdKeyToAccount.js.map +1 -1
  673. package/_esm/accounts/index.js +10 -10
  674. package/_esm/accounts/index.js.map +1 -1
  675. package/_esm/accounts/mnemonicToAccount.js +1 -1
  676. package/_esm/accounts/mnemonicToAccount.js.map +1 -1
  677. package/_esm/accounts/privateKeyToAccount.js +3 -3
  678. package/_esm/accounts/privateKeyToAccount.js.map +1 -1
  679. package/_esm/accounts/toAccount.js +2 -2
  680. package/_esm/accounts/toAccount.js.map +1 -1
  681. package/_esm/accounts/utils/parseAccount.js.map +1 -1
  682. package/_esm/accounts/utils/privateKeyToAddress.js +2 -2
  683. package/_esm/accounts/utils/privateKeyToAddress.js.map +1 -1
  684. package/_esm/accounts/utils/publicKeyToAddress.js +2 -2
  685. package/_esm/accounts/utils/publicKeyToAddress.js.map +1 -1
  686. package/_esm/accounts/utils/sign.js.map +1 -1
  687. package/_esm/accounts/utils/signMessage.js +2 -2
  688. package/_esm/accounts/utils/signMessage.js.map +1 -1
  689. package/_esm/accounts/utils/signTransaction.js +1 -1
  690. package/_esm/accounts/utils/signTransaction.js.map +1 -1
  691. package/_esm/accounts/utils/signTypedData.js +2 -2
  692. package/_esm/accounts/utils/signTypedData.js.map +1 -1
  693. package/_esm/actions/ens/getEnsAddress.js +6 -5
  694. package/_esm/actions/ens/getEnsAddress.js.map +1 -1
  695. package/_esm/actions/ens/getEnsAvatar.js +4 -3
  696. package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
  697. package/_esm/actions/ens/getEnsName.js +4 -3
  698. package/_esm/actions/ens/getEnsName.js.map +1 -1
  699. package/_esm/actions/ens/getEnsResolver.js +4 -3
  700. package/_esm/actions/ens/getEnsResolver.js.map +1 -1
  701. package/_esm/actions/ens/getEnsText.js +6 -5
  702. package/_esm/actions/ens/getEnsText.js.map +1 -1
  703. package/_esm/actions/getContract.js +37 -8
  704. package/_esm/actions/getContract.js.map +1 -1
  705. package/_esm/actions/index.js +8 -8
  706. package/_esm/actions/index.js.map +1 -1
  707. package/_esm/actions/public/call.js +11 -11
  708. package/_esm/actions/public/call.js.map +1 -1
  709. package/_esm/actions/public/createBlockFilter.js.map +1 -1
  710. package/_esm/actions/public/createContractEventFilter.js +1 -1
  711. package/_esm/actions/public/createContractEventFilter.js.map +1 -1
  712. package/_esm/actions/public/createEventFilter.js +1 -1
  713. package/_esm/actions/public/createEventFilter.js.map +1 -1
  714. package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
  715. package/_esm/actions/public/estimateContractGas.js +15 -6
  716. package/_esm/actions/public/estimateContractGas.js.map +1 -1
  717. package/_esm/actions/public/estimateFeesPerGas.js +4 -3
  718. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  719. package/_esm/actions/public/estimateGas.js +6 -6
  720. package/_esm/actions/public/estimateGas.js.map +1 -1
  721. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +7 -6
  722. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  723. package/_esm/actions/public/getBalance.js +1 -1
  724. package/_esm/actions/public/getBalance.js.map +1 -1
  725. package/_esm/actions/public/getBlock.js +2 -2
  726. package/_esm/actions/public/getBlock.js.map +1 -1
  727. package/_esm/actions/public/getBlockNumber.js +2 -2
  728. package/_esm/actions/public/getBlockNumber.js.map +1 -1
  729. package/_esm/actions/public/getBlockTransactionCount.js +2 -2
  730. package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
  731. package/_esm/actions/public/getBytecode.js +1 -1
  732. package/_esm/actions/public/getBytecode.js.map +1 -1
  733. package/_esm/actions/public/getChainId.js +1 -1
  734. package/_esm/actions/public/getChainId.js.map +1 -1
  735. package/_esm/actions/public/getContractEvents.js +49 -0
  736. package/_esm/actions/public/getContractEvents.js.map +1 -0
  737. package/_esm/actions/public/getFeeHistory.js +2 -2
  738. package/_esm/actions/public/getFeeHistory.js.map +1 -1
  739. package/_esm/actions/public/getFilterChanges.js +2 -2
  740. package/_esm/actions/public/getFilterChanges.js.map +1 -1
  741. package/_esm/actions/public/getFilterLogs.js +2 -2
  742. package/_esm/actions/public/getFilterLogs.js.map +1 -1
  743. package/_esm/actions/public/getGasPrice.js.map +1 -1
  744. package/_esm/actions/public/getLogs.js +3 -3
  745. package/_esm/actions/public/getLogs.js.map +1 -1
  746. package/_esm/actions/public/getProof.js +37 -0
  747. package/_esm/actions/public/getProof.js.map +1 -0
  748. package/_esm/actions/public/getStorageAt.js +1 -1
  749. package/_esm/actions/public/getStorageAt.js.map +1 -1
  750. package/_esm/actions/public/getTransaction.js +1 -1
  751. package/_esm/actions/public/getTransaction.js.map +1 -1
  752. package/_esm/actions/public/getTransactionConfirmations.js +5 -4
  753. package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
  754. package/_esm/actions/public/getTransactionCount.js +2 -2
  755. package/_esm/actions/public/getTransactionCount.js.map +1 -1
  756. package/_esm/actions/public/getTransactionReceipt.js +1 -1
  757. package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
  758. package/_esm/actions/public/multicall.js +6 -5
  759. package/_esm/actions/public/multicall.js.map +1 -1
  760. package/_esm/actions/public/readContract.js +10 -5
  761. package/_esm/actions/public/readContract.js.map +1 -1
  762. package/_esm/actions/public/simulateContract.js +9 -6
  763. package/_esm/actions/public/simulateContract.js.map +1 -1
  764. package/_esm/actions/public/uninstallFilter.js.map +1 -1
  765. package/_esm/actions/public/verifyHash.js +3 -2
  766. package/_esm/actions/public/verifyHash.js.map +1 -1
  767. package/_esm/actions/public/verifyMessage.js +1 -1
  768. package/_esm/actions/public/verifyMessage.js.map +1 -1
  769. package/_esm/actions/public/verifyTypedData.js +2 -2
  770. package/_esm/actions/public/verifyTypedData.js.map +1 -1
  771. package/_esm/actions/public/waitForTransactionReceipt.js +7 -6
  772. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  773. package/_esm/actions/public/watchBlockNumber.js +2 -1
  774. package/_esm/actions/public/watchBlockNumber.js.map +1 -1
  775. package/_esm/actions/public/watchBlocks.js +4 -3
  776. package/_esm/actions/public/watchBlocks.js.map +1 -1
  777. package/_esm/actions/public/watchContractEvent.js +11 -12
  778. package/_esm/actions/public/watchContractEvent.js.map +1 -1
  779. package/_esm/actions/public/watchEvent.js +6 -5
  780. package/_esm/actions/public/watchEvent.js.map +1 -1
  781. package/_esm/actions/public/watchPendingTransactions.js +4 -3
  782. package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
  783. package/_esm/actions/test/dropTransaction.js.map +1 -1
  784. package/_esm/actions/test/getAutomine.js.map +1 -1
  785. package/_esm/actions/test/getTxpoolContent.js.map +1 -1
  786. package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
  787. package/_esm/actions/test/impersonateAccount.js.map +1 -1
  788. package/_esm/actions/test/increaseTime.js.map +1 -1
  789. package/_esm/actions/test/inspectTxpool.js.map +1 -1
  790. package/_esm/actions/test/mine.js.map +1 -1
  791. package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
  792. package/_esm/actions/test/reset.js.map +1 -1
  793. package/_esm/actions/test/revert.js.map +1 -1
  794. package/_esm/actions/test/sendUnsignedTransaction.js +3 -3
  795. package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  796. package/_esm/actions/test/setAutomine.js.map +1 -1
  797. package/_esm/actions/test/setBalance.js.map +1 -1
  798. package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
  799. package/_esm/actions/test/setBlockTimestampInterval.js +6 -1
  800. package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
  801. package/_esm/actions/test/setCode.js.map +1 -1
  802. package/_esm/actions/test/setCoinbase.js.map +1 -1
  803. package/_esm/actions/test/setIntervalMining.js +6 -1
  804. package/_esm/actions/test/setIntervalMining.js.map +1 -1
  805. package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
  806. package/_esm/actions/test/setMinGasPrice.js.map +1 -1
  807. package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  808. package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
  809. package/_esm/actions/test/setNonce.js.map +1 -1
  810. package/_esm/actions/test/setRpcUrl.js.map +1 -1
  811. package/_esm/actions/test/setStorageAt.js.map +1 -1
  812. package/_esm/actions/test/snapshot.js.map +1 -1
  813. package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
  814. package/_esm/actions/wallet/addChain.js +1 -1
  815. package/_esm/actions/wallet/addChain.js.map +1 -1
  816. package/_esm/actions/wallet/deployContract.js.map +1 -1
  817. package/_esm/actions/wallet/getAddresses.js +3 -1
  818. package/_esm/actions/wallet/getAddresses.js.map +1 -1
  819. package/_esm/actions/wallet/getPermissions.js.map +1 -1
  820. package/_esm/actions/wallet/prepareTransactionRequest.js +9 -8
  821. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  822. package/_esm/actions/wallet/requestAddresses.js.map +1 -1
  823. package/_esm/actions/wallet/requestPermissions.js.map +1 -1
  824. package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
  825. package/_esm/actions/wallet/sendTransaction.js +13 -11
  826. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  827. package/_esm/actions/wallet/signMessage.js +2 -2
  828. package/_esm/actions/wallet/signMessage.js.map +1 -1
  829. package/_esm/actions/wallet/signTransaction.js +6 -5
  830. package/_esm/actions/wallet/signTransaction.js.map +1 -1
  831. package/_esm/actions/wallet/signTypedData.js +2 -2
  832. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  833. package/_esm/actions/wallet/switchChain.js +1 -1
  834. package/_esm/actions/wallet/switchChain.js.map +1 -1
  835. package/_esm/actions/wallet/watchAsset.js.map +1 -1
  836. package/_esm/actions/wallet/writeContract.js +4 -3
  837. package/_esm/actions/wallet/writeContract.js.map +1 -1
  838. package/_esm/chains/celo/formatters.js +32 -15
  839. package/_esm/chains/celo/formatters.js.map +1 -1
  840. package/_esm/chains/celo/parsers.js +56 -1
  841. package/_esm/chains/celo/parsers.js.map +1 -1
  842. package/_esm/chains/celo/serializers.js +65 -24
  843. package/_esm/chains/celo/serializers.js.map +1 -1
  844. package/_esm/chains/celo/utils.js +39 -0
  845. package/_esm/chains/celo/utils.js.map +1 -0
  846. package/_esm/chains/definitions/arbitrum.js +1 -14
  847. package/_esm/chains/definitions/arbitrum.js.map +1 -1
  848. package/_esm/chains/definitions/arbitrumGoerli.js +3 -15
  849. package/_esm/chains/definitions/arbitrumGoerli.js.map +1 -1
  850. package/_esm/chains/definitions/arbitrumNova.js +1 -14
  851. package/_esm/chains/definitions/arbitrumNova.js.map +1 -1
  852. package/_esm/chains/definitions/arbitrumSepolia.js +29 -0
  853. package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -0
  854. package/_esm/chains/definitions/astar.js +26 -0
  855. package/_esm/chains/definitions/astar.js.map +1 -0
  856. package/_esm/chains/definitions/astarZkatana.js +39 -0
  857. package/_esm/chains/definitions/astarZkatana.js.map +1 -0
  858. package/_esm/chains/definitions/aurora.js +1 -5
  859. package/_esm/chains/definitions/aurora.js.map +1 -1
  860. package/_esm/chains/definitions/auroraTestnet.js +1 -5
  861. package/_esm/chains/definitions/auroraTestnet.js.map +1 -1
  862. package/_esm/chains/definitions/avalanche.js +1 -4
  863. package/_esm/chains/definitions/avalanche.js.map +1 -1
  864. package/_esm/chains/definitions/avalancheFuji.js +1 -4
  865. package/_esm/chains/definitions/avalancheFuji.js.map +1 -1
  866. package/_esm/chains/definitions/base.js +1 -18
  867. package/_esm/chains/definitions/base.js.map +1 -1
  868. package/_esm/chains/definitions/baseGoerli.js +3 -18
  869. package/_esm/chains/definitions/baseGoerli.js.map +1 -1
  870. package/_esm/chains/definitions/baseSepolia.js +30 -0
  871. package/_esm/chains/definitions/baseSepolia.js.map +1 -0
  872. package/_esm/chains/definitions/bearNetworkChainMainnet.js +1 -3
  873. package/_esm/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
  874. package/_esm/chains/definitions/bearNetworkChainTestnet.js +1 -3
  875. package/_esm/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
  876. package/_esm/chains/definitions/boba.js +1 -4
  877. package/_esm/chains/definitions/boba.js.map +1 -1
  878. package/_esm/chains/definitions/bronos.js +1 -3
  879. package/_esm/chains/definitions/bronos.js.map +1 -1
  880. package/_esm/chains/definitions/bronosTestnet.js +1 -3
  881. package/_esm/chains/definitions/bronosTestnet.js.map +1 -1
  882. package/_esm/chains/definitions/bsc.js +1 -4
  883. package/_esm/chains/definitions/bsc.js.map +1 -1
  884. package/_esm/chains/definitions/bscTestnet.js +1 -4
  885. package/_esm/chains/definitions/bscTestnet.js.map +1 -1
  886. package/_esm/chains/definitions/bxn.js +1 -5
  887. package/_esm/chains/definitions/bxn.js.map +1 -1
  888. package/_esm/chains/definitions/bxnTestnet.js +1 -5
  889. package/_esm/chains/definitions/bxnTestnet.js.map +1 -1
  890. package/_esm/chains/definitions/canto.js +1 -3
  891. package/_esm/chains/definitions/canto.js.map +1 -1
  892. package/_esm/chains/definitions/celo.js +1 -10
  893. package/_esm/chains/definitions/celo.js.map +1 -1
  894. package/_esm/chains/definitions/celoAlfajores.js +1 -10
  895. package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
  896. package/_esm/chains/definitions/celoCannoli.js +1 -6
  897. package/_esm/chains/definitions/celoCannoli.js.map +1 -1
  898. package/_esm/chains/definitions/classic.js +1 -3
  899. package/_esm/chains/definitions/classic.js.map +1 -1
  900. package/_esm/chains/definitions/confluxESpace.js +1 -5
  901. package/_esm/chains/definitions/confluxESpace.js.map +1 -1
  902. package/_esm/chains/definitions/coreDao.js +24 -0
  903. package/_esm/chains/definitions/coreDao.js.map +1 -0
  904. package/_esm/chains/definitions/cronos.js +1 -3
  905. package/_esm/chains/definitions/cronos.js.map +1 -1
  906. package/_esm/chains/definitions/cronosTestnet.js +1 -3
  907. package/_esm/chains/definitions/cronosTestnet.js.map +1 -1
  908. package/_esm/chains/definitions/crossbell.js +1 -5
  909. package/_esm/chains/definitions/crossbell.js.map +1 -1
  910. package/_esm/chains/definitions/dfk.js +1 -9
  911. package/_esm/chains/definitions/dfk.js.map +1 -1
  912. package/_esm/chains/definitions/dogechain.js +1 -7
  913. package/_esm/chains/definitions/dogechain.js.map +1 -1
  914. package/_esm/chains/definitions/edgeware.js +1 -4
  915. package/_esm/chains/definitions/edgeware.js.map +1 -1
  916. package/_esm/chains/definitions/edgewareTestnet.js +1 -7
  917. package/_esm/chains/definitions/edgewareTestnet.js.map +1 -1
  918. package/_esm/chains/definitions/ekta.js +1 -3
  919. package/_esm/chains/definitions/ekta.js.map +1 -1
  920. package/_esm/chains/definitions/ektaTestnet.js +1 -3
  921. package/_esm/chains/definitions/ektaTestnet.js.map +1 -1
  922. package/_esm/chains/definitions/eon.js +1 -3
  923. package/_esm/chains/definitions/eon.js.map +1 -1
  924. package/_esm/chains/definitions/eos.js +1 -7
  925. package/_esm/chains/definitions/eos.js.map +1 -1
  926. package/_esm/chains/definitions/eosTestnet.js +1 -7
  927. package/_esm/chains/definitions/eosTestnet.js.map +1 -1
  928. package/_esm/chains/definitions/evmos.js +1 -3
  929. package/_esm/chains/definitions/evmos.js.map +1 -1
  930. package/_esm/chains/definitions/evmosTestnet.js +1 -3
  931. package/_esm/chains/definitions/evmosTestnet.js.map +1 -1
  932. package/_esm/chains/definitions/fantom.js +1 -4
  933. package/_esm/chains/definitions/fantom.js.map +1 -1
  934. package/_esm/chains/definitions/fantomTestnet.js +1 -4
  935. package/_esm/chains/definitions/fantomTestnet.js.map +1 -1
  936. package/_esm/chains/definitions/fibo.js +1 -3
  937. package/_esm/chains/definitions/fibo.js.map +1 -1
  938. package/_esm/chains/definitions/filecoin.js +1 -6
  939. package/_esm/chains/definitions/filecoin.js.map +1 -1
  940. package/_esm/chains/definitions/filecoinCalibration.js +1 -3
  941. package/_esm/chains/definitions/filecoinCalibration.js.map +1 -1
  942. package/_esm/chains/definitions/filecoinHyperspace.js +1 -4
  943. package/_esm/chains/definitions/filecoinHyperspace.js.map +1 -1
  944. package/_esm/chains/definitions/flare.js +1 -3
  945. package/_esm/chains/definitions/flare.js.map +1 -1
  946. package/_esm/chains/definitions/flareTestnet.js +1 -3
  947. package/_esm/chains/definitions/flareTestnet.js.map +1 -1
  948. package/_esm/chains/definitions/foundry.js +1 -6
  949. package/_esm/chains/definitions/foundry.js.map +1 -1
  950. package/_esm/chains/definitions/fuse.js +7 -3
  951. package/_esm/chains/definitions/fuse.js.map +1 -1
  952. package/_esm/chains/definitions/fuseSparknet.js +1 -3
  953. package/_esm/chains/definitions/fuseSparknet.js.map +1 -1
  954. package/_esm/chains/definitions/gnosis.js +5 -8
  955. package/_esm/chains/definitions/gnosis.js.map +1 -1
  956. package/_esm/chains/definitions/gnosisChiado.js +11 -4
  957. package/_esm/chains/definitions/gnosisChiado.js.map +1 -1
  958. package/_esm/chains/definitions/gobi.js +1 -3
  959. package/_esm/chains/definitions/gobi.js.map +1 -1
  960. package/_esm/chains/definitions/goerli.js +1 -17
  961. package/_esm/chains/definitions/goerli.js.map +1 -1
  962. package/_esm/chains/definitions/haqqMainnet.js +1 -5
  963. package/_esm/chains/definitions/haqqMainnet.js.map +1 -1
  964. package/_esm/chains/definitions/haqqTestedge2.js +1 -5
  965. package/_esm/chains/definitions/haqqTestedge2.js.map +1 -1
  966. package/_esm/chains/definitions/hardhat.js +1 -3
  967. package/_esm/chains/definitions/hardhat.js.map +1 -1
  968. package/_esm/chains/definitions/harmonyOne.js +1 -3
  969. package/_esm/chains/definitions/harmonyOne.js.map +1 -1
  970. package/_esm/chains/definitions/holesky.js +7 -6
  971. package/_esm/chains/definitions/holesky.js.map +1 -1
  972. package/_esm/chains/definitions/iotex.js +1 -6
  973. package/_esm/chains/definitions/iotex.js.map +1 -1
  974. package/_esm/chains/definitions/iotexTestnet.js +1 -6
  975. package/_esm/chains/definitions/iotexTestnet.js.map +1 -1
  976. package/_esm/chains/definitions/kava.js +26 -0
  977. package/_esm/chains/definitions/kava.js.map +1 -0
  978. package/_esm/chains/definitions/kavaTestnet.js +29 -0
  979. package/_esm/chains/definitions/kavaTestnet.js.map +1 -0
  980. package/_esm/chains/definitions/klaytn.js +1 -4
  981. package/_esm/chains/definitions/klaytn.js.map +1 -1
  982. package/_esm/chains/definitions/kroma.js +1 -5
  983. package/_esm/chains/definitions/kroma.js.map +1 -1
  984. package/_esm/chains/definitions/kromaSepolia.js +1 -5
  985. package/_esm/chains/definitions/kromaSepolia.js.map +1 -1
  986. package/_esm/chains/definitions/linea.js +1 -18
  987. package/_esm/chains/definitions/linea.js.map +1 -1
  988. package/_esm/chains/definitions/lineaTestnet.js +1 -18
  989. package/_esm/chains/definitions/lineaTestnet.js.map +1 -1
  990. package/_esm/chains/definitions/localhost.js +1 -3
  991. package/_esm/chains/definitions/localhost.js.map +1 -1
  992. package/_esm/chains/definitions/mainnet.js +1 -17
  993. package/_esm/chains/definitions/mainnet.js.map +1 -1
  994. package/_esm/chains/definitions/manta.js +32 -0
  995. package/_esm/chains/definitions/manta.js.map +1 -0
  996. package/_esm/chains/definitions/mantaTestnet.js +33 -0
  997. package/_esm/chains/definitions/mantaTestnet.js.map +1 -0
  998. package/_esm/chains/definitions/mantle.js +1 -7
  999. package/_esm/chains/definitions/mantle.js.map +1 -1
  1000. package/_esm/chains/definitions/mantleTestnet.js +1 -7
  1001. package/_esm/chains/definitions/mantleTestnet.js.map +1 -1
  1002. package/_esm/chains/definitions/meter.js +1 -3
  1003. package/_esm/chains/definitions/meter.js.map +1 -1
  1004. package/_esm/chains/definitions/meterTestnet.js +1 -3
  1005. package/_esm/chains/definitions/meterTestnet.js.map +1 -1
  1006. package/_esm/chains/definitions/metis.js +1 -3
  1007. package/_esm/chains/definitions/metis.js.map +1 -1
  1008. package/_esm/chains/definitions/metisGoerli.js +1 -3
  1009. package/_esm/chains/definitions/metisGoerli.js.map +1 -1
  1010. package/_esm/chains/definitions/mev.js +1 -5
  1011. package/_esm/chains/definitions/mev.js.map +1 -1
  1012. package/_esm/chains/definitions/mevTestnet.js +1 -5
  1013. package/_esm/chains/definitions/mevTestnet.js.map +1 -1
  1014. package/_esm/chains/definitions/modeTestnet.js +7 -5
  1015. package/_esm/chains/definitions/modeTestnet.js.map +1 -1
  1016. package/_esm/chains/definitions/moonbaseAlpha.js +1 -10
  1017. package/_esm/chains/definitions/moonbaseAlpha.js.map +1 -1
  1018. package/_esm/chains/definitions/moonbeam.js +1 -10
  1019. package/_esm/chains/definitions/moonbeam.js.map +1 -1
  1020. package/_esm/chains/definitions/moonbeamDev.js +17 -0
  1021. package/_esm/chains/definitions/moonbeamDev.js.map +1 -0
  1022. package/_esm/chains/definitions/moonriver.js +1 -10
  1023. package/_esm/chains/definitions/moonriver.js.map +1 -1
  1024. package/_esm/chains/definitions/neonDevnet.js +2 -6
  1025. package/_esm/chains/definitions/neonDevnet.js.map +1 -1
  1026. package/_esm/chains/definitions/neonMainnet.js +24 -0
  1027. package/_esm/chains/definitions/neonMainnet.js.map +1 -0
  1028. package/_esm/chains/definitions/nexi.js +1 -9
  1029. package/_esm/chains/definitions/nexi.js.map +1 -1
  1030. package/_esm/chains/definitions/nexilix.js +1 -4
  1031. package/_esm/chains/definitions/nexilix.js.map +1 -1
  1032. package/_esm/chains/definitions/oasys.js +1 -5
  1033. package/_esm/chains/definitions/oasys.js.map +1 -1
  1034. package/_esm/chains/definitions/okc.js +1 -3
  1035. package/_esm/chains/definitions/okc.js.map +1 -1
  1036. package/_esm/chains/definitions/opBNB.js +1 -3
  1037. package/_esm/chains/definitions/opBNB.js.map +1 -1
  1038. package/_esm/chains/definitions/opBNBTestnet.js +1 -3
  1039. package/_esm/chains/definitions/opBNBTestnet.js.map +1 -1
  1040. package/_esm/chains/definitions/optimism.js +1 -18
  1041. package/_esm/chains/definitions/optimism.js.map +1 -1
  1042. package/_esm/chains/definitions/optimismGoerli.js +1 -18
  1043. package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
  1044. package/_esm/chains/definitions/optimismSepolia.js +27 -0
  1045. package/_esm/chains/definitions/optimismSepolia.js.map +1 -0
  1046. package/_esm/chains/definitions/plinga.js +1 -5
  1047. package/_esm/chains/definitions/plinga.js.map +1 -1
  1048. package/_esm/chains/definitions/polygon.js +1 -17
  1049. package/_esm/chains/definitions/polygon.js.map +1 -1
  1050. package/_esm/chains/definitions/polygonMumbai.js +1 -17
  1051. package/_esm/chains/definitions/polygonMumbai.js.map +1 -1
  1052. package/_esm/chains/definitions/polygonZkEvm.js +1 -5
  1053. package/_esm/chains/definitions/polygonZkEvm.js.map +1 -1
  1054. package/_esm/chains/definitions/polygonZkEvmTestnet.js +1 -9
  1055. package/_esm/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
  1056. package/_esm/chains/definitions/pulsechain.js +1 -6
  1057. package/_esm/chains/definitions/pulsechain.js.map +1 -1
  1058. package/_esm/chains/definitions/pulsechainV4.js +1 -6
  1059. package/_esm/chains/definitions/pulsechainV4.js.map +1 -1
  1060. package/_esm/chains/definitions/qMainnet.js +1 -3
  1061. package/_esm/chains/definitions/qMainnet.js.map +1 -1
  1062. package/_esm/chains/definitions/qTestnet.js +1 -3
  1063. package/_esm/chains/definitions/qTestnet.js.map +1 -1
  1064. package/_esm/chains/definitions/rollux.js +1 -3
  1065. package/_esm/chains/definitions/rollux.js.map +1 -1
  1066. package/_esm/chains/definitions/rolluxTestnet.js +1 -3
  1067. package/_esm/chains/definitions/rolluxTestnet.js.map +1 -1
  1068. package/_esm/chains/definitions/ronin.js +1 -5
  1069. package/_esm/chains/definitions/ronin.js.map +1 -1
  1070. package/_esm/chains/definitions/saigon.js +1 -5
  1071. package/_esm/chains/definitions/saigon.js.map +1 -1
  1072. package/_esm/chains/definitions/scroll.js +26 -0
  1073. package/_esm/chains/definitions/scroll.js.map +1 -0
  1074. package/_esm/chains/definitions/scrollSepolia.js +1 -7
  1075. package/_esm/chains/definitions/scrollSepolia.js.map +1 -1
  1076. package/_esm/chains/definitions/scrollTestnet.js +1 -6
  1077. package/_esm/chains/definitions/scrollTestnet.js.map +1 -1
  1078. package/_esm/chains/definitions/sepolia.js +2 -18
  1079. package/_esm/chains/definitions/sepolia.js.map +1 -1
  1080. package/_esm/chains/definitions/shardeumSphinx.js +1 -5
  1081. package/_esm/chains/definitions/shardeumSphinx.js.map +1 -1
  1082. package/_esm/chains/definitions/skale/brawl.js +1 -10
  1083. package/_esm/chains/definitions/skale/brawl.js.map +1 -1
  1084. package/_esm/chains/definitions/skale/calypso.js +1 -12
  1085. package/_esm/chains/definitions/skale/calypso.js.map +1 -1
  1086. package/_esm/chains/definitions/skale/calypsoTestnet.js +1 -14
  1087. package/_esm/chains/definitions/skale/calypsoTestnet.js.map +1 -1
  1088. package/_esm/chains/definitions/skale/chaosTestnet.js +1 -14
  1089. package/_esm/chains/definitions/skale/chaosTestnet.js.map +1 -1
  1090. package/_esm/chains/definitions/skale/cryptoBlades.js +1 -12
  1091. package/_esm/chains/definitions/skale/cryptoBlades.js.map +1 -1
  1092. package/_esm/chains/definitions/skale/cryptoColosseum.js +1 -10
  1093. package/_esm/chains/definitions/skale/cryptoColosseum.js.map +1 -1
  1094. package/_esm/chains/definitions/skale/europa.js +1 -10
  1095. package/_esm/chains/definitions/skale/europa.js.map +1 -1
  1096. package/_esm/chains/definitions/skale/europaTestnet.js +1 -12
  1097. package/_esm/chains/definitions/skale/europaTestnet.js.map +1 -1
  1098. package/_esm/chains/definitions/skale/exorde.js +1 -10
  1099. package/_esm/chains/definitions/skale/exorde.js.map +1 -1
  1100. package/_esm/chains/definitions/skale/humanProtocol.js +1 -10
  1101. package/_esm/chains/definitions/skale/humanProtocol.js.map +1 -1
  1102. package/_esm/chains/definitions/skale/nebula.js +1 -10
  1103. package/_esm/chains/definitions/skale/nebula.js.map +1 -1
  1104. package/_esm/chains/definitions/skale/nebulaTestnet.js +1 -12
  1105. package/_esm/chains/definitions/skale/nebulaTestnet.js.map +1 -1
  1106. package/_esm/chains/definitions/skale/razor.js +1 -10
  1107. package/_esm/chains/definitions/skale/razor.js.map +1 -1
  1108. package/_esm/chains/definitions/skale/titan.js +1 -10
  1109. package/_esm/chains/definitions/skale/titan.js.map +1 -1
  1110. package/_esm/chains/definitions/skale/titanTestnet.js +1 -14
  1111. package/_esm/chains/definitions/skale/titanTestnet.js.map +1 -1
  1112. package/_esm/chains/definitions/songbird.js +1 -3
  1113. package/_esm/chains/definitions/songbird.js.map +1 -1
  1114. package/_esm/chains/definitions/songbirdTestnet.js +1 -3
  1115. package/_esm/chains/definitions/songbirdTestnet.js.map +1 -1
  1116. package/_esm/chains/definitions/syscoin.js +1 -6
  1117. package/_esm/chains/definitions/syscoin.js.map +1 -1
  1118. package/_esm/chains/definitions/syscoinTestnet.js +1 -6
  1119. package/_esm/chains/definitions/syscoinTestnet.js.map +1 -1
  1120. package/_esm/chains/definitions/taikoJolnir.js +1 -5
  1121. package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
  1122. package/_esm/chains/definitions/taikoTestnetSepolia.js +1 -5
  1123. package/_esm/chains/definitions/taikoTestnetSepolia.js.map +1 -1
  1124. package/_esm/chains/definitions/taraxa.js +1 -5
  1125. package/_esm/chains/definitions/taraxa.js.map +1 -1
  1126. package/_esm/chains/definitions/taraxaTestnet.js +1 -5
  1127. package/_esm/chains/definitions/taraxaTestnet.js.map +1 -1
  1128. package/_esm/chains/definitions/telos.js +1 -3
  1129. package/_esm/chains/definitions/telos.js.map +1 -1
  1130. package/_esm/chains/definitions/telosTestnet.js +1 -3
  1131. package/_esm/chains/definitions/telosTestnet.js.map +1 -1
  1132. package/_esm/chains/definitions/tenet.js +20 -0
  1133. package/_esm/chains/definitions/tenet.js.map +1 -0
  1134. package/_esm/chains/definitions/thunderTestnet.js +1 -5
  1135. package/_esm/chains/definitions/thunderTestnet.js.map +1 -1
  1136. package/_esm/chains/definitions/vechain.js +1 -5
  1137. package/_esm/chains/definitions/vechain.js.map +1 -1
  1138. package/_esm/chains/definitions/wanchain.js +1 -12
  1139. package/_esm/chains/definitions/wanchain.js.map +1 -1
  1140. package/_esm/chains/definitions/wanchainTestnet.js +1 -9
  1141. package/_esm/chains/definitions/wanchainTestnet.js.map +1 -1
  1142. package/_esm/chains/definitions/xdc.js +1 -3
  1143. package/_esm/chains/definitions/xdc.js.map +1 -1
  1144. package/_esm/chains/definitions/xdcTestnet.js +1 -3
  1145. package/_esm/chains/definitions/xdcTestnet.js.map +1 -1
  1146. package/_esm/chains/definitions/zetachainAthensTestnet.js +1 -5
  1147. package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -1
  1148. package/_esm/chains/definitions/zhejiang.js +1 -13
  1149. package/_esm/chains/definitions/zhejiang.js.map +1 -1
  1150. package/_esm/chains/definitions/zkSync.js +5 -5
  1151. package/_esm/chains/definitions/zkSync.js.map +1 -1
  1152. package/_esm/chains/definitions/zkSyncTestnet.js +5 -5
  1153. package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
  1154. package/_esm/chains/definitions/zora.js +1 -7
  1155. package/_esm/chains/definitions/zora.js.map +1 -1
  1156. package/_esm/chains/definitions/zoraSepolia.js +37 -0
  1157. package/_esm/chains/definitions/zoraSepolia.js.map +1 -0
  1158. package/_esm/chains/definitions/zoraTestnet.js +1 -7
  1159. package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
  1160. package/_esm/chains/index.js +15 -0
  1161. package/_esm/chains/index.js.map +1 -1
  1162. package/_esm/chains/utils.js +5 -0
  1163. package/_esm/chains/utils.js.map +1 -1
  1164. package/_esm/chains/zksync/formatters.js +126 -0
  1165. package/_esm/chains/zksync/formatters.js.map +1 -0
  1166. package/_esm/chains/zksync/serializers.js +71 -0
  1167. package/_esm/chains/zksync/serializers.js.map +1 -0
  1168. package/_esm/chains/zksync/types.js +2 -0
  1169. package/_esm/chains/zksync/types.js.map +1 -0
  1170. package/_esm/clients/createClient.js.map +1 -1
  1171. package/_esm/clients/createPublicClient.js +1 -1
  1172. package/_esm/clients/createPublicClient.js.map +1 -1
  1173. package/_esm/clients/createTestClient.js +1 -1
  1174. package/_esm/clients/createTestClient.js.map +1 -1
  1175. package/_esm/clients/createWalletClient.js +1 -1
  1176. package/_esm/clients/createWalletClient.js.map +1 -1
  1177. package/_esm/clients/decorators/public.js +4 -0
  1178. package/_esm/clients/decorators/public.js.map +1 -1
  1179. package/_esm/clients/transports/createTransport.js.map +1 -1
  1180. package/_esm/clients/transports/custom.js.map +1 -1
  1181. package/_esm/clients/transports/fallback.js.map +1 -1
  1182. package/_esm/clients/transports/http.js +3 -1
  1183. package/_esm/clients/transports/http.js.map +1 -1
  1184. package/_esm/clients/transports/webSocket.js +1 -1
  1185. package/_esm/clients/transports/webSocket.js.map +1 -1
  1186. package/_esm/ens/index.js.map +1 -1
  1187. package/_esm/errors/abi.js.map +1 -1
  1188. package/_esm/errors/account.js.map +1 -1
  1189. package/_esm/errors/address.js.map +1 -1
  1190. package/_esm/errors/base.js.map +1 -1
  1191. package/_esm/errors/block.js.map +1 -1
  1192. package/_esm/errors/ccip.js.map +1 -1
  1193. package/_esm/errors/chain.js.map +1 -1
  1194. package/_esm/errors/contract.js +1 -1
  1195. package/_esm/errors/contract.js.map +1 -1
  1196. package/_esm/errors/cursor.js +24 -0
  1197. package/_esm/errors/cursor.js.map +1 -0
  1198. package/_esm/errors/data.js.map +1 -1
  1199. package/_esm/errors/encoding.js +0 -33
  1200. package/_esm/errors/encoding.js.map +1 -1
  1201. package/_esm/errors/ens.js.map +1 -1
  1202. package/_esm/errors/estimateGas.js +1 -1
  1203. package/_esm/errors/estimateGas.js.map +1 -1
  1204. package/_esm/errors/fee.js.map +1 -1
  1205. package/_esm/errors/log.js.map +1 -1
  1206. package/_esm/errors/node.js +11 -31
  1207. package/_esm/errors/node.js.map +1 -1
  1208. package/_esm/errors/request.js.map +1 -1
  1209. package/_esm/errors/rpc.js +18 -139
  1210. package/_esm/errors/rpc.js.map +1 -1
  1211. package/_esm/errors/transaction.js +1 -1
  1212. package/_esm/errors/transaction.js.map +1 -1
  1213. package/_esm/errors/transport.js.map +1 -1
  1214. package/_esm/errors/utils.js.map +1 -1
  1215. package/_esm/errors/version.js +1 -1
  1216. package/_esm/errors/version.js.map +1 -1
  1217. package/_esm/index.js +50 -41
  1218. package/_esm/index.js.map +1 -1
  1219. package/_esm/types/eip1193.js +0 -2
  1220. package/_esm/types/eip1193.js.map +1 -1
  1221. package/_esm/types/proof.js +2 -0
  1222. package/_esm/types/proof.js.map +1 -0
  1223. package/_esm/types/withdrawal.js +2 -0
  1224. package/_esm/types/withdrawal.js.map +1 -0
  1225. package/_esm/utils/abi/decodeAbiParameters.js +2 -3
  1226. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  1227. package/_esm/utils/abi/decodeDeployData.js +1 -1
  1228. package/_esm/utils/abi/decodeDeployData.js.map +1 -1
  1229. package/_esm/utils/abi/decodeErrorResult.js +2 -2
  1230. package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
  1231. package/_esm/utils/abi/decodeEventLog.js +11 -13
  1232. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  1233. package/_esm/utils/abi/decodeFunctionData.js +2 -2
  1234. package/_esm/utils/abi/decodeFunctionData.js.map +1 -1
  1235. package/_esm/utils/abi/decodeFunctionResult.js +1 -1
  1236. package/_esm/utils/abi/decodeFunctionResult.js.map +1 -1
  1237. package/_esm/utils/abi/encodeAbiParameters.js +2 -4
  1238. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  1239. package/_esm/utils/abi/encodeDeployData.js +1 -1
  1240. package/_esm/utils/abi/encodeDeployData.js.map +1 -1
  1241. package/_esm/utils/abi/encodeErrorResult.js +2 -2
  1242. package/_esm/utils/abi/encodeErrorResult.js.map +1 -1
  1243. package/_esm/utils/abi/encodeEventTopics.js +4 -4
  1244. package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
  1245. package/_esm/utils/abi/encodeFunctionData.js +3 -3
  1246. package/_esm/utils/abi/encodeFunctionData.js.map +1 -1
  1247. package/_esm/utils/abi/encodeFunctionResult.js +1 -1
  1248. package/_esm/utils/abi/encodeFunctionResult.js.map +1 -1
  1249. package/_esm/utils/abi/encodePacked.js +2 -2
  1250. package/_esm/utils/abi/encodePacked.js.map +1 -1
  1251. package/_esm/utils/abi/formatAbiItem.js +1 -1
  1252. package/_esm/utils/abi/formatAbiItem.js.map +1 -1
  1253. package/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -1
  1254. package/_esm/utils/abi/getAbiItem.js +3 -3
  1255. package/_esm/utils/abi/getAbiItem.js.map +1 -1
  1256. package/_esm/utils/address/getAddress.js +1 -1
  1257. package/_esm/utils/address/getAddress.js.map +1 -1
  1258. package/_esm/utils/address/getContractAddress.js +8 -3
  1259. package/_esm/utils/address/getContractAddress.js.map +1 -1
  1260. package/_esm/utils/address/isAddress.js.map +1 -1
  1261. package/_esm/utils/address/isAddressEqual.js +1 -1
  1262. package/_esm/utils/address/isAddressEqual.js.map +1 -1
  1263. package/_esm/utils/buildRequest.js +1 -1
  1264. package/_esm/utils/buildRequest.js.map +1 -1
  1265. package/_esm/utils/ccip.js.map +1 -1
  1266. package/_esm/utils/chain/assertCurrentChain.js +8 -0
  1267. package/_esm/utils/chain/assertCurrentChain.js.map +1 -0
  1268. package/_esm/utils/chain/defineChain.js +9 -0
  1269. package/_esm/utils/chain/defineChain.js.map +1 -0
  1270. package/_esm/utils/chain/extractChain.js +4 -0
  1271. package/_esm/utils/chain/extractChain.js.map +1 -0
  1272. package/_esm/utils/chain/getChainContractAddress.js +22 -0
  1273. package/_esm/utils/chain/getChainContractAddress.js.map +1 -0
  1274. package/_esm/utils/cursor.js +130 -0
  1275. package/_esm/utils/cursor.js.map +1 -0
  1276. package/_esm/utils/data/concat.js.map +1 -1
  1277. package/_esm/utils/data/isBytes.js.map +1 -1
  1278. package/_esm/utils/data/isBytesEqual.js.map +1 -1
  1279. package/_esm/utils/data/isHex.js.map +1 -1
  1280. package/_esm/utils/data/pad.js +1 -1
  1281. package/_esm/utils/data/pad.js.map +1 -1
  1282. package/_esm/utils/data/size.js.map +1 -1
  1283. package/_esm/utils/data/slice.js +1 -1
  1284. package/_esm/utils/data/slice.js.map +1 -1
  1285. package/_esm/utils/data/trim.js.map +1 -1
  1286. package/_esm/utils/encoding/fromBytes.js +5 -5
  1287. package/_esm/utils/encoding/fromBytes.js.map +1 -1
  1288. package/_esm/utils/encoding/fromHex.js.map +1 -1
  1289. package/_esm/utils/encoding/fromRlp.js +55 -76
  1290. package/_esm/utils/encoding/fromRlp.js.map +1 -1
  1291. package/_esm/utils/encoding/toBytes.js +28 -9
  1292. package/_esm/utils/encoding/toBytes.js.map +1 -1
  1293. package/_esm/utils/encoding/toHex.js +4 -4
  1294. package/_esm/utils/encoding/toHex.js.map +1 -1
  1295. package/_esm/utils/encoding/toRlp.js +92 -23
  1296. package/_esm/utils/encoding/toRlp.js.map +1 -1
  1297. package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  1298. package/_esm/utils/ens/avatar/utils.js +1 -1
  1299. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  1300. package/_esm/utils/ens/encodeLabelhash.js.map +1 -1
  1301. package/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -1
  1302. package/_esm/utils/ens/errors.js.map +1 -1
  1303. package/_esm/utils/ens/labelhash.js +2 -2
  1304. package/_esm/utils/ens/labelhash.js.map +1 -1
  1305. package/_esm/utils/ens/namehash.js +2 -2
  1306. package/_esm/utils/ens/namehash.js.map +1 -1
  1307. package/_esm/utils/ens/normalize.js.map +1 -1
  1308. package/_esm/utils/ens/packetToBytes.js +2 -2
  1309. package/_esm/utils/ens/packetToBytes.js.map +1 -1
  1310. package/_esm/utils/errors/getCallError.js +8 -5
  1311. package/_esm/utils/errors/getCallError.js.map +1 -1
  1312. package/_esm/utils/errors/getContractError.js +14 -13
  1313. package/_esm/utils/errors/getContractError.js.map +1 -1
  1314. package/_esm/utils/errors/getEstimateGasError.js +8 -5
  1315. package/_esm/utils/errors/getEstimateGasError.js.map +1 -1
  1316. package/_esm/utils/errors/getNodeError.js +3 -1
  1317. package/_esm/utils/errors/getNodeError.js.map +1 -1
  1318. package/_esm/utils/errors/getTransactionError.js +8 -5
  1319. package/_esm/utils/errors/getTransactionError.js.map +1 -1
  1320. package/_esm/utils/formatters/block.js.map +1 -1
  1321. package/_esm/utils/formatters/extract.js +16 -9
  1322. package/_esm/utils/formatters/extract.js.map +1 -1
  1323. package/_esm/utils/formatters/feeHistory.js.map +1 -1
  1324. package/_esm/utils/formatters/formatter.js.map +1 -1
  1325. package/_esm/utils/formatters/log.js.map +1 -1
  1326. package/_esm/utils/formatters/proof.js +18 -0
  1327. package/_esm/utils/formatters/proof.js.map +1 -0
  1328. package/_esm/utils/formatters/transaction.js.map +1 -1
  1329. package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
  1330. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  1331. package/_esm/utils/getAction.js +4 -0
  1332. package/_esm/utils/getAction.js.map +1 -0
  1333. package/_esm/utils/hash/getEventSelector.js +5 -6
  1334. package/_esm/utils/hash/getEventSelector.js.map +1 -1
  1335. package/_esm/utils/hash/getEventSignature.js +5 -0
  1336. package/_esm/utils/hash/getEventSignature.js.map +1 -0
  1337. package/_esm/utils/hash/getFunctionSelector.js +5 -6
  1338. package/_esm/utils/hash/getFunctionSelector.js.map +1 -1
  1339. package/_esm/utils/hash/getFunctionSignature.js +11 -0
  1340. package/_esm/utils/hash/getFunctionSignature.js.map +1 -0
  1341. package/_esm/utils/hash/hashFunction.js +3 -5
  1342. package/_esm/utils/hash/hashFunction.js.map +1 -1
  1343. package/_esm/utils/hash/isHash.js.map +1 -1
  1344. package/_esm/utils/hash/keccak256.js.map +1 -1
  1345. package/_esm/utils/hash/normalizeSignature.js +51 -0
  1346. package/_esm/utils/hash/normalizeSignature.js.map +1 -0
  1347. package/_esm/utils/index.js +31 -32
  1348. package/_esm/utils/index.js.map +1 -1
  1349. package/_esm/utils/observe.js.map +1 -1
  1350. package/_esm/utils/poll.js.map +1 -1
  1351. package/_esm/utils/promise/createBatchScheduler.js +3 -1
  1352. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  1353. package/_esm/utils/promise/withCache.js.map +1 -1
  1354. package/_esm/utils/promise/withRetry.js.map +1 -1
  1355. package/_esm/utils/promise/withTimeout.js +1 -1
  1356. package/_esm/utils/promise/withTimeout.js.map +1 -1
  1357. package/_esm/utils/rpc.js +4 -8
  1358. package/_esm/utils/rpc.js.map +1 -1
  1359. package/_esm/utils/signature/compactSignatureToHex.js +19 -0
  1360. package/_esm/utils/signature/compactSignatureToHex.js.map +1 -0
  1361. package/_esm/utils/signature/compactSignatureToSignature.js +28 -0
  1362. package/_esm/utils/signature/compactSignatureToSignature.js.map +1 -0
  1363. package/_esm/utils/signature/hashMessage.js +1 -1
  1364. package/_esm/utils/signature/hashMessage.js.map +1 -1
  1365. package/_esm/utils/signature/hashTypedData.js +2 -2
  1366. package/_esm/utils/signature/hashTypedData.js.map +1 -1
  1367. package/_esm/utils/signature/hexToCompactSignature.js +20 -0
  1368. package/_esm/utils/signature/hexToCompactSignature.js.map +1 -0
  1369. package/_esm/utils/signature/hexToSignature.js +1 -1
  1370. package/_esm/utils/signature/hexToSignature.js.map +1 -1
  1371. package/_esm/utils/signature/recoverAddress.js.map +1 -1
  1372. package/_esm/utils/signature/recoverMessageAddress.js +1 -1
  1373. package/_esm/utils/signature/recoverMessageAddress.js.map +1 -1
  1374. package/_esm/utils/signature/recoverPublicKey.js.map +1 -1
  1375. package/_esm/utils/signature/recoverTypedDataAddress.js +1 -1
  1376. package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -1
  1377. package/_esm/utils/signature/signatureToCompactSignature.js +30 -0
  1378. package/_esm/utils/signature/signatureToCompactSignature.js.map +1 -0
  1379. package/_esm/utils/signature/signatureToHex.js +1 -1
  1380. package/_esm/utils/signature/signatureToHex.js.map +1 -1
  1381. package/_esm/utils/signature/verifyMessage.js +2 -2
  1382. package/_esm/utils/signature/verifyMessage.js.map +1 -1
  1383. package/_esm/utils/signature/verifyTypedData.js +1 -1
  1384. package/_esm/utils/signature/verifyTypedData.js.map +1 -1
  1385. package/_esm/utils/stringify.js.map +1 -1
  1386. package/_esm/utils/transaction/assertRequest.js +4 -4
  1387. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  1388. package/_esm/utils/transaction/assertTransaction.js +3 -3
  1389. package/_esm/utils/transaction/assertTransaction.js.map +1 -1
  1390. package/_esm/utils/transaction/getSerializedTransactionType.js +1 -1
  1391. package/_esm/utils/transaction/getSerializedTransactionType.js.map +1 -1
  1392. package/_esm/utils/transaction/getTransactionType.js +1 -1
  1393. package/_esm/utils/transaction/getTransactionType.js.map +1 -1
  1394. package/_esm/utils/transaction/parseTransaction.js +2 -2
  1395. package/_esm/utils/transaction/parseTransaction.js.map +1 -1
  1396. package/_esm/utils/transaction/serializeAccessList.js +2 -2
  1397. package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
  1398. package/_esm/utils/transaction/serializeTransaction.js +19 -7
  1399. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  1400. package/_esm/utils/typedData.js +1 -1
  1401. package/_esm/utils/typedData.js.map +1 -1
  1402. package/_esm/utils/unit/formatEther.js.map +1 -1
  1403. package/_esm/utils/unit/formatGwei.js.map +1 -1
  1404. package/_esm/utils/unit/formatUnits.js.map +1 -1
  1405. package/_esm/utils/unit/parseEther.js.map +1 -1
  1406. package/_esm/utils/unit/parseGwei.js.map +1 -1
  1407. package/_esm/utils/unit/parseUnits.js.map +1 -1
  1408. package/_types/accounts/generateMnemonic.d.ts +2 -0
  1409. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  1410. package/_types/accounts/generatePrivateKey.d.ts +3 -0
  1411. package/_types/accounts/generatePrivateKey.d.ts.map +1 -1
  1412. package/_types/accounts/hdKeyToAccount.d.ts +4 -0
  1413. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
  1414. package/_types/accounts/index.d.ts +14 -14
  1415. package/_types/accounts/index.d.ts.map +1 -1
  1416. package/_types/accounts/mnemonicToAccount.d.ts +3 -0
  1417. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -1
  1418. package/_types/accounts/privateKeyToAccount.d.ts +8 -0
  1419. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
  1420. package/_types/accounts/toAccount.d.ts +4 -0
  1421. package/_types/accounts/toAccount.d.ts.map +1 -1
  1422. package/_types/accounts/utils/parseAccount.d.ts +2 -0
  1423. package/_types/accounts/utils/parseAccount.d.ts.map +1 -1
  1424. package/_types/accounts/utils/privateKeyToAddress.d.ts +4 -0
  1425. package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -1
  1426. package/_types/accounts/utils/publicKeyToAddress.d.ts +4 -0
  1427. package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -1
  1428. package/_types/accounts/utils/sign.d.ts +3 -0
  1429. package/_types/accounts/utils/sign.d.ts.map +1 -1
  1430. package/_types/accounts/utils/signMessage.d.ts +5 -0
  1431. package/_types/accounts/utils/signMessage.d.ts.map +1 -1
  1432. package/_types/accounts/utils/signTransaction.d.ts +4 -0
  1433. package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
  1434. package/_types/accounts/utils/signTypedData.d.ts +5 -0
  1435. package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
  1436. package/_types/actions/ens/getEnsAddress.d.ts +9 -0
  1437. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  1438. package/_types/actions/ens/getEnsAvatar.d.ts +4 -1
  1439. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  1440. package/_types/actions/ens/getEnsName.d.ts +6 -1
  1441. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  1442. package/_types/actions/ens/getEnsResolver.d.ts +5 -0
  1443. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  1444. package/_types/actions/ens/getEnsText.d.ts +8 -1
  1445. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  1446. package/_types/actions/getContract.d.ts +69 -26
  1447. package/_types/actions/getContract.d.ts.map +1 -1
  1448. package/_types/actions/index.d.ts +80 -84
  1449. package/_types/actions/index.d.ts.map +1 -1
  1450. package/_types/actions/public/call.d.ts +15 -1
  1451. package/_types/actions/public/call.d.ts.map +1 -1
  1452. package/_types/actions/public/createBlockFilter.d.ts +3 -0
  1453. package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
  1454. package/_types/actions/public/createContractEventFilter.d.ts +6 -1
  1455. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
  1456. package/_types/actions/public/createEventFilter.d.ts +5 -0
  1457. package/_types/actions/public/createEventFilter.d.ts.map +1 -1
  1458. package/_types/actions/public/createPendingTransactionFilter.d.ts +3 -0
  1459. package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
  1460. package/_types/actions/public/estimateContractGas.d.ts +5 -1
  1461. package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
  1462. package/_types/actions/public/estimateFeesPerGas.d.ts +5 -0
  1463. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
  1464. package/_types/actions/public/estimateGas.d.ts +6 -0
  1465. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  1466. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +7 -0
  1467. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  1468. package/_types/actions/public/getBalance.d.ts +4 -0
  1469. package/_types/actions/public/getBalance.d.ts.map +1 -1
  1470. package/_types/actions/public/getBlock.d.ts +5 -0
  1471. package/_types/actions/public/getBlock.d.ts.map +1 -1
  1472. package/_types/actions/public/getBlockNumber.d.ts +4 -3
  1473. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  1474. package/_types/actions/public/getBlockTransactionCount.d.ts +5 -0
  1475. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  1476. package/_types/actions/public/getBytecode.d.ts +4 -0
  1477. package/_types/actions/public/getBytecode.d.ts.map +1 -1
  1478. package/_types/actions/public/getChainId.d.ts +4 -0
  1479. package/_types/actions/public/getChainId.d.ts.map +1 -1
  1480. package/_types/actions/public/getContractEvents.d.ts +66 -0
  1481. package/_types/actions/public/getContractEvents.d.ts.map +1 -0
  1482. package/_types/actions/public/getFeeHistory.d.ts +4 -0
  1483. package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
  1484. package/_types/actions/public/getFilterChanges.d.ts +5 -0
  1485. package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
  1486. package/_types/actions/public/getFilterLogs.d.ts +5 -0
  1487. package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
  1488. package/_types/actions/public/getGasPrice.d.ts +3 -0
  1489. package/_types/actions/public/getGasPrice.d.ts.map +1 -1
  1490. package/_types/actions/public/getLogs.d.ts +7 -0
  1491. package/_types/actions/public/getLogs.d.ts.map +1 -1
  1492. package/_types/actions/public/getProof.d.ts +57 -0
  1493. package/_types/actions/public/getProof.d.ts.map +1 -0
  1494. package/_types/actions/public/getStorageAt.d.ts +4 -0
  1495. package/_types/actions/public/getStorageAt.d.ts.map +1 -1
  1496. package/_types/actions/public/getTransaction.d.ts +4 -0
  1497. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  1498. package/_types/actions/public/getTransactionConfirmations.d.ts +4 -0
  1499. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  1500. package/_types/actions/public/getTransactionCount.d.ts +5 -0
  1501. package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
  1502. package/_types/actions/public/getTransactionReceipt.d.ts +4 -0
  1503. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  1504. package/_types/actions/public/multicall.d.ts +7 -0
  1505. package/_types/actions/public/multicall.d.ts.map +1 -1
  1506. package/_types/actions/public/readContract.d.ts +5 -1
  1507. package/_types/actions/public/readContract.d.ts.map +1 -1
  1508. package/_types/actions/public/simulateContract.d.ts +21 -9
  1509. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  1510. package/_types/actions/public/uninstallFilter.d.ts +3 -0
  1511. package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
  1512. package/_types/actions/public/verifyHash.d.ts +7 -1
  1513. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  1514. package/_types/actions/public/verifyMessage.d.ts +4 -1
  1515. package/_types/actions/public/verifyMessage.d.ts.map +1 -1
  1516. package/_types/actions/public/verifyTypedData.d.ts +4 -1
  1517. package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
  1518. package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -1
  1519. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  1520. package/_types/actions/public/watchBlockNumber.d.ts +3 -0
  1521. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  1522. package/_types/actions/public/watchBlocks.d.ts +4 -0
  1523. package/_types/actions/public/watchBlocks.d.ts.map +1 -1
  1524. package/_types/actions/public/watchContractEvent.d.ts +6 -2
  1525. package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
  1526. package/_types/actions/public/watchEvent.d.ts +4 -0
  1527. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  1528. package/_types/actions/public/watchPendingTransactions.d.ts +4 -0
  1529. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  1530. package/_types/actions/test/dropTransaction.d.ts +3 -0
  1531. package/_types/actions/test/dropTransaction.d.ts.map +1 -1
  1532. package/_types/actions/test/getAutomine.d.ts +3 -0
  1533. package/_types/actions/test/getAutomine.d.ts.map +1 -1
  1534. package/_types/actions/test/getTxpoolContent.d.ts +3 -0
  1535. package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
  1536. package/_types/actions/test/getTxpoolStatus.d.ts +3 -0
  1537. package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
  1538. package/_types/actions/test/impersonateAccount.d.ts +3 -0
  1539. package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
  1540. package/_types/actions/test/increaseTime.d.ts +3 -0
  1541. package/_types/actions/test/increaseTime.d.ts.map +1 -1
  1542. package/_types/actions/test/inspectTxpool.d.ts +3 -0
  1543. package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
  1544. package/_types/actions/test/mine.d.ts +3 -0
  1545. package/_types/actions/test/mine.d.ts.map +1 -1
  1546. package/_types/actions/test/removeBlockTimestampInterval.d.ts +3 -0
  1547. package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
  1548. package/_types/actions/test/reset.d.ts +3 -0
  1549. package/_types/actions/test/reset.d.ts.map +1 -1
  1550. package/_types/actions/test/revert.d.ts +3 -0
  1551. package/_types/actions/test/revert.d.ts.map +1 -1
  1552. package/_types/actions/test/sendUnsignedTransaction.d.ts +3 -0
  1553. package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  1554. package/_types/actions/test/setAutomine.d.ts +3 -0
  1555. package/_types/actions/test/setAutomine.d.ts.map +1 -1
  1556. package/_types/actions/test/setBalance.d.ts +3 -0
  1557. package/_types/actions/test/setBalance.d.ts.map +1 -1
  1558. package/_types/actions/test/setBlockGasLimit.d.ts +3 -0
  1559. package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
  1560. package/_types/actions/test/setBlockTimestampInterval.d.ts +3 -0
  1561. package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
  1562. package/_types/actions/test/setCode.d.ts +3 -0
  1563. package/_types/actions/test/setCode.d.ts.map +1 -1
  1564. package/_types/actions/test/setCoinbase.d.ts +3 -0
  1565. package/_types/actions/test/setCoinbase.d.ts.map +1 -1
  1566. package/_types/actions/test/setIntervalMining.d.ts +3 -0
  1567. package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
  1568. package/_types/actions/test/setLoggingEnabled.d.ts +3 -0
  1569. package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
  1570. package/_types/actions/test/setMinGasPrice.d.ts +3 -0
  1571. package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
  1572. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +3 -0
  1573. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
  1574. package/_types/actions/test/setNextBlockTimestamp.d.ts +3 -0
  1575. package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
  1576. package/_types/actions/test/setNonce.d.ts +3 -0
  1577. package/_types/actions/test/setNonce.d.ts.map +1 -1
  1578. package/_types/actions/test/setRpcUrl.d.ts +3 -0
  1579. package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
  1580. package/_types/actions/test/setStorageAt.d.ts +3 -0
  1581. package/_types/actions/test/setStorageAt.d.ts.map +1 -1
  1582. package/_types/actions/test/snapshot.d.ts +3 -0
  1583. package/_types/actions/test/snapshot.d.ts.map +1 -1
  1584. package/_types/actions/test/stopImpersonatingAccount.d.ts +3 -0
  1585. package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
  1586. package/_types/actions/wallet/addChain.d.ts +4 -0
  1587. package/_types/actions/wallet/addChain.d.ts.map +1 -1
  1588. package/_types/actions/wallet/deployContract.d.ts +3 -1
  1589. package/_types/actions/wallet/deployContract.d.ts.map +1 -1
  1590. package/_types/actions/wallet/getAddresses.d.ts +4 -0
  1591. package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
  1592. package/_types/actions/wallet/getPermissions.d.ts +3 -0
  1593. package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
  1594. package/_types/actions/wallet/prepareTransactionRequest.d.ts +9 -1
  1595. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  1596. package/_types/actions/wallet/requestAddresses.d.ts +3 -0
  1597. package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
  1598. package/_types/actions/wallet/requestPermissions.d.ts +3 -0
  1599. package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
  1600. package/_types/actions/wallet/sendRawTransaction.d.ts +3 -0
  1601. package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
  1602. package/_types/actions/wallet/sendTransaction.d.ts +12 -1
  1603. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  1604. package/_types/actions/wallet/signMessage.d.ts +6 -0
  1605. package/_types/actions/wallet/signMessage.d.ts.map +1 -1
  1606. package/_types/actions/wallet/signTransaction.d.ts +10 -1
  1607. package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
  1608. package/_types/actions/wallet/signTypedData.d.ts +9 -0
  1609. package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
  1610. package/_types/actions/wallet/switchChain.d.ts +4 -0
  1611. package/_types/actions/wallet/switchChain.d.ts.map +1 -1
  1612. package/_types/actions/wallet/watchAsset.d.ts +3 -0
  1613. package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
  1614. package/_types/actions/wallet/writeContract.d.ts +5 -2
  1615. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  1616. package/_types/chains/celo/formatters.d.ts +221 -33
  1617. package/_types/chains/celo/formatters.d.ts.map +1 -1
  1618. package/_types/chains/celo/parsers.d.ts.map +1 -1
  1619. package/_types/chains/celo/serializers.d.ts +6 -3
  1620. package/_types/chains/celo/serializers.d.ts.map +1 -1
  1621. package/_types/chains/celo/types.d.ts +48 -12
  1622. package/_types/chains/celo/types.d.ts.map +1 -1
  1623. package/_types/chains/celo/utils.d.ts +7 -0
  1624. package/_types/chains/celo/utils.d.ts.map +1 -0
  1625. package/_types/chains/definitions/arbitrum.d.ts +19 -33
  1626. package/_types/chains/definitions/arbitrum.d.ts.map +1 -1
  1627. package/_types/chains/definitions/arbitrumGoerli.d.ts +21 -32
  1628. package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -1
  1629. package/_types/chains/definitions/arbitrumNova.d.ts +19 -33
  1630. package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -1
  1631. package/_types/chains/definitions/arbitrumSepolia.d.ts +32 -0
  1632. package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -0
  1633. package/_types/chains/definitions/astar.d.ts +36 -0
  1634. package/_types/chains/definitions/astar.d.ts.map +1 -0
  1635. package/_types/chains/definitions/astarZkatana.d.ts +40 -0
  1636. package/_types/chains/definitions/astarZkatana.d.ts.map +1 -0
  1637. package/_types/chains/definitions/aurora.d.ts +23 -24
  1638. package/_types/chains/definitions/aurora.d.ts.map +1 -1
  1639. package/_types/chains/definitions/auroraTestnet.d.ts +23 -25
  1640. package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -1
  1641. package/_types/chains/definitions/avalanche.d.ts +19 -25
  1642. package/_types/chains/definitions/avalanche.d.ts.map +1 -1
  1643. package/_types/chains/definitions/avalancheFuji.d.ts +19 -26
  1644. package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -1
  1645. package/_types/chains/definitions/base.d.ts +30 -1032
  1646. package/_types/chains/definitions/base.d.ts.map +1 -1
  1647. package/_types/chains/definitions/baseGoerli.d.ts +30 -1030
  1648. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  1649. package/_types/chains/definitions/baseSepolia.d.ts +539 -0
  1650. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -0
  1651. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +23 -17
  1652. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -1
  1653. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +23 -18
  1654. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -1
  1655. package/_types/chains/definitions/boba.d.ts +19 -25
  1656. package/_types/chains/definitions/boba.d.ts.map +1 -1
  1657. package/_types/chains/definitions/bronos.d.ts +23 -17
  1658. package/_types/chains/definitions/bronos.d.ts.map +1 -1
  1659. package/_types/chains/definitions/bronosTestnet.d.ts +23 -18
  1660. package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -1
  1661. package/_types/chains/definitions/bsc.d.ts +19 -25
  1662. package/_types/chains/definitions/bsc.d.ts.map +1 -1
  1663. package/_types/chains/definitions/bscTestnet.d.ts +19 -26
  1664. package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
  1665. package/_types/chains/definitions/bxn.d.ts +23 -17
  1666. package/_types/chains/definitions/bxn.d.ts.map +1 -1
  1667. package/_types/chains/definitions/bxnTestnet.d.ts +23 -17
  1668. package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -1
  1669. package/_types/chains/definitions/canto.d.ts +19 -21
  1670. package/_types/chains/definitions/canto.d.ts.map +1 -1
  1671. package/_types/chains/definitions/celo.d.ts +235 -1433
  1672. package/_types/chains/definitions/celo.d.ts.map +1 -1
  1673. package/_types/chains/definitions/celoAlfajores.d.ts +235 -1433
  1674. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  1675. package/_types/chains/definitions/celoCannoli.d.ts +235 -1426
  1676. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
  1677. package/_types/chains/definitions/classic.d.ts +23 -17
  1678. package/_types/chains/definitions/classic.d.ts.map +1 -1
  1679. package/_types/chains/definitions/confluxESpace.d.ts +19 -21
  1680. package/_types/chains/definitions/confluxESpace.d.ts.map +1 -1
  1681. package/_types/chains/definitions/coreDao.d.ts +32 -0
  1682. package/_types/chains/definitions/coreDao.d.ts.map +1 -0
  1683. package/_types/chains/definitions/cronos.d.ts +19 -21
  1684. package/_types/chains/definitions/cronos.d.ts.map +1 -1
  1685. package/_types/chains/definitions/cronosTestnet.d.ts +19 -22
  1686. package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -1
  1687. package/_types/chains/definitions/crossbell.d.ts +19 -21
  1688. package/_types/chains/definitions/crossbell.d.ts.map +1 -1
  1689. package/_types/chains/definitions/dfk.d.ts +23 -21
  1690. package/_types/chains/definitions/dfk.d.ts.map +1 -1
  1691. package/_types/chains/definitions/dogechain.d.ts +23 -21
  1692. package/_types/chains/definitions/dogechain.d.ts.map +1 -1
  1693. package/_types/chains/definitions/edgeware.d.ts +19 -25
  1694. package/_types/chains/definitions/edgeware.d.ts.map +1 -1
  1695. package/_types/chains/definitions/edgewareTestnet.d.ts +23 -21
  1696. package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -1
  1697. package/_types/chains/definitions/ekta.d.ts +23 -17
  1698. package/_types/chains/definitions/ekta.d.ts.map +1 -1
  1699. package/_types/chains/definitions/ektaTestnet.d.ts +23 -18
  1700. package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -1
  1701. package/_types/chains/definitions/eon.d.ts +16 -18
  1702. package/_types/chains/definitions/eon.d.ts.map +1 -1
  1703. package/_types/chains/definitions/eos.d.ts +19 -25
  1704. package/_types/chains/definitions/eos.d.ts.map +1 -1
  1705. package/_types/chains/definitions/eosTestnet.d.ts +19 -26
  1706. package/_types/chains/definitions/eosTestnet.d.ts.map +1 -1
  1707. package/_types/chains/definitions/evmos.d.ts +23 -17
  1708. package/_types/chains/definitions/evmos.d.ts.map +1 -1
  1709. package/_types/chains/definitions/evmosTestnet.d.ts +23 -17
  1710. package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -1
  1711. package/_types/chains/definitions/fantom.d.ts +19 -25
  1712. package/_types/chains/definitions/fantom.d.ts.map +1 -1
  1713. package/_types/chains/definitions/fantomTestnet.d.ts +19 -25
  1714. package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -1
  1715. package/_types/chains/definitions/fibo.d.ts +23 -17
  1716. package/_types/chains/definitions/fibo.d.ts.map +1 -1
  1717. package/_types/chains/definitions/filecoin.d.ts +23 -29
  1718. package/_types/chains/definitions/filecoin.d.ts.map +1 -1
  1719. package/_types/chains/definitions/filecoinCalibration.d.ts +23 -17
  1720. package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -1
  1721. package/_types/chains/definitions/filecoinHyperspace.d.ts +23 -21
  1722. package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -1
  1723. package/_types/chains/definitions/flare.d.ts +23 -17
  1724. package/_types/chains/definitions/flare.d.ts.map +1 -1
  1725. package/_types/chains/definitions/flareTestnet.d.ts +23 -18
  1726. package/_types/chains/definitions/flareTestnet.d.ts.map +1 -1
  1727. package/_types/chains/definitions/foundry.d.ts +27 -12
  1728. package/_types/chains/definitions/foundry.d.ts.map +1 -1
  1729. package/_types/chains/definitions/fuse.d.ts +21 -17
  1730. package/_types/chains/definitions/fuse.d.ts.map +1 -1
  1731. package/_types/chains/definitions/fuseSparknet.d.ts +23 -17
  1732. package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -1
  1733. package/_types/chains/definitions/gnosis.d.ts +20 -25
  1734. package/_types/chains/definitions/gnosis.d.ts.map +1 -1
  1735. package/_types/chains/definitions/gnosisChiado.d.ts +22 -18
  1736. package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -1
  1737. package/_types/chains/definitions/gobi.d.ts +16 -19
  1738. package/_types/chains/definitions/gobi.d.ts.map +1 -1
  1739. package/_types/chains/definitions/goerli.d.ts +19 -34
  1740. package/_types/chains/definitions/goerli.d.ts.map +1 -1
  1741. package/_types/chains/definitions/haqqMainnet.d.ts +23 -17
  1742. package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -1
  1743. package/_types/chains/definitions/haqqTestedge2.d.ts +23 -17
  1744. package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -1
  1745. package/_types/chains/definitions/hardhat.d.ts +27 -11
  1746. package/_types/chains/definitions/hardhat.d.ts.map +1 -1
  1747. package/_types/chains/definitions/harmonyOne.d.ts +19 -21
  1748. package/_types/chains/definitions/harmonyOne.d.ts.map +1 -1
  1749. package/_types/chains/definitions/holesky.d.ts +26 -14
  1750. package/_types/chains/definitions/holesky.d.ts.map +1 -1
  1751. package/_types/chains/definitions/iotex.d.ts +23 -18
  1752. package/_types/chains/definitions/iotex.d.ts.map +1 -1
  1753. package/_types/chains/definitions/iotexTestnet.d.ts +23 -18
  1754. package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -1
  1755. package/_types/chains/definitions/kava.d.ts +36 -0
  1756. package/_types/chains/definitions/kava.d.ts.map +1 -0
  1757. package/_types/chains/definitions/kavaTestnet.d.ts +36 -0
  1758. package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -0
  1759. package/_types/chains/definitions/klaytn.d.ts +23 -21
  1760. package/_types/chains/definitions/klaytn.d.ts.map +1 -1
  1761. package/_types/chains/definitions/kroma.d.ts +23 -18
  1762. package/_types/chains/definitions/kroma.d.ts.map +1 -1
  1763. package/_types/chains/definitions/kromaSepolia.d.ts +23 -18
  1764. package/_types/chains/definitions/kromaSepolia.d.ts.map +1 -1
  1765. package/_types/chains/definitions/linea.d.ts +20 -36
  1766. package/_types/chains/definitions/linea.d.ts.map +1 -1
  1767. package/_types/chains/definitions/lineaTestnet.d.ts +20 -36
  1768. package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -1
  1769. package/_types/chains/definitions/localhost.d.ts +27 -11
  1770. package/_types/chains/definitions/localhost.d.ts.map +1 -1
  1771. package/_types/chains/definitions/mainnet.d.ts +19 -33
  1772. package/_types/chains/definitions/mainnet.d.ts.map +1 -1
  1773. package/_types/chains/definitions/manta.d.ts +40 -0
  1774. package/_types/chains/definitions/manta.d.ts.map +1 -0
  1775. package/_types/chains/definitions/mantaTestnet.d.ts +40 -0
  1776. package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -0
  1777. package/_types/chains/definitions/mantle.d.ts +19 -25
  1778. package/_types/chains/definitions/mantle.d.ts.map +1 -1
  1779. package/_types/chains/definitions/mantleTestnet.d.ts +23 -22
  1780. package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -1
  1781. package/_types/chains/definitions/meter.d.ts +23 -17
  1782. package/_types/chains/definitions/meter.d.ts.map +1 -1
  1783. package/_types/chains/definitions/meterTestnet.d.ts +23 -17
  1784. package/_types/chains/definitions/meterTestnet.d.ts.map +1 -1
  1785. package/_types/chains/definitions/metis.d.ts +19 -21
  1786. package/_types/chains/definitions/metis.d.ts.map +1 -1
  1787. package/_types/chains/definitions/metisGoerli.d.ts +19 -21
  1788. package/_types/chains/definitions/metisGoerli.d.ts.map +1 -1
  1789. package/_types/chains/definitions/mev.d.ts +19 -21
  1790. package/_types/chains/definitions/mev.d.ts.map +1 -1
  1791. package/_types/chains/definitions/mevTestnet.d.ts +19 -22
  1792. package/_types/chains/definitions/mevTestnet.d.ts.map +1 -1
  1793. package/_types/chains/definitions/modeTestnet.d.ts +21 -18
  1794. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -1
  1795. package/_types/chains/definitions/moonbaseAlpha.d.ts +20 -28
  1796. package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -1
  1797. package/_types/chains/definitions/moonbeam.d.ts +20 -28
  1798. package/_types/chains/definitions/moonbeam.d.ts.map +1 -1
  1799. package/_types/chains/definitions/moonbeamDev.d.ts +39 -0
  1800. package/_types/chains/definitions/moonbeamDev.d.ts.map +1 -0
  1801. package/_types/chains/definitions/moonriver.d.ts +20 -28
  1802. package/_types/chains/definitions/moonriver.d.ts.map +1 -1
  1803. package/_types/chains/definitions/neonDevnet.d.ts +20 -23
  1804. package/_types/chains/definitions/neonDevnet.d.ts.map +1 -1
  1805. package/_types/chains/definitions/neonMainnet.d.ts +31 -0
  1806. package/_types/chains/definitions/neonMainnet.d.ts.map +1 -0
  1807. package/_types/chains/definitions/nexi.d.ts +19 -25
  1808. package/_types/chains/definitions/nexi.d.ts.map +1 -1
  1809. package/_types/chains/definitions/nexilix.d.ts +19 -25
  1810. package/_types/chains/definitions/nexilix.d.ts.map +1 -1
  1811. package/_types/chains/definitions/oasys.d.ts +23 -17
  1812. package/_types/chains/definitions/oasys.d.ts.map +1 -1
  1813. package/_types/chains/definitions/okc.d.ts +19 -21
  1814. package/_types/chains/definitions/okc.d.ts.map +1 -1
  1815. package/_types/chains/definitions/opBNB.d.ts +19 -21
  1816. package/_types/chains/definitions/opBNB.d.ts.map +1 -1
  1817. package/_types/chains/definitions/opBNBTestnet.d.ts +19 -22
  1818. package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -1
  1819. package/_types/chains/definitions/optimism.d.ts +30 -1032
  1820. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  1821. package/_types/chains/definitions/optimismGoerli.d.ts +30 -1033
  1822. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  1823. package/_types/chains/definitions/optimismSepolia.d.ts +529 -0
  1824. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -0
  1825. package/_types/chains/definitions/plinga.d.ts +19 -21
  1826. package/_types/chains/definitions/plinga.d.ts.map +1 -1
  1827. package/_types/chains/definitions/polygon.d.ts +19 -33
  1828. package/_types/chains/definitions/polygon.d.ts.map +1 -1
  1829. package/_types/chains/definitions/polygonMumbai.d.ts +19 -34
  1830. package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -1
  1831. package/_types/chains/definitions/polygonZkEvm.d.ts +19 -21
  1832. package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -1
  1833. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +19 -26
  1834. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -1
  1835. package/_types/chains/definitions/pulsechain.d.ts +20 -24
  1836. package/_types/chains/definitions/pulsechain.d.ts.map +1 -1
  1837. package/_types/chains/definitions/pulsechainV4.d.ts +20 -24
  1838. package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -1
  1839. package/_types/chains/definitions/qMainnet.d.ts +23 -17
  1840. package/_types/chains/definitions/qMainnet.d.ts.map +1 -1
  1841. package/_types/chains/definitions/qTestnet.d.ts +23 -18
  1842. package/_types/chains/definitions/qTestnet.d.ts.map +1 -1
  1843. package/_types/chains/definitions/rollux.d.ts +20 -22
  1844. package/_types/chains/definitions/rollux.d.ts.map +1 -1
  1845. package/_types/chains/definitions/rolluxTestnet.d.ts +20 -22
  1846. package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -1
  1847. package/_types/chains/definitions/ronin.d.ts +19 -21
  1848. package/_types/chains/definitions/ronin.d.ts.map +1 -1
  1849. package/_types/chains/definitions/saigon.d.ts +19 -22
  1850. package/_types/chains/definitions/saigon.d.ts.map +1 -1
  1851. package/_types/chains/definitions/scroll.d.ts +33 -0
  1852. package/_types/chains/definitions/scroll.d.ts.map +1 -0
  1853. package/_types/chains/definitions/scrollSepolia.d.ts +19 -24
  1854. package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -1
  1855. package/_types/chains/definitions/scrollTestnet.d.ts +23 -19
  1856. package/_types/chains/definitions/scrollTestnet.d.ts.map +1 -1
  1857. package/_types/chains/definitions/sepolia.d.ts +20 -35
  1858. package/_types/chains/definitions/sepolia.d.ts.map +1 -1
  1859. package/_types/chains/definitions/shardeumSphinx.d.ts +23 -18
  1860. package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -1
  1861. package/_types/chains/definitions/skale/brawl.d.ts +16 -23
  1862. package/_types/chains/definitions/skale/brawl.d.ts.map +1 -1
  1863. package/_types/chains/definitions/skale/calypso.d.ts +20 -27
  1864. package/_types/chains/definitions/skale/calypso.d.ts.map +1 -1
  1865. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +20 -28
  1866. package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -1
  1867. package/_types/chains/definitions/skale/chaosTestnet.d.ts +20 -28
  1868. package/_types/chains/definitions/skale/chaosTestnet.d.ts.map +1 -1
  1869. package/_types/chains/definitions/skale/cryptoBlades.d.ts +16 -23
  1870. package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -1
  1871. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +16 -23
  1872. package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -1
  1873. package/_types/chains/definitions/skale/europa.d.ts +20 -27
  1874. package/_types/chains/definitions/skale/europa.d.ts.map +1 -1
  1875. package/_types/chains/definitions/skale/europaTestnet.d.ts +20 -28
  1876. package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -1
  1877. package/_types/chains/definitions/skale/exorde.d.ts +16 -23
  1878. package/_types/chains/definitions/skale/exorde.d.ts.map +1 -1
  1879. package/_types/chains/definitions/skale/humanProtocol.d.ts +16 -23
  1880. package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -1
  1881. package/_types/chains/definitions/skale/nebula.d.ts +20 -27
  1882. package/_types/chains/definitions/skale/nebula.d.ts.map +1 -1
  1883. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +20 -28
  1884. package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -1
  1885. package/_types/chains/definitions/skale/razor.d.ts +16 -23
  1886. package/_types/chains/definitions/skale/razor.d.ts.map +1 -1
  1887. package/_types/chains/definitions/skale/titan.d.ts +20 -27
  1888. package/_types/chains/definitions/skale/titan.d.ts.map +1 -1
  1889. package/_types/chains/definitions/skale/titanTestnet.d.ts +20 -28
  1890. package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -1
  1891. package/_types/chains/definitions/songbird.d.ts +23 -17
  1892. package/_types/chains/definitions/songbird.d.ts.map +1 -1
  1893. package/_types/chains/definitions/songbirdTestnet.d.ts +23 -18
  1894. package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -1
  1895. package/_types/chains/definitions/syscoin.d.ts +20 -23
  1896. package/_types/chains/definitions/syscoin.d.ts.map +1 -1
  1897. package/_types/chains/definitions/syscoinTestnet.d.ts +20 -23
  1898. package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -1
  1899. package/_types/chains/definitions/taikoJolnir.d.ts +23 -17
  1900. package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -1
  1901. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +23 -17
  1902. package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -1
  1903. package/_types/chains/definitions/taraxa.d.ts +23 -17
  1904. package/_types/chains/definitions/taraxa.d.ts.map +1 -1
  1905. package/_types/chains/definitions/taraxaTestnet.d.ts +23 -18
  1906. package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -1
  1907. package/_types/chains/definitions/telos.d.ts +19 -21
  1908. package/_types/chains/definitions/telos.d.ts.map +1 -1
  1909. package/_types/chains/definitions/telosTestnet.d.ts +23 -18
  1910. package/_types/chains/definitions/telosTestnet.d.ts.map +1 -1
  1911. package/_types/chains/definitions/tenet.d.ts +38 -0
  1912. package/_types/chains/definitions/tenet.d.ts.map +1 -0
  1913. package/_types/chains/definitions/thunderTestnet.d.ts +23 -18
  1914. package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -1
  1915. package/_types/chains/definitions/vechain.d.ts +26 -20
  1916. package/_types/chains/definitions/vechain.d.ts.map +1 -1
  1917. package/_types/chains/definitions/wanchain.d.ts +19 -25
  1918. package/_types/chains/definitions/wanchain.d.ts.map +1 -1
  1919. package/_types/chains/definitions/wanchainTestnet.d.ts +19 -26
  1920. package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -1
  1921. package/_types/chains/definitions/xdc.d.ts +26 -20
  1922. package/_types/chains/definitions/xdc.d.ts.map +1 -1
  1923. package/_types/chains/definitions/xdcTestnet.d.ts +26 -20
  1924. package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -1
  1925. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +23 -18
  1926. package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -1
  1927. package/_types/chains/definitions/zhejiang.d.ts +23 -26
  1928. package/_types/chains/definitions/zhejiang.d.ts.map +1 -1
  1929. package/_types/chains/definitions/zkSync.d.ts +503 -20
  1930. package/_types/chains/definitions/zkSync.d.ts.map +1 -1
  1931. package/_types/chains/definitions/zkSyncTestnet.d.ts +503 -21
  1932. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  1933. package/_types/chains/definitions/zora.d.ts +31 -1022
  1934. package/_types/chains/definitions/zora.d.ts.map +1 -1
  1935. package/_types/chains/definitions/zoraSepolia.d.ts +535 -0
  1936. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -0
  1937. package/_types/chains/definitions/zoraTestnet.d.ts +31 -1023
  1938. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  1939. package/_types/chains/index.d.ts +16 -1
  1940. package/_types/chains/index.d.ts.map +1 -1
  1941. package/_types/chains/optimism/formatters.d.ts +10 -8
  1942. package/_types/chains/optimism/formatters.d.ts.map +1 -1
  1943. package/_types/chains/utils.d.ts +7 -1
  1944. package/_types/chains/utils.d.ts.map +1 -1
  1945. package/_types/chains/zksync/formatters.d.ts +487 -0
  1946. package/_types/chains/zksync/formatters.d.ts.map +1 -0
  1947. package/_types/chains/zksync/serializers.d.ts +9 -0
  1948. package/_types/chains/zksync/serializers.d.ts.map +1 -0
  1949. package/_types/chains/zksync/types.d.ts +158 -0
  1950. package/_types/chains/zksync/types.d.ts.map +1 -0
  1951. package/_types/clients/createClient.d.ts +9 -2
  1952. package/_types/clients/createClient.d.ts.map +1 -1
  1953. package/_types/clients/createPublicClient.d.ts +3 -1
  1954. package/_types/clients/createPublicClient.d.ts.map +1 -1
  1955. package/_types/clients/createTestClient.d.ts +3 -1
  1956. package/_types/clients/createTestClient.d.ts.map +1 -1
  1957. package/_types/clients/createWalletClient.d.ts +3 -1
  1958. package/_types/clients/createWalletClient.d.ts.map +1 -1
  1959. package/_types/clients/decorators/public.d.ts +58 -5
  1960. package/_types/clients/decorators/public.d.ts.map +1 -1
  1961. package/_types/clients/transports/createTransport.d.ts +2 -0
  1962. package/_types/clients/transports/createTransport.d.ts.map +1 -1
  1963. package/_types/clients/transports/custom.d.ts +3 -1
  1964. package/_types/clients/transports/custom.d.ts.map +1 -1
  1965. package/_types/clients/transports/fallback.d.ts +3 -1
  1966. package/_types/clients/transports/fallback.d.ts.map +1 -1
  1967. package/_types/clients/transports/http.d.ts +5 -1
  1968. package/_types/clients/transports/http.d.ts.map +1 -1
  1969. package/_types/clients/transports/webSocket.d.ts +4 -3
  1970. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  1971. package/_types/ens/index.d.ts +8 -8
  1972. package/_types/ens/index.d.ts.map +1 -1
  1973. package/_types/errors/abi.d.ts +75 -0
  1974. package/_types/errors/abi.d.ts.map +1 -1
  1975. package/_types/errors/account.d.ts +3 -0
  1976. package/_types/errors/account.d.ts.map +1 -1
  1977. package/_types/errors/address.d.ts +3 -0
  1978. package/_types/errors/address.d.ts.map +1 -1
  1979. package/_types/errors/base.d.ts +3 -0
  1980. package/_types/errors/base.d.ts.map +1 -1
  1981. package/_types/errors/block.d.ts +3 -0
  1982. package/_types/errors/block.d.ts.map +1 -1
  1983. package/_types/errors/ccip.d.ts +9 -0
  1984. package/_types/errors/ccip.d.ts.map +1 -1
  1985. package/_types/errors/chain.d.ts +15 -0
  1986. package/_types/errors/chain.d.ts.map +1 -1
  1987. package/_types/errors/contract.d.ts +15 -0
  1988. package/_types/errors/contract.d.ts.map +1 -1
  1989. package/_types/errors/cursor.d.ts +21 -0
  1990. package/_types/errors/cursor.d.ts.map +1 -0
  1991. package/_types/errors/data.d.ts +6 -0
  1992. package/_types/errors/data.d.ts.map +1 -1
  1993. package/_types/errors/encoding.d.ts +16 -22
  1994. package/_types/errors/encoding.d.ts.map +1 -1
  1995. package/_types/errors/ens.d.ts +12 -0
  1996. package/_types/errors/ens.d.ts.map +1 -1
  1997. package/_types/errors/estimateGas.d.ts +3 -0
  1998. package/_types/errors/estimateGas.d.ts.map +1 -1
  1999. package/_types/errors/fee.d.ts +9 -0
  2000. package/_types/errors/fee.d.ts.map +1 -1
  2001. package/_types/errors/log.d.ts +3 -0
  2002. package/_types/errors/log.d.ts.map +1 -1
  2003. package/_types/errors/node.d.ts +37 -0
  2004. package/_types/errors/node.d.ts.map +1 -1
  2005. package/_types/errors/request.d.ts +12 -0
  2006. package/_types/errors/request.d.ts.map +1 -1
  2007. package/_types/errors/rpc.d.ts +81 -0
  2008. package/_types/errors/rpc.d.ts.map +1 -1
  2009. package/_types/errors/transaction.d.ts +30 -0
  2010. package/_types/errors/transaction.d.ts.map +1 -1
  2011. package/_types/errors/transport.d.ts +3 -0
  2012. package/_types/errors/transport.d.ts.map +1 -1
  2013. package/_types/errors/utils.d.ts +3 -0
  2014. package/_types/errors/utils.d.ts.map +1 -1
  2015. package/_types/errors/version.d.ts +1 -1
  2016. package/_types/errors/version.d.ts.map +1 -1
  2017. package/_types/index.d.ts +186 -194
  2018. package/_types/index.d.ts.map +1 -1
  2019. package/_types/types/block.d.ts +5 -0
  2020. package/_types/types/block.d.ts.map +1 -1
  2021. package/_types/types/chain.d.ts +19 -25
  2022. package/_types/types/chain.d.ts.map +1 -1
  2023. package/_types/types/contract.d.ts +7 -8
  2024. package/_types/types/contract.d.ts.map +1 -1
  2025. package/_types/types/eip1193.d.ts +24 -1
  2026. package/_types/types/eip1193.d.ts.map +1 -1
  2027. package/_types/types/misc.d.ts +4 -0
  2028. package/_types/types/misc.d.ts.map +1 -1
  2029. package/_types/types/proof.d.ts +18 -0
  2030. package/_types/types/proof.d.ts.map +1 -0
  2031. package/_types/types/rpc.d.ts +2 -0
  2032. package/_types/types/rpc.d.ts.map +1 -1
  2033. package/_types/types/transaction.d.ts +2 -2
  2034. package/_types/types/transaction.d.ts.map +1 -1
  2035. package/_types/types/utils.d.ts.map +1 -1
  2036. package/_types/types/withdrawal.d.ts +8 -0
  2037. package/_types/types/withdrawal.d.ts.map +1 -0
  2038. package/_types/utils/abi/decodeAbiParameters.d.ts +20 -0
  2039. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  2040. package/_types/utils/abi/decodeDeployData.d.ts +4 -0
  2041. package/_types/utils/abi/decodeDeployData.d.ts.map +1 -1
  2042. package/_types/utils/abi/decodeErrorResult.d.ts +6 -0
  2043. package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
  2044. package/_types/utils/abi/decodeEventLog.d.ts +8 -2
  2045. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  2046. package/_types/utils/abi/decodeFunctionData.d.ts +7 -0
  2047. package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -1
  2048. package/_types/utils/abi/decodeFunctionResult.d.ts +5 -0
  2049. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  2050. package/_types/utils/abi/encodeAbiParameters.d.ts +21 -0
  2051. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  2052. package/_types/utils/abi/encodeDeployData.d.ts +5 -0
  2053. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
  2054. package/_types/utils/abi/encodeErrorResult.d.ts +7 -0
  2055. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
  2056. package/_types/utils/abi/encodeEventTopics.d.ts +11 -0
  2057. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
  2058. package/_types/utils/abi/encodeFunctionData.d.ts +8 -0
  2059. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
  2060. package/_types/utils/abi/encodeFunctionResult.d.ts +5 -0
  2061. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
  2062. package/_types/utils/abi/encodePacked.d.ts +9 -0
  2063. package/_types/utils/abi/encodePacked.d.ts.map +1 -1
  2064. package/_types/utils/abi/formatAbiItem.d.ts +5 -0
  2065. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
  2066. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -0
  2067. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
  2068. package/_types/utils/abi/getAbiItem.d.ts +6 -0
  2069. package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
  2070. package/_types/utils/address/getAddress.d.ts +6 -0
  2071. package/_types/utils/address/getAddress.d.ts.map +1 -1
  2072. package/_types/utils/address/getContractAddress.d.ts +15 -0
  2073. package/_types/utils/address/getContractAddress.d.ts.map +1 -1
  2074. package/_types/utils/address/isAddress.d.ts +2 -0
  2075. package/_types/utils/address/isAddress.d.ts.map +1 -1
  2076. package/_types/utils/address/isAddressEqual.d.ts +4 -0
  2077. package/_types/utils/address/isAddressEqual.d.ts.map +1 -1
  2078. package/_types/utils/buildRequest.d.ts +8 -0
  2079. package/_types/utils/buildRequest.d.ts.map +1 -1
  2080. package/_types/utils/ccip.d.ts +3 -0
  2081. package/_types/utils/ccip.d.ts.map +1 -1
  2082. package/_types/utils/chain/assertCurrentChain.d.ts +10 -0
  2083. package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -0
  2084. package/_types/utils/chain/defineChain.d.ts +4 -0
  2085. package/_types/utils/chain/defineChain.d.ts.map +1 -0
  2086. package/_types/utils/chain/extractChain.d.ts +10 -0
  2087. package/_types/utils/chain/extractChain.d.ts.map +1 -0
  2088. package/_types/utils/chain/getChainContractAddress.d.ts +9 -0
  2089. package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -0
  2090. package/_types/utils/cursor.d.ts +37 -0
  2091. package/_types/utils/cursor.d.ts.map +1 -0
  2092. package/_types/utils/data/concat.d.ts +7 -3
  2093. package/_types/utils/data/concat.d.ts.map +1 -1
  2094. package/_types/utils/data/isBytes.d.ts +2 -0
  2095. package/_types/utils/data/isBytes.d.ts.map +1 -1
  2096. package/_types/utils/data/isBytesEqual.d.ts +4 -0
  2097. package/_types/utils/data/isBytesEqual.d.ts.map +1 -1
  2098. package/_types/utils/data/isHex.d.ts +2 -0
  2099. package/_types/utils/data/isHex.d.ts.map +1 -1
  2100. package/_types/utils/data/pad.d.ts +5 -0
  2101. package/_types/utils/data/pad.d.ts.map +1 -1
  2102. package/_types/utils/data/size.d.ts +3 -0
  2103. package/_types/utils/data/size.d.ts.map +1 -1
  2104. package/_types/utils/data/slice.d.ts +9 -0
  2105. package/_types/utils/data/slice.d.ts.map +1 -1
  2106. package/_types/utils/data/trim.d.ts +2 -0
  2107. package/_types/utils/data/trim.d.ts.map +1 -1
  2108. package/_types/utils/encoding/fromBytes.d.ts +13 -5
  2109. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  2110. package/_types/utils/encoding/fromHex.d.ts +11 -0
  2111. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  2112. package/_types/utils/encoding/fromRlp.d.ts +17 -2
  2113. package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
  2114. package/_types/utils/encoding/toBytes.d.ts +12 -3
  2115. package/_types/utils/encoding/toBytes.d.ts.map +1 -1
  2116. package/_types/utils/encoding/toHex.d.ts +9 -0
  2117. package/_types/utils/encoding/toHex.d.ts.map +1 -1
  2118. package/_types/utils/encoding/toRlp.d.ts +11 -3
  2119. package/_types/utils/encoding/toRlp.d.ts.map +1 -1
  2120. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +4 -0
  2121. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  2122. package/_types/utils/ens/avatar/utils.d.ts +11 -0
  2123. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  2124. package/_types/utils/ens/encodeLabelhash.d.ts +2 -0
  2125. package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -1
  2126. package/_types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
  2127. package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -1
  2128. package/_types/utils/ens/errors.d.ts +2 -0
  2129. package/_types/utils/ens/errors.d.ts.map +1 -1
  2130. package/_types/utils/ens/labelhash.d.ts +6 -0
  2131. package/_types/utils/ens/labelhash.d.ts.map +1 -1
  2132. package/_types/utils/ens/namehash.d.ts +7 -0
  2133. package/_types/utils/ens/namehash.d.ts.map +1 -1
  2134. package/_types/utils/ens/normalize.d.ts +2 -0
  2135. package/_types/utils/ens/normalize.d.ts.map +1 -1
  2136. package/_types/utils/ens/packetToBytes.d.ts +5 -0
  2137. package/_types/utils/ens/packetToBytes.d.ts.map +1 -1
  2138. package/_types/utils/errors/getCallError.d.ts +8 -4
  2139. package/_types/utils/errors/getCallError.d.ts.map +1 -1
  2140. package/_types/utils/errors/getContractError.d.ts +7 -4
  2141. package/_types/utils/errors/getContractError.d.ts.map +1 -1
  2142. package/_types/utils/errors/getEstimateGasError.d.ts +8 -4
  2143. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
  2144. package/_types/utils/errors/getNodeError.d.ts +3 -2
  2145. package/_types/utils/errors/getNodeError.d.ts.map +1 -1
  2146. package/_types/utils/errors/getTransactionError.d.ts +7 -3
  2147. package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
  2148. package/_types/utils/formatters/block.d.ts +5 -1
  2149. package/_types/utils/formatters/block.d.ts.map +1 -1
  2150. package/_types/utils/formatters/extract.d.ts +4 -2
  2151. package/_types/utils/formatters/extract.d.ts.map +1 -1
  2152. package/_types/utils/formatters/feeHistory.d.ts +2 -0
  2153. package/_types/utils/formatters/feeHistory.d.ts.map +1 -1
  2154. package/_types/utils/formatters/formatter.d.ts +3 -1
  2155. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  2156. package/_types/utils/formatters/log.d.ts +2 -0
  2157. package/_types/utils/formatters/log.d.ts.map +1 -1
  2158. package/_types/utils/formatters/proof.d.ts +6 -0
  2159. package/_types/utils/formatters/proof.d.ts.map +1 -0
  2160. package/_types/utils/formatters/transaction.d.ts +5 -1
  2161. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  2162. package/_types/utils/formatters/transactionReceipt.d.ts +5 -1
  2163. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  2164. package/_types/utils/formatters/transactionRequest.d.ts +5 -1
  2165. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  2166. package/_types/utils/getAction.d.ts +3 -0
  2167. package/_types/utils/getAction.d.ts.map +1 -0
  2168. package/_types/utils/hash/getEventSelector.d.ts +5 -2
  2169. package/_types/utils/hash/getEventSelector.d.ts.map +1 -1
  2170. package/_types/utils/hash/getEventSignature.d.ts +6 -0
  2171. package/_types/utils/hash/getEventSignature.d.ts.map +1 -0
  2172. package/_types/utils/hash/getFunctionSelector.d.ts +6 -0
  2173. package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -1
  2174. package/_types/utils/hash/getFunctionSignature.d.ts +6 -0
  2175. package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -0
  2176. package/_types/utils/hash/hashFunction.d.ts +7 -0
  2177. package/_types/utils/hash/hashFunction.d.ts.map +1 -1
  2178. package/_types/utils/hash/isHash.d.ts +4 -0
  2179. package/_types/utils/hash/isHash.d.ts.map +1 -1
  2180. package/_types/utils/hash/keccak256.d.ts +5 -0
  2181. package/_types/utils/hash/keccak256.d.ts.map +1 -1
  2182. package/_types/utils/hash/normalizeSignature.d.ts +6 -0
  2183. package/_types/utils/hash/normalizeSignature.d.ts.map +1 -0
  2184. package/_types/utils/index.d.ts +80 -81
  2185. package/_types/utils/index.d.ts.map +1 -1
  2186. package/_types/utils/observe.d.ts +2 -0
  2187. package/_types/utils/observe.d.ts.map +1 -1
  2188. package/_types/utils/poll.d.ts +2 -0
  2189. package/_types/utils/poll.d.ts.map +1 -1
  2190. package/_types/utils/promise/createBatchScheduler.d.ts +5 -1
  2191. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  2192. package/_types/utils/promise/withCache.d.ts +2 -0
  2193. package/_types/utils/promise/withCache.d.ts.map +1 -1
  2194. package/_types/utils/promise/withRetry.d.ts +2 -0
  2195. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  2196. package/_types/utils/promise/withTimeout.d.ts +3 -1
  2197. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  2198. package/_types/utils/rpc.d.ts +10 -3
  2199. package/_types/utils/rpc.d.ts.map +1 -1
  2200. package/_types/utils/signature/compactSignatureToHex.d.ts +19 -0
  2201. package/_types/utils/signature/compactSignatureToHex.d.ts.map +1 -0
  2202. package/_types/utils/signature/compactSignatureToSignature.d.ts +24 -0
  2203. package/_types/utils/signature/compactSignatureToSignature.d.ts.map +1 -0
  2204. package/_types/utils/signature/hashMessage.d.ts +5 -0
  2205. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  2206. package/_types/utils/signature/hashTypedData.d.ts +13 -0
  2207. package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
  2208. package/_types/utils/signature/hexToCompactSignature.d.ts +16 -0
  2209. package/_types/utils/signature/hexToCompactSignature.d.ts.map +1 -0
  2210. package/_types/utils/signature/hexToSignature.d.ts +3 -0
  2211. package/_types/utils/signature/hexToSignature.d.ts.map +1 -1
  2212. package/_types/utils/signature/recoverAddress.d.ts +2 -0
  2213. package/_types/utils/signature/recoverAddress.d.ts.map +1 -1
  2214. package/_types/utils/signature/recoverMessageAddress.d.ts +4 -0
  2215. package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -1
  2216. package/_types/utils/signature/recoverPublicKey.d.ts +4 -0
  2217. package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -1
  2218. package/_types/utils/signature/recoverTypedDataAddress.d.ts +4 -0
  2219. package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -1
  2220. package/_types/utils/signature/signatureToCompactSignature.d.ts +23 -0
  2221. package/_types/utils/signature/signatureToCompactSignature.d.ts.map +1 -0
  2222. package/_types/utils/signature/signatureToHex.d.ts +4 -0
  2223. package/_types/utils/signature/signatureToHex.d.ts.map +1 -1
  2224. package/_types/utils/signature/verifyMessage.d.ts +5 -0
  2225. package/_types/utils/signature/verifyMessage.d.ts.map +1 -1
  2226. package/_types/utils/signature/verifyTypedData.d.ts +5 -0
  2227. package/_types/utils/signature/verifyTypedData.d.ts.map +1 -1
  2228. package/_types/utils/stringify.d.ts +2 -0
  2229. package/_types/utils/stringify.d.ts.map +1 -1
  2230. package/_types/utils/transaction/assertRequest.d.ts +6 -0
  2231. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  2232. package/_types/utils/transaction/assertTransaction.d.ts +9 -0
  2233. package/_types/utils/transaction/assertTransaction.d.ts.map +1 -1
  2234. package/_types/utils/transaction/getSerializedTransactionType.d.ts +5 -0
  2235. package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -1
  2236. package/_types/utils/transaction/getTransactionType.d.ts +3 -0
  2237. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
  2238. package/_types/utils/transaction/parseTransaction.d.ts +19 -2
  2239. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
  2240. package/_types/utils/transaction/serializeAccessList.d.ts +5 -0
  2241. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
  2242. package/_types/utils/transaction/serializeTransaction.d.ts +13 -1
  2243. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  2244. package/_types/utils/typedData.d.ts +8 -0
  2245. package/_types/utils/typedData.d.ts.map +1 -1
  2246. package/_types/utils/unit/formatEther.d.ts +2 -0
  2247. package/_types/utils/unit/formatEther.d.ts.map +1 -1
  2248. package/_types/utils/unit/formatGwei.d.ts +2 -0
  2249. package/_types/utils/unit/formatGwei.d.ts.map +1 -1
  2250. package/_types/utils/unit/formatUnits.d.ts +2 -0
  2251. package/_types/utils/unit/formatUnits.d.ts.map +1 -1
  2252. package/_types/utils/unit/parseEther.d.ts +3 -0
  2253. package/_types/utils/unit/parseEther.d.ts.map +1 -1
  2254. package/_types/utils/unit/parseGwei.d.ts +3 -0
  2255. package/_types/utils/unit/parseGwei.d.ts.map +1 -1
  2256. package/_types/utils/unit/parseUnits.d.ts +2 -0
  2257. package/_types/utils/unit/parseUnits.d.ts.map +1 -1
  2258. package/accounts/generateMnemonic.ts +3 -0
  2259. package/accounts/generatePrivateKey.ts +4 -1
  2260. package/accounts/hdKeyToAccount.ts +11 -2
  2261. package/accounts/index.ts +46 -11
  2262. package/accounts/mnemonicToAccount.ts +7 -1
  2263. package/accounts/privateKeyToAccount.ts +25 -6
  2264. package/accounts/toAccount.ts +14 -2
  2265. package/accounts/utils/parseAccount.ts +3 -0
  2266. package/accounts/utils/privateKeyToAddress.ts +14 -2
  2267. package/accounts/utils/publicKeyToAddress.ts +14 -2
  2268. package/accounts/utils/sign.ts +5 -1
  2269. package/accounts/utils/signMessage.ts +17 -3
  2270. package/accounts/utils/signTransaction.ts +12 -2
  2271. package/accounts/utils/signTypedData.ts +16 -3
  2272. package/actions/ens/getEnsAddress.ts +36 -9
  2273. package/actions/ens/getEnsAvatar.ts +20 -3
  2274. package/actions/ens/getEnsName.ts +23 -4
  2275. package/actions/ens/getEnsResolver.ts +21 -4
  2276. package/actions/ens/getEnsText.ts +33 -7
  2277. package/actions/getContract.ts +258 -83
  2278. package/actions/index.ts +111 -14
  2279. package/actions/public/call.ts +65 -15
  2280. package/actions/public/createBlockFilter.ts +4 -0
  2281. package/actions/public/createContractEventFilter.ts +14 -2
  2282. package/actions/public/createEventFilter.ts +13 -1
  2283. package/actions/public/createPendingTransactionFilter.ts +6 -0
  2284. package/actions/public/estimateContractGas.ts +36 -6
  2285. package/actions/public/estimateFeesPerGas.ts +19 -4
  2286. package/actions/public/estimateGas.ts +25 -7
  2287. package/actions/public/estimateMaxPriorityFeePerGas.ts +27 -8
  2288. package/actions/public/getBalance.ts +11 -1
  2289. package/actions/public/getBlock.ts +16 -2
  2290. package/actions/public/getBlockNumber.ts +6 -4
  2291. package/actions/public/getBlockTransactionCount.ts +16 -2
  2292. package/actions/public/getBytecode.ts +11 -1
  2293. package/actions/public/getChainId.ts +11 -1
  2294. package/actions/public/getContractEvents.ts +169 -0
  2295. package/actions/public/getFeeHistory.ts +14 -2
  2296. package/actions/public/getFilterChanges.ts +16 -2
  2297. package/actions/public/getFilterLogs.ts +16 -2
  2298. package/actions/public/getGasPrice.ts +4 -0
  2299. package/actions/public/getLogs.ts +23 -3
  2300. package/actions/public/getProof.ts +93 -0
  2301. package/actions/public/getStorageAt.ts +11 -1
  2302. package/actions/public/getTransaction.ts +11 -1
  2303. package/actions/public/getTransactionConfirmations.ts +17 -4
  2304. package/actions/public/getTransactionCount.ts +16 -2
  2305. package/actions/public/getTransactionReceipt.ts +11 -1
  2306. package/actions/public/multicall.ts +32 -6
  2307. package/actions/public/readContract.ts +29 -6
  2308. package/actions/public/simulateContract.ts +68 -15
  2309. package/actions/public/uninstallFilter.ts +4 -0
  2310. package/actions/public/verifyHash.ts +23 -4
  2311. package/actions/public/verifyMessage.ts +13 -2
  2312. package/actions/public/verifyTypedData.ts +16 -3
  2313. package/actions/public/waitForTransactionReceipt.ts +36 -9
  2314. package/actions/public/watchBlockNumber.ts +9 -2
  2315. package/actions/public/watchBlocks.ts +18 -5
  2316. package/actions/public/watchContractEvent.ts +35 -23
  2317. package/actions/public/watchEvent.ts +20 -7
  2318. package/actions/public/watchPendingTransactions.ts +15 -5
  2319. package/actions/test/dropTransaction.ts +4 -0
  2320. package/actions/test/getAutomine.ts +4 -0
  2321. package/actions/test/getTxpoolContent.ts +4 -0
  2322. package/actions/test/getTxpoolStatus.ts +4 -0
  2323. package/actions/test/impersonateAccount.ts +4 -0
  2324. package/actions/test/increaseTime.ts +4 -0
  2325. package/actions/test/inspectTxpool.ts +4 -0
  2326. package/actions/test/mine.ts +4 -0
  2327. package/actions/test/removeBlockTimestampInterval.ts +4 -0
  2328. package/actions/test/reset.ts +4 -0
  2329. package/actions/test/revert.ts +4 -0
  2330. package/actions/test/sendUnsignedTransaction.ts +8 -4
  2331. package/actions/test/setAutomine.ts +4 -0
  2332. package/actions/test/setBalance.ts +4 -0
  2333. package/actions/test/setBlockGasLimit.ts +4 -0
  2334. package/actions/test/setBlockTimestampInterval.ts +10 -1
  2335. package/actions/test/setCode.ts +4 -0
  2336. package/actions/test/setCoinbase.ts +4 -0
  2337. package/actions/test/setIntervalMining.ts +10 -1
  2338. package/actions/test/setLoggingEnabled.ts +4 -0
  2339. package/actions/test/setMinGasPrice.ts +4 -0
  2340. package/actions/test/setNextBlockBaseFeePerGas.ts +4 -0
  2341. package/actions/test/setNextBlockTimestamp.ts +4 -0
  2342. package/actions/test/setNonce.ts +4 -0
  2343. package/actions/test/setRpcUrl.ts +4 -0
  2344. package/actions/test/setStorageAt.ts +4 -0
  2345. package/actions/test/snapshot.ts +4 -0
  2346. package/actions/test/stopImpersonatingAccount.ts +4 -0
  2347. package/actions/wallet/addChain.ts +11 -1
  2348. package/actions/wallet/deployContract.ts +4 -0
  2349. package/actions/wallet/getAddresses.ts +12 -1
  2350. package/actions/wallet/getPermissions.ts +4 -0
  2351. package/actions/wallet/prepareTransactionRequest.ts +45 -10
  2352. package/actions/wallet/requestAddresses.ts +4 -0
  2353. package/actions/wallet/requestPermissions.ts +4 -0
  2354. package/actions/wallet/sendRawTransaction.ts +5 -1
  2355. package/actions/wallet/sendTransaction.ts +54 -14
  2356. package/actions/wallet/signMessage.ts +19 -2
  2357. package/actions/wallet/signTransaction.ts +31 -7
  2358. package/actions/wallet/signTypedData.ts +26 -4
  2359. package/actions/wallet/switchChain.ts +11 -1
  2360. package/actions/wallet/watchAsset.ts +3 -0
  2361. package/actions/wallet/writeContract.ts +19 -13
  2362. package/chains/celo/formatters.ts +35 -14
  2363. package/chains/celo/parsers.ts +82 -1
  2364. package/chains/celo/serializers.ts +109 -33
  2365. package/chains/celo/types.ts +82 -15
  2366. package/chains/celo/utils.ts +68 -0
  2367. package/chains/definitions/arbitrum.ts +1 -14
  2368. package/chains/definitions/arbitrumGoerli.ts +3 -15
  2369. package/chains/definitions/arbitrumNova.ts +1 -14
  2370. package/chains/definitions/arbitrumSepolia.ts +29 -0
  2371. package/chains/definitions/astar.ts +26 -0
  2372. package/chains/definitions/astarZkatana.ts +39 -0
  2373. package/chains/definitions/aurora.ts +1 -5
  2374. package/chains/definitions/auroraTestnet.ts +1 -5
  2375. package/chains/definitions/avalanche.ts +1 -4
  2376. package/chains/definitions/avalancheFuji.ts +1 -4
  2377. package/chains/definitions/base.ts +20 -40
  2378. package/chains/definitions/baseGoerli.ts +21 -39
  2379. package/chains/definitions/baseSepolia.ts +30 -0
  2380. package/chains/definitions/bearNetworkChainMainnet.ts +1 -3
  2381. package/chains/definitions/bearNetworkChainTestnet.ts +1 -3
  2382. package/chains/definitions/boba.ts +1 -4
  2383. package/chains/definitions/bronos.ts +1 -3
  2384. package/chains/definitions/bronosTestnet.ts +1 -3
  2385. package/chains/definitions/bsc.ts +1 -4
  2386. package/chains/definitions/bscTestnet.ts +1 -4
  2387. package/chains/definitions/bxn.ts +1 -5
  2388. package/chains/definitions/bxnTestnet.ts +1 -5
  2389. package/chains/definitions/canto.ts +1 -3
  2390. package/chains/definitions/celo.ts +25 -37
  2391. package/chains/definitions/celoAlfajores.ts +26 -38
  2392. package/chains/definitions/celoCannoli.ts +26 -34
  2393. package/chains/definitions/classic.ts +1 -3
  2394. package/chains/definitions/confluxESpace.ts +1 -5
  2395. package/chains/definitions/coreDao.ts +24 -0
  2396. package/chains/definitions/cronos.ts +1 -3
  2397. package/chains/definitions/cronosTestnet.ts +1 -3
  2398. package/chains/definitions/crossbell.ts +1 -5
  2399. package/chains/definitions/dfk.ts +1 -9
  2400. package/chains/definitions/dogechain.ts +1 -7
  2401. package/chains/definitions/edgeware.ts +1 -4
  2402. package/chains/definitions/edgewareTestnet.ts +1 -7
  2403. package/chains/definitions/ekta.ts +1 -3
  2404. package/chains/definitions/ektaTestnet.ts +1 -3
  2405. package/chains/definitions/eon.ts +1 -3
  2406. package/chains/definitions/eos.ts +1 -7
  2407. package/chains/definitions/eosTestnet.ts +1 -7
  2408. package/chains/definitions/evmos.ts +1 -3
  2409. package/chains/definitions/evmosTestnet.ts +1 -3
  2410. package/chains/definitions/fantom.ts +1 -4
  2411. package/chains/definitions/fantomTestnet.ts +1 -4
  2412. package/chains/definitions/fibo.ts +1 -3
  2413. package/chains/definitions/filecoin.ts +1 -6
  2414. package/chains/definitions/filecoinCalibration.ts +1 -3
  2415. package/chains/definitions/filecoinHyperspace.ts +1 -4
  2416. package/chains/definitions/flare.ts +1 -3
  2417. package/chains/definitions/flareTestnet.ts +1 -3
  2418. package/chains/definitions/foundry.ts +1 -6
  2419. package/chains/definitions/fuse.ts +7 -3
  2420. package/chains/definitions/fuseSparknet.ts +1 -3
  2421. package/chains/definitions/gnosis.ts +5 -8
  2422. package/chains/definitions/gnosisChiado.ts +11 -4
  2423. package/chains/definitions/gobi.ts +1 -3
  2424. package/chains/definitions/goerli.ts +1 -17
  2425. package/chains/definitions/haqqMainnet.ts +1 -5
  2426. package/chains/definitions/haqqTestedge2.ts +1 -5
  2427. package/chains/definitions/hardhat.ts +1 -3
  2428. package/chains/definitions/harmonyOne.ts +1 -3
  2429. package/chains/definitions/holesky.ts +7 -6
  2430. package/chains/definitions/iotex.ts +1 -6
  2431. package/chains/definitions/iotexTestnet.ts +1 -6
  2432. package/chains/definitions/kava.ts +26 -0
  2433. package/chains/definitions/kavaTestnet.ts +29 -0
  2434. package/chains/definitions/klaytn.ts +1 -4
  2435. package/chains/definitions/kroma.ts +1 -5
  2436. package/chains/definitions/kromaSepolia.ts +1 -5
  2437. package/chains/definitions/linea.ts +1 -18
  2438. package/chains/definitions/lineaTestnet.ts +1 -18
  2439. package/chains/definitions/localhost.ts +1 -3
  2440. package/chains/definitions/mainnet.ts +3 -19
  2441. package/chains/definitions/manta.ts +32 -0
  2442. package/chains/definitions/mantaTestnet.ts +33 -0
  2443. package/chains/definitions/mantle.ts +1 -7
  2444. package/chains/definitions/mantleTestnet.ts +1 -7
  2445. package/chains/definitions/meter.ts +1 -3
  2446. package/chains/definitions/meterTestnet.ts +1 -3
  2447. package/chains/definitions/metis.ts +1 -3
  2448. package/chains/definitions/metisGoerli.ts +1 -3
  2449. package/chains/definitions/mev.ts +1 -5
  2450. package/chains/definitions/mevTestnet.ts +1 -5
  2451. package/chains/definitions/modeTestnet.ts +7 -5
  2452. package/chains/definitions/moonbaseAlpha.ts +1 -10
  2453. package/chains/definitions/moonbeam.ts +1 -10
  2454. package/chains/definitions/moonbeamDev.ts +17 -0
  2455. package/chains/definitions/moonriver.ts +1 -10
  2456. package/chains/definitions/neonDevnet.ts +2 -6
  2457. package/chains/definitions/neonMainnet.ts +24 -0
  2458. package/chains/definitions/nexi.ts +1 -9
  2459. package/chains/definitions/nexilix.ts +1 -4
  2460. package/chains/definitions/oasys.ts +1 -5
  2461. package/chains/definitions/okc.ts +1 -3
  2462. package/chains/definitions/opBNB.ts +1 -4
  2463. package/chains/definitions/opBNBTestnet.ts +1 -3
  2464. package/chains/definitions/optimism.ts +20 -40
  2465. package/chains/definitions/optimismGoerli.ts +21 -41
  2466. package/chains/definitions/optimismSepolia.ts +27 -0
  2467. package/chains/definitions/plinga.ts +1 -5
  2468. package/chains/definitions/polygon.ts +1 -17
  2469. package/chains/definitions/polygonMumbai.ts +1 -17
  2470. package/chains/definitions/polygonZkEvm.ts +1 -5
  2471. package/chains/definitions/polygonZkEvmTestnet.ts +1 -9
  2472. package/chains/definitions/pulsechain.ts +1 -6
  2473. package/chains/definitions/pulsechainV4.ts +1 -6
  2474. package/chains/definitions/qMainnet.ts +1 -3
  2475. package/chains/definitions/qTestnet.ts +1 -3
  2476. package/chains/definitions/rollux.ts +1 -3
  2477. package/chains/definitions/rolluxTestnet.ts +1 -3
  2478. package/chains/definitions/ronin.ts +1 -5
  2479. package/chains/definitions/saigon.ts +1 -5
  2480. package/chains/definitions/scroll.ts +26 -0
  2481. package/chains/definitions/scrollSepolia.ts +1 -7
  2482. package/chains/definitions/scrollTestnet.ts +1 -6
  2483. package/chains/definitions/sepolia.ts +2 -18
  2484. package/chains/definitions/shardeumSphinx.ts +1 -5
  2485. package/chains/definitions/skale/brawl.ts +1 -10
  2486. package/chains/definitions/skale/calypso.ts +1 -12
  2487. package/chains/definitions/skale/calypsoTestnet.ts +1 -14
  2488. package/chains/definitions/skale/chaosTestnet.ts +1 -14
  2489. package/chains/definitions/skale/cryptoBlades.ts +1 -12
  2490. package/chains/definitions/skale/cryptoColosseum.ts +1 -10
  2491. package/chains/definitions/skale/europa.ts +1 -10
  2492. package/chains/definitions/skale/europaTestnet.ts +1 -12
  2493. package/chains/definitions/skale/exorde.ts +1 -10
  2494. package/chains/definitions/skale/humanProtocol.ts +1 -10
  2495. package/chains/definitions/skale/nebula.ts +1 -10
  2496. package/chains/definitions/skale/nebulaTestnet.ts +1 -12
  2497. package/chains/definitions/skale/razor.ts +1 -10
  2498. package/chains/definitions/skale/titan.ts +1 -10
  2499. package/chains/definitions/skale/titanTestnet.ts +1 -14
  2500. package/chains/definitions/songbird.ts +1 -3
  2501. package/chains/definitions/songbirdTestnet.ts +1 -3
  2502. package/chains/definitions/syscoin.ts +1 -6
  2503. package/chains/definitions/syscoinTestnet.ts +1 -6
  2504. package/chains/definitions/taikoJolnir.ts +1 -5
  2505. package/chains/definitions/taikoTestnetSepolia.ts +1 -5
  2506. package/chains/definitions/taraxa.ts +1 -5
  2507. package/chains/definitions/taraxaTestnet.ts +1 -5
  2508. package/chains/definitions/telos.ts +1 -3
  2509. package/chains/definitions/telosTestnet.ts +1 -3
  2510. package/chains/definitions/tenet.ts +20 -0
  2511. package/chains/definitions/thunderTestnet.ts +1 -5
  2512. package/chains/definitions/vechain.ts +1 -5
  2513. package/chains/definitions/wanchain.ts +1 -12
  2514. package/chains/definitions/wanchainTestnet.ts +1 -9
  2515. package/chains/definitions/xdc.ts +1 -3
  2516. package/chains/definitions/xdcTestnet.ts +1 -3
  2517. package/chains/definitions/zetachainAthensTestnet.ts +1 -5
  2518. package/chains/definitions/zhejiang.ts +1 -13
  2519. package/chains/definitions/zkSync.ts +5 -5
  2520. package/chains/definitions/zkSyncTestnet.ts +5 -5
  2521. package/chains/definitions/zora.ts +23 -32
  2522. package/chains/definitions/zoraSepolia.ts +37 -0
  2523. package/chains/definitions/zoraTestnet.ts +26 -35
  2524. package/chains/index.ts +16 -1
  2525. package/chains/utils.ts +54 -0
  2526. package/chains/zksync/formatters.ts +146 -0
  2527. package/chains/zksync/serializers.ts +124 -0
  2528. package/chains/zksync/types.ts +317 -0
  2529. package/clients/createClient.ts +43 -2
  2530. package/clients/createPublicClient.ts +9 -1
  2531. package/clients/createTestClient.ts +9 -1
  2532. package/clients/createWalletClient.ts +9 -1
  2533. package/clients/decorators/public.ts +100 -7
  2534. package/clients/decorators/wallet.ts +2 -2
  2535. package/clients/transports/createTransport.ts +3 -0
  2536. package/clients/transports/custom.ts +4 -0
  2537. package/clients/transports/fallback.ts +4 -0
  2538. package/clients/transports/http.ts +14 -1
  2539. package/clients/transports/webSocket.ts +11 -3
  2540. package/ens/index.ts +8 -3
  2541. package/errors/abi.ts +87 -0
  2542. package/errors/account.ts +3 -0
  2543. package/errors/address.ts +3 -0
  2544. package/errors/base.ts +1 -0
  2545. package/errors/block.ts +3 -0
  2546. package/errors/ccip.ts +11 -0
  2547. package/errors/chain.ts +17 -0
  2548. package/errors/contract.ts +19 -1
  2549. package/errors/cursor.ts +23 -0
  2550. package/errors/data.ts +6 -0
  2551. package/errors/encoding.ts +14 -30
  2552. package/errors/ens.ts +14 -0
  2553. package/errors/estimateGas.ts +4 -1
  2554. package/errors/fee.ts +9 -0
  2555. package/errors/log.ts +3 -0
  2556. package/errors/node.ts +38 -1
  2557. package/errors/request.ts +12 -0
  2558. package/errors/rpc.ts +81 -0
  2559. package/errors/transaction.ts +36 -1
  2560. package/errors/transport.ts +3 -0
  2561. package/errors/utils.ts +2 -0
  2562. package/errors/version.ts +1 -1
  2563. package/index.ts +573 -100
  2564. package/package.json +38 -45
  2565. package/types/block.ts +5 -0
  2566. package/types/chain.ts +25 -35
  2567. package/types/contract.ts +9 -27
  2568. package/types/eip1193.ts +24 -0
  2569. package/types/misc.ts +4 -3
  2570. package/types/proof.ts +20 -0
  2571. package/types/rpc.ts +2 -0
  2572. package/types/transaction.ts +2 -2
  2573. package/types/utils.ts +1 -1
  2574. package/types/withdrawal.ts +8 -0
  2575. package/utils/abi/decodeAbiParameters.ts +70 -5
  2576. package/utils/abi/decodeDeployData.ts +13 -1
  2577. package/utils/abi/decodeErrorResult.ts +21 -5
  2578. package/utils/abi/decodeEventLog.ts +37 -16
  2579. package/utils/abi/decodeFunctionData.ts +19 -5
  2580. package/utils/abi/decodeFunctionResult.ts +15 -2
  2581. package/utils/abi/encodeAbiParameters.ts +87 -7
  2582. package/utils/abi/encodeDeployData.ts +13 -3
  2583. package/utils/abi/encodeErrorResult.ts +20 -5
  2584. package/utils/abi/encodeEventTopics.ts +36 -9
  2585. package/utils/abi/encodeFunctionData.ts +25 -6
  2586. package/utils/abi/encodeFunctionResult.ts +13 -2
  2587. package/utils/abi/encodePacked.ts +35 -5
  2588. package/utils/abi/formatAbiItem.ts +14 -1
  2589. package/utils/abi/formatAbiItemWithArgs.ts +3 -0
  2590. package/utils/abi/getAbiItem.ts +16 -4
  2591. package/utils/address/getAddress.ts +16 -3
  2592. package/utils/address/getContractAddress.ts +49 -22
  2593. package/utils/address/isAddress.ts +3 -0
  2594. package/utils/address/isAddressEqual.ts +8 -2
  2595. package/utils/buildRequest.ts +62 -2
  2596. package/utils/ccip.ts +6 -1
  2597. package/utils/chain/assertCurrentChain.ts +27 -0
  2598. package/utils/chain/defineChain.ts +14 -0
  2599. package/utils/chain/extractChain.ts +33 -0
  2600. package/utils/chain/getChainContractAddress.ts +41 -0
  2601. package/utils/cursor.ts +182 -0
  2602. package/utils/data/concat.ts +15 -5
  2603. package/utils/data/isBytes.ts +3 -0
  2604. package/utils/data/isBytesEqual.ts +8 -2
  2605. package/utils/data/isHex.ts +3 -0
  2606. package/utils/data/pad.ts +11 -1
  2607. package/utils/data/size.ts +4 -1
  2608. package/utils/data/slice.ts +33 -3
  2609. package/utils/data/trim.ts +3 -0
  2610. package/utils/encoding/fromBytes.ts +44 -8
  2611. package/utils/encoding/fromHex.ts +35 -3
  2612. package/utils/encoding/fromRlp.ts +96 -97
  2613. package/utils/encoding/toBytes.ts +67 -14
  2614. package/utils/encoding/toHex.ts +28 -6
  2615. package/utils/encoding/toRlp.ts +114 -30
  2616. package/utils/ens/avatar/parseAvatarRecord.ts +21 -0
  2617. package/utils/ens/avatar/utils.ts +41 -1
  2618. package/utils/ens/encodeLabelhash.ts +3 -0
  2619. package/utils/ens/encodedLabelToLabelhash.ts +4 -1
  2620. package/utils/ens/errors.ts +3 -0
  2621. package/utils/ens/labelhash.ts +18 -4
  2622. package/utils/ens/namehash.ts +23 -5
  2623. package/utils/ens/normalize.ts +3 -0
  2624. package/utils/ens/packetToBytes.ts +16 -3
  2625. package/utils/errors/getCallError.ts +29 -8
  2626. package/utils/errors/getContractError.ts +35 -19
  2627. package/utils/errors/getEstimateGasError.ts +27 -8
  2628. package/utils/errors/getNodeError.ts +49 -17
  2629. package/utils/errors/getTransactionError.ts +27 -8
  2630. package/utils/formatters/block.ts +6 -1
  2631. package/utils/formatters/extract.ts +23 -9
  2632. package/utils/formatters/feeHistory.ts +3 -0
  2633. package/utils/formatters/formatter.ts +4 -1
  2634. package/utils/formatters/log.ts +3 -0
  2635. package/utils/formatters/proof.ts +24 -0
  2636. package/utils/formatters/transaction.ts +6 -1
  2637. package/utils/formatters/transactionReceipt.ts +8 -1
  2638. package/utils/formatters/transactionRequest.ts +8 -1
  2639. package/utils/getAction.ts +13 -0
  2640. package/utils/hash/getEventSelector.ts +13 -6
  2641. package/utils/hash/getEventSignature.ts +15 -0
  2642. package/utils/hash/getFunctionSelector.ts +19 -6
  2643. package/utils/hash/getFunctionSignature.ts +19 -0
  2644. package/utils/hash/hashFunction.ts +23 -9
  2645. package/utils/hash/isHash.ts +5 -2
  2646. package/utils/hash/keccak256.ts +10 -3
  2647. package/utils/hash/normalizeSignature.ts +64 -0
  2648. package/utils/index.ts +246 -56
  2649. package/utils/observe.ts +3 -0
  2650. package/utils/poll.ts +3 -0
  2651. package/utils/promise/createBatchScheduler.ts +13 -0
  2652. package/utils/promise/withCache.ts +4 -0
  2653. package/utils/promise/withRetry.ts +3 -0
  2654. package/utils/promise/withTimeout.ts +6 -2
  2655. package/utils/rpc.ts +31 -10
  2656. package/utils/signature/compactSignatureToHex.ts +29 -0
  2657. package/utils/signature/compactSignatureToSignature.ts +37 -0
  2658. package/utils/signature/hashMessage.ts +16 -3
  2659. package/utils/signature/hashTypedData.ts +46 -4
  2660. package/utils/signature/hexToCompactSignature.ts +28 -0
  2661. package/utils/signature/hexToSignature.ts +7 -1
  2662. package/utils/signature/recoverAddress.ts +4 -0
  2663. package/utils/signature/recoverMessageAddress.ts +12 -2
  2664. package/utils/signature/recoverPublicKey.ts +9 -2
  2665. package/utils/signature/recoverTypedDataAddress.ts +12 -2
  2666. package/utils/signature/signatureToCompactSignature.ts +44 -0
  2667. package/utils/signature/signatureToHex.ts +11 -2
  2668. package/utils/signature/verifyMessage.ts +16 -3
  2669. package/utils/signature/verifyTypedData.ts +12 -2
  2670. package/utils/stringify.ts +4 -0
  2671. package/utils/transaction/assertRequest.ts +27 -4
  2672. package/utils/transaction/assertTransaction.ts +42 -5
  2673. package/utils/transaction/getSerializedTransactionType.ts +13 -3
  2674. package/utils/transaction/getTransactionType.ts +9 -1
  2675. package/utils/transaction/parseTransaction.ts +71 -6
  2676. package/utils/transaction/serializeAccessList.ts +16 -3
  2677. package/utils/transaction/serializeTransaction.ts +65 -9
  2678. package/utils/typedData.ts +22 -4
  2679. package/utils/unit/formatEther.ts +3 -1
  2680. package/utils/unit/formatGwei.ts +3 -1
  2681. package/utils/unit/formatUnits.ts +4 -0
  2682. package/utils/unit/parseEther.ts +4 -1
  2683. package/utils/unit/parseGwei.ts +4 -1
  2684. package/utils/unit/parseUnits.ts +4 -0
  2685. package/_cjs/abi/index.js +0 -17
  2686. package/_cjs/abi/index.js.map +0 -1
  2687. package/_cjs/contract/index.js +0 -52
  2688. package/_cjs/contract/index.js.map +0 -1
  2689. package/_cjs/public/index.js +0 -61
  2690. package/_cjs/public/index.js.map +0 -1
  2691. package/_cjs/test/index.js +0 -60
  2692. package/_cjs/test/index.js.map +0 -1
  2693. package/_cjs/utils/chain.js.map +0 -1
  2694. package/_cjs/utils/contract/extractFunctionParts.js +0 -31
  2695. package/_cjs/utils/contract/extractFunctionParts.js.map +0 -1
  2696. package/_cjs/wallet/index.js +0 -24
  2697. package/_cjs/wallet/index.js.map +0 -1
  2698. package/_esm/abi/index.js +0 -7
  2699. package/_esm/abi/index.js.map +0 -1
  2700. package/_esm/contract/index.js +0 -26
  2701. package/_esm/contract/index.js.map +0 -1
  2702. package/_esm/public/index.js +0 -30
  2703. package/_esm/public/index.js.map +0 -1
  2704. package/_esm/test/index.js +0 -30
  2705. package/_esm/test/index.js.map +0 -1
  2706. package/_esm/utils/chain.js +0 -37
  2707. package/_esm/utils/chain.js.map +0 -1
  2708. package/_esm/utils/contract/extractFunctionParts.js +0 -24
  2709. package/_esm/utils/contract/extractFunctionParts.js.map +0 -1
  2710. package/_esm/wallet/index.js +0 -12
  2711. package/_esm/wallet/index.js.map +0 -1
  2712. package/_types/abi/index.d.ts +0 -6
  2713. package/_types/abi/index.d.ts.map +0 -1
  2714. package/_types/contract/index.d.ts +0 -30
  2715. package/_types/contract/index.d.ts.map +0 -1
  2716. package/_types/public/index.d.ts +0 -33
  2717. package/_types/public/index.d.ts.map +0 -1
  2718. package/_types/test/index.d.ts +0 -29
  2719. package/_types/test/index.d.ts.map +0 -1
  2720. package/_types/utils/chain.d.ts +0 -14
  2721. package/_types/utils/chain.d.ts.map +0 -1
  2722. package/_types/utils/contract/extractFunctionParts.d.ts +0 -13
  2723. package/_types/utils/contract/extractFunctionParts.d.ts.map +0 -1
  2724. package/_types/wallet/index.d.ts +0 -11
  2725. package/_types/wallet/index.d.ts.map +0 -1
  2726. package/abi/index.ts +0 -25
  2727. package/abi/package.json +0 -6
  2728. package/actions/wallet/__snapshots__/deployContract.test.ts.snap +0 -21
  2729. package/contract/index.ts +0 -112
  2730. package/contract/package.json +0 -6
  2731. package/public/index.ts +0 -141
  2732. package/public/package.json +0 -6
  2733. package/test/index.ts +0 -85
  2734. package/test/package.json +0 -6
  2735. package/utils/chain.ts +0 -79
  2736. package/utils/contract/extractFunctionParts.ts +0 -27
  2737. package/wallet/index.ts +0 -46
  2738. package/wallet/package.json +0 -6
@@ -2,11 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getFunctionSelector = void 0;
4
4
  const slice_js_1 = require("../data/slice.js");
5
- const hashFunction_js_1 = require("./hashFunction.js");
6
- const getFunctionSelector = (fn) => {
7
- if (typeof fn === 'string')
8
- return (0, slice_js_1.slice)((0, hashFunction_js_1.hashFunction)(fn), 0, 4);
9
- return (0, slice_js_1.slice)((0, hashFunction_js_1.hashAbiItem)(fn), 0, 4);
10
- };
5
+ const toBytes_js_1 = require("../encoding/toBytes.js");
6
+ const getFunctionSignature_js_1 = require("./getFunctionSignature.js");
7
+ const keccak256_js_1 = require("./keccak256.js");
8
+ const hash = (value) => (0, keccak256_js_1.keccak256)((0, toBytes_js_1.toBytes)(value));
9
+ const getFunctionSelector = (fn) => (0, slice_js_1.slice)(hash((0, getFunctionSignature_js_1.getFunctionSignature)(fn)), 0, 4);
11
10
  exports.getFunctionSelector = getFunctionSelector;
12
11
  //# sourceMappingURL=getFunctionSelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFunctionSelector.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSelector.ts"],"names":[],"mappings":";;;AACA,+CAAwC;AAExC,uDAA6D;AAEtD,MAAM,mBAAmB,GAAG,CAAC,EAAwB,EAAE,EAAE;IAC9D,IAAI,OAAO,EAAE,KAAK,QAAQ;QAAE,OAAO,IAAA,gBAAK,EAAC,IAAA,8BAAY,EAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;IAChE,OAAO,IAAA,gBAAK,EAAC,IAAA,6BAAW,EAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AACrC,CAAC,CAAA;AAHY,QAAA,mBAAmB,uBAG/B"}
1
+ {"version":3,"file":"getFunctionSelector.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSelector.ts"],"names":[],"mappings":";;;AAGA,+CAA6D;AAC7D,uDAAuE;AACvE,uEAGkC;AAClC,iDAAmE;AAEnE,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,wBAAS,EAAC,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,CAAA;AASlD,MAAM,mBAAmB,GAAG,CAAC,EAAwB,EAAE,EAAE,CAC9D,IAAA,gBAAK,EAAC,IAAI,CAAC,IAAA,8CAAoB,EAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;AADhC,QAAA,mBAAmB,uBACa"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getFunctionSignature = void 0;
4
+ const abitype_1 = require("abitype");
5
+ const normalizeSignature_js_1 = require("./normalizeSignature.js");
6
+ const getFunctionSignature = (fn_) => {
7
+ const fn = (() => {
8
+ if (typeof fn_ === 'string')
9
+ return fn_;
10
+ return (0, abitype_1.formatAbiItem)(fn_);
11
+ })();
12
+ return (0, normalizeSignature_js_1.normalizeSignature)(fn);
13
+ };
14
+ exports.getFunctionSignature = getFunctionSignature;
15
+ //# sourceMappingURL=getFunctionSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getFunctionSignature.js","sourceRoot":"","sources":["../../../utils/hash/getFunctionSignature.ts"],"names":[],"mappings":";;;AAAA,qCAAyD;AAGzD,mEAGgC;AAMzB,MAAM,oBAAoB,GAAG,CAAC,GAAyB,EAAE,EAAE;IAChE,MAAM,EAAE,GAAG,CAAC,GAAG,EAAE;QACf,IAAI,OAAO,GAAG,KAAK,QAAQ;YAAE,OAAO,GAAG,CAAA;QACvC,OAAO,IAAA,uBAAa,EAAC,GAAG,CAAC,CAAA;IAC3B,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,IAAA,0CAAkB,EAAC,EAAE,CAAC,CAAA;AAC/B,CAAC,CAAA;AANY,QAAA,oBAAoB,wBAMhC"}
@@ -2,14 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.hashAbiItem = exports.hashFunction = void 0;
4
4
  const formatAbiItem_js_1 = require("../abi/formatAbiItem.js");
5
- const extractFunctionParts_js_1 = require("../contract/extractFunctionParts.js");
6
5
  const toBytes_js_1 = require("../encoding/toBytes.js");
6
+ const getFunctionSignature_js_1 = require("./getFunctionSignature.js");
7
7
  const keccak256_js_1 = require("./keccak256.js");
8
8
  const hash = (value) => (0, keccak256_js_1.keccak256)((0, toBytes_js_1.toBytes)(value));
9
9
  function hashFunction(def) {
10
- const name = (0, extractFunctionParts_js_1.extractFunctionName)(def);
11
- const params = (0, extractFunctionParts_js_1.extractFunctionParams)(def) || [];
12
- return hash(`${name}(${params.map(({ type }) => type).join(',')})`);
10
+ return hash((0, getFunctionSignature_js_1.getFunctionSignature)(def));
13
11
  }
14
12
  exports.hashFunction = hashFunction;
15
13
  function hashAbiItem(abiItem) {
@@ -1 +1 @@
1
- {"version":3,"file":"hashFunction.js","sourceRoot":"","sources":["../../../utils/hash/hashFunction.ts"],"names":[],"mappings":";;;AACA,8DAAuD;AACvD,iFAG4C;AAC5C,uDAAgD;AAEhD,iDAA0C;AAE1C,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,wBAAS,EAAC,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,CAAA;AAEzD,SAAgB,YAAY,CAAC,GAAW;IACtC,MAAM,IAAI,GAAG,IAAA,6CAAmB,EAAC,GAAG,CAAC,CAAA;IACrC,MAAM,MAAM,GAAG,IAAA,+CAAqB,EAAC,GAAG,CAAC,IAAI,EAAE,CAAA;IAC/C,OAAO,IAAI,CAAC,GAAG,IAAI,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;AACrE,CAAC;AAJD,oCAIC;AAED,SAAgB,WAAW,CAAC,OAA+B;IACzD,OAAO,IAAI,CAAC,IAAA,gCAAa,EAAC,OAAO,CAAC,CAAC,CAAA;AACrC,CAAC;AAFD,kCAEC"}
1
+ {"version":3,"file":"hashFunction.js","sourceRoot":"","sources":["../../../utils/hash/hashFunction.ts"],"names":[],"mappings":";;;AACA,8DAGgC;AAChC,uDAAuE;AAGvE,uEAGkC;AAClC,iDAAmE;AAEnE,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,IAAA,wBAAS,EAAC,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,CAAA;AAQzD,SAAgB,YAAY,CAAC,GAAW;IACtC,OAAO,IAAI,CAAC,IAAA,8CAAoB,EAAC,GAAG,CAAC,CAAC,CAAA;AACxC,CAAC;AAFD,oCAEC;AAQD,SAAgB,WAAW,CAAC,OAA+B;IACzD,OAAO,IAAI,CAAC,IAAA,gCAAa,EAAC,OAAO,CAAC,CAAC,CAAA;AACrC,CAAC;AAFD,kCAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"isHash.js","sourceRoot":"","sources":["../../../utils/hash/isHash.ts"],"names":[],"mappings":";;;AACA,+CAAwC;AACxC,6CAAsC;AAEtC,SAAgB,MAAM,CAAC,IAAY;IACjC,OAAO,IAAA,gBAAK,EAAC,IAAI,CAAC,IAAI,IAAA,cAAI,EAAC,IAAI,CAAC,KAAK,EAAE,CAAA;AACzC,CAAC;AAFD,wBAEC"}
1
+ {"version":3,"file":"isHash.js","sourceRoot":"","sources":["../../../utils/hash/isHash.ts"],"names":[],"mappings":";;;AAEA,+CAA6D;AAC7D,6CAA0D;AAI1D,SAAgB,MAAM,CAAC,IAAY;IACjC,OAAO,IAAA,gBAAK,EAAC,IAAI,CAAC,IAAI,IAAA,cAAI,EAAC,IAAI,CAAC,KAAK,EAAE,CAAA;AACzC,CAAC;AAFD,wBAEC"}
@@ -1 +1 @@
1
- {"version":3,"file":"keccak256.js","sourceRoot":"","sources":["../../../utils/hash/keccak256.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAG/C,+CAAwC;AACxC,uDAAgD;AAChD,mDAA4C;AAQ5C,SAAgB,SAAS,CACvB,KAAsB,EACtB,GAAS;IAET,MAAM,EAAE,GAAG,GAAG,IAAI,KAAK,CAAA;IACvB,MAAM,KAAK,GAAG,IAAA,iBAAU,EACtB,IAAA,gBAAK,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CACzD,CAAA;IACD,IAAI,EAAE,KAAK,OAAO;QAAE,OAAO,KAA2B,CAAA;IACtD,OAAO,IAAA,gBAAK,EAAC,KAAK,CAAuB,CAAA;AAC3C,CAAC;AAVD,8BAUC"}
1
+ {"version":3,"file":"keccak256.js","sourceRoot":"","sources":["../../../utils/hash/keccak256.ts"],"names":[],"mappings":";;;AAAA,6CAA+C;AAI/C,+CAA6D;AAC7D,uDAAuE;AACvE,mDAAiE;AAcjE,SAAgB,SAAS,CACvB,KAAsB,EACtB,GAAS;IAET,MAAM,EAAE,GAAG,GAAG,IAAI,KAAK,CAAA;IACvB,MAAM,KAAK,GAAG,IAAA,iBAAU,EACtB,IAAA,gBAAK,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CACzD,CAAA;IACD,IAAI,EAAE,KAAK,OAAO;QAAE,OAAO,KAA2B,CAAA;IACtD,OAAO,IAAA,gBAAK,EAAC,KAAK,CAAuB,CAAA;AAC3C,CAAC;AAVD,8BAUC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.normalizeSignature = void 0;
4
+ const base_js_1 = require("../../errors/base.js");
5
+ function normalizeSignature(signature) {
6
+ let active = true;
7
+ let current = '';
8
+ let level = 0;
9
+ let result = '';
10
+ let valid = false;
11
+ for (let i = 0; i < signature.length; i++) {
12
+ const char = signature[i];
13
+ if (['(', ')', ','].includes(char))
14
+ active = true;
15
+ if (char === '(')
16
+ level++;
17
+ if (char === ')')
18
+ level--;
19
+ if (!active)
20
+ continue;
21
+ if (level === 0) {
22
+ if (char === ' ' && ['event', 'function', ''].includes(result))
23
+ result = '';
24
+ else {
25
+ result += char;
26
+ if (char === ')') {
27
+ valid = true;
28
+ break;
29
+ }
30
+ }
31
+ continue;
32
+ }
33
+ if (char === ' ') {
34
+ if (signature[i - 1] !== ',' && current !== ',' && current !== ',(') {
35
+ current = '';
36
+ active = false;
37
+ }
38
+ continue;
39
+ }
40
+ result += char;
41
+ current += char;
42
+ }
43
+ if (!valid)
44
+ throw new base_js_1.BaseError('Unable to normalize signature.');
45
+ return result;
46
+ }
47
+ exports.normalizeSignature = normalizeSignature;
48
+ //# sourceMappingURL=normalizeSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeSignature.js","sourceRoot":"","sources":["../../../utils/hash/normalizeSignature.ts"],"names":[],"mappings":";;;AAAA,kDAAgD;AAOhD,SAAgB,kBAAkB,CAChC,SAAuC;IAEvC,IAAI,MAAM,GAAG,IAAI,CAAA;IACjB,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,KAAK,GAAG,KAAK,CAAA;IAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QAGzB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,MAAM,GAAG,IAAI,CAAA;QAGjD,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QACzB,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QAGzB,IAAI,CAAC,MAAM;YAAE,SAAQ;QAGrB,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC5D,MAAM,GAAG,EAAE,CAAA;iBACR;gBACH,MAAM,IAAI,IAAI,CAAA;gBAGd,IAAI,IAAI,KAAK,GAAG,EAAE;oBAChB,KAAK,GAAG,IAAI,CAAA;oBACZ,MAAK;iBACN;aACF;YAED,SAAQ;SACT;QAGD,IAAI,IAAI,KAAK,GAAG,EAAE;YAEhB,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,EAAE;gBACnE,OAAO,GAAG,EAAE,CAAA;gBACZ,MAAM,GAAG,KAAK,CAAA;aACf;YACD,SAAQ;SACT;QAED,MAAM,IAAI,IAAI,CAAA;QACd,OAAO,IAAI,IAAI,CAAA;KAChB;IAED,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,mBAAS,CAAC,gCAAgC,CAAC,CAAA;IAEjE,OAAO,MAAM,CAAA;AACf,CAAC;AAxDD,gDAwDC"}
@@ -1,19 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.concatHex = exports.concatBytes = exports.concat = exports.extractFunctionParts = exports.extractFunctionType = exports.extractFunctionParams = exports.extractFunctionName = exports.isAddressEqual = exports.isAddress = exports.getAddress = exports.getCreate2Address = exports.getCreateAddress = exports.getContractAddress = exports.publicKeyToAddress = exports.parseAccount = exports.formatAbiParams = exports.formatAbiItem = exports.formatAbiItemWithArgs = exports.encodePacked = exports.parseAbiParameters = exports.parseAbiParameter = exports.parseAbiItem = exports.parseAbi = exports.getAbiItem = exports.encodeFunctionResult = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = exports.decodeErrorResult = exports.decodeAbiParameters = exports.validateTypedData = exports.stringify = exports.rpc = exports.getSocket = exports.integerRegex = exports.bytesRegex = exports.arrayRegex = exports.getChainContractAddress = exports.defineChain = exports.assertCurrentChain = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.buildRequest = void 0;
4
- exports.getEventSelector = exports.defineFormatter = exports.getTransactionError = exports.getEstimateGasError = exports.getContractError = exports.getCallError = exports.getNodeError = exports.containsNodeError = exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBigInt = exports.hexToBool = exports.fromHex = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigint = exports.stringToHex = exports.numberToHex = exports.toHex = exports.bytesToHex = exports.boolToHex = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.toBytes = exports.boolToBytes = exports.toRlp = exports.extract = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.defineTransactionReceipt = exports.formatLog = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.formatBlock = exports.defineBlock = exports.trim = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.padHex = exports.padBytes = exports.pad = exports.isHex = exports.isBytes = void 0;
5
- exports.parseGwei = exports.parseEther = exports.parseUnits = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.serializeAccessList = exports.serializeTransaction = exports.prepareTransactionRequest = exports.parseTransaction = exports.assertTransactionLegacy = exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.getTransactionType = exports.getSerializedTransactionType = exports.hashMessage = exports.verifyTypedData = exports.verifyMessage = exports.recoverTypedDataAddress = exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.hashTypedData = exports.keccak256 = exports.isHash = exports.getFunctionSelector = void 0;
3
+ exports.isHex = exports.isBytes = exports.concatHex = exports.concatBytes = exports.concat = exports.isAddressEqual = exports.isAddress = exports.getAddress = exports.getCreate2Address = exports.getCreateAddress = exports.getContractAddress = exports.publicKeyToAddress = exports.parseAccount = exports.formatAbiParams = exports.formatAbiItem = exports.formatAbiItemWithArgs = exports.encodePacked = exports.parseAbiParameters = exports.parseAbiParameter = exports.parseAbiItem = exports.parseAbi = exports.getAbiItem = exports.encodeFunctionResult = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = exports.decodeErrorResult = exports.decodeAbiParameters = exports.validateTypedData = exports.stringify = exports.rpc = exports.getSocket = exports.integerRegex = exports.bytesRegex = exports.arrayRegex = exports.getChainContractAddress = exports.extractChain = exports.defineChain = exports.assertCurrentChain = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.buildRequest = exports.isDeterministicError = void 0;
4
+ exports.getFunctionSelector = exports.getEventSelector = exports.defineFormatter = exports.getTransactionError = exports.getEstimateGasError = exports.getContractError = exports.getCallError = exports.getNodeError = exports.containsNodeError = exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBigInt = exports.hexToBool = exports.fromHex = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigint = exports.bytesToBigInt = exports.stringToHex = exports.numberToHex = exports.toHex = exports.bytesToHex = exports.boolToHex = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.toBytes = exports.boolToBytes = exports.toRlp = exports.extract = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.defineTransactionReceipt = exports.formatLog = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.formatBlock = exports.defineBlock = exports.trim = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.padHex = exports.padBytes = exports.pad = void 0;
5
+ exports.parseGwei = exports.parseEther = exports.parseUnits = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.serializeAccessList = exports.serializeTransaction = exports.parseTransaction = exports.assertTransactionLegacy = exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.getTransactionType = exports.getSerializedTransactionType = exports.hashMessage = exports.verifyTypedData = exports.verifyMessage = exports.recoverTypedDataAddress = exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.hashTypedData = exports.keccak256 = exports.isHash = void 0;
6
6
  var buildRequest_js_1 = require("./buildRequest.js");
7
+ Object.defineProperty(exports, "isDeterministicError", { enumerable: true, get: function () { return buildRequest_js_1.isDeterministicError; } });
7
8
  Object.defineProperty(exports, "buildRequest", { enumerable: true, get: function () { return buildRequest_js_1.buildRequest; } });
8
9
  var ccip_js_1 = require("./ccip.js");
9
10
  Object.defineProperty(exports, "ccipFetch", { enumerable: true, get: function () { return ccip_js_1.ccipFetch; } });
10
11
  Object.defineProperty(exports, "offchainLookup", { enumerable: true, get: function () { return ccip_js_1.offchainLookup; } });
11
12
  Object.defineProperty(exports, "offchainLookupAbiItem", { enumerable: true, get: function () { return ccip_js_1.offchainLookupAbiItem; } });
12
13
  Object.defineProperty(exports, "offchainLookupSignature", { enumerable: true, get: function () { return ccip_js_1.offchainLookupSignature; } });
13
- var chain_js_1 = require("./chain.js");
14
- Object.defineProperty(exports, "assertCurrentChain", { enumerable: true, get: function () { return chain_js_1.assertCurrentChain; } });
15
- Object.defineProperty(exports, "defineChain", { enumerable: true, get: function () { return chain_js_1.defineChain; } });
16
- Object.defineProperty(exports, "getChainContractAddress", { enumerable: true, get: function () { return chain_js_1.getChainContractAddress; } });
14
+ var assertCurrentChain_js_1 = require("./chain/assertCurrentChain.js");
15
+ Object.defineProperty(exports, "assertCurrentChain", { enumerable: true, get: function () { return assertCurrentChain_js_1.assertCurrentChain; } });
16
+ var defineChain_js_1 = require("./chain/defineChain.js");
17
+ Object.defineProperty(exports, "defineChain", { enumerable: true, get: function () { return defineChain_js_1.defineChain; } });
18
+ var extractChain_js_1 = require("./chain/extractChain.js");
19
+ Object.defineProperty(exports, "extractChain", { enumerable: true, get: function () { return extractChain_js_1.extractChain; } });
20
+ var getChainContractAddress_js_1 = require("./chain/getChainContractAddress.js");
21
+ Object.defineProperty(exports, "getChainContractAddress", { enumerable: true, get: function () { return getChainContractAddress_js_1.getChainContractAddress; } });
17
22
  var regex_js_1 = require("./regex.js");
18
23
  Object.defineProperty(exports, "arrayRegex", { enumerable: true, get: function () { return regex_js_1.arrayRegex; } });
19
24
  Object.defineProperty(exports, "bytesRegex", { enumerable: true, get: function () { return regex_js_1.bytesRegex; } });
@@ -75,11 +80,6 @@ var isAddress_js_1 = require("./address/isAddress.js");
75
80
  Object.defineProperty(exports, "isAddress", { enumerable: true, get: function () { return isAddress_js_1.isAddress; } });
76
81
  var isAddressEqual_js_1 = require("./address/isAddressEqual.js");
77
82
  Object.defineProperty(exports, "isAddressEqual", { enumerable: true, get: function () { return isAddressEqual_js_1.isAddressEqual; } });
78
- var extractFunctionParts_js_1 = require("./contract/extractFunctionParts.js");
79
- Object.defineProperty(exports, "extractFunctionName", { enumerable: true, get: function () { return extractFunctionParts_js_1.extractFunctionName; } });
80
- Object.defineProperty(exports, "extractFunctionParams", { enumerable: true, get: function () { return extractFunctionParts_js_1.extractFunctionParams; } });
81
- Object.defineProperty(exports, "extractFunctionType", { enumerable: true, get: function () { return extractFunctionParts_js_1.extractFunctionType; } });
82
- Object.defineProperty(exports, "extractFunctionParts", { enumerable: true, get: function () { return extractFunctionParts_js_1.extractFunctionParts; } });
83
83
  var concat_js_1 = require("./data/concat.js");
84
84
  Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } });
85
85
  Object.defineProperty(exports, "concatBytes", { enumerable: true, get: function () { return concat_js_1.concatBytes; } });
@@ -131,7 +131,8 @@ Object.defineProperty(exports, "toHex", { enumerable: true, get: function () { r
131
131
  Object.defineProperty(exports, "numberToHex", { enumerable: true, get: function () { return toHex_js_1.numberToHex; } });
132
132
  Object.defineProperty(exports, "stringToHex", { enumerable: true, get: function () { return toHex_js_1.stringToHex; } });
133
133
  var fromBytes_js_1 = require("./encoding/fromBytes.js");
134
- Object.defineProperty(exports, "bytesToBigint", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBigint; } });
134
+ Object.defineProperty(exports, "bytesToBigInt", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBigInt; } });
135
+ Object.defineProperty(exports, "bytesToBigint", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBigInt; } });
135
136
  Object.defineProperty(exports, "bytesToBool", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBool; } });
136
137
  Object.defineProperty(exports, "bytesToNumber", { enumerable: true, get: function () { return fromBytes_js_1.bytesToNumber; } });
137
138
  Object.defineProperty(exports, "bytesToString", { enumerable: true, get: function () { return fromBytes_js_1.bytesToString; } });
@@ -193,8 +194,6 @@ Object.defineProperty(exports, "assertTransactionEIP2930", { enumerable: true, g
193
194
  Object.defineProperty(exports, "assertTransactionLegacy", { enumerable: true, get: function () { return assertTransaction_js_1.assertTransactionLegacy; } });
194
195
  var parseTransaction_js_1 = require("./transaction/parseTransaction.js");
195
196
  Object.defineProperty(exports, "parseTransaction", { enumerable: true, get: function () { return parseTransaction_js_1.parseTransaction; } });
196
- var prepareTransactionRequest_js_1 = require("../actions/wallet/prepareTransactionRequest.js");
197
- Object.defineProperty(exports, "prepareTransactionRequest", { enumerable: true, get: function () { return prepareTransactionRequest_js_1.prepareTransactionRequest; } });
198
197
  var serializeTransaction_js_1 = require("./transaction/serializeTransaction.js");
199
198
  Object.defineProperty(exports, "serializeTransaction", { enumerable: true, get: function () { return serializeTransaction_js_1.serializeTransaction; } });
200
199
  var serializeAccessList_js_1 = require("./transaction/serializeAccessList.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;;;AAAA,qDAAgD;AAAvC,+GAAA,YAAY,OAAA;AAErB,qCAKkB;AAJhB,oGAAA,SAAS,OAAA;AACT,yGAAA,cAAc,OAAA;AACd,gHAAA,qBAAqB,OAAA;AACrB,kHAAA,uBAAuB,OAAA;AAGzB,uCAKmB;AAHjB,8GAAA,kBAAkB,OAAA;AAClB,uGAAA,WAAW,OAAA;AACX,mHAAA,uBAAuB,OAAA;AAEzB,uCAAiE;AAAxD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AAU;QAAE,oBAAY,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAExE,OAAO,OAAO,CAAA;AAChB,CAAC;AA9CD,0BA8CC"}
@@ -1 +1 @@
1
- {"version":3,"file":"poll.js","sourceRoot":"","sources":["../../utils/poll.ts"],"names":[],"mappings":";;;AAAA,uCAAgC;AAchC,SAAgB,IAAI,CAClB,EAAiE,EACjE,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAsB;IAE9D,IAAI,MAAM,GAAG,IAAI,CAAA;IAEjB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAA;IAEtC,MAAM,KAAK,GAAG,KAAK,IAAI,EAAE;QACvB,IAAI,IAAI,GAAiB,SAAS,CAAA;QAClC,IAAI,WAAW;YAAE,IAAI,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;QAErD,MAAM,WAAW,GAAG,CAAC,MAAM,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,QAAQ,CAAA;QAC/D,MAAM,IAAA,cAAI,EAAC,WAAW,CAAC,CAAA;QAEvB,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;YACtB,IAAI,CAAC,MAAM;gBAAE,OAAM;YACnB,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;YAC7B,MAAM,IAAA,cAAI,EAAC,QAAQ,CAAC,CAAA;YACpB,IAAI,EAAE,CAAA;QACR,CAAC,CAAA;QAED,IAAI,EAAE,CAAA;IACR,CAAC,CAAA;IACD,KAAK,EAAE,CAAA;IAEP,OAAO,OAAO,CAAA;AAChB,CAAC;AA3BD,oBA2BC"}
1
+ {"version":3,"file":"poll.js","sourceRoot":"","sources":["../../utils/poll.ts"],"names":[],"mappings":";;;AACA,uCAAgC;AAgBhC,SAAgB,IAAI,CAClB,EAAiE,EACjE,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAsB;IAE9D,IAAI,MAAM,GAAG,IAAI,CAAA;IAEjB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAA;IAEtC,MAAM,KAAK,GAAG,KAAK,IAAI,EAAE;QACvB,IAAI,IAAI,GAAiB,SAAS,CAAA;QAClC,IAAI,WAAW;YAAE,IAAI,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;QAErD,MAAM,WAAW,GAAG,CAAC,MAAM,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,QAAQ,CAAA;QAC/D,MAAM,IAAA,cAAI,EAAC,WAAW,CAAC,CAAA;QAEvB,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;YACtB,IAAI,CAAC,MAAM;gBAAE,OAAM;YACnB,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;YAC7B,MAAM,IAAA,cAAI,EAAC,QAAQ,CAAC,CAAA;YACpB,IAAI,EAAE,CAAA;QACR,CAAC,CAAA;QAED,IAAI,EAAE,CAAA;IACR,CAAC,CAAA;IACD,KAAK,EAAE,CAAA;IAEP,OAAO,OAAO,CAAA;AAChB,CAAC;AA3BD,oBA2BC"}
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.createBatchScheduler = void 0;
4
4
  const schedulerCache = new Map();
5
- function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, }) {
5
+ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort, }) {
6
6
  const exec = async () => {
7
7
  const scheduler = getScheduler();
8
8
  flush();
@@ -11,6 +11,8 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, }) {
11
11
  return;
12
12
  fn(args)
13
13
  .then((data) => {
14
+ if (sort && Array.isArray(data))
15
+ data.sort(sort);
14
16
  scheduler.forEach(({ pendingPromise }, i) => pendingPromise.resolve?.([data[i], data]));
15
17
  })
16
18
  .catch((err) => {
@@ -1 +1 @@
1
- {"version":3,"file":"createBatchScheduler.js","sourceRoot":"","sources":["../../../utils/promise/createBatchScheduler.ts"],"names":[],"mappings":";;;AA+BA,MAAM,cAAc,GAAiB,IAAI,GAAG,EAAoC,CAAA;AAEhF,SAAgB,oBAAoB,CAGlC,EACA,EAAE,EACF,EAAE,EACF,gBAAgB,EAChB,IAAI,GAAG,CAAC,GAIT;IACC,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;QACtB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;QAChC,KAAK,EAAE,CAAA;QAEP,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;QAE9C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAM;QAE7B,EAAE,CAAC,IAAqB,CAAC;aACtB,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,EAAE,CAC1C,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAC1C,CAAA;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;QACzE,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;IAED,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAE7C,MAAM,cAAc,GAAG,GAAG,EAAE,CAC1B,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAA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AE,EAAE;QAC5C,MAAM,YAAY,GAAG,KAAK,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAChD,MAAM,KAAK,GAAG,KAAK,EAAE,EAAE,KAAK,EAAoB,EAAE,EAAE;gBAClD,MAAM,KAAK,GACT,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;gBAClE,IAAI,KAAK;oBAAE,MAAM,IAAA,cAAI,EAAC,KAAK,CAAC,CAAA;gBAC5B,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAA;YACpC,CAAC,CAAA;YAED,IAAI;gBACF,MAAM,IAAI,GAAG,MAAM,EAAE,EAAE,CAAA;gBACvB,OAAO,CAAC,IAAI,CAAC,CAAA;aACd;YAAC,OAAO,GAAG,EAAE;gBACZ,IACE,KAAK,GAAG,UAAU;oBAClB,CAAC,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAY,EAAE,CAAC,CAAC;oBAEnD,OAAO,KAAK,CAAC,EAAE,KAAK,EAAE,GAAY,EAAE,CAAC,CAAA;gBACvC,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;QACH,CAAC,CAAA;QACD,YAAY,EAAE,CAAA;IAChB,CAAC,CAAC,CAAA;AACJ,CAAC;AA5CD,8BA4CC"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.withTimeout = void 0;
4
- function withTimeout(fn, { errorInstance, timeout, signal, }) {
4
+ function withTimeout(fn, { errorInstance = new Error('timed out'), timeout, signal, }) {
5
5
  return new Promise((resolve, reject) => {
6
6
  ;
7
7
  (async () => {
@@ -1 +1 @@
1
- {"version":3,"file":"withTimeout.js","sourceRoot":"","sources":["../../../utils/promise/withTimeout.ts"],"names":[],"mappings":";;;AAAA,SAAgB,WAAW,CACzB,EAA0E,EAC1E,EACE,aAAa,EACb,OAAO,EACP,MAAM,GAQP;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,CAAC;QAAA,CAAC,KAAK,IAAI,EAAE;YACX,IAAI,SAA0B,CAAA;YAC9B,IAAI;gBACF,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAA;gBACxC,IAAI,OAAO,GAAG,CAAC,EAAE;oBACf,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;wBAC1B,IAAI,MAAM,EAAE;4BACV,UAAU,CAAC,KAAK,EAAE,CAAA;yBACnB;6BAAM;4BACL,MAAM,CAAC,aAAa,CAAC,CAAA;yBACtB;oBACH,CAAC,EAAE,OAAO,CAAC,CAAA;iBACZ;gBACD,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;aAClD;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAK,GAAa,CAAC,IAAI,KAAK,YAAY;oBAAE,MAAM,CAAC,aAAa,CAAC,CAAA;gBAC/D,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;oBAAS;gBACR,YAAY,CAAC,SAAS,CAAC,CAAA;aACxB;QACH,CAAC,CAAC,EAAE,CAAA;IACN,CAAC,CAAC,CAAA;AACJ,CAAC;AAtCD,kCAsCC"}
1
+ {"version":3,"file":"withTimeout.js","sourceRoot":"","sources":["../../../utils/promise/withTimeout.ts"],"names":[],"mappings":";;;AAIA,SAAgB,WAAW,CACzB,EAA0E,EAC1E,EACE,aAAa,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,EACtC,OAAO,EACP,MAAM,GAQP;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,CAAC;QAAA,CAAC,KAAK,IAAI,EAAE;YACX,IAAI,SAA0B,CAAA;YAC9B,IAAI;gBACF,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAA;gBACxC,IAAI,OAAO,GAAG,CAAC,EAAE;oBACf,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;wBAC1B,IAAI,MAAM,EAAE;4BACV,UAAU,CAAC,KAAK,EAAE,CAAA;yBACnB;6BAAM;4BACL,MAAM,CAAC,aAAa,CAAC,CAAA;yBACtB;oBACH,CAAC,EAAE,OAAO,CAAC,CAAA;iBACZ;gBACD,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;aAClD;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAK,GAAa,CAAC,IAAI,KAAK,YAAY;oBAAE,MAAM,CAAC,aAAa,CAAC,CAAA;gBAC/D,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;oBAAS;gBACR,YAAY,CAAC,SAAS,CAAC,CAAA;aACxB;QACH,CAAC,CAAC,EAAE,CAAA;IACN,CAAC,CAAC,CAAA;AACJ,CAAC;AAtCD,kCAsCC"}
package/_cjs/utils/rpc.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.rpc = exports.getSocket = exports.socketsCache = void 0;
4
- const isomorphic_ws_1 = require("isomorphic-ws");
4
+ const isows_1 = require("isows");
5
5
  const request_js_1 = require("../errors/request.js");
6
6
  const createBatchScheduler_js_1 = require("./promise/createBatchScheduler.js");
7
7
  const withTimeout_js_1 = require("./promise/withTimeout.js");
@@ -71,10 +71,7 @@ async function getSocket(url) {
71
71
  const { schedule } = (0, createBatchScheduler_js_1.createBatchScheduler)({
72
72
  id: url,
73
73
  fn: async () => {
74
- let WebSocket_ = isomorphic_ws_1.default;
75
- if (!isomorphic_ws_1.default.constructor)
76
- WebSocket_ = isomorphic_ws_1.default.WebSocket;
77
- const webSocket = new WebSocket_(url);
74
+ const webSocket = new isows_1.WebSocket(url);
78
75
  const requests = new Map();
79
76
  const subscriptions = new Map();
80
77
  const onMessage = ({ data }) => {
@@ -95,7 +92,7 @@ async function getSocket(url) {
95
92
  };
96
93
  webSocket.addEventListener('close', onClose);
97
94
  webSocket.addEventListener('message', onMessage);
98
- if (webSocket.readyState === isomorphic_ws_1.default.CONNECTING) {
95
+ if (webSocket.readyState === isows_1.WebSocket.CONNECTING) {
99
96
  await new Promise((resolve, reject) => {
100
97
  if (!webSocket)
101
98
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.js","sourceRoot":"","sources":["../../utils/rpc.ts"],"names":[],"mappings":";;;AACA,iDAAqC;AAGrC,qDAI6B;AAE7B,+EAAwE;AACxE,6DAAsD;AACtD,iDAA0C;AAE1C,IAAI,EAAE,GAAG,CAAC,CAAA;AA0DV,KAAK,UAAU,IAAI,CACjB,GAAW,EACX,EAAE,IAAI,EAAE,YAAY,GAAG,EAAE,EAAE,OAAO,GAAG,KAAM,EAAsB;IAEjE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,CAAA;IACzD,IAAI;QACF,MAAM,QAAQ,GAAG,MAAM,IAAA,4BAAW,EAChC,KAAK,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;YACnB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;gBAChC,GAAG,YAAY;gBACf,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;oBACvB,CAAC,CAAC,IAAA,wBAAS,EACP,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;wBAClB,OAAO,EAAE,KAAK;wBACd,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,EAAE;wBACnB,GAAG,IAAI;qBACR,CAAC,CAAC,CACJ;oBACH,CAAC,CAAC,IAAA,wBAAS,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,I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AAI,yBAAY,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC;QAC1D,OAAO;KACR,CACF,CAAA;AACH,CAAC;AAIY,QAAA,GAAG,GAAG;IACjB,IAAI;IACJ,SAAS;IACT,cAAc;CACf,CAAA"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compactSignatureToHex = void 0;
4
+ const secp256k1_1 = require("@noble/curves/secp256k1");
5
+ const fromHex_js_1 = require("../encoding/fromHex.js");
6
+ function compactSignatureToHex({ r, yParityAndS, }) {
7
+ return `0x${new secp256k1_1.secp256k1.Signature((0, fromHex_js_1.hexToBigInt)(r), (0, fromHex_js_1.hexToBigInt)(yParityAndS)).toCompactHex()}`;
8
+ }
9
+ exports.compactSignatureToHex = compactSignatureToHex;
10
+ //# sourceMappingURL=compactSignatureToHex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compactSignatureToHex.js","sourceRoot":"","sources":["../../../utils/signature/compactSignatureToHex.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAGnD,uDAA+E;AAiB/E,SAAgB,qBAAqB,CAAC,EACpC,CAAC,EACD,WAAW,GACM;IACjB,OAAO,KAAK,IAAI,qBAAS,CAAC,SAAS,CACjC,IAAA,wBAAW,EAAC,CAAC,CAAC,EACd,IAAA,wBAAW,EAAC,WAAW,CAAC,CACzB,CAAC,YAAY,EAAE,EAAE,CAAA;AACpB,CAAC;AARD,sDAQC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.compactSignatureToSignature = void 0;
4
+ const toBytes_js_1 = require("../encoding/toBytes.js");
5
+ const toHex_js_1 = require("../encoding/toHex.js");
6
+ function compactSignatureToSignature({ r, yParityAndS, }) {
7
+ const yParityAndS_bytes = (0, toBytes_js_1.hexToBytes)(yParityAndS);
8
+ const v = yParityAndS_bytes[0] & 0x80 ? 28n : 27n;
9
+ const s = yParityAndS_bytes;
10
+ if (v === 28n)
11
+ s[0] &= 0x7f;
12
+ return { r, s: (0, toHex_js_1.bytesToHex)(s), v };
13
+ }
14
+ exports.compactSignatureToSignature = compactSignatureToSignature;
15
+ //# sourceMappingURL=compactSignatureToSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compactSignatureToSignature.js","sourceRoot":"","sources":["../../../utils/signature/compactSignatureToSignature.ts"],"names":[],"mappings":";;;AAEA,uDAA6E;AAC7E,mDAA2E;AAwB3E,SAAgB,2BAA2B,CAAC,EAC1C,CAAC,EACD,WAAW,GACM;IACjB,MAAM,iBAAiB,GAAG,IAAA,uBAAU,EAAC,WAAW,CAAC,CAAA;IACjD,MAAM,CAAC,GAAG,iBAAiB,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;IACjD,MAAM,CAAC,GAAG,iBAAiB,CAAA;IAC3B,IAAI,CAAC,KAAK,GAAG;QAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAA;IAC3B,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,IAAA,qBAAU,EAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAA;AACnC,CAAC;AATD,kEASC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hashMessage.js","sourceRoot":"","sources":["../../../utils/signature/hashMessage.ts"],"names":[],"mappings":";;;AACA,iDAA0C;AAC1C,uDAA+D;AAC/D,uDAAgD;AAQhD,SAAgB,WAAW,CACzB,OAAwB,EACxB,GAAS;IAET,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,IAAA,0BAAa,EAAC,OAAO,CAAC,CAAA;QAC9D,IAAI,OAAO,CAAC,GAAG,YAAY,UAAU;YAAE,OAAO,OAAO,CAAC,GAAG,CAAA;QACzD,OAAO,IAAA,oBAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAC7B,CAAC,CAAC,EAAE,CAAA;IACJ,MAAM,WAAW,GAAG,IAAA,0BAAa,EAC/B,iCAAiC,YAAY,CAAC,MAAM,EAAE,CACvD,CAAA;IACD,OAAO,IAAA,wBAAS,EAAC,IAAA,kBAAM,EAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;AAC5D,CAAC;AAbD,kCAaC"}
1
+ {"version":3,"file":"hashMessage.js","sourceRoot":"","sources":["../../../utils/signature/hashMessage.ts"],"names":[],"mappings":";;;AAEA,iDAAgE;AAChE,uDAK+B;AAC/B,uDAAyE;AAezE,SAAgB,WAAW,CACzB,OAAwB,EACxB,GAAS;IAET,MAAM,YAAY,GAAG,CAAC,GAAG,EAAE;QACzB,IAAI,OAAO,OAAO,KAAK,QAAQ;YAAE,OAAO,IAAA,0BAAa,EAAC,OAAO,CAAC,CAAA;QAC9D,IAAI,OAAO,CAAC,GAAG,YAAY,UAAU;YAAE,OAAO,OAAO,CAAC,GAAG,CAAA;QACzD,OAAO,IAAA,oBAAO,EAAC,OAAO,CAAC,GAAG,CAAC,CAAA;IAC7B,CAAC,CAAC,EAAE,CAAA;IACJ,MAAM,WAAW,GAAG,IAAA,0BAAa,EAC/B,iCAAiC,YAAY,CAAC,MAAM,EAAE,CACvD,CAAA;IACD,OAAO,IAAA,wBAAS,EAAC,IAAA,kBAAM,EAAC,CAAC,WAAW,EAAE,YAAY,CAAC,CAAC,EAAE,GAAG,CAAC,CAAA;AAC5D,CAAC;AAbD,kCAaC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hashTypedData.js","sourceRoot":"","sources":["../../../utils/signature/hashTypedData.ts"],"names":[],"mappings":";;;AAMA,0EAAmE;AACnE,iDAA0C;AAC1C,mDAA4C;AAC5C,uDAAgD;AAChD,kDAA4E;AAc5E,SAAgB,aAAa,CAI3B,UAA2D;IAE3D,MAAM,EACJ,MAAM,GAAG,EAAE,EAC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,EAAE,CAAA;QAC3C,KAAK,GAAG,KAAK,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;QACvC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,IAAA,wBAAS,EAAC,KAAK,CAAC,CAAC,CAAA;KAC/C;IAED,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,IAAA,wBAAS,EAAC,IAAA,gBAAK,EAAC,KAAK,CAAC,CAAC,CAAC,CAAA;IAE5E,IAAI,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;QAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;QACvD,MAAM,cAAc,GAAI,KAA+B,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CACnE,WAAW,CAAC;YACV,IAAI;YACJ,IAAI,EAAE,UAAU;YAChB,KAAK;YACL,KAAK,EAAE,IAAI;SACZ,CAAC,CACH,CAAA;QACD,OAAO;YACL,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,IAAA,wBAAS,EACP,IAAA,4CAAmB,EACjB,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAC9B,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CACjC,CACF;SACF,CAAA;KACF;IAED,OAAO,CAAC,EAAE,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;AAC1B,CAAC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hexToCompactSignature = void 0;
4
+ const secp256k1_1 = require("@noble/curves/secp256k1");
5
+ const toHex_js_1 = require("../../utils/encoding/toHex.js");
6
+ function hexToCompactSignature(signatureHex) {
7
+ const { r, s } = secp256k1_1.secp256k1.Signature.fromCompact(signatureHex.slice(2, 130));
8
+ return {
9
+ r: (0, toHex_js_1.numberToHex)(r, { size: 32 }),
10
+ yParityAndS: (0, toHex_js_1.numberToHex)(s, { size: 32 }),
11
+ };
12
+ }
13
+ exports.hexToCompactSignature = hexToCompactSignature;
14
+ //# sourceMappingURL=hexToCompactSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hexToCompactSignature.js","sourceRoot":"","sources":["../../../utils/signature/hexToCompactSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAInD,4DAGsC;AActC,SAAgB,qBAAqB,CAAC,YAAiB;IACrD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,qBAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;IAC5E,OAAO;QACL,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;QAC/B,WAAW,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC;KAC1C,CAAA;AACH,CAAC;AAND,sDAMC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hexToSignature.js","sourceRoot":"","sources":["../../../utils/signature/hexToSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAGnD,4DAA2D;AAY3D,SAAgB,cAAc,CAAC,YAAiB;IAC9C,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,qBAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;IAC5E,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAChD,OAAO,EAAE,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAA;AAChF,CAAC;AAJD,wCAIC"}
1
+ {"version":3,"file":"hexToSignature.js","sourceRoot":"","sources":["../../../utils/signature/hexToSignature.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAInD,4DAGsC;AActC,SAAgB,cAAc,CAAC,YAAiB;IAC9C,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,qBAAS,CAAC,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAA;IAC5E,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IAChD,OAAO,EAAE,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,IAAA,sBAAW,EAAC,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAA;AAChF,CAAC;AAJD,wCAIC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recoverAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverAddress.ts"],"names":[],"mappings":";;;AAEA,sFAA+E;AAG/E,+DAAwD;AAQjD,KAAK,UAAU,cAAc,CAAC,EACnC,IAAI,EACJ,SAAS,GACgB;IACzB,OAAO,IAAA,0CAAkB,EAAC,MAAM,IAAA,sCAAgB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;AAC9E,CAAC;AALD,wCAKC"}
1
+ {"version":3,"file":"recoverAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverAddress.ts"],"names":[],"mappings":";;;AAEA,sFAA+E;AAI/E,+DAAwD;AAWjD,KAAK,UAAU,cAAc,CAAC,EACnC,IAAI,EACJ,SAAS,GACgB;IACzB,OAAO,IAAA,0CAAkB,EAAC,MAAM,IAAA,sCAAgB,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAA;AAC9E,CAAC;AALD,wCAKC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recoverMessageAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverMessageAddress.ts"],"names":[],"mappings":";;;AAIA,qDAA8C;AAC9C,2DAAoD;AAQ7C,KAAK,UAAU,qBAAqB,CAAC,EAC1C,OAAO,EACP,SAAS,GACuB;IAChC,OAAO,IAAA,kCAAc,EAAC,EAAE,IAAI,EAAE,IAAA,4BAAW,EAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;AAClE,CAAC;AALD,sDAKC"}
1
+ {"version":3,"file":"recoverMessageAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverMessageAddress.ts"],"names":[],"mappings":";;;AAKA,qDAAyE;AACzE,2DAG4B;AAcrB,KAAK,UAAU,qBAAqB,CAAC,EAC1C,OAAO,EACP,SAAS,GACuB;IAChC,OAAO,IAAA,kCAAc,EAAC,EAAE,IAAI,EAAE,IAAA,4BAAW,EAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,CAAA;AAClE,CAAC;AALD,sDAKC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recoverPublicKey.js","sourceRoot":"","sources":["../../../utils/signature/recoverPublicKey.ts"],"names":[],"mappings":";;;AACA,+CAAwC;AACxC,uDAAoD;AACpD,mDAA4C;AAQrC,KAAK,UAAU,gBAAgB,CAAC,EACrC,IAAI,EACJ,SAAS,GACkB;IAC3B,MAAM,YAAY,GAAG,IAAA,gBAAK,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC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C,CAAA;IAIhD,IAAI,CAAC,GAAG,IAAA,wBAAW,EAAC,KAAK,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACnD,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,CAAC,IAAI,EAAE,CAAA;IAE/B,MAAM,EAAE,SAAS,EAAE,GAAG,2CAAa,yBAAyB,EAAC,CAAA;IAC7D,MAAM,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,WAAW,CAC/C,YAAY,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,CAC/B;SACE,cAAc,CAAC,CAAC,GAAG,EAAE,CAAC;SACtB,gBAAgB,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SACtC,KAAK,CAAC,KAAK,CAAC,CAAA;IACf,OAAO,KAAK,SAAS,EAAE,CAAA;AACzB,CAAC;AApBD,4CAoBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"recoverTypedDataAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverTypedDataAddress.ts"],"names":[],"mappings":";;;AAKA,yDAAkD;AAClD,2DAAoD;AAU7C,KAAK,UAAU,uBAAuB,CAI3C,UAAqE;IAErE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,GACtD,UAA0D,CAAA;IAC5D,OAAO,IAAA,kCAAc,EAAC;QACpB,IAAI,EAAE,IAAA,gCAAa,EAAC;YAClB,MAAM;YACN,OAAO;YACP,WAAW;YACX,KAAK;SACN,CAAC;QACF,SAAS;KACV,CAAC,CAAA;AACJ,CAAC;AAjBD,0DAiBC"}
1
+ {"version":3,"file":"recoverTypedDataAddress.js","sourceRoot":"","sources":["../../../utils/signature/recoverTypedDataAddress.ts"],"names":[],"mappings":";;;AAMA,yDAA+E;AAC/E,2DAG4B;AAgBrB,KAAK,UAAU,uBAAuB,CAI3C,UAAqE;IAErE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,GACtD,UAA0D,CAAA;IAC5D,OAAO,IAAA,kCAAc,EAAC;QACpB,IAAI,EAAE,IAAA,gCAAa,EAAC;YAClB,MAAM;YACN,OAAO;YACP,WAAW;YACX,KAAK;SACN,CAAC;QACF,SAAS;KACV,CAAC,CAAA;AACJ,CAAC;AAjBD,0DAiBC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.signatureToCompactSignature = void 0;
4
+ const index_js_1 = require("../index.js");
5
+ function signatureToCompactSignature(signature) {
6
+ const { r, s, v } = signature;
7
+ const yParity = v - 27n;
8
+ let yParityAndS = s;
9
+ if (yParity === 1n) {
10
+ const bytes = (0, index_js_1.hexToBytes)(s);
11
+ bytes[0] |= 0x80;
12
+ yParityAndS = (0, index_js_1.bytesToHex)(bytes);
13
+ }
14
+ return { r, yParityAndS };
15
+ }
16
+ exports.signatureToCompactSignature = signatureToCompactSignature;
17
+ //# sourceMappingURL=signatureToCompactSignature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signatureToCompactSignature.js","sourceRoot":"","sources":["../../../utils/signature/signatureToCompactSignature.ts"],"names":[],"mappings":";;;AAEA,0CAKoB;AAwBpB,SAAgB,2BAA2B,CACzC,SAAoB;IAEpB,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,SAAS,CAAA;IAC7B,MAAM,OAAO,GAAG,CAAC,GAAG,GAAG,CAAA;IACvB,IAAI,WAAW,GAAG,CAAC,CAAA;IACnB,IAAI,OAAO,KAAK,EAAE,EAAE;QAClB,MAAM,KAAK,GAAG,IAAA,qBAAU,EAAC,CAAC,CAAC,CAAA;QAC3B,KAAK,CAAC,CAAC,CAAC,IAAI,IAAI,CAAA;QAChB,WAAW,GAAG,IAAA,qBAAU,EAAC,KAAK,CAAC,CAAA;KAChC;IACD,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,CAAA;AAC3B,CAAC;AAZD,kEAYC"}
@@ -1 +1 @@
1
- {"version":3,"file":"signatureToHex.js","sourceRoot":"","sources":["../../../utils/signature/signatureToHex.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAGnD,gEAA6D;AAC7D,4DAAqD;AAgBrD,SAAgB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAa;IACnD,OAAO,KAAK,IAAI,qBAAS,CAAC,SAAS,CACjC,IAAA,wBAAW,EAAC,CAAC,CAAC,EACd,IAAA,wBAAW,EAAC,CAAC,CAAC,CACf,CAAC,YAAY,EAAE,GAAG,IAAA,gBAAK,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AACxC,CAAC;AALD,wCAKC"}
1
+ {"version":3,"file":"signatureToHex.js","sourceRoot":"","sources":["../../../utils/signature/signatureToHex.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAInD,gEAGwC;AACxC,4DAA0E;AAqB1E,SAAgB,cAAc,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAa;IACnD,OAAO,KAAK,IAAI,qBAAS,CAAC,SAAS,CACjC,IAAA,wBAAW,EAAC,CAAC,CAAC,EACd,IAAA,wBAAW,EAAC,CAAC,CAAC,CACf,CAAC,YAAY,EAAE,GAAG,IAAA,gBAAK,EAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAA;AACxC,CAAC;AALD,wCAKC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../utils/signature/verifyMessage.ts"],"names":[],"mappings":";;;AAGA,4DAAqD;AACrD,oEAA6D;AAE7D,yEAAkE;AAyB3D,KAAK,UAAU,aAAa,CAAC,EAClC,OAAO,EACP,OAAO,EACP,SAAS,GACe;IACxB,OAAO,IAAA,kCAAc,EACnB,IAAA,0BAAU,EAAC,OAAO,CAAC,EACnB,MAAM,IAAA,gDAAqB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CACpD,CAAA;AACH,CAAC;AATD,sCASC"}
1
+ {"version":3,"file":"verifyMessage.js","sourceRoot":"","sources":["../../../utils/signature/verifyMessage.ts"],"names":[],"mappings":";;;AAGA,4DAA+E;AAC/E,oEAGqC;AAGrC,yEAGmC;AA+B5B,KAAK,UAAU,aAAa,CAAC,EAClC,OAAO,EACP,OAAO,EACP,SAAS,GACe;IACxB,OAAO,IAAA,kCAAc,EACnB,IAAA,0BAAU,EAAC,OAAO,CAAC,EACnB,MAAM,IAAA,gDAAqB,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CACpD,CAAA;AACH,CAAC;AATD,sCASC"}
@@ -1 +1 @@
1
- {"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../utils/signature/verifyTypedData.ts"],"names":[],"mappings":";;;AAIA,4DAAqD;AACrD,oEAA6D;AAE7D,6EAGqC;AA0B9B,KAAK,UAAU,eAAe,CAInC,UAA6D;IAE7D,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,GAC/D,UAAkD,CAAA;IACpD,OAAO,IAAA,kCAAc,EACnB,IAAA,0BAAU,EAAC,OAAO,CAAC,EACnB,MAAM,IAAA,oDAAuB,EAAC;QAC5B,MAAM;QACN,OAAO;QACP,WAAW;QACX,SAAS;QACT,KAAK;KAC+B,CAAC,CACxC,CAAA;AACH,CAAC;AAlBD,0CAkBC"}
1
+ {"version":3,"file":"verifyTypedData.js","sourceRoot":"","sources":["../../../utils/signature/verifyTypedData.ts"],"names":[],"mappings":";;;AAIA,4DAA+E;AAC/E,oEAGqC;AAGrC,6EAGqC;AAgC9B,KAAK,UAAU,eAAe,CAInC,UAA6D;IAE7D,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,KAAK,EAAE,GAC/D,UAAkD,CAAA;IACpD,OAAO,IAAA,kCAAc,EACnB,IAAA,0BAAU,EAAC,OAAO,CAAC,EACnB,MAAM,IAAA,oDAAuB,EAAC;QAC5B,MAAM;QACN,OAAO;QACP,WAAW;QACX,SAAS;QACT,KAAK;KAC+B,CAAC,CACxC,CAAA;AACH,CAAC;AAlBD,0CAkBC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../utils/stringify.ts"],"names":[],"mappings":";;;AAAO,MAAM,SAAS,GAA0B,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CACzE,IAAI,CAAC,SAAS,CACZ,KAAK,EACL,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACd,MAAM,KAAK,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;IACrE,OAAO,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;AACtE,CAAC,EACD,KAAK,CACN,CAAA;AARU,QAAA,SAAS,aAQnB"}
1
+ {"version":3,"file":"stringify.js","sourceRoot":"","sources":["../../utils/stringify.ts"],"names":[],"mappings":";;;AAIO,MAAM,SAAS,GAA0B,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,CACzE,IAAI,CAAC,SAAS,CACZ,KAAK,EACL,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE;IACd,MAAM,KAAK,GAAG,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,MAAM,CAAA;IACrE,OAAO,OAAO,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;AAC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