viem 2.8.10 → 2.8.12

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 (697) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +0 -12
  3. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  4. package/_cjs/actions/getContract.js.map +1 -1
  5. package/_cjs/actions/public/call.js +5 -1
  6. package/_cjs/actions/public/call.js.map +1 -1
  7. package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
  8. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  9. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  10. package/_cjs/actions/public/watchBlockNumber.js +1 -1
  11. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  12. package/_cjs/actions/public/watchBlocks.js +1 -1
  13. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  14. package/_cjs/actions/public/watchContractEvent.js +73 -58
  15. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  16. package/_cjs/actions/public/watchEvent.js +1 -1
  17. package/_cjs/actions/public/watchEvent.js.map +1 -1
  18. package/_cjs/actions/public/watchPendingTransactions.js +1 -1
  19. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  20. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  21. package/_cjs/chains/celo/parsers.js.map +1 -1
  22. package/_cjs/chains/celo/serializers.js.map +1 -1
  23. package/_cjs/chains/definitions/cronos.js +3 -3
  24. package/_cjs/chains/definitions/cronos.js.map +1 -1
  25. package/_cjs/chains/definitions/lukso.js +6 -0
  26. package/_cjs/chains/definitions/lukso.js.map +1 -1
  27. package/_cjs/chains/definitions/luksoTestnet.js +34 -0
  28. package/_cjs/chains/definitions/luksoTestnet.js.map +1 -0
  29. package/_cjs/chains/definitions/zkSyncInMemoryNode.js +17 -0
  30. package/_cjs/chains/definitions/zkSyncInMemoryNode.js.map +1 -0
  31. package/_cjs/chains/definitions/zkSyncLocalNode.js +17 -0
  32. package/_cjs/chains/definitions/zkSyncLocalNode.js.map +1 -0
  33. package/_cjs/chains/index.js +19 -13
  34. package/_cjs/chains/index.js.map +1 -1
  35. package/_cjs/chains/opStack/actions/getL1BaseFee.js.map +1 -1
  36. package/_cjs/chains/opStack/actions/getTimeToProve.js.map +1 -1
  37. package/_cjs/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
  38. package/_cjs/chains/zksync/formatters.js.map +1 -1
  39. package/_cjs/chains/zksync/serializers.js.map +1 -1
  40. package/_cjs/chains/zksync/utils/assertEip712Request.js.map +1 -1
  41. package/_cjs/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
  42. package/_cjs/chains/zksync/utils/isEip712Transaction.js.map +1 -1
  43. package/_cjs/clients/createClient.js.map +1 -1
  44. package/_cjs/clients/decorators/public.js.map +1 -1
  45. package/_cjs/clients/transports/createTransport.js.map +1 -1
  46. package/_cjs/clients/transports/fallback.js.map +1 -1
  47. package/_cjs/clients/transports/http.js.map +1 -1
  48. package/_cjs/errors/abi.js.map +1 -1
  49. package/_cjs/errors/account.js.map +1 -1
  50. package/_cjs/errors/base.js.map +1 -1
  51. package/_cjs/errors/chain.js.map +1 -1
  52. package/_cjs/errors/contract.js.map +1 -1
  53. package/_cjs/errors/node.js +5 -5
  54. package/_cjs/errors/node.js.map +1 -1
  55. package/_cjs/errors/request.js.map +1 -1
  56. package/_cjs/errors/rpc.js.map +1 -1
  57. package/_cjs/errors/version.js +1 -1
  58. package/_cjs/index.js.map +1 -1
  59. package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
  60. package/_cjs/utils/address/getAddress.js.map +1 -1
  61. package/_cjs/utils/data/isHex.js.map +1 -1
  62. package/_cjs/utils/data/slice.js.map +1 -1
  63. package/_cjs/utils/encoding/toBytes.js.map +1 -1
  64. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  65. package/_cjs/utils/formatters/block.js.map +1 -1
  66. package/_cjs/utils/formatters/extract.js.map +1 -1
  67. package/_cjs/utils/formatters/log.js +1 -1
  68. package/_cjs/utils/formatters/log.js.map +1 -1
  69. package/_cjs/utils/formatters/proof.js.map +1 -1
  70. package/_cjs/utils/formatters/transaction.js.map +1 -1
  71. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  72. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  73. package/_cjs/utils/hash/keccak256.js.map +1 -1
  74. package/_cjs/utils/hash/ripemd160.js.map +1 -1
  75. package/_cjs/utils/hash/sha256.js.map +1 -1
  76. package/_cjs/utils/promise/withRetry.js.map +1 -1
  77. package/_cjs/utils/promise/withTimeout.js +1 -1
  78. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  79. package/_cjs/utils/rpc/http.js +1 -1
  80. package/_cjs/utils/rpc/http.js.map +1 -1
  81. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  82. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  83. package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
  84. package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
  85. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  86. package/_cjs/utils/typedData.js.map +1 -1
  87. package/_esm/accounts/generateMnemonic.js.map +1 -1
  88. package/_esm/actions/getContract.js.map +1 -1
  89. package/_esm/actions/public/call.js +5 -1
  90. package/_esm/actions/public/call.js.map +1 -1
  91. package/_esm/actions/public/createContractEventFilter.js.map +1 -1
  92. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  93. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  94. package/_esm/actions/public/watchBlockNumber.js +1 -1
  95. package/_esm/actions/public/watchBlockNumber.js.map +1 -1
  96. package/_esm/actions/public/watchBlocks.js +1 -1
  97. package/_esm/actions/public/watchBlocks.js.map +1 -1
  98. package/_esm/actions/public/watchContractEvent.js +75 -60
  99. package/_esm/actions/public/watchContractEvent.js.map +1 -1
  100. package/_esm/actions/public/watchEvent.js +1 -1
  101. package/_esm/actions/public/watchEvent.js.map +1 -1
  102. package/_esm/actions/public/watchPendingTransactions.js +1 -1
  103. package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
  104. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  105. package/_esm/chains/celo/parsers.js.map +1 -1
  106. package/_esm/chains/celo/serializers.js.map +1 -1
  107. package/_esm/chains/definitions/cronos.js +3 -3
  108. package/_esm/chains/definitions/cronos.js.map +1 -1
  109. package/_esm/chains/definitions/lukso.js +6 -0
  110. package/_esm/chains/definitions/lukso.js.map +1 -1
  111. package/_esm/chains/definitions/luksoTestnet.js +31 -0
  112. package/_esm/chains/definitions/luksoTestnet.js.map +1 -0
  113. package/_esm/chains/definitions/zkSyncInMemoryNode.js +14 -0
  114. package/_esm/chains/definitions/zkSyncInMemoryNode.js.map +1 -0
  115. package/_esm/chains/definitions/zkSyncLocalNode.js +14 -0
  116. package/_esm/chains/definitions/zkSyncLocalNode.js.map +1 -0
  117. package/_esm/chains/index.js +8 -5
  118. package/_esm/chains/index.js.map +1 -1
  119. package/_esm/chains/opStack/actions/getL1BaseFee.js.map +1 -1
  120. package/_esm/chains/opStack/actions/getTimeToProve.js.map +1 -1
  121. package/_esm/chains/opStack/actions/waitForNextL2Output.js.map +1 -1
  122. package/_esm/chains/opStack/decorators/publicL2.js +2 -2
  123. package/_esm/chains/zksync/formatters.js.map +1 -1
  124. package/_esm/chains/zksync/serializers.js.map +1 -1
  125. package/_esm/chains/zksync/utils/assertEip712Request.js.map +1 -1
  126. package/_esm/chains/zksync/utils/assertEip712Transaction.js.map +1 -1
  127. package/_esm/chains/zksync/utils/isEip712Transaction.js.map +1 -1
  128. package/_esm/clients/createClient.js.map +1 -1
  129. package/_esm/clients/decorators/public.js.map +1 -1
  130. package/_esm/clients/transports/createTransport.js.map +1 -1
  131. package/_esm/clients/transports/fallback.js.map +1 -1
  132. package/_esm/clients/transports/http.js.map +1 -1
  133. package/_esm/errors/abi.js.map +1 -1
  134. package/_esm/errors/account.js.map +1 -1
  135. package/_esm/errors/base.js.map +1 -1
  136. package/_esm/errors/chain.js.map +1 -1
  137. package/_esm/errors/contract.js.map +1 -1
  138. package/_esm/errors/node.js +5 -5
  139. package/_esm/errors/node.js.map +1 -1
  140. package/_esm/errors/request.js.map +1 -1
  141. package/_esm/errors/rpc.js.map +1 -1
  142. package/_esm/errors/version.js +1 -1
  143. package/_esm/index.js.map +1 -1
  144. package/_esm/utils/abi/formatAbiItem.js.map +1 -1
  145. package/_esm/utils/address/getAddress.js.map +1 -1
  146. package/_esm/utils/data/isHex.js.map +1 -1
  147. package/_esm/utils/data/slice.js.map +1 -1
  148. package/_esm/utils/encoding/toBytes.js.map +1 -1
  149. package/_esm/utils/errors/getNodeError.js.map +1 -1
  150. package/_esm/utils/formatters/block.js.map +1 -1
  151. package/_esm/utils/formatters/extract.js.map +1 -1
  152. package/_esm/utils/formatters/log.js +1 -1
  153. package/_esm/utils/formatters/log.js.map +1 -1
  154. package/_esm/utils/formatters/proof.js.map +1 -1
  155. package/_esm/utils/formatters/transaction.js.map +1 -1
  156. package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
  157. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  158. package/_esm/utils/hash/keccak256.js.map +1 -1
  159. package/_esm/utils/hash/ripemd160.js.map +1 -1
  160. package/_esm/utils/hash/sha256.js.map +1 -1
  161. package/_esm/utils/promise/withRetry.js.map +1 -1
  162. package/_esm/utils/promise/withTimeout.js +1 -1
  163. package/_esm/utils/promise/withTimeout.js.map +1 -1
  164. package/_esm/utils/rpc/http.js +1 -1
  165. package/_esm/utils/rpc/http.js.map +1 -1
  166. package/_esm/utils/signature/hashMessage.js.map +1 -1
  167. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  168. package/_esm/utils/transaction/getTransactionType.js.map +1 -1
  169. package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
  170. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  171. package/_esm/utils/typedData.js.map +1 -1
  172. package/_types/accounts/generateMnemonic.d.ts +1 -1
  173. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  174. package/_types/accounts/types.d.ts +9 -9
  175. package/_types/accounts/types.d.ts.map +1 -1
  176. package/_types/accounts/utils/signTransaction.d.ts +1 -1
  177. package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
  178. package/_types/actions/ens/getEnsAddress.d.ts +4 -4
  179. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  180. package/_types/actions/ens/getEnsAvatar.d.ts +1 -1
  181. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  182. package/_types/actions/ens/getEnsName.d.ts +3 -3
  183. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  184. package/_types/actions/ens/getEnsResolver.d.ts +1 -1
  185. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  186. package/_types/actions/ens/getEnsText.d.ts +3 -3
  187. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  188. package/_types/actions/getContract.d.ts +3 -3
  189. package/_types/actions/getContract.d.ts.map +1 -1
  190. package/_types/actions/public/call.d.ts +8 -8
  191. package/_types/actions/public/call.d.ts.map +1 -1
  192. package/_types/actions/public/createContractEventFilter.d.ts +6 -6
  193. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
  194. package/_types/actions/public/createEventFilter.d.ts +21 -21
  195. package/_types/actions/public/createEventFilter.d.ts.map +1 -1
  196. package/_types/actions/public/estimateFeesPerGas.d.ts +4 -4
  197. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
  198. package/_types/actions/public/estimateGas.d.ts +5 -5
  199. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  200. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +3 -3
  201. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  202. package/_types/actions/public/getBalance.d.ts +4 -4
  203. package/_types/actions/public/getBalance.d.ts.map +1 -1
  204. package/_types/actions/public/getBlock.d.ts +10 -10
  205. package/_types/actions/public/getBlock.d.ts.map +1 -1
  206. package/_types/actions/public/getBlockNumber.d.ts +1 -1
  207. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  208. package/_types/actions/public/getBlockTransactionCount.d.ts +9 -9
  209. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  210. package/_types/actions/public/getBytecode.d.ts +4 -4
  211. package/_types/actions/public/getBytecode.d.ts.map +1 -1
  212. package/_types/actions/public/getContractEvents.d.ts +4 -4
  213. package/_types/actions/public/getContractEvents.d.ts.map +1 -1
  214. package/_types/actions/public/getFeeHistory.d.ts +4 -4
  215. package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
  216. package/_types/actions/public/getLogs.d.ts +17 -17
  217. package/_types/actions/public/getLogs.d.ts.map +1 -1
  218. package/_types/actions/public/getProof.d.ts +4 -4
  219. package/_types/actions/public/getProof.d.ts.map +1 -1
  220. package/_types/actions/public/getStorageAt.d.ts +4 -4
  221. package/_types/actions/public/getStorageAt.d.ts.map +1 -1
  222. package/_types/actions/public/getTransaction.d.ts +13 -13
  223. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  224. package/_types/actions/public/getTransactionConfirmations.d.ts +2 -2
  225. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  226. package/_types/actions/public/getTransactionCount.d.ts +4 -4
  227. package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
  228. package/_types/actions/public/simulateContract.d.ts +3 -3
  229. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  230. package/_types/actions/public/waitForTransactionReceipt.d.ts +6 -6
  231. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  232. package/_types/actions/public/watchBlockNumber.d.ts +1 -1
  233. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  234. package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
  235. package/_types/actions/public/watchEvent.d.ts +13 -13
  236. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  237. package/_types/actions/public/watchPendingTransactions.d.ts +1 -1
  238. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  239. package/_types/actions/test/mine.d.ts +1 -1
  240. package/_types/actions/test/mine.d.ts.map +1 -1
  241. package/_types/actions/test/reset.d.ts +2 -2
  242. package/_types/actions/test/reset.d.ts.map +1 -1
  243. package/_types/actions/wallet/prepareTransactionRequest.d.ts +5 -5
  244. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  245. package/_types/actions/wallet/writeContract.d.ts +1 -1
  246. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  247. package/_types/chains/celo/chainConfig.d.ts +312 -312
  248. package/_types/chains/celo/formatters.d.ts +312 -312
  249. package/_types/chains/celo/parsers.d.ts.map +1 -1
  250. package/_types/chains/celo/serializers.d.ts +1 -1
  251. package/_types/chains/celo/serializers.d.ts.map +1 -1
  252. package/_types/chains/celo/types.d.ts +39 -39
  253. package/_types/chains/celo/types.d.ts.map +1 -1
  254. package/_types/chains/definitions/ancient8.d.ts +217 -217
  255. package/_types/chains/definitions/ancient8Sepolia.d.ts +217 -217
  256. package/_types/chains/definitions/base.d.ts +217 -217
  257. package/_types/chains/definitions/baseGoerli.d.ts +217 -217
  258. package/_types/chains/definitions/baseSepolia.d.ts +217 -217
  259. package/_types/chains/definitions/celo.d.ts +312 -312
  260. package/_types/chains/definitions/celoAlfajores.d.ts +312 -312
  261. package/_types/chains/definitions/cronos.d.ts +3 -3
  262. package/_types/chains/definitions/fraxtal.d.ts +217 -217
  263. package/_types/chains/definitions/fraxtalTestnet.d.ts +217 -217
  264. package/_types/chains/definitions/liskSepolia.d.ts +217 -217
  265. package/_types/chains/definitions/lukso.d.ts +6 -8
  266. package/_types/chains/definitions/lukso.d.ts.map +1 -1
  267. package/_types/chains/definitions/luksoTestnet.d.ts +35 -0
  268. package/_types/chains/definitions/luksoTestnet.d.ts.map +1 -0
  269. package/_types/chains/definitions/optimism.d.ts +217 -217
  270. package/_types/chains/definitions/optimismGoerli.d.ts +217 -217
  271. package/_types/chains/definitions/optimismSepolia.d.ts +217 -217
  272. package/_types/chains/definitions/pgn.d.ts +217 -217
  273. package/_types/chains/definitions/pgnTestnet.d.ts +217 -217
  274. package/_types/chains/definitions/rss3.d.ts +217 -217
  275. package/_types/chains/definitions/rss3Sepolia.d.ts +217 -217
  276. package/_types/chains/definitions/zkSync.d.ts +33 -33
  277. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +42 -0
  278. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts.map +1 -0
  279. package/_types/chains/definitions/zkSyncLocalNode.d.ts +42 -0
  280. package/_types/chains/definitions/zkSyncLocalNode.d.ts.map +1 -0
  281. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +33 -33
  282. package/_types/chains/definitions/zkSyncTestnet.d.ts +33 -33
  283. package/_types/chains/definitions/zora.d.ts +217 -217
  284. package/_types/chains/definitions/zoraSepolia.d.ts +217 -217
  285. package/_types/chains/definitions/zoraTestnet.d.ts +217 -217
  286. package/_types/chains/index.d.ts +9 -6
  287. package/_types/chains/index.d.ts.map +1 -1
  288. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +7 -7
  289. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +1 -1
  290. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +3 -3
  291. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts.map +1 -1
  292. package/_types/chains/opStack/actions/depositTransaction.d.ts +1 -1
  293. package/_types/chains/opStack/actions/depositTransaction.d.ts.map +1 -1
  294. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +1 -1
  295. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
  296. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
  297. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
  298. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
  299. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
  300. package/_types/chains/opStack/actions/estimateL1Fee.d.ts +1 -1
  301. package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -1
  302. package/_types/chains/opStack/actions/estimateL1Gas.d.ts +1 -1
  303. package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -1
  304. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +1 -1
  305. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
  306. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +1 -1
  307. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts.map +1 -1
  308. package/_types/chains/opStack/actions/getL1BaseFee.d.ts +2 -2
  309. package/_types/chains/opStack/actions/getL1BaseFee.d.ts.map +1 -1
  310. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +2 -2
  311. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts.map +1 -1
  312. package/_types/chains/opStack/actions/getTimeToProve.d.ts +1 -1
  313. package/_types/chains/opStack/actions/getTimeToProve.d.ts.map +1 -1
  314. package/_types/chains/opStack/actions/proveWithdrawal.d.ts +1 -1
  315. package/_types/chains/opStack/actions/proveWithdrawal.d.ts.map +1 -1
  316. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +2 -2
  317. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts.map +1 -1
  318. package/_types/chains/opStack/actions/waitToProve.d.ts +1 -1
  319. package/_types/chains/opStack/actions/waitToProve.d.ts.map +1 -1
  320. package/_types/chains/opStack/chainConfig.d.ts +217 -217
  321. package/_types/chains/opStack/decorators/publicL2.d.ts +3 -3
  322. package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -1
  323. package/_types/chains/opStack/formatters.d.ts +217 -217
  324. package/_types/chains/opStack/types/deposit.d.ts +6 -6
  325. package/_types/chains/opStack/types/deposit.d.ts.map +1 -1
  326. package/_types/chains/opStack/types/transaction.d.ts +4 -4
  327. package/_types/chains/opStack/types/transaction.d.ts.map +1 -1
  328. package/_types/chains/opStack/types/withdrawal.d.ts +2 -2
  329. package/_types/chains/opStack/types/withdrawal.d.ts.map +1 -1
  330. package/_types/chains/zksync/chainConfig.d.ts +33 -33
  331. package/_types/chains/zksync/formatters.d.ts +33 -33
  332. package/_types/chains/zksync/serializers.d.ts +1 -1
  333. package/_types/chains/zksync/serializers.d.ts.map +1 -1
  334. package/_types/chains/zksync/types/eip712.d.ts +4 -4
  335. package/_types/chains/zksync/types/eip712.d.ts.map +1 -1
  336. package/_types/chains/zksync/types/transaction.d.ts +21 -21
  337. package/_types/chains/zksync/types/transaction.d.ts.map +1 -1
  338. package/_types/chains/zksync/utils/assertEip712Request.d.ts +2 -1
  339. package/_types/chains/zksync/utils/assertEip712Request.d.ts.map +1 -1
  340. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts +2 -1
  341. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts.map +1 -1
  342. package/_types/chains/zksync/utils/isEip712Transaction.d.ts +2 -1
  343. package/_types/chains/zksync/utils/isEip712Transaction.d.ts.map +1 -1
  344. package/_types/clients/createClient.d.ts +2 -2
  345. package/_types/clients/createClient.d.ts.map +1 -1
  346. package/_types/clients/decorators/public.d.ts +7 -7
  347. package/_types/clients/decorators/public.d.ts.map +1 -1
  348. package/_types/clients/decorators/test.d.ts +1 -1
  349. package/_types/clients/decorators/test.d.ts.map +1 -1
  350. package/_types/clients/transports/createTransport.d.ts +9 -9
  351. package/_types/clients/transports/createTransport.d.ts.map +1 -1
  352. package/_types/clients/transports/custom.d.ts +4 -4
  353. package/_types/clients/transports/custom.d.ts.map +1 -1
  354. package/_types/clients/transports/fallback.d.ts +17 -17
  355. package/_types/clients/transports/fallback.d.ts.map +1 -1
  356. package/_types/clients/transports/http.d.ts +13 -13
  357. package/_types/clients/transports/http.d.ts.map +1 -1
  358. package/_types/clients/transports/ipc.d.ts +6 -6
  359. package/_types/clients/transports/ipc.d.ts.map +1 -1
  360. package/_types/clients/transports/webSocket.d.ts +6 -6
  361. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  362. package/_types/errors/abi.d.ts +6 -6
  363. package/_types/errors/abi.d.ts.map +1 -1
  364. package/_types/errors/account.d.ts +1 -1
  365. package/_types/errors/account.d.ts.map +1 -1
  366. package/_types/errors/base.d.ts +9 -9
  367. package/_types/errors/base.d.ts.map +1 -1
  368. package/_types/errors/block.d.ts +2 -2
  369. package/_types/errors/block.d.ts.map +1 -1
  370. package/_types/errors/chain.d.ts +3 -3
  371. package/_types/errors/chain.d.ts.map +1 -1
  372. package/_types/errors/contract.d.ts +20 -20
  373. package/_types/errors/contract.d.ts.map +1 -1
  374. package/_types/errors/encoding.d.ts +3 -3
  375. package/_types/errors/encoding.d.ts.map +1 -1
  376. package/_types/errors/estimateGas.d.ts +3 -3
  377. package/_types/errors/estimateGas.d.ts.map +1 -1
  378. package/_types/errors/node.d.ts +27 -27
  379. package/_types/errors/node.d.ts.map +1 -1
  380. package/_types/errors/request.d.ts +7 -7
  381. package/_types/errors/request.d.ts.map +1 -1
  382. package/_types/errors/rpc.d.ts +5 -5
  383. package/_types/errors/rpc.d.ts.map +1 -1
  384. package/_types/errors/transaction.d.ts +7 -7
  385. package/_types/errors/transaction.d.ts.map +1 -1
  386. package/_types/errors/version.d.ts +1 -1
  387. package/_types/index.d.ts +1 -1
  388. package/_types/index.d.ts.map +1 -1
  389. package/_types/types/block.d.ts +3 -3
  390. package/_types/types/block.d.ts.map +1 -1
  391. package/_types/types/chain.d.ts +1 -1
  392. package/_types/types/chain.d.ts.map +1 -1
  393. package/_types/types/contract.d.ts +5 -5
  394. package/_types/types/contract.d.ts.map +1 -1
  395. package/_types/types/eip1193.d.ts +29 -29
  396. package/_types/types/eip1193.d.ts.map +1 -1
  397. package/_types/types/ens.d.ts +1 -1
  398. package/_types/types/ens.d.ts.map +1 -1
  399. package/_types/types/fee.d.ts +6 -6
  400. package/_types/types/fee.d.ts.map +1 -1
  401. package/_types/types/filter.d.ts +9 -9
  402. package/_types/types/filter.d.ts.map +1 -1
  403. package/_types/types/kzg.d.ts +1 -1
  404. package/_types/types/kzg.d.ts.map +1 -1
  405. package/_types/types/misc.d.ts +2 -2
  406. package/_types/types/misc.d.ts.map +1 -1
  407. package/_types/types/rpc.d.ts +16 -16
  408. package/_types/types/rpc.d.ts.map +1 -1
  409. package/_types/types/stateOverride.d.ts +5 -5
  410. package/_types/types/stateOverride.d.ts.map +1 -1
  411. package/_types/types/transaction.d.ts +56 -56
  412. package/_types/types/transaction.d.ts.map +1 -1
  413. package/_types/types/typedData.d.ts +1 -1
  414. package/_types/types/typedData.d.ts.map +1 -1
  415. package/_types/types/utils.d.ts +6 -3
  416. package/_types/types/utils.d.ts.map +1 -1
  417. package/_types/types/window.d.ts +1 -1
  418. package/_types/types/window.d.ts.map +1 -1
  419. package/_types/utils/abi/decodeEventLog.d.ts +1 -1
  420. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  421. package/_types/utils/abi/decodeFunctionResult.d.ts +2 -2
  422. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  423. package/_types/utils/abi/encodeErrorResult.d.ts +2 -2
  424. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
  425. package/_types/utils/abi/encodeEventTopics.d.ts +2 -2
  426. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
  427. package/_types/utils/abi/encodeFunctionData.d.ts +2 -2
  428. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
  429. package/_types/utils/abi/encodeFunctionResult.d.ts +2 -2
  430. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
  431. package/_types/utils/abi/formatAbiItem.d.ts +2 -2
  432. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
  433. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -2
  434. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
  435. package/_types/utils/address/getAddress.d.ts +1 -1
  436. package/_types/utils/address/getAddress.d.ts.map +1 -1
  437. package/_types/utils/address/getContractAddress.d.ts +1 -1
  438. package/_types/utils/address/getContractAddress.d.ts.map +1 -1
  439. package/_types/utils/address/isAddress.d.ts +1 -1
  440. package/_types/utils/address/isAddress.d.ts.map +1 -1
  441. package/_types/utils/blob/commitmentToVersionedHash.d.ts +1 -1
  442. package/_types/utils/blob/commitmentToVersionedHash.d.ts.map +1 -1
  443. package/_types/utils/blob/commitmentsToVersionedHashes.d.ts +1 -1
  444. package/_types/utils/blob/commitmentsToVersionedHashes.d.ts.map +1 -1
  445. package/_types/utils/blob/sidecarsToVersionedHashes.d.ts +1 -1
  446. package/_types/utils/blob/sidecarsToVersionedHashes.d.ts.map +1 -1
  447. package/_types/utils/chain/assertCurrentChain.d.ts +1 -1
  448. package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -1
  449. package/_types/utils/chain/getChainContractAddress.d.ts +1 -1
  450. package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -1
  451. package/_types/utils/cursor.d.ts +1 -1
  452. package/_types/utils/cursor.d.ts.map +1 -1
  453. package/_types/utils/data/isHex.d.ts +1 -1
  454. package/_types/utils/data/isHex.d.ts.map +1 -1
  455. package/_types/utils/data/pad.d.ts +2 -2
  456. package/_types/utils/data/pad.d.ts.map +1 -1
  457. package/_types/utils/data/slice.d.ts +6 -6
  458. package/_types/utils/data/slice.d.ts.map +1 -1
  459. package/_types/utils/data/trim.d.ts +1 -1
  460. package/_types/utils/data/trim.d.ts.map +1 -1
  461. package/_types/utils/encoding/fromBytes.d.ts +5 -5
  462. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  463. package/_types/utils/encoding/fromHex.d.ts +5 -5
  464. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  465. package/_types/utils/encoding/toBytes.d.ts +5 -5
  466. package/_types/utils/encoding/toBytes.d.ts.map +1 -1
  467. package/_types/utils/encoding/toHex.d.ts +7 -7
  468. package/_types/utils/encoding/toHex.d.ts.map +1 -1
  469. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +1 -1
  470. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  471. package/_types/utils/errors/getCallError.d.ts +2 -2
  472. package/_types/utils/errors/getCallError.d.ts.map +1 -1
  473. package/_types/utils/errors/getContractError.d.ts +3 -3
  474. package/_types/utils/errors/getContractError.d.ts.map +1 -1
  475. package/_types/utils/errors/getEstimateGasError.d.ts +3 -3
  476. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
  477. package/_types/utils/errors/getNodeError.d.ts +2 -1
  478. package/_types/utils/errors/getNodeError.d.ts.map +1 -1
  479. package/_types/utils/errors/getTransactionError.d.ts +2 -2
  480. package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
  481. package/_types/utils/formatters/block.d.ts +3 -3
  482. package/_types/utils/formatters/block.d.ts.map +1 -1
  483. package/_types/utils/formatters/extract.d.ts +1 -1
  484. package/_types/utils/formatters/extract.d.ts.map +1 -1
  485. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  486. package/_types/utils/formatters/log.d.ts +4 -3
  487. package/_types/utils/formatters/log.d.ts.map +1 -1
  488. package/_types/utils/formatters/proof.d.ts +2 -1
  489. package/_types/utils/formatters/proof.d.ts.map +1 -1
  490. package/_types/utils/formatters/transaction.d.ts +3 -3
  491. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  492. package/_types/utils/formatters/transactionReceipt.d.ts +3 -2
  493. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  494. package/_types/utils/formatters/transactionRequest.d.ts +3 -2
  495. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  496. package/_types/utils/hash/keccak256.d.ts +1 -1
  497. package/_types/utils/hash/keccak256.d.ts.map +1 -1
  498. package/_types/utils/hash/ripemd160.d.ts +1 -1
  499. package/_types/utils/hash/ripemd160.d.ts.map +1 -1
  500. package/_types/utils/hash/sha256.d.ts +1 -1
  501. package/_types/utils/hash/sha256.d.ts.map +1 -1
  502. package/_types/utils/poll.d.ts +2 -2
  503. package/_types/utils/poll.d.ts.map +1 -1
  504. package/_types/utils/promise/createBatchScheduler.d.ts +4 -4
  505. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  506. package/_types/utils/promise/withCache.d.ts +1 -1
  507. package/_types/utils/promise/withCache.d.ts.map +1 -1
  508. package/_types/utils/promise/withRetry.d.ts +4 -4
  509. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  510. package/_types/utils/promise/withTimeout.d.ts +4 -4
  511. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  512. package/_types/utils/rpc/http.d.ts +6 -6
  513. package/_types/utils/rpc/http.d.ts.map +1 -1
  514. package/_types/utils/rpc/socket.d.ts +2 -2
  515. package/_types/utils/rpc/socket.d.ts.map +1 -1
  516. package/_types/utils/signature/hashMessage.d.ts +1 -1
  517. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  518. package/_types/utils/transaction/assertRequest.d.ts +2 -1
  519. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  520. package/_types/utils/transaction/getTransactionType.d.ts +4 -4
  521. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
  522. package/_types/utils/transaction/serializeAccessList.d.ts +1 -1
  523. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
  524. package/_types/utils/transaction/serializeTransaction.d.ts +2 -2
  525. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  526. package/_types/utils/typedData.d.ts +1 -1
  527. package/_types/utils/typedData.d.ts.map +1 -1
  528. package/accounts/generateMnemonic.ts +1 -1
  529. package/accounts/types.ts +12 -10
  530. package/accounts/utils/signTransaction.ts +1 -1
  531. package/actions/ens/getEnsAddress.ts +4 -4
  532. package/actions/ens/getEnsAvatar.ts +1 -1
  533. package/actions/ens/getEnsName.ts +3 -3
  534. package/actions/ens/getEnsResolver.ts +1 -1
  535. package/actions/ens/getEnsText.ts +3 -3
  536. package/actions/getContract.ts +3 -3
  537. package/actions/public/call.ts +16 -12
  538. package/actions/public/createContractEventFilter.ts +9 -6
  539. package/actions/public/createEventFilter.ts +21 -21
  540. package/actions/public/estimateFeesPerGas.ts +4 -4
  541. package/actions/public/estimateGas.ts +5 -5
  542. package/actions/public/estimateMaxPriorityFeePerGas.ts +11 -7
  543. package/actions/public/getBalance.ts +4 -4
  544. package/actions/public/getBlock.ts +10 -10
  545. package/actions/public/getBlockNumber.ts +1 -1
  546. package/actions/public/getBlockTransactionCount.ts +9 -9
  547. package/actions/public/getBytecode.ts +4 -4
  548. package/actions/public/getContractEvents.ts +4 -4
  549. package/actions/public/getFeeHistory.ts +4 -4
  550. package/actions/public/getLogs.ts +17 -17
  551. package/actions/public/getProof.ts +4 -4
  552. package/actions/public/getStorageAt.ts +4 -4
  553. package/actions/public/getTransaction.ts +13 -13
  554. package/actions/public/getTransactionConfirmations.ts +2 -2
  555. package/actions/public/getTransactionCount.ts +4 -4
  556. package/actions/public/simulateContract.ts +3 -3
  557. package/actions/public/waitForTransactionReceipt.ts +6 -6
  558. package/actions/public/watchBlockNumber.ts +2 -2
  559. package/actions/public/watchBlocks.ts +1 -1
  560. package/actions/public/watchContractEvent.ts +75 -59
  561. package/actions/public/watchEvent.ts +14 -14
  562. package/actions/public/watchPendingTransactions.ts +2 -2
  563. package/actions/test/mine.ts +1 -1
  564. package/actions/test/reset.ts +2 -2
  565. package/actions/wallet/prepareTransactionRequest.ts +5 -4
  566. package/actions/wallet/writeContract.ts +1 -1
  567. package/chains/celo/parsers.ts +3 -2
  568. package/chains/celo/serializers.ts +3 -3
  569. package/chains/celo/types.ts +37 -37
  570. package/chains/definitions/cronos.ts +3 -3
  571. package/chains/definitions/lukso.ts +6 -0
  572. package/chains/definitions/luksoTestnet.ts +31 -0
  573. package/chains/definitions/zkSyncInMemoryNode.ts +14 -0
  574. package/chains/definitions/zkSyncLocalNode.ts +14 -0
  575. package/chains/index.ts +16 -6
  576. package/chains/opStack/actions/buildDepositTransaction.ts +7 -7
  577. package/chains/opStack/actions/buildInitiateWithdrawal.ts +3 -3
  578. package/chains/opStack/actions/depositTransaction.ts +1 -1
  579. package/chains/opStack/actions/estimateDepositTransactionGas.ts +1 -1
  580. package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
  581. package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +1 -1
  582. package/chains/opStack/actions/estimateL1Fee.ts +1 -1
  583. package/chains/opStack/actions/estimateL1Gas.ts +1 -1
  584. package/chains/opStack/actions/estimateProveWithdrawalGas.ts +1 -1
  585. package/chains/opStack/actions/finalizeWithdrawal.ts +1 -1
  586. package/chains/opStack/actions/getL1BaseFee.ts +2 -2
  587. package/chains/opStack/actions/getTimeToNextL2Output.ts +2 -2
  588. package/chains/opStack/actions/getTimeToProve.ts +3 -1
  589. package/chains/opStack/actions/proveWithdrawal.ts +1 -1
  590. package/chains/opStack/actions/waitForNextL2Output.ts +4 -2
  591. package/chains/opStack/actions/waitToProve.ts +1 -1
  592. package/chains/opStack/decorators/publicL2.ts +3 -3
  593. package/chains/opStack/types/deposit.ts +6 -6
  594. package/chains/opStack/types/transaction.ts +4 -4
  595. package/chains/opStack/types/withdrawal.ts +2 -2
  596. package/chains/zksync/formatters.ts +1 -1
  597. package/chains/zksync/serializers.ts +1 -1
  598. package/chains/zksync/types/eip712.ts +4 -4
  599. package/chains/zksync/types/transaction.ts +21 -21
  600. package/chains/zksync/utils/assertEip712Request.ts +2 -1
  601. package/chains/zksync/utils/assertEip712Transaction.ts +2 -1
  602. package/chains/zksync/utils/isEip712Transaction.ts +2 -1
  603. package/clients/createClient.ts +3 -3
  604. package/clients/decorators/public.ts +23 -21
  605. package/clients/decorators/test.ts +1 -1
  606. package/clients/transports/createTransport.ts +9 -9
  607. package/clients/transports/custom.ts +4 -4
  608. package/clients/transports/fallback.ts +28 -26
  609. package/clients/transports/http.ts +13 -13
  610. package/clients/transports/ipc.ts +6 -6
  611. package/clients/transports/webSocket.ts +6 -6
  612. package/errors/abi.ts +12 -3
  613. package/errors/account.ts +1 -1
  614. package/errors/base.ts +13 -10
  615. package/errors/block.ts +2 -2
  616. package/errors/chain.ts +3 -3
  617. package/errors/contract.ts +26 -15
  618. package/errors/encoding.ts +3 -3
  619. package/errors/estimateGas.ts +3 -3
  620. package/errors/node.ts +35 -14
  621. package/errors/request.ts +7 -7
  622. package/errors/rpc.ts +5 -5
  623. package/errors/transaction.ts +7 -7
  624. package/errors/version.ts +1 -1
  625. package/index.ts +2 -0
  626. package/package.json +1 -1
  627. package/types/block.ts +3 -3
  628. package/types/chain.ts +1 -1
  629. package/types/contract.ts +7 -5
  630. package/types/eip1193.ts +42 -38
  631. package/types/ens.ts +1 -1
  632. package/types/fee.ts +6 -6
  633. package/types/filter.ts +9 -9
  634. package/types/kzg.ts +1 -1
  635. package/types/misc.ts +2 -2
  636. package/types/rpc.ts +16 -16
  637. package/types/stateOverride.ts +5 -5
  638. package/types/transaction.ts +63 -56
  639. package/types/typedData.ts +1 -1
  640. package/types/utils.ts +9 -3
  641. package/types/window.ts +1 -1
  642. package/utils/abi/decodeEventLog.ts +1 -1
  643. package/utils/abi/decodeFunctionResult.ts +2 -2
  644. package/utils/abi/encodeErrorResult.ts +2 -2
  645. package/utils/abi/encodeEventTopics.ts +2 -2
  646. package/utils/abi/encodeFunctionData.ts +2 -2
  647. package/utils/abi/encodeFunctionResult.ts +2 -2
  648. package/utils/abi/formatAbiItem.ts +2 -2
  649. package/utils/abi/formatAbiItemWithArgs.ts +2 -2
  650. package/utils/address/getAddress.ts +4 -1
  651. package/utils/address/getContractAddress.ts +1 -1
  652. package/utils/address/isAddress.ts +1 -1
  653. package/utils/blob/commitmentToVersionedHash.ts +1 -1
  654. package/utils/blob/commitmentsToVersionedHashes.ts +1 -1
  655. package/utils/blob/sidecarsToVersionedHashes.ts +1 -1
  656. package/utils/chain/assertCurrentChain.ts +1 -1
  657. package/utils/chain/getChainContractAddress.ts +1 -1
  658. package/utils/cursor.ts +1 -1
  659. package/utils/data/isHex.ts +1 -1
  660. package/utils/data/pad.ts +2 -2
  661. package/utils/data/slice.ts +15 -11
  662. package/utils/data/trim.ts +1 -1
  663. package/utils/encoding/fromBytes.ts +5 -5
  664. package/utils/encoding/fromHex.ts +5 -5
  665. package/utils/encoding/toBytes.ts +8 -5
  666. package/utils/encoding/toHex.ts +7 -7
  667. package/utils/ens/avatar/parseAvatarRecord.ts +2 -2
  668. package/utils/errors/getCallError.ts +2 -2
  669. package/utils/errors/getContractError.ts +3 -3
  670. package/utils/errors/getEstimateGasError.ts +3 -3
  671. package/utils/errors/getNodeError.ts +4 -1
  672. package/utils/errors/getTransactionError.ts +2 -2
  673. package/utils/formatters/block.ts +2 -2
  674. package/utils/formatters/extract.ts +1 -1
  675. package/utils/formatters/formatter.ts +1 -1
  676. package/utils/formatters/log.ts +6 -2
  677. package/utils/formatters/proof.ts +2 -1
  678. package/utils/formatters/transaction.ts +2 -2
  679. package/utils/formatters/transactionReceipt.ts +2 -1
  680. package/utils/formatters/transactionRequest.ts +4 -1
  681. package/utils/hash/keccak256.ts +1 -1
  682. package/utils/hash/ripemd160.ts +1 -1
  683. package/utils/hash/sha256.ts +1 -1
  684. package/utils/poll.ts +2 -2
  685. package/utils/promise/createBatchScheduler.ts +6 -6
  686. package/utils/promise/withCache.ts +1 -1
  687. package/utils/promise/withRetry.ts +14 -9
  688. package/utils/promise/withTimeout.ts +6 -4
  689. package/utils/rpc/http.ts +7 -7
  690. package/utils/rpc/socket.ts +2 -2
  691. package/utils/signature/hashMessage.ts +1 -1
  692. package/utils/transaction/assertRequest.ts +4 -1
  693. package/utils/transaction/getTransactionType.ts +10 -4
  694. package/utils/transaction/parseTransaction.ts +1 -1
  695. package/utils/transaction/serializeAccessList.ts +1 -1
  696. package/utils/transaction/serializeTransaction.ts +6 -6
  697. package/utils/typedData.ts +1 -1
@@ -32,7 +32,7 @@ export declare const zkSync: {
32
32
  formatters: {
33
33
  readonly block: {
34
34
  exclude: [] | undefined;
35
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcBlock>, import("../index.js").ZkSyncRpcBlockOverrides & {
35
+ format: (args: import("../index.js").Assign<import("../../index.js").ExactPartial<import("../../index.js").RpcBlock>, import("../index.js").ZkSyncRpcBlockOverrides & {
36
36
  transactions: `0x${string}`[] | import("../index.js").ZkSyncRpcTransaction[];
37
37
  }>) => {
38
38
  baseFeePerGas: bigint | null;
@@ -68,7 +68,7 @@ export declare const zkSync: {
68
68
  };
69
69
  readonly transaction: {
70
70
  exclude: [] | undefined;
71
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransaction>, import("../index.js").ZkSyncRpcTransaction>) => ({
71
+ format: (args: import("../index.js").Assign<import("../../index.js").ExactPartial<import("../../index.js").RpcTransaction>, import("../index.js").ZkSyncRpcTransaction>) => ({
72
72
  r: `0x${string}`;
73
73
  s: `0x${string}`;
74
74
  v: bigint;
@@ -437,12 +437,12 @@ export declare const zkSync: {
437
437
  };
438
438
  readonly transactionReceipt: {
439
439
  exclude: [] | undefined;
440
- format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransactionReceipt>, import("../index.js").ZkSyncRpcTransactionReceiptOverrides>) => {
440
+ format: (args: import("../index.js").Assign<import("../../index.js").ExactPartial<import("../../index.js").RpcTransactionReceipt>, import("../index.js").ZkSyncRpcTransactionReceiptOverrides>) => {
441
441
  blobGasPrice?: bigint | undefined;
442
442
  blobGasUsed?: bigint | undefined;
443
443
  blockHash: `0x${string}`;
444
444
  blockNumber: bigint;
445
- contractAddress: `0x${string}` | null;
445
+ contractAddress: `0x${string}` | null | undefined;
446
446
  cumulativeGasUsed: bigint;
447
447
  effectiveGasPrice: bigint;
448
448
  from: `0x${string}`;
@@ -465,7 +465,7 @@ export declare const zkSync: {
465
465
  exclude: ("gasPerPubdata" | "paymaster" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
466
466
  format: (args: ({
467
467
  data?: `0x${string}` | undefined;
468
- from?: `0x${string}` | undefined;
468
+ from?: `0x${string}`;
469
469
  gas?: bigint | undefined;
470
470
  nonce?: number | undefined;
471
471
  to?: `0x${string}` | null | undefined;
@@ -499,7 +499,7 @@ export declare const zkSync: {
499
499
  factoryDeps?: undefined;
500
500
  }) | ({
501
501
  data?: `0x${string}` | undefined;
502
- from?: `0x${string}` | undefined;
502
+ from?: `0x${string}`;
503
503
  gas?: bigint | undefined;
504
504
  nonce?: number | undefined;
505
505
  to?: `0x${string}` | null | undefined;
@@ -533,7 +533,7 @@ export declare const zkSync: {
533
533
  factoryDeps?: undefined;
534
534
  }) | ({
535
535
  data?: `0x${string}` | undefined;
536
- from?: `0x${string}` | undefined;
536
+ from?: `0x${string}`;
537
537
  gas?: bigint | undefined;
538
538
  nonce?: number | undefined;
539
539
  to?: `0x${string}` | null | undefined;
@@ -567,7 +567,7 @@ export declare const zkSync: {
567
567
  factoryDeps?: undefined;
568
568
  }) | ({
569
569
  data?: `0x${string}` | undefined;
570
- from?: `0x${string}` | undefined;
570
+ from?: `0x${string}`;
571
571
  gas?: bigint | undefined;
572
572
  nonce?: number | undefined;
573
573
  to?: `0x${string}` | null | undefined;
@@ -579,7 +579,7 @@ export declare const zkSync: {
579
579
  accessList?: undefined;
580
580
  blobs?: undefined;
581
581
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
582
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
582
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
583
583
  gasPerPubdata?: bigint | undefined;
584
584
  customSignature?: `0x${string}` | undefined;
585
585
  factoryDeps?: `0x${string}`[] | undefined;
@@ -589,7 +589,7 @@ export declare const zkSync: {
589
589
  paymasterInput: `0x${string}`;
590
590
  }) | ({
591
591
  data?: `0x${string}` | undefined;
592
- from?: `0x${string}` | undefined;
592
+ from?: `0x${string}`;
593
593
  gas?: bigint | undefined;
594
594
  nonce?: number | undefined;
595
595
  to?: `0x${string}` | null | undefined;
@@ -601,7 +601,7 @@ export declare const zkSync: {
601
601
  accessList?: undefined;
602
602
  blobs?: undefined;
603
603
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
604
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
604
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
605
605
  gasPerPubdata?: bigint | undefined;
606
606
  customSignature?: `0x${string}` | undefined;
607
607
  factoryDeps?: `0x${string}`[] | undefined;
@@ -611,7 +611,7 @@ export declare const zkSync: {
611
611
  paymasterInput?: undefined;
612
612
  }) | ({
613
613
  data?: `0x${string}` | undefined;
614
- from?: `0x${string}` | undefined;
614
+ from?: `0x${string}`;
615
615
  gas?: bigint | undefined;
616
616
  nonce?: number | undefined;
617
617
  to?: `0x${string}` | null | undefined;
@@ -645,7 +645,7 @@ export declare const zkSync: {
645
645
  factoryDeps?: undefined;
646
646
  }) | ({
647
647
  data?: `0x${string}` | undefined;
648
- from?: `0x${string}` | undefined;
648
+ from?: `0x${string}`;
649
649
  gas?: bigint | undefined;
650
650
  nonce?: number | undefined;
651
651
  to?: `0x${string}` | null | undefined;
@@ -679,7 +679,7 @@ export declare const zkSync: {
679
679
  factoryDeps?: undefined;
680
680
  }) | ({
681
681
  data?: `0x${string}` | undefined;
682
- from?: `0x${string}` | undefined;
682
+ from?: `0x${string}`;
683
683
  gas?: bigint | undefined;
684
684
  nonce?: number | undefined;
685
685
  to?: `0x${string}` | null | undefined;
@@ -713,7 +713,7 @@ export declare const zkSync: {
713
713
  factoryDeps?: undefined;
714
714
  }) | ({
715
715
  data?: `0x${string}` | undefined;
716
- from?: `0x${string}` | undefined;
716
+ from?: `0x${string}`;
717
717
  gas?: bigint | undefined;
718
718
  nonce?: number | undefined;
719
719
  to?: `0x${string}` | null | undefined;
@@ -725,7 +725,7 @@ export declare const zkSync: {
725
725
  accessList?: import("../../index.js").AccessList | undefined;
726
726
  blobs?: undefined;
727
727
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
728
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
728
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
729
729
  gasPerPubdata?: bigint | undefined;
730
730
  customSignature?: `0x${string}` | undefined;
731
731
  factoryDeps?: `0x${string}`[] | undefined;
@@ -735,7 +735,7 @@ export declare const zkSync: {
735
735
  paymasterInput: `0x${string}`;
736
736
  }) | ({
737
737
  data?: `0x${string}` | undefined;
738
- from?: `0x${string}` | undefined;
738
+ from?: `0x${string}`;
739
739
  gas?: bigint | undefined;
740
740
  nonce?: number | undefined;
741
741
  to?: `0x${string}` | null | undefined;
@@ -747,7 +747,7 @@ export declare const zkSync: {
747
747
  accessList?: import("../../index.js").AccessList | undefined;
748
748
  blobs?: undefined;
749
749
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
750
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
750
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
751
751
  gasPerPubdata?: bigint | undefined;
752
752
  customSignature?: `0x${string}` | undefined;
753
753
  factoryDeps?: `0x${string}`[] | undefined;
@@ -757,7 +757,7 @@ export declare const zkSync: {
757
757
  paymasterInput?: undefined;
758
758
  }) | ({
759
759
  data?: `0x${string}` | undefined;
760
- from?: `0x${string}` | undefined;
760
+ from?: `0x${string}`;
761
761
  gas?: bigint | undefined;
762
762
  nonce?: number | undefined;
763
763
  to?: `0x${string}` | null | undefined;
@@ -791,7 +791,7 @@ export declare const zkSync: {
791
791
  factoryDeps?: undefined;
792
792
  }) | ({
793
793
  data?: `0x${string}` | undefined;
794
- from?: `0x${string}` | undefined;
794
+ from?: `0x${string}`;
795
795
  gas?: bigint | undefined;
796
796
  nonce?: number | undefined;
797
797
  to?: `0x${string}` | null | undefined;
@@ -825,7 +825,7 @@ export declare const zkSync: {
825
825
  factoryDeps?: undefined;
826
826
  }) | ({
827
827
  data?: `0x${string}` | undefined;
828
- from?: `0x${string}` | undefined;
828
+ from?: `0x${string}`;
829
829
  gas?: bigint | undefined;
830
830
  nonce?: number | undefined;
831
831
  to?: `0x${string}` | null | undefined;
@@ -859,7 +859,7 @@ export declare const zkSync: {
859
859
  factoryDeps?: undefined;
860
860
  }) | ({
861
861
  data?: `0x${string}` | undefined;
862
- from?: `0x${string}` | undefined;
862
+ from?: `0x${string}`;
863
863
  gas?: bigint | undefined;
864
864
  nonce?: number | undefined;
865
865
  to?: `0x${string}` | null | undefined;
@@ -871,7 +871,7 @@ export declare const zkSync: {
871
871
  accessList?: import("../../index.js").AccessList | undefined;
872
872
  blobs?: undefined;
873
873
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
874
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
874
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
875
875
  gasPerPubdata?: bigint | undefined;
876
876
  customSignature?: `0x${string}` | undefined;
877
877
  factoryDeps?: `0x${string}`[] | undefined;
@@ -881,7 +881,7 @@ export declare const zkSync: {
881
881
  paymasterInput: `0x${string}`;
882
882
  }) | ({
883
883
  data?: `0x${string}` | undefined;
884
- from?: `0x${string}` | undefined;
884
+ from?: `0x${string}`;
885
885
  gas?: bigint | undefined;
886
886
  nonce?: number | undefined;
887
887
  to?: `0x${string}` | null | undefined;
@@ -893,7 +893,7 @@ export declare const zkSync: {
893
893
  accessList?: import("../../index.js").AccessList | undefined;
894
894
  blobs?: undefined;
895
895
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
896
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
896
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
897
897
  gasPerPubdata?: bigint | undefined;
898
898
  customSignature?: `0x${string}` | undefined;
899
899
  factoryDeps?: `0x${string}`[] | undefined;
@@ -903,7 +903,7 @@ export declare const zkSync: {
903
903
  paymasterInput?: undefined;
904
904
  }) | ({
905
905
  data?: `0x${string}` | undefined;
906
- from?: `0x${string}` | undefined;
906
+ from?: `0x${string}`;
907
907
  gas?: bigint | undefined;
908
908
  nonce?: number | undefined;
909
909
  value?: bigint | undefined;
@@ -937,7 +937,7 @@ export declare const zkSync: {
937
937
  factoryDeps?: undefined;
938
938
  }) | ({
939
939
  data?: `0x${string}` | undefined;
940
- from?: `0x${string}` | undefined;
940
+ from?: `0x${string}`;
941
941
  gas?: bigint | undefined;
942
942
  nonce?: number | undefined;
943
943
  value?: bigint | undefined;
@@ -971,7 +971,7 @@ export declare const zkSync: {
971
971
  factoryDeps?: undefined;
972
972
  }) | ({
973
973
  data?: `0x${string}` | undefined;
974
- from?: `0x${string}` | undefined;
974
+ from?: `0x${string}`;
975
975
  gas?: bigint | undefined;
976
976
  nonce?: number | undefined;
977
977
  value?: bigint | undefined;
@@ -1005,7 +1005,7 @@ export declare const zkSync: {
1005
1005
  factoryDeps?: undefined;
1006
1006
  }) | ({
1007
1007
  data?: `0x${string}` | undefined;
1008
- from?: `0x${string}` | undefined;
1008
+ from?: `0x${string}`;
1009
1009
  gas?: bigint | undefined;
1010
1010
  nonce?: number | undefined;
1011
1011
  value?: bigint | undefined;
@@ -1039,7 +1039,7 @@ export declare const zkSync: {
1039
1039
  factoryDeps?: undefined;
1040
1040
  }) | ({
1041
1041
  data?: `0x${string}` | undefined;
1042
- from?: `0x${string}` | undefined;
1042
+ from?: `0x${string}`;
1043
1043
  gas?: bigint | undefined;
1044
1044
  nonce?: number | undefined;
1045
1045
  value?: bigint | undefined;
@@ -1051,7 +1051,7 @@ export declare const zkSync: {
1051
1051
  accessList?: import("../../index.js").AccessList | undefined;
1052
1052
  blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
1053
1053
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1054
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
1054
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1055
1055
  gasPerPubdata?: bigint | undefined;
1056
1056
  customSignature?: `0x${string}` | undefined;
1057
1057
  factoryDeps?: `0x${string}`[] | undefined;
@@ -1061,7 +1061,7 @@ export declare const zkSync: {
1061
1061
  paymasterInput: `0x${string}`;
1062
1062
  }) | ({
1063
1063
  data?: `0x${string}` | undefined;
1064
- from?: `0x${string}` | undefined;
1064
+ from?: `0x${string}`;
1065
1065
  gas?: bigint | undefined;
1066
1066
  nonce?: number | undefined;
1067
1067
  value?: bigint | undefined;
@@ -1073,7 +1073,7 @@ export declare const zkSync: {
1073
1073
  accessList?: import("../../index.js").AccessList | undefined;
1074
1074
  blobs?: readonly `0x${string}`[] | readonly Uint8Array[] | undefined;
1075
1075
  type?: "legacy" | "eip1559" | "eip4844" | "eip2930" | "priority" | "eip712" | undefined;
1076
- } & Omit<import("../../index.js").TransactionRequestBase, "type"> & Partial<import("../../index.js").FeeValuesEIP1559> & {
1076
+ } & Omit<import("../../index.js").TransactionRequestBase, "type"> & import("../../index.js").ExactPartial<import("../../index.js").FeeValuesEIP1559> & {
1077
1077
  gasPerPubdata?: bigint | undefined;
1078
1078
  customSignature?: `0x${string}` | undefined;
1079
1079
  factoryDeps?: `0x${string}`[] | undefined;
@@ -0,0 +1,42 @@
1
+ export declare const zkSyncInMemoryNode: {
2
+ blockExplorers?: {
3
+ [key: string]: {
4
+ name: string;
5
+ url: string;
6
+ apiUrl?: string | undefined;
7
+ };
8
+ default: {
9
+ name: string;
10
+ url: string;
11
+ apiUrl?: string | undefined;
12
+ };
13
+ } | undefined;
14
+ contracts?: {
15
+ [x: string]: import("../../index.js").ChainContract | {
16
+ [sourceId: number]: import("../../index.js").ChainContract | undefined;
17
+ } | undefined;
18
+ ensRegistry?: import("../../index.js").ChainContract | undefined;
19
+ ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
20
+ multicall3?: import("../../index.js").ChainContract | undefined;
21
+ } | undefined;
22
+ id: 260;
23
+ name: "zkSync InMemory Node";
24
+ nativeCurrency: {
25
+ readonly name: "Ether";
26
+ readonly symbol: "ETH";
27
+ readonly decimals: 18;
28
+ };
29
+ rpcUrls: {
30
+ readonly default: {
31
+ readonly http: readonly ["http://localhost:8011"];
32
+ };
33
+ };
34
+ sourceId?: number | undefined;
35
+ testnet: true;
36
+ custom?: Record<string, unknown> | undefined;
37
+ formatters?: undefined;
38
+ serializers?: import("../../index.js").ChainSerializers<undefined> | undefined;
39
+ fees?: import("../../index.js").ChainFees<undefined> | undefined;
40
+ readonly network: "zksync-in-memory-node";
41
+ };
42
+ //# sourceMappingURL=zkSyncInMemoryNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zkSyncInMemoryNode.d.ts","sourceRoot":"","sources":["../../../chains/definitions/zkSyncInMemoryNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW7B,CAAA"}
@@ -0,0 +1,42 @@
1
+ export declare const zkSyncLocalNode: {
2
+ blockExplorers?: {
3
+ [key: string]: {
4
+ name: string;
5
+ url: string;
6
+ apiUrl?: string | undefined;
7
+ };
8
+ default: {
9
+ name: string;
10
+ url: string;
11
+ apiUrl?: string | undefined;
12
+ };
13
+ } | undefined;
14
+ contracts?: {
15
+ [x: string]: import("../../index.js").ChainContract | {
16
+ [sourceId: number]: import("../../index.js").ChainContract | undefined;
17
+ } | undefined;
18
+ ensRegistry?: import("../../index.js").ChainContract | undefined;
19
+ ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
20
+ multicall3?: import("../../index.js").ChainContract | undefined;
21
+ } | undefined;
22
+ id: 270;
23
+ name: "zkSync CLI Local Node";
24
+ nativeCurrency: {
25
+ readonly name: "Ether";
26
+ readonly symbol: "ETH";
27
+ readonly decimals: 18;
28
+ };
29
+ rpcUrls: {
30
+ readonly default: {
31
+ readonly http: readonly ["http://localhost:3050"];
32
+ };
33
+ };
34
+ sourceId?: number | undefined;
35
+ testnet: true;
36
+ custom?: Record<string, unknown> | undefined;
37
+ formatters?: undefined;
38
+ serializers?: import("../../index.js").ChainSerializers<undefined> | undefined;
39
+ fees?: import("../../index.js").ChainFees<undefined> | undefined;
40
+ readonly network: "zksync-cli-local-node";
41
+ };
42
+ //# sourceMappingURL=zkSyncLocalNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zkSyncLocalNode.d.ts","sourceRoot":"","sources":["../../../chains/definitions/zkSyncLocalNode.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAW1B,CAAA"}