viem 2.0.0-alpha.17 → 2.0.0-alpha.19

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 (1260) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/README.md +1 -1
  3. package/_cjs/actions/ens/getEnsAddress.js +4 -3
  4. package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
  5. package/_cjs/actions/ens/getEnsAvatar.js +2 -1
  6. package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
  7. package/_cjs/actions/ens/getEnsName.js +4 -3
  8. package/_cjs/actions/ens/getEnsName.js.map +1 -1
  9. package/_cjs/actions/ens/getEnsResolver.js +4 -3
  10. package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
  11. package/_cjs/actions/ens/getEnsText.js +4 -3
  12. package/_cjs/actions/ens/getEnsText.js.map +1 -1
  13. package/_cjs/actions/getContract.js +8 -7
  14. package/_cjs/actions/getContract.js.map +1 -1
  15. package/_cjs/actions/public/call.js +5 -5
  16. package/_cjs/actions/public/call.js.map +1 -1
  17. package/_cjs/actions/public/estimateContractGas.js +11 -2
  18. package/_cjs/actions/public/estimateContractGas.js.map +1 -1
  19. package/_cjs/actions/public/estimateFeesPerGas.js +3 -2
  20. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  21. package/_cjs/actions/public/estimateGas.js +3 -3
  22. package/_cjs/actions/public/estimateGas.js.map +1 -1
  23. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +4 -3
  24. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  25. package/_cjs/actions/public/getContractEvents.js +2 -1
  26. package/_cjs/actions/public/getContractEvents.js.map +1 -1
  27. package/_cjs/actions/public/getTransactionConfirmations.js +3 -2
  28. package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  29. package/_cjs/actions/public/multicall.js +4 -3
  30. package/_cjs/actions/public/multicall.js.map +1 -1
  31. package/_cjs/actions/public/readContract.js +7 -2
  32. package/_cjs/actions/public/readContract.js.map +1 -1
  33. package/_cjs/actions/public/simulateContract.js +2 -1
  34. package/_cjs/actions/public/simulateContract.js.map +1 -1
  35. package/_cjs/actions/public/verifyHash.js +2 -1
  36. package/_cjs/actions/public/verifyHash.js.map +1 -1
  37. package/_cjs/actions/public/waitForTransactionReceipt.js +6 -5
  38. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  39. package/_cjs/actions/public/watchBlockNumber.js +2 -1
  40. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  41. package/_cjs/actions/public/watchBlocks.js +4 -3
  42. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  43. package/_cjs/actions/public/watchContractEvent.js +6 -5
  44. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  45. package/_cjs/actions/public/watchEvent.js +6 -5
  46. package/_cjs/actions/public/watchEvent.js.map +1 -1
  47. package/_cjs/actions/public/watchPendingTransactions.js +4 -3
  48. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  49. package/_cjs/actions/test/sendUnsignedTransaction.js +3 -3
  50. package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  51. package/_cjs/actions/wallet/getAddresses.js +2 -0
  52. package/_cjs/actions/wallet/getAddresses.js.map +1 -1
  53. package/_cjs/actions/wallet/prepareTransactionRequest.js +4 -3
  54. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  55. package/_cjs/actions/wallet/sendTransaction.js +10 -8
  56. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  57. package/_cjs/actions/wallet/signTransaction.js +5 -4
  58. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  59. package/_cjs/actions/wallet/writeContract.js +7 -2
  60. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  61. package/_cjs/chains/celo/formatters.js +34 -5
  62. package/_cjs/chains/celo/formatters.js.map +1 -1
  63. package/_cjs/chains/celo/parsers.js +55 -0
  64. package/_cjs/chains/celo/parsers.js.map +1 -1
  65. package/_cjs/chains/celo/serializers.js +70 -6
  66. package/_cjs/chains/celo/serializers.js.map +1 -1
  67. package/_cjs/chains/definitions/arbitrum.js +2 -2
  68. package/_cjs/chains/definitions/arbitrum.js.map +1 -1
  69. package/_cjs/chains/definitions/arbitrumGoerli.js +4 -3
  70. package/_cjs/chains/definitions/arbitrumGoerli.js.map +1 -1
  71. package/_cjs/chains/definitions/arbitrumNova.js +2 -2
  72. package/_cjs/chains/definitions/arbitrumNova.js.map +1 -1
  73. package/_cjs/chains/definitions/arbitrumSepolia.js +2 -2
  74. package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
  75. package/_cjs/chains/definitions/astarZkatana.js +42 -0
  76. package/_cjs/chains/definitions/astarZkatana.js.map +1 -0
  77. package/_cjs/chains/definitions/aurora.js +2 -2
  78. package/_cjs/chains/definitions/aurora.js.map +1 -1
  79. package/_cjs/chains/definitions/auroraTestnet.js +2 -2
  80. package/_cjs/chains/definitions/auroraTestnet.js.map +1 -1
  81. package/_cjs/chains/definitions/avalanche.js +2 -2
  82. package/_cjs/chains/definitions/avalanche.js.map +1 -1
  83. package/_cjs/chains/definitions/avalancheFuji.js +2 -2
  84. package/_cjs/chains/definitions/avalancheFuji.js.map +1 -1
  85. package/_cjs/chains/definitions/base.js +2 -2
  86. package/_cjs/chains/definitions/base.js.map +1 -1
  87. package/_cjs/chains/definitions/baseGoerli.js +2 -2
  88. package/_cjs/chains/definitions/baseGoerli.js.map +1 -1
  89. package/_cjs/chains/definitions/baseSepolia.js +34 -0
  90. package/_cjs/chains/definitions/baseSepolia.js.map +1 -0
  91. package/_cjs/chains/definitions/bearNetworkChainMainnet.js +2 -2
  92. package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
  93. package/_cjs/chains/definitions/bearNetworkChainTestnet.js +2 -2
  94. package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
  95. package/_cjs/chains/definitions/boba.js +2 -2
  96. package/_cjs/chains/definitions/boba.js.map +1 -1
  97. package/_cjs/chains/definitions/bronos.js +2 -2
  98. package/_cjs/chains/definitions/bronos.js.map +1 -1
  99. package/_cjs/chains/definitions/bronosTestnet.js +2 -2
  100. package/_cjs/chains/definitions/bronosTestnet.js.map +1 -1
  101. package/_cjs/chains/definitions/bsc.js +2 -2
  102. package/_cjs/chains/definitions/bsc.js.map +1 -1
  103. package/_cjs/chains/definitions/bscTestnet.js +2 -2
  104. package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
  105. package/_cjs/chains/definitions/bxn.js +2 -2
  106. package/_cjs/chains/definitions/bxn.js.map +1 -1
  107. package/_cjs/chains/definitions/bxnTestnet.js +2 -2
  108. package/_cjs/chains/definitions/bxnTestnet.js.map +1 -1
  109. package/_cjs/chains/definitions/canto.js +2 -2
  110. package/_cjs/chains/definitions/canto.js.map +1 -1
  111. package/_cjs/chains/definitions/celo.js +2 -2
  112. package/_cjs/chains/definitions/celo.js.map +1 -1
  113. package/_cjs/chains/definitions/celoAlfajores.js +2 -2
  114. package/_cjs/chains/definitions/celoAlfajores.js.map +1 -1
  115. package/_cjs/chains/definitions/celoCannoli.js +2 -2
  116. package/_cjs/chains/definitions/celoCannoli.js.map +1 -1
  117. package/_cjs/chains/definitions/classic.js +2 -2
  118. package/_cjs/chains/definitions/classic.js.map +1 -1
  119. package/_cjs/chains/definitions/confluxESpace.js +2 -2
  120. package/_cjs/chains/definitions/confluxESpace.js.map +1 -1
  121. package/_cjs/chains/definitions/coreDao.js +2 -2
  122. package/_cjs/chains/definitions/coreDao.js.map +1 -1
  123. package/_cjs/chains/definitions/cronos.js +2 -2
  124. package/_cjs/chains/definitions/cronos.js.map +1 -1
  125. package/_cjs/chains/definitions/cronosTestnet.js +2 -2
  126. package/_cjs/chains/definitions/cronosTestnet.js.map +1 -1
  127. package/_cjs/chains/definitions/crossbell.js +2 -2
  128. package/_cjs/chains/definitions/crossbell.js.map +1 -1
  129. package/_cjs/chains/definitions/dfk.js +2 -2
  130. package/_cjs/chains/definitions/dfk.js.map +1 -1
  131. package/_cjs/chains/definitions/dogechain.js +2 -2
  132. package/_cjs/chains/definitions/dogechain.js.map +1 -1
  133. package/_cjs/chains/definitions/edgeware.js +2 -2
  134. package/_cjs/chains/definitions/edgeware.js.map +1 -1
  135. package/_cjs/chains/definitions/edgewareTestnet.js +2 -2
  136. package/_cjs/chains/definitions/edgewareTestnet.js.map +1 -1
  137. package/_cjs/chains/definitions/ekta.js +2 -2
  138. package/_cjs/chains/definitions/ekta.js.map +1 -1
  139. package/_cjs/chains/definitions/ektaTestnet.js +2 -2
  140. package/_cjs/chains/definitions/ektaTestnet.js.map +1 -1
  141. package/_cjs/chains/definitions/eon.js +2 -2
  142. package/_cjs/chains/definitions/eon.js.map +1 -1
  143. package/_cjs/chains/definitions/eos.js +2 -2
  144. package/_cjs/chains/definitions/eos.js.map +1 -1
  145. package/_cjs/chains/definitions/eosTestnet.js +2 -2
  146. package/_cjs/chains/definitions/eosTestnet.js.map +1 -1
  147. package/_cjs/chains/definitions/evmos.js +2 -2
  148. package/_cjs/chains/definitions/evmos.js.map +1 -1
  149. package/_cjs/chains/definitions/evmosTestnet.js +2 -2
  150. package/_cjs/chains/definitions/evmosTestnet.js.map +1 -1
  151. package/_cjs/chains/definitions/fantom.js +2 -2
  152. package/_cjs/chains/definitions/fantom.js.map +1 -1
  153. package/_cjs/chains/definitions/fantomTestnet.js +2 -2
  154. package/_cjs/chains/definitions/fantomTestnet.js.map +1 -1
  155. package/_cjs/chains/definitions/fibo.js +2 -2
  156. package/_cjs/chains/definitions/fibo.js.map +1 -1
  157. package/_cjs/chains/definitions/filecoin.js +2 -2
  158. package/_cjs/chains/definitions/filecoin.js.map +1 -1
  159. package/_cjs/chains/definitions/filecoinCalibration.js +2 -2
  160. package/_cjs/chains/definitions/filecoinCalibration.js.map +1 -1
  161. package/_cjs/chains/definitions/filecoinHyperspace.js +2 -2
  162. package/_cjs/chains/definitions/filecoinHyperspace.js.map +1 -1
  163. package/_cjs/chains/definitions/flare.js +2 -2
  164. package/_cjs/chains/definitions/flare.js.map +1 -1
  165. package/_cjs/chains/definitions/flareTestnet.js +2 -2
  166. package/_cjs/chains/definitions/flareTestnet.js.map +1 -1
  167. package/_cjs/chains/definitions/foundry.js +2 -2
  168. package/_cjs/chains/definitions/foundry.js.map +1 -1
  169. package/_cjs/chains/definitions/fuse.js +2 -2
  170. package/_cjs/chains/definitions/fuse.js.map +1 -1
  171. package/_cjs/chains/definitions/fuseSparknet.js +2 -2
  172. package/_cjs/chains/definitions/fuseSparknet.js.map +1 -1
  173. package/_cjs/chains/definitions/gnosis.js +2 -2
  174. package/_cjs/chains/definitions/gnosis.js.map +1 -1
  175. package/_cjs/chains/definitions/gnosisChiado.js +2 -2
  176. package/_cjs/chains/definitions/gnosisChiado.js.map +1 -1
  177. package/_cjs/chains/definitions/gobi.js +2 -2
  178. package/_cjs/chains/definitions/gobi.js.map +1 -1
  179. package/_cjs/chains/definitions/goerli.js +2 -2
  180. package/_cjs/chains/definitions/goerli.js.map +1 -1
  181. package/_cjs/chains/definitions/haqqMainnet.js +2 -2
  182. package/_cjs/chains/definitions/haqqMainnet.js.map +1 -1
  183. package/_cjs/chains/definitions/haqqTestedge2.js +2 -2
  184. package/_cjs/chains/definitions/haqqTestedge2.js.map +1 -1
  185. package/_cjs/chains/definitions/hardhat.js +2 -2
  186. package/_cjs/chains/definitions/hardhat.js.map +1 -1
  187. package/_cjs/chains/definitions/harmonyOne.js +2 -2
  188. package/_cjs/chains/definitions/harmonyOne.js.map +1 -1
  189. package/_cjs/chains/definitions/holesky.js +2 -2
  190. package/_cjs/chains/definitions/holesky.js.map +1 -1
  191. package/_cjs/chains/definitions/iotex.js +2 -2
  192. package/_cjs/chains/definitions/iotex.js.map +1 -1
  193. package/_cjs/chains/definitions/iotexTestnet.js +2 -2
  194. package/_cjs/chains/definitions/iotexTestnet.js.map +1 -1
  195. package/_cjs/chains/definitions/klaytn.js +2 -2
  196. package/_cjs/chains/definitions/klaytn.js.map +1 -1
  197. package/_cjs/chains/definitions/kroma.js +2 -2
  198. package/_cjs/chains/definitions/kroma.js.map +1 -1
  199. package/_cjs/chains/definitions/kromaSepolia.js +2 -2
  200. package/_cjs/chains/definitions/kromaSepolia.js.map +1 -1
  201. package/_cjs/chains/definitions/linea.js +2 -2
  202. package/_cjs/chains/definitions/linea.js.map +1 -1
  203. package/_cjs/chains/definitions/lineaTestnet.js +2 -2
  204. package/_cjs/chains/definitions/lineaTestnet.js.map +1 -1
  205. package/_cjs/chains/definitions/localhost.js +2 -2
  206. package/_cjs/chains/definitions/localhost.js.map +1 -1
  207. package/_cjs/chains/definitions/mainnet.js +2 -2
  208. package/_cjs/chains/definitions/mainnet.js.map +1 -1
  209. package/_cjs/chains/definitions/manta.js +35 -0
  210. package/_cjs/chains/definitions/manta.js.map +1 -0
  211. package/_cjs/chains/definitions/mantaTestnet.js +36 -0
  212. package/_cjs/chains/definitions/mantaTestnet.js.map +1 -0
  213. package/_cjs/chains/definitions/mantle.js +2 -2
  214. package/_cjs/chains/definitions/mantle.js.map +1 -1
  215. package/_cjs/chains/definitions/mantleTestnet.js +2 -2
  216. package/_cjs/chains/definitions/mantleTestnet.js.map +1 -1
  217. package/_cjs/chains/definitions/meter.js +2 -2
  218. package/_cjs/chains/definitions/meter.js.map +1 -1
  219. package/_cjs/chains/definitions/meterTestnet.js +2 -2
  220. package/_cjs/chains/definitions/meterTestnet.js.map +1 -1
  221. package/_cjs/chains/definitions/metis.js +2 -2
  222. package/_cjs/chains/definitions/metis.js.map +1 -1
  223. package/_cjs/chains/definitions/metisGoerli.js +2 -2
  224. package/_cjs/chains/definitions/metisGoerli.js.map +1 -1
  225. package/_cjs/chains/definitions/mev.js +2 -2
  226. package/_cjs/chains/definitions/mev.js.map +1 -1
  227. package/_cjs/chains/definitions/mevTestnet.js +2 -2
  228. package/_cjs/chains/definitions/mevTestnet.js.map +1 -1
  229. package/_cjs/chains/definitions/modeTestnet.js +8 -2
  230. package/_cjs/chains/definitions/modeTestnet.js.map +1 -1
  231. package/_cjs/chains/definitions/moonbaseAlpha.js +2 -2
  232. package/_cjs/chains/definitions/moonbaseAlpha.js.map +1 -1
  233. package/_cjs/chains/definitions/moonbeam.js +2 -2
  234. package/_cjs/chains/definitions/moonbeam.js.map +1 -1
  235. package/_cjs/chains/definitions/moonbeamDev.js +2 -2
  236. package/_cjs/chains/definitions/moonbeamDev.js.map +1 -1
  237. package/_cjs/chains/definitions/moonriver.js +2 -2
  238. package/_cjs/chains/definitions/moonriver.js.map +1 -1
  239. package/_cjs/chains/definitions/neonDevnet.js +2 -2
  240. package/_cjs/chains/definitions/neonDevnet.js.map +1 -1
  241. package/_cjs/chains/definitions/nexi.js +2 -2
  242. package/_cjs/chains/definitions/nexi.js.map +1 -1
  243. package/_cjs/chains/definitions/nexilix.js +2 -2
  244. package/_cjs/chains/definitions/nexilix.js.map +1 -1
  245. package/_cjs/chains/definitions/oasys.js +2 -2
  246. package/_cjs/chains/definitions/oasys.js.map +1 -1
  247. package/_cjs/chains/definitions/okc.js +2 -2
  248. package/_cjs/chains/definitions/okc.js.map +1 -1
  249. package/_cjs/chains/definitions/opBNB.js +2 -2
  250. package/_cjs/chains/definitions/opBNB.js.map +1 -1
  251. package/_cjs/chains/definitions/opBNBTestnet.js +2 -2
  252. package/_cjs/chains/definitions/opBNBTestnet.js.map +1 -1
  253. package/_cjs/chains/definitions/optimism.js +2 -2
  254. package/_cjs/chains/definitions/optimism.js.map +1 -1
  255. package/_cjs/chains/definitions/optimismGoerli.js +2 -2
  256. package/_cjs/chains/definitions/optimismGoerli.js.map +1 -1
  257. package/_cjs/chains/definitions/optimismSepolia.js +2 -2
  258. package/_cjs/chains/definitions/optimismSepolia.js.map +1 -1
  259. package/_cjs/chains/definitions/plinga.js +2 -2
  260. package/_cjs/chains/definitions/plinga.js.map +1 -1
  261. package/_cjs/chains/definitions/polygon.js +2 -2
  262. package/_cjs/chains/definitions/polygon.js.map +1 -1
  263. package/_cjs/chains/definitions/polygonMumbai.js +2 -2
  264. package/_cjs/chains/definitions/polygonMumbai.js.map +1 -1
  265. package/_cjs/chains/definitions/polygonZkEvm.js +2 -2
  266. package/_cjs/chains/definitions/polygonZkEvm.js.map +1 -1
  267. package/_cjs/chains/definitions/polygonZkEvmTestnet.js +2 -2
  268. package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
  269. package/_cjs/chains/definitions/pulsechain.js +2 -2
  270. package/_cjs/chains/definitions/pulsechain.js.map +1 -1
  271. package/_cjs/chains/definitions/pulsechainV4.js +2 -2
  272. package/_cjs/chains/definitions/pulsechainV4.js.map +1 -1
  273. package/_cjs/chains/definitions/qMainnet.js +2 -2
  274. package/_cjs/chains/definitions/qMainnet.js.map +1 -1
  275. package/_cjs/chains/definitions/qTestnet.js +2 -2
  276. package/_cjs/chains/definitions/qTestnet.js.map +1 -1
  277. package/_cjs/chains/definitions/rollux.js +2 -2
  278. package/_cjs/chains/definitions/rollux.js.map +1 -1
  279. package/_cjs/chains/definitions/rolluxTestnet.js +2 -2
  280. package/_cjs/chains/definitions/rolluxTestnet.js.map +1 -1
  281. package/_cjs/chains/definitions/ronin.js +2 -2
  282. package/_cjs/chains/definitions/ronin.js.map +1 -1
  283. package/_cjs/chains/definitions/saigon.js +2 -2
  284. package/_cjs/chains/definitions/saigon.js.map +1 -1
  285. package/_cjs/chains/definitions/scroll.js +2 -2
  286. package/_cjs/chains/definitions/scroll.js.map +1 -1
  287. package/_cjs/chains/definitions/scrollSepolia.js +2 -2
  288. package/_cjs/chains/definitions/scrollSepolia.js.map +1 -1
  289. package/_cjs/chains/definitions/scrollTestnet.js +2 -2
  290. package/_cjs/chains/definitions/scrollTestnet.js.map +1 -1
  291. package/_cjs/chains/definitions/sepolia.js +2 -2
  292. package/_cjs/chains/definitions/sepolia.js.map +1 -1
  293. package/_cjs/chains/definitions/shardeumSphinx.js +2 -2
  294. package/_cjs/chains/definitions/shardeumSphinx.js.map +1 -1
  295. package/_cjs/chains/definitions/skale/brawl.js +2 -2
  296. package/_cjs/chains/definitions/skale/brawl.js.map +1 -1
  297. package/_cjs/chains/definitions/skale/calypso.js +2 -2
  298. package/_cjs/chains/definitions/skale/calypso.js.map +1 -1
  299. package/_cjs/chains/definitions/skale/calypsoTestnet.js +2 -2
  300. package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +1 -1
  301. package/_cjs/chains/definitions/skale/chaosTestnet.js +2 -2
  302. package/_cjs/chains/definitions/skale/chaosTestnet.js.map +1 -1
  303. package/_cjs/chains/definitions/skale/cryptoBlades.js +2 -2
  304. package/_cjs/chains/definitions/skale/cryptoBlades.js.map +1 -1
  305. package/_cjs/chains/definitions/skale/cryptoColosseum.js +2 -2
  306. package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +1 -1
  307. package/_cjs/chains/definitions/skale/europa.js +2 -2
  308. package/_cjs/chains/definitions/skale/europa.js.map +1 -1
  309. package/_cjs/chains/definitions/skale/europaTestnet.js +2 -2
  310. package/_cjs/chains/definitions/skale/europaTestnet.js.map +1 -1
  311. package/_cjs/chains/definitions/skale/exorde.js +2 -2
  312. package/_cjs/chains/definitions/skale/exorde.js.map +1 -1
  313. package/_cjs/chains/definitions/skale/humanProtocol.js +2 -2
  314. package/_cjs/chains/definitions/skale/humanProtocol.js.map +1 -1
  315. package/_cjs/chains/definitions/skale/nebula.js +2 -2
  316. package/_cjs/chains/definitions/skale/nebula.js.map +1 -1
  317. package/_cjs/chains/definitions/skale/nebulaTestnet.js +2 -2
  318. package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +1 -1
  319. package/_cjs/chains/definitions/skale/razor.js +2 -2
  320. package/_cjs/chains/definitions/skale/razor.js.map +1 -1
  321. package/_cjs/chains/definitions/skale/titan.js +2 -2
  322. package/_cjs/chains/definitions/skale/titan.js.map +1 -1
  323. package/_cjs/chains/definitions/skale/titanTestnet.js +2 -2
  324. package/_cjs/chains/definitions/skale/titanTestnet.js.map +1 -1
  325. package/_cjs/chains/definitions/songbird.js +2 -2
  326. package/_cjs/chains/definitions/songbird.js.map +1 -1
  327. package/_cjs/chains/definitions/songbirdTestnet.js +2 -2
  328. package/_cjs/chains/definitions/songbirdTestnet.js.map +1 -1
  329. package/_cjs/chains/definitions/syscoin.js +2 -2
  330. package/_cjs/chains/definitions/syscoin.js.map +1 -1
  331. package/_cjs/chains/definitions/syscoinTestnet.js +2 -2
  332. package/_cjs/chains/definitions/syscoinTestnet.js.map +1 -1
  333. package/_cjs/chains/definitions/taikoJolnir.js +2 -2
  334. package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
  335. package/_cjs/chains/definitions/taikoTestnetSepolia.js +2 -2
  336. package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +1 -1
  337. package/_cjs/chains/definitions/taraxa.js +2 -2
  338. package/_cjs/chains/definitions/taraxa.js.map +1 -1
  339. package/_cjs/chains/definitions/taraxaTestnet.js +2 -2
  340. package/_cjs/chains/definitions/taraxaTestnet.js.map +1 -1
  341. package/_cjs/chains/definitions/telos.js +2 -2
  342. package/_cjs/chains/definitions/telos.js.map +1 -1
  343. package/_cjs/chains/definitions/telosTestnet.js +2 -2
  344. package/_cjs/chains/definitions/telosTestnet.js.map +1 -1
  345. package/_cjs/chains/definitions/thunderTestnet.js +2 -2
  346. package/_cjs/chains/definitions/thunderTestnet.js.map +1 -1
  347. package/_cjs/chains/definitions/vechain.js +2 -2
  348. package/_cjs/chains/definitions/vechain.js.map +1 -1
  349. package/_cjs/chains/definitions/wanchain.js +2 -2
  350. package/_cjs/chains/definitions/wanchain.js.map +1 -1
  351. package/_cjs/chains/definitions/wanchainTestnet.js +2 -2
  352. package/_cjs/chains/definitions/wanchainTestnet.js.map +1 -1
  353. package/_cjs/chains/definitions/xdc.js +2 -2
  354. package/_cjs/chains/definitions/xdc.js.map +1 -1
  355. package/_cjs/chains/definitions/xdcTestnet.js +2 -2
  356. package/_cjs/chains/definitions/xdcTestnet.js.map +1 -1
  357. package/_cjs/chains/definitions/zetachainAthensTestnet.js +2 -2
  358. package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +1 -1
  359. package/_cjs/chains/definitions/zhejiang.js +2 -2
  360. package/_cjs/chains/definitions/zhejiang.js.map +1 -1
  361. package/_cjs/chains/definitions/zkSync.js +8 -2
  362. package/_cjs/chains/definitions/zkSync.js.map +1 -1
  363. package/_cjs/chains/definitions/zkSyncTestnet.js +8 -2
  364. package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
  365. package/_cjs/chains/definitions/zora.js +2 -2
  366. package/_cjs/chains/definitions/zora.js.map +1 -1
  367. package/_cjs/chains/definitions/zoraSepolia.js +41 -0
  368. package/_cjs/chains/definitions/zoraSepolia.js.map +1 -0
  369. package/_cjs/chains/definitions/zoraTestnet.js +2 -2
  370. package/_cjs/chains/definitions/zoraTestnet.js.map +1 -1
  371. package/_cjs/chains/index.js +14 -3
  372. package/_cjs/chains/index.js.map +1 -1
  373. package/_cjs/chains/utils.js +11 -1
  374. package/_cjs/chains/utils.js.map +1 -1
  375. package/_cjs/chains/zksync/formatters.js +124 -0
  376. package/_cjs/chains/zksync/formatters.js.map +1 -0
  377. package/_cjs/chains/zksync/serializers.js +74 -0
  378. package/_cjs/chains/zksync/serializers.js.map +1 -0
  379. package/_cjs/chains/zksync/types.js +3 -0
  380. package/_cjs/chains/zksync/types.js.map +1 -0
  381. package/_cjs/clients/createClient.js.map +1 -1
  382. package/_cjs/clients/decorators/public.js.map +1 -1
  383. package/_cjs/errors/node.js +11 -11
  384. package/_cjs/errors/node.js.map +1 -1
  385. package/_cjs/errors/rpc.js +18 -18
  386. package/_cjs/errors/rpc.js.map +1 -1
  387. package/_cjs/errors/version.js +1 -1
  388. package/_cjs/index.js +10 -6
  389. package/_cjs/index.js.map +1 -1
  390. package/_cjs/utils/abi/decodeEventLog.js +9 -11
  391. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  392. package/_cjs/utils/chain/assertCurrentChain.js +12 -0
  393. package/_cjs/utils/chain/assertCurrentChain.js.map +1 -0
  394. package/_cjs/utils/chain/defineChain.js +14 -0
  395. package/_cjs/utils/chain/defineChain.js.map +1 -0
  396. package/_cjs/utils/chain/extractChain.js +8 -0
  397. package/_cjs/utils/chain/extractChain.js.map +1 -0
  398. package/_cjs/utils/chain/getChainContractAddress.js +26 -0
  399. package/_cjs/utils/chain/getChainContractAddress.js.map +1 -0
  400. package/_cjs/utils/formatters/extract.js +15 -7
  401. package/_cjs/utils/formatters/extract.js.map +1 -1
  402. package/_cjs/utils/getAction.js +8 -0
  403. package/_cjs/utils/getAction.js.map +1 -0
  404. package/_cjs/utils/index.js +11 -7
  405. package/_cjs/utils/index.js.map +1 -1
  406. package/_esm/actions/ens/getEnsAddress.js +3 -2
  407. package/_esm/actions/ens/getEnsAddress.js.map +1 -1
  408. package/_esm/actions/ens/getEnsAvatar.js +2 -1
  409. package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
  410. package/_esm/actions/ens/getEnsName.js +3 -2
  411. package/_esm/actions/ens/getEnsName.js.map +1 -1
  412. package/_esm/actions/ens/getEnsResolver.js +3 -2
  413. package/_esm/actions/ens/getEnsResolver.js.map +1 -1
  414. package/_esm/actions/ens/getEnsText.js +3 -2
  415. package/_esm/actions/ens/getEnsText.js.map +1 -1
  416. package/_esm/actions/getContract.js +8 -7
  417. package/_esm/actions/getContract.js.map +1 -1
  418. package/_esm/actions/public/call.js +4 -4
  419. package/_esm/actions/public/call.js.map +1 -1
  420. package/_esm/actions/public/estimateContractGas.js +11 -2
  421. package/_esm/actions/public/estimateContractGas.js.map +1 -1
  422. package/_esm/actions/public/estimateFeesPerGas.js +3 -2
  423. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  424. package/_esm/actions/public/estimateGas.js +3 -3
  425. package/_esm/actions/public/estimateGas.js.map +1 -1
  426. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +4 -3
  427. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  428. package/_esm/actions/public/getContractEvents.js +2 -1
  429. package/_esm/actions/public/getContractEvents.js.map +1 -1
  430. package/_esm/actions/public/getTransactionConfirmations.js +3 -2
  431. package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
  432. package/_esm/actions/public/multicall.js +3 -2
  433. package/_esm/actions/public/multicall.js.map +1 -1
  434. package/_esm/actions/public/readContract.js +7 -2
  435. package/_esm/actions/public/readContract.js.map +1 -1
  436. package/_esm/actions/public/simulateContract.js +2 -1
  437. package/_esm/actions/public/simulateContract.js.map +1 -1
  438. package/_esm/actions/public/verifyHash.js +2 -1
  439. package/_esm/actions/public/verifyHash.js.map +1 -1
  440. package/_esm/actions/public/waitForTransactionReceipt.js +6 -5
  441. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  442. package/_esm/actions/public/watchBlockNumber.js +2 -1
  443. package/_esm/actions/public/watchBlockNumber.js.map +1 -1
  444. package/_esm/actions/public/watchBlocks.js +4 -3
  445. package/_esm/actions/public/watchBlocks.js.map +1 -1
  446. package/_esm/actions/public/watchContractEvent.js +6 -5
  447. package/_esm/actions/public/watchContractEvent.js.map +1 -1
  448. package/_esm/actions/public/watchEvent.js +6 -5
  449. package/_esm/actions/public/watchEvent.js.map +1 -1
  450. package/_esm/actions/public/watchPendingTransactions.js +4 -3
  451. package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
  452. package/_esm/actions/test/sendUnsignedTransaction.js +3 -3
  453. package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  454. package/_esm/actions/wallet/getAddresses.js +2 -0
  455. package/_esm/actions/wallet/getAddresses.js.map +1 -1
  456. package/_esm/actions/wallet/prepareTransactionRequest.js +4 -3
  457. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  458. package/_esm/actions/wallet/sendTransaction.js +9 -7
  459. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  460. package/_esm/actions/wallet/signTransaction.js +4 -3
  461. package/_esm/actions/wallet/signTransaction.js.map +1 -1
  462. package/_esm/actions/wallet/writeContract.js +7 -2
  463. package/_esm/actions/wallet/writeContract.js.map +1 -1
  464. package/_esm/chains/celo/formatters.js +34 -5
  465. package/_esm/chains/celo/formatters.js.map +1 -1
  466. package/_esm/chains/celo/parsers.js +56 -1
  467. package/_esm/chains/celo/parsers.js.map +1 -1
  468. package/_esm/chains/celo/serializers.js +73 -7
  469. package/_esm/chains/celo/serializers.js.map +1 -1
  470. package/_esm/chains/definitions/arbitrum.js +1 -1
  471. package/_esm/chains/definitions/arbitrum.js.map +1 -1
  472. package/_esm/chains/definitions/arbitrumGoerli.js +3 -2
  473. package/_esm/chains/definitions/arbitrumGoerli.js.map +1 -1
  474. package/_esm/chains/definitions/arbitrumNova.js +1 -1
  475. package/_esm/chains/definitions/arbitrumNova.js.map +1 -1
  476. package/_esm/chains/definitions/arbitrumSepolia.js +1 -1
  477. package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
  478. package/_esm/chains/definitions/astarZkatana.js +39 -0
  479. package/_esm/chains/definitions/astarZkatana.js.map +1 -0
  480. package/_esm/chains/definitions/aurora.js +1 -1
  481. package/_esm/chains/definitions/aurora.js.map +1 -1
  482. package/_esm/chains/definitions/auroraTestnet.js +1 -1
  483. package/_esm/chains/definitions/auroraTestnet.js.map +1 -1
  484. package/_esm/chains/definitions/avalanche.js +1 -1
  485. package/_esm/chains/definitions/avalanche.js.map +1 -1
  486. package/_esm/chains/definitions/avalancheFuji.js +1 -1
  487. package/_esm/chains/definitions/avalancheFuji.js.map +1 -1
  488. package/_esm/chains/definitions/base.js +1 -1
  489. package/_esm/chains/definitions/base.js.map +1 -1
  490. package/_esm/chains/definitions/baseGoerli.js +1 -1
  491. package/_esm/chains/definitions/baseGoerli.js.map +1 -1
  492. package/_esm/chains/definitions/baseSepolia.js +31 -0
  493. package/_esm/chains/definitions/baseSepolia.js.map +1 -0
  494. package/_esm/chains/definitions/bearNetworkChainMainnet.js +1 -1
  495. package/_esm/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
  496. package/_esm/chains/definitions/bearNetworkChainTestnet.js +1 -1
  497. package/_esm/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
  498. package/_esm/chains/definitions/boba.js +1 -1
  499. package/_esm/chains/definitions/boba.js.map +1 -1
  500. package/_esm/chains/definitions/bronos.js +1 -1
  501. package/_esm/chains/definitions/bronos.js.map +1 -1
  502. package/_esm/chains/definitions/bronosTestnet.js +1 -1
  503. package/_esm/chains/definitions/bronosTestnet.js.map +1 -1
  504. package/_esm/chains/definitions/bsc.js +1 -1
  505. package/_esm/chains/definitions/bsc.js.map +1 -1
  506. package/_esm/chains/definitions/bscTestnet.js +1 -1
  507. package/_esm/chains/definitions/bscTestnet.js.map +1 -1
  508. package/_esm/chains/definitions/bxn.js +1 -1
  509. package/_esm/chains/definitions/bxn.js.map +1 -1
  510. package/_esm/chains/definitions/bxnTestnet.js +1 -1
  511. package/_esm/chains/definitions/bxnTestnet.js.map +1 -1
  512. package/_esm/chains/definitions/canto.js +1 -1
  513. package/_esm/chains/definitions/canto.js.map +1 -1
  514. package/_esm/chains/definitions/celo.js +1 -1
  515. package/_esm/chains/definitions/celo.js.map +1 -1
  516. package/_esm/chains/definitions/celoAlfajores.js +1 -1
  517. package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
  518. package/_esm/chains/definitions/celoCannoli.js +1 -1
  519. package/_esm/chains/definitions/celoCannoli.js.map +1 -1
  520. package/_esm/chains/definitions/classic.js +1 -1
  521. package/_esm/chains/definitions/classic.js.map +1 -1
  522. package/_esm/chains/definitions/confluxESpace.js +1 -1
  523. package/_esm/chains/definitions/confluxESpace.js.map +1 -1
  524. package/_esm/chains/definitions/coreDao.js +1 -1
  525. package/_esm/chains/definitions/coreDao.js.map +1 -1
  526. package/_esm/chains/definitions/cronos.js +1 -1
  527. package/_esm/chains/definitions/cronos.js.map +1 -1
  528. package/_esm/chains/definitions/cronosTestnet.js +1 -1
  529. package/_esm/chains/definitions/cronosTestnet.js.map +1 -1
  530. package/_esm/chains/definitions/crossbell.js +1 -1
  531. package/_esm/chains/definitions/crossbell.js.map +1 -1
  532. package/_esm/chains/definitions/dfk.js +1 -1
  533. package/_esm/chains/definitions/dfk.js.map +1 -1
  534. package/_esm/chains/definitions/dogechain.js +1 -1
  535. package/_esm/chains/definitions/dogechain.js.map +1 -1
  536. package/_esm/chains/definitions/edgeware.js +1 -1
  537. package/_esm/chains/definitions/edgeware.js.map +1 -1
  538. package/_esm/chains/definitions/edgewareTestnet.js +1 -1
  539. package/_esm/chains/definitions/edgewareTestnet.js.map +1 -1
  540. package/_esm/chains/definitions/ekta.js +1 -1
  541. package/_esm/chains/definitions/ekta.js.map +1 -1
  542. package/_esm/chains/definitions/ektaTestnet.js +1 -1
  543. package/_esm/chains/definitions/ektaTestnet.js.map +1 -1
  544. package/_esm/chains/definitions/eon.js +1 -1
  545. package/_esm/chains/definitions/eon.js.map +1 -1
  546. package/_esm/chains/definitions/eos.js +1 -1
  547. package/_esm/chains/definitions/eos.js.map +1 -1
  548. package/_esm/chains/definitions/eosTestnet.js +1 -1
  549. package/_esm/chains/definitions/eosTestnet.js.map +1 -1
  550. package/_esm/chains/definitions/evmos.js +1 -1
  551. package/_esm/chains/definitions/evmos.js.map +1 -1
  552. package/_esm/chains/definitions/evmosTestnet.js +1 -1
  553. package/_esm/chains/definitions/evmosTestnet.js.map +1 -1
  554. package/_esm/chains/definitions/fantom.js +1 -1
  555. package/_esm/chains/definitions/fantom.js.map +1 -1
  556. package/_esm/chains/definitions/fantomTestnet.js +1 -1
  557. package/_esm/chains/definitions/fantomTestnet.js.map +1 -1
  558. package/_esm/chains/definitions/fibo.js +1 -1
  559. package/_esm/chains/definitions/fibo.js.map +1 -1
  560. package/_esm/chains/definitions/filecoin.js +1 -1
  561. package/_esm/chains/definitions/filecoin.js.map +1 -1
  562. package/_esm/chains/definitions/filecoinCalibration.js +1 -1
  563. package/_esm/chains/definitions/filecoinCalibration.js.map +1 -1
  564. package/_esm/chains/definitions/filecoinHyperspace.js +1 -1
  565. package/_esm/chains/definitions/filecoinHyperspace.js.map +1 -1
  566. package/_esm/chains/definitions/flare.js +1 -1
  567. package/_esm/chains/definitions/flare.js.map +1 -1
  568. package/_esm/chains/definitions/flareTestnet.js +1 -1
  569. package/_esm/chains/definitions/flareTestnet.js.map +1 -1
  570. package/_esm/chains/definitions/foundry.js +1 -1
  571. package/_esm/chains/definitions/foundry.js.map +1 -1
  572. package/_esm/chains/definitions/fuse.js +1 -1
  573. package/_esm/chains/definitions/fuse.js.map +1 -1
  574. package/_esm/chains/definitions/fuseSparknet.js +1 -1
  575. package/_esm/chains/definitions/fuseSparknet.js.map +1 -1
  576. package/_esm/chains/definitions/gnosis.js +1 -1
  577. package/_esm/chains/definitions/gnosis.js.map +1 -1
  578. package/_esm/chains/definitions/gnosisChiado.js +1 -1
  579. package/_esm/chains/definitions/gnosisChiado.js.map +1 -1
  580. package/_esm/chains/definitions/gobi.js +1 -1
  581. package/_esm/chains/definitions/gobi.js.map +1 -1
  582. package/_esm/chains/definitions/goerli.js +1 -1
  583. package/_esm/chains/definitions/goerli.js.map +1 -1
  584. package/_esm/chains/definitions/haqqMainnet.js +1 -1
  585. package/_esm/chains/definitions/haqqMainnet.js.map +1 -1
  586. package/_esm/chains/definitions/haqqTestedge2.js +1 -1
  587. package/_esm/chains/definitions/haqqTestedge2.js.map +1 -1
  588. package/_esm/chains/definitions/hardhat.js +1 -1
  589. package/_esm/chains/definitions/hardhat.js.map +1 -1
  590. package/_esm/chains/definitions/harmonyOne.js +1 -1
  591. package/_esm/chains/definitions/harmonyOne.js.map +1 -1
  592. package/_esm/chains/definitions/holesky.js +1 -1
  593. package/_esm/chains/definitions/holesky.js.map +1 -1
  594. package/_esm/chains/definitions/iotex.js +1 -1
  595. package/_esm/chains/definitions/iotex.js.map +1 -1
  596. package/_esm/chains/definitions/iotexTestnet.js +1 -1
  597. package/_esm/chains/definitions/iotexTestnet.js.map +1 -1
  598. package/_esm/chains/definitions/klaytn.js +1 -1
  599. package/_esm/chains/definitions/klaytn.js.map +1 -1
  600. package/_esm/chains/definitions/kroma.js +1 -1
  601. package/_esm/chains/definitions/kroma.js.map +1 -1
  602. package/_esm/chains/definitions/kromaSepolia.js +1 -1
  603. package/_esm/chains/definitions/kromaSepolia.js.map +1 -1
  604. package/_esm/chains/definitions/linea.js +1 -1
  605. package/_esm/chains/definitions/linea.js.map +1 -1
  606. package/_esm/chains/definitions/lineaTestnet.js +1 -1
  607. package/_esm/chains/definitions/lineaTestnet.js.map +1 -1
  608. package/_esm/chains/definitions/localhost.js +1 -1
  609. package/_esm/chains/definitions/localhost.js.map +1 -1
  610. package/_esm/chains/definitions/mainnet.js +1 -1
  611. package/_esm/chains/definitions/mainnet.js.map +1 -1
  612. package/_esm/chains/definitions/manta.js +32 -0
  613. package/_esm/chains/definitions/manta.js.map +1 -0
  614. package/_esm/chains/definitions/mantaTestnet.js +33 -0
  615. package/_esm/chains/definitions/mantaTestnet.js.map +1 -0
  616. package/_esm/chains/definitions/mantle.js +1 -1
  617. package/_esm/chains/definitions/mantle.js.map +1 -1
  618. package/_esm/chains/definitions/mantleTestnet.js +1 -1
  619. package/_esm/chains/definitions/mantleTestnet.js.map +1 -1
  620. package/_esm/chains/definitions/meter.js +1 -1
  621. package/_esm/chains/definitions/meter.js.map +1 -1
  622. package/_esm/chains/definitions/meterTestnet.js +1 -1
  623. package/_esm/chains/definitions/meterTestnet.js.map +1 -1
  624. package/_esm/chains/definitions/metis.js +1 -1
  625. package/_esm/chains/definitions/metis.js.map +1 -1
  626. package/_esm/chains/definitions/metisGoerli.js +1 -1
  627. package/_esm/chains/definitions/metisGoerli.js.map +1 -1
  628. package/_esm/chains/definitions/mev.js +1 -1
  629. package/_esm/chains/definitions/mev.js.map +1 -1
  630. package/_esm/chains/definitions/mevTestnet.js +1 -1
  631. package/_esm/chains/definitions/mevTestnet.js.map +1 -1
  632. package/_esm/chains/definitions/modeTestnet.js +7 -1
  633. package/_esm/chains/definitions/modeTestnet.js.map +1 -1
  634. package/_esm/chains/definitions/moonbaseAlpha.js +1 -1
  635. package/_esm/chains/definitions/moonbaseAlpha.js.map +1 -1
  636. package/_esm/chains/definitions/moonbeam.js +1 -1
  637. package/_esm/chains/definitions/moonbeam.js.map +1 -1
  638. package/_esm/chains/definitions/moonbeamDev.js +1 -1
  639. package/_esm/chains/definitions/moonbeamDev.js.map +1 -1
  640. package/_esm/chains/definitions/moonriver.js +1 -1
  641. package/_esm/chains/definitions/moonriver.js.map +1 -1
  642. package/_esm/chains/definitions/neonDevnet.js +1 -1
  643. package/_esm/chains/definitions/neonDevnet.js.map +1 -1
  644. package/_esm/chains/definitions/nexi.js +1 -1
  645. package/_esm/chains/definitions/nexi.js.map +1 -1
  646. package/_esm/chains/definitions/nexilix.js +1 -1
  647. package/_esm/chains/definitions/nexilix.js.map +1 -1
  648. package/_esm/chains/definitions/oasys.js +1 -1
  649. package/_esm/chains/definitions/oasys.js.map +1 -1
  650. package/_esm/chains/definitions/okc.js +1 -1
  651. package/_esm/chains/definitions/okc.js.map +1 -1
  652. package/_esm/chains/definitions/opBNB.js +1 -1
  653. package/_esm/chains/definitions/opBNB.js.map +1 -1
  654. package/_esm/chains/definitions/opBNBTestnet.js +1 -1
  655. package/_esm/chains/definitions/opBNBTestnet.js.map +1 -1
  656. package/_esm/chains/definitions/optimism.js +1 -1
  657. package/_esm/chains/definitions/optimism.js.map +1 -1
  658. package/_esm/chains/definitions/optimismGoerli.js +1 -1
  659. package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
  660. package/_esm/chains/definitions/optimismSepolia.js +1 -1
  661. package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
  662. package/_esm/chains/definitions/plinga.js +1 -1
  663. package/_esm/chains/definitions/plinga.js.map +1 -1
  664. package/_esm/chains/definitions/polygon.js +1 -1
  665. package/_esm/chains/definitions/polygon.js.map +1 -1
  666. package/_esm/chains/definitions/polygonMumbai.js +1 -1
  667. package/_esm/chains/definitions/polygonMumbai.js.map +1 -1
  668. package/_esm/chains/definitions/polygonZkEvm.js +1 -1
  669. package/_esm/chains/definitions/polygonZkEvm.js.map +1 -1
  670. package/_esm/chains/definitions/polygonZkEvmTestnet.js +1 -1
  671. package/_esm/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
  672. package/_esm/chains/definitions/pulsechain.js +1 -1
  673. package/_esm/chains/definitions/pulsechain.js.map +1 -1
  674. package/_esm/chains/definitions/pulsechainV4.js +1 -1
  675. package/_esm/chains/definitions/pulsechainV4.js.map +1 -1
  676. package/_esm/chains/definitions/qMainnet.js +1 -1
  677. package/_esm/chains/definitions/qMainnet.js.map +1 -1
  678. package/_esm/chains/definitions/qTestnet.js +1 -1
  679. package/_esm/chains/definitions/qTestnet.js.map +1 -1
  680. package/_esm/chains/definitions/rollux.js +1 -1
  681. package/_esm/chains/definitions/rollux.js.map +1 -1
  682. package/_esm/chains/definitions/rolluxTestnet.js +1 -1
  683. package/_esm/chains/definitions/rolluxTestnet.js.map +1 -1
  684. package/_esm/chains/definitions/ronin.js +1 -1
  685. package/_esm/chains/definitions/ronin.js.map +1 -1
  686. package/_esm/chains/definitions/saigon.js +1 -1
  687. package/_esm/chains/definitions/saigon.js.map +1 -1
  688. package/_esm/chains/definitions/scroll.js +1 -1
  689. package/_esm/chains/definitions/scroll.js.map +1 -1
  690. package/_esm/chains/definitions/scrollSepolia.js +1 -1
  691. package/_esm/chains/definitions/scrollSepolia.js.map +1 -1
  692. package/_esm/chains/definitions/scrollTestnet.js +1 -1
  693. package/_esm/chains/definitions/scrollTestnet.js.map +1 -1
  694. package/_esm/chains/definitions/sepolia.js +1 -1
  695. package/_esm/chains/definitions/sepolia.js.map +1 -1
  696. package/_esm/chains/definitions/shardeumSphinx.js +1 -1
  697. package/_esm/chains/definitions/shardeumSphinx.js.map +1 -1
  698. package/_esm/chains/definitions/skale/brawl.js +1 -1
  699. package/_esm/chains/definitions/skale/brawl.js.map +1 -1
  700. package/_esm/chains/definitions/skale/calypso.js +1 -1
  701. package/_esm/chains/definitions/skale/calypso.js.map +1 -1
  702. package/_esm/chains/definitions/skale/calypsoTestnet.js +1 -1
  703. package/_esm/chains/definitions/skale/calypsoTestnet.js.map +1 -1
  704. package/_esm/chains/definitions/skale/chaosTestnet.js +1 -1
  705. package/_esm/chains/definitions/skale/chaosTestnet.js.map +1 -1
  706. package/_esm/chains/definitions/skale/cryptoBlades.js +1 -1
  707. package/_esm/chains/definitions/skale/cryptoBlades.js.map +1 -1
  708. package/_esm/chains/definitions/skale/cryptoColosseum.js +1 -1
  709. package/_esm/chains/definitions/skale/cryptoColosseum.js.map +1 -1
  710. package/_esm/chains/definitions/skale/europa.js +1 -1
  711. package/_esm/chains/definitions/skale/europa.js.map +1 -1
  712. package/_esm/chains/definitions/skale/europaTestnet.js +1 -1
  713. package/_esm/chains/definitions/skale/europaTestnet.js.map +1 -1
  714. package/_esm/chains/definitions/skale/exorde.js +1 -1
  715. package/_esm/chains/definitions/skale/exorde.js.map +1 -1
  716. package/_esm/chains/definitions/skale/humanProtocol.js +1 -1
  717. package/_esm/chains/definitions/skale/humanProtocol.js.map +1 -1
  718. package/_esm/chains/definitions/skale/nebula.js +1 -1
  719. package/_esm/chains/definitions/skale/nebula.js.map +1 -1
  720. package/_esm/chains/definitions/skale/nebulaTestnet.js +1 -1
  721. package/_esm/chains/definitions/skale/nebulaTestnet.js.map +1 -1
  722. package/_esm/chains/definitions/skale/razor.js +1 -1
  723. package/_esm/chains/definitions/skale/razor.js.map +1 -1
  724. package/_esm/chains/definitions/skale/titan.js +1 -1
  725. package/_esm/chains/definitions/skale/titan.js.map +1 -1
  726. package/_esm/chains/definitions/skale/titanTestnet.js +1 -1
  727. package/_esm/chains/definitions/skale/titanTestnet.js.map +1 -1
  728. package/_esm/chains/definitions/songbird.js +1 -1
  729. package/_esm/chains/definitions/songbird.js.map +1 -1
  730. package/_esm/chains/definitions/songbirdTestnet.js +1 -1
  731. package/_esm/chains/definitions/songbirdTestnet.js.map +1 -1
  732. package/_esm/chains/definitions/syscoin.js +1 -1
  733. package/_esm/chains/definitions/syscoin.js.map +1 -1
  734. package/_esm/chains/definitions/syscoinTestnet.js +1 -1
  735. package/_esm/chains/definitions/syscoinTestnet.js.map +1 -1
  736. package/_esm/chains/definitions/taikoJolnir.js +1 -1
  737. package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
  738. package/_esm/chains/definitions/taikoTestnetSepolia.js +1 -1
  739. package/_esm/chains/definitions/taikoTestnetSepolia.js.map +1 -1
  740. package/_esm/chains/definitions/taraxa.js +1 -1
  741. package/_esm/chains/definitions/taraxa.js.map +1 -1
  742. package/_esm/chains/definitions/taraxaTestnet.js +1 -1
  743. package/_esm/chains/definitions/taraxaTestnet.js.map +1 -1
  744. package/_esm/chains/definitions/telos.js +1 -1
  745. package/_esm/chains/definitions/telos.js.map +1 -1
  746. package/_esm/chains/definitions/telosTestnet.js +1 -1
  747. package/_esm/chains/definitions/telosTestnet.js.map +1 -1
  748. package/_esm/chains/definitions/thunderTestnet.js +1 -1
  749. package/_esm/chains/definitions/thunderTestnet.js.map +1 -1
  750. package/_esm/chains/definitions/vechain.js +1 -1
  751. package/_esm/chains/definitions/vechain.js.map +1 -1
  752. package/_esm/chains/definitions/wanchain.js +1 -1
  753. package/_esm/chains/definitions/wanchain.js.map +1 -1
  754. package/_esm/chains/definitions/wanchainTestnet.js +1 -1
  755. package/_esm/chains/definitions/wanchainTestnet.js.map +1 -1
  756. package/_esm/chains/definitions/xdc.js +1 -1
  757. package/_esm/chains/definitions/xdc.js.map +1 -1
  758. package/_esm/chains/definitions/xdcTestnet.js +1 -1
  759. package/_esm/chains/definitions/xdcTestnet.js.map +1 -1
  760. package/_esm/chains/definitions/zetachainAthensTestnet.js +1 -1
  761. package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -1
  762. package/_esm/chains/definitions/zhejiang.js +1 -1
  763. package/_esm/chains/definitions/zhejiang.js.map +1 -1
  764. package/_esm/chains/definitions/zkSync.js +7 -1
  765. package/_esm/chains/definitions/zkSync.js.map +1 -1
  766. package/_esm/chains/definitions/zkSyncTestnet.js +7 -1
  767. package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
  768. package/_esm/chains/definitions/zora.js +1 -1
  769. package/_esm/chains/definitions/zora.js.map +1 -1
  770. package/_esm/chains/definitions/zoraSepolia.js +38 -0
  771. package/_esm/chains/definitions/zoraSepolia.js.map +1 -0
  772. package/_esm/chains/definitions/zoraTestnet.js +1 -1
  773. package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
  774. package/_esm/chains/index.js +5 -0
  775. package/_esm/chains/index.js.map +1 -1
  776. package/_esm/chains/utils.js +5 -0
  777. package/_esm/chains/utils.js.map +1 -1
  778. package/_esm/chains/zksync/formatters.js +122 -0
  779. package/_esm/chains/zksync/formatters.js.map +1 -0
  780. package/_esm/chains/zksync/serializers.js +71 -0
  781. package/_esm/chains/zksync/serializers.js.map +1 -0
  782. package/_esm/chains/zksync/types.js +2 -0
  783. package/_esm/chains/zksync/types.js.map +1 -0
  784. package/_esm/clients/createClient.js.map +1 -1
  785. package/_esm/clients/decorators/public.js.map +1 -1
  786. package/_esm/errors/node.js +22 -11
  787. package/_esm/errors/node.js.map +1 -1
  788. package/_esm/errors/rpc.js +36 -18
  789. package/_esm/errors/rpc.js.map +1 -1
  790. package/_esm/errors/version.js +1 -1
  791. package/_esm/index.js +4 -1
  792. package/_esm/index.js.map +1 -1
  793. package/_esm/utils/abi/decodeEventLog.js +9 -11
  794. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  795. package/_esm/utils/chain/assertCurrentChain.js +8 -0
  796. package/_esm/utils/chain/assertCurrentChain.js.map +1 -0
  797. package/_esm/utils/chain/defineChain.js +10 -0
  798. package/_esm/utils/chain/defineChain.js.map +1 -0
  799. package/_esm/utils/chain/extractChain.js +4 -0
  800. package/_esm/utils/chain/extractChain.js.map +1 -0
  801. package/_esm/utils/chain/getChainContractAddress.js +22 -0
  802. package/_esm/utils/chain/getChainContractAddress.js.map +1 -0
  803. package/_esm/utils/formatters/extract.js +16 -9
  804. package/_esm/utils/formatters/extract.js.map +1 -1
  805. package/_esm/utils/getAction.js +4 -0
  806. package/_esm/utils/getAction.js.map +1 -0
  807. package/_esm/utils/index.js +4 -1
  808. package/_esm/utils/index.js.map +1 -1
  809. package/_types/actions/ens/getEnsAddress.d.ts +1 -1
  810. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  811. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  812. package/_types/actions/ens/getEnsName.d.ts +1 -1
  813. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  814. package/_types/actions/ens/getEnsResolver.d.ts +1 -1
  815. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  816. package/_types/actions/ens/getEnsText.d.ts +1 -1
  817. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  818. package/_types/actions/getContract.d.ts.map +1 -1
  819. package/_types/actions/public/call.d.ts +1 -1
  820. package/_types/actions/public/call.d.ts.map +1 -1
  821. package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
  822. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
  823. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  824. package/_types/actions/public/getContractEvents.d.ts.map +1 -1
  825. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  826. package/_types/actions/public/multicall.d.ts +1 -1
  827. package/_types/actions/public/multicall.d.ts.map +1 -1
  828. package/_types/actions/public/readContract.d.ts.map +1 -1
  829. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  830. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  831. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  832. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  833. package/_types/actions/public/watchBlocks.d.ts.map +1 -1
  834. package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
  835. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  836. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  837. package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
  838. package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
  839. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  840. package/_types/actions/wallet/sendTransaction.d.ts +2 -2
  841. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  842. package/_types/actions/wallet/signTransaction.d.ts +2 -2
  843. package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
  844. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  845. package/_types/chains/celo/formatters.d.ts +196 -10
  846. package/_types/chains/celo/formatters.d.ts.map +1 -1
  847. package/_types/chains/celo/parsers.d.ts.map +1 -1
  848. package/_types/chains/celo/serializers.d.ts +3 -1
  849. package/_types/chains/celo/serializers.d.ts.map +1 -1
  850. package/_types/chains/celo/types.d.ts +39 -7
  851. package/_types/chains/celo/types.d.ts.map +1 -1
  852. package/_types/chains/definitions/arbitrum.d.ts +3 -3
  853. package/_types/chains/definitions/arbitrumGoerli.d.ts +8 -4
  854. package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -1
  855. package/_types/chains/definitions/arbitrumNova.d.ts +3 -3
  856. package/_types/chains/definitions/arbitrumSepolia.d.ts +3 -3
  857. package/_types/chains/definitions/astarZkatana.d.ts +39 -0
  858. package/_types/chains/definitions/astarZkatana.d.ts.map +1 -0
  859. package/_types/chains/definitions/aurora.d.ts +3 -3
  860. package/_types/chains/definitions/auroraTestnet.d.ts +3 -3
  861. package/_types/chains/definitions/avalanche.d.ts +3 -3
  862. package/_types/chains/definitions/avalancheFuji.d.ts +3 -3
  863. package/_types/chains/definitions/baseSepolia.d.ts +1525 -0
  864. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -0
  865. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +3 -3
  866. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +3 -3
  867. package/_types/chains/definitions/boba.d.ts +3 -3
  868. package/_types/chains/definitions/bronos.d.ts +3 -3
  869. package/_types/chains/definitions/bronosTestnet.d.ts +3 -3
  870. package/_types/chains/definitions/bsc.d.ts +3 -3
  871. package/_types/chains/definitions/bscTestnet.d.ts +3 -3
  872. package/_types/chains/definitions/bxn.d.ts +3 -3
  873. package/_types/chains/definitions/bxnTestnet.d.ts +3 -3
  874. package/_types/chains/definitions/canto.d.ts +3 -3
  875. package/_types/chains/definitions/celo.d.ts +588 -30
  876. package/_types/chains/definitions/celo.d.ts.map +1 -1
  877. package/_types/chains/definitions/celoAlfajores.d.ts +588 -30
  878. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  879. package/_types/chains/definitions/celoCannoli.d.ts +588 -30
  880. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
  881. package/_types/chains/definitions/classic.d.ts +3 -3
  882. package/_types/chains/definitions/confluxESpace.d.ts +3 -3
  883. package/_types/chains/definitions/coreDao.d.ts +3 -3
  884. package/_types/chains/definitions/cronos.d.ts +3 -3
  885. package/_types/chains/definitions/cronosTestnet.d.ts +3 -3
  886. package/_types/chains/definitions/crossbell.d.ts +3 -3
  887. package/_types/chains/definitions/dfk.d.ts +3 -3
  888. package/_types/chains/definitions/dogechain.d.ts +3 -3
  889. package/_types/chains/definitions/edgeware.d.ts +3 -3
  890. package/_types/chains/definitions/edgewareTestnet.d.ts +3 -3
  891. package/_types/chains/definitions/ekta.d.ts +3 -3
  892. package/_types/chains/definitions/ektaTestnet.d.ts +3 -3
  893. package/_types/chains/definitions/eon.d.ts +3 -3
  894. package/_types/chains/definitions/eos.d.ts +3 -3
  895. package/_types/chains/definitions/eosTestnet.d.ts +3 -3
  896. package/_types/chains/definitions/evmos.d.ts +3 -3
  897. package/_types/chains/definitions/evmosTestnet.d.ts +3 -3
  898. package/_types/chains/definitions/fantom.d.ts +3 -3
  899. package/_types/chains/definitions/fantomTestnet.d.ts +3 -3
  900. package/_types/chains/definitions/fibo.d.ts +3 -3
  901. package/_types/chains/definitions/filecoin.d.ts +3 -3
  902. package/_types/chains/definitions/filecoinCalibration.d.ts +3 -3
  903. package/_types/chains/definitions/filecoinHyperspace.d.ts +3 -3
  904. package/_types/chains/definitions/flare.d.ts +3 -3
  905. package/_types/chains/definitions/flareTestnet.d.ts +3 -3
  906. package/_types/chains/definitions/foundry.d.ts +3 -3
  907. package/_types/chains/definitions/fuse.d.ts +3 -3
  908. package/_types/chains/definitions/fuseSparknet.d.ts +3 -3
  909. package/_types/chains/definitions/gnosis.d.ts +3 -3
  910. package/_types/chains/definitions/gnosisChiado.d.ts +3 -3
  911. package/_types/chains/definitions/gobi.d.ts +3 -3
  912. package/_types/chains/definitions/goerli.d.ts +3 -3
  913. package/_types/chains/definitions/haqqMainnet.d.ts +3 -3
  914. package/_types/chains/definitions/haqqTestedge2.d.ts +3 -3
  915. package/_types/chains/definitions/hardhat.d.ts +3 -3
  916. package/_types/chains/definitions/harmonyOne.d.ts +3 -3
  917. package/_types/chains/definitions/holesky.d.ts +3 -3
  918. package/_types/chains/definitions/iotex.d.ts +3 -3
  919. package/_types/chains/definitions/iotexTestnet.d.ts +3 -3
  920. package/_types/chains/definitions/klaytn.d.ts +3 -3
  921. package/_types/chains/definitions/kroma.d.ts +3 -3
  922. package/_types/chains/definitions/kromaSepolia.d.ts +3 -3
  923. package/_types/chains/definitions/linea.d.ts +3 -3
  924. package/_types/chains/definitions/lineaTestnet.d.ts +3 -3
  925. package/_types/chains/definitions/localhost.d.ts +3 -3
  926. package/_types/chains/definitions/mainnet.d.ts +3 -3
  927. package/_types/chains/definitions/manta.d.ts +38 -0
  928. package/_types/chains/definitions/manta.d.ts.map +1 -0
  929. package/_types/chains/definitions/mantaTestnet.d.ts +39 -0
  930. package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -0
  931. package/_types/chains/definitions/mantle.d.ts +3 -3
  932. package/_types/chains/definitions/mantleTestnet.d.ts +3 -3
  933. package/_types/chains/definitions/meter.d.ts +3 -3
  934. package/_types/chains/definitions/meterTestnet.d.ts +3 -3
  935. package/_types/chains/definitions/metis.d.ts +3 -3
  936. package/_types/chains/definitions/metisGoerli.d.ts +3 -3
  937. package/_types/chains/definitions/mev.d.ts +3 -3
  938. package/_types/chains/definitions/mevTestnet.d.ts +3 -3
  939. package/_types/chains/definitions/modeTestnet.d.ts +9 -3
  940. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -1
  941. package/_types/chains/definitions/moonbaseAlpha.d.ts +3 -3
  942. package/_types/chains/definitions/moonbeam.d.ts +3 -3
  943. package/_types/chains/definitions/moonbeamDev.d.ts +3 -3
  944. package/_types/chains/definitions/moonriver.d.ts +3 -3
  945. package/_types/chains/definitions/neonDevnet.d.ts +3 -3
  946. package/_types/chains/definitions/nexi.d.ts +3 -3
  947. package/_types/chains/definitions/nexilix.d.ts +3 -3
  948. package/_types/chains/definitions/oasys.d.ts +3 -3
  949. package/_types/chains/definitions/okc.d.ts +3 -3
  950. package/_types/chains/definitions/opBNB.d.ts +3 -3
  951. package/_types/chains/definitions/opBNBTestnet.d.ts +3 -3
  952. package/_types/chains/definitions/plinga.d.ts +3 -3
  953. package/_types/chains/definitions/polygon.d.ts +3 -3
  954. package/_types/chains/definitions/polygonMumbai.d.ts +3 -3
  955. package/_types/chains/definitions/polygonZkEvm.d.ts +3 -3
  956. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +3 -3
  957. package/_types/chains/definitions/pulsechain.d.ts +3 -3
  958. package/_types/chains/definitions/pulsechainV4.d.ts +3 -3
  959. package/_types/chains/definitions/qMainnet.d.ts +3 -3
  960. package/_types/chains/definitions/qTestnet.d.ts +3 -3
  961. package/_types/chains/definitions/rollux.d.ts +3 -3
  962. package/_types/chains/definitions/rolluxTestnet.d.ts +3 -3
  963. package/_types/chains/definitions/ronin.d.ts +3 -3
  964. package/_types/chains/definitions/saigon.d.ts +3 -3
  965. package/_types/chains/definitions/scroll.d.ts +3 -3
  966. package/_types/chains/definitions/scrollSepolia.d.ts +3 -3
  967. package/_types/chains/definitions/scrollTestnet.d.ts +3 -3
  968. package/_types/chains/definitions/sepolia.d.ts +3 -3
  969. package/_types/chains/definitions/shardeumSphinx.d.ts +3 -3
  970. package/_types/chains/definitions/skale/brawl.d.ts +3 -3
  971. package/_types/chains/definitions/skale/calypso.d.ts +3 -3
  972. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +3 -3
  973. package/_types/chains/definitions/skale/chaosTestnet.d.ts +3 -3
  974. package/_types/chains/definitions/skale/cryptoBlades.d.ts +3 -3
  975. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +3 -3
  976. package/_types/chains/definitions/skale/europa.d.ts +3 -3
  977. package/_types/chains/definitions/skale/europaTestnet.d.ts +3 -3
  978. package/_types/chains/definitions/skale/exorde.d.ts +3 -3
  979. package/_types/chains/definitions/skale/humanProtocol.d.ts +3 -3
  980. package/_types/chains/definitions/skale/nebula.d.ts +3 -3
  981. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +3 -3
  982. package/_types/chains/definitions/skale/razor.d.ts +3 -3
  983. package/_types/chains/definitions/skale/titan.d.ts +3 -3
  984. package/_types/chains/definitions/skale/titanTestnet.d.ts +3 -3
  985. package/_types/chains/definitions/songbird.d.ts +3 -3
  986. package/_types/chains/definitions/songbirdTestnet.d.ts +3 -3
  987. package/_types/chains/definitions/syscoin.d.ts +3 -3
  988. package/_types/chains/definitions/syscoinTestnet.d.ts +3 -3
  989. package/_types/chains/definitions/taikoJolnir.d.ts +3 -3
  990. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +3 -3
  991. package/_types/chains/definitions/taraxa.d.ts +3 -3
  992. package/_types/chains/definitions/taraxaTestnet.d.ts +3 -3
  993. package/_types/chains/definitions/telos.d.ts +3 -3
  994. package/_types/chains/definitions/telosTestnet.d.ts +3 -3
  995. package/_types/chains/definitions/thunderTestnet.d.ts +3 -3
  996. package/_types/chains/definitions/vechain.d.ts +3 -3
  997. package/_types/chains/definitions/wanchain.d.ts +3 -3
  998. package/_types/chains/definitions/wanchainTestnet.d.ts +3 -3
  999. package/_types/chains/definitions/xdc.d.ts +3 -3
  1000. package/_types/chains/definitions/xdcTestnet.d.ts +3 -3
  1001. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +3 -3
  1002. package/_types/chains/definitions/zhejiang.d.ts +3 -3
  1003. package/_types/chains/definitions/zkSync.d.ts +1453 -3
  1004. package/_types/chains/definitions/zkSync.d.ts.map +1 -1
  1005. package/_types/chains/definitions/zkSyncTestnet.d.ts +1453 -3
  1006. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  1007. package/_types/chains/definitions/zoraSepolia.d.ts +1528 -0
  1008. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -0
  1009. package/_types/chains/index.d.ts +6 -1
  1010. package/_types/chains/index.d.ts.map +1 -1
  1011. package/_types/chains/utils.d.ts +7 -1
  1012. package/_types/chains/utils.d.ts.map +1 -1
  1013. package/_types/chains/zksync/formatters.d.ts +487 -0
  1014. package/_types/chains/zksync/formatters.d.ts.map +1 -0
  1015. package/_types/chains/zksync/serializers.d.ts +9 -0
  1016. package/_types/chains/zksync/serializers.d.ts.map +1 -0
  1017. package/_types/chains/zksync/types.d.ts +158 -0
  1018. package/_types/chains/zksync/types.d.ts.map +1 -0
  1019. package/_types/clients/createClient.d.ts +6 -2
  1020. package/_types/clients/createClient.d.ts.map +1 -1
  1021. package/_types/clients/decorators/public.d.ts +3 -3
  1022. package/_types/clients/decorators/public.d.ts.map +1 -1
  1023. package/_types/errors/version.d.ts +1 -1
  1024. package/_types/index.d.ts +4 -1
  1025. package/_types/index.d.ts.map +1 -1
  1026. package/_types/types/chain.d.ts +3 -0
  1027. package/_types/types/chain.d.ts.map +1 -1
  1028. package/_types/types/utils.d.ts.map +1 -1
  1029. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  1030. package/_types/utils/chain/assertCurrentChain.d.ts +10 -0
  1031. package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -0
  1032. package/_types/utils/chain/defineChain.d.ts +4 -0
  1033. package/_types/utils/chain/defineChain.d.ts.map +1 -0
  1034. package/_types/utils/chain/extractChain.d.ts +10 -0
  1035. package/_types/utils/chain/extractChain.d.ts.map +1 -0
  1036. package/_types/utils/chain/getChainContractAddress.d.ts +9 -0
  1037. package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -0
  1038. package/_types/utils/formatters/block.d.ts +1 -1
  1039. package/_types/utils/formatters/extract.d.ts +2 -2
  1040. package/_types/utils/formatters/extract.d.ts.map +1 -1
  1041. package/_types/utils/formatters/formatter.d.ts +1 -1
  1042. package/_types/utils/formatters/transaction.d.ts +1 -1
  1043. package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
  1044. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  1045. package/_types/utils/getAction.d.ts +3 -0
  1046. package/_types/utils/getAction.d.ts.map +1 -0
  1047. package/_types/utils/index.d.ts +4 -1
  1048. package/_types/utils/index.d.ts.map +1 -1
  1049. package/actions/ens/getEnsAddress.ts +7 -3
  1050. package/actions/ens/getEnsAvatar.ts +5 -1
  1051. package/actions/ens/getEnsName.ts +6 -2
  1052. package/actions/ens/getEnsResolver.ts +6 -2
  1053. package/actions/ens/getEnsText.ts +6 -2
  1054. package/actions/getContract.ts +29 -7
  1055. package/actions/public/call.ts +6 -6
  1056. package/actions/public/estimateContractGas.ts +15 -2
  1057. package/actions/public/estimateFeesPerGas.ts +4 -2
  1058. package/actions/public/estimateGas.ts +4 -4
  1059. package/actions/public/estimateMaxPriorityFeePerGas.ts +4 -3
  1060. package/actions/public/getContractEvents.ts +5 -1
  1061. package/actions/public/getTransactionConfirmations.ts +3 -2
  1062. package/actions/public/multicall.ts +6 -2
  1063. package/actions/public/readContract.ts +11 -2
  1064. package/actions/public/simulateContract.ts +5 -1
  1065. package/actions/public/verifyHash.ts +6 -2
  1066. package/actions/public/verifyMessage.ts +1 -1
  1067. package/actions/public/verifyTypedData.ts +1 -1
  1068. package/actions/public/waitForTransactionReceipt.ts +19 -6
  1069. package/actions/public/watchBlockNumber.ts +5 -1
  1070. package/actions/public/watchBlocks.ts +10 -3
  1071. package/actions/public/watchContractEvent.ts +12 -5
  1072. package/actions/public/watchEvent.ts +12 -5
  1073. package/actions/public/watchPendingTransactions.ts +7 -3
  1074. package/actions/test/sendUnsignedTransaction.ts +4 -4
  1075. package/actions/wallet/getAddresses.ts +1 -0
  1076. package/actions/wallet/prepareTransactionRequest.ts +11 -4
  1077. package/actions/wallet/sendRawTransaction.ts +1 -1
  1078. package/actions/wallet/sendTransaction.ts +17 -9
  1079. package/actions/wallet/signTransaction.ts +5 -4
  1080. package/actions/wallet/writeContract.ts +12 -3
  1081. package/chains/celo/formatters.ts +39 -5
  1082. package/chains/celo/parsers.ts +82 -1
  1083. package/chains/celo/serializers.ts +121 -9
  1084. package/chains/celo/types.ts +60 -2
  1085. package/chains/definitions/arbitrum.ts +1 -1
  1086. package/chains/definitions/arbitrumGoerli.ts +3 -2
  1087. package/chains/definitions/arbitrumNova.ts +1 -1
  1088. package/chains/definitions/arbitrumSepolia.ts +1 -1
  1089. package/chains/definitions/astarZkatana.ts +39 -0
  1090. package/chains/definitions/aurora.ts +1 -1
  1091. package/chains/definitions/auroraTestnet.ts +1 -1
  1092. package/chains/definitions/avalanche.ts +1 -1
  1093. package/chains/definitions/avalancheFuji.ts +1 -1
  1094. package/chains/definitions/base.ts +1 -1
  1095. package/chains/definitions/baseGoerli.ts +1 -1
  1096. package/chains/definitions/baseSepolia.ts +34 -0
  1097. package/chains/definitions/bearNetworkChainMainnet.ts +1 -1
  1098. package/chains/definitions/bearNetworkChainTestnet.ts +1 -1
  1099. package/chains/definitions/boba.ts +1 -1
  1100. package/chains/definitions/bronos.ts +1 -1
  1101. package/chains/definitions/bronosTestnet.ts +1 -1
  1102. package/chains/definitions/bsc.ts +1 -1
  1103. package/chains/definitions/bscTestnet.ts +1 -1
  1104. package/chains/definitions/bxn.ts +1 -1
  1105. package/chains/definitions/bxnTestnet.ts +1 -1
  1106. package/chains/definitions/canto.ts +1 -1
  1107. package/chains/definitions/celo.ts +1 -1
  1108. package/chains/definitions/celoAlfajores.ts +1 -1
  1109. package/chains/definitions/celoCannoli.ts +1 -1
  1110. package/chains/definitions/classic.ts +1 -1
  1111. package/chains/definitions/confluxESpace.ts +1 -1
  1112. package/chains/definitions/coreDao.ts +1 -1
  1113. package/chains/definitions/cronos.ts +1 -1
  1114. package/chains/definitions/cronosTestnet.ts +1 -1
  1115. package/chains/definitions/crossbell.ts +1 -1
  1116. package/chains/definitions/dfk.ts +1 -1
  1117. package/chains/definitions/dogechain.ts +1 -1
  1118. package/chains/definitions/edgeware.ts +1 -1
  1119. package/chains/definitions/edgewareTestnet.ts +1 -1
  1120. package/chains/definitions/ekta.ts +1 -1
  1121. package/chains/definitions/ektaTestnet.ts +1 -1
  1122. package/chains/definitions/eon.ts +1 -1
  1123. package/chains/definitions/eos.ts +1 -1
  1124. package/chains/definitions/eosTestnet.ts +1 -1
  1125. package/chains/definitions/evmos.ts +1 -1
  1126. package/chains/definitions/evmosTestnet.ts +1 -1
  1127. package/chains/definitions/fantom.ts +1 -1
  1128. package/chains/definitions/fantomTestnet.ts +1 -1
  1129. package/chains/definitions/fibo.ts +1 -1
  1130. package/chains/definitions/filecoin.ts +1 -1
  1131. package/chains/definitions/filecoinCalibration.ts +1 -1
  1132. package/chains/definitions/filecoinHyperspace.ts +1 -1
  1133. package/chains/definitions/flare.ts +1 -1
  1134. package/chains/definitions/flareTestnet.ts +1 -1
  1135. package/chains/definitions/foundry.ts +1 -1
  1136. package/chains/definitions/fuse.ts +1 -1
  1137. package/chains/definitions/fuseSparknet.ts +1 -1
  1138. package/chains/definitions/gnosis.ts +1 -1
  1139. package/chains/definitions/gnosisChiado.ts +1 -1
  1140. package/chains/definitions/gobi.ts +1 -1
  1141. package/chains/definitions/goerli.ts +1 -1
  1142. package/chains/definitions/haqqMainnet.ts +1 -1
  1143. package/chains/definitions/haqqTestedge2.ts +1 -1
  1144. package/chains/definitions/hardhat.ts +1 -1
  1145. package/chains/definitions/harmonyOne.ts +1 -1
  1146. package/chains/definitions/holesky.ts +1 -1
  1147. package/chains/definitions/iotex.ts +1 -1
  1148. package/chains/definitions/iotexTestnet.ts +1 -1
  1149. package/chains/definitions/klaytn.ts +1 -1
  1150. package/chains/definitions/kroma.ts +1 -1
  1151. package/chains/definitions/kromaSepolia.ts +1 -1
  1152. package/chains/definitions/linea.ts +1 -1
  1153. package/chains/definitions/lineaTestnet.ts +1 -1
  1154. package/chains/definitions/localhost.ts +1 -1
  1155. package/chains/definitions/mainnet.ts +3 -3
  1156. package/chains/definitions/manta.ts +32 -0
  1157. package/chains/definitions/mantaTestnet.ts +33 -0
  1158. package/chains/definitions/mantle.ts +1 -1
  1159. package/chains/definitions/mantleTestnet.ts +1 -1
  1160. package/chains/definitions/meter.ts +1 -1
  1161. package/chains/definitions/meterTestnet.ts +1 -1
  1162. package/chains/definitions/metis.ts +1 -1
  1163. package/chains/definitions/metisGoerli.ts +1 -1
  1164. package/chains/definitions/mev.ts +1 -1
  1165. package/chains/definitions/mevTestnet.ts +1 -1
  1166. package/chains/definitions/modeTestnet.ts +7 -1
  1167. package/chains/definitions/moonbaseAlpha.ts +1 -1
  1168. package/chains/definitions/moonbeam.ts +1 -1
  1169. package/chains/definitions/moonbeamDev.ts +1 -1
  1170. package/chains/definitions/moonriver.ts +1 -1
  1171. package/chains/definitions/neonDevnet.ts +1 -1
  1172. package/chains/definitions/nexi.ts +1 -1
  1173. package/chains/definitions/nexilix.ts +1 -1
  1174. package/chains/definitions/oasys.ts +1 -1
  1175. package/chains/definitions/okc.ts +1 -1
  1176. package/chains/definitions/opBNB.ts +1 -1
  1177. package/chains/definitions/opBNBTestnet.ts +1 -1
  1178. package/chains/definitions/optimism.ts +1 -1
  1179. package/chains/definitions/optimismGoerli.ts +1 -1
  1180. package/chains/definitions/optimismSepolia.ts +1 -1
  1181. package/chains/definitions/plinga.ts +1 -1
  1182. package/chains/definitions/polygon.ts +1 -1
  1183. package/chains/definitions/polygonMumbai.ts +1 -1
  1184. package/chains/definitions/polygonZkEvm.ts +1 -1
  1185. package/chains/definitions/polygonZkEvmTestnet.ts +1 -1
  1186. package/chains/definitions/pulsechain.ts +1 -1
  1187. package/chains/definitions/pulsechainV4.ts +1 -1
  1188. package/chains/definitions/qMainnet.ts +1 -1
  1189. package/chains/definitions/qTestnet.ts +1 -1
  1190. package/chains/definitions/rollux.ts +1 -1
  1191. package/chains/definitions/rolluxTestnet.ts +1 -1
  1192. package/chains/definitions/ronin.ts +1 -1
  1193. package/chains/definitions/saigon.ts +1 -1
  1194. package/chains/definitions/scroll.ts +1 -1
  1195. package/chains/definitions/scrollSepolia.ts +1 -1
  1196. package/chains/definitions/scrollTestnet.ts +1 -1
  1197. package/chains/definitions/sepolia.ts +1 -1
  1198. package/chains/definitions/shardeumSphinx.ts +1 -1
  1199. package/chains/definitions/skale/brawl.ts +1 -1
  1200. package/chains/definitions/skale/calypso.ts +1 -1
  1201. package/chains/definitions/skale/calypsoTestnet.ts +1 -1
  1202. package/chains/definitions/skale/chaosTestnet.ts +1 -1
  1203. package/chains/definitions/skale/cryptoBlades.ts +1 -1
  1204. package/chains/definitions/skale/cryptoColosseum.ts +1 -1
  1205. package/chains/definitions/skale/europa.ts +1 -1
  1206. package/chains/definitions/skale/europaTestnet.ts +1 -1
  1207. package/chains/definitions/skale/exorde.ts +1 -1
  1208. package/chains/definitions/skale/humanProtocol.ts +1 -1
  1209. package/chains/definitions/skale/nebula.ts +1 -1
  1210. package/chains/definitions/skale/nebulaTestnet.ts +1 -1
  1211. package/chains/definitions/skale/razor.ts +1 -1
  1212. package/chains/definitions/skale/titan.ts +1 -1
  1213. package/chains/definitions/skale/titanTestnet.ts +1 -1
  1214. package/chains/definitions/songbird.ts +1 -1
  1215. package/chains/definitions/songbirdTestnet.ts +1 -1
  1216. package/chains/definitions/syscoin.ts +1 -1
  1217. package/chains/definitions/syscoinTestnet.ts +1 -1
  1218. package/chains/definitions/taikoJolnir.ts +1 -1
  1219. package/chains/definitions/taikoTestnetSepolia.ts +1 -1
  1220. package/chains/definitions/taraxa.ts +1 -1
  1221. package/chains/definitions/taraxaTestnet.ts +1 -1
  1222. package/chains/definitions/telos.ts +1 -1
  1223. package/chains/definitions/telosTestnet.ts +1 -1
  1224. package/chains/definitions/thunderTestnet.ts +1 -1
  1225. package/chains/definitions/vechain.ts +1 -1
  1226. package/chains/definitions/wanchain.ts +1 -1
  1227. package/chains/definitions/wanchainTestnet.ts +1 -1
  1228. package/chains/definitions/xdc.ts +1 -1
  1229. package/chains/definitions/xdcTestnet.ts +1 -1
  1230. package/chains/definitions/zetachainAthensTestnet.ts +1 -1
  1231. package/chains/definitions/zhejiang.ts +1 -1
  1232. package/chains/definitions/zkSync.ts +32 -23
  1233. package/chains/definitions/zkSyncTestnet.ts +29 -20
  1234. package/chains/definitions/zora.ts +1 -1
  1235. package/chains/definitions/zoraSepolia.ts +41 -0
  1236. package/chains/definitions/zoraTestnet.ts +1 -1
  1237. package/chains/index.ts +6 -1
  1238. package/chains/utils.ts +54 -0
  1239. package/chains/zksync/formatters.ts +142 -0
  1240. package/chains/zksync/serializers.ts +124 -0
  1241. package/chains/zksync/types.ts +317 -0
  1242. package/clients/createClient.ts +39 -2
  1243. package/clients/decorators/public.ts +7 -3
  1244. package/clients/decorators/wallet.ts +2 -2
  1245. package/errors/version.ts +1 -1
  1246. package/index.ts +11 -3
  1247. package/package.json +1 -1
  1248. package/types/chain.ts +5 -0
  1249. package/types/utils.ts +1 -1
  1250. package/utils/abi/decodeEventLog.ts +9 -11
  1251. package/utils/ccip.ts +1 -1
  1252. package/utils/chain/assertCurrentChain.ts +27 -0
  1253. package/utils/chain/defineChain.ts +22 -0
  1254. package/utils/chain/extractChain.ts +33 -0
  1255. package/utils/chain/getChainContractAddress.ts +41 -0
  1256. package/utils/formatters/extract.ts +20 -9
  1257. package/utils/formatters/formatter.ts +1 -1
  1258. package/utils/getAction.ts +13 -0
  1259. package/utils/index.ts +13 -4
  1260. package/utils/rpc.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,69 @@
1
1
  # viem
2
2
 
3
+ ## 1.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1409](https://github.com/wagmi-dev/viem/pull/1409) [`229e2d56`](https://github.com/wagmi-dev/viem/commit/229e2d565d9d07b9208753f46668378dccf3d399) Thanks [@qbzzt](https://github.com/qbzzt)! - Fixed Holesky public RPC URL.
8
+
9
+ ## 1.18.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1402](https://github.com/wagmi-dev/viem/pull/1402) [`09778291`](https://github.com/wagmi-dev/viem/commit/0977829160effbe7dac5a69f43d263605544fa19) Thanks [@jxom](https://github.com/jxom)! - Added `extractChain` utility.
14
+
15
+ - [#1388](https://github.com/wagmi-dev/viem/pull/1388) [`d872061d`](https://github.com/wagmi-dev/viem/commit/d872061d1c6a791142027e59e39cfa44d9780631) Thanks [@speeddragon](https://github.com/speeddragon)! - Added ZkSync serializers
16
+
17
+ - [#1379](https://github.com/wagmi-dev/viem/pull/1379) [`fb395900`](https://github.com/wagmi-dev/viem/commit/fb3959009ad79a258316389e29d917869d23ff5e) Thanks [@yerdua](https://github.com/yerdua)! - Added support for Celo CIP-64 transactions
18
+
19
+ - [#1361](https://github.com/wagmi-dev/viem/pull/1361) [`70593019`](https://github.com/wagmi-dev/viem/commit/70593019d364a230a7cec87c2832e2135d8fedb8) Thanks [@speeddragon](https://github.com/speeddragon)! - Added ZkSync formatters.
20
+
21
+ ## 1.17.2
22
+
23
+ ### Patch Changes
24
+
25
+ - [#1399](https://github.com/wagmi-dev/viem/pull/1399) [`210e2b94`](https://github.com/wagmi-dev/viem/commit/210e2b943d6d04ab130151dfdb5a94e590e42fd4) Thanks [@codespool](https://github.com/codespool)! - Added multicall3 contract to astarZkatana
26
+
27
+ - [#1395](https://github.com/wagmi-dev/viem/pull/1395) [`1e206f46`](https://github.com/wagmi-dev/viem/commit/1e206f460ad21e2525bfc28ef89fd524b1dfaf2e) Thanks [@linchengzzz](https://github.com/linchengzzz)! - Added Manta Pacific Mainnet & Testnet
28
+
29
+ ## 1.17.1
30
+
31
+ ### Patch Changes
32
+
33
+ - [#1391](https://github.com/wagmi-dev/viem/pull/1391) [`437c0e5a`](https://github.com/wagmi-dev/viem/commit/437c0e5a023bc551c35e5a65da6f2a6a2e409bd7) Thanks [@IsabellaSmallcombe](https://github.com/IsabellaSmallcombe)! - Add Zora Sepolia Testnet
34
+
35
+ - [#1386](https://github.com/wagmi-dev/viem/pull/1386) [`fad9dc12`](https://github.com/wagmi-dev/viem/commit/fad9dc12eef2c7042db75a9ffa8f6e98e9e8f884) Thanks [@POKENA7](https://github.com/POKENA7)! - Added Astar zkEVM testnet zKatana chain.
36
+
37
+ ## 1.17.0
38
+
39
+ ### Minor Changes
40
+
41
+ - [#1382](https://github.com/wagmi-dev/viem/pull/1382) [`5ac4a631`](https://github.com/wagmi-dev/viem/commit/5ac4a6316edb4076287fcb3c571066c39a917995) Thanks [@jxom](https://github.com/jxom)! - Added ability for Actions (i.e. `readContract`) to infer their internal/dependant Actions (i.e. `call`) from the optionally extended Client.
42
+
43
+ For instance, if an extended Client has overridden the `call` Action, then the `readContract` Action will use that instead of Viem's internal `call` Action.
44
+
45
+ ### Patch Changes
46
+
47
+ - [#1377](https://github.com/wagmi-dev/viem/pull/1377) [`592f03eb`](https://github.com/wagmi-dev/viem/commit/592f03eb3c4d9a3e23716682e0acf8cfa4e65106) Thanks [@okalenyk](https://github.com/okalenyk)! - Added `multicall3` contract to `modeTestnet` chain.
48
+
49
+ ## 1.16.6
50
+
51
+ ### Patch Changes
52
+
53
+ - [#1356](https://github.com/wagmi-dev/viem/pull/1356) [`0da9f886`](https://github.com/wagmi-dev/viem/commit/0da9f886124cea8f8e2f557de68bd94b96e53ac8) Thanks [@AmaxJ](https://github.com/AmaxJ)! - Removed trailing slash from arbiscan goerli blockexplorer url
54
+
55
+ - [`36ec87da`](https://github.com/wagmi-dev/viem/commit/36ec87da7f614f5c6ca9e632eb27f8d8d1bbfcdf) Thanks [@jxom](https://github.com/jxom)! - Modified `getAddresses` to be compatible with Local Accounts.
56
+
57
+ ## 1.16.5
58
+
59
+ ### Patch Changes
60
+
61
+ - [#1347](https://github.com/wagmi-dev/viem/pull/1347) [`541bd152`](https://github.com/wagmi-dev/viem/commit/541bd1528d3fb43edfd713e3dd89f30803a37f97) Thanks [@lukasrosario](https://github.com/lukasrosario)! - Added Base Sepolia
62
+
63
+ - [#1339](https://github.com/wagmi-dev/viem/pull/1339) [`b7ddaf61`](https://github.com/wagmi-dev/viem/commit/b7ddaf61d6a392a8fa6f4550afa505f75c31eca4) Thanks [@jxom](https://github.com/jxom)! - Fixed topics mismatch in `decodeEventLogs` strict mode.
64
+
65
+ - [`b6aace90`](https://github.com/wagmi-dev/viem/commit/b6aace909c8f27c49a393813e2569b98a72083ca) Thanks [@jxom](https://github.com/jxom)! - Fixed `chainId` assignment in `signTransaction` action.
66
+
3
67
  ## 1.16.4
4
68
 
5
69
  ### Patch Changes
package/README.md CHANGED
@@ -207,7 +207,7 @@ If you're interested in contributing, please read the [contributing docs](/.gith
207
207
 
208
208
  ## Authors
209
209
 
210
- - [@jxom](https://github.com/jxom) (jxom.eth, [Twitter](https://twitter.com/jakemoxey))
210
+ - [@jxom](https://github.com/jxom) (jxom.eth, [Twitter](https://twitter.com/_jxom))
211
211
  - [@tmm](https://github.com/tmm) (awkweb.eth, [Twitter](https://twitter.com/awkweb))
212
212
 
213
213
  ## License
@@ -4,19 +4,20 @@ exports.getEnsAddress = void 0;
4
4
  const abis_js_1 = require("../../constants/abis.js");
5
5
  const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
6
6
  const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
7
- const chain_js_1 = require("../../utils/chain.js");
7
+ const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
8
8
  const trim_js_1 = require("../../utils/data/trim.js");
9
9
  const toHex_js_1 = require("../../utils/encoding/toHex.js");
10
10
  const errors_js_1 = require("../../utils/ens/errors.js");
11
11
  const namehash_js_1 = require("../../utils/ens/namehash.js");
12
12
  const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
13
+ const getAction_js_1 = require("../../utils/getAction.js");
13
14
  const readContract_js_1 = require("../public/readContract.js");
14
15
  async function getEnsAddress(client, { blockNumber, blockTag, coinType, name, universalResolverAddress: universalResolverAddress_, }) {
15
16
  let universalResolverAddress = universalResolverAddress_;
16
17
  if (!universalResolverAddress) {
17
18
  if (!client.chain)
18
19
  throw new Error('client chain not configured. universalResolverAddress is required.');
19
- universalResolverAddress = (0, chain_js_1.getChainContractAddress)({
20
+ universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
20
21
  blockNumber,
21
22
  chain: client.chain,
22
23
  contract: 'ensUniversalResolver',
@@ -30,7 +31,7 @@ async function getEnsAddress(client, { blockNumber, blockTag, coinType, name, un
30
31
  ? { args: [(0, namehash_js_1.namehash)(name), BigInt(coinType)] }
31
32
  : { args: [(0, namehash_js_1.namehash)(name)] }),
32
33
  });
33
- const res = await (0, readContract_js_1.readContract)(client, {
34
+ const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
34
35
  address: universalResolverAddress,
35
36
  abi: abis_js_1.universalResolverResolveAbi,
36
37
  functionName: 'resolve',
@@ -1 +1 @@
1
- {"version":3,"file":"getEnsAddress.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAddress.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAIhC,qFAGgD;AAChD,iFAG8C;AAC9C,mDAG6B;AAC7B,sDAAmE;AACnE,4DAA0E;AAC1E,yDAAwE;AACxE,6DAA8E;AAC9E,uEAGyC;AACzC,+DAGkC;AAqD3B,KAAK,UAAU,aAAa,CACjC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,wBAAwB,EAAE,yBAAyB,GAC3B;IAE1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6DC"}
@@ -2,9 +2,10 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEnsAvatar = void 0;
4
4
  const parseAvatarRecord_js_1 = require("../../utils/ens/avatar/parseAvatarRecord.js");
5
+ const getAction_js_1 = require("../../utils/getAction.js");
5
6
  const getEnsText_js_1 = require("./getEnsText.js");
6
7
  async function getEnsAvatar(client, { blockNumber, blockTag, gatewayUrls, name, universalResolverAddress, }) {
7
- const record = await (0, getEnsText_js_1.getEnsText)(client, {
8
+ const record = await (0, getAction_js_1.getAction)(client, getEnsText_js_1.getEnsText)({
8
9
  blockNumber,
9
10
  blockTag,
10
11
  key: 'avatar',
@@ -1 +1 @@
1
- {"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":";;;AAMA,sFAGoD;AAEpD,mDAIwB;AA4CjB,KAAK,UAAU,YAAY,CAChC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,wBAAwB,GACD;IAEzB,MAAM,MAAM,GAAG,MAAM,IAAA,0BAAU,EAAC,MAAM,EAAE;QACtC,WAAW;QACX,QAAQ;QACR,GAAG,EAAE,QAAQ;QACb,IAAI;QACJ,wBAAwB;KACzB,CAAC,CAAA;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACxB,IAAI;QACF,OAAO,MAAM,IAAA,wCAAiB,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;KAChE;IAAC,MAAM;QACN,OAAO,IAAI,CAAA;KACZ;AACH,CAAC;AAvBD,oCAuBC"}
1
+ {"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":";;;AAMA,sFAGoD;AACpD,2DAAoD;AAEpD,mDAIwB;AA4CjB,KAAK,UAAU,YAAY,CAChC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,wBAAwB,GACD;IAEzB,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAC5B,MAAM,EACN,0BAAU,CACX,CAAC;QACA,WAAW;QACX,QAAQ;QACR,GAAG,EAAE,QAAQ;QACb,IAAI;QACJ,wBAAwB;KACzB,CAAC,CAAA;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACxB,IAAI;QACF,OAAO,MAAM,IAAA,wCAAiB,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;KAChE;IAAC,MAAM;QACN,OAAO,IAAI,CAAA;KACZ;AACH,CAAC;AA1BD,oCA0BC"}
@@ -2,17 +2,18 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEnsName = void 0;
4
4
  const abis_js_1 = require("../../constants/abis.js");
5
- const chain_js_1 = require("../../utils/chain.js");
5
+ const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
6
6
  const toHex_js_1 = require("../../utils/encoding/toHex.js");
7
7
  const errors_js_1 = require("../../utils/ens/errors.js");
8
8
  const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
9
+ const getAction_js_1 = require("../../utils/getAction.js");
9
10
  const readContract_js_1 = require("../public/readContract.js");
10
11
  async function getEnsName(client, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }) {
11
12
  let universalResolverAddress = universalResolverAddress_;
12
13
  if (!universalResolverAddress) {
13
14
  if (!client.chain)
14
15
  throw new Error('client chain not configured. universalResolverAddress is required.');
15
- universalResolverAddress = (0, chain_js_1.getChainContractAddress)({
16
+ universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
16
17
  blockNumber,
17
18
  chain: client.chain,
18
19
  contract: 'ensUniversalResolver',
@@ -20,7 +21,7 @@ async function getEnsName(client, { address, blockNumber, blockTag, universalRes
20
21
  }
21
22
  const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`;
22
23
  try {
23
- const res = await (0, readContract_js_1.readContract)(client, {
24
+ const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
24
25
  address: universalResolverAddress,
25
26
  abi: abis_js_1.universalResolverReverseAbi,
26
27
  functionName: 'reverse',
@@ -1 +1 @@
1
- {"version":3,"file":"getEnsName.js","sourceRoot":"","sources":["../../../actions/ens/getEnsName.ts"],"names":[],"mappings":";;;AAIA,qDAAqE;AAIrE,mDAG6B;AAC7B,4DAA0E;AAC1E,yDAAwE;AACxE,uEAGyC;AACzC,+DAIkC;AA8C3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,OAAO,EACP,WAAW,EACX,QAAQ,EACR,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,kCAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,MAAM,WAAW,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,8BAAY,EAAC,MAAM,EAAE;YACrC,OAAO,EAAE,wBAAwB;YACjC,GAAG,EAAE,qCAA2B;YAChC,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,WAAW,CAAC,CAAC,CAAC;YACzC,WAAW;YACX,QAAQ;SACT,CAAC,CAAA;QACF,OAAO,GAAG,CAAC,CAAC,CAAC,CAAA;KACd;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,IAAA,w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YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AAzCD,gCAyCC"}
@@ -1,22 +1,23 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getEnsResolver = void 0;
4
- const chain_js_1 = require("../../utils/chain.js");
4
+ const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
5
5
  const toHex_js_1 = require("../../utils/encoding/toHex.js");
6
6
  const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
7
+ const getAction_js_1 = require("../../utils/getAction.js");
7
8
  const readContract_js_1 = require("../public/readContract.js");
8
9
  async function getEnsResolver(client, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }) {
9
10
  let universalResolverAddress = universalResolverAddress_;
10
11
  if (!universalResolverAddress) {
11
12
  if (!client.chain)
12
13
  throw new Error('client chain not configured. universalResolverAddress is required.');
13
- universalResolverAddress = (0, chain_js_1.getChainContractAddress)({
14
+ universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
14
15
  blockNumber,
15
16
  chain: client.chain,
16
17
  contract: 'ensUniversalResolver',
17
18
  });
18
19
  }
19
- const [resolverAddress] = await (0, readContract_js_1.readContract)(client, {
20
+ const [resolverAddress] = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
20
21
  address: universalResolverAddress,
21
22
  abi: [
22
23
  {
@@ -1 +1 @@
1
- {"version":3,"file":"getEnsResolver.js","sourceRoot":"","sources":["../../../actions/ens/getEnsResolver.ts"],"names":[],"mappings":";;;AAOA,mDAG6B;AAC7B,4DAA0E;AAC1E,uEAGyC;AACzC,+DAGkC;AA+C3B,KAAK,UAAU,cAAc,CAClC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,wBAAwB,EAAE,yBAAyB,GAC1B;IAE3B,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC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wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,IAAA,wBAAS,EACvC,MAAM,EACN,8BAAY,CACb,CAAC;QACA,OAAO,EAAE,wBAAwB;QACjC,GAAG,EAAE;YACH;gBACE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBAC3B,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;gBACnD,eAAe,EAAE,MAAM;gBACvB,IAAI,EAAE,UAAU;aACjB;SACF;QACD,YAAY,EAAE,cAAc;QAC5B,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,IAAI,CAAC,CAAC,CAAC;QAClC,WAAW;QACX,QAAQ;KACT,CAAC,CAAA;IACF,OAAO,eAAe,CAAA;AACxB,CAAC;AA3CD,wCA2CC"}
@@ -4,25 +4,26 @@ exports.getEnsText = void 0;
4
4
  const abis_js_1 = require("../../constants/abis.js");
5
5
  const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
6
6
  const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
7
- const chain_js_1 = require("../../utils/chain.js");
7
+ const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
8
8
  const toHex_js_1 = require("../../utils/encoding/toHex.js");
9
9
  const errors_js_1 = require("../../utils/ens/errors.js");
10
10
  const namehash_js_1 = require("../../utils/ens/namehash.js");
11
11
  const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
12
+ const getAction_js_1 = require("../../utils/getAction.js");
12
13
  const readContract_js_1 = require("../public/readContract.js");
13
14
  async function getEnsText(client, { blockNumber, blockTag, name, key, universalResolverAddress: universalResolverAddress_, }) {
14
15
  let universalResolverAddress = universalResolverAddress_;
15
16
  if (!universalResolverAddress) {
16
17
  if (!client.chain)
17
18
  throw new Error('client chain not configured. universalResolverAddress is required.');
18
- universalResolverAddress = (0, chain_js_1.getChainContractAddress)({
19
+ universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
19
20
  blockNumber,
20
21
  chain: client.chain,
21
22
  contract: 'ensUniversalResolver',
22
23
  });
23
24
  }
24
25
  try {
25
- const res = await (0, readContract_js_1.readContract)(client, {
26
+ const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
26
27
  address: universalResolverAddress,
27
28
  abi: abis_js_1.universalResolverResolveAbi,
28
29
  functionName: 'resolve',
@@ -1 +1 @@
1
- {"version":3,"file":"getEnsText.js","sourceRoot":"","sources":["../../../actions/ens/getEnsText.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAGhC,qFAGgD;AAChD,iFAG8C;AAC9C,mDAG6B;AAC7B,4DAA0E;AAC1E,yDAAwE;AACxE,6DAA8E;AAC9E,uEAGyC;AACzC,+DAIkC;AAqD3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,kCAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,8BAAY,EAAC,MAAM,EAAE;YACrC,OAAO,EAAE,wBAAwB;YACjC,GAAG,EAA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esModule", { value: true });
3
3
  exports.getEventParameters = exports.getFunctionParameters = exports.getContract = void 0;
4
+ const getAction_js_1 = require("../utils/getAction.js");
4
5
  const createContractEventFilter_js_1 = require("./public/createContractEventFilter.js");
5
6
  const estimateContractGas_js_1 = require("./public/estimateContractGas.js");
6
7
  const getContractEvents_js_1 = require("./public/getContractEvents.js");
@@ -44,7 +45,7 @@ function getContract({ abi, address, client: client_, }) {
44
45
  get(_, functionName) {
45
46
  return (...parameters) => {
46
47
  const { args, options } = getFunctionParameters(parameters);
47
- return (0, readContract_js_1.readContract)(publicClient, {
48
+ return (0, getAction_js_1.getAction)(publicClient, readContract_js_1.readContract)({
48
49
  abi,
49
50
  address,
50
51
  functionName,
@@ -59,7 +60,7 @@ function getContract({ abi, address, client: client_, }) {
59
60
  get(_, functionName) {
60
61
  return (...parameters) => {
61
62
  const { args, options } = getFunctionParameters(parameters);
62
- return (0, simulateContract_js_1.simulateContract)(publicClient, {
63
+ return (0, getAction_js_1.getAction)(publicClient, simulateContract_js_1.simulateContract)({
63
64
  abi,
64
65
  address,
65
66
  functionName,
@@ -75,7 +76,7 @@ function getContract({ abi, address, client: client_, }) {
75
76
  return (...parameters) => {
76
77
  const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
77
78
  const { args, options } = getEventParameters(parameters, abiEvent);
78
- return (0, createContractEventFilter_js_1.createContractEventFilter)(publicClient, {
79
+ return (0, getAction_js_1.getAction)(publicClient, createContractEventFilter_js_1.createContractEventFilter)({
79
80
  abi,
80
81
  address,
81
82
  eventName,
@@ -90,7 +91,7 @@ function getContract({ abi, address, client: client_, }) {
90
91
  return (...parameters) => {
91
92
  const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
92
93
  const { args, options } = getEventParameters(parameters, abiEvent);
93
- return (0, getContractEvents_js_1.getContractEvents)(publicClient, {
94
+ return (0, getAction_js_1.getAction)(publicClient, getContractEvents_js_1.getContractEvents)({
94
95
  abi,
95
96
  address,
96
97
  eventName,
@@ -105,7 +106,7 @@ function getContract({ abi, address, client: client_, }) {
105
106
  return (...parameters) => {
106
107
  const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
107
108
  const { args, options } = getEventParameters(parameters, abiEvent);
108
- return (0, watchContractEvent_js_1.watchContractEvent)(publicClient, {
109
+ return (0, getAction_js_1.getAction)(publicClient, watchContractEvent_js_1.watchContractEvent)({
109
110
  abi,
110
111
  address,
111
112
  eventName,
@@ -123,7 +124,7 @@ function getContract({ abi, address, client: client_, }) {
123
124
  get(_, functionName) {
124
125
  return (...parameters) => {
125
126
  const { args, options } = getFunctionParameters(parameters);
126
- return (0, writeContract_js_1.writeContract)(walletClient, {
127
+ return (0, getAction_js_1.getAction)(walletClient, writeContract_js_1.writeContract)({
127
128
  abi,
128
129
  address,
129
130
  functionName,
@@ -141,7 +142,7 @@ function getContract({ abi, address, client: client_, }) {
141
142
  return (...parameters) => {
142
143
  const { args, options } = getFunctionParameters(parameters);
143
144
  const client = (publicClient ?? walletClient);
144
- return (0, estimateContractGas_js_1.estimateContractGas)(client, {
145
+ return (0, getAction_js_1.getAction)(client, estimateContractGas_js_1.estimateContractGas)({
145
146
  abi,
146
147
  address,
147
148
  functionName,
@@ -1 +1 @@
1
- {"version":3,"file":"getContract.js","sourceRoot":"","sources":["../../actions/getContract.ts"],"names":[],"mappings":";;;AAiCA,wFAI8C;AAC9C,4EAIwC;AACxC,wEAIsC;AACtC,8DAIiC;AACjC,sEAIqC;AACrC,0EAIuC;AACvC,gEAIkC;AAiZlC,SAAgB,WAAW,CAazB,EACA,GAAG,EACH,OAAO,EACP,MAAM,EAAE,OAAO,GAQhB;IACC,MAAM,MAAM,GAAG,OAE8B,CAAA;IAE7C,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;QAC1C,IAAI,cAAc,IAAI,MAAM,IAAI,cAAc,IAA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,GAAG,IAAI,CAAA;KACf;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAC7C,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAC1B,CAAC;AAnBD,gDAmBC"}
@@ -9,7 +9,7 @@ const chain_js_1 = require("../../errors/chain.js");
9
9
  const contract_js_2 = require("../../errors/contract.js");
10
10
  const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
11
11
  const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
12
- const chain_js_2 = require("../../utils/chain.js");
12
+ const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
13
13
  const toHex_js_1 = require("../../utils/encoding/toHex.js");
14
14
  const getCallError_js_1 = require("../../utils/errors/getCallError.js");
15
15
  const extract_js_1 = require("../../utils/formatters/extract.js");
@@ -23,10 +23,10 @@ async function call(client, args) {
23
23
  (0, assertRequest_js_1.assertRequest)(args);
24
24
  const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
25
25
  const block = blockNumberHex || blockTag;
26
- const format = client.chain?.formatters?.transactionRequest?.format ||
27
- transactionRequest_js_1.formatTransactionRequest;
26
+ const chainFormat = client.chain?.formatters?.transactionRequest?.format;
27
+ const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
28
28
  const request = format({
29
- ...(0, extract_js_1.extract)(rest, { format }),
29
+ ...(0, extract_js_1.extract)(rest, { format: chainFormat }),
30
30
  from: account?.address,
31
31
  accessList,
32
32
  data,
@@ -95,7 +95,7 @@ async function scheduleMulticall(client, args) {
95
95
  if (!multicallAddress) {
96
96
  if (!client.chain)
97
97
  throw new chain_js_1.ClientChainNotConfiguredError();
98
- multicallAddress = (0, chain_js_2.getChainContractAddress)({
98
+ multicallAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
99
99
  blockNumber,
100
100
  chain: client.chain,
101
101
  contract: 'multicall3',
@@ -1 +1 @@
1
- {"version":3,"file":"call.js","sourceRoot":"","sources":["../../../actions/public/call.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAG7C,qDAAuD;AACvD,6DAAiE;AACjE,kDAAgD;AAChD,oDAG8B;AAC9B,0DAGiC;AAQjC,qFAGgD;AAChD,iFAG8C;AAE9C,mDAG6B;AAC7B,4DAGsC;AACtC,wEAG2C;AAC3C,kEAA2D;AAC3D,wFAIqD;AACrD,yFAGoD;AACpD,+EAAwE;AAmEjE,KAAK,UAAU,IAAI,CACxB,MAAiC,EACjC,IAA4B;IAE5B,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,EACxC,WAAW,EACX,QAAQ,GAAG,QAAQ,EACnB,UAAU,EACV,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,EAAE,EACF,KAAK,EACL,GAAG,IAAI,EACR,GAAG,IAAI,CAAA;IACR,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAE7D,IAAI;QACF,IAAA,gCAAa,EAAC,IAA+B,CAAC,CAAA;QAE9C,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,CAAC,IAAA,sBAAW,EAAC,WAAW,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QACzE,MAAM,KAAK,GAAG,cAAc,IAAI,QAAQ,CAAA;QAExC,MAAM,MAAM,GACV,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,kBAAk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I,IAAI,IAAI;aACnB,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;IAEF,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;IAE9D,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,8BAAgB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAA;IAC9D,IAAI,UAAU,KAAK,IAAI;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;IACnD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;AAC7B,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,IAAI,CAAC,CAAC,GAAG,YAAY,mBAAS,CAAC;QAAE,OAAO,SAAS,CAAA;IACjD,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAsB,CAAA;IAC5C,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAA;AACtE,CAAC;AAJD,gDAIC"}
@@ -4,12 +4,21 @@ exports.estimateContractGas = void 0;
4
4
  const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
5
5
  const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
6
6
  const getContractError_js_1 = require("../../utils/errors/getContractError.js");
7
+ const getAction_js_1 = require("../../utils/getAction.js");
7
8
  const estimateGas_js_1 = require("./estimateGas.js");
8
9
  async function estimateContractGas(client, parameters) {
9
10
  const { abi, address, args, functionName, ...request } = parameters;
10
- const data = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi, args, functionName });
11
+ const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
12
+ abi,
13
+ args,
14
+ functionName,
15
+ });
11
16
  try {
12
- const gas = await (0, estimateGas_js_1.estimateGas)(client, { data, to: address, ...request });
17
+ const gas = await (0, getAction_js_1.getAction)(client, estimateGas_js_1.estimateGas)({
18
+ data,
19
+ to: address,
20
+ ...request,
21
+ });
13
22
  return gas;
14
23
  }
15
24
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"estimateContractGas.js","sourceRoot":"","sources":["../../../actions/public/estimateContractGas.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAY7C,iFAG8C;AAC9C,gFAG+C;AAC/C,qDAIyB;AA+DlB,KAAK,UAAU,mBAAmB,CAOvC,MAAyC,EACzC,UAMC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GACpD,UAA2C,CAAA;IAC7C,MAAM,IAAI,GAAG,IAAA,0CAAkB,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,CAAA;IAC5D,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,4BAAW,EAAC,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;QACxE,OAAO,GAAG,CAAA;KACX;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,8BAAY,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAC3E,MAAM,IAAA,sCAAgB,EAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,oCAAoC;YAC9C,YAAY;YACZ,MAAM,EAAE,OAAO,EAAE,OAAO;SACzB,CAAC,CAAA;KACH;AACH,CAAC;AAjCD,kDAiCC"}
1
+ {"version":3,"file":"estimateContractGas.js","sourceRoot":"","sources":["../../../actions/public/estimateContractGas.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAY7C,iFAI8C;AAC9C,gFAG+C;AAC/C,2DAAoD;AACpD,qDAIyB;AA+DlB,KAAK,UAAU,mBAAmB,CAOvC,MAAyC,EACzC,UAMC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GACpD,UAA2C,CAAA;IAC7C,MAAM,IAAI,GAAG,IAAA,0CAAkB,EAAC;QAC9B,GAAG;QACH,IAAI;QACJ,YAAY;KACmB,CAAC,CAAA;IAClC,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAS,EACzB,MAAM,EACN,4BAAW,CACZ,CAAC;YACA,IAAI;YACJ,EAAE,EAAE,OAAO;YACX,GAAG,OAAO;SACyB,CAAC,CAAA;QACtC,OAAO,GAAG,CAAA;KACX;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,8BAAY,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAC3E,MAAM,IAAA,sCAAgB,EAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,oCAAoC;YAC9C,YAAY;YACZ,MAAM,EAAE,OAAO,EAAE,OAAO;SACzB,CAAC,CAAA;KACH;AACH,CAAC;AA5CD,kDA4CC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.internal_estimateFeesPerGas = exports.estimateFeesPerGas = void 0;
4
4
  const fee_js_1 = require("../../errors/fee.js");
5
+ const getAction_js_1 = require("../../utils/getAction.js");
5
6
  const estimateMaxPriorityFeePerGas_js_1 = require("./estimateMaxPriorityFeePerGas.js");
6
7
  const getBlock_js_1 = require("./getBlock.js");
7
8
  const getGasPrice_js_1 = require("./getGasPrice.js");
@@ -26,7 +27,7 @@ async function internal_estimateFeesPerGas(client, args) {
26
27
  const denominator = 10 ** decimals;
27
28
  const multiply = (base) => (base * BigInt(Math.ceil(baseFeeMultiplier * denominator))) /
28
29
  BigInt(denominator);
29
- const block = block_ ? block_ : await (0, getBlock_js_1.getBlock)(client);
30
+ const block = block_ ? block_ : await (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({});
30
31
  if (typeof chain?.fees?.estimateFeesPerGas === 'function')
31
32
  return chain.fees.estimateFeesPerGas({
32
33
  block: block_,
@@ -52,7 +53,7 @@ async function internal_estimateFeesPerGas(client, args) {
52
53
  maxPriorityFeePerGas,
53
54
  };
54
55
  }
55
- const gasPrice = request?.gasPrice ?? multiply(await (0, getGasPrice_js_1.getGasPrice)(client));
56
+ const gasPrice = request?.gasPrice ?? multiply(await (0, getAction_js_1.getAction)(client, getGasPrice_js_1.getGasPrice)({}));
56
57
  return {
57
58
  gasPrice,
58
59
  };
@@ -1 +1 @@
1
- {"version":3,"file":"estimateFeesPerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateFeesPerGas.ts"],"names":[],"mappings":";;;AAEA,gDAK4B;AAe5B,uFAG0C;AAC1C,+CAAwC;AACxC,qDAAyE;AAsDlE,KAAK,UAAU,kBAAkB,CAKtC,MAAgC,EAChC,IAA+D;IAE/D,OAAO,2BAA2B,CAAC,MAAM,EAAE,IAAW,CAAC,CAAA;AACzD,CAAC;AATD,gDASC;AAEM,KAAK,UAAU,2BAA2B,CAK/C,MAAgC,EAChC,IAGC;IAED,MAAM,EACJ,KAAK,EAAE,MAAM,EACb,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,OAAO,EACP,IAAI,GAAG,SAAS,GACjB,GAAG,IAAI,IAAI,EAAE,CAAA;IAEd,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAC1C,IAAI,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,KAAK,UAAU;YACtD,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;gBAClC,KAAK,EAAE,MAAe;gBACtB,MAAM;gBACN,OAAO;aACiB,CAAC,C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xC;IAED,MAAM,QAAQ,GACZ,OAAO,EAAE,QAAQ,IAAI,QAAQ,CAAC,MAAM,IAAA,wBAAS,EAAC,MAAM,EAAE,4BAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;IACzE,OAAO;QACL,QAAQ;KAC6B,CAAA;AACzC,CAAC;AA5ED,kEA4EC"}
@@ -23,10 +23,10 @@ async function estimateGas(client, args) {
23
23
  const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
24
24
  const block = blockNumberHex || blockTag;
25
25
  (0, assertRequest_js_1.assertRequest)(args);
26
- const format = client.chain?.formatters?.transactionRequest?.format ||
27
- transactionRequest_js_1.formatTransactionRequest;
26
+ const chainFormat = client.chain?.formatters?.transactionRequest?.format;
27
+ const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
28
28
  const request = format({
29
- ...(0, extract_js_1.extract)(rest, { format }),
29
+ ...(0, extract_js_1.extract)(rest, { format: chainFormat }),
30
30
  from: account.address,
31
31
  accessList,
32
32
  data,
@@ -1 +1 @@
1
- {"version":3,"file":"estimateGas.js","sourceRoot":"","sources":["../../../actions/public/estimateGas.ts"],"names":[],"mappings":";;;AACA,0EAG6C;AAG7C,wDAA8D;AAQ9D,4DAGsC;AACtC,sFAGkD;AAClD,kEAA2D;AAC3D,wFAGqD;AACrD,+EAIiD;AACjD,yFAG+C;AA6DxC,KAAK,UAAU,WAAW,CAI/B,MAA2C,EAC3C,IAA6C;IAE7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAA;IAC/C,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,iCAAoB,CAAC;YAC7B,QAAQ,EAAE,kCAAkC;SAC7C,CAAC,CAAA;IACJ,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAA;IAEtC,IAAI;QACF,MAAM,EACJ,UAAU,EACV,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,GAAG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AG,IAAA,oBAAO,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;YACzC,IAAI,EAAE,OAAO,CAAC,OAAO;YACrB,UAAU;YACV,IAAI;YACJ,GAAG;YACH,QAAQ;YACR,YAAY;YACZ,oBAAoB;YACpB,KAAK;YACL,EAAE;YACF,KAAK;SACgB,CAAC,CAAA;QAExB,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;YACnC,MAAM,EAAE,iBAAiB;YACzB,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C,CAAC,CAAA;QACF,OAAO,MAAM,CAAC,OAAO,CAAC,CAAA;KACvB;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,IAAA,4CAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAG,IAAI;YACP,OAAO;YACP,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAA;KACH;AACH,CAAC;AAvED,kCAuEC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.internal_estimateMaxPriorityFeePerGas = exports.estimateMaxPriorityFeePerGas = void 0;
4
4
  const fee_js_1 = require("../../errors/fee.js");
5
5
  const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
6
+ const getAction_js_1 = require("../../utils/getAction.js");
6
7
  const getBlock_js_1 = require("./getBlock.js");
7
8
  const getGasPrice_js_1 = require("./getGasPrice.js");
8
9
  async function estimateMaxPriorityFeePerGas(client, args) {
@@ -12,7 +13,7 @@ exports.estimateMaxPriorityFeePerGas = estimateMaxPriorityFeePerGas;
12
13
  async function internal_estimateMaxPriorityFeePerGas(client, args) {
13
14
  const { block: block_, chain = client.chain, request } = args || {};
14
15
  if (typeof chain?.fees?.defaultPriorityFee === 'function') {
15
- const block = block_ || (await (0, getBlock_js_1.getBlock)(client));
16
+ const block = block_ || (await (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({}));
16
17
  return chain.fees.defaultPriorityFee({
17
18
  block,
18
19
  client,
@@ -29,8 +30,8 @@ async function internal_estimateMaxPriorityFeePerGas(client, args) {
29
30
  }
30
31
  catch {
31
32
  const [block, gasPrice] = await Promise.all([
32
- block_ ? Promise.resolve(block_) : (0, getBlock_js_1.getBlock)(client),
33
- (0, getGasPrice_js_1.getGasPrice)(client),
33
+ block_ ? Promise.resolve(block_) : (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({}),
34
+ (0, getAction_js_1.getAction)(client, getGasPrice_js_1.getGasPrice)({}),
34
35
  ]);
35
36
  if (typeof block.baseFeePerGas !== 'bigint')
36
37
  throw new fee_js_1.Eip1559FeesNotSupportedError();
@@ -1 +1 @@
1
- {"version":3,"file":"estimateMaxPriorityFeePerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateMaxPriorityFeePerGas.ts"],"names":[],"mappings":";;;AAEA,gDAG4B;AAO5B,gEAGwC;AAExC,+CAAgE;AAChE,qDAAyE;AAwClE,KAAK,UAAU,4BAA4B,CAIhD,MAAgC,EAChC,IAAmE;IAEnE,OAAO,qCAAqC,CAAC,MAAM,EAAE,IAAW,CAAC,CAAA;AACnE,CAAC;AARD,oEAQC;AAEM,KAAK,UAAU,qCAAqC,CAIzD,MAAgC,EAChC,IAOC;IAED,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,IAAI,EAAE,CAAA;IACnE,IAAI,OAAO,KAAK,EAAE,IAAI,EAAE,kBAAkB,KAAK,UAAU,EAAE;QACzD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,MAAM,IAAA,sBAAQ,EAAC,MAAM,CAAC,CAAC,CAAA;QAChD,OAAO,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC;YACnC,KAAK;YACL,MAAM;YACN,OAAO;SACiB,CAAC,CAAA;K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AAA;KAC5B;AACH,CAAC;AA/CD,sFA+CC"}
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getContractEvents = void 0;
4
4
  const getAbiItem_js_1 = require("../../utils/abi/getAbiItem.js");
5
+ const getAction_js_1 = require("../../utils/getAction.js");
5
6
  const getLogs_js_1 = require("./getLogs.js");
6
7
  async function getContractEvents(client, parameters) {
7
8
  const { abi, address, args, blockHash, eventName, fromBlock, toBlock, strict, } = parameters;
@@ -11,7 +12,7 @@ async function getContractEvents(client, parameters) {
11
12
  const events = !event
12
13
  ? abi.filter((x) => x.type === 'event')
13
14
  : undefined;
14
- return (0, getLogs_js_1.getLogs)(client, {
15
+ return (0, getAction_js_1.getAction)(client, getLogs_js_1.getLogs)({
15
16
  address,
16
17
  args,
17
18
  blockHash,
@@ -1 +1 @@
1
- {"version":3,"file":"getContractEvents.js","sourceRoot":"","sources":["../../../actions/public/getContractEvents.ts"],"names":[],"mappings":";;;AAaA,iEAIsC;AACtC,6CAIqB;AA2Fd,KAAK,UAAU,iBAAiB,CAQrC,MAAgC,EAChC,UAMC;IAID,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,GACP,GAAG,UAAU,CAAA;IACd,MAAM,KAAK,GAAG,SAAS;QACrB,CAAC,CAAC,IAAA,0BAAU,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAA0B,CAAC;QAC9D,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,MAAM,GAAG,CAAC,KAAK;QACnB,CAAC,CAAE,GAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;QAChD,CAAC,CAAC,SAAS,CAAA;IACb,OAAO,IAAA,oBAAO,EAAC,MAAM,EAAE;QACrB,OAAO;QACP,IAAI;QACJ,SAAS;QACT,KAAK;QACL,MAAM;QACN,SAAS;QACT,OAAO;QACP,MAAM;KACoB,CAM3B,CAAA;AACH,CAAC;AAnDD,8CAmDC"}
1
+ {"version":3,"file":"getContractEvents.js","sourceRoot":"","sources":["../../../actions/public/getContractEvents.ts"],"names":[],"mappings":";;;AAaA,iEAIsC;AACtC,2DAAoD;AACpD,6CAIqB;AA2Fd,KAAK,UAAU,iBAAiB,CAQrC,MAAgC,EAChC,UAMC;IAID,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,GACP,GAAG,UAAU,CAAA;IACd,MAAM,KAAK,GAAG,SAAS;QACrB,CAAC,CAAC,IAAA,0BAAU,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAA0B,CAAC;QAC9D,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,MAAM,GAAG,CAAC,KAAK;QACnB,CAAC,CAAE,GAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;QAChD,CAAC,CAAC,SAAS,CAAA;IACb,OAAO,IAAA,wBAAS,EACd,MAAM,EACN,oBAAO,CACR,CAAC;QACA,OAAO;QACP,IAAI;QACJ,SAAS;QACT,KAAK;QACL,MAAM;QACN,SAAS;QACT,OAAO;QACP,MAAM;KACoB,CAM3B,CAAA;AACH,CAAC;AAtDD,8CAsDC"}
@@ -1,12 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getTransactionConfirmations = void 0;
4
+ const getAction_js_1 = require("../../utils/getAction.js");
4
5
  const getBlockNumber_js_1 = require("./getBlockNumber.js");
5
6
  const getTransaction_js_1 = require("./getTransaction.js");
6
7
  async function getTransactionConfirmations(client, { hash, transactionReceipt }) {
7
8
  const [blockNumber, transaction] = await Promise.all([
8
- (0, getBlockNumber_js_1.getBlockNumber)(client),
9
- hash ? (0, getTransaction_js_1.getTransaction)(client, { hash }) : undefined,
9
+ (0, getAction_js_1.getAction)(client, getBlockNumber_js_1.getBlockNumber)({}),
10
+ hash ? (0, getAction_js_1.getAction)(client, getTransaction_js_1.getTransaction)({ hash }) : undefined,
10
11
  ]);
11
12
  const transactionBlockNumber = transactionReceipt?.blockNumber || transaction?.blockNumber;
12
13
  if (!transactionBlockNumber)