viem 2.13.6 → 2.13.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (777) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +0 -6
  3. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  4. package/_cjs/actions/public/call.js.map +1 -1
  5. package/_cjs/actions/public/estimateGas.js.map +1 -1
  6. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  7. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  8. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  9. package/_cjs/celo/fees.js.map +1 -1
  10. package/_cjs/celo/formatters.js.map +1 -1
  11. package/_cjs/celo/index.js.map +1 -1
  12. package/_cjs/celo/serializers.js.map +1 -1
  13. package/_cjs/celo/utils.js.map +1 -1
  14. package/_cjs/chains/definitions/defichainEvm.js +1 -1
  15. package/_cjs/chains/definitions/defichainEvm.js.map +1 -1
  16. package/_cjs/chains/definitions/defichainEvmTestnet.js +1 -1
  17. package/_cjs/chains/definitions/defichainEvmTestnet.js.map +1 -1
  18. package/_cjs/chains/definitions/optimism.js +5 -0
  19. package/_cjs/chains/definitions/optimism.js.map +1 -1
  20. package/_cjs/chains/definitions/sei.js +1 -0
  21. package/_cjs/chains/definitions/sei.js.map +1 -1
  22. package/_cjs/clients/createClient.js +2 -2
  23. package/_cjs/clients/createClient.js.map +1 -1
  24. package/_cjs/clients/transports/fallback.js.map +1 -1
  25. package/_cjs/clients/transports/http.js.map +1 -1
  26. package/_cjs/constants/abis.js.map +1 -1
  27. package/_cjs/constants/blob.js +4 -4
  28. package/_cjs/constants/blob.js.map +1 -1
  29. package/_cjs/constants/kzg.js +1 -3
  30. package/_cjs/constants/kzg.js.map +1 -1
  31. package/_cjs/errors/abi.js +1 -13
  32. package/_cjs/errors/abi.js.map +1 -1
  33. package/_cjs/errors/ccip.js.map +1 -1
  34. package/_cjs/errors/stateOverride.js.map +1 -1
  35. package/_cjs/errors/version.js +1 -1
  36. package/_cjs/experimental/eip5792/actions/getCapabilities.js +2 -2
  37. package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -1
  38. package/_cjs/experimental/eip5792/actions/sendCalls.js +2 -2
  39. package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -1
  40. package/_cjs/index.js +7 -4
  41. package/_cjs/index.js.map +1 -1
  42. package/_cjs/node/trustedSetups.js +1 -2
  43. package/_cjs/node/trustedSetups.js.map +1 -1
  44. package/_cjs/op-stack/abis.js +1 -458
  45. package/_cjs/op-stack/abis.js.map +1 -1
  46. package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  47. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  48. package/_cjs/op-stack/index.js +15 -2
  49. package/_cjs/op-stack/index.js.map +1 -1
  50. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  51. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  52. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  53. package/_cjs/utils/address/getAddress.js +5 -5
  54. package/_cjs/utils/address/getAddress.js.map +1 -1
  55. package/_cjs/utils/address/isAddress.js.map +1 -1
  56. package/_cjs/utils/blob/toBlobs.js.map +1 -1
  57. package/_cjs/utils/buildRequest.js.map +1 -1
  58. package/_cjs/utils/ccip.js.map +1 -1
  59. package/_cjs/utils/cursor.js.map +1 -1
  60. package/_cjs/utils/encoding/fromRlp.js +1 -9
  61. package/_cjs/utils/encoding/fromRlp.js.map +1 -1
  62. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  63. package/_cjs/utils/ens/errors.js.map +1 -1
  64. package/_cjs/utils/index.js +4 -3
  65. package/_cjs/utils/index.js.map +1 -1
  66. package/_cjs/utils/observe.js.map +1 -1
  67. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  68. package/_cjs/utils/promise/withCache.js.map +1 -1
  69. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  70. package/_cjs/utils/rpc/id.js +1 -2
  71. package/_cjs/utils/rpc/id.js.map +1 -1
  72. package/_cjs/utils/rpc/ipc.js.map +1 -1
  73. package/_cjs/utils/stateOverride.js.map +1 -1
  74. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  75. package/_cjs/zksync/actions/deployContract.js.map +1 -1
  76. package/_cjs/zksync/actions/estimateGasL1ToL2.js +2 -2
  77. package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -1
  78. package/_cjs/zksync/actions/getAllBalances.js +2 -2
  79. package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
  80. package/_cjs/zksync/actions/getL1Allowance.js +2 -2
  81. package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
  82. package/_cjs/zksync/actions/getL1Balance.js +2 -2
  83. package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
  84. package/_cjs/zksync/actions/getL1TokenBalance.js +2 -2
  85. package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
  86. package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
  87. package/_cjs/zksync/constants/contract.js +1 -2
  88. package/_cjs/zksync/constants/contract.js.map +1 -1
  89. package/_cjs/zksync/index.js.map +1 -1
  90. package/_cjs/zksync/serializers.js.map +1 -1
  91. package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
  92. package/_cjs/zksync/utils/assertEip712Request.js.map +1 -1
  93. package/_cjs/zksync/utils/hashBytecode.js.map +1 -1
  94. package/_esm/accounts/hdKeyToAccount.js.map +1 -1
  95. package/_esm/actions/public/call.js +1 -0
  96. package/_esm/actions/public/call.js.map +1 -1
  97. package/_esm/actions/public/estimateGas.js.map +1 -1
  98. package/_esm/actions/public/getBlockNumber.js +2 -1
  99. package/_esm/actions/public/getBlockNumber.js.map +1 -1
  100. package/_esm/actions/test/sendUnsignedTransaction.js +2 -2
  101. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  102. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  103. package/_esm/celo/fees.js.map +1 -1
  104. package/_esm/celo/formatters.js.map +1 -1
  105. package/_esm/celo/index.js +1 -1
  106. package/_esm/celo/index.js.map +1 -1
  107. package/_esm/celo/serializers.js.map +1 -1
  108. package/_esm/celo/utils.js +1 -0
  109. package/_esm/celo/utils.js.map +1 -1
  110. package/_esm/chains/definitions/defichainEvm.js +1 -1
  111. package/_esm/chains/definitions/defichainEvm.js.map +1 -1
  112. package/_esm/chains/definitions/defichainEvmTestnet.js +1 -1
  113. package/_esm/chains/definitions/defichainEvmTestnet.js.map +1 -1
  114. package/_esm/chains/definitions/optimism.js +5 -0
  115. package/_esm/chains/definitions/optimism.js.map +1 -1
  116. package/_esm/chains/definitions/sei.js +1 -0
  117. package/_esm/chains/definitions/sei.js.map +1 -1
  118. package/_esm/clients/createClient.js +1 -1
  119. package/_esm/clients/createClient.js.map +1 -1
  120. package/_esm/clients/transports/fallback.js +1 -0
  121. package/_esm/clients/transports/fallback.js.map +1 -1
  122. package/_esm/clients/transports/http.js.map +1 -1
  123. package/_esm/constants/abis.js +1 -0
  124. package/_esm/constants/abis.js.map +1 -1
  125. package/_esm/constants/blob.js +1 -1
  126. package/_esm/constants/blob.js.map +1 -1
  127. package/_esm/constants/kzg.js +0 -4
  128. package/_esm/constants/kzg.js.map +1 -1
  129. package/_esm/errors/abi.js +0 -11
  130. package/_esm/errors/abi.js.map +1 -1
  131. package/_esm/errors/ccip.js.map +1 -1
  132. package/_esm/errors/stateOverride.js +1 -0
  133. package/_esm/errors/stateOverride.js.map +1 -1
  134. package/_esm/errors/version.js +1 -1
  135. package/_esm/experimental/eip5792/actions/getCapabilities.js +1 -1
  136. package/_esm/experimental/eip5792/actions/getCapabilities.js.map +1 -1
  137. package/_esm/experimental/eip5792/actions/sendCalls.js +1 -1
  138. package/_esm/experimental/eip5792/actions/sendCalls.js.map +1 -1
  139. package/_esm/index.js +5 -4
  140. package/_esm/index.js.map +1 -1
  141. package/_esm/node/trustedSetups.js +0 -1
  142. package/_esm/node/trustedSetups.js.map +1 -1
  143. package/_esm/node/trustedSetups_cjs.js +0 -1
  144. package/_esm/node/trustedSetups_cjs.js.map +1 -1
  145. package/_esm/op-stack/abis.js +0 -457
  146. package/_esm/op-stack/abis.js.map +1 -1
  147. package/_esm/op-stack/actions/buildProveWithdrawal.js +1 -0
  148. package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  149. package/_esm/op-stack/actions/getWithdrawalStatus.js +1 -1
  150. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  151. package/_esm/op-stack/index.js +0 -1
  152. package/_esm/op-stack/index.js.map +1 -1
  153. package/_esm/utils/abi/decodeAbiParameters.js +1 -1
  154. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  155. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  156. package/_esm/utils/abi/getAbiItem.js +3 -1
  157. package/_esm/utils/abi/getAbiItem.js.map +1 -1
  158. package/_esm/utils/address/getAddress.js +1 -1
  159. package/_esm/utils/address/getAddress.js.map +1 -1
  160. package/_esm/utils/address/isAddress.js +1 -0
  161. package/_esm/utils/address/isAddress.js.map +1 -1
  162. package/_esm/utils/blob/toBlobs.js.map +1 -1
  163. package/_esm/utils/buildRequest.js +1 -0
  164. package/_esm/utils/buildRequest.js.map +1 -1
  165. package/_esm/utils/ccip.js +1 -1
  166. package/_esm/utils/ccip.js.map +1 -1
  167. package/_esm/utils/cursor.js.map +1 -1
  168. package/_esm/utils/encoding/fromRlp.js +0 -6
  169. package/_esm/utils/encoding/fromRlp.js.map +1 -1
  170. package/_esm/utils/ens/avatar/utils.js +2 -0
  171. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  172. package/_esm/utils/ens/errors.js.map +1 -1
  173. package/_esm/utils/index.js +1 -1
  174. package/_esm/utils/index.js.map +1 -1
  175. package/_esm/utils/observe.js +2 -0
  176. package/_esm/utils/observe.js.map +1 -1
  177. package/_esm/utils/promise/createBatchScheduler.js +1 -0
  178. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  179. package/_esm/utils/promise/withCache.js +2 -0
  180. package/_esm/utils/promise/withCache.js.map +1 -1
  181. package/_esm/utils/promise/withTimeout.js +1 -1
  182. package/_esm/utils/promise/withTimeout.js.map +1 -1
  183. package/_esm/utils/rpc/id.js +1 -1
  184. package/_esm/utils/rpc/id.js.map +1 -1
  185. package/_esm/utils/rpc/ipc.js +1 -0
  186. package/_esm/utils/rpc/ipc.js.map +1 -1
  187. package/_esm/utils/stateOverride.js +3 -0
  188. package/_esm/utils/stateOverride.js.map +1 -1
  189. package/_esm/utils/transaction/parseTransaction.js.map +1 -1
  190. package/_esm/utils/unit/parseUnits.js +1 -1
  191. package/_esm/utils/unit/parseUnits.js.map +1 -1
  192. package/_esm/zksync/actions/deployContract.js +1 -1
  193. package/_esm/zksync/actions/deployContract.js.map +1 -1
  194. package/_esm/zksync/actions/estimateGasL1ToL2.js +1 -1
  195. package/_esm/zksync/actions/estimateGasL1ToL2.js.map +1 -1
  196. package/_esm/zksync/actions/getAllBalances.js +1 -1
  197. package/_esm/zksync/actions/getAllBalances.js.map +1 -1
  198. package/_esm/zksync/actions/getL1Allowance.js +1 -1
  199. package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
  200. package/_esm/zksync/actions/getL1Balance.js +1 -1
  201. package/_esm/zksync/actions/getL1Balance.js.map +1 -1
  202. package/_esm/zksync/actions/getL1TokenBalance.js +2 -2
  203. package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
  204. package/_esm/zksync/actions/sendTransaction.js.map +1 -1
  205. package/_esm/zksync/constants/contract.js +0 -1
  206. package/_esm/zksync/constants/contract.js.map +1 -1
  207. package/_esm/zksync/index.js.map +1 -1
  208. package/_esm/zksync/serializers.js.map +1 -1
  209. package/_esm/zksync/utils/abi/encodeDeployData.js +1 -1
  210. package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -1
  211. package/_esm/zksync/utils/assertEip712Request.js +1 -1
  212. package/_esm/zksync/utils/assertEip712Request.js.map +1 -1
  213. package/_esm/zksync/utils/hashBytecode.js.map +1 -1
  214. package/_types/accounts/hdKeyToAccount.d.ts +1 -1
  215. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
  216. package/_types/accounts/types.d.ts +1 -1
  217. package/_types/accounts/types.d.ts.map +1 -1
  218. package/_types/actions/public/call.d.ts +5 -2
  219. package/_types/actions/public/call.d.ts.map +1 -1
  220. package/_types/actions/public/estimateGas.d.ts +2 -1
  221. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  222. package/_types/actions/public/getBlockNumber.d.ts +4 -0
  223. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  224. package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
  225. package/_types/actions/wallet/prepareTransactionRequest.d.ts +0 -7
  226. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  227. package/_types/actions/wallet/signTypedData.d.ts +2 -2
  228. package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
  229. package/_types/celo/chainConfig.d.ts +725 -747
  230. package/_types/celo/chainConfig.d.ts.map +1 -1
  231. package/_types/celo/fees.d.ts.map +1 -1
  232. package/_types/celo/formatters.d.ts +360 -371
  233. package/_types/celo/formatters.d.ts.map +1 -1
  234. package/_types/celo/index.d.ts +2 -2
  235. package/_types/celo/index.d.ts.map +1 -1
  236. package/_types/celo/serializers.d.ts.map +1 -1
  237. package/_types/celo/types.d.ts +27 -27
  238. package/_types/celo/types.d.ts.map +1 -1
  239. package/_types/celo/utils.d.ts +1 -0
  240. package/_types/celo/utils.d.ts.map +1 -1
  241. package/_types/chains/definitions/acala.d.ts +2 -2
  242. package/_types/chains/definitions/ancient8.d.ts +207 -218
  243. package/_types/chains/definitions/ancient8.d.ts.map +1 -1
  244. package/_types/chains/definitions/ancient8Sepolia.d.ts +207 -218
  245. package/_types/chains/definitions/ancient8Sepolia.d.ts.map +1 -1
  246. package/_types/chains/definitions/anvil.d.ts +2 -2
  247. package/_types/chains/definitions/apexTestnet.d.ts +2 -2
  248. package/_types/chains/definitions/arbitrum.d.ts +2 -2
  249. package/_types/chains/definitions/arbitrumGoerli.d.ts +2 -2
  250. package/_types/chains/definitions/arbitrumNova.d.ts +2 -2
  251. package/_types/chains/definitions/arbitrumSepolia.d.ts +2 -2
  252. package/_types/chains/definitions/areonNetwork.d.ts +2 -2
  253. package/_types/chains/definitions/areonNetworkTestnet.d.ts +2 -2
  254. package/_types/chains/definitions/astar.d.ts +2 -2
  255. package/_types/chains/definitions/astarZkEVM.d.ts +2 -2
  256. package/_types/chains/definitions/astarZkyoto.d.ts +2 -2
  257. package/_types/chains/definitions/aurora.d.ts +2 -2
  258. package/_types/chains/definitions/auroraTestnet.d.ts +2 -2
  259. package/_types/chains/definitions/auroria.d.ts +2 -2
  260. package/_types/chains/definitions/avalanche.d.ts +2 -2
  261. package/_types/chains/definitions/avalancheFuji.d.ts +2 -2
  262. package/_types/chains/definitions/bahamut.d.ts +2 -2
  263. package/_types/chains/definitions/base.d.ts +207 -218
  264. package/_types/chains/definitions/base.d.ts.map +1 -1
  265. package/_types/chains/definitions/baseGoerli.d.ts +207 -218
  266. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  267. package/_types/chains/definitions/baseSepolia.d.ts +207 -218
  268. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  269. package/_types/chains/definitions/beam.d.ts +2 -2
  270. package/_types/chains/definitions/beamTestnet.d.ts +2 -2
  271. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +2 -2
  272. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +2 -2
  273. package/_types/chains/definitions/berachainTestnet.d.ts +2 -2
  274. package/_types/chains/definitions/bevmMainnet.d.ts +2 -2
  275. package/_types/chains/definitions/bitTorrent.d.ts +2 -2
  276. package/_types/chains/definitions/bitTorrentTestnet.d.ts +2 -2
  277. package/_types/chains/definitions/bitkub.d.ts +2 -2
  278. package/_types/chains/definitions/bitkubTestnet.d.ts +2 -2
  279. package/_types/chains/definitions/blast.d.ts +2 -2
  280. package/_types/chains/definitions/blastSepolia.d.ts +2 -2
  281. package/_types/chains/definitions/bob.d.ts +2 -2
  282. package/_types/chains/definitions/boba.d.ts +2 -2
  283. package/_types/chains/definitions/bronos.d.ts +2 -2
  284. package/_types/chains/definitions/bronosTestnet.d.ts +2 -2
  285. package/_types/chains/definitions/bsc.d.ts +2 -2
  286. package/_types/chains/definitions/bscGreenfield.d.ts +2 -2
  287. package/_types/chains/definitions/bscTestnet.d.ts +2 -2
  288. package/_types/chains/definitions/btr.d.ts +2 -2
  289. package/_types/chains/definitions/btrTestnet.d.ts +2 -2
  290. package/_types/chains/definitions/bxn.d.ts +2 -2
  291. package/_types/chains/definitions/bxnTestnet.d.ts +2 -2
  292. package/_types/chains/definitions/canto.d.ts +2 -2
  293. package/_types/chains/definitions/celo.d.ts +728 -750
  294. package/_types/chains/definitions/celo.d.ts.map +1 -1
  295. package/_types/chains/definitions/celoAlfajores.d.ts +728 -750
  296. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  297. package/_types/chains/definitions/chiliz.d.ts +2 -2
  298. package/_types/chains/definitions/classic.d.ts +2 -2
  299. package/_types/chains/definitions/confluxESpace.d.ts +2 -2
  300. package/_types/chains/definitions/confluxESpaceTestnet.d.ts +2 -2
  301. package/_types/chains/definitions/coreDao.d.ts +2 -2
  302. package/_types/chains/definitions/cronos.d.ts +2 -2
  303. package/_types/chains/definitions/cronosTestnet.d.ts +2 -2
  304. package/_types/chains/definitions/crossbell.d.ts +2 -2
  305. package/_types/chains/definitions/cyber.d.ts +2 -2
  306. package/_types/chains/definitions/cyberTestnet.d.ts +2 -2
  307. package/_types/chains/definitions/darwinia.d.ts +2 -2
  308. package/_types/chains/definitions/defichainEvm.d.ts +3 -3
  309. package/_types/chains/definitions/defichainEvmTestnet.d.ts +3 -3
  310. package/_types/chains/definitions/degen.d.ts +2 -2
  311. package/_types/chains/definitions/dfk.d.ts +2 -2
  312. package/_types/chains/definitions/dodochainTestnet.d.ts +2 -2
  313. package/_types/chains/definitions/dogechain.d.ts +2 -2
  314. package/_types/chains/definitions/dreyerxMainnet.d.ts +2 -2
  315. package/_types/chains/definitions/edgeless.d.ts +2 -2
  316. package/_types/chains/definitions/edgelessTestnet.d.ts +2 -2
  317. package/_types/chains/definitions/edgeware.d.ts +2 -2
  318. package/_types/chains/definitions/edgewareTestnet.d.ts +2 -2
  319. package/_types/chains/definitions/ekta.d.ts +2 -2
  320. package/_types/chains/definitions/ektaTestnet.d.ts +2 -2
  321. package/_types/chains/definitions/eon.d.ts +2 -2
  322. package/_types/chains/definitions/eos.d.ts +2 -2
  323. package/_types/chains/definitions/eosTestnet.d.ts +2 -2
  324. package/_types/chains/definitions/etherlinkTestnet.d.ts +2 -2
  325. package/_types/chains/definitions/evmos.d.ts +2 -2
  326. package/_types/chains/definitions/evmosTestnet.d.ts +2 -2
  327. package/_types/chains/definitions/fantom.d.ts +2 -2
  328. package/_types/chains/definitions/fantomSonicTestnet.d.ts +2 -2
  329. package/_types/chains/definitions/fantomTestnet.d.ts +2 -2
  330. package/_types/chains/definitions/fibo.d.ts +2 -2
  331. package/_types/chains/definitions/filecoin.d.ts +2 -2
  332. package/_types/chains/definitions/filecoinCalibration.d.ts +2 -2
  333. package/_types/chains/definitions/filecoinHyperspace.d.ts +2 -2
  334. package/_types/chains/definitions/flare.d.ts +2 -2
  335. package/_types/chains/definitions/flareTestnet.d.ts +2 -2
  336. package/_types/chains/definitions/flowMainnet.d.ts +2 -2
  337. package/_types/chains/definitions/flowPreviewnet.d.ts +2 -2
  338. package/_types/chains/definitions/flowTestnet.d.ts +2 -2
  339. package/_types/chains/definitions/foundry.d.ts +2 -2
  340. package/_types/chains/definitions/fraxtal.d.ts +207 -218
  341. package/_types/chains/definitions/fraxtal.d.ts.map +1 -1
  342. package/_types/chains/definitions/fraxtalTestnet.d.ts +207 -218
  343. package/_types/chains/definitions/fraxtalTestnet.d.ts.map +1 -1
  344. package/_types/chains/definitions/funkiSepolia.d.ts +207 -218
  345. package/_types/chains/definitions/funkiSepolia.d.ts.map +1 -1
  346. package/_types/chains/definitions/fuse.d.ts +2 -2
  347. package/_types/chains/definitions/fuseSparknet.d.ts +2 -2
  348. package/_types/chains/definitions/gnosis.d.ts +2 -2
  349. package/_types/chains/definitions/gnosisChiado.d.ts +2 -2
  350. package/_types/chains/definitions/gobi.d.ts +2 -2
  351. package/_types/chains/definitions/goerli.d.ts +2 -2
  352. package/_types/chains/definitions/haqqMainnet.d.ts +2 -2
  353. package/_types/chains/definitions/haqqTestedge2.d.ts +2 -2
  354. package/_types/chains/definitions/hardhat.d.ts +2 -2
  355. package/_types/chains/definitions/harmonyOne.d.ts +2 -2
  356. package/_types/chains/definitions/hedera.d.ts +2 -2
  357. package/_types/chains/definitions/hederaPreviewnet.d.ts +2 -2
  358. package/_types/chains/definitions/hederaTestnet.d.ts +2 -2
  359. package/_types/chains/definitions/holesky.d.ts +2 -2
  360. package/_types/chains/definitions/immutableZkEvm.d.ts +2 -2
  361. package/_types/chains/definitions/immutableZkEvmTestnet.d.ts +2 -2
  362. package/_types/chains/definitions/inEVM.d.ts +2 -2
  363. package/_types/chains/definitions/iotex.d.ts +2 -2
  364. package/_types/chains/definitions/iotexTestnet.d.ts +2 -2
  365. package/_types/chains/definitions/jbc.d.ts +2 -2
  366. package/_types/chains/definitions/jbcTestnet.d.ts +2 -2
  367. package/_types/chains/definitions/kakarotSepolia.d.ts +2 -2
  368. package/_types/chains/definitions/karura.d.ts +2 -2
  369. package/_types/chains/definitions/kava.d.ts +2 -2
  370. package/_types/chains/definitions/kavaTestnet.d.ts +2 -2
  371. package/_types/chains/definitions/kcc.d.ts +2 -2
  372. package/_types/chains/definitions/klaytn.d.ts +2 -2
  373. package/_types/chains/definitions/klaytnBaobab.d.ts +2 -2
  374. package/_types/chains/definitions/kroma.d.ts +2 -2
  375. package/_types/chains/definitions/kromaSepolia.d.ts +2 -2
  376. package/_types/chains/definitions/l3x.d.ts +2 -2
  377. package/_types/chains/definitions/l3xTestnet.d.ts +2 -2
  378. package/_types/chains/definitions/lightlinkPegasus.d.ts +2 -2
  379. package/_types/chains/definitions/lightlinkPhoenix.d.ts +2 -2
  380. package/_types/chains/definitions/linea.d.ts +2 -2
  381. package/_types/chains/definitions/lineaGoerli.d.ts +2 -2
  382. package/_types/chains/definitions/lineaSepolia.d.ts +2 -2
  383. package/_types/chains/definitions/lineaTestnet.d.ts +2 -2
  384. package/_types/chains/definitions/lisk.d.ts +171 -171
  385. package/_types/chains/definitions/liskSepolia.d.ts +207 -218
  386. package/_types/chains/definitions/liskSepolia.d.ts.map +1 -1
  387. package/_types/chains/definitions/localhost.d.ts +2 -2
  388. package/_types/chains/definitions/lukso.d.ts +2 -2
  389. package/_types/chains/definitions/luksoTestnet.d.ts +2 -2
  390. package/_types/chains/definitions/lycan.d.ts +2 -2
  391. package/_types/chains/definitions/mainnet.d.ts +2 -2
  392. package/_types/chains/definitions/mandala.d.ts +2 -2
  393. package/_types/chains/definitions/manta.d.ts +2 -2
  394. package/_types/chains/definitions/mantaSepoliaTestnet.d.ts +2 -2
  395. package/_types/chains/definitions/mantaTestnet.d.ts +2 -2
  396. package/_types/chains/definitions/mantle.d.ts +2 -2
  397. package/_types/chains/definitions/mantleSepoliaTestnet.d.ts +2 -2
  398. package/_types/chains/definitions/mantleTestnet.d.ts +2 -2
  399. package/_types/chains/definitions/merlin.d.ts +2 -2
  400. package/_types/chains/definitions/metachain.d.ts +2 -2
  401. package/_types/chains/definitions/metachainIstanbul.d.ts +2 -2
  402. package/_types/chains/definitions/metalL2.d.ts +207 -218
  403. package/_types/chains/definitions/metalL2.d.ts.map +1 -1
  404. package/_types/chains/definitions/meter.d.ts +2 -2
  405. package/_types/chains/definitions/meterTestnet.d.ts +2 -2
  406. package/_types/chains/definitions/metis.d.ts +2 -2
  407. package/_types/chains/definitions/metisGoerli.d.ts +2 -2
  408. package/_types/chains/definitions/mev.d.ts +2 -2
  409. package/_types/chains/definitions/mevTestnet.d.ts +2 -2
  410. package/_types/chains/definitions/mintSepoliaTestnet.d.ts +2 -2
  411. package/_types/chains/definitions/mode.d.ts +2 -2
  412. package/_types/chains/definitions/modeTestnet.d.ts +2 -2
  413. package/_types/chains/definitions/moonbaseAlpha.d.ts +2 -2
  414. package/_types/chains/definitions/moonbeam.d.ts +2 -2
  415. package/_types/chains/definitions/moonbeamDev.d.ts +2 -2
  416. package/_types/chains/definitions/moonriver.d.ts +2 -2
  417. package/_types/chains/definitions/morphSepolia.d.ts +2 -2
  418. package/_types/chains/definitions/nautilus.d.ts +2 -2
  419. package/_types/chains/definitions/neonDevnet.d.ts +2 -2
  420. package/_types/chains/definitions/neonMainnet.d.ts +2 -2
  421. package/_types/chains/definitions/nexi.d.ts +2 -2
  422. package/_types/chains/definitions/nexilix.d.ts +2 -2
  423. package/_types/chains/definitions/oasisTestnet.d.ts +2 -2
  424. package/_types/chains/definitions/oasys.d.ts +2 -2
  425. package/_types/chains/definitions/okc.d.ts +2 -2
  426. package/_types/chains/definitions/oortmainnetDev.d.ts +2 -2
  427. package/_types/chains/definitions/opBNB.d.ts +2 -2
  428. package/_types/chains/definitions/opBNBTestnet.d.ts +2 -2
  429. package/_types/chains/definitions/optimism.d.ts +212 -218
  430. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  431. package/_types/chains/definitions/optimismGoerli.d.ts +207 -218
  432. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  433. package/_types/chains/definitions/optimismSepolia.d.ts +207 -218
  434. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  435. package/_types/chains/definitions/otimDevnet.d.ts +2 -2
  436. package/_types/chains/definitions/palm.d.ts +2 -2
  437. package/_types/chains/definitions/palmTestnet.d.ts +2 -2
  438. package/_types/chains/definitions/pgn.d.ts +208 -219
  439. package/_types/chains/definitions/pgn.d.ts.map +1 -1
  440. package/_types/chains/definitions/pgnTestnet.d.ts +208 -219
  441. package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
  442. package/_types/chains/definitions/phoenix.d.ts +2 -2
  443. package/_types/chains/definitions/playfiAlbireo.d.ts +171 -171
  444. package/_types/chains/definitions/plinga.d.ts +2 -2
  445. package/_types/chains/definitions/plumeTestnet.d.ts +2 -2
  446. package/_types/chains/definitions/polygon.d.ts +2 -2
  447. package/_types/chains/definitions/polygonAmoy.d.ts +2 -2
  448. package/_types/chains/definitions/polygonMumbai.d.ts +2 -2
  449. package/_types/chains/definitions/polygonZkEvm.d.ts +2 -2
  450. package/_types/chains/definitions/polygonZkEvmCardona.d.ts +2 -2
  451. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +2 -2
  452. package/_types/chains/definitions/pulsechain.d.ts +2 -2
  453. package/_types/chains/definitions/pulsechainV4.d.ts +2 -2
  454. package/_types/chains/definitions/qMainnet.d.ts +2 -2
  455. package/_types/chains/definitions/qTestnet.d.ts +2 -2
  456. package/_types/chains/definitions/redstone.d.ts +2 -2
  457. package/_types/chains/definitions/reyaNetwork.d.ts +2 -2
  458. package/_types/chains/definitions/rollux.d.ts +2 -2
  459. package/_types/chains/definitions/rolluxTestnet.d.ts +2 -2
  460. package/_types/chains/definitions/ronin.d.ts +2 -2
  461. package/_types/chains/definitions/rootstock.d.ts +2 -2
  462. package/_types/chains/definitions/rootstockTestnet.d.ts +2 -2
  463. package/_types/chains/definitions/rss3.d.ts +207 -218
  464. package/_types/chains/definitions/rss3.d.ts.map +1 -1
  465. package/_types/chains/definitions/rss3Sepolia.d.ts +207 -218
  466. package/_types/chains/definitions/rss3Sepolia.d.ts.map +1 -1
  467. package/_types/chains/definitions/saigon.d.ts +2 -2
  468. package/_types/chains/definitions/sapphire.d.ts +2 -2
  469. package/_types/chains/definitions/sapphireTestnet.d.ts +2 -2
  470. package/_types/chains/definitions/satoshivm.d.ts +2 -2
  471. package/_types/chains/definitions/satoshivmTestnet.d.ts +2 -2
  472. package/_types/chains/definitions/scroll.d.ts +2 -2
  473. package/_types/chains/definitions/scrollSepolia.d.ts +2 -2
  474. package/_types/chains/definitions/sei.d.ts +3 -2
  475. package/_types/chains/definitions/sei.d.ts.map +1 -1
  476. package/_types/chains/definitions/seiDevnet.d.ts +2 -2
  477. package/_types/chains/definitions/sepolia.d.ts +2 -2
  478. package/_types/chains/definitions/shardeumSphinx.d.ts +2 -2
  479. package/_types/chains/definitions/shibarium.d.ts +2 -2
  480. package/_types/chains/definitions/shimmer.d.ts +2 -2
  481. package/_types/chains/definitions/shimmerTestnet.d.ts +2 -2
  482. package/_types/chains/definitions/skale/brawl.d.ts +2 -2
  483. package/_types/chains/definitions/skale/calypso.d.ts +2 -2
  484. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +2 -2
  485. package/_types/chains/definitions/skale/cryptoBlades.d.ts +2 -2
  486. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +2 -2
  487. package/_types/chains/definitions/skale/europa.d.ts +2 -2
  488. package/_types/chains/definitions/skale/europaTestnet.d.ts +2 -2
  489. package/_types/chains/definitions/skale/exorde.d.ts +2 -2
  490. package/_types/chains/definitions/skale/humanProtocol.d.ts +2 -2
  491. package/_types/chains/definitions/skale/nebula.d.ts +2 -2
  492. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +2 -2
  493. package/_types/chains/definitions/skale/razor.d.ts +2 -2
  494. package/_types/chains/definitions/skale/titan.d.ts +2 -2
  495. package/_types/chains/definitions/skale/titanTestnet.d.ts +2 -2
  496. package/_types/chains/definitions/songbird.d.ts +2 -2
  497. package/_types/chains/definitions/songbirdTestnet.d.ts +2 -2
  498. package/_types/chains/definitions/spicy.d.ts +2 -2
  499. package/_types/chains/definitions/stratis.d.ts +2 -2
  500. package/_types/chains/definitions/syscoin.d.ts +2 -2
  501. package/_types/chains/definitions/syscoinTestnet.d.ts +2 -2
  502. package/_types/chains/definitions/taiko.d.ts +2 -2
  503. package/_types/chains/definitions/taikoHekla.d.ts +2 -2
  504. package/_types/chains/definitions/taikoJolnir.d.ts +2 -2
  505. package/_types/chains/definitions/taikoKatla.d.ts +2 -2
  506. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +2 -2
  507. package/_types/chains/definitions/taraxa.d.ts +2 -2
  508. package/_types/chains/definitions/taraxaTestnet.d.ts +2 -2
  509. package/_types/chains/definitions/telcoinTestnet.d.ts +2 -2
  510. package/_types/chains/definitions/telos.d.ts +2 -2
  511. package/_types/chains/definitions/telosTestnet.d.ts +2 -2
  512. package/_types/chains/definitions/tenet.d.ts +2 -2
  513. package/_types/chains/definitions/thaiChain.d.ts +2 -2
  514. package/_types/chains/definitions/thunderTestnet.d.ts +2 -2
  515. package/_types/chains/definitions/vechain.d.ts +2 -2
  516. package/_types/chains/definitions/wanchain.d.ts +2 -2
  517. package/_types/chains/definitions/wanchainTestnet.d.ts +2 -2
  518. package/_types/chains/definitions/wemix.d.ts +2 -2
  519. package/_types/chains/definitions/wemixTestnet.d.ts +2 -2
  520. package/_types/chains/definitions/xLayer.d.ts +2 -2
  521. package/_types/chains/definitions/xLayerTestnet.d.ts +2 -2
  522. package/_types/chains/definitions/xdc.d.ts +2 -2
  523. package/_types/chains/definitions/xdcTestnet.d.ts +2 -2
  524. package/_types/chains/definitions/yooldoVerse.d.ts +2 -2
  525. package/_types/chains/definitions/yooldoVerseTestnet.d.ts +2 -2
  526. package/_types/chains/definitions/zetachain.d.ts +2 -2
  527. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +2 -2
  528. package/_types/chains/definitions/zhejiang.d.ts +2 -2
  529. package/_types/chains/definitions/zilliqa.d.ts +2 -2
  530. package/_types/chains/definitions/zilliqaTestnet.d.ts +2 -2
  531. package/_types/chains/definitions/zkFair.d.ts +2 -2
  532. package/_types/chains/definitions/zkFairTestnet.d.ts +2 -2
  533. package/_types/chains/definitions/zkSync.d.ts +171 -171
  534. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +171 -171
  535. package/_types/chains/definitions/zkSyncLocalNode.d.ts +171 -171
  536. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +171 -171
  537. package/_types/chains/definitions/zkSyncTestnet.d.ts +171 -171
  538. package/_types/chains/definitions/zora.d.ts +207 -218
  539. package/_types/chains/definitions/zora.d.ts.map +1 -1
  540. package/_types/chains/definitions/zoraSepolia.d.ts +207 -218
  541. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  542. package/_types/chains/definitions/zoraTestnet.d.ts +207 -218
  543. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  544. package/_types/clients/createClient.d.ts +1 -1
  545. package/_types/clients/createClient.d.ts.map +1 -1
  546. package/_types/clients/transports/fallback.d.ts +5 -4
  547. package/_types/clients/transports/fallback.d.ts.map +1 -1
  548. package/_types/clients/transports/http.d.ts +6 -7
  549. package/_types/clients/transports/http.d.ts.map +1 -1
  550. package/_types/constants/abis.d.ts +1 -0
  551. package/_types/constants/abis.d.ts.map +1 -1
  552. package/_types/constants/blob.d.ts +0 -2
  553. package/_types/constants/blob.d.ts.map +1 -1
  554. package/_types/constants/kzg.d.ts +0 -4
  555. package/_types/constants/kzg.d.ts.map +1 -1
  556. package/_types/errors/abi.d.ts +0 -10
  557. package/_types/errors/abi.d.ts.map +1 -1
  558. package/_types/errors/ccip.d.ts +1 -0
  559. package/_types/errors/ccip.d.ts.map +1 -1
  560. package/_types/errors/stateOverride.d.ts +1 -0
  561. package/_types/errors/stateOverride.d.ts.map +1 -1
  562. package/_types/errors/version.d.ts +1 -1
  563. package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +1 -1
  564. package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +1 -1
  565. package/_types/experimental/erc7715/types/permission.d.ts +5 -0
  566. package/_types/experimental/erc7715/types/permission.d.ts.map +1 -1
  567. package/_types/experimental/erc7715/types/signer.d.ts +3 -0
  568. package/_types/experimental/erc7715/types/signer.d.ts.map +1 -1
  569. package/_types/index.d.ts +10 -10
  570. package/_types/index.d.ts.map +1 -1
  571. package/_types/node/trustedSetups.d.ts +0 -1
  572. package/_types/node/trustedSetups.d.ts.map +1 -1
  573. package/_types/node/trustedSetups_cjs.d.ts +0 -1
  574. package/_types/node/trustedSetups_cjs.d.ts.map +1 -1
  575. package/_types/op-stack/abis.d.ts +0 -626
  576. package/_types/op-stack/abis.d.ts.map +1 -1
  577. package/_types/op-stack/actions/buildProveWithdrawal.d.ts +1 -0
  578. package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -1
  579. package/_types/op-stack/actions/getWithdrawalStatus.d.ts +2 -1
  580. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  581. package/_types/op-stack/chainConfig.d.ts +206 -217
  582. package/_types/op-stack/chainConfig.d.ts.map +1 -1
  583. package/_types/op-stack/formatters.d.ts +206 -217
  584. package/_types/op-stack/formatters.d.ts.map +1 -1
  585. package/_types/op-stack/index.d.ts.map +1 -1
  586. package/_types/types/account.d.ts +1 -1
  587. package/_types/types/account.d.ts.map +1 -1
  588. package/_types/types/block.d.ts +15 -15
  589. package/_types/types/block.d.ts.map +1 -1
  590. package/_types/types/chain.d.ts +28 -39
  591. package/_types/types/chain.d.ts.map +1 -1
  592. package/_types/types/eip1193.d.ts +2 -2
  593. package/_types/types/eip1193.d.ts.map +1 -1
  594. package/_types/types/fee.d.ts +20 -15
  595. package/_types/types/fee.d.ts.map +1 -1
  596. package/_types/types/kzg.d.ts +1 -1
  597. package/_types/types/kzg.d.ts.map +1 -1
  598. package/_types/types/proof.d.ts +3 -2
  599. package/_types/types/proof.d.ts.map +1 -1
  600. package/_types/types/rpc.d.ts +13 -13
  601. package/_types/types/rpc.d.ts.map +1 -1
  602. package/_types/types/transaction.d.ts +77 -77
  603. package/_types/types/transaction.d.ts.map +1 -1
  604. package/_types/types/transport.d.ts +1 -1
  605. package/_types/types/transport.d.ts.map +1 -1
  606. package/_types/types/utils.d.ts +18 -5
  607. package/_types/types/utils.d.ts.map +1 -1
  608. package/_types/utils/abi/decodeAbiParameters.d.ts +2 -1
  609. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  610. package/_types/utils/abi/encodeAbiParameters.d.ts +12 -11
  611. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  612. package/_types/utils/abi/getAbiItem.d.ts +6 -2
  613. package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
  614. package/_types/utils/address/getAddress.d.ts +0 -2
  615. package/_types/utils/address/getAddress.d.ts.map +1 -1
  616. package/_types/utils/address/isAddress.d.ts +1 -0
  617. package/_types/utils/address/isAddress.d.ts.map +1 -1
  618. package/_types/utils/blob/toBlobs.d.ts +2 -1
  619. package/_types/utils/blob/toBlobs.d.ts.map +1 -1
  620. package/_types/utils/buildRequest.d.ts +1 -0
  621. package/_types/utils/buildRequest.d.ts.map +1 -1
  622. package/_types/utils/ccip.d.ts +4 -2
  623. package/_types/utils/ccip.d.ts.map +1 -1
  624. package/_types/utils/chain/extractChain.d.ts +4 -2
  625. package/_types/utils/chain/extractChain.d.ts.map +1 -1
  626. package/_types/utils/cursor.d.ts +7 -6
  627. package/_types/utils/cursor.d.ts.map +1 -1
  628. package/_types/utils/encoding/fromRlp.d.ts +3 -7
  629. package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
  630. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +2 -1
  631. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  632. package/_types/utils/ens/avatar/utils.d.ts +4 -2
  633. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  634. package/_types/utils/ens/errors.d.ts +1 -0
  635. package/_types/utils/ens/errors.d.ts.map +1 -1
  636. package/_types/utils/formatters/transaction.d.ts +65 -65
  637. package/_types/utils/formatters/transactionRequest.d.ts +41 -41
  638. package/_types/utils/hash/normalizeSignature.d.ts +3 -2
  639. package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
  640. package/_types/utils/index.d.ts +1 -1
  641. package/_types/utils/index.d.ts.map +1 -1
  642. package/_types/utils/observe.d.ts +2 -0
  643. package/_types/utils/observe.d.ts.map +1 -1
  644. package/_types/utils/promise/createBatchScheduler.d.ts +3 -2
  645. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  646. package/_types/utils/promise/withCache.d.ts +4 -1
  647. package/_types/utils/promise/withCache.d.ts.map +1 -1
  648. package/_types/utils/rpc/id.d.ts +0 -5
  649. package/_types/utils/rpc/id.d.ts.map +1 -1
  650. package/_types/utils/rpc/ipc.d.ts +1 -0
  651. package/_types/utils/rpc/ipc.d.ts.map +1 -1
  652. package/_types/utils/stateOverride.d.ts +9 -5
  653. package/_types/utils/stateOverride.d.ts.map +1 -1
  654. package/_types/utils/transaction/parseTransaction.d.ts +5 -5
  655. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
  656. package/_types/zksync/actions/deployContract.d.ts +2 -1
  657. package/_types/zksync/actions/deployContract.d.ts.map +1 -1
  658. package/_types/zksync/actions/estimateGasL1ToL2.d.ts.map +1 -1
  659. package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
  660. package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
  661. package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
  662. package/_types/zksync/actions/getL1TokenBalance.d.ts +4 -4
  663. package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
  664. package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
  665. package/_types/zksync/chainConfig.d.ts +170 -170
  666. package/_types/zksync/constants/contract.d.ts +0 -1
  667. package/_types/zksync/constants/contract.d.ts.map +1 -1
  668. package/_types/zksync/formatters.d.ts +170 -170
  669. package/_types/zksync/index.d.ts +1 -0
  670. package/_types/zksync/index.d.ts.map +1 -1
  671. package/_types/zksync/serializers.d.ts +1 -2
  672. package/_types/zksync/serializers.d.ts.map +1 -1
  673. package/_types/zksync/types/eip1193.d.ts +5 -5
  674. package/_types/zksync/types/eip1193.d.ts.map +1 -1
  675. package/_types/zksync/utils/abi/encodeDeployData.d.ts +5 -0
  676. package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -1
  677. package/_types/zksync/utils/assertEip712Request.d.ts +3 -1
  678. package/_types/zksync/utils/assertEip712Request.d.ts.map +1 -1
  679. package/_types/zksync/utils/hashBytecode.d.ts +5 -0
  680. package/_types/zksync/utils/hashBytecode.d.ts.map +1 -1
  681. package/accounts/hdKeyToAccount.ts +1 -2
  682. package/accounts/types.ts +1 -1
  683. package/actions/public/call.ts +5 -5
  684. package/actions/public/estimateGas.ts +3 -4
  685. package/actions/public/getBlockNumber.ts +9 -1
  686. package/actions/test/sendUnsignedTransaction.ts +2 -2
  687. package/actions/wallet/prepareTransactionRequest.ts +0 -20
  688. package/actions/wallet/signTypedData.ts +2 -0
  689. package/celo/fees.ts +0 -1
  690. package/celo/formatters.ts +3 -3
  691. package/celo/index.ts +5 -2
  692. package/celo/serializers.ts +0 -1
  693. package/celo/types.ts +89 -96
  694. package/celo/utils.ts +1 -0
  695. package/chains/definitions/defichainEvm.ts +1 -1
  696. package/chains/definitions/defichainEvmTestnet.ts +1 -1
  697. package/chains/definitions/optimism.ts +5 -0
  698. package/chains/definitions/sei.ts +1 -0
  699. package/clients/createClient.ts +4 -2
  700. package/clients/transports/fallback.ts +14 -12
  701. package/clients/transports/http.ts +9 -8
  702. package/constants/abis.ts +1 -0
  703. package/constants/blob.ts +1 -1
  704. package/constants/kzg.ts +0 -6
  705. package/errors/abi.ts +0 -13
  706. package/errors/ccip.ts +1 -0
  707. package/errors/stateOverride.ts +1 -0
  708. package/errors/version.ts +1 -1
  709. package/experimental/eip5792/actions/getCapabilities.ts +1 -1
  710. package/experimental/eip5792/actions/sendCalls.ts +1 -1
  711. package/experimental/erc7715/types/permission.ts +5 -0
  712. package/experimental/erc7715/types/signer.ts +3 -0
  713. package/index.ts +23 -5
  714. package/node/trustedSetups.ts +0 -5
  715. package/node/trustedSetups_cjs.ts +0 -5
  716. package/op-stack/abis.ts +0 -458
  717. package/op-stack/actions/buildProveWithdrawal.ts +1 -0
  718. package/op-stack/actions/getWithdrawalStatus.ts +6 -1
  719. package/op-stack/index.ts +0 -1
  720. package/package.json +3 -2
  721. package/types/account.ts +1 -11
  722. package/types/block.ts +16 -16
  723. package/types/chain.ts +44 -60
  724. package/types/eip1193.ts +2 -2
  725. package/types/fee.ts +23 -21
  726. package/types/kzg.ts +2 -1
  727. package/types/proof.ts +2 -2
  728. package/types/rpc.ts +30 -31
  729. package/types/transaction.ts +216 -207
  730. package/types/transport.ts +3 -1
  731. package/types/utils.ts +23 -5
  732. package/utils/abi/decodeAbiParameters.ts +6 -1
  733. package/utils/abi/encodeAbiParameters.ts +22 -19
  734. package/utils/abi/getAbiItem.ts +8 -2
  735. package/utils/address/getAddress.ts +1 -1
  736. package/utils/address/isAddress.ts +1 -0
  737. package/utils/blob/toBlobs.ts +2 -1
  738. package/utils/buildRequest.ts +1 -0
  739. package/utils/ccip.ts +11 -3
  740. package/utils/chain/extractChain.ts +2 -2
  741. package/utils/cursor.ts +16 -6
  742. package/utils/encoding/fromRlp.ts +3 -21
  743. package/utils/ens/avatar/parseAvatarRecord.ts +1 -1
  744. package/utils/ens/avatar/utils.ts +4 -2
  745. package/utils/ens/errors.ts +1 -0
  746. package/utils/hash/normalizeSignature.ts +2 -2
  747. package/utils/index.ts +3 -0
  748. package/utils/observe.ts +2 -0
  749. package/utils/promise/createBatchScheduler.ts +3 -2
  750. package/utils/promise/withCache.ts +3 -1
  751. package/utils/promise/withTimeout.ts +2 -2
  752. package/utils/rpc/id.ts +1 -1
  753. package/utils/rpc/ipc.ts +1 -0
  754. package/utils/stateOverride.ts +8 -5
  755. package/utils/transaction/parseTransaction.ts +9 -4
  756. package/utils/unit/parseUnits.ts +1 -1
  757. package/zksync/actions/deployContract.ts +8 -2
  758. package/zksync/actions/estimateGasL1ToL2.ts +1 -1
  759. package/zksync/actions/getAllBalances.ts +1 -1
  760. package/zksync/actions/getL1Allowance.ts +1 -1
  761. package/zksync/actions/getL1Balance.ts +1 -1
  762. package/zksync/actions/getL1TokenBalance.ts +10 -7
  763. package/zksync/actions/sendTransaction.ts +1 -2
  764. package/zksync/constants/contract.ts +0 -1
  765. package/zksync/index.ts +5 -0
  766. package/zksync/serializers.ts +1 -2
  767. package/zksync/types/eip1193.ts +32 -26
  768. package/zksync/utils/abi/encodeDeployData.ts +12 -2
  769. package/zksync/utils/assertEip712Request.ts +9 -2
  770. package/zksync/utils/hashBytecode.ts +14 -2
  771. package/_cjs/utils/accounts.js +0 -8
  772. package/_cjs/utils/accounts.js.map +0 -1
  773. package/_esm/utils/accounts.js +0 -7
  774. package/_esm/utils/accounts.js.map +0 -1
  775. package/_types/utils/accounts.d.ts +0 -3
  776. package/_types/utils/accounts.d.ts.map +0 -1
  777. package/utils/accounts.ts +0 -7
@@ -13,7 +13,11 @@ import {
13
13
  type ChecksumAddressErrorType,
14
14
  checksumAddress,
15
15
  } from '../address/getAddress.js'
16
- import { type Cursor, createCursor } from '../cursor.js'
16
+ import {
17
+ type CreateCursorErrorType,
18
+ type Cursor,
19
+ createCursor,
20
+ } from '../cursor.js'
17
21
  import { type SizeErrorType, size } from '../data/size.js'
18
22
  import { type SliceBytesErrorType, sliceBytes } from '../data/slice.js'
19
23
  import { type TrimErrorType, trim } from '../data/trim.js'
@@ -42,6 +46,7 @@ export type DecodeAbiParametersErrorType =
42
46
  | BytesToHexErrorType
43
47
  | DecodeParameterErrorType
44
48
  | SizeErrorType
49
+ | CreateCursorErrorType
45
50
  | ErrorType
46
51
 
47
52
  export function decodeAbiParameters<
@@ -110,7 +110,7 @@ type PreparedParam = { dynamic: boolean; encoded: Hex }
110
110
  type TupleAbiParameter = AbiParameter & { components: readonly AbiParameter[] }
111
111
  type Tuple = AbiParameterToPrimitiveType<TupleAbiParameter>
112
112
 
113
- export type PrepareParamsErrorType = ErrorType
113
+ type PrepareParamsErrorType = PrepareParamErrorType | ErrorType
114
114
 
115
115
  function prepareParams<const TParams extends readonly AbiParameter[]>({
116
116
  params,
@@ -126,7 +126,14 @@ function prepareParams<const TParams extends readonly AbiParameter[]>({
126
126
  return preparedParams
127
127
  }
128
128
 
129
- export type PrepareParamErrorType =
129
+ type PrepareParamErrorType =
130
+ | EncodeAddressErrorType
131
+ | EncodeArrayErrorType
132
+ | EncodeBytesErrorType
133
+ | EncodeBoolErrorType
134
+ | EncodeNumberErrorType
135
+ | EncodeStringErrorType
136
+ | EncodeTupleErrorType
130
137
  | GetArrayComponentsErrorType
131
138
  | InvalidAbiEncodingTypeErrorType
132
139
  | ErrorType
@@ -171,10 +178,7 @@ function prepareParam<const TParam extends AbiParameter>({
171
178
 
172
179
  /////////////////////////////////////////////////////////////////
173
180
 
174
- export type EncodeParamsErrorType =
175
- | NumberToHexErrorType
176
- | SizeErrorType
177
- | ErrorType
181
+ type EncodeParamsErrorType = NumberToHexErrorType | SizeErrorType | ErrorType
178
182
 
179
183
  function encodeParams(preparedParams: PreparedParam[]): Hex {
180
184
  // 1. Compute the size of the static part of the parameters.
@@ -206,7 +210,7 @@ function encodeParams(preparedParams: PreparedParam[]): Hex {
206
210
 
207
211
  /////////////////////////////////////////////////////////////////
208
212
 
209
- export type EncodeAddressErrorType =
213
+ type EncodeAddressErrorType =
210
214
  | InvalidAddressErrorType
211
215
  | IsAddressErrorType
212
216
  | ErrorType
@@ -216,13 +220,14 @@ function encodeAddress(value: Hex): PreparedParam {
216
220
  return { dynamic: false, encoded: padHex(value.toLowerCase() as Hex) }
217
221
  }
218
222
 
219
- export type EncodeArrayErrorType =
223
+ type EncodeArrayErrorType =
220
224
  | AbiEncodingArrayLengthMismatchErrorType
221
225
  | ConcatErrorType
222
226
  | EncodeParamsErrorType
223
227
  | InvalidArrayErrorType
224
228
  | NumberToHexErrorType
225
- | PrepareParamErrorType
229
+ // TODO: Add back once circular type reference is resolved
230
+ // | PrepareParamErrorType
226
231
  | ErrorType
227
232
 
228
233
  function encodeArray<const TParam extends AbiParameter>(
@@ -270,7 +275,7 @@ function encodeArray<const TParam extends AbiParameter>(
270
275
  }
271
276
  }
272
277
 
273
- export type EncodeBytesErrorType =
278
+ type EncodeBytesErrorType =
274
279
  | AbiEncodingBytesSizeMismatchErrorType
275
280
  | ConcatErrorType
276
281
  | PadHexErrorType
@@ -306,10 +311,7 @@ function encodeBytes<const TParam extends AbiParameter>(
306
311
  return { dynamic: false, encoded: padHex(value, { dir: 'right' }) }
307
312
  }
308
313
 
309
- export type EncodeBoolErrorType =
310
- | PadHexErrorType
311
- | BoolToHexErrorType
312
- | ErrorType
314
+ type EncodeBoolErrorType = PadHexErrorType | BoolToHexErrorType | ErrorType
313
315
 
314
316
  function encodeBool(value: boolean): PreparedParam {
315
317
  if (typeof value !== 'boolean')
@@ -319,7 +321,7 @@ function encodeBool(value: boolean): PreparedParam {
319
321
  return { dynamic: false, encoded: padHex(boolToHex(value)) }
320
322
  }
321
323
 
322
- export type EncodeNumberErrorType = NumberToHexErrorType | ErrorType
324
+ type EncodeNumberErrorType = NumberToHexErrorType | ErrorType
323
325
 
324
326
  function encodeNumber(
325
327
  value: number,
@@ -334,7 +336,7 @@ function encodeNumber(
334
336
  }
335
337
  }
336
338
 
337
- export type EncodeStringErrorType =
339
+ type EncodeStringErrorType =
338
340
  | ConcatErrorType
339
341
  | NumberToHexErrorType
340
342
  | PadHexErrorType
@@ -363,10 +365,11 @@ function encodeString(value: string): PreparedParam {
363
365
  }
364
366
  }
365
367
 
366
- export type EncodeTupleErrorType =
368
+ type EncodeTupleErrorType =
367
369
  | ConcatErrorType
368
370
  | EncodeParamsErrorType
369
- | PrepareParamErrorType
371
+ // TODO: Add back once circular type reference is resolved
372
+ // | PrepareParamErrorType
370
373
  | ErrorType
371
374
 
372
375
  function encodeTuple<
@@ -395,7 +398,7 @@ function encodeTuple<
395
398
  }
396
399
  }
397
400
 
398
- export type GetArrayComponentsErrorType = ErrorType
401
+ type GetArrayComponentsErrorType = ErrorType
399
402
 
400
403
  export function getArrayComponents(
401
404
  type: string,
@@ -1,6 +1,9 @@
1
1
  import type { Abi, AbiParameter, Address } from 'abitype'
2
2
 
3
- import { AbiItemAmbiguityError } from '../../errors/abi.js'
3
+ import {
4
+ AbiItemAmbiguityError,
5
+ type AbiItemAmbiguityErrorType,
6
+ } from '../../errors/abi.js'
4
7
  import type { ErrorType } from '../../errors/utils.js'
5
8
  import type {
6
9
  AbiItem,
@@ -57,6 +60,7 @@ export type GetAbiItemErrorType =
57
60
  | IsArgOfTypeErrorType
58
61
  | IsHexErrorType
59
62
  | ToFunctionSelectorErrorType
63
+ | AbiItemAmbiguityErrorType
60
64
  | ErrorType
61
65
 
62
66
  export type GetAbiItemReturnType<
@@ -148,8 +152,9 @@ export function getAbiItem<
148
152
  return abiItems[0] as GetAbiItemReturnType<abi, name, args>
149
153
  }
150
154
 
151
- export type IsArgOfTypeErrorType = IsAddressErrorType | ErrorType
155
+ type IsArgOfTypeErrorType = IsAddressErrorType | ErrorType
152
156
 
157
+ /** @internal */
153
158
  export function isArgOfType(arg: unknown, abiParameter: AbiParameter): boolean {
154
159
  const argType = typeof arg
155
160
  const abiParameterType = abiParameter.type
@@ -207,6 +212,7 @@ export function isArgOfType(arg: unknown, abiParameter: AbiParameter): boolean {
207
212
  }
208
213
  }
209
214
 
215
+ /** @internal */
210
216
  export function getAmbiguousTypes(
211
217
  sourceParameters: readonly AbiParameter[],
212
218
  targetParameters: readonly AbiParameter[],
@@ -10,7 +10,7 @@ import { type Keccak256ErrorType, keccak256 } from '../hash/keccak256.js'
10
10
  import { LruMap } from '../lru.js'
11
11
  import { type IsAddressErrorType, isAddress } from './isAddress.js'
12
12
 
13
- export const checksumAddressCache = /*#__PURE__*/ new LruMap<Address>(8192)
13
+ const checksumAddressCache = /*#__PURE__*/ new LruMap<Address>(8192)
14
14
 
15
15
  export type ChecksumAddressErrorType =
16
16
  | Keccak256ErrorType
@@ -5,6 +5,7 @@ import { checksumAddress } from './getAddress.js'
5
5
 
6
6
  const addressRegex = /^0x[a-fA-F0-9]{40}$/
7
7
 
8
+ /** @internal */
8
9
  export const isAddressCache = /*#__PURE__*/ new LruMap<boolean>(8192)
9
10
 
10
11
  export type IsAddressOptions = {
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../errors/blob.js'
13
13
  import type { ErrorType } from '../../errors/utils.js'
14
14
  import type { ByteArray, Hex } from '../../types/misc.js'
15
- import { createCursor } from '../cursor.js'
15
+ import { type CreateCursorErrorType, createCursor } from '../cursor.js'
16
16
  import { type SizeErrorType, size } from '../data/size.js'
17
17
  import { type HexToBytesErrorType, hexToBytes } from '../encoding/toBytes.js'
18
18
  import { type BytesToHexErrorType, bytesToHex } from '../encoding/toHex.js'
@@ -36,6 +36,7 @@ export type ToBlobsReturnType<to extends To> =
36
36
  export type ToBlobsErrorType =
37
37
  | BlobSizeTooLargeErrorType
38
38
  | BytesToHexErrorType
39
+ | CreateCursorErrorType
39
40
  | EmptyBlobErrorType
40
41
  | HexToBytesErrorType
41
42
  | SizeErrorType
@@ -190,6 +190,7 @@ export function buildRequest<request extends (args: any) => Promise<any>>(
190
190
  }
191
191
  }
192
192
 
193
+ /** @internal */
193
194
  export function shouldRetry(error: Error) {
194
195
  if ('code' in error && typeof error.code === 'number') {
195
196
  if (error.code === -1) return true // Unknown error
package/utils/ccip.ts CHANGED
@@ -5,10 +5,15 @@ import type { Transport } from '../clients/transports/createTransport.js'
5
5
  import type { BaseError } from '../errors/base.js'
6
6
  import {
7
7
  OffchainLookupError,
8
+ type OffchainLookupErrorType as OffchainLookupErrorType_,
8
9
  OffchainLookupResponseMalformedError,
10
+ type OffchainLookupResponseMalformedErrorType,
9
11
  OffchainLookupSenderMismatchError,
10
12
  } from '../errors/ccip.js'
11
- import { HttpRequestError } from '../errors/request.js'
13
+ import {
14
+ HttpRequestError,
15
+ type HttpRequestErrorType,
16
+ } from '../errors/request.js'
12
17
  import type { Chain } from '../types/chain.js'
13
18
  import type { Hex } from '../types/misc.js'
14
19
 
@@ -49,7 +54,7 @@ export const offchainLookupAbiItem = {
49
54
  ],
50
55
  } as const satisfies Abi[number]
51
56
 
52
- export type OffchainLookupErrorType = ErrorType
57
+ export type OffchainLookupErrorType = OffchainLookupErrorType_ | ErrorType
53
58
 
54
59
  export async function offchainLookup<TChain extends Chain | undefined>(
55
60
  client: Client<Transport, TChain>,
@@ -115,7 +120,10 @@ export type CcipRequestParameters = {
115
120
 
116
121
  export type CcipRequestReturnType = Hex
117
122
 
118
- export type CcipRequestErrorType = ErrorType
123
+ export type CcipRequestErrorType =
124
+ | HttpRequestErrorType
125
+ | OffchainLookupResponseMalformedErrorType
126
+ | ErrorType
119
127
 
120
128
  export async function ccipRequest({
121
129
  data,
@@ -1,5 +1,5 @@
1
1
  import type { ErrorType } from '../../errors/utils.js'
2
- import type { Chain, ExtractChain } from '../../types/chain.js'
2
+ import type { Chain } from '../../types/chain.js'
3
3
 
4
4
  export type ExtractChainParameters<
5
5
  chains extends readonly Chain[],
@@ -12,7 +12,7 @@ export type ExtractChainParameters<
12
12
  export type ExtractChainReturnType<
13
13
  chains extends readonly Chain[],
14
14
  chainId extends chains[number]['id'],
15
- > = ExtractChain<chains, chainId>
15
+ > = Extract<chains[number], { id: chainId }>
16
16
 
17
17
  export type ExtractChainErrorType = ErrorType
18
18
 
package/utils/cursor.ts CHANGED
@@ -1,7 +1,10 @@
1
1
  import {
2
2
  NegativeOffsetError,
3
+ type NegativeOffsetErrorType,
3
4
  PositionOutOfBoundsError,
5
+ type PositionOutOfBoundsErrorType,
4
6
  RecursiveReadLimitExceededError,
7
+ type RecursiveReadLimitExceededErrorType,
5
8
  } from '../errors/cursor.js'
6
9
  import type { ErrorType } from '../errors/utils.js'
7
10
  import type { ByteArray } from '../types/misc.js'
@@ -41,19 +44,21 @@ export type Cursor = {
41
44
  _touch(): void
42
45
  }
43
46
 
44
- export type CreateCursorErrorType = ErrorType
45
-
46
- export type CursorErrorType =
47
+ type CursorErrorType =
47
48
  | CursorAssertPositionErrorType
48
49
  | CursorDecrementPositionErrorType
49
50
  | CursorIncrementPositionErrorType
50
51
  | ErrorType
51
52
 
52
- export type CursorAssertPositionErrorType = PositionOutOfBoundsError | ErrorType
53
+ type CursorAssertPositionErrorType = PositionOutOfBoundsErrorType | ErrorType
54
+
55
+ type CursorDecrementPositionErrorType = NegativeOffsetError | ErrorType
53
56
 
54
- export type CursorDecrementPositionErrorType = NegativeOffsetError | ErrorType
57
+ type CursorIncrementPositionErrorType = NegativeOffsetError | ErrorType
55
58
 
56
- export type CursorIncrementPositionErrorType = NegativeOffsetError | ErrorType
59
+ type StaticCursorErrorType =
60
+ | NegativeOffsetErrorType
61
+ | RecursiveReadLimitExceededErrorType
57
62
 
58
63
  const staticCursor: Cursor = {
59
64
  bytes: new Uint8Array(),
@@ -216,6 +221,11 @@ const staticCursor: Cursor = {
216
221
 
217
222
  type CursorConfig = { recursiveReadLimit?: number | undefined }
218
223
 
224
+ export type CreateCursorErrorType =
225
+ | CursorErrorType
226
+ | StaticCursorErrorType
227
+ | ErrorType
228
+
219
229
  export function createCursor(
220
230
  bytes: ByteArray,
221
231
  { recursiveReadLimit = 8_192 }: CursorConfig = {},
@@ -49,25 +49,7 @@ export function fromRlp<to extends To = 'hex'>(
49
49
  return result as FromRlpReturnType<to>
50
50
  }
51
51
 
52
- export type RlpToBytesErrorType = FromRlpErrorType | ErrorType
53
-
54
- export function rlpToBytes<to extends To = 'bytes'>(
55
- bytes: ByteArray,
56
- to: to | To | undefined = 'bytes',
57
- ): FromRlpReturnType<to> {
58
- return fromRlp(bytes, to)
59
- }
60
-
61
- export type RlpToHexErrorType = FromRlpErrorType | ErrorType
62
-
63
- export function rlpToHex<to extends To = 'hex'>(
64
- hex: Hex,
65
- to: to | To | undefined = 'hex',
66
- ): FromRlpReturnType<to> {
67
- return fromRlp(hex, to)
68
- }
69
-
70
- export type FromRlpCursorErrorType =
52
+ type FromRlpCursorErrorType =
71
53
  | BytesToHexErrorType
72
54
  | ReadLengthErrorType
73
55
  | ReadListErrorType
@@ -97,7 +79,7 @@ function fromRlpCursor<to extends To = 'hex'>(
97
79
  return readList(cursor, length, to) as {} as FromRlpReturnType<to>
98
80
  }
99
81
 
100
- export type ReadLengthErrorType = BaseErrorType | ErrorType
82
+ type ReadLengthErrorType = BaseErrorType | ErrorType
101
83
 
102
84
  function readLength(cursor: Cursor, prefix: number, offset: number) {
103
85
  if (offset === 0x80 && prefix < 0x80) return 1
@@ -109,7 +91,7 @@ function readLength(cursor: Cursor, prefix: number, offset: number) {
109
91
  throw new BaseError('Invalid RLP prefix')
110
92
  }
111
93
 
112
- export type ReadListErrorType = ErrorType
94
+ type ReadListErrorType = ErrorType
113
95
 
114
96
  function readList<to extends To>(cursor: Cursor, length: number, to: to | To) {
115
97
  const position = cursor.position
@@ -49,7 +49,7 @@ export async function parseAvatarRecord<TChain extends Chain | undefined>(
49
49
  return parseAvatarUri({ uri: record, gatewayUrls })
50
50
  }
51
51
 
52
- export type ParseNftAvatarUriErrorType =
52
+ type ParseNftAvatarUriErrorType =
53
53
  | ParseNftUriErrorType
54
54
  | GetNftTokenUriErrorType
55
55
  | ResolveAvatarUriErrorType
@@ -33,8 +33,9 @@ const ipfsHashRegex =
33
33
  const base64Regex = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/
34
34
  const dataURIRegex = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/
35
35
 
36
- export type IsImageUriErrorType = ErrorType
36
+ type IsImageUriErrorType = ErrorType
37
37
 
38
+ /** @internal */
38
39
  export async function isImageUri(uri: string) {
39
40
  try {
40
41
  const res = await fetch(uri, { method: 'HEAD' })
@@ -66,8 +67,9 @@ export async function isImageUri(uri: string) {
66
67
  }
67
68
  }
68
69
 
69
- export type GetGatewayErrorType = ErrorType
70
+ type GetGatewayErrorType = ErrorType
70
71
 
72
+ /** @internal */
71
73
  export function getGateway(custom: string | undefined, defaultGateway: string) {
72
74
  if (!custom) return defaultGateway
73
75
  if (custom.endsWith('/')) return custom.slice(0, -1)
@@ -3,6 +3,7 @@ import { BaseError } from '../../errors/base.js'
3
3
  import { ContractFunctionRevertedError } from '../../errors/contract.js'
4
4
  import type { ErrorType } from '../../errors/utils.js'
5
5
 
6
+ /** @internal */
6
7
  export type IsNullUniversalResolverErrorErrorType = ErrorType
7
8
 
8
9
  /*
@@ -1,8 +1,8 @@
1
1
  import { BaseError } from '../../errors/base.js'
2
2
  import type { ErrorType } from '../../errors/utils.js'
3
3
 
4
- export type NormalizeSignatureParameters = string
5
- export type NormalizeSignatureReturnType = string
4
+ type NormalizeSignatureParameters = string
5
+ type NormalizeSignatureReturnType = string
6
6
  export type NormalizeSignatureErrorType = ErrorType
7
7
 
8
8
  export function normalizeSignature(
package/utils/index.ts CHANGED
@@ -64,6 +64,9 @@ export { getWebSocketRpcClient } from './rpc/webSocket.js'
64
64
  export { type StringifyErrorType, stringify } from './stringify.js'
65
65
  export {
66
66
  type DomainSeparatorErrorType,
67
+ type SerializeTypedDataErrorType,
68
+ type ValidateTypedDataErrorType,
69
+ serializeTypedData,
67
70
  validateTypedData,
68
71
  } from './typedData.js'
69
72
  export {
package/utils/observe.ts CHANGED
@@ -6,10 +6,12 @@ type Callbacks = Record<string, Callback>
6
6
 
7
7
  export type ObserveErrorType = ErrorType
8
8
 
9
+ /** @internal */
9
10
  export const listenersCache = /*#__PURE__*/ new Map<
10
11
  string,
11
12
  { id: number; fns: Callbacks }[]
12
13
  >()
14
+ /** @internal */
13
15
  export const cleanupCache = /*#__PURE__*/ new Map<string, () => void>()
14
16
 
15
17
  type EmitFunction<TCallbacks extends Callbacks> = (
@@ -17,7 +17,7 @@ type BatchResultsCompareFn<TResult = unknown> = (
17
17
  b: TResult,
18
18
  ) => number
19
19
 
20
- export type CreateBatchSchedulerArguments<
20
+ type CreateBatchSchedulerArguments<
21
21
  TParameters = unknown,
22
22
  TReturnType extends readonly unknown[] = readonly unknown[],
23
23
  > = {
@@ -28,7 +28,7 @@ export type CreateBatchSchedulerArguments<
28
28
  sort?: BatchResultsCompareFn<TReturnType[number]> | undefined
29
29
  }
30
30
 
31
- export type CreateBatchSchedulerReturnType<
31
+ type CreateBatchSchedulerReturnType<
32
32
  TParameters = unknown,
33
33
  TReturnType extends readonly unknown[] = readonly unknown[],
34
34
  > = {
@@ -42,6 +42,7 @@ export type CreateBatchSchedulerErrorType = ErrorType
42
42
 
43
43
  const schedulerCache = /*#__PURE__*/ new Map<number | string, SchedulerItem[]>()
44
44
 
45
+ /** @internal */
45
46
  export function createBatchScheduler<
46
47
  TParameters,
47
48
  TReturnType extends readonly unknown[],
@@ -1,6 +1,8 @@
1
1
  import type { ErrorType } from '../../errors/utils.js'
2
2
 
3
+ /** @internal */
3
4
  export const promiseCache = /*#__PURE__*/ new Map()
5
+ /** @internal */
4
6
  export const responseCache = /*#__PURE__*/ new Map()
5
7
 
6
8
  export type GetCacheErrorType = ErrorType
@@ -28,7 +30,7 @@ export function getCache<TData>(cacheKey: string) {
28
30
  }
29
31
  }
30
32
 
31
- export type WithCacheParameters = {
33
+ type WithCacheParameters = {
32
34
  /** The key to cache the data against. */
33
35
  cacheKey: string
34
36
  /** The time that cached data will remain in memory. Default: Infinity (no expiry) */
@@ -21,7 +21,7 @@ export function withTimeout<TData>(
21
21
  ): Promise<TData> {
22
22
  return new Promise((resolve, reject) => {
23
23
  ;(async () => {
24
- let timeoutId!: Timer
24
+ let timeoutId!: NodeJS.Timeout
25
25
  try {
26
26
  const controller = new AbortController()
27
27
  if (timeout > 0) {
@@ -31,7 +31,7 @@ export function withTimeout<TData>(
31
31
  } else {
32
32
  reject(errorInstance)
33
33
  }
34
- }, timeout)
34
+ }, timeout) as NodeJS.Timeout // need to cast because bun globals.d.ts overrides @types/node
35
35
  }
36
36
  resolve(await fn({ signal: controller?.signal || null }))
37
37
  } catch (err) {
package/utils/rpc/id.ts CHANGED
@@ -1,4 +1,4 @@
1
- export function createIdStore() {
1
+ function createIdStore() {
2
2
  return {
3
3
  current: 0,
4
4
  take() {
package/utils/rpc/ipc.ts CHANGED
@@ -15,6 +15,7 @@ export type GetIpcRpcClientOptions = Pick<
15
15
  const openingBrace = '{'.charCodeAt(0)
16
16
  const closingBrace = '}'.charCodeAt(0)
17
17
 
18
+ /** @internal */
18
19
  export function extractMessages(buffer: Buffer): [Buffer[], Buffer] {
19
20
  const messages: Buffer[] = []
20
21
 
@@ -21,10 +21,11 @@ import type { StateMapping, StateOverride } from '../types/stateOverride.js'
21
21
  import { isAddress } from './address/isAddress.js'
22
22
  import { type NumberToHexErrorType, numberToHex } from './encoding/toHex.js'
23
23
 
24
- export type SerializeStateMappingParameters = StateMapping | undefined
24
+ type SerializeStateMappingParameters = StateMapping | undefined
25
25
 
26
- export type SerializeStateMappingErrorType = InvalidBytesLengthErrorType
26
+ type SerializeStateMappingErrorType = InvalidBytesLengthErrorType
27
27
 
28
+ /** @internal */
28
29
  export function serializeStateMapping(
29
30
  stateMapping: SerializeStateMappingParameters,
30
31
  ): RpcStateMapping | undefined {
@@ -47,16 +48,17 @@ export function serializeStateMapping(
47
48
  }, {} as RpcStateMapping)
48
49
  }
49
50
 
50
- export type SerializeAccountStateOverrideParameters = Omit<
51
+ type SerializeAccountStateOverrideParameters = Omit<
51
52
  StateOverride[number],
52
53
  'address'
53
54
  >
54
55
 
55
- export type SerializeAccountStateOverrideErrorType =
56
+ type SerializeAccountStateOverrideErrorType =
56
57
  | NumberToHexErrorType
57
58
  | StateAssignmentConflictErrorType
58
59
  | SerializeStateMappingErrorType
59
60
 
61
+ /** @internal */
60
62
  export function serializeAccountStateOverride(
61
63
  parameters: SerializeAccountStateOverrideParameters,
62
64
  ): RpcAccountStateOverride {
@@ -75,13 +77,14 @@ export function serializeAccountStateOverride(
75
77
  return rpcAccountStateOverride
76
78
  }
77
79
 
78
- export type SerializeStateOverrideParameters = StateOverride | undefined
80
+ type SerializeStateOverrideParameters = StateOverride | undefined
79
81
 
80
82
  export type SerializeStateOverrideErrorType =
81
83
  | InvalidAddressErrorType
82
84
  | AccountStateConflictErrorType
83
85
  | SerializeAccountStateOverrideErrorType
84
86
 
87
+ /** @internal */
85
88
  export function serializeStateOverride(
86
89
  parameters?: SerializeStateOverrideParameters,
87
90
  ): RpcStateOverride | undefined {
@@ -26,7 +26,7 @@ import type {
26
26
  TransactionSerializedGeneric,
27
27
  TransactionType,
28
28
  } from '../../types/transaction.js'
29
- import type { IsNarrowable } from '../../types/utils.js'
29
+ import type { IsNarrowable, Mutable } from '../../types/utils.js'
30
30
  import { type IsAddressErrorType, isAddress } from '../address/isAddress.js'
31
31
  import { toBlobSidecars } from '../blob/toBlobSidecars.js'
32
32
  import { type IsHexErrorType, isHex } from '../data/isHex.js'
@@ -102,6 +102,7 @@ export function parseTransaction<
102
102
  }
103
103
 
104
104
  type ParseTransactionEIP4844ErrorType =
105
+ | ToTransactionArrayErrorType
105
106
  | AssertTransactionEIP4844ErrorType
106
107
  | ToTransactionArrayErrorType
107
108
  | HexToBigIntErrorType
@@ -204,6 +205,7 @@ function parseTransactionEIP4844(
204
205
  }
205
206
 
206
207
  type ParseTransactionEIP1559ErrorType =
208
+ | ToTransactionArrayErrorType
207
209
  | AssertTransactionEIP1559ErrorType
208
210
  | ToTransactionArrayErrorType
209
211
  | HexToBigIntErrorType
@@ -212,6 +214,7 @@ type ParseTransactionEIP1559ErrorType =
212
214
  | InvalidSerializedTransactionErrorType
213
215
  | IsHexErrorType
214
216
  | ParseEIP155SignatureErrorType
217
+ | ParseAccessListErrorType
215
218
  | ErrorType
216
219
 
217
220
  function parseTransactionEIP1559(
@@ -285,6 +288,7 @@ function parseTransactionEIP1559(
285
288
  }
286
289
 
287
290
  type ParseTransactionEIP2930ErrorType =
291
+ | ToTransactionArrayErrorType
288
292
  | AssertTransactionEIP2930ErrorType
289
293
  | ToTransactionArrayErrorType
290
294
  | HexToBigIntErrorType
@@ -293,6 +297,7 @@ type ParseTransactionEIP2930ErrorType =
293
297
  | InvalidSerializedTransactionErrorType
294
298
  | IsHexErrorType
295
299
  | ParseEIP155SignatureErrorType
300
+ | ParseAccessListErrorType
296
301
  | ErrorType
297
302
 
298
303
  function parseTransactionEIP2930(
@@ -430,19 +435,19 @@ function parseTransactionLegacy(
430
435
  return transaction
431
436
  }
432
437
 
433
- export type ToTransactionArrayErrorType = FromRlpErrorType | ErrorType
438
+ type ToTransactionArrayErrorType = FromRlpErrorType | ErrorType
434
439
 
435
440
  export function toTransactionArray(serializedTransaction: string) {
436
441
  return fromRlp(`0x${serializedTransaction.slice(4)}` as Hex, 'hex')
437
442
  }
438
443
 
439
- export type ParseAccessListErrorType =
444
+ type ParseAccessListErrorType =
440
445
  | InvalidAddressErrorType
441
446
  | IsAddressErrorType
442
447
  | ErrorType
443
448
 
444
449
  export function parseAccessList(accessList_: RecursiveArray<Hex>): AccessList {
445
- const accessList: AccessList = []
450
+ const accessList: Mutable<AccessList> = []
446
451
  for (let i = 0; i < accessList_.length; i++) {
447
452
  const [address, storageKeys] = accessList_[i] as [Hex, Hex[]]
448
453
 
@@ -19,7 +19,7 @@ export function parseUnits(value: string, decimals: number) {
19
19
  const negative = integer.startsWith('-')
20
20
  if (negative) integer = integer.slice(1)
21
21
 
22
- // trim leading zeros.
22
+ // trim trailing zeros.
23
23
  fraction = fraction.replace(/(0+)$/, '')
24
24
 
25
25
  // round off if the fraction is larger than the number of decimals.