viem 0.0.0-main.20240316T233602 → 0.0.0-main.20240317T053608

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 (625) hide show
  1. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  2. package/_cjs/actions/getContract.js.map +1 -1
  3. package/_cjs/actions/public/call.js +5 -1
  4. package/_cjs/actions/public/call.js.map +1 -1
  5. package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
  6. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  7. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  8. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  9. package/_cjs/chains/celo/parsers.js.map +1 -1
  10. package/_cjs/chains/celo/serializers.js.map +1 -1
  11. package/_cjs/chains/opStack/actions/getL1BaseFee.js.map +1 -1
  12. package/_cjs/chains/opStack/actions/getTimeToProve.js.map +1 -1
  13. package/_cjs/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
  14. package/_cjs/chains/zksync/formatters.js.map +1 -1
  15. package/_cjs/chains/zksync/serializers.js.map +1 -1
  16. package/_cjs/chains/zksync/utils/assertEip712Request.js.map +1 -1
  17. package/_cjs/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
  18. package/_cjs/chains/zksync/utils/isEip712Transaction.js.map +1 -1
  19. package/_cjs/clients/createClient.js.map +1 -1
  20. package/_cjs/clients/decorators/public.js.map +1 -1
  21. package/_cjs/clients/transports/createTransport.js.map +1 -1
  22. package/_cjs/clients/transports/fallback.js.map +1 -1
  23. package/_cjs/clients/transports/http.js.map +1 -1
  24. package/_cjs/errors/abi.js.map +1 -1
  25. package/_cjs/errors/account.js.map +1 -1
  26. package/_cjs/errors/base.js.map +1 -1
  27. package/_cjs/errors/chain.js.map +1 -1
  28. package/_cjs/errors/contract.js.map +1 -1
  29. package/_cjs/errors/node.js +5 -5
  30. package/_cjs/errors/node.js.map +1 -1
  31. package/_cjs/errors/request.js.map +1 -1
  32. package/_cjs/errors/rpc.js.map +1 -1
  33. package/_cjs/errors/version.js +1 -1
  34. package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
  35. package/_cjs/utils/address/getAddress.js.map +1 -1
  36. package/_cjs/utils/data/isHex.js.map +1 -1
  37. package/_cjs/utils/data/slice.js.map +1 -1
  38. package/_cjs/utils/encoding/toBytes.js.map +1 -1
  39. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  40. package/_cjs/utils/formatters/block.js.map +1 -1
  41. package/_cjs/utils/formatters/extract.js.map +1 -1
  42. package/_cjs/utils/formatters/log.js +1 -1
  43. package/_cjs/utils/formatters/log.js.map +1 -1
  44. package/_cjs/utils/formatters/proof.js.map +1 -1
  45. package/_cjs/utils/formatters/transaction.js.map +1 -1
  46. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  47. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  48. package/_cjs/utils/hash/keccak256.js.map +1 -1
  49. package/_cjs/utils/hash/ripemd160.js.map +1 -1
  50. package/_cjs/utils/hash/sha256.js.map +1 -1
  51. package/_cjs/utils/promise/withRetry.js.map +1 -1
  52. package/_cjs/utils/promise/withTimeout.js +1 -1
  53. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  54. package/_cjs/utils/rpc/http.js +1 -1
  55. package/_cjs/utils/rpc/http.js.map +1 -1
  56. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  57. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  58. package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
  59. package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
  60. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  61. package/_cjs/utils/typedData.js.map +1 -1
  62. package/_esm/accounts/generateMnemonic.js.map +1 -1
  63. package/_esm/actions/getContract.js.map +1 -1
  64. package/_esm/actions/public/call.js +5 -1
  65. package/_esm/actions/public/call.js.map +1 -1
  66. package/_esm/actions/public/createContractEventFilter.js.map +1 -1
  67. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  68. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  69. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  70. package/_esm/chains/celo/parsers.js.map +1 -1
  71. package/_esm/chains/celo/serializers.js.map +1 -1
  72. package/_esm/chains/opStack/actions/getL1BaseFee.js.map +1 -1
  73. package/_esm/chains/opStack/actions/getTimeToProve.js.map +1 -1
  74. package/_esm/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
  75. package/_esm/chains/zksync/formatters.js.map +1 -1
  76. package/_esm/chains/zksync/serializers.js.map +1 -1
  77. package/_esm/chains/zksync/utils/assertEip712Request.js.map +1 -1
  78. package/_esm/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
  79. package/_esm/chains/zksync/utils/isEip712Transaction.js.map +1 -1
  80. package/_esm/clients/createClient.js.map +1 -1
  81. package/_esm/clients/decorators/public.js.map +1 -1
  82. package/_esm/clients/transports/createTransport.js.map +1 -1
  83. package/_esm/clients/transports/fallback.js.map +1 -1
  84. package/_esm/clients/transports/http.js.map +1 -1
  85. package/_esm/errors/abi.js.map +1 -1
  86. package/_esm/errors/account.js.map +1 -1
  87. package/_esm/errors/base.js.map +1 -1
  88. package/_esm/errors/chain.js.map +1 -1
  89. package/_esm/errors/contract.js.map +1 -1
  90. package/_esm/errors/node.js +5 -5
  91. package/_esm/errors/node.js.map +1 -1
  92. package/_esm/errors/request.js.map +1 -1
  93. package/_esm/errors/rpc.js.map +1 -1
  94. package/_esm/errors/version.js +1 -1
  95. package/_esm/utils/abi/formatAbiItem.js.map +1 -1
  96. package/_esm/utils/address/getAddress.js.map +1 -1
  97. package/_esm/utils/data/isHex.js.map +1 -1
  98. package/_esm/utils/data/slice.js.map +1 -1
  99. package/_esm/utils/encoding/toBytes.js.map +1 -1
  100. package/_esm/utils/errors/getNodeError.js.map +1 -1
  101. package/_esm/utils/formatters/block.js.map +1 -1
  102. package/_esm/utils/formatters/extract.js.map +1 -1
  103. package/_esm/utils/formatters/log.js +1 -1
  104. package/_esm/utils/formatters/log.js.map +1 -1
  105. package/_esm/utils/formatters/proof.js.map +1 -1
  106. package/_esm/utils/formatters/transaction.js.map +1 -1
  107. package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
  108. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  109. package/_esm/utils/hash/keccak256.js.map +1 -1
  110. package/_esm/utils/hash/ripemd160.js.map +1 -1
  111. package/_esm/utils/hash/sha256.js.map +1 -1
  112. package/_esm/utils/promise/withRetry.js.map +1 -1
  113. package/_esm/utils/promise/withTimeout.js +1 -1
  114. package/_esm/utils/promise/withTimeout.js.map +1 -1
  115. package/_esm/utils/rpc/http.js +1 -1
  116. package/_esm/utils/rpc/http.js.map +1 -1
  117. package/_esm/utils/signature/hashMessage.js.map +1 -1
  118. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  119. package/_esm/utils/transaction/getTransactionType.js.map +1 -1
  120. package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
  121. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  122. package/_esm/utils/typedData.js.map +1 -1
  123. package/_types/accounts/generateMnemonic.d.ts +1 -1
  124. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  125. package/_types/accounts/types.d.ts +9 -9
  126. package/_types/accounts/types.d.ts.map +1 -1
  127. package/_types/accounts/utils/signTransaction.d.ts +1 -1
  128. package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
  129. package/_types/actions/ens/getEnsAddress.d.ts +4 -4
  130. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  131. package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
  132. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  133. package/_types/actions/ens/getEnsName.d.ts +3 -3
  134. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  135. package/_types/actions/ens/getEnsResolver.d.ts +1 -1
  136. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  137. package/_types/actions/ens/getEnsText.d.ts +3 -3
  138. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  139. package/_types/actions/getContract.d.ts +3 -3
  140. package/_types/actions/getContract.d.ts.map +1 -1
  141. package/_types/actions/public/call.d.ts +8 -8
  142. package/_types/actions/public/call.d.ts.map +1 -1
  143. package/_types/actions/public/createContractEventFilter.d.ts +6 -6
  144. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
  145. package/_types/actions/public/createEventFilter.d.ts +21 -21
  146. package/_types/actions/public/createEventFilter.d.ts.map +1 -1
  147. package/_types/actions/public/estimateFeesPerGas.d.ts +4 -4
  148. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
  149. package/_types/actions/public/estimateGas.d.ts +5 -5
  150. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  151. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +3 -3
  152. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  153. package/_types/actions/public/getBalance.d.ts +4 -4
  154. package/_types/actions/public/getBalance.d.ts.map +1 -1
  155. package/_types/actions/public/getBlock.d.ts +10 -10
  156. package/_types/actions/public/getBlock.d.ts.map +1 -1
  157. package/_types/actions/public/getBlockNumber.d.ts +1 -1
  158. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  159. package/_types/actions/public/getBlockTransactionCount.d.ts +9 -9
  160. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  161. package/_types/actions/public/getBytecode.d.ts +4 -4
  162. package/_types/actions/public/getBytecode.d.ts.map +1 -1
  163. package/_types/actions/public/getContractEvents.d.ts +4 -4
  164. package/_types/actions/public/getContractEvents.d.ts.map +1 -1
  165. package/_types/actions/public/getFeeHistory.d.ts +4 -4
  166. package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
  167. package/_types/actions/public/getLogs.d.ts +17 -17
  168. package/_types/actions/public/getLogs.d.ts.map +1 -1
  169. package/_types/actions/public/getProof.d.ts +4 -4
  170. package/_types/actions/public/getProof.d.ts.map +1 -1
  171. package/_types/actions/public/getStorageAt.d.ts +4 -4
  172. package/_types/actions/public/getStorageAt.d.ts.map +1 -1
  173. package/_types/actions/public/getTransaction.d.ts +13 -13
  174. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  175. package/_types/actions/public/getTransactionConfirmations.d.ts +2 -2
  176. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  177. package/_types/actions/public/getTransactionCount.d.ts +4 -4
  178. package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
  179. package/_types/actions/public/simulateContract.d.ts +3 -3
  180. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  181. package/_types/actions/public/waitForTransactionReceipt.d.ts +6 -6
  182. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  183. package/_types/actions/public/watchBlockNumber.d.ts +1 -1
  184. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  185. package/_types/actions/public/watchEvent.d.ts +13 -13
  186. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  187. package/_types/actions/public/watchPendingTransactions.d.ts +1 -1
  188. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  189. package/_types/actions/test/mine.d.ts +1 -1
  190. package/_types/actions/test/mine.d.ts.map +1 -1
  191. package/_types/actions/test/reset.d.ts +2 -2
  192. package/_types/actions/test/reset.d.ts.map +1 -1
  193. package/_types/actions/wallet/prepareTransactionRequest.d.ts +5 -5
  194. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  195. package/_types/actions/wallet/writeContract.d.ts +1 -1
  196. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  197. package/_types/chains/celo/chainConfig.d.ts +312 -312
  198. package/_types/chains/celo/formatters.d.ts +312 -312
  199. package/_types/chains/celo/parsers.d.ts.map +1 -1
  200. package/_types/chains/celo/serializers.d.ts +1 -1
  201. package/_types/chains/celo/serializers.d.ts.map +1 -1
  202. package/_types/chains/celo/types.d.ts +39 -39
  203. package/_types/chains/celo/types.d.ts.map +1 -1
  204. package/_types/chains/definitions/ancient8.d.ts +217 -217
  205. package/_types/chains/definitions/ancient8Sepolia.d.ts +217 -217
  206. package/_types/chains/definitions/base.d.ts +217 -217
  207. package/_types/chains/definitions/baseGoerli.d.ts +217 -217
  208. package/_types/chains/definitions/baseSepolia.d.ts +217 -217
  209. package/_types/chains/definitions/celo.d.ts +312 -312
  210. package/_types/chains/definitions/celoAlfajores.d.ts +312 -312
  211. package/_types/chains/definitions/fraxtal.d.ts +217 -217
  212. package/_types/chains/definitions/fraxtalTestnet.d.ts +217 -217
  213. package/_types/chains/definitions/liskSepolia.d.ts +217 -217
  214. package/_types/chains/definitions/optimism.d.ts +217 -217
  215. package/_types/chains/definitions/optimismGoerli.d.ts +217 -217
  216. package/_types/chains/definitions/optimismSepolia.d.ts +217 -217
  217. package/_types/chains/definitions/pgn.d.ts +217 -217
  218. package/_types/chains/definitions/pgnTestnet.d.ts +217 -217
  219. package/_types/chains/definitions/rss3.d.ts +217 -217
  220. package/_types/chains/definitions/rss3Sepolia.d.ts +217 -217
  221. package/_types/chains/definitions/zkSync.d.ts +33 -33
  222. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +33 -33
  223. package/_types/chains/definitions/zkSyncTestnet.d.ts +33 -33
  224. package/_types/chains/definitions/zora.d.ts +217 -217
  225. package/_types/chains/definitions/zoraSepolia.d.ts +217 -217
  226. package/_types/chains/definitions/zoraTestnet.d.ts +217 -217
  227. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +7 -7
  228. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +1 -1
  229. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +3 -3
  230. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts.map +1 -1
  231. package/_types/chains/opStack/actions/depositTransaction.d.ts +1 -1
  232. package/_types/chains/opStack/actions/depositTransaction.d.ts.map +1 -1
  233. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +1 -1
  234. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
  235. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
  236. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
  237. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
  238. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
  239. package/_types/chains/opStack/actions/estimateL1Fee.d.ts +1 -1
  240. package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -1
  241. package/_types/chains/opStack/actions/estimateL1Gas.d.ts +1 -1
  242. package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -1
  243. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +1 -1
  244. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
  245. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +1 -1
  246. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts.map +1 -1
  247. package/_types/chains/opStack/actions/getL1BaseFee.d.ts +2 -2
  248. package/_types/chains/opStack/actions/getL1BaseFee.d.ts.map +1 -1
  249. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +2 -2
  250. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts.map +1 -1
  251. package/_types/chains/opStack/actions/getTimeToProve.d.ts +1 -1
  252. package/_types/chains/opStack/actions/getTimeToProve.d.ts.map +1 -1
  253. package/_types/chains/opStack/actions/proveWithdrawal.d.ts +1 -1
  254. package/_types/chains/opStack/actions/proveWithdrawal.d.ts.map +1 -1
  255. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +2 -2
  256. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts.map +1 -1
  257. package/_types/chains/opStack/actions/waitToProve.d.ts +1 -1
  258. package/_types/chains/opStack/actions/waitToProve.d.ts.map +1 -1
  259. package/_types/chains/opStack/chainConfig.d.ts +217 -217
  260. package/_types/chains/opStack/decorators/publicL2.d.ts +1 -1
  261. package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
  262. package/_types/chains/opStack/formatters.d.ts +217 -217
  263. package/_types/chains/opStack/types/deposit.d.ts +6 -6
  264. package/_types/chains/opStack/types/deposit.d.ts.map +1 -1
  265. package/_types/chains/opStack/types/transaction.d.ts +4 -4
  266. package/_types/chains/opStack/types/transaction.d.ts.map +1 -1
  267. package/_types/chains/opStack/types/withdrawal.d.ts +2 -2
  268. package/_types/chains/opStack/types/withdrawal.d.ts.map +1 -1
  269. package/_types/chains/zksync/chainConfig.d.ts +33 -33
  270. package/_types/chains/zksync/formatters.d.ts +33 -33
  271. package/_types/chains/zksync/serializers.d.ts +1 -1
  272. package/_types/chains/zksync/serializers.d.ts.map +1 -1
  273. package/_types/chains/zksync/types/eip712.d.ts +4 -4
  274. package/_types/chains/zksync/types/eip712.d.ts.map +1 -1
  275. package/_types/chains/zksync/types/transaction.d.ts +21 -21
  276. package/_types/chains/zksync/types/transaction.d.ts.map +1 -1
  277. package/_types/chains/zksync/utils/assertEip712Request.d.ts +2 -1
  278. package/_types/chains/zksync/utils/assertEip712Request.d.ts.map +1 -1
  279. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts +2 -1
  280. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts.map +1 -1
  281. package/_types/chains/zksync/utils/isEip712Transaction.d.ts +2 -1
  282. package/_types/chains/zksync/utils/isEip712Transaction.d.ts.map +1 -1
  283. package/_types/clients/createClient.d.ts +2 -2
  284. package/_types/clients/createClient.d.ts.map +1 -1
  285. package/_types/clients/decorators/public.d.ts +7 -7
  286. package/_types/clients/decorators/public.d.ts.map +1 -1
  287. package/_types/clients/decorators/test.d.ts +1 -1
  288. package/_types/clients/decorators/test.d.ts.map +1 -1
  289. package/_types/clients/transports/createTransport.d.ts +9 -9
  290. package/_types/clients/transports/createTransport.d.ts.map +1 -1
  291. package/_types/clients/transports/custom.d.ts +4 -4
  292. package/_types/clients/transports/custom.d.ts.map +1 -1
  293. package/_types/clients/transports/fallback.d.ts +17 -17
  294. package/_types/clients/transports/fallback.d.ts.map +1 -1
  295. package/_types/clients/transports/http.d.ts +13 -13
  296. package/_types/clients/transports/http.d.ts.map +1 -1
  297. package/_types/clients/transports/ipc.d.ts +6 -6
  298. package/_types/clients/transports/ipc.d.ts.map +1 -1
  299. package/_types/clients/transports/webSocket.d.ts +6 -6
  300. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  301. package/_types/errors/abi.d.ts +6 -6
  302. package/_types/errors/abi.d.ts.map +1 -1
  303. package/_types/errors/account.d.ts +1 -1
  304. package/_types/errors/account.d.ts.map +1 -1
  305. package/_types/errors/base.d.ts +9 -9
  306. package/_types/errors/base.d.ts.map +1 -1
  307. package/_types/errors/block.d.ts +2 -2
  308. package/_types/errors/block.d.ts.map +1 -1
  309. package/_types/errors/chain.d.ts +3 -3
  310. package/_types/errors/chain.d.ts.map +1 -1
  311. package/_types/errors/contract.d.ts +20 -20
  312. package/_types/errors/contract.d.ts.map +1 -1
  313. package/_types/errors/encoding.d.ts +3 -3
  314. package/_types/errors/encoding.d.ts.map +1 -1
  315. package/_types/errors/estimateGas.d.ts +3 -3
  316. package/_types/errors/estimateGas.d.ts.map +1 -1
  317. package/_types/errors/node.d.ts +27 -27
  318. package/_types/errors/node.d.ts.map +1 -1
  319. package/_types/errors/request.d.ts +7 -7
  320. package/_types/errors/request.d.ts.map +1 -1
  321. package/_types/errors/rpc.d.ts +5 -5
  322. package/_types/errors/rpc.d.ts.map +1 -1
  323. package/_types/errors/transaction.d.ts +7 -7
  324. package/_types/errors/transaction.d.ts.map +1 -1
  325. package/_types/errors/version.d.ts +1 -1
  326. package/_types/types/block.d.ts +3 -3
  327. package/_types/types/block.d.ts.map +1 -1
  328. package/_types/types/chain.d.ts +1 -1
  329. package/_types/types/chain.d.ts.map +1 -1
  330. package/_types/types/contract.d.ts +5 -5
  331. package/_types/types/contract.d.ts.map +1 -1
  332. package/_types/types/eip1193.d.ts +29 -29
  333. package/_types/types/eip1193.d.ts.map +1 -1
  334. package/_types/types/ens.d.ts +1 -1
  335. package/_types/types/ens.d.ts.map +1 -1
  336. package/_types/types/fee.d.ts +6 -6
  337. package/_types/types/fee.d.ts.map +1 -1
  338. package/_types/types/filter.d.ts +9 -9
  339. package/_types/types/filter.d.ts.map +1 -1
  340. package/_types/types/kzg.d.ts +1 -1
  341. package/_types/types/kzg.d.ts.map +1 -1
  342. package/_types/types/misc.d.ts +2 -2
  343. package/_types/types/misc.d.ts.map +1 -1
  344. package/_types/types/rpc.d.ts +16 -16
  345. package/_types/types/rpc.d.ts.map +1 -1
  346. package/_types/types/stateOverride.d.ts +5 -5
  347. package/_types/types/stateOverride.d.ts.map +1 -1
  348. package/_types/types/transaction.d.ts +56 -56
  349. package/_types/types/transaction.d.ts.map +1 -1
  350. package/_types/types/typedData.d.ts +1 -1
  351. package/_types/types/typedData.d.ts.map +1 -1
  352. package/_types/types/utils.d.ts +6 -3
  353. package/_types/types/utils.d.ts.map +1 -1
  354. package/_types/types/window.d.ts +1 -1
  355. package/_types/types/window.d.ts.map +1 -1
  356. package/_types/utils/abi/decodeEventLog.d.ts +1 -1
  357. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  358. package/_types/utils/abi/decodeFunctionResult.d.ts +2 -2
  359. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  360. package/_types/utils/abi/encodeErrorResult.d.ts +2 -2
  361. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
  362. package/_types/utils/abi/encodeEventTopics.d.ts +2 -2
  363. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
  364. package/_types/utils/abi/encodeFunctionData.d.ts +2 -2
  365. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
  366. package/_types/utils/abi/encodeFunctionResult.d.ts +2 -2
  367. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
  368. package/_types/utils/abi/formatAbiItem.d.ts +2 -2
  369. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
  370. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -2
  371. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
  372. package/_types/utils/address/getAddress.d.ts +1 -1
  373. package/_types/utils/address/getAddress.d.ts.map +1 -1
  374. package/_types/utils/address/getContractAddress.d.ts +1 -1
  375. package/_types/utils/address/getContractAddress.d.ts.map +1 -1
  376. package/_types/utils/address/isAddress.d.ts +1 -1
  377. package/_types/utils/address/isAddress.d.ts.map +1 -1
  378. package/_types/utils/blob/commitmentToVersionedHash.d.ts +1 -1
  379. package/_types/utils/blob/commitmentToVersionedHash.d.ts.map +1 -1
  380. package/_types/utils/blob/commitmentsToVersionedHashes.d.ts +1 -1
  381. package/_types/utils/blob/commitmentsToVersionedHashes.d.ts.map +1 -1
  382. package/_types/utils/blob/sidecarsToVersionedHashes.d.ts +1 -1
  383. package/_types/utils/blob/sidecarsToVersionedHashes.d.ts.map +1 -1
  384. package/_types/utils/chain/assertCurrentChain.d.ts +1 -1
  385. package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -1
  386. package/_types/utils/chain/getChainContractAddress.d.ts +1 -1
  387. package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -1
  388. package/_types/utils/cursor.d.ts +1 -1
  389. package/_types/utils/cursor.d.ts.map +1 -1
  390. package/_types/utils/data/isHex.d.ts +1 -1
  391. package/_types/utils/data/isHex.d.ts.map +1 -1
  392. package/_types/utils/data/pad.d.ts +2 -2
  393. package/_types/utils/data/pad.d.ts.map +1 -1
  394. package/_types/utils/data/slice.d.ts +6 -6
  395. package/_types/utils/data/slice.d.ts.map +1 -1
  396. package/_types/utils/data/trim.d.ts +1 -1
  397. package/_types/utils/data/trim.d.ts.map +1 -1
  398. package/_types/utils/encoding/fromBytes.d.ts +5 -5
  399. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  400. package/_types/utils/encoding/fromHex.d.ts +5 -5
  401. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  402. package/_types/utils/encoding/toBytes.d.ts +5 -5
  403. package/_types/utils/encoding/toBytes.d.ts.map +1 -1
  404. package/_types/utils/encoding/toHex.d.ts +7 -7
  405. package/_types/utils/encoding/toHex.d.ts.map +1 -1
  406. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
  407. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  408. package/_types/utils/errors/getCallError.d.ts +2 -2
  409. package/_types/utils/errors/getCallError.d.ts.map +1 -1
  410. package/_types/utils/errors/getContractError.d.ts +3 -3
  411. package/_types/utils/errors/getContractError.d.ts.map +1 -1
  412. package/_types/utils/errors/getEstimateGasError.d.ts +3 -3
  413. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
  414. package/_types/utils/errors/getNodeError.d.ts +2 -1
  415. package/_types/utils/errors/getNodeError.d.ts.map +1 -1
  416. package/_types/utils/errors/getTransactionError.d.ts +2 -2
  417. package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
  418. package/_types/utils/formatters/block.d.ts +3 -3
  419. package/_types/utils/formatters/block.d.ts.map +1 -1
  420. package/_types/utils/formatters/extract.d.ts +1 -1
  421. package/_types/utils/formatters/extract.d.ts.map +1 -1
  422. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  423. package/_types/utils/formatters/log.d.ts +4 -3
  424. package/_types/utils/formatters/log.d.ts.map +1 -1
  425. package/_types/utils/formatters/proof.d.ts +2 -1
  426. package/_types/utils/formatters/proof.d.ts.map +1 -1
  427. package/_types/utils/formatters/transaction.d.ts +3 -3
  428. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  429. package/_types/utils/formatters/transactionReceipt.d.ts +3 -2
  430. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  431. package/_types/utils/formatters/transactionRequest.d.ts +3 -2
  432. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  433. package/_types/utils/hash/keccak256.d.ts +1 -1
  434. package/_types/utils/hash/keccak256.d.ts.map +1 -1
  435. package/_types/utils/hash/ripemd160.d.ts +1 -1
  436. package/_types/utils/hash/ripemd160.d.ts.map +1 -1
  437. package/_types/utils/hash/sha256.d.ts +1 -1
  438. package/_types/utils/hash/sha256.d.ts.map +1 -1
  439. package/_types/utils/poll.d.ts +2 -2
  440. package/_types/utils/poll.d.ts.map +1 -1
  441. package/_types/utils/promise/createBatchScheduler.d.ts +4 -4
  442. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  443. package/_types/utils/promise/withCache.d.ts +1 -1
  444. package/_types/utils/promise/withCache.d.ts.map +1 -1
  445. package/_types/utils/promise/withRetry.d.ts +4 -4
  446. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  447. package/_types/utils/promise/withTimeout.d.ts +4 -4
  448. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  449. package/_types/utils/rpc/http.d.ts +6 -6
  450. package/_types/utils/rpc/http.d.ts.map +1 -1
  451. package/_types/utils/rpc/socket.d.ts +2 -2
  452. package/_types/utils/rpc/socket.d.ts.map +1 -1
  453. package/_types/utils/signature/hashMessage.d.ts +1 -1
  454. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  455. package/_types/utils/transaction/assertRequest.d.ts +2 -1
  456. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  457. package/_types/utils/transaction/getTransactionType.d.ts +4 -4
  458. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
  459. package/_types/utils/transaction/serializeAccessList.d.ts +1 -1
  460. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
  461. package/_types/utils/transaction/serializeTransaction.d.ts +2 -2
  462. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  463. package/_types/utils/typedData.d.ts +1 -1
  464. package/_types/utils/typedData.d.ts.map +1 -1
  465. package/accounts/generateMnemonic.ts +1 -1
  466. package/accounts/types.ts +12 -10
  467. package/accounts/utils/signTransaction.ts +1 -1
  468. package/actions/ens/getEnsAddress.ts +4 -4
  469. package/actions/ens/getEnsAvatar.ts +1 -1
  470. package/actions/ens/getEnsName.ts +3 -3
  471. package/actions/ens/getEnsResolver.ts +1 -1
  472. package/actions/ens/getEnsText.ts +3 -3
  473. package/actions/getContract.ts +3 -3
  474. package/actions/public/call.ts +16 -12
  475. package/actions/public/createContractEventFilter.ts +9 -6
  476. package/actions/public/createEventFilter.ts +21 -21
  477. package/actions/public/estimateFeesPerGas.ts +4 -4
  478. package/actions/public/estimateGas.ts +5 -5
  479. package/actions/public/estimateMaxPriorityFeePerGas.ts +11 -7
  480. package/actions/public/getBalance.ts +4 -4
  481. package/actions/public/getBlock.ts +10 -10
  482. package/actions/public/getBlockNumber.ts +1 -1
  483. package/actions/public/getBlockTransactionCount.ts +9 -9
  484. package/actions/public/getBytecode.ts +4 -4
  485. package/actions/public/getContractEvents.ts +4 -4
  486. package/actions/public/getFeeHistory.ts +4 -4
  487. package/actions/public/getLogs.ts +17 -17
  488. package/actions/public/getProof.ts +4 -4
  489. package/actions/public/getStorageAt.ts +4 -4
  490. package/actions/public/getTransaction.ts +13 -13
  491. package/actions/public/getTransactionConfirmations.ts +2 -2
  492. package/actions/public/getTransactionCount.ts +4 -4
  493. package/actions/public/simulateContract.ts +3 -3
  494. package/actions/public/waitForTransactionReceipt.ts +6 -6
  495. package/actions/public/watchBlockNumber.ts +1 -1
  496. package/actions/public/watchEvent.ts +13 -13
  497. package/actions/public/watchPendingTransactions.ts +1 -1
  498. package/actions/test/mine.ts +1 -1
  499. package/actions/test/reset.ts +2 -2
  500. package/actions/wallet/prepareTransactionRequest.ts +5 -4
  501. package/actions/wallet/writeContract.ts +1 -1
  502. package/chains/celo/parsers.ts +3 -2
  503. package/chains/celo/serializers.ts +3 -3
  504. package/chains/celo/types.ts +37 -37
  505. package/chains/opStack/actions/buildDepositTransaction.ts +7 -7
  506. package/chains/opStack/actions/buildInitiateWithdrawal.ts +3 -3
  507. package/chains/opStack/actions/depositTransaction.ts +1 -1
  508. package/chains/opStack/actions/estimateDepositTransactionGas.ts +1 -1
  509. package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
  510. package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +1 -1
  511. package/chains/opStack/actions/estimateL1Fee.ts +1 -1
  512. package/chains/opStack/actions/estimateL1Gas.ts +1 -1
  513. package/chains/opStack/actions/estimateProveWithdrawalGas.ts +1 -1
  514. package/chains/opStack/actions/finalizeWithdrawal.ts +1 -1
  515. package/chains/opStack/actions/getL1BaseFee.ts +2 -2
  516. package/chains/opStack/actions/getTimeToNextL2Output.ts +2 -2
  517. package/chains/opStack/actions/getTimeToProve.ts +3 -1
  518. package/chains/opStack/actions/proveWithdrawal.ts +1 -1
  519. package/chains/opStack/actions/waitForNextL2Output.ts +4 -2
  520. package/chains/opStack/actions/waitToProve.ts +1 -1
  521. package/chains/opStack/decorators/publicL2.ts +1 -1
  522. package/chains/opStack/types/deposit.ts +6 -6
  523. package/chains/opStack/types/transaction.ts +4 -4
  524. package/chains/opStack/types/withdrawal.ts +2 -2
  525. package/chains/zksync/formatters.ts +1 -1
  526. package/chains/zksync/serializers.ts +1 -1
  527. package/chains/zksync/types/eip712.ts +4 -4
  528. package/chains/zksync/types/transaction.ts +21 -21
  529. package/chains/zksync/utils/assertEip712Request.ts +2 -1
  530. package/chains/zksync/utils/assertEip712Transaction.ts +2 -1
  531. package/chains/zksync/utils/isEip712Transaction.ts +2 -1
  532. package/clients/createClient.ts +3 -3
  533. package/clients/decorators/public.ts +23 -21
  534. package/clients/decorators/test.ts +1 -1
  535. package/clients/transports/createTransport.ts +9 -9
  536. package/clients/transports/custom.ts +4 -4
  537. package/clients/transports/fallback.ts +28 -26
  538. package/clients/transports/http.ts +13 -13
  539. package/clients/transports/ipc.ts +6 -6
  540. package/clients/transports/webSocket.ts +6 -6
  541. package/errors/abi.ts +12 -3
  542. package/errors/account.ts +1 -1
  543. package/errors/base.ts +13 -10
  544. package/errors/block.ts +2 -2
  545. package/errors/chain.ts +3 -3
  546. package/errors/contract.ts +26 -15
  547. package/errors/encoding.ts +3 -3
  548. package/errors/estimateGas.ts +3 -3
  549. package/errors/node.ts +35 -14
  550. package/errors/request.ts +7 -7
  551. package/errors/rpc.ts +5 -5
  552. package/errors/transaction.ts +7 -7
  553. package/errors/version.ts +1 -1
  554. package/package.json +1 -1
  555. package/types/block.ts +3 -3
  556. package/types/chain.ts +1 -1
  557. package/types/contract.ts +7 -5
  558. package/types/eip1193.ts +42 -38
  559. package/types/ens.ts +1 -1
  560. package/types/fee.ts +6 -6
  561. package/types/filter.ts +9 -9
  562. package/types/kzg.ts +1 -1
  563. package/types/misc.ts +2 -2
  564. package/types/rpc.ts +16 -16
  565. package/types/stateOverride.ts +5 -5
  566. package/types/transaction.ts +63 -56
  567. package/types/typedData.ts +1 -1
  568. package/types/utils.ts +9 -3
  569. package/types/window.ts +1 -1
  570. package/utils/abi/decodeEventLog.ts +1 -1
  571. package/utils/abi/decodeFunctionResult.ts +2 -2
  572. package/utils/abi/encodeErrorResult.ts +2 -2
  573. package/utils/abi/encodeEventTopics.ts +2 -2
  574. package/utils/abi/encodeFunctionData.ts +2 -2
  575. package/utils/abi/encodeFunctionResult.ts +2 -2
  576. package/utils/abi/formatAbiItem.ts +2 -2
  577. package/utils/abi/formatAbiItemWithArgs.ts +2 -2
  578. package/utils/address/getAddress.ts +4 -1
  579. package/utils/address/getContractAddress.ts +1 -1
  580. package/utils/address/isAddress.ts +1 -1
  581. package/utils/blob/commitmentToVersionedHash.ts +1 -1
  582. package/utils/blob/commitmentsToVersionedHashes.ts +1 -1
  583. package/utils/blob/sidecarsToVersionedHashes.ts +1 -1
  584. package/utils/chain/assertCurrentChain.ts +1 -1
  585. package/utils/chain/getChainContractAddress.ts +1 -1
  586. package/utils/cursor.ts +1 -1
  587. package/utils/data/isHex.ts +1 -1
  588. package/utils/data/pad.ts +2 -2
  589. package/utils/data/slice.ts +15 -11
  590. package/utils/data/trim.ts +1 -1
  591. package/utils/encoding/fromBytes.ts +5 -5
  592. package/utils/encoding/fromHex.ts +5 -5
  593. package/utils/encoding/toBytes.ts +8 -5
  594. package/utils/encoding/toHex.ts +7 -7
  595. package/utils/ens/avatar/parseAvatarRecord.ts +2 -2
  596. package/utils/errors/getCallError.ts +2 -2
  597. package/utils/errors/getContractError.ts +3 -3
  598. package/utils/errors/getEstimateGasError.ts +3 -3
  599. package/utils/errors/getNodeError.ts +4 -1
  600. package/utils/errors/getTransactionError.ts +2 -2
  601. package/utils/formatters/block.ts +2 -2
  602. package/utils/formatters/extract.ts +1 -1
  603. package/utils/formatters/formatter.ts +1 -1
  604. package/utils/formatters/log.ts +6 -2
  605. package/utils/formatters/proof.ts +2 -1
  606. package/utils/formatters/transaction.ts +2 -2
  607. package/utils/formatters/transactionReceipt.ts +2 -1
  608. package/utils/formatters/transactionRequest.ts +4 -1
  609. package/utils/hash/keccak256.ts +1 -1
  610. package/utils/hash/ripemd160.ts +1 -1
  611. package/utils/hash/sha256.ts +1 -1
  612. package/utils/poll.ts +2 -2
  613. package/utils/promise/createBatchScheduler.ts +6 -6
  614. package/utils/promise/withCache.ts +1 -1
  615. package/utils/promise/withRetry.ts +14 -9
  616. package/utils/promise/withTimeout.ts +6 -4
  617. package/utils/rpc/http.ts +7 -7
  618. package/utils/rpc/socket.ts +2 -2
  619. package/utils/signature/hashMessage.ts +1 -1
  620. package/utils/transaction/assertRequest.ts +4 -1
  621. package/utils/transaction/getTransactionType.ts +10 -4
  622. package/utils/transaction/parseTransaction.ts +1 -1
  623. package/utils/transaction/serializeAccessList.ts +1 -1
  624. package/utils/transaction/serializeTransaction.ts +6 -6
  625. package/utils/typedData.ts +1 -1
@@ -40,7 +40,7 @@ export type EstimateInitiateWithdrawalGasParameters<
40
40
  GetAccountParameter<account, Account | Address> &
41
41
  GetChainParameter<chain, chainOverride> & {
42
42
  /** Gas limit for transaction execution on the L2. */
43
- gas?: bigint | null
43
+ gas?: bigint | null | undefined
44
44
  /**
45
45
  * Withdrawal request.
46
46
  * Supplied to the L2ToL1MessagePasser `initiateWithdrawal` method.
@@ -41,7 +41,7 @@ export type EstimateL1FeeParameters<
41
41
  GetAccountParameter<TAccount> &
42
42
  GetChainParameter<TChain, TChainOverride> & {
43
43
  /** Gas price oracle address. */
44
- gasPriceOracleAddress?: Address
44
+ gasPriceOracleAddress?: Address | undefined
45
45
  }
46
46
 
47
47
  export type EstimateL1FeeReturnType = bigint
@@ -41,7 +41,7 @@ export type EstimateL1GasParameters<
41
41
  GetAccountParameter<TAccount> &
42
42
  GetChainParameter<TChain, TChainOverride> & {
43
43
  /** Gas price oracle address. */
44
- gasPriceOracleAddress?: Address
44
+ gasPriceOracleAddress?: Address | undefined
45
45
  }
46
46
 
47
47
  export type EstimateL1GasReturnType = bigint
@@ -41,7 +41,7 @@ export type EstimateProveWithdrawalGasParameters<
41
41
  GetChainParameter<chain, chainOverride> &
42
42
  GetContractAddressParameter<_derivedChain, 'portal'> & {
43
43
  /** Gas limit for transaction execution on the L2. */
44
- gas?: bigint | null
44
+ gas?: bigint | null | undefined
45
45
  l2OutputIndex: bigint
46
46
  outputRootProof: {
47
47
  version: Hex
@@ -50,7 +50,7 @@ export type FinalizeWithdrawalParameters<
50
50
  * Gas limit for transaction execution on the L1.
51
51
  * `null` to skip gas estimation & defer calculation to signer.
52
52
  */
53
- gas?: bigint | null
53
+ gas?: bigint | null | undefined
54
54
  withdrawal: Withdrawal
55
55
  }
56
56
  export type FinalizeWithdrawalReturnType = Hash
@@ -21,7 +21,7 @@ export type GetL1BaseFeeParameters<
21
21
  TChainOverride extends Chain | undefined = undefined,
22
22
  > = GetChainParameter<TChain, TChainOverride> & {
23
23
  /** Gas price oracle address. */
24
- gasPriceOracleAddress?: Address
24
+ gasPriceOracleAddress?: Address | undefined
25
25
  }
26
26
 
27
27
  export type GetL1BaseFeeReturnType = bigint
@@ -56,7 +56,7 @@ export async function getL1BaseFee<
56
56
  TChainOverride extends Chain | undefined = undefined,
57
57
  >(
58
58
  client: Client<Transport, TChain>,
59
- args?: GetL1BaseFeeParameters<TChain, TChainOverride>,
59
+ args?: GetL1BaseFeeParameters<TChain, TChainOverride> | undefined,
60
60
  ): Promise<GetL1BaseFeeReturnType> {
61
61
  const {
62
62
  chain = client.chain,
@@ -28,7 +28,7 @@ export type GetTimeToNextL2OutputParameters<
28
28
  * The buffer to account for discrepencies between non-deterministic time intervals.
29
29
  * @default 1.1
30
30
  */
31
- intervalBuffer?: number
31
+ intervalBuffer?: number | undefined
32
32
  l2BlockNumber: bigint
33
33
  }
34
34
  export type GetTimeToNextL2OutputReturnType = {
@@ -43,7 +43,7 @@ export type GetTimeToNextL2OutputReturnType = {
43
43
  * Estimated timestamp of the next L2 output.
44
44
  * `undefined` if the next L2 output has already been submitted.
45
45
  */
46
- timestamp?: number
46
+ timestamp?: number | undefined
47
47
  }
48
48
  export type GetTimeToNextL2OutputErrorType =
49
49
  | MulticallErrorType
@@ -26,7 +26,9 @@ export type GetTimeToProveParameters<
26
26
  * The buffer to account for discrepencies between non-deterministic time intervals.
27
27
  * @default 1.1
28
28
  */
29
- intervalBuffer?: GetTimeToNextL2OutputParameters['intervalBuffer']
29
+ intervalBuffer?:
30
+ | GetTimeToNextL2OutputParameters['intervalBuffer']
31
+ | undefined
30
32
  receipt: TransactionReceipt
31
33
  }
32
34
  export type GetTimeToProveReturnType = GetTimeToNextL2OutputReturnType
@@ -49,7 +49,7 @@ export type ProveWithdrawalParameters<
49
49
  * Gas limit for transaction execution on the L1.
50
50
  * `null` to skip gas estimation & defer calculation to signer.
51
51
  */
52
- gas?: bigint | null
52
+ gas?: bigint | null | undefined
53
53
  l2OutputIndex: bigint
54
54
  outputRootProof: {
55
55
  version: Hex
@@ -31,13 +31,15 @@ export type WaitForNextL2OutputParameters<
31
31
  * The buffer to account for discrepencies between non-deterministic time intervals.
32
32
  * @default 1.1
33
33
  */
34
- intervalBuffer?: GetTimeToNextL2OutputParameters['intervalBuffer']
34
+ intervalBuffer?:
35
+ | GetTimeToNextL2OutputParameters['intervalBuffer']
36
+ | undefined
35
37
  l2BlockNumber: bigint
36
38
  /**
37
39
  * Polling frequency (in ms). Defaults to Client's pollingInterval config.
38
40
  * @default client.pollingInterval
39
41
  */
40
- pollingInterval?: number
42
+ pollingInterval?: number | undefined
41
43
  }
42
44
  export type WaitForNextL2OutputReturnType = GetL2OutputReturnType
43
45
  export type WaitForNextL2OutputErrorType =
@@ -32,7 +32,7 @@ export type WaitToProveParameters<
32
32
  * Polling frequency (in ms). Defaults to Client's pollingInterval config.
33
33
  * @default client.pollingInterval
34
34
  */
35
- pollingInterval?: number
35
+ pollingInterval?: number | undefined
36
36
  }
37
37
  export type WaitToProveReturnType = {
38
38
  withdrawal: Withdrawal
@@ -390,7 +390,7 @@ export type PublicActionsL2<
390
390
  * const l1BaseFee = await client.getL1BaseFee()
391
391
  */
392
392
  getL1BaseFee: <chainOverride extends Chain | undefined = undefined>(
393
- parameters?: GetL1BaseFeeParameters<chain, chainOverride>,
393
+ parameters?: GetL1BaseFeeParameters<chain, chainOverride> | undefined,
394
394
  ) => Promise<GetL1BaseFeeReturnType>
395
395
  /**
396
396
  * Estimates the amount of L1 data gas required to execute an L2 transaction.
@@ -5,17 +5,17 @@ export type DepositRequest = {
5
5
  /** Gas limit for transaction execution on the L2. */
6
6
  gas: bigint
7
7
  /** Value in wei to mint (deposit) on the L2. Debited from the caller's L1 balance. */
8
- mint?: bigint
8
+ mint?: bigint | undefined
9
9
  /** Value in wei sent with this transaction on the L2. Debited from the caller's L2 balance. */
10
- value?: bigint
10
+ value?: bigint | undefined
11
11
  } & (
12
12
  | {
13
13
  /** Encoded contract method & arguments. */
14
- data?: Hex
14
+ data?: Hex | undefined
15
15
  /** Whether or not this is a contract deployment transaction. */
16
- isCreation?: false
16
+ isCreation?: false | undefined
17
17
  /** L2 Transaction recipient. */
18
- to?: Address
18
+ to?: Address | undefined
19
19
  }
20
20
  | {
21
21
  /** Contract deployment bytecode. Required for contract deployment transactions. */
@@ -23,6 +23,6 @@ export type DepositRequest = {
23
23
  /** Whether or not this is a contract deployment transaction. */
24
24
  isCreation: true
25
25
  /** L2 Transaction recipient. Cannot exist for contract deployment transactions. */
26
- to?: never
26
+ to?: never | undefined
27
27
  }
28
28
  )
@@ -27,8 +27,8 @@ type RpcTransaction<TPending extends boolean = boolean> =
27
27
  export type OpStackRpcDepositTransaction<TPending extends boolean = boolean> =
28
28
  Omit<TransactionBase<Quantity, Index, TPending>, 'typeHex'> &
29
29
  FeeValuesEIP1559<Quantity> & {
30
- isSystemTx?: boolean
31
- mint?: Hex
30
+ isSystemTx?: boolean | undefined
31
+ mint?: Hex | undefined
32
32
  sourceHash: Hex
33
33
  type: '0x7e'
34
34
  }
@@ -59,7 +59,7 @@ export type OpStackDepositTransaction<TPending extends boolean = boolean> =
59
59
  TransactionBase<bigint, number, TPending> &
60
60
  FeeValuesEIP1559 & {
61
61
  isSystemTx?: boolean
62
- mint?: bigint
62
+ mint?: bigint | undefined
63
63
  sourceHash: Hex
64
64
  type: 'deposit'
65
65
  }
@@ -98,7 +98,7 @@ export type TransactionSerializableDeposit<
98
98
  > & {
99
99
  from: Hex
100
100
  isSystemTx?: boolean
101
- mint?: bigint
101
+ mint?: bigint | undefined
102
102
  sourceHash: Hex
103
103
  type: 'deposit'
104
104
  }
@@ -3,13 +3,13 @@ import type { Hex } from '../../../types/misc.js'
3
3
 
4
4
  export type WithdrawalRequest = {
5
5
  /** Encoded contract method & arguments. */
6
- data?: Hex
6
+ data?: Hex | undefined
7
7
  /** Gas limit for transaction execution on the L1. */
8
8
  gas: bigint
9
9
  /** L1 Transaction recipient. */
10
10
  to: Address
11
11
  /** Value in wei to withdrawal to the L1. Debited from the caller's L2 balance. */
12
- value?: bigint
12
+ value?: bigint | undefined
13
13
  }
14
14
 
15
15
  export type Withdrawal = {
@@ -142,7 +142,7 @@ export const formatters = {
142
142
  : {}),
143
143
  },
144
144
  type: '0x71',
145
- } as ZkSyncRpcTransactionRequest
145
+ } as unknown as ZkSyncRpcTransactionRequest
146
146
  return {} as ZkSyncRpcTransactionRequest
147
147
  },
148
148
  }),
@@ -15,7 +15,7 @@ import { isEIP712Transaction } from './utils/isEip712Transaction.js'
15
15
 
16
16
  export function serializeTransaction(
17
17
  transaction: ZkSyncTransactionSerializable,
18
- signature?: Signature,
18
+ signature?: Signature | undefined,
19
19
  ) {
20
20
  if (isEIP712Transaction(transaction))
21
21
  return serializeTransactionEIP712(
@@ -8,10 +8,10 @@ type PaymasterParams = {
8
8
  }
9
9
 
10
10
  export type ZkSyncEip712Meta = {
11
- gasPerPubdata?: Hex
12
- factoryDeps?: Hex[]
13
- customSignature?: Hex
14
- paymasterParams?: PaymasterParams
11
+ gasPerPubdata?: Hex | undefined
12
+ factoryDeps?: Hex[] | undefined
13
+ customSignature?: Hex | undefined
14
+ paymasterParams?: PaymasterParams | undefined
15
15
  }
16
16
 
17
17
  type EIP712FieldType = 'uint256' | 'bytes' | 'bytes32[]'
@@ -20,7 +20,7 @@ import type {
20
20
  TransactionSerialized,
21
21
  TransactionType,
22
22
  } from '../../../types/transaction.js'
23
- import type { OneOf, UnionOmit } from '../../../types/utils.js'
23
+ import type { ExactPartial, OneOf, UnionOmit } from '../../../types/utils.js'
24
24
  import type { ZkSyncEip712Meta } from './eip712.js'
25
25
  import type { ZkSyncFeeValues } from './fee.js'
26
26
  import type {
@@ -129,11 +129,11 @@ export type ZkSyncTransactionRequestEIP712 = Omit<
129
129
  TransactionRequestBase,
130
130
  'type'
131
131
  > &
132
- Partial<FeeValuesEIP1559> & {
133
- gasPerPubdata?: bigint
134
- customSignature?: Hex
135
- factoryDeps?: Hex[]
136
- type?: 'eip712' | 'priority'
132
+ ExactPartial<FeeValuesEIP1559> & {
133
+ gasPerPubdata?: bigint | undefined
134
+ customSignature?: Hex | undefined
135
+ factoryDeps?: Hex[] | undefined
136
+ type?: 'eip712' | 'priority' | undefined
137
137
  } & (
138
138
  | { paymaster: Address; paymasterInput: Hex }
139
139
  | { paymaster?: undefined; paymasterInput?: undefined }
@@ -149,7 +149,7 @@ export type ZkSyncRpcTransactionRequestEIP712 = TransactionRequestBase<
149
149
  Quantity,
150
150
  Index
151
151
  > &
152
- Partial<FeeValuesEIP1559<Quantity>> & {
152
+ ExactPartial<FeeValuesEIP1559<Quantity>> & {
153
153
  eip712Meta: ZkSyncEip712Meta
154
154
  type: EIP712Type | PriorityType
155
155
  }
@@ -203,12 +203,12 @@ export type ZkSyncTransactionSerializableEIP712<
203
203
  TIndex = number,
204
204
  > = Omit<TransactionSerializableEIP1559<TQuantity, TIndex>, 'type'> & {
205
205
  from: Hex
206
- gasPerPubdata?: bigint
207
- paymaster?: Address
208
- factoryDeps?: Hex[]
209
- paymasterInput?: Hex
210
- customSignature?: Hex
211
- type?: 'eip712'
206
+ gasPerPubdata?: bigint | undefined
207
+ paymaster?: Address | undefined
208
+ factoryDeps?: Hex[] | undefined
209
+ paymasterInput?: Hex | undefined
210
+ customSignature?: Hex | undefined
211
+ type?: 'eip712' | undefined
212
212
  }
213
213
 
214
214
  // EIP712 Signer
@@ -234,12 +234,12 @@ export type TransactionRequestEIP712<
234
234
  TIndex = number,
235
235
  TTransactionType = 'eip712',
236
236
  > = TransactionRequestBase<TQuantity, TIndex> &
237
- Partial<FeeValuesEIP1559<TQuantity>> & {
238
- accessList?: never
239
- gasPerPubdata?: bigint
240
- factoryDeps?: Hex[]
241
- paymaster?: Address
242
- paymasterInput?: Hex
243
- customSignature?: Hex
244
- type?: TTransactionType
237
+ ExactPartial<FeeValuesEIP1559<TQuantity>> & {
238
+ accessList?: never | undefined
239
+ gasPerPubdata?: bigint | undefined
240
+ factoryDeps?: Hex[] | undefined
241
+ paymaster?: Address | undefined
242
+ paymasterInput?: Hex | undefined
243
+ customSignature?: Hex | undefined
244
+ type?: TTransactionType | undefined
245
245
  }
@@ -1,11 +1,12 @@
1
1
  import type { ErrorType } from '../../../errors/utils.js'
2
2
  import { type AssertRequestErrorType, assertRequest } from '../../../index.js'
3
+ import type { ExactPartial } from '../../../types/utils.js'
3
4
  import type { SendTransactionParameters } from '../actions/sendTransaction.js'
4
5
  import type { zkSync } from '../chains.js'
5
6
  import { InvalidEip712TransactionError } from '../errors/transaction.js'
6
7
  import { isEIP712Transaction } from './isEip712Transaction.js'
7
8
 
8
- export type AssertEip712RequestParameters = Partial<
9
+ export type AssertEip712RequestParameters = ExactPartial<
9
10
  SendTransactionParameters<typeof zkSync>
10
11
  >
11
12
 
@@ -1,6 +1,7 @@
1
1
  import { InvalidAddressError } from '../../../errors/address.js'
2
2
  import { BaseError } from '../../../errors/base.js'
3
3
  import { InvalidChainIdError } from '../../../errors/chain.js'
4
+ import type { ExactPartial } from '../../../types/utils.js'
4
5
  import { isAddress } from '../../../utils/address/isAddress.js'
5
6
  import { InvalidEip712TransactionError } from '../errors/transaction.js'
6
7
  import type {
@@ -10,7 +11,7 @@ import type {
10
11
  import { isEIP712Transaction } from './isEip712Transaction.js'
11
12
 
12
13
  export function assertEip712Transaction(
13
- transaction: Partial<ZkSyncTransactionSerializable>,
14
+ transaction: ExactPartial<ZkSyncTransactionSerializable>,
14
15
  ) {
15
16
  const { chainId, to, from, paymaster, paymasterInput } =
16
17
  transaction as ZkSyncTransactionSerializableEIP712
@@ -1,7 +1,8 @@
1
+ import type { ExactPartial } from '../../../types/utils.js'
1
2
  import type { ZkSyncTransactionSerializable } from '../types/transaction.js'
2
3
 
3
4
  export function isEIP712Transaction(
4
- transaction: Partial<ZkSyncTransactionSerializable>,
5
+ transaction: ExactPartial<ZkSyncTransactionSerializable>,
5
6
  ) {
6
7
  if (transaction.type === 'eip712') return true
7
8
  if (
@@ -10,7 +10,7 @@ import type {
10
10
  EIP1474Methods,
11
11
  RpcSchema,
12
12
  } from '../types/eip1193.js'
13
- import type { Prettify } from '../types/utils.js'
13
+ import type { ExactPartial, Prettify } from '../types/utils.js'
14
14
  import { parseAccount } from '../utils/accounts.js'
15
15
  import { uid } from '../utils/uid.js'
16
16
  import type { PublicActions } from './decorators/public.js'
@@ -104,7 +104,7 @@ export type Client<
104
104
  (extended extends Extended ? extended : unknown) & {
105
105
  extend: <
106
106
  const client extends Extended &
107
- Partial<ExtendableProtectedActions<transport, chain, account>>,
107
+ ExactPartial<ExtendableProtectedActions<transport, chain, account>>,
108
108
  >(
109
109
  fn: (
110
110
  client: Client<transport, chain, account, rpcSchema, extended>,
@@ -225,7 +225,7 @@ export function createClient(parameters: ClientConfig): Client {
225
225
  const extended = extendFn(base) as Extended
226
226
  for (const key in client) delete extended[key]
227
227
  const combined = { ...base, ...extended }
228
- return Object.assign(combined, { extend: extend(combined) })
228
+ return Object.assign(combined, { extend: extend(combined as any) })
229
229
  }
230
230
  }
231
231
 
@@ -376,15 +376,17 @@ export type PublicActions<
376
376
  | MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName>
377
377
  | undefined = undefined,
378
378
  >(
379
- args?: CreateEventFilterParameters<
380
- TAbiEvent,
381
- TAbiEvents,
382
- TStrict,
383
- TFromBlock,
384
- TToBlock,
385
- _EventName,
386
- _Args
387
- >,
379
+ args?:
380
+ | CreateEventFilterParameters<
381
+ TAbiEvent,
382
+ TAbiEvents,
383
+ TStrict,
384
+ TFromBlock,
385
+ TToBlock,
386
+ _EventName,
387
+ _Args
388
+ >
389
+ | undefined,
388
390
  ) => Promise<
389
391
  CreateEventFilterReturnType<
390
392
  TAbiEvent,
@@ -562,7 +564,7 @@ export type PublicActions<
562
564
  TIncludeTransactions extends boolean = false,
563
565
  TBlockTag extends BlockTag = 'latest',
564
566
  >(
565
- args?: GetBlockParameters<TIncludeTransactions, TBlockTag>,
567
+ args?: GetBlockParameters<TIncludeTransactions, TBlockTag> | undefined,
566
568
  ) => Promise<GetBlockReturnType<TChain, TIncludeTransactions, TBlockTag>>
567
569
  /**
568
570
  * Returns the number of the most recent block seen.
@@ -586,7 +588,7 @@ export type PublicActions<
586
588
  * // 69420n
587
589
  */
588
590
  getBlockNumber: (
589
- args?: GetBlockNumberParameters,
591
+ args?: GetBlockNumberParameters | undefined,
590
592
  ) => Promise<GetBlockNumberReturnType>
591
593
  /**
592
594
  * Returns the number of Transactions at a block number, hash, or tag.
@@ -610,7 +612,7 @@ export type PublicActions<
610
612
  * const count = await client.getBlockTransactionCount()
611
613
  */
612
614
  getBlockTransactionCount: (
613
- args?: GetBlockTransactionCountParameters,
615
+ args?: GetBlockTransactionCountParameters | undefined,
614
616
  ) => Promise<GetBlockTransactionCountReturnType>
615
617
  /**
616
618
  * Retrieves the bytecode at an address.
@@ -895,7 +897,9 @@ export type PublicActions<
895
897
  TChainOverride extends Chain | undefined = undefined,
896
898
  TType extends FeeValuesType = 'eip1559',
897
899
  >(
898
- args?: EstimateFeesPerGasParameters<TChain, TChainOverride, TType>,
900
+ args?:
901
+ | EstimateFeesPerGasParameters<TChain, TChainOverride, TType>
902
+ | undefined,
899
903
  ) => Promise<EstimateFeesPerGasReturnType>
900
904
  /**
901
905
  * Returns a list of logs or hashes based on a [Filter](/docs/glossary/terms#filter) since the last time it was called.
@@ -1093,13 +1097,9 @@ export type PublicActions<
1093
1097
  TFromBlock extends BlockNumber | BlockTag | undefined = undefined,
1094
1098
  TToBlock extends BlockNumber | BlockTag | undefined = undefined,
1095
1099
  >(
1096
- args?: GetLogsParameters<
1097
- TAbiEvent,
1098
- TAbiEvents,
1099
- TStrict,
1100
- TFromBlock,
1101
- TToBlock
1102
- >,
1100
+ args?:
1101
+ | GetLogsParameters<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>
1102
+ | undefined,
1103
1103
  ) => Promise<
1104
1104
  GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>
1105
1105
  >
@@ -1151,7 +1151,9 @@ export type PublicActions<
1151
1151
  estimateMaxPriorityFeePerGas: <
1152
1152
  TChainOverride extends Chain | undefined = undefined,
1153
1153
  >(
1154
- args?: EstimateMaxPriorityFeePerGasParameters<TChain, TChainOverride>,
1154
+ args?:
1155
+ | EstimateMaxPriorityFeePerGasParameters<TChain, TChainOverride>
1156
+ | undefined,
1155
1157
  ) => Promise<EstimateMaxPriorityFeePerGasReturnType>
1156
1158
  /**
1157
1159
  * Returns the value from a storage slot at a given address.
@@ -335,7 +335,7 @@ export type TestActions = {
335
335
  * })
336
336
  * await client.reset({ blockNumber: 69420n })
337
337
  */
338
- reset: (args?: ResetParameters) => Promise<void>
338
+ reset: (args?: ResetParameters | undefined) => Promise<void>
339
339
  /**
340
340
  * Revert the state of the blockchain at the current block.
341
341
  *
@@ -15,11 +15,11 @@ export type TransportConfig<
15
15
  /** The JSON-RPC request function that matches the EIP-1193 request spec. */
16
16
  request: TEIP1193RequestFn
17
17
  /** The base delay (in ms) between retries. */
18
- retryDelay?: number
18
+ retryDelay?: number | undefined
19
19
  /** The max number of times to retry. */
20
- retryCount?: number
20
+ retryCount?: number | undefined
21
21
  /** The timeout (in ms) for requests. */
22
- timeout?: number
22
+ timeout?: number | undefined
23
23
  /** The type of the transport. */
24
24
  type: TType
25
25
  }
@@ -31,14 +31,14 @@ export type Transport<
31
31
  > = <TChain extends Chain | undefined = Chain>({
32
32
  chain,
33
33
  }: {
34
- chain?: TChain
35
- pollingInterval?: ClientConfig['pollingInterval']
36
- retryCount?: TransportConfig['retryCount']
37
- timeout?: TransportConfig['timeout']
34
+ chain?: TChain | undefined
35
+ pollingInterval?: ClientConfig['pollingInterval'] | undefined
36
+ retryCount?: TransportConfig['retryCount'] | undefined
37
+ timeout?: TransportConfig['timeout'] | undefined
38
38
  }) => {
39
39
  config: TransportConfig<TType>
40
40
  request: TEIP1193RequestFn
41
- value?: TRpcAttributes
41
+ value?: TRpcAttributes | undefined
42
42
  }
43
43
 
44
44
  export type CreateTransportErrorType = ErrorType
@@ -59,7 +59,7 @@ export function createTransport<
59
59
  timeout,
60
60
  type,
61
61
  }: TransportConfig<TType>,
62
- value?: TRpcAttributes,
62
+ value?: TRpcAttributes | undefined,
63
63
  ): ReturnType<Transport<TType, TRpcAttributes>> {
64
64
  return {
65
65
  config: { key, name, request, retryCount, retryDelay, timeout, type },
@@ -10,13 +10,13 @@ type EthereumProvider = { request(...args: any): Promise<any> }
10
10
 
11
11
  export type CustomTransportConfig = {
12
12
  /** The key of the transport. */
13
- key?: TransportConfig['key']
13
+ key?: TransportConfig['key'] | undefined
14
14
  /** The name of the transport. */
15
- name?: TransportConfig['name']
15
+ name?: TransportConfig['name'] | undefined
16
16
  /** The max number of times to retry. */
17
- retryCount?: TransportConfig['retryCount']
17
+ retryCount?: TransportConfig['retryCount'] | undefined
18
18
  /** The base delay (in ms) between retries. */
19
- retryDelay?: TransportConfig['retryDelay']
19
+ retryDelay?: TransportConfig['retryDelay'] | undefined
20
20
  }
21
21
 
22
22
  export type CustomTransport = Transport<