viem 2.17.2 → 2.17.4

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 (798) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/accounts/toAccount.js.map +1 -1
  3. package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
  4. package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
  5. package/_cjs/actions/ens/getEnsName.js.map +1 -1
  6. package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
  7. package/_cjs/actions/ens/getEnsText.js.map +1 -1
  8. package/_cjs/actions/getContract.js.map +1 -1
  9. package/_cjs/actions/public/call.js.map +1 -1
  10. package/_cjs/actions/public/createBlockFilter.js.map +1 -1
  11. package/_cjs/actions/public/createEventFilter.js.map +1 -1
  12. package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
  13. package/_cjs/actions/public/estimateGas.js.map +1 -1
  14. package/_cjs/actions/public/getBalance.js.map +1 -1
  15. package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
  16. package/_cjs/actions/public/getBlock.js.map +1 -1
  17. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  18. package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
  19. package/_cjs/actions/public/getChainId.js.map +1 -1
  20. package/_cjs/actions/public/getCode.js.map +1 -1
  21. package/_cjs/actions/public/getFeeHistory.js.map +1 -1
  22. package/_cjs/actions/public/getFilterChanges.js.map +1 -1
  23. package/_cjs/actions/public/getFilterLogs.js.map +1 -1
  24. package/_cjs/actions/public/getGasPrice.js.map +1 -1
  25. package/_cjs/actions/public/getLogs.js.map +1 -1
  26. package/_cjs/actions/public/getProof.js.map +1 -1
  27. package/_cjs/actions/public/getStorageAt.js.map +1 -1
  28. package/_cjs/actions/public/getTransaction.js.map +1 -1
  29. package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  30. package/_cjs/actions/public/getTransactionCount.js.map +1 -1
  31. package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
  32. package/_cjs/actions/public/uninstallFilter.js.map +1 -1
  33. package/_cjs/actions/public/verifyHash.js +9 -0
  34. package/_cjs/actions/public/verifyHash.js.map +1 -1
  35. package/_cjs/actions/public/verifyMessage.js.map +1 -1
  36. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  37. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  38. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  39. package/_cjs/actions/public/watchEvent.js.map +1 -1
  40. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  41. package/_cjs/actions/test/dropTransaction.js.map +1 -1
  42. package/_cjs/actions/test/dumpState.js.map +1 -1
  43. package/_cjs/actions/test/getAutomine.js.map +1 -1
  44. package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
  45. package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
  46. package/_cjs/actions/test/impersonateAccount.js.map +1 -1
  47. package/_cjs/actions/test/increaseTime.js.map +1 -1
  48. package/_cjs/actions/test/inspectTxpool.js.map +1 -1
  49. package/_cjs/actions/test/loadState.js.map +1 -1
  50. package/_cjs/actions/test/mine.js.map +1 -1
  51. package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
  52. package/_cjs/actions/test/reset.js.map +1 -1
  53. package/_cjs/actions/test/revert.js.map +1 -1
  54. package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  55. package/_cjs/actions/test/setAutomine.js.map +1 -1
  56. package/_cjs/actions/test/setBalance.js.map +1 -1
  57. package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
  58. package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
  59. package/_cjs/actions/test/setCode.js.map +1 -1
  60. package/_cjs/actions/test/setCoinbase.js.map +1 -1
  61. package/_cjs/actions/test/setIntervalMining.js.map +1 -1
  62. package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
  63. package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
  64. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  65. package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
  66. package/_cjs/actions/test/setNonce.js.map +1 -1
  67. package/_cjs/actions/test/setRpcUrl.js.map +1 -1
  68. package/_cjs/actions/test/setStorageAt.js.map +1 -1
  69. package/_cjs/actions/test/snapshot.js.map +1 -1
  70. package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
  71. package/_cjs/actions/wallet/addChain.js.map +1 -1
  72. package/_cjs/actions/wallet/getAddresses.js.map +1 -1
  73. package/_cjs/actions/wallet/getPermissions.js.map +1 -1
  74. package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
  75. package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
  76. package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
  77. package/_cjs/actions/wallet/signMessage.js.map +1 -1
  78. package/_cjs/actions/wallet/switchChain.js.map +1 -1
  79. package/_cjs/actions/wallet/watchAsset.js.map +1 -1
  80. package/_cjs/celo/parsers.js.map +1 -1
  81. package/_cjs/chains/definitions/dreyerxTestnet.js +26 -0
  82. package/_cjs/chains/definitions/dreyerxTestnet.js.map +1 -0
  83. package/_cjs/chains/index.js +8 -6
  84. package/_cjs/chains/index.js.map +1 -1
  85. package/_cjs/clients/decorators/public.js.map +1 -1
  86. package/_cjs/clients/decorators/test.js.map +1 -1
  87. package/_cjs/clients/decorators/wallet.js.map +1 -1
  88. package/_cjs/clients/transports/createTransport.js.map +1 -1
  89. package/_cjs/clients/transports/custom.js.map +1 -1
  90. package/_cjs/errors/version.js +1 -1
  91. package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
  92. package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
  93. package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
  94. package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
  95. package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
  96. package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
  97. package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
  98. package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
  99. package/_cjs/op-stack/parsers.js.map +1 -1
  100. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  101. package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
  102. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  103. package/_cjs/utils/abi/encodePacked.js.map +1 -1
  104. package/_cjs/utils/ccip.js.map +1 -1
  105. package/_cjs/utils/data/concat.js.map +1 -1
  106. package/_cjs/utils/data/pad.js.map +1 -1
  107. package/_cjs/utils/data/slice.js.map +1 -1
  108. package/_cjs/utils/data/trim.js.map +1 -1
  109. package/_cjs/utils/encoding/fromBytes.js.map +1 -1
  110. package/_cjs/utils/encoding/fromHex.js.map +1 -1
  111. package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  112. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  113. package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
  114. package/_cjs/utils/formatters/formatter.js.map +1 -1
  115. package/_cjs/utils/hash/keccak256.js.map +1 -1
  116. package/_cjs/utils/hash/ripemd160.js.map +1 -1
  117. package/_cjs/utils/hash/sha256.js.map +1 -1
  118. package/_cjs/utils/observe.js.map +1 -1
  119. package/_cjs/utils/poll.js.map +1 -1
  120. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  121. package/_cjs/utils/promise/withCache.js.map +1 -1
  122. package/_cjs/utils/promise/withRetry.js.map +1 -1
  123. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  124. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  125. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  126. package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
  127. package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
  128. package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
  129. package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
  130. package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
  131. package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
  132. package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
  133. package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
  134. package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
  135. package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
  136. package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
  137. package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
  138. package/_cjs/zksync/actions/getLogProof.js.map +1 -1
  139. package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
  140. package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
  141. package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
  142. package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
  143. package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
  144. package/_cjs/zksync/actions/signTransaction.js.map +1 -1
  145. package/_cjs/zksync/decorators/publicL1.js.map +1 -1
  146. package/_cjs/zksync/decorators/publicL2.js.map +1 -1
  147. package/_esm/accounts/toAccount.js.map +1 -1
  148. package/_esm/actions/ens/getEnsAddress.js.map +1 -1
  149. package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
  150. package/_esm/actions/ens/getEnsName.js.map +1 -1
  151. package/_esm/actions/ens/getEnsResolver.js.map +1 -1
  152. package/_esm/actions/ens/getEnsText.js.map +1 -1
  153. package/_esm/actions/getContract.js.map +1 -1
  154. package/_esm/actions/public/call.js.map +1 -1
  155. package/_esm/actions/public/createBlockFilter.js.map +1 -1
  156. package/_esm/actions/public/createEventFilter.js.map +1 -1
  157. package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
  158. package/_esm/actions/public/estimateGas.js.map +1 -1
  159. package/_esm/actions/public/getBalance.js.map +1 -1
  160. package/_esm/actions/public/getBlobBaseFee.js.map +1 -1
  161. package/_esm/actions/public/getBlock.js.map +1 -1
  162. package/_esm/actions/public/getBlockNumber.js.map +1 -1
  163. package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
  164. package/_esm/actions/public/getChainId.js.map +1 -1
  165. package/_esm/actions/public/getCode.js.map +1 -1
  166. package/_esm/actions/public/getFeeHistory.js.map +1 -1
  167. package/_esm/actions/public/getFilterChanges.js.map +1 -1
  168. package/_esm/actions/public/getFilterLogs.js.map +1 -1
  169. package/_esm/actions/public/getGasPrice.js.map +1 -1
  170. package/_esm/actions/public/getLogs.js.map +1 -1
  171. package/_esm/actions/public/getProof.js.map +1 -1
  172. package/_esm/actions/public/getStorageAt.js.map +1 -1
  173. package/_esm/actions/public/getTransaction.js.map +1 -1
  174. package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
  175. package/_esm/actions/public/getTransactionCount.js.map +1 -1
  176. package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
  177. package/_esm/actions/public/uninstallFilter.js.map +1 -1
  178. package/_esm/actions/public/verifyHash.js +10 -0
  179. package/_esm/actions/public/verifyHash.js.map +1 -1
  180. package/_esm/actions/public/verifyMessage.js.map +1 -1
  181. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  182. package/_esm/actions/public/watchBlockNumber.js.map +1 -1
  183. package/_esm/actions/public/watchBlocks.js.map +1 -1
  184. package/_esm/actions/public/watchEvent.js.map +1 -1
  185. package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
  186. package/_esm/actions/test/dropTransaction.js.map +1 -1
  187. package/_esm/actions/test/dumpState.js.map +1 -1
  188. package/_esm/actions/test/getAutomine.js.map +1 -1
  189. package/_esm/actions/test/getTxpoolContent.js.map +1 -1
  190. package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
  191. package/_esm/actions/test/impersonateAccount.js.map +1 -1
  192. package/_esm/actions/test/increaseTime.js.map +1 -1
  193. package/_esm/actions/test/inspectTxpool.js.map +1 -1
  194. package/_esm/actions/test/loadState.js.map +1 -1
  195. package/_esm/actions/test/mine.js.map +1 -1
  196. package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
  197. package/_esm/actions/test/reset.js.map +1 -1
  198. package/_esm/actions/test/revert.js.map +1 -1
  199. package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  200. package/_esm/actions/test/setAutomine.js.map +1 -1
  201. package/_esm/actions/test/setBalance.js.map +1 -1
  202. package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
  203. package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
  204. package/_esm/actions/test/setCode.js.map +1 -1
  205. package/_esm/actions/test/setCoinbase.js.map +1 -1
  206. package/_esm/actions/test/setIntervalMining.js.map +1 -1
  207. package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
  208. package/_esm/actions/test/setMinGasPrice.js.map +1 -1
  209. package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  210. package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
  211. package/_esm/actions/test/setNonce.js.map +1 -1
  212. package/_esm/actions/test/setRpcUrl.js.map +1 -1
  213. package/_esm/actions/test/setStorageAt.js.map +1 -1
  214. package/_esm/actions/test/snapshot.js.map +1 -1
  215. package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
  216. package/_esm/actions/wallet/addChain.js.map +1 -1
  217. package/_esm/actions/wallet/getAddresses.js.map +1 -1
  218. package/_esm/actions/wallet/getPermissions.js.map +1 -1
  219. package/_esm/actions/wallet/requestAddresses.js.map +1 -1
  220. package/_esm/actions/wallet/requestPermissions.js.map +1 -1
  221. package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
  222. package/_esm/actions/wallet/signMessage.js.map +1 -1
  223. package/_esm/actions/wallet/switchChain.js.map +1 -1
  224. package/_esm/actions/wallet/watchAsset.js.map +1 -1
  225. package/_esm/celo/parsers.js.map +1 -1
  226. package/_esm/chains/definitions/dreyerxTestnet.js +23 -0
  227. package/_esm/chains/definitions/dreyerxTestnet.js.map +1 -0
  228. package/_esm/chains/index.js +1 -0
  229. package/_esm/chains/index.js.map +1 -1
  230. package/_esm/clients/decorators/public.js.map +1 -1
  231. package/_esm/clients/decorators/test.js.map +1 -1
  232. package/_esm/clients/decorators/wallet.js.map +1 -1
  233. package/_esm/clients/transports/createTransport.js.map +1 -1
  234. package/_esm/clients/transports/custom.js.map +1 -1
  235. package/_esm/errors/version.js +1 -1
  236. package/_esm/op-stack/actions/estimateL1Gas.js.map +1 -1
  237. package/_esm/op-stack/actions/estimateTotalFee.js.map +1 -1
  238. package/_esm/op-stack/actions/estimateTotalGas.js.map +1 -1
  239. package/_esm/op-stack/actions/getL1BaseFee.js.map +1 -1
  240. package/_esm/op-stack/decorators/publicL1.js.map +1 -1
  241. package/_esm/op-stack/decorators/publicL2.js.map +1 -1
  242. package/_esm/op-stack/decorators/walletL1.js.map +1 -1
  243. package/_esm/op-stack/decorators/walletL2.js.map +1 -1
  244. package/_esm/op-stack/parsers.js.map +1 -1
  245. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  246. package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
  247. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  248. package/_esm/utils/abi/encodePacked.js.map +1 -1
  249. package/_esm/utils/ccip.js.map +1 -1
  250. package/_esm/utils/data/concat.js.map +1 -1
  251. package/_esm/utils/data/pad.js.map +1 -1
  252. package/_esm/utils/data/slice.js.map +1 -1
  253. package/_esm/utils/data/trim.js.map +1 -1
  254. package/_esm/utils/encoding/fromBytes.js.map +1 -1
  255. package/_esm/utils/encoding/fromHex.js.map +1 -1
  256. package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  257. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  258. package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
  259. package/_esm/utils/formatters/formatter.js.map +1 -1
  260. package/_esm/utils/hash/keccak256.js.map +1 -1
  261. package/_esm/utils/hash/ripemd160.js.map +1 -1
  262. package/_esm/utils/hash/sha256.js.map +1 -1
  263. package/_esm/utils/observe.js.map +1 -1
  264. package/_esm/utils/poll.js.map +1 -1
  265. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  266. package/_esm/utils/promise/withCache.js.map +1 -1
  267. package/_esm/utils/promise/withRetry.js.map +1 -1
  268. package/_esm/utils/promise/withTimeout.js.map +1 -1
  269. package/_esm/utils/signature/hashMessage.js.map +1 -1
  270. package/_esm/utils/transaction/parseTransaction.js.map +1 -1
  271. package/_esm/zksync/actions/getAllBalances.js.map +1 -1
  272. package/_esm/zksync/actions/getBaseTokenL1Address.js.map +1 -1
  273. package/_esm/zksync/actions/getBlockDetails.js.map +1 -1
  274. package/_esm/zksync/actions/getBridgehubContractAddress.js.map +1 -1
  275. package/_esm/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
  276. package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
  277. package/_esm/zksync/actions/getL1Balance.js.map +1 -1
  278. package/_esm/zksync/actions/getL1BatchBlockRange.js.map +1 -1
  279. package/_esm/zksync/actions/getL1BatchDetails.js.map +1 -1
  280. package/_esm/zksync/actions/getL1BatchNumber.js.map +1 -1
  281. package/_esm/zksync/actions/getL1ChainId.js.map +1 -1
  282. package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
  283. package/_esm/zksync/actions/getLogProof.js.map +1 -1
  284. package/_esm/zksync/actions/getMainContractAddress.js.map +1 -1
  285. package/_esm/zksync/actions/getRawBlockTransactions.js.map +1 -1
  286. package/_esm/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
  287. package/_esm/zksync/actions/getTransactionDetails.js.map +1 -1
  288. package/_esm/zksync/actions/signEip712Transaction.js.map +1 -1
  289. package/_esm/zksync/actions/signTransaction.js.map +1 -1
  290. package/_esm/zksync/decorators/publicL1.js.map +1 -1
  291. package/_esm/zksync/decorators/publicL2.js.map +1 -1
  292. package/_types/accounts/toAccount.d.ts +2 -2
  293. package/_types/accounts/toAccount.d.ts.map +1 -1
  294. package/_types/accounts/types.d.ts +6 -6
  295. package/_types/accounts/types.d.ts.map +1 -1
  296. package/_types/actions/ens/getEnsAddress.d.ts +1 -1
  297. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  298. package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
  299. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  300. package/_types/actions/ens/getEnsName.d.ts +1 -1
  301. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  302. package/_types/actions/ens/getEnsResolver.d.ts +1 -1
  303. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  304. package/_types/actions/ens/getEnsText.d.ts +1 -1
  305. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  306. package/_types/actions/getContract.d.ts +60 -60
  307. package/_types/actions/getContract.d.ts.map +1 -1
  308. package/_types/actions/public/call.d.ts +3 -3
  309. package/_types/actions/public/call.d.ts.map +1 -1
  310. package/_types/actions/public/createBlockFilter.d.ts +1 -1
  311. package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
  312. package/_types/actions/public/createContractEventFilter.d.ts +2 -2
  313. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
  314. package/_types/actions/public/createEventFilter.d.ts +13 -13
  315. package/_types/actions/public/createEventFilter.d.ts.map +1 -1
  316. package/_types/actions/public/createPendingTransactionFilter.d.ts +1 -1
  317. package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
  318. package/_types/actions/public/estimateGas.d.ts +3 -3
  319. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  320. package/_types/actions/public/getBalance.d.ts +1 -1
  321. package/_types/actions/public/getBalance.d.ts.map +1 -1
  322. package/_types/actions/public/getBlobBaseFee.d.ts +1 -1
  323. package/_types/actions/public/getBlobBaseFee.d.ts.map +1 -1
  324. package/_types/actions/public/getBlock.d.ts +5 -5
  325. package/_types/actions/public/getBlock.d.ts.map +1 -1
  326. package/_types/actions/public/getBlockNumber.d.ts +1 -1
  327. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  328. package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
  329. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  330. package/_types/actions/public/getChainId.d.ts +1 -1
  331. package/_types/actions/public/getChainId.d.ts.map +1 -1
  332. package/_types/actions/public/getCode.d.ts +1 -1
  333. package/_types/actions/public/getCode.d.ts.map +1 -1
  334. package/_types/actions/public/getContractEvents.d.ts +1 -1
  335. package/_types/actions/public/getContractEvents.d.ts.map +1 -1
  336. package/_types/actions/public/getFeeHistory.d.ts +1 -1
  337. package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
  338. package/_types/actions/public/getFilterChanges.d.ts +4 -4
  339. package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
  340. package/_types/actions/public/getFilterLogs.d.ts +4 -4
  341. package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
  342. package/_types/actions/public/getGasPrice.d.ts +1 -1
  343. package/_types/actions/public/getGasPrice.d.ts.map +1 -1
  344. package/_types/actions/public/getLogs.d.ts +10 -10
  345. package/_types/actions/public/getLogs.d.ts.map +1 -1
  346. package/_types/actions/public/getProof.d.ts +1 -1
  347. package/_types/actions/public/getProof.d.ts.map +1 -1
  348. package/_types/actions/public/getStorageAt.d.ts +1 -1
  349. package/_types/actions/public/getStorageAt.d.ts.map +1 -1
  350. package/_types/actions/public/getTransaction.d.ts +4 -4
  351. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  352. package/_types/actions/public/getTransactionConfirmations.d.ts +3 -3
  353. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  354. package/_types/actions/public/getTransactionCount.d.ts +1 -1
  355. package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
  356. package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
  357. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  358. package/_types/actions/public/uninstallFilter.d.ts +1 -1
  359. package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
  360. package/_types/actions/public/verifyHash.d.ts +1 -1
  361. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  362. package/_types/actions/public/verifyMessage.d.ts +1 -1
  363. package/_types/actions/public/verifyMessage.d.ts.map +1 -1
  364. package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -7
  365. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  366. package/_types/actions/public/watchBlockNumber.d.ts +3 -3
  367. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  368. package/_types/actions/public/watchBlocks.d.ts +8 -8
  369. package/_types/actions/public/watchBlocks.d.ts.map +1 -1
  370. package/_types/actions/public/watchEvent.d.ts +11 -11
  371. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  372. package/_types/actions/public/watchPendingTransactions.d.ts +3 -3
  373. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  374. package/_types/actions/test/dropTransaction.d.ts +1 -1
  375. package/_types/actions/test/dropTransaction.d.ts.map +1 -1
  376. package/_types/actions/test/dumpState.d.ts +1 -1
  377. package/_types/actions/test/dumpState.d.ts.map +1 -1
  378. package/_types/actions/test/getAutomine.d.ts +1 -1
  379. package/_types/actions/test/getAutomine.d.ts.map +1 -1
  380. package/_types/actions/test/getTxpoolContent.d.ts +1 -1
  381. package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
  382. package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
  383. package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
  384. package/_types/actions/test/impersonateAccount.d.ts +1 -1
  385. package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
  386. package/_types/actions/test/increaseTime.d.ts +1 -1
  387. package/_types/actions/test/increaseTime.d.ts.map +1 -1
  388. package/_types/actions/test/inspectTxpool.d.ts +1 -1
  389. package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
  390. package/_types/actions/test/loadState.d.ts +1 -1
  391. package/_types/actions/test/loadState.d.ts.map +1 -1
  392. package/_types/actions/test/mine.d.ts +1 -1
  393. package/_types/actions/test/mine.d.ts.map +1 -1
  394. package/_types/actions/test/removeBlockTimestampInterval.d.ts +1 -1
  395. package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
  396. package/_types/actions/test/reset.d.ts +1 -1
  397. package/_types/actions/test/reset.d.ts.map +1 -1
  398. package/_types/actions/test/revert.d.ts +1 -1
  399. package/_types/actions/test/revert.d.ts.map +1 -1
  400. package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
  401. package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  402. package/_types/actions/test/setAutomine.d.ts +1 -1
  403. package/_types/actions/test/setAutomine.d.ts.map +1 -1
  404. package/_types/actions/test/setBalance.d.ts +1 -1
  405. package/_types/actions/test/setBalance.d.ts.map +1 -1
  406. package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
  407. package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
  408. package/_types/actions/test/setBlockTimestampInterval.d.ts +1 -1
  409. package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
  410. package/_types/actions/test/setCode.d.ts +1 -1
  411. package/_types/actions/test/setCode.d.ts.map +1 -1
  412. package/_types/actions/test/setCoinbase.d.ts +1 -1
  413. package/_types/actions/test/setCoinbase.d.ts.map +1 -1
  414. package/_types/actions/test/setIntervalMining.d.ts +1 -1
  415. package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
  416. package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
  417. package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
  418. package/_types/actions/test/setMinGasPrice.d.ts +1 -1
  419. package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
  420. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
  421. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
  422. package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
  423. package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
  424. package/_types/actions/test/setNonce.d.ts +1 -1
  425. package/_types/actions/test/setNonce.d.ts.map +1 -1
  426. package/_types/actions/test/setRpcUrl.d.ts +1 -1
  427. package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
  428. package/_types/actions/test/setStorageAt.d.ts +1 -1
  429. package/_types/actions/test/setStorageAt.d.ts.map +1 -1
  430. package/_types/actions/test/snapshot.d.ts +1 -1
  431. package/_types/actions/test/snapshot.d.ts.map +1 -1
  432. package/_types/actions/test/stopImpersonatingAccount.d.ts +1 -1
  433. package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
  434. package/_types/actions/wallet/addChain.d.ts +1 -1
  435. package/_types/actions/wallet/addChain.d.ts.map +1 -1
  436. package/_types/actions/wallet/getAddresses.d.ts +1 -1
  437. package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
  438. package/_types/actions/wallet/getPermissions.d.ts +1 -1
  439. package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
  440. package/_types/actions/wallet/requestAddresses.d.ts +1 -1
  441. package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
  442. package/_types/actions/wallet/requestPermissions.d.ts +1 -1
  443. package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
  444. package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
  445. package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
  446. package/_types/actions/wallet/signMessage.d.ts +2 -2
  447. package/_types/actions/wallet/signMessage.d.ts.map +1 -1
  448. package/_types/actions/wallet/switchChain.d.ts +1 -1
  449. package/_types/actions/wallet/switchChain.d.ts.map +1 -1
  450. package/_types/actions/wallet/watchAsset.d.ts +1 -1
  451. package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
  452. package/_types/celo/parsers.d.ts +2 -2
  453. package/_types/celo/parsers.d.ts.map +1 -1
  454. package/_types/celo/types.d.ts +1 -1
  455. package/_types/celo/types.d.ts.map +1 -1
  456. package/_types/chains/definitions/dreyerxTestnet.d.ts +35 -0
  457. package/_types/chains/definitions/dreyerxTestnet.d.ts.map +1 -0
  458. package/_types/chains/index.d.ts +1 -0
  459. package/_types/chains/index.d.ts.map +1 -1
  460. package/_types/clients/decorators/public.d.ts +23 -23
  461. package/_types/clients/decorators/public.d.ts.map +1 -1
  462. package/_types/clients/decorators/test.d.ts +4 -4
  463. package/_types/clients/decorators/test.d.ts.map +1 -1
  464. package/_types/clients/decorators/wallet.d.ts +10 -10
  465. package/_types/clients/decorators/wallet.d.ts.map +1 -1
  466. package/_types/clients/transports/createTransport.d.ts +9 -9
  467. package/_types/clients/transports/createTransport.d.ts.map +1 -1
  468. package/_types/clients/transports/custom.d.ts +1 -1
  469. package/_types/clients/transports/custom.d.ts.map +1 -1
  470. package/_types/errors/rpc.d.ts +5 -5
  471. package/_types/errors/rpc.d.ts.map +1 -1
  472. package/_types/errors/version.d.ts +1 -1
  473. package/_types/op-stack/actions/estimateL1Gas.d.ts +2 -2
  474. package/_types/op-stack/actions/estimateL1Gas.d.ts.map +1 -1
  475. package/_types/op-stack/actions/estimateTotalFee.d.ts +2 -2
  476. package/_types/op-stack/actions/estimateTotalFee.d.ts.map +1 -1
  477. package/_types/op-stack/actions/estimateTotalGas.d.ts +2 -2
  478. package/_types/op-stack/actions/estimateTotalGas.d.ts.map +1 -1
  479. package/_types/op-stack/actions/getL1BaseFee.d.ts +2 -2
  480. package/_types/op-stack/actions/getL1BaseFee.d.ts.map +1 -1
  481. package/_types/op-stack/decorators/publicL1.d.ts +1 -1
  482. package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
  483. package/_types/op-stack/decorators/publicL2.d.ts +1 -1
  484. package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
  485. package/_types/op-stack/decorators/walletL1.d.ts +1 -1
  486. package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
  487. package/_types/op-stack/decorators/walletL2.d.ts +1 -1
  488. package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
  489. package/_types/op-stack/parsers.d.ts +2 -2
  490. package/_types/op-stack/parsers.d.ts.map +1 -1
  491. package/_types/op-stack/types/block.d.ts +2 -2
  492. package/_types/op-stack/types/block.d.ts.map +1 -1
  493. package/_types/op-stack/types/transaction.d.ts +8 -8
  494. package/_types/op-stack/types/transaction.d.ts.map +1 -1
  495. package/_types/types/account.d.ts +5 -5
  496. package/_types/types/account.d.ts.map +1 -1
  497. package/_types/types/block.d.ts +7 -7
  498. package/_types/types/block.d.ts.map +1 -1
  499. package/_types/types/contract.d.ts +20 -20
  500. package/_types/types/contract.d.ts.map +1 -1
  501. package/_types/types/eip1193.d.ts +35 -35
  502. package/_types/types/eip1193.d.ts.map +1 -1
  503. package/_types/types/filter.d.ts +16 -16
  504. package/_types/types/filter.d.ts.map +1 -1
  505. package/_types/types/log.d.ts +20 -20
  506. package/_types/types/log.d.ts.map +1 -1
  507. package/_types/types/proof.d.ts +6 -6
  508. package/_types/types/proof.d.ts.map +1 -1
  509. package/_types/types/rpc.d.ts +2 -2
  510. package/_types/types/rpc.d.ts.map +1 -1
  511. package/_types/types/transport.d.ts +1 -1
  512. package/_types/types/transport.d.ts.map +1 -1
  513. package/_types/types/utils.d.ts +2 -2
  514. package/_types/types/utils.d.ts.map +1 -1
  515. package/_types/utils/abi/decodeAbiParameters.d.ts +2 -2
  516. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  517. package/_types/utils/abi/decodeErrorResult.d.ts +1 -1
  518. package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
  519. package/_types/utils/abi/encodeAbiParameters.d.ts +1 -1
  520. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  521. package/_types/utils/abi/encodePacked.d.ts +4 -4
  522. package/_types/utils/abi/encodePacked.d.ts.map +1 -1
  523. package/_types/utils/ccip.d.ts +1 -1
  524. package/_types/utils/ccip.d.ts.map +1 -1
  525. package/_types/utils/data/concat.d.ts +2 -2
  526. package/_types/utils/data/concat.d.ts.map +1 -1
  527. package/_types/utils/data/pad.d.ts +2 -2
  528. package/_types/utils/data/pad.d.ts.map +1 -1
  529. package/_types/utils/data/slice.d.ts +3 -3
  530. package/_types/utils/data/slice.d.ts.map +1 -1
  531. package/_types/utils/data/trim.d.ts +2 -2
  532. package/_types/utils/data/trim.d.ts.map +1 -1
  533. package/_types/utils/encoding/fromBytes.d.ts +4 -4
  534. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  535. package/_types/utils/encoding/fromHex.d.ts +4 -4
  536. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  537. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
  538. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  539. package/_types/utils/ens/avatar/utils.d.ts +1 -1
  540. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  541. package/_types/utils/filters/createFilterRequestScope.d.ts +1 -1
  542. package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
  543. package/_types/utils/formatters/block.d.ts +7 -7
  544. package/_types/utils/formatters/block.d.ts.map +1 -1
  545. package/_types/utils/formatters/formatter.d.ts +6 -6
  546. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  547. package/_types/utils/formatters/transaction.d.ts +7 -7
  548. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  549. package/_types/utils/formatters/transactionReceipt.d.ts +6 -6
  550. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  551. package/_types/utils/formatters/transactionRequest.d.ts +6 -6
  552. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  553. package/_types/utils/hash/keccak256.d.ts +2 -2
  554. package/_types/utils/hash/keccak256.d.ts.map +1 -1
  555. package/_types/utils/hash/ripemd160.d.ts +2 -2
  556. package/_types/utils/hash/ripemd160.d.ts.map +1 -1
  557. package/_types/utils/hash/sha256.d.ts +2 -2
  558. package/_types/utils/hash/sha256.d.ts.map +1 -1
  559. package/_types/utils/observe.d.ts +2 -2
  560. package/_types/utils/observe.d.ts.map +1 -1
  561. package/_types/utils/poll.d.ts +4 -4
  562. package/_types/utils/poll.d.ts.map +1 -1
  563. package/_types/utils/promise/createBatchScheduler.d.ts +11 -11
  564. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  565. package/_types/utils/promise/withCache.d.ts +7 -7
  566. package/_types/utils/promise/withCache.d.ts.map +1 -1
  567. package/_types/utils/promise/withRetry.d.ts +1 -1
  568. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  569. package/_types/utils/promise/withTimeout.d.ts +3 -3
  570. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  571. package/_types/utils/rpc/http.d.ts +4 -4
  572. package/_types/utils/rpc/http.d.ts.map +1 -1
  573. package/_types/utils/signature/hashMessage.d.ts +2 -2
  574. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  575. package/_types/utils/transaction/parseTransaction.d.ts +2 -2
  576. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
  577. package/_types/zksync/actions/getAllBalances.d.ts +2 -2
  578. package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
  579. package/_types/zksync/actions/getBaseTokenL1Address.d.ts +1 -1
  580. package/_types/zksync/actions/getBaseTokenL1Address.d.ts.map +1 -1
  581. package/_types/zksync/actions/getBlockDetails.d.ts +1 -1
  582. package/_types/zksync/actions/getBlockDetails.d.ts.map +1 -1
  583. package/_types/zksync/actions/getBridgehubContractAddress.d.ts +1 -1
  584. package/_types/zksync/actions/getBridgehubContractAddress.d.ts.map +1 -1
  585. package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts +1 -1
  586. package/_types/zksync/actions/getDefaultBridgeAddresses.d.ts.map +1 -1
  587. package/_types/zksync/actions/getL1Allowance.d.ts +2 -2
  588. package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
  589. package/_types/zksync/actions/getL1Balance.d.ts +2 -2
  590. package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
  591. package/_types/zksync/actions/getL1BatchBlockRange.d.ts +1 -1
  592. package/_types/zksync/actions/getL1BatchBlockRange.d.ts.map +1 -1
  593. package/_types/zksync/actions/getL1BatchDetails.d.ts +1 -1
  594. package/_types/zksync/actions/getL1BatchDetails.d.ts.map +1 -1
  595. package/_types/zksync/actions/getL1BatchNumber.d.ts +1 -1
  596. package/_types/zksync/actions/getL1BatchNumber.d.ts.map +1 -1
  597. package/_types/zksync/actions/getL1ChainId.d.ts +1 -1
  598. package/_types/zksync/actions/getL1ChainId.d.ts.map +1 -1
  599. package/_types/zksync/actions/getL1TokenBalance.d.ts +2 -2
  600. package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
  601. package/_types/zksync/actions/getLogProof.d.ts +1 -1
  602. package/_types/zksync/actions/getLogProof.d.ts.map +1 -1
  603. package/_types/zksync/actions/getMainContractAddress.d.ts +1 -1
  604. package/_types/zksync/actions/getMainContractAddress.d.ts.map +1 -1
  605. package/_types/zksync/actions/getRawBlockTransactions.d.ts +1 -1
  606. package/_types/zksync/actions/getRawBlockTransactions.d.ts.map +1 -1
  607. package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts +1 -1
  608. package/_types/zksync/actions/getTestnetPaymasterAddress.d.ts.map +1 -1
  609. package/_types/zksync/actions/getTransactionDetails.d.ts +1 -1
  610. package/_types/zksync/actions/getTransactionDetails.d.ts.map +1 -1
  611. package/_types/zksync/actions/signEip712Transaction.d.ts +3 -3
  612. package/_types/zksync/actions/signEip712Transaction.d.ts.map +1 -1
  613. package/_types/zksync/actions/signTransaction.d.ts +3 -3
  614. package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
  615. package/_types/zksync/decorators/publicL1.d.ts +5 -5
  616. package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
  617. package/_types/zksync/decorators/publicL2.d.ts +4 -4
  618. package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
  619. package/_types/zksync/types/block.d.ts +2 -2
  620. package/_types/zksync/types/block.d.ts.map +1 -1
  621. package/_types/zksync/types/eip712.d.ts +3 -3
  622. package/_types/zksync/types/eip712.d.ts.map +1 -1
  623. package/_types/zksync/types/fee.d.ts +9 -9
  624. package/_types/zksync/types/fee.d.ts.map +1 -1
  625. package/_types/zksync/types/log.d.ts +3 -3
  626. package/_types/zksync/types/log.d.ts.map +1 -1
  627. package/_types/zksync/types/transaction.d.ts +18 -18
  628. package/_types/zksync/types/transaction.d.ts.map +1 -1
  629. package/accounts/toAccount.ts +8 -8
  630. package/accounts/types.ts +8 -8
  631. package/actions/ens/getEnsAddress.ts +2 -2
  632. package/actions/ens/getEnsAvatar.ts +2 -2
  633. package/actions/ens/getEnsName.ts +2 -2
  634. package/actions/ens/getEnsResolver.ts +2 -2
  635. package/actions/ens/getEnsText.ts +2 -2
  636. package/actions/getContract.ts +302 -300
  637. package/actions/public/call.ts +12 -12
  638. package/actions/public/createBlockFilter.ts +2 -2
  639. package/actions/public/createContractEventFilter.ts +3 -3
  640. package/actions/public/createEventFilter.ts +65 -64
  641. package/actions/public/createPendingTransactionFilter.ts +3 -3
  642. package/actions/public/estimateGas.ts +8 -9
  643. package/actions/public/getBalance.ts +2 -2
  644. package/actions/public/getBlobBaseFee.ts +3 -3
  645. package/actions/public/getBlock.ts +15 -15
  646. package/actions/public/getBlockNumber.ts +2 -2
  647. package/actions/public/getBlockTransactionCount.ts +2 -4
  648. package/actions/public/getChainId.ts +3 -3
  649. package/actions/public/getCode.ts +2 -2
  650. package/actions/public/getContractEvents.ts +10 -10
  651. package/actions/public/getFeeHistory.ts +2 -2
  652. package/actions/public/getFilterChanges.ts +59 -67
  653. package/actions/public/getFilterLogs.ts +36 -36
  654. package/actions/public/getGasPrice.ts +3 -3
  655. package/actions/public/getLogs.ts +47 -53
  656. package/actions/public/getProof.ts +2 -2
  657. package/actions/public/getStorageAt.ts +2 -2
  658. package/actions/public/getTransaction.ts +10 -10
  659. package/actions/public/getTransactionConfirmations.ts +5 -5
  660. package/actions/public/getTransactionCount.ts +3 -3
  661. package/actions/public/getTransactionReceipt.ts +5 -5
  662. package/actions/public/uninstallFilter.ts +3 -3
  663. package/actions/public/verifyHash.ts +14 -2
  664. package/actions/public/verifyMessage.ts +2 -2
  665. package/actions/public/waitForTransactionReceipt.ts +14 -14
  666. package/actions/public/watchBlockNumber.ts +6 -6
  667. package/actions/public/watchBlocks.ts +25 -27
  668. package/actions/public/watchEvent.ts +39 -37
  669. package/actions/public/watchPendingTransactions.ts +6 -6
  670. package/actions/test/dropTransaction.ts +3 -3
  671. package/actions/test/dumpState.ts +3 -3
  672. package/actions/test/getAutomine.ts +3 -3
  673. package/actions/test/getTxpoolContent.ts +3 -3
  674. package/actions/test/getTxpoolStatus.ts +3 -3
  675. package/actions/test/impersonateAccount.ts +3 -3
  676. package/actions/test/increaseTime.ts +3 -3
  677. package/actions/test/inspectTxpool.ts +3 -3
  678. package/actions/test/loadState.ts +3 -3
  679. package/actions/test/mine.ts +3 -3
  680. package/actions/test/removeBlockTimestampInterval.ts +3 -3
  681. package/actions/test/reset.ts +3 -3
  682. package/actions/test/revert.ts +3 -3
  683. package/actions/test/sendUnsignedTransaction.ts +6 -6
  684. package/actions/test/setAutomine.ts +3 -3
  685. package/actions/test/setBalance.ts +3 -3
  686. package/actions/test/setBlockGasLimit.ts +3 -3
  687. package/actions/test/setBlockTimestampInterval.ts +3 -3
  688. package/actions/test/setCode.ts +3 -3
  689. package/actions/test/setCoinbase.ts +3 -3
  690. package/actions/test/setIntervalMining.ts +3 -3
  691. package/actions/test/setLoggingEnabled.ts +3 -3
  692. package/actions/test/setMinGasPrice.ts +3 -3
  693. package/actions/test/setNextBlockBaseFeePerGas.ts +3 -3
  694. package/actions/test/setNextBlockTimestamp.ts +3 -3
  695. package/actions/test/setNonce.ts +3 -3
  696. package/actions/test/setRpcUrl.ts +3 -3
  697. package/actions/test/setStorageAt.ts +3 -3
  698. package/actions/test/snapshot.ts +3 -3
  699. package/actions/test/stopImpersonatingAccount.ts +3 -3
  700. package/actions/wallet/addChain.ts +3 -3
  701. package/actions/wallet/getAddresses.ts +3 -5
  702. package/actions/wallet/getPermissions.ts +3 -3
  703. package/actions/wallet/requestAddresses.ts +3 -3
  704. package/actions/wallet/requestPermissions.ts +3 -3
  705. package/actions/wallet/sendRawTransaction.ts +2 -2
  706. package/actions/wallet/signMessage.ts +6 -6
  707. package/actions/wallet/switchChain.ts +3 -3
  708. package/actions/wallet/watchAsset.ts +3 -3
  709. package/celo/parsers.ts +10 -10
  710. package/celo/types.ts +2 -2
  711. package/chains/definitions/dreyerxTestnet.ts +23 -0
  712. package/chains/index.ts +1 -0
  713. package/clients/decorators/public.ts +130 -138
  714. package/clients/decorators/test.ts +12 -12
  715. package/clients/decorators/wallet.ts +34 -36
  716. package/clients/transports/createTransport.ts +17 -17
  717. package/clients/transports/custom.ts +2 -2
  718. package/errors/rpc.ts +6 -6
  719. package/errors/version.ts +1 -1
  720. package/op-stack/actions/estimateL1Gas.ts +10 -10
  721. package/op-stack/actions/estimateTotalFee.ts +9 -9
  722. package/op-stack/actions/estimateTotalGas.ts +9 -9
  723. package/op-stack/actions/getL1BaseFee.ts +7 -7
  724. package/op-stack/decorators/publicL1.ts +5 -5
  725. package/op-stack/decorators/publicL2.ts +5 -5
  726. package/op-stack/decorators/walletL1.ts +5 -5
  727. package/op-stack/decorators/walletL2.ts +5 -5
  728. package/op-stack/parsers.ts +9 -9
  729. package/op-stack/types/block.ts +10 -10
  730. package/op-stack/types/transaction.ts +19 -19
  731. package/package.json +1 -1
  732. package/types/account.ts +12 -12
  733. package/types/block.ts +14 -14
  734. package/types/contract.ts +60 -56
  735. package/types/eip1193.ts +52 -55
  736. package/types/filter.ts +25 -25
  737. package/types/log.ts +50 -50
  738. package/types/proof.ts +6 -6
  739. package/types/rpc.ts +9 -9
  740. package/types/transport.ts +2 -2
  741. package/types/utils.ts +2 -2
  742. package/utils/abi/decodeAbiParameters.ts +6 -6
  743. package/utils/abi/decodeErrorResult.ts +4 -4
  744. package/utils/abi/encodeAbiParameters.ts +18 -18
  745. package/utils/abi/encodePacked.ts +8 -8
  746. package/utils/ccip.ts +2 -2
  747. package/utils/data/concat.ts +8 -7
  748. package/utils/data/pad.ts +6 -6
  749. package/utils/data/slice.ts +6 -6
  750. package/utils/data/trim.ts +6 -6
  751. package/utils/encoding/fromBytes.ts +16 -16
  752. package/utils/encoding/fromHex.ts +15 -15
  753. package/utils/ens/avatar/parseAvatarRecord.ts +4 -4
  754. package/utils/ens/avatar/utils.ts +2 -2
  755. package/utils/filters/createFilterRequestScope.ts +2 -2
  756. package/utils/formatters/block.ts +9 -9
  757. package/utils/formatters/formatter.ts +11 -11
  758. package/utils/formatters/transaction.ts +5 -5
  759. package/utils/formatters/transactionReceipt.ts +2 -2
  760. package/utils/formatters/transactionRequest.ts +2 -2
  761. package/utils/hash/keccak256.ts +8 -8
  762. package/utils/hash/ripemd160.ts +8 -8
  763. package/utils/hash/sha256.ts +8 -8
  764. package/utils/observe.ts +8 -8
  765. package/utils/poll.ts +6 -6
  766. package/utils/promise/createBatchScheduler.ts +27 -30
  767. package/utils/promise/withCache.ts +8 -8
  768. package/utils/promise/withRetry.ts +3 -3
  769. package/utils/promise/withTimeout.ts +3 -3
  770. package/utils/rpc/http.ts +7 -7
  771. package/utils/signature/hashMessage.ts +6 -6
  772. package/utils/transaction/parseTransaction.ts +13 -13
  773. package/zksync/actions/getAllBalances.ts +6 -6
  774. package/zksync/actions/getBaseTokenL1Address.ts +3 -3
  775. package/zksync/actions/getBlockDetails.ts +3 -3
  776. package/zksync/actions/getBridgehubContractAddress.ts +3 -3
  777. package/zksync/actions/getDefaultBridgeAddresses.ts +3 -3
  778. package/zksync/actions/getL1Allowance.ts +6 -6
  779. package/zksync/actions/getL1Balance.ts +9 -9
  780. package/zksync/actions/getL1BatchBlockRange.ts +3 -3
  781. package/zksync/actions/getL1BatchDetails.ts +3 -3
  782. package/zksync/actions/getL1BatchNumber.ts +3 -3
  783. package/zksync/actions/getL1ChainId.ts +3 -3
  784. package/zksync/actions/getL1TokenBalance.ts +6 -6
  785. package/zksync/actions/getLogProof.ts +3 -3
  786. package/zksync/actions/getMainContractAddress.ts +3 -3
  787. package/zksync/actions/getRawBlockTransactions.ts +3 -3
  788. package/zksync/actions/getTestnetPaymasterAddress.ts +3 -3
  789. package/zksync/actions/getTransactionDetails.ts +3 -3
  790. package/zksync/actions/signEip712Transaction.ts +13 -13
  791. package/zksync/actions/signTransaction.ts +13 -13
  792. package/zksync/decorators/publicL1.ts +10 -10
  793. package/zksync/decorators/publicL2.ts +9 -9
  794. package/zksync/types/block.ts +10 -10
  795. package/zksync/types/eip712.ts +5 -5
  796. package/zksync/types/fee.ts +9 -9
  797. package/zksync/types/log.ts +12 -12
  798. package/zksync/types/transaction.ts +52 -53
@@ -6,15 +6,15 @@ import { uid as uid_ } from '../../utils/uid.js'
6
6
  import type { ClientConfig } from '../createClient.js'
7
7
 
8
8
  export type TransportConfig<
9
- TType extends string = string,
10
- TEIP1193RequestFn extends EIP1193RequestFn = EIP1193RequestFn,
9
+ type extends string = string,
10
+ eip1193RequestFn extends EIP1193RequestFn = EIP1193RequestFn,
11
11
  > = {
12
12
  /** The name of the transport. */
13
13
  name: string
14
14
  /** The key of the transport. */
15
15
  key: string
16
16
  /** The JSON-RPC request function that matches the EIP-1193 request spec. */
17
- request: TEIP1193RequestFn
17
+ request: eip1193RequestFn
18
18
  /** The base delay (in ms) between retries. */
19
19
  retryDelay?: number | undefined
20
20
  /** The max number of times to retry. */
@@ -22,24 +22,24 @@ export type TransportConfig<
22
22
  /** The timeout (in ms) for requests. */
23
23
  timeout?: number | undefined
24
24
  /** The type of the transport. */
25
- type: TType
25
+ type: type
26
26
  }
27
27
 
28
28
  export type Transport<
29
- TType extends string = string,
30
- TRpcAttributes = Record<string, any>,
31
- TEIP1193RequestFn extends EIP1193RequestFn = EIP1193RequestFn,
32
- > = <TChain extends Chain | undefined = Chain>({
29
+ type extends string = string,
30
+ rpcAttributes = Record<string, any>,
31
+ eip1193RequestFn extends EIP1193RequestFn = EIP1193RequestFn,
32
+ > = <chain extends Chain | undefined = Chain>({
33
33
  chain,
34
34
  }: {
35
- chain?: TChain | undefined
35
+ chain?: chain | undefined
36
36
  pollingInterval?: ClientConfig['pollingInterval'] | undefined
37
37
  retryCount?: TransportConfig['retryCount'] | undefined
38
38
  timeout?: TransportConfig['timeout'] | undefined
39
39
  }) => {
40
- config: TransportConfig<TType>
41
- request: TEIP1193RequestFn
42
- value?: TRpcAttributes | undefined
40
+ config: TransportConfig<type>
41
+ request: eip1193RequestFn
42
+ value?: rpcAttributes | undefined
43
43
  }
44
44
 
45
45
  export type CreateTransportErrorType = ErrorType
@@ -48,8 +48,8 @@ export type CreateTransportErrorType = ErrorType
48
48
  * @description Creates an transport intended to be used with a client.
49
49
  */
50
50
  export function createTransport<
51
- TType extends string,
52
- TRpcAttributes extends Record<string, any>,
51
+ type extends string,
52
+ rpcAttributes extends Record<string, any>,
53
53
  >(
54
54
  {
55
55
  key,
@@ -59,9 +59,9 @@ export function createTransport<
59
59
  retryDelay = 150,
60
60
  timeout,
61
61
  type,
62
- }: TransportConfig<TType>,
63
- value?: TRpcAttributes | undefined,
64
- ): ReturnType<Transport<TType, TRpcAttributes>> {
62
+ }: TransportConfig<type>,
63
+ value?: rpcAttributes | undefined,
64
+ ): ReturnType<Transport<type, rpcAttributes>> {
65
65
  const uid = uid_()
66
66
  return {
67
67
  config: {
@@ -30,8 +30,8 @@ export type CustomTransportErrorType = CreateTransportErrorType | ErrorType
30
30
  /**
31
31
  * @description Creates a custom transport given an EIP-1193 compliant `request` attribute.
32
32
  */
33
- export function custom<TProvider extends EthereumProvider>(
34
- provider: TProvider,
33
+ export function custom<provider extends EthereumProvider>(
34
+ provider: provider,
35
35
  config: CustomTransportConfig = {},
36
36
  ): CustomTransport {
37
37
  const { key = 'custom', name = 'Custom Provider', retryDelay } = config
package/errors/rpc.ts CHANGED
@@ -20,8 +20,8 @@ export type RpcErrorCode =
20
20
  | -32006 // JSON-RPC version not supported
21
21
  | -32042 // Method not found
22
22
 
23
- type RpcErrorOptions<TCode extends number = RpcErrorCode> = {
24
- code?: TCode | (number & {}) | undefined
23
+ type RpcErrorOptions<code extends number = RpcErrorCode> = {
24
+ code?: code | (number & {}) | undefined
25
25
  docsPath?: string | undefined
26
26
  metaMessages?: string[] | undefined
27
27
  shortMessage: string
@@ -33,14 +33,14 @@ type RpcErrorOptions<TCode extends number = RpcErrorCode> = {
33
33
  * - EIP https://eips.ethereum.org/EIPS/eip-1474
34
34
  */
35
35
  export type RpcErrorType = RpcError & { name: 'RpcError' }
36
- export class RpcError<TCode extends number = RpcErrorCode> extends BaseError {
36
+ export class RpcError<code_ extends number = RpcErrorCode> extends BaseError {
37
37
  override name = 'RpcError'
38
38
 
39
- code: TCode | (number & {})
39
+ code: code_ | (number & {})
40
40
 
41
41
  constructor(
42
42
  cause: Error,
43
- { code, docsPath, metaMessages, shortMessage }: RpcErrorOptions<TCode>,
43
+ { code, docsPath, metaMessages, shortMessage }: RpcErrorOptions<code_>,
44
44
  ) {
45
45
  super(shortMessage, {
46
46
  cause,
@@ -51,7 +51,7 @@ export class RpcError<TCode extends number = RpcErrorCode> extends BaseError {
51
51
  this.name = cause.name
52
52
  this.code = (
53
53
  cause instanceof RpcRequestError ? cause.code : code ?? unknownErrorCode
54
- ) as TCode
54
+ ) as code_
55
55
  }
56
56
  }
57
57
 
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.17.2'
1
+ export const version = '2.17.4'
@@ -34,12 +34,12 @@ import { gasPriceOracleAbi } from '../abis.js'
34
34
  import { contracts } from '../contracts.js'
35
35
 
36
36
  export type EstimateL1GasParameters<
37
- TChain extends Chain | undefined = Chain | undefined,
38
- TAccount extends Account | undefined = Account | undefined,
39
- TChainOverride extends Chain | undefined = Chain | undefined,
37
+ chain extends Chain | undefined = Chain | undefined,
38
+ account extends Account | undefined = Account | undefined,
39
+ chainOverride extends Chain | undefined = Chain | undefined,
40
40
  > = Omit<TransactionRequestEIP1559, 'from'> &
41
- GetAccountParameter<TAccount> &
42
- GetChainParameter<TChain, TChainOverride> & {
41
+ GetAccountParameter<account> &
42
+ GetChainParameter<chain, chainOverride> & {
43
43
  /** Gas price oracle address. */
44
44
  gasPriceOracleAddress?: Address | undefined
45
45
  }
@@ -78,12 +78,12 @@ export type EstimateL1GasErrorType =
78
78
  * })
79
79
  */
80
80
  export async function estimateL1Gas<
81
- TChain extends Chain | undefined,
82
- TAccount extends Account | undefined,
83
- TChainOverride extends Chain | undefined = undefined,
81
+ chain extends Chain | undefined,
82
+ account extends Account | undefined,
83
+ chainOverride extends Chain | undefined = undefined,
84
84
  >(
85
- client: Client<Transport, TChain, TAccount>,
86
- args: EstimateL1GasParameters<TChain, TAccount, TChainOverride>,
85
+ client: Client<Transport, chain, account>,
86
+ args: EstimateL1GasParameters<chain, account, chainOverride>,
87
87
  ): Promise<EstimateL1GasReturnType> {
88
88
  const {
89
89
  chain = client.chain,
@@ -25,10 +25,10 @@ import {
25
25
  } from './estimateL1Fee.js'
26
26
 
27
27
  export type EstimateTotalFeeParameters<
28
- TChain extends Chain | undefined = Chain | undefined,
29
- TAccount extends Account | undefined = Account | undefined,
30
- TChainOverride extends Chain | undefined = Chain | undefined,
31
- > = EstimateL1FeeParameters<TChain, TAccount, TChainOverride>
28
+ chain extends Chain | undefined = Chain | undefined,
29
+ account extends Account | undefined = Account | undefined,
30
+ chainOverride extends Chain | undefined = Chain | undefined,
31
+ > = EstimateL1FeeParameters<chain, account, chainOverride>
32
32
 
33
33
  export type EstimateTotalFeeReturnType = bigint
34
34
 
@@ -63,12 +63,12 @@ export type EstimateTotalFeeErrorType =
63
63
  * })
64
64
  */
65
65
  export async function estimateTotalFee<
66
- TChain extends Chain | undefined,
67
- TAccount extends Account | undefined,
68
- TChainOverride extends Chain | undefined = undefined,
66
+ chain extends Chain | undefined,
67
+ account extends Account | undefined,
68
+ chainOverride extends Chain | undefined = undefined,
69
69
  >(
70
- client: Client<Transport, TChain, TAccount>,
71
- args: EstimateTotalFeeParameters<TChain, TAccount, TChainOverride>,
70
+ client: Client<Transport, chain, account>,
71
+ args: EstimateTotalFeeParameters<chain, account, chainOverride>,
72
72
  ): Promise<EstimateTotalFeeReturnType> {
73
73
  // Populate transaction with required fields to accurately estimate gas.
74
74
  const request = await prepareTransactionRequest(
@@ -21,10 +21,10 @@ import {
21
21
  } from './estimateL1Gas.js'
22
22
 
23
23
  export type EstimateTotalGasParameters<
24
- TChain extends Chain | undefined = Chain | undefined,
25
- TAccount extends Account | undefined = Account | undefined,
26
- TChainOverride extends Chain | undefined = Chain | undefined,
27
- > = EstimateL1GasParameters<TChain, TAccount, TChainOverride>
24
+ chain extends Chain | undefined = Chain | undefined,
25
+ account extends Account | undefined = Account | undefined,
26
+ chainOverride extends Chain | undefined = Chain | undefined,
27
+ > = EstimateL1GasParameters<chain, account, chainOverride>
28
28
 
29
29
  export type EstimateTotalGasReturnType = bigint
30
30
 
@@ -58,12 +58,12 @@ export type EstimateTotalGasErrorType =
58
58
  * })
59
59
  */
60
60
  export async function estimateTotalGas<
61
- TChain extends Chain | undefined,
62
- TAccount extends Account | undefined,
63
- TChainOverride extends Chain | undefined = undefined,
61
+ chain extends Chain | undefined,
62
+ account extends Account | undefined,
63
+ chainOverride extends Chain | undefined = undefined,
64
64
  >(
65
- client: Client<Transport, TChain, TAccount>,
66
- args: EstimateTotalGasParameters<TChain, TAccount, TChainOverride>,
65
+ client: Client<Transport, chain, account>,
66
+ args: EstimateTotalGasParameters<chain, account, chainOverride>,
67
67
  ): Promise<EstimateTotalGasReturnType> {
68
68
  // Populate transaction with required fields to accurately estimate gas.
69
69
  const request = await prepareTransactionRequest(
@@ -17,9 +17,9 @@ import { gasPriceOracleAbi } from '../abis.js'
17
17
  import { contracts } from '../contracts.js'
18
18
 
19
19
  export type GetL1BaseFeeParameters<
20
- TChain extends Chain | undefined = Chain | undefined,
21
- TChainOverride extends Chain | undefined = undefined,
22
- > = GetChainParameter<TChain, TChainOverride> & {
20
+ chain extends Chain | undefined = Chain | undefined,
21
+ chainOverride extends Chain | undefined = undefined,
22
+ > = GetChainParameter<chain, chainOverride> & {
23
23
  /** Gas price oracle address. */
24
24
  gasPriceOracleAddress?: Address | undefined
25
25
  }
@@ -52,11 +52,11 @@ export type GetL1BaseFeeErrorType =
52
52
  * const l1BaseFee = await getL1BaseFee(client)
53
53
  */
54
54
  export async function getL1BaseFee<
55
- TChain extends Chain | undefined,
56
- TChainOverride extends Chain | undefined = undefined,
55
+ chain extends Chain | undefined,
56
+ chainOverride extends Chain | undefined = undefined,
57
57
  >(
58
- client: Client<Transport, TChain>,
59
- args?: GetL1BaseFeeParameters<TChain, TChainOverride> | undefined,
58
+ client: Client<Transport, chain>,
59
+ args?: GetL1BaseFeeParameters<chain, chainOverride> | undefined,
60
60
  ): Promise<GetL1BaseFeeReturnType> {
61
61
  const {
62
62
  chain = client.chain,
@@ -661,12 +661,12 @@ export type PublicActionsL1<
661
661
  */
662
662
  export function publicActionsL1() {
663
663
  return <
664
- TTransport extends Transport,
665
- TChain extends Chain | undefined = Chain | undefined,
666
- TAccount extends Account | undefined = Account | undefined,
664
+ transport extends Transport,
665
+ chain extends Chain | undefined = Chain | undefined,
666
+ account extends Account | undefined = Account | undefined,
667
667
  >(
668
- client: Client<TTransport, TChain, TAccount>,
669
- ): PublicActionsL1<TChain, TAccount> => {
668
+ client: Client<transport, chain, account>,
669
+ ): PublicActionsL1<chain, account> => {
670
670
  return {
671
671
  buildInitiateWithdrawal: (args) => buildInitiateWithdrawal(client, args),
672
672
  estimateDepositTransactionGas: (args) =>
@@ -489,12 +489,12 @@ export type PublicActionsL2<
489
489
  */
490
490
  export function publicActionsL2() {
491
491
  return <
492
- TTransport extends Transport,
493
- TChain extends Chain | undefined = Chain | undefined,
494
- TAccount extends Account | undefined = Account | undefined,
492
+ transport extends Transport,
493
+ chain extends Chain | undefined = Chain | undefined,
494
+ account extends Account | undefined = Account | undefined,
495
495
  >(
496
- client: Client<TTransport, TChain, TAccount>,
497
- ): PublicActionsL2<TChain, TAccount> => {
496
+ client: Client<transport, chain, account>,
497
+ ): PublicActionsL2<chain, account> => {
498
498
  return {
499
499
  buildDepositTransaction: (args) => buildDepositTransaction(client, args),
500
500
  buildProveWithdrawal: (args) => buildProveWithdrawal(client, args),
@@ -157,12 +157,12 @@ export type WalletActionsL1<
157
157
  */
158
158
  export function walletActionsL1() {
159
159
  return <
160
- TTransport extends Transport,
161
- TChain extends Chain | undefined = Chain | undefined,
162
- TAccount extends Account | undefined = Account | undefined,
160
+ transport extends Transport,
161
+ chain extends Chain | undefined = Chain | undefined,
162
+ account extends Account | undefined = Account | undefined,
163
163
  >(
164
- client: Client<TTransport, TChain, TAccount>,
165
- ): WalletActionsL1<TChain, TAccount> => {
164
+ client: Client<transport, chain, account>,
165
+ ): WalletActionsL1<chain, account> => {
166
166
  return {
167
167
  depositTransaction: (args) => depositTransaction(client, args),
168
168
  finalizeWithdrawal: (args) => finalizeWithdrawal(client, args),
@@ -88,12 +88,12 @@ export type WalletActionsL2<
88
88
  */
89
89
  export function walletActionsL2() {
90
90
  return <
91
- TTransport extends Transport,
92
- TChain extends Chain | undefined = Chain | undefined,
93
- TAccount extends Account | undefined = Account | undefined,
91
+ transport extends Transport,
92
+ chain extends Chain | undefined = Chain | undefined,
93
+ account extends Account | undefined = Account | undefined,
94
94
  >(
95
- client: Client<TTransport, TChain, TAccount>,
96
- ): WalletActionsL2<TChain, TAccount> => {
95
+ client: Client<transport, chain, account>,
96
+ ): WalletActionsL2<chain, account> => {
97
97
  return {
98
98
  initiateWithdrawal: (args) => initiateWithdrawal(client, args),
99
99
  }
@@ -19,29 +19,29 @@ import type {
19
19
  } from './types/transaction.js'
20
20
 
21
21
  export type ParseTransactionReturnType<
22
- TSerialized extends
22
+ serialized extends
23
23
  OpStackTransactionSerialized = OpStackTransactionSerialized,
24
- TType extends
25
- OpStackTransactionType = GetSerializedTransactionType<TSerialized>,
26
- > = TSerialized extends TransactionSerializedDeposit
24
+ type extends
25
+ OpStackTransactionType = GetSerializedTransactionType<serialized>,
26
+ > = serialized extends TransactionSerializedDeposit
27
27
  ? TransactionSerializableDeposit
28
- : ParseTransactionReturnType_<TSerialized, TType>
28
+ : ParseTransactionReturnType_<serialized, type>
29
29
 
30
30
  export type ParseTransactionErrorType = ParseTransactionErrorType_ | ErrorType
31
31
 
32
32
  export function parseTransaction<
33
- TSerialized extends OpStackTransactionSerialized,
34
- >(serializedTransaction: TSerialized): ParseTransactionReturnType<TSerialized> {
33
+ serialized extends OpStackTransactionSerialized,
34
+ >(serializedTransaction: serialized): ParseTransactionReturnType<serialized> {
35
35
  const serializedType = sliceHex(serializedTransaction, 0, 1)
36
36
 
37
37
  if (serializedType === '0x7e')
38
38
  return parseTransactionDeposit(
39
39
  serializedTransaction as TransactionSerializedDeposit,
40
- ) as ParseTransactionReturnType<TSerialized>
40
+ ) as ParseTransactionReturnType<serialized>
41
41
 
42
42
  return parseTransaction_(
43
43
  serializedTransaction,
44
- ) as ParseTransactionReturnType<TSerialized>
44
+ ) as ParseTransactionReturnType<serialized>
45
45
  }
46
46
 
47
47
  function parseTransactionDeposit(
@@ -10,13 +10,13 @@ export type OpStackBlockOverrides = {
10
10
  stateRoot: Hash
11
11
  }
12
12
  export type OpStackBlock<
13
- TIncludeTransactions extends boolean = boolean,
14
- TBlockTag extends BlockTag = BlockTag,
13
+ includeTransactions extends boolean = boolean,
14
+ blockTag extends BlockTag = BlockTag,
15
15
  > = Block<
16
16
  bigint,
17
- TIncludeTransactions,
18
- TBlockTag,
19
- OpStackTransaction<TBlockTag extends 'pending' ? true : false>
17
+ includeTransactions,
18
+ blockTag,
19
+ OpStackTransaction<blockTag extends 'pending' ? true : false>
20
20
  > &
21
21
  OpStackBlockOverrides
22
22
 
@@ -24,11 +24,11 @@ export type OpStackRpcBlockOverrides = {
24
24
  stateRoot: Hash
25
25
  }
26
26
  export type OpStackRpcBlock<
27
- TBlockTag extends BlockTag = BlockTag,
28
- TIncludeTransactions extends boolean = boolean,
27
+ blockTag extends BlockTag = BlockTag,
28
+ includeTransactions extends boolean = boolean,
29
29
  > = RpcBlock<
30
- TBlockTag,
31
- TIncludeTransactions,
32
- OpStackRpcTransaction<TBlockTag extends 'pending' ? true : false>
30
+ blockTag,
31
+ includeTransactions,
32
+ OpStackRpcTransaction<blockTag extends 'pending' ? true : false>
33
33
  > &
34
34
  OpStackRpcBlockOverrides
@@ -17,23 +17,23 @@ import type {
17
17
  } from '../../types/transaction.js'
18
18
  import type { OneOf } from '../../types/utils.js'
19
19
 
20
- type RpcTransaction<TPending extends boolean = boolean> =
21
- RpcTransaction_<TPending> & {
20
+ type RpcTransaction<pending extends boolean = boolean> =
21
+ RpcTransaction_<pending> & {
22
22
  isSystemTx?: undefined
23
23
  mint?: undefined
24
24
  sourceHash?: undefined
25
25
  }
26
26
 
27
- export type OpStackRpcDepositTransaction<TPending extends boolean = boolean> =
28
- Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> &
27
+ export type OpStackRpcDepositTransaction<pending extends boolean = boolean> =
28
+ Omit<TransactionBase<Quantity, Index, pending>, 'typeHex'> &
29
29
  FeeValuesEIP1559<Quantity> & {
30
30
  isSystemTx?: boolean | undefined
31
31
  mint?: Hex | undefined
32
32
  sourceHash: Hex
33
33
  type: '0x7e'
34
34
  }
35
- export type OpStackRpcTransaction<TPending extends boolean = boolean> = OneOf<
36
- RpcTransaction<TPending> | OpStackRpcDepositTransaction<TPending>
35
+ export type OpStackRpcTransaction<pending extends boolean = boolean> = OneOf<
36
+ RpcTransaction<pending> | OpStackRpcDepositTransaction<pending>
37
37
  >
38
38
 
39
39
  export type OpStackRpcTransactionReceiptOverrides = {
@@ -45,18 +45,18 @@ export type OpStackRpcTransactionReceiptOverrides = {
45
45
  export type OpStackRpcTransactionReceipt = RpcTransactionReceipt &
46
46
  OpStackRpcTransactionReceiptOverrides
47
47
 
48
- type Transaction<TPending extends boolean = boolean> = Transaction_<
48
+ type Transaction<pending extends boolean = boolean> = Transaction_<
49
49
  bigint,
50
50
  number,
51
- TPending
51
+ pending
52
52
  > & {
53
53
  isSystemTx?: undefined
54
54
  mint?: undefined
55
55
  sourceHash?: undefined
56
56
  }
57
57
 
58
- export type OpStackDepositTransaction<TPending extends boolean = boolean> =
59
- TransactionBase<bigint, number, TPending> &
58
+ export type OpStackDepositTransaction<pending extends boolean = boolean> =
59
+ TransactionBase<bigint, number, pending> &
60
60
  FeeValuesEIP1559 & {
61
61
  isSystemTx?: boolean
62
62
  mint?: bigint | undefined
@@ -64,9 +64,9 @@ export type OpStackDepositTransaction<TPending extends boolean = boolean> =
64
64
  type: 'deposit'
65
65
  }
66
66
 
67
- export type OpStackTransaction<TPending extends boolean = boolean> =
68
- | Transaction<TPending>
69
- | OpStackDepositTransaction<TPending>
67
+ export type OpStackTransaction<pending extends boolean = boolean> =
68
+ | Transaction<pending>
69
+ | OpStackDepositTransaction<pending>
70
70
 
71
71
  export type OpStackTransactionReceiptOverrides = {
72
72
  l1GasPrice: bigint | null
@@ -82,18 +82,18 @@ export type OpStackTransactionSerializable = OneOf<
82
82
  >
83
83
 
84
84
  export type OpStackTransactionSerialized<
85
- TType extends OpStackTransactionType = OpStackTransactionType,
86
- > = TType extends 'deposit'
85
+ type extends OpStackTransactionType = OpStackTransactionType,
86
+ > = type extends 'deposit'
87
87
  ? TransactionSerializedDeposit
88
- : TransactionSerialized<TType>
88
+ : TransactionSerialized<type>
89
89
 
90
90
  export type OpStackTransactionType = TransactionType | 'deposit'
91
91
 
92
92
  export type TransactionSerializableDeposit<
93
- TQuantity = bigint,
94
- TIndex = number,
93
+ quantity = bigint,
94
+ index = number,
95
95
  > = Omit<
96
- TransactionSerializableBase<TQuantity, TIndex>,
96
+ TransactionSerializableBase<quantity, index>,
97
97
  'nonce' | 'r' | 's' | 'v'
98
98
  > & {
99
99
  from: Hex
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.17.2",
4
+ "version": "2.17.4",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
package/types/account.ts CHANGED
@@ -9,23 +9,23 @@ export type DeriveAccount<
9
9
  > = accountOverride extends Account | Address ? accountOverride : account
10
10
 
11
11
  export type GetAccountParameter<
12
- TAccount extends Account | undefined = Account | undefined,
13
- TAccountOverride extends Account | Address | undefined = Account | Address,
14
- TRequired extends boolean = true,
15
- > = IsUndefined<TAccount> extends true
16
- ? TRequired extends true
17
- ? { account: TAccountOverride | Account | Address }
18
- : { account?: TAccountOverride | Account | Address | undefined }
19
- : { account?: TAccountOverride | Account | Address | undefined }
12
+ account extends Account | undefined = Account | undefined,
13
+ accountOverride extends Account | Address | undefined = Account | Address,
14
+ required extends boolean = true,
15
+ > = IsUndefined<account> extends true
16
+ ? required extends true
17
+ ? { account: accountOverride | Account | Address }
18
+ : { account?: accountOverride | Account | Address | undefined }
19
+ : { account?: accountOverride | Account | Address | undefined }
20
20
 
21
21
  export type ParseAccount<
22
- TAccountOrAddress extends Account | Address | undefined =
22
+ accountOrAddress extends Account | Address | undefined =
23
23
  | Account
24
24
  | Address
25
25
  | undefined,
26
- > = TAccountOrAddress extends Address
27
- ? Prettify<JsonRpcAccount<TAccountOrAddress>>
28
- : TAccountOrAddress
26
+ > = accountOrAddress extends Address
27
+ ? Prettify<JsonRpcAccount<accountOrAddress>>
28
+ : accountOrAddress
29
29
 
30
30
  export type { Account } from '../accounts/types.js'
31
31
  export type { HDKey } from '@scure/bip32'
package/types/block.ts CHANGED
@@ -6,12 +6,12 @@ import type { Withdrawal } from './withdrawal.js'
6
6
 
7
7
  export type Block<
8
8
  quantity = bigint,
9
- TIncludeTransactions extends boolean = boolean,
10
- TBlockTag extends BlockTag = BlockTag,
11
- TTransaction = Transaction<
9
+ includeTransactions extends boolean = boolean,
10
+ blockTag extends BlockTag = BlockTag,
11
+ transaction = Transaction<
12
12
  bigint,
13
13
  number,
14
- TBlockTag extends 'pending' ? true : false
14
+ blockTag extends 'pending' ? true : false
15
15
  >,
16
16
  > = {
17
17
  /** Base fee per gas */
@@ -29,17 +29,17 @@ export type Block<
29
29
  /** Total used gas by all transactions in this block */
30
30
  gasUsed: quantity
31
31
  /** Block hash or `null` if pending */
32
- hash: TBlockTag extends 'pending' ? null : Hash
32
+ hash: blockTag extends 'pending' ? null : Hash
33
33
  /** Logs bloom filter or `null` if pending */
34
- logsBloom: TBlockTag extends 'pending' ? null : Hex
34
+ logsBloom: blockTag extends 'pending' ? null : Hex
35
35
  /** Address that received this block’s mining rewards */
36
36
  miner: Address
37
37
  /** Unique identifier for the block. */
38
38
  mixHash: Hash
39
39
  /** Proof-of-work hash or `null` if pending */
40
- nonce: TBlockTag extends 'pending' ? null : Hex
40
+ nonce: blockTag extends 'pending' ? null : Hex
41
41
  /** Block number or `null` if pending */
42
- number: TBlockTag extends 'pending' ? null : quantity
42
+ number: blockTag extends 'pending' ? null : quantity
43
43
  /** Parent block hash */
44
44
  parentHash: Hash
45
45
  /** Root of the this block’s receipts trie */
@@ -56,7 +56,7 @@ export type Block<
56
56
  /** Total difficulty of the chain until this block */
57
57
  totalDifficulty: quantity | null
58
58
  /** List of transaction objects or hashes */
59
- transactions: TIncludeTransactions extends true ? TTransaction[] : Hash[]
59
+ transactions: includeTransactions extends true ? transaction[] : Hash[]
60
60
  /** Root of this block’s transaction trie */
61
61
  transactionsRoot: Hash
62
62
  /** List of uncle hashes */
@@ -87,11 +87,11 @@ export type BlockTag = 'latest' | 'earliest' | 'pending' | 'safe' | 'finalized'
87
87
 
88
88
  export type Uncle<
89
89
  quantity = bigint,
90
- TIncludeTransactions extends boolean = boolean,
91
- TBlockTag extends BlockTag = BlockTag,
92
- TTransaction = Transaction<
90
+ includeTransactions extends boolean = boolean,
91
+ blockTag extends BlockTag = BlockTag,
92
+ transaction = Transaction<
93
93
  bigint,
94
94
  number,
95
- TBlockTag extends 'pending' ? true : false
95
+ blockTag extends 'pending' ? true : false
96
96
  >,
97
- > = Block<quantity, TIncludeTransactions, TBlockTag, TTransaction>
97
+ > = Block<quantity, includeTransactions, blockTag, transaction>