viem 2.9.2 → 2.9.3

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 (1430) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/actions/public/watchBlocks.js +1 -0
  3. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  4. package/_cjs/actions/wallet/prepareTransactionRequest.js +21 -14
  5. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  6. package/_cjs/celo/chainConfig.js.map +1 -0
  7. package/_cjs/celo/formatters.js +72 -0
  8. package/_cjs/celo/formatters.js.map +1 -0
  9. package/_cjs/celo/index.js.map +1 -0
  10. package/_cjs/celo/parsers.js +131 -0
  11. package/_cjs/celo/parsers.js.map +1 -0
  12. package/_cjs/celo/serializers.js +122 -0
  13. package/_cjs/celo/serializers.js.map +1 -0
  14. package/_cjs/celo/types.js.map +1 -0
  15. package/_cjs/celo/utils.js +46 -0
  16. package/_cjs/celo/utils.js.map +1 -0
  17. package/_cjs/chains/definitions/ancient8.js +1 -1
  18. package/_cjs/chains/definitions/ancient8.js.map +1 -1
  19. package/_cjs/chains/definitions/ancient8Sepolia.js +1 -1
  20. package/_cjs/chains/definitions/ancient8Sepolia.js.map +1 -1
  21. package/_cjs/chains/definitions/areonNetwork.js +23 -0
  22. package/_cjs/chains/definitions/areonNetwork.js.map +1 -0
  23. package/_cjs/chains/definitions/areonNetworkTestnet.js +23 -0
  24. package/_cjs/chains/definitions/areonNetworkTestnet.js.map +1 -0
  25. package/_cjs/chains/definitions/base.js +1 -1
  26. package/_cjs/chains/definitions/base.js.map +1 -1
  27. package/_cjs/chains/definitions/baseGoerli.js +1 -1
  28. package/_cjs/chains/definitions/baseGoerli.js.map +1 -1
  29. package/_cjs/chains/definitions/baseSepolia.js +1 -1
  30. package/_cjs/chains/definitions/baseSepolia.js.map +1 -1
  31. package/_cjs/chains/definitions/celo.js +1 -1
  32. package/_cjs/chains/definitions/celo.js.map +1 -1
  33. package/_cjs/chains/definitions/celoAlfajores.js +1 -1
  34. package/_cjs/chains/definitions/celoAlfajores.js.map +1 -1
  35. package/_cjs/chains/definitions/fraxtal.js +1 -1
  36. package/_cjs/chains/definitions/fraxtal.js.map +1 -1
  37. package/_cjs/chains/definitions/fraxtalTestnet.js +1 -1
  38. package/_cjs/chains/definitions/fraxtalTestnet.js.map +1 -1
  39. package/_cjs/chains/definitions/liskSepolia.js +1 -1
  40. package/_cjs/chains/definitions/liskSepolia.js.map +1 -1
  41. package/_cjs/chains/definitions/optimism.js +1 -1
  42. package/_cjs/chains/definitions/optimism.js.map +1 -1
  43. package/_cjs/chains/definitions/optimismGoerli.js +1 -1
  44. package/_cjs/chains/definitions/optimismGoerli.js.map +1 -1
  45. package/_cjs/chains/definitions/optimismSepolia.js +1 -1
  46. package/_cjs/chains/definitions/optimismSepolia.js.map +1 -1
  47. package/_cjs/chains/definitions/pgn.js +1 -1
  48. package/_cjs/chains/definitions/pgn.js.map +1 -1
  49. package/_cjs/chains/definitions/pgnTestnet.js +1 -1
  50. package/_cjs/chains/definitions/pgnTestnet.js.map +1 -1
  51. package/_cjs/chains/definitions/polygonMumbai.js +1 -1
  52. package/_cjs/chains/definitions/polygonMumbai.js.map +1 -1
  53. package/_cjs/chains/definitions/rss3.js +1 -1
  54. package/_cjs/chains/definitions/rss3.js.map +1 -1
  55. package/_cjs/chains/definitions/rss3Sepolia.js +1 -1
  56. package/_cjs/chains/definitions/rss3Sepolia.js.map +1 -1
  57. package/_cjs/chains/definitions/zkSync.js +1 -1
  58. package/_cjs/chains/definitions/zkSync.js.map +1 -1
  59. package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js +1 -1
  60. package/_cjs/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
  61. package/_cjs/chains/definitions/zkSyncTestnet.js +1 -1
  62. package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
  63. package/_cjs/chains/definitions/zora.js +1 -1
  64. package/_cjs/chains/definitions/zora.js.map +1 -1
  65. package/_cjs/chains/definitions/zoraSepolia.js +1 -1
  66. package/_cjs/chains/definitions/zoraSepolia.js.map +1 -1
  67. package/_cjs/chains/definitions/zoraTestnet.js +1 -1
  68. package/_cjs/chains/definitions/zoraTestnet.js.map +1 -1
  69. package/_cjs/chains/index.js +9 -5
  70. package/_cjs/chains/index.js.map +1 -1
  71. package/_cjs/errors/version.js +1 -1
  72. package/_cjs/op-stack/abis.js.map +1 -0
  73. package/_cjs/op-stack/actions/buildDepositTransaction.js +32 -0
  74. package/_cjs/op-stack/actions/buildDepositTransaction.js.map +1 -0
  75. package/_cjs/op-stack/actions/buildInitiateWithdrawal.js +29 -0
  76. package/_cjs/op-stack/actions/buildInitiateWithdrawal.js.map +1 -0
  77. package/_cjs/op-stack/actions/buildProveWithdrawal.js +59 -0
  78. package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -0
  79. package/_cjs/op-stack/actions/depositTransaction.js +41 -0
  80. package/_cjs/op-stack/actions/depositTransaction.js.map +1 -0
  81. package/_cjs/op-stack/actions/estimateContractL1Fee.js +36 -0
  82. package/_cjs/op-stack/actions/estimateContractL1Fee.js.map +1 -0
  83. package/_cjs/op-stack/actions/estimateContractL1Gas.js +36 -0
  84. package/_cjs/op-stack/actions/estimateContractL1Gas.js.map +1 -0
  85. package/_cjs/op-stack/actions/estimateContractTotalFee.js +36 -0
  86. package/_cjs/op-stack/actions/estimateContractTotalFee.js.map +1 -0
  87. package/_cjs/op-stack/actions/estimateContractTotalGas.js +36 -0
  88. package/_cjs/op-stack/actions/estimateContractTotalGas.js.map +1 -0
  89. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +37 -0
  90. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -0
  91. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +29 -0
  92. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
  93. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +24 -0
  94. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -0
  95. package/_cjs/op-stack/actions/estimateL1Fee.js +37 -0
  96. package/_cjs/op-stack/actions/estimateL1Fee.js.map +1 -0
  97. package/_cjs/op-stack/actions/estimateL1Gas.js +37 -0
  98. package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -0
  99. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +29 -0
  100. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -0
  101. package/_cjs/op-stack/actions/estimateTotalFee.js +18 -0
  102. package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -0
  103. package/_cjs/op-stack/actions/estimateTotalGas.js +16 -0
  104. package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -0
  105. package/_cjs/op-stack/actions/finalizeWithdrawal.js +33 -0
  106. package/_cjs/op-stack/actions/finalizeWithdrawal.js.map +1 -0
  107. package/_cjs/op-stack/actions/getGame.js.map +1 -0
  108. package/_cjs/op-stack/actions/getGames.js +56 -0
  109. package/_cjs/op-stack/actions/getGames.js.map +1 -0
  110. package/_cjs/op-stack/actions/getL1BaseFee.js +27 -0
  111. package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -0
  112. package/_cjs/op-stack/actions/getL2Output.js +42 -0
  113. package/_cjs/op-stack/actions/getL2Output.js.map +1 -0
  114. package/_cjs/op-stack/actions/getPortalVersion.js +25 -0
  115. package/_cjs/op-stack/actions/getPortalVersion.js.map +1 -0
  116. package/_cjs/op-stack/actions/getTimeToFinalize.js +72 -0
  117. package/_cjs/op-stack/actions/getTimeToFinalize.js.map +1 -0
  118. package/_cjs/op-stack/actions/getTimeToNextGame.js.map +1 -0
  119. package/_cjs/op-stack/actions/getTimeToNextL2Output.js +63 -0
  120. package/_cjs/op-stack/actions/getTimeToNextL2Output.js.map +1 -0
  121. package/_cjs/op-stack/actions/getTimeToProve.js.map +1 -0
  122. package/_cjs/op-stack/actions/getWithdrawalStatus.js +122 -0
  123. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -0
  124. package/_cjs/op-stack/actions/initiateWithdrawal.js +28 -0
  125. package/_cjs/op-stack/actions/initiateWithdrawal.js.map +1 -0
  126. package/_cjs/op-stack/actions/proveWithdrawal.js +33 -0
  127. package/_cjs/op-stack/actions/proveWithdrawal.js.map +1 -0
  128. package/_cjs/op-stack/actions/waitForNextGame.js +35 -0
  129. package/_cjs/op-stack/actions/waitForNextGame.js.map +1 -0
  130. package/_cjs/op-stack/actions/waitForNextL2Output.js +32 -0
  131. package/_cjs/op-stack/actions/waitForNextL2Output.js.map +1 -0
  132. package/_cjs/op-stack/actions/waitToFinalize.js +11 -0
  133. package/_cjs/op-stack/actions/waitToFinalize.js.map +1 -0
  134. package/_cjs/op-stack/actions/waitToProve.js.map +1 -0
  135. package/_cjs/op-stack/chainConfig.js.map +1 -0
  136. package/_cjs/op-stack/chains.js +34 -0
  137. package/_cjs/op-stack/chains.js.map +1 -0
  138. package/_cjs/op-stack/contracts.js.map +1 -0
  139. package/_cjs/op-stack/decorators/publicL1.js.map +1 -0
  140. package/_cjs/op-stack/decorators/publicL2.js.map +1 -0
  141. package/_cjs/op-stack/decorators/walletL1.js.map +1 -0
  142. package/_cjs/op-stack/decorators/walletL2.js.map +1 -0
  143. package/_cjs/op-stack/errors/withdrawal.js +29 -0
  144. package/_cjs/op-stack/errors/withdrawal.js.map +1 -0
  145. package/_cjs/op-stack/formatters.js +54 -0
  146. package/_cjs/op-stack/formatters.js.map +1 -0
  147. package/_cjs/op-stack/index.js.map +1 -0
  148. package/_cjs/op-stack/parsers.js +55 -0
  149. package/_cjs/op-stack/parsers.js.map +1 -0
  150. package/_cjs/op-stack/serializers.js +52 -0
  151. package/_cjs/op-stack/serializers.js.map +1 -0
  152. package/_cjs/op-stack/types/block.js.map +1 -0
  153. package/_cjs/op-stack/types/chain.js.map +1 -0
  154. package/_cjs/op-stack/types/contract.js.map +1 -0
  155. package/_cjs/op-stack/types/deposit.js.map +1 -0
  156. package/_cjs/op-stack/types/transaction.js.map +1 -0
  157. package/_cjs/op-stack/types/withdrawal.js.map +1 -0
  158. package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js +14 -0
  159. package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js.map +1 -0
  160. package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js +14 -0
  161. package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js.map +1 -0
  162. package/_cjs/op-stack/utils/getL2TransactionHash.js +28 -0
  163. package/_cjs/op-stack/utils/getL2TransactionHash.js.map +1 -0
  164. package/_cjs/op-stack/utils/getL2TransactionHashes.js.map +1 -0
  165. package/_cjs/op-stack/utils/getSourceHash.js +21 -0
  166. package/_cjs/op-stack/utils/getSourceHash.js.map +1 -0
  167. package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js +11 -0
  168. package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js.map +1 -0
  169. package/_cjs/op-stack/utils/getWithdrawals.js.map +1 -0
  170. package/_cjs/op-stack/utils/opaqueDataToDepositData.js +29 -0
  171. package/_cjs/op-stack/utils/opaqueDataToDepositData.js.map +1 -0
  172. package/_cjs/zksync/actions/deployContract.js.map +1 -0
  173. package/_cjs/zksync/actions/sendEip712Transaction.js +52 -0
  174. package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -0
  175. package/_cjs/zksync/actions/sendTransaction.js +13 -0
  176. package/_cjs/zksync/actions/sendTransaction.js.map +1 -0
  177. package/_cjs/zksync/actions/signEip712Transaction.js +52 -0
  178. package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -0
  179. package/_cjs/zksync/actions/signTransaction.js +13 -0
  180. package/_cjs/zksync/actions/signTransaction.js.map +1 -0
  181. package/_cjs/zksync/chainConfig.js.map +1 -0
  182. package/_cjs/zksync/chains.js +10 -0
  183. package/_cjs/zksync/chains.js.map +1 -0
  184. package/_cjs/zksync/constants/abis.js.map +1 -0
  185. package/_cjs/zksync/constants/address.js.map +1 -0
  186. package/_cjs/zksync/constants/contract.js.map +1 -0
  187. package/_cjs/zksync/constants/number.js +6 -0
  188. package/_cjs/zksync/constants/number.js.map +1 -0
  189. package/_cjs/zksync/decorators/eip712.js +19 -0
  190. package/_cjs/zksync/decorators/eip712.js.map +1 -0
  191. package/_cjs/zksync/errors/bytecode.js +41 -0
  192. package/_cjs/zksync/errors/bytecode.js.map +1 -0
  193. package/_cjs/zksync/errors/transaction.js +23 -0
  194. package/_cjs/zksync/errors/transaction.js.map +1 -0
  195. package/_cjs/zksync/formatters.js +134 -0
  196. package/_cjs/zksync/formatters.js.map +1 -0
  197. package/_cjs/zksync/index.js.map +1 -0
  198. package/_cjs/zksync/serializers.js +45 -0
  199. package/_cjs/zksync/serializers.js.map +1 -0
  200. package/_cjs/zksync/types/block.js.map +1 -0
  201. package/_cjs/zksync/types/chain.js.map +1 -0
  202. package/_cjs/zksync/types/contract.js.map +1 -0
  203. package/_cjs/zksync/types/eip712.js.map +1 -0
  204. package/_cjs/zksync/types/fee.js.map +1 -0
  205. package/_cjs/zksync/types/log.js.map +1 -0
  206. package/_cjs/zksync/types/transaction.js.map +1 -0
  207. package/_cjs/zksync/utils/abi/encodeDeployData.js +68 -0
  208. package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -0
  209. package/_cjs/zksync/utils/assertEip712Request.js +13 -0
  210. package/_cjs/zksync/utils/assertEip712Request.js.map +1 -0
  211. package/_cjs/zksync/utils/assertEip712Transaction.js +30 -0
  212. package/_cjs/zksync/utils/assertEip712Transaction.js.map +1 -0
  213. package/_cjs/zksync/utils/getEip712Domain.js +56 -0
  214. package/_cjs/zksync/utils/getEip712Domain.js.map +1 -0
  215. package/_cjs/zksync/utils/hashBytecode.js +36 -0
  216. package/_cjs/zksync/utils/hashBytecode.js.map +1 -0
  217. package/_cjs/zksync/utils/isEip712Transaction.js.map +1 -0
  218. package/_esm/actions/public/watchBlocks.js +1 -0
  219. package/_esm/actions/public/watchBlocks.js.map +1 -1
  220. package/_esm/actions/wallet/prepareTransactionRequest.js +21 -14
  221. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  222. package/_esm/celo/chainConfig.js.map +1 -0
  223. package/_esm/celo/formatters.js +70 -0
  224. package/_esm/celo/formatters.js.map +1 -0
  225. package/_esm/celo/index.js.map +1 -0
  226. package/_esm/celo/parsers.js +127 -0
  227. package/_esm/celo/parsers.js.map +1 -0
  228. package/_esm/celo/serializers.js +120 -0
  229. package/_esm/celo/serializers.js.map +1 -0
  230. package/_esm/celo/types.js.map +1 -0
  231. package/_esm/celo/utils.js +50 -0
  232. package/_esm/celo/utils.js.map +1 -0
  233. package/_esm/chains/definitions/ancient8.js +1 -1
  234. package/_esm/chains/definitions/ancient8.js.map +1 -1
  235. package/_esm/chains/definitions/ancient8Sepolia.js +1 -1
  236. package/_esm/chains/definitions/ancient8Sepolia.js.map +1 -1
  237. package/_esm/chains/definitions/areonNetwork.js +20 -0
  238. package/_esm/chains/definitions/areonNetwork.js.map +1 -0
  239. package/_esm/chains/definitions/areonNetworkTestnet.js +20 -0
  240. package/_esm/chains/definitions/areonNetworkTestnet.js.map +1 -0
  241. package/_esm/chains/definitions/base.js +1 -1
  242. package/_esm/chains/definitions/base.js.map +1 -1
  243. package/_esm/chains/definitions/baseGoerli.js +1 -1
  244. package/_esm/chains/definitions/baseGoerli.js.map +1 -1
  245. package/_esm/chains/definitions/baseSepolia.js +1 -1
  246. package/_esm/chains/definitions/baseSepolia.js.map +1 -1
  247. package/_esm/chains/definitions/celo.js +1 -1
  248. package/_esm/chains/definitions/celo.js.map +1 -1
  249. package/_esm/chains/definitions/celoAlfajores.js +1 -1
  250. package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
  251. package/_esm/chains/definitions/fraxtal.js +1 -1
  252. package/_esm/chains/definitions/fraxtal.js.map +1 -1
  253. package/_esm/chains/definitions/fraxtalTestnet.js +1 -1
  254. package/_esm/chains/definitions/fraxtalTestnet.js.map +1 -1
  255. package/_esm/chains/definitions/liskSepolia.js +1 -1
  256. package/_esm/chains/definitions/liskSepolia.js.map +1 -1
  257. package/_esm/chains/definitions/optimism.js +1 -1
  258. package/_esm/chains/definitions/optimism.js.map +1 -1
  259. package/_esm/chains/definitions/optimismGoerli.js +1 -1
  260. package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
  261. package/_esm/chains/definitions/optimismSepolia.js +1 -1
  262. package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
  263. package/_esm/chains/definitions/pgn.js +1 -1
  264. package/_esm/chains/definitions/pgn.js.map +1 -1
  265. package/_esm/chains/definitions/pgnTestnet.js +1 -1
  266. package/_esm/chains/definitions/pgnTestnet.js.map +1 -1
  267. package/_esm/chains/definitions/polygonMumbai.js +1 -1
  268. package/_esm/chains/definitions/polygonMumbai.js.map +1 -1
  269. package/_esm/chains/definitions/rss3.js +1 -1
  270. package/_esm/chains/definitions/rss3.js.map +1 -1
  271. package/_esm/chains/definitions/rss3Sepolia.js +1 -1
  272. package/_esm/chains/definitions/rss3Sepolia.js.map +1 -1
  273. package/_esm/chains/definitions/zkSync.js +1 -1
  274. package/_esm/chains/definitions/zkSync.js.map +1 -1
  275. package/_esm/chains/definitions/zkSyncSepoliaTestnet.js +1 -1
  276. package/_esm/chains/definitions/zkSyncSepoliaTestnet.js.map +1 -1
  277. package/_esm/chains/definitions/zkSyncTestnet.js +1 -1
  278. package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
  279. package/_esm/chains/definitions/zora.js +1 -1
  280. package/_esm/chains/definitions/zora.js.map +1 -1
  281. package/_esm/chains/definitions/zoraSepolia.js +1 -1
  282. package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
  283. package/_esm/chains/definitions/zoraTestnet.js +1 -1
  284. package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
  285. package/_esm/chains/index.js +2 -0
  286. package/_esm/chains/index.js.map +1 -1
  287. package/_esm/errors/version.js +1 -1
  288. package/_esm/op-stack/abis.js.map +1 -0
  289. package/_esm/op-stack/actions/buildDepositTransaction.js +54 -0
  290. package/_esm/op-stack/actions/buildDepositTransaction.js.map +1 -0
  291. package/_esm/op-stack/actions/buildInitiateWithdrawal.js +50 -0
  292. package/_esm/op-stack/actions/buildInitiateWithdrawal.js.map +1 -0
  293. package/_esm/op-stack/actions/buildProveWithdrawal.js +88 -0
  294. package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -0
  295. package/_esm/op-stack/actions/depositTransaction.js +91 -0
  296. package/_esm/op-stack/actions/depositTransaction.js.map +1 -0
  297. package/_esm/op-stack/actions/estimateContractL1Fee.js +55 -0
  298. package/_esm/op-stack/actions/estimateContractL1Fee.js.map +1 -0
  299. package/_esm/op-stack/actions/estimateContractL1Gas.js +55 -0
  300. package/_esm/op-stack/actions/estimateContractL1Gas.js.map +1 -0
  301. package/_esm/op-stack/actions/estimateContractTotalFee.js +55 -0
  302. package/_esm/op-stack/actions/estimateContractTotalFee.js.map +1 -0
  303. package/_esm/op-stack/actions/estimateContractTotalGas.js +55 -0
  304. package/_esm/op-stack/actions/estimateContractTotalGas.js.map +1 -0
  305. package/_esm/op-stack/actions/estimateDepositTransactionGas.js +62 -0
  306. package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -0
  307. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +50 -0
  308. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -0
  309. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +48 -0
  310. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -0
  311. package/_esm/op-stack/actions/estimateL1Fee.js +58 -0
  312. package/_esm/op-stack/actions/estimateL1Fee.js.map +1 -0
  313. package/_esm/op-stack/actions/estimateL1Gas.js +58 -0
  314. package/_esm/op-stack/actions/estimateL1Gas.js.map +1 -0
  315. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +53 -0
  316. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -0
  317. package/_esm/op-stack/actions/estimateTotalFee.js +38 -0
  318. package/_esm/op-stack/actions/estimateTotalFee.js.map +1 -0
  319. package/_esm/op-stack/actions/estimateTotalGas.js +36 -0
  320. package/_esm/op-stack/actions/estimateTotalGas.js.map +1 -0
  321. package/_esm/op-stack/actions/finalizeWithdrawal.js +53 -0
  322. package/_esm/op-stack/actions/finalizeWithdrawal.js.map +1 -0
  323. package/_esm/op-stack/actions/getGame.js.map +1 -0
  324. package/_esm/op-stack/actions/getGames.js +75 -0
  325. package/_esm/op-stack/actions/getGames.js.map +1 -0
  326. package/_esm/op-stack/actions/getL1BaseFee.js +44 -0
  327. package/_esm/op-stack/actions/getL1BaseFee.js.map +1 -0
  328. package/_esm/op-stack/actions/getL2Output.js +62 -0
  329. package/_esm/op-stack/actions/getL2Output.js.map +1 -0
  330. package/_esm/op-stack/actions/getPortalVersion.js +48 -0
  331. package/_esm/op-stack/actions/getPortalVersion.js.map +1 -0
  332. package/_esm/op-stack/actions/getTimeToFinalize.js +104 -0
  333. package/_esm/op-stack/actions/getTimeToFinalize.js.map +1 -0
  334. package/_esm/op-stack/actions/getTimeToNextGame.js.map +1 -0
  335. package/_esm/op-stack/actions/getTimeToNextL2Output.js +91 -0
  336. package/_esm/op-stack/actions/getTimeToNextL2Output.js.map +1 -0
  337. package/_esm/op-stack/actions/getTimeToProve.js.map +1 -0
  338. package/_esm/op-stack/actions/getWithdrawalStatus.js +151 -0
  339. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -0
  340. package/_esm/op-stack/actions/initiateWithdrawal.js +76 -0
  341. package/_esm/op-stack/actions/initiateWithdrawal.js.map +1 -0
  342. package/_esm/op-stack/actions/proveWithdrawal.js +57 -0
  343. package/_esm/op-stack/actions/proveWithdrawal.js.map +1 -0
  344. package/_esm/op-stack/actions/waitForNextGame.js +61 -0
  345. package/_esm/op-stack/actions/waitForNextGame.js.map +1 -0
  346. package/_esm/op-stack/actions/waitForNextL2Output.js +58 -0
  347. package/_esm/op-stack/actions/waitForNextL2Output.js.map +1 -0
  348. package/_esm/op-stack/actions/waitToFinalize.js +41 -0
  349. package/_esm/op-stack/actions/waitToFinalize.js.map +1 -0
  350. package/_esm/op-stack/actions/waitToProve.js.map +1 -0
  351. package/_esm/op-stack/chainConfig.js.map +1 -0
  352. package/_esm/op-stack/chains.js +16 -0
  353. package/_esm/op-stack/chains.js.map +1 -0
  354. package/_esm/op-stack/contracts.js.map +1 -0
  355. package/_esm/op-stack/decorators/publicL1.js.map +1 -0
  356. package/_esm/op-stack/decorators/publicL2.js.map +1 -0
  357. package/_esm/op-stack/decorators/walletL1.js.map +1 -0
  358. package/_esm/op-stack/decorators/walletL2.js.map +1 -0
  359. package/_esm/op-stack/errors/withdrawal.js +24 -0
  360. package/_esm/op-stack/errors/withdrawal.js.map +1 -0
  361. package/_esm/op-stack/formatters.js +53 -0
  362. package/_esm/op-stack/formatters.js.map +1 -0
  363. package/_esm/op-stack/index.js +46 -0
  364. package/_esm/op-stack/index.js.map +1 -0
  365. package/_esm/op-stack/parsers.js +51 -0
  366. package/_esm/op-stack/parsers.js.map +1 -0
  367. package/_esm/op-stack/serializers.js +47 -0
  368. package/_esm/op-stack/serializers.js.map +1 -0
  369. package/_esm/op-stack/types/block.js.map +1 -0
  370. package/_esm/op-stack/types/chain.js.map +1 -0
  371. package/_esm/op-stack/types/contract.js.map +1 -0
  372. package/_esm/op-stack/types/deposit.js.map +1 -0
  373. package/_esm/op-stack/types/transaction.js.map +1 -0
  374. package/_esm/op-stack/types/withdrawal.js.map +1 -0
  375. package/_esm/op-stack/utils/extractTransactionDepositedLogs.js +10 -0
  376. package/_esm/op-stack/utils/extractTransactionDepositedLogs.js.map +1 -0
  377. package/_esm/op-stack/utils/extractWithdrawalMessageLogs.js +10 -0
  378. package/_esm/op-stack/utils/extractWithdrawalMessageLogs.js.map +1 -0
  379. package/_esm/op-stack/utils/getL2TransactionHash.js +25 -0
  380. package/_esm/op-stack/utils/getL2TransactionHash.js.map +1 -0
  381. package/_esm/op-stack/utils/getL2TransactionHashes.js.map +1 -0
  382. package/_esm/op-stack/utils/getSourceHash.js +18 -0
  383. package/_esm/op-stack/utils/getSourceHash.js.map +1 -0
  384. package/_esm/op-stack/utils/getWithdrawalHashStorageSlot.js +7 -0
  385. package/_esm/op-stack/utils/getWithdrawalHashStorageSlot.js.map +1 -0
  386. package/_esm/op-stack/utils/getWithdrawals.js.map +1 -0
  387. package/_esm/op-stack/utils/opaqueDataToDepositData.js +25 -0
  388. package/_esm/op-stack/utils/opaqueDataToDepositData.js.map +1 -0
  389. package/_esm/zksync/actions/deployContract.js.map +1 -0
  390. package/_esm/zksync/actions/sendEip712Transaction.js +91 -0
  391. package/_esm/zksync/actions/sendEip712Transaction.js.map +1 -0
  392. package/_esm/zksync/actions/sendTransaction.js +54 -0
  393. package/_esm/zksync/actions/sendTransaction.js.map +1 -0
  394. package/_esm/zksync/actions/signEip712Transaction.js +86 -0
  395. package/_esm/zksync/actions/signEip712Transaction.js.map +1 -0
  396. package/_esm/zksync/actions/signTransaction.js +49 -0
  397. package/_esm/zksync/actions/signTransaction.js.map +1 -0
  398. package/_esm/zksync/chainConfig.js.map +1 -0
  399. package/_esm/zksync/chains.js +4 -0
  400. package/_esm/zksync/chains.js.map +1 -0
  401. package/_esm/zksync/constants/abis.js.map +1 -0
  402. package/_esm/zksync/constants/address.js.map +1 -0
  403. package/_esm/zksync/constants/contract.js.map +1 -0
  404. package/_esm/zksync/constants/number.js +3 -0
  405. package/_esm/zksync/constants/number.js.map +1 -0
  406. package/_esm/zksync/decorators/eip712.js +15 -0
  407. package/_esm/zksync/decorators/eip712.js.map +1 -0
  408. package/_esm/zksync/errors/bytecode.js +35 -0
  409. package/_esm/zksync/errors/bytecode.js.map +1 -0
  410. package/_esm/zksync/errors/transaction.js +19 -0
  411. package/_esm/zksync/errors/transaction.js.map +1 -0
  412. package/_esm/zksync/formatters.js +132 -0
  413. package/_esm/zksync/formatters.js.map +1 -0
  414. package/_esm/zksync/index.js.map +1 -0
  415. package/_esm/zksync/serializers.js +41 -0
  416. package/_esm/zksync/serializers.js.map +1 -0
  417. package/_esm/zksync/types/block.js.map +1 -0
  418. package/_esm/zksync/types/chain.js.map +1 -0
  419. package/_esm/zksync/types/contract.js.map +1 -0
  420. package/_esm/zksync/types/eip712.js.map +1 -0
  421. package/_esm/zksync/types/fee.js.map +1 -0
  422. package/_esm/zksync/types/log.js.map +1 -0
  423. package/_esm/zksync/types/transaction.js.map +1 -0
  424. package/_esm/zksync/utils/abi/encodeDeployData.js +65 -0
  425. package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -0
  426. package/_esm/zksync/utils/assertEip712Request.js +9 -0
  427. package/_esm/zksync/utils/assertEip712Request.js.map +1 -0
  428. package/_esm/zksync/utils/assertEip712Transaction.js +26 -0
  429. package/_esm/zksync/utils/assertEip712Transaction.js.map +1 -0
  430. package/_esm/zksync/utils/getEip712Domain.js +54 -0
  431. package/_esm/zksync/utils/getEip712Domain.js.map +1 -0
  432. package/_esm/zksync/utils/hashBytecode.js +36 -0
  433. package/_esm/zksync/utils/hashBytecode.js.map +1 -0
  434. package/_esm/zksync/utils/isEip712Transaction.js.map +1 -0
  435. package/_types/actions/public/watchBlocks.d.ts.map +1 -1
  436. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  437. package/_types/celo/chainConfig.d.ts +2107 -0
  438. package/_types/celo/chainConfig.d.ts.map +1 -0
  439. package/_types/celo/formatters.d.ts +2104 -0
  440. package/_types/celo/formatters.d.ts.map +1 -0
  441. package/_types/celo/index.d.ts.map +1 -0
  442. package/_types/celo/parsers.d.ts +6 -0
  443. package/_types/celo/parsers.d.ts.map +1 -0
  444. package/_types/celo/serializers.d.ts +11 -0
  445. package/_types/celo/serializers.d.ts.map +1 -0
  446. package/_types/celo/types.d.ts +121 -0
  447. package/_types/celo/types.d.ts.map +1 -0
  448. package/_types/celo/utils.d.ts.map +1 -0
  449. package/_types/chains/definitions/areonNetwork.d.ts +36 -0
  450. package/_types/chains/definitions/areonNetwork.d.ts.map +1 -0
  451. package/_types/chains/definitions/areonNetworkTestnet.d.ts +36 -0
  452. package/_types/chains/definitions/areonNetworkTestnet.d.ts.map +1 -0
  453. package/_types/chains/definitions/celo.d.ts +1 -1
  454. package/_types/chains/definitions/celoAlfajores.d.ts +1 -1
  455. package/_types/chains/definitions/polygonMumbai.d.ts +1 -1
  456. package/_types/chains/definitions/zkSync.d.ts +2 -2
  457. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +2 -2
  458. package/_types/chains/definitions/zkSyncTestnet.d.ts +2 -2
  459. package/_types/chains/index.d.ts +12 -10
  460. package/_types/chains/index.d.ts.map +1 -1
  461. package/_types/errors/version.d.ts +1 -1
  462. package/_types/op-stack/abis.d.ts.map +1 -0
  463. package/_types/op-stack/actions/buildDepositTransaction.d.ts +65 -0
  464. package/_types/op-stack/actions/buildDepositTransaction.d.ts.map +1 -0
  465. package/_types/op-stack/actions/buildInitiateWithdrawal.d.ts +50 -0
  466. package/_types/op-stack/actions/buildInitiateWithdrawal.d.ts.map +1 -0
  467. package/_types/op-stack/actions/buildProveWithdrawal.d.ts +54 -0
  468. package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -0
  469. package/_types/op-stack/actions/depositTransaction.d.ts +80 -0
  470. package/_types/op-stack/actions/depositTransaction.d.ts.map +1 -0
  471. package/_types/op-stack/actions/estimateContractL1Fee.d.ts +39 -0
  472. package/_types/op-stack/actions/estimateContractL1Fee.d.ts.map +1 -0
  473. package/_types/op-stack/actions/estimateContractL1Gas.d.ts +39 -0
  474. package/_types/op-stack/actions/estimateContractL1Gas.d.ts.map +1 -0
  475. package/_types/op-stack/actions/estimateContractTotalFee.d.ts +39 -0
  476. package/_types/op-stack/actions/estimateContractTotalFee.d.ts.map +1 -0
  477. package/_types/op-stack/actions/estimateContractTotalGas.d.ts +39 -0
  478. package/_types/op-stack/actions/estimateContractTotalGas.d.ts.map +1 -0
  479. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts +50 -0
  480. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts.map +1 -0
  481. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts +45 -0
  482. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -0
  483. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts +51 -0
  484. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -0
  485. package/_types/op-stack/actions/estimateL1Fee.d.ts +43 -0
  486. package/_types/op-stack/actions/estimateL1Fee.d.ts.map +1 -0
  487. package/_types/op-stack/actions/estimateL1Gas.d.ts +43 -0
  488. package/_types/op-stack/actions/estimateL1Gas.d.ts.map +1 -0
  489. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts +63 -0
  490. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts.map +1 -0
  491. package/_types/op-stack/actions/estimateTotalFee.d.ts +37 -0
  492. package/_types/op-stack/actions/estimateTotalFee.d.ts.map +1 -0
  493. package/_types/op-stack/actions/estimateTotalGas.d.ts +36 -0
  494. package/_types/op-stack/actions/estimateTotalGas.d.ts.map +1 -0
  495. package/_types/op-stack/actions/finalizeWithdrawal.d.ts +49 -0
  496. package/_types/op-stack/actions/finalizeWithdrawal.d.ts.map +1 -0
  497. package/_types/op-stack/actions/getGame.d.ts +57 -0
  498. package/_types/op-stack/actions/getGame.d.ts.map +1 -0
  499. package/_types/op-stack/actions/getGames.d.ts +48 -0
  500. package/_types/op-stack/actions/getGames.d.ts.map +1 -0
  501. package/_types/op-stack/actions/getL1BaseFee.d.ts +35 -0
  502. package/_types/op-stack/actions/getL1BaseFee.d.ts.map +1 -0
  503. package/_types/op-stack/actions/getL2Output.d.ts +51 -0
  504. package/_types/op-stack/actions/getL2Output.d.ts.map +1 -0
  505. package/_types/op-stack/actions/getPortalVersion.d.ts +46 -0
  506. package/_types/op-stack/actions/getPortalVersion.d.ts.map +1 -0
  507. package/_types/op-stack/actions/getTimeToFinalize.d.ts +57 -0
  508. package/_types/op-stack/actions/getTimeToFinalize.d.ts.map +1 -0
  509. package/_types/op-stack/actions/getTimeToNextGame.d.ts +61 -0
  510. package/_types/op-stack/actions/getTimeToNextGame.d.ts.map +1 -0
  511. package/_types/op-stack/actions/getTimeToNextL2Output.d.ts +61 -0
  512. package/_types/op-stack/actions/getTimeToNextL2Output.d.ts.map +1 -0
  513. package/_types/op-stack/actions/getTimeToProve.d.ts +53 -0
  514. package/_types/op-stack/actions/getTimeToProve.d.ts.map +1 -0
  515. package/_types/op-stack/actions/getWithdrawalStatus.d.ts +54 -0
  516. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -0
  517. package/_types/op-stack/actions/initiateWithdrawal.d.ts +77 -0
  518. package/_types/op-stack/actions/initiateWithdrawal.d.ts.map +1 -0
  519. package/_types/op-stack/actions/proveWithdrawal.d.ts +67 -0
  520. package/_types/op-stack/actions/proveWithdrawal.d.ts.map +1 -0
  521. package/_types/op-stack/actions/waitForNextGame.d.ts +60 -0
  522. package/_types/op-stack/actions/waitForNextGame.d.ts.map +1 -0
  523. package/_types/op-stack/actions/waitForNextL2Output.d.ts +55 -0
  524. package/_types/op-stack/actions/waitForNextL2Output.d.ts.map +1 -0
  525. package/_types/op-stack/actions/waitToFinalize.d.ts +45 -0
  526. package/_types/op-stack/actions/waitToFinalize.d.ts.map +1 -0
  527. package/_types/op-stack/actions/waitToProve.d.ts +63 -0
  528. package/_types/op-stack/actions/waitToProve.d.ts.map +1 -0
  529. package/_types/op-stack/chainConfig.d.ts +1037 -0
  530. package/_types/op-stack/chainConfig.d.ts.map +1 -0
  531. package/_types/op-stack/chains.d.ts +16 -0
  532. package/_types/op-stack/chains.d.ts.map +1 -0
  533. package/_types/op-stack/contracts.d.ts.map +1 -0
  534. package/_types/op-stack/decorators/publicL1.d.ts +530 -0
  535. package/_types/op-stack/decorators/publicL1.d.ts.map +1 -0
  536. package/_types/op-stack/decorators/publicL2.d.ts +333 -0
  537. package/_types/op-stack/decorators/publicL2.d.ts.map +1 -0
  538. package/_types/op-stack/decorators/walletL1.d.ts +136 -0
  539. package/_types/op-stack/decorators/walletL1.d.ts.map +1 -0
  540. package/_types/op-stack/decorators/walletL2.d.ts +79 -0
  541. package/_types/op-stack/decorators/walletL2.d.ts.map +1 -0
  542. package/_types/op-stack/errors/withdrawal.d.ts +19 -0
  543. package/_types/op-stack/errors/withdrawal.d.ts.map +1 -0
  544. package/_types/op-stack/formatters.d.ts +1015 -0
  545. package/_types/op-stack/formatters.d.ts.map +1 -0
  546. package/_types/op-stack/index.d.ts +48 -0
  547. package/_types/op-stack/index.d.ts.map +1 -0
  548. package/_types/op-stack/parsers.d.ts +8 -0
  549. package/_types/op-stack/parsers.d.ts.map +1 -0
  550. package/_types/op-stack/serializers.d.ts +13 -0
  551. package/_types/op-stack/serializers.d.ts.map +1 -0
  552. package/_types/op-stack/types/block.d.ts +13 -0
  553. package/_types/op-stack/types/block.d.ts.map +1 -0
  554. package/_types/op-stack/types/chain.d.ts +9 -0
  555. package/_types/op-stack/types/chain.d.ts.map +1 -0
  556. package/_types/op-stack/types/contract.d.ts +14 -0
  557. package/_types/op-stack/types/contract.d.ts.map +1 -0
  558. package/_types/op-stack/types/deposit.d.ts +25 -0
  559. package/_types/op-stack/types/deposit.d.ts.map +1 -0
  560. package/_types/op-stack/types/transaction.d.ts +56 -0
  561. package/_types/op-stack/types/transaction.d.ts.map +1 -0
  562. package/_types/op-stack/types/withdrawal.d.ts +29 -0
  563. package/_types/op-stack/types/withdrawal.d.ts.map +1 -0
  564. package/_types/op-stack/utils/extractTransactionDepositedLogs.d.ts +446 -0
  565. package/_types/op-stack/utils/extractTransactionDepositedLogs.d.ts.map +1 -0
  566. package/_types/op-stack/utils/extractWithdrawalMessageLogs.d.ts +137 -0
  567. package/_types/op-stack/utils/extractWithdrawalMessageLogs.d.ts.map +1 -0
  568. package/_types/op-stack/utils/getL2TransactionHash.d.ts +12 -0
  569. package/_types/op-stack/utils/getL2TransactionHash.d.ts.map +1 -0
  570. package/_types/op-stack/utils/getL2TransactionHashes.d.ts +11 -0
  571. package/_types/op-stack/utils/getL2TransactionHashes.d.ts.map +1 -0
  572. package/_types/op-stack/utils/getSourceHash.d.ts +28 -0
  573. package/_types/op-stack/utils/getSourceHash.d.ts.map +1 -0
  574. package/_types/op-stack/utils/getWithdrawalHashStorageSlot.d.ts +11 -0
  575. package/_types/op-stack/utils/getWithdrawalHashStorageSlot.d.ts.map +1 -0
  576. package/_types/op-stack/utils/getWithdrawals.d.ts +12 -0
  577. package/_types/op-stack/utils/getWithdrawals.d.ts.map +1 -0
  578. package/_types/op-stack/utils/opaqueDataToDepositData.d.ts +15 -0
  579. package/_types/op-stack/utils/opaqueDataToDepositData.d.ts.map +1 -0
  580. package/_types/zksync/actions/deployContract.d.ts +49 -0
  581. package/_types/zksync/actions/deployContract.d.ts.map +1 -0
  582. package/_types/zksync/actions/sendEip712Transaction.d.ts +50 -0
  583. package/_types/zksync/actions/sendEip712Transaction.d.ts.map +1 -0
  584. package/_types/zksync/actions/sendTransaction.d.ts +54 -0
  585. package/_types/zksync/actions/sendTransaction.d.ts.map +1 -0
  586. package/_types/zksync/actions/signEip712Transaction.d.ts +54 -0
  587. package/_types/zksync/actions/signEip712Transaction.d.ts.map +1 -0
  588. package/_types/zksync/actions/signTransaction.d.ts +56 -0
  589. package/_types/zksync/actions/signTransaction.d.ts.map +1 -0
  590. package/_types/zksync/chainConfig.d.ts +1281 -0
  591. package/_types/zksync/chainConfig.d.ts.map +1 -0
  592. package/_types/zksync/chains.d.ts +4 -0
  593. package/_types/zksync/chains.d.ts.map +1 -0
  594. package/_types/zksync/constants/abis.d.ts.map +1 -0
  595. package/_types/zksync/constants/address.d.ts.map +1 -0
  596. package/_types/zksync/constants/contract.d.ts.map +1 -0
  597. package/_types/zksync/constants/number.d.ts.map +1 -0
  598. package/_types/zksync/decorators/eip712.d.ts +183 -0
  599. package/_types/zksync/decorators/eip712.d.ts.map +1 -0
  600. package/_types/zksync/errors/bytecode.d.ts +30 -0
  601. package/_types/zksync/errors/bytecode.d.ts.map +1 -0
  602. package/_types/zksync/errors/transaction.d.ts +9 -0
  603. package/_types/zksync/errors/transaction.d.ts.map +1 -0
  604. package/_types/zksync/formatters.d.ts +1277 -0
  605. package/_types/zksync/formatters.d.ts.map +1 -0
  606. package/_types/zksync/index.d.ts.map +1 -0
  607. package/_types/zksync/serializers.d.ts +8 -0
  608. package/_types/zksync/serializers.d.ts.map +1 -0
  609. package/_types/zksync/types/block.d.ts +15 -0
  610. package/_types/zksync/types/block.d.ts.map +1 -0
  611. package/_types/zksync/types/chain.d.ts +9 -0
  612. package/_types/zksync/types/chain.d.ts.map +1 -0
  613. package/_types/zksync/types/contract.d.ts.map +1 -0
  614. package/_types/zksync/types/eip712.d.ts +27 -0
  615. package/_types/zksync/types/eip712.d.ts.map +1 -0
  616. package/_types/zksync/types/fee.d.ts.map +1 -0
  617. package/_types/zksync/types/log.d.ts +41 -0
  618. package/_types/zksync/types/log.d.ts.map +1 -0
  619. package/_types/zksync/types/transaction.d.ts +122 -0
  620. package/_types/zksync/types/transaction.d.ts.map +1 -0
  621. package/_types/zksync/utils/abi/encodeDeployData.d.ts +13 -0
  622. package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -0
  623. package/_types/zksync/utils/assertEip712Request.d.ts +9 -0
  624. package/_types/zksync/utils/assertEip712Request.d.ts.map +1 -0
  625. package/_types/zksync/utils/assertEip712Transaction.d.ts +4 -0
  626. package/_types/zksync/utils/assertEip712Transaction.d.ts.map +1 -0
  627. package/_types/zksync/utils/getEip712Domain.d.ts.map +1 -0
  628. package/_types/zksync/utils/hashBytecode.d.ts +3 -0
  629. package/_types/zksync/utils/hashBytecode.d.ts.map +1 -0
  630. package/_types/zksync/utils/isEip712Transaction.d.ts +4 -0
  631. package/_types/zksync/utils/isEip712Transaction.d.ts.map +1 -0
  632. package/actions/public/watchBlocks.ts +1 -0
  633. package/actions/wallet/prepareTransactionRequest.ts +27 -23
  634. package/celo/formatters.ts +90 -0
  635. package/celo/package.json +3 -3
  636. package/celo/parsers.ts +203 -0
  637. package/celo/serializers.ts +228 -0
  638. package/celo/types.ts +245 -0
  639. package/celo/utils.ts +81 -0
  640. package/chains/definitions/ancient8.ts +1 -1
  641. package/chains/definitions/ancient8Sepolia.ts +1 -1
  642. package/chains/definitions/areonNetwork.ts +20 -0
  643. package/chains/definitions/areonNetworkTestnet.ts +20 -0
  644. package/chains/definitions/base.ts +1 -1
  645. package/chains/definitions/baseGoerli.ts +1 -1
  646. package/chains/definitions/baseSepolia.ts +1 -1
  647. package/chains/definitions/celo.ts +1 -1
  648. package/chains/definitions/celoAlfajores.ts +1 -1
  649. package/chains/definitions/fraxtal.ts +1 -1
  650. package/chains/definitions/fraxtalTestnet.ts +1 -1
  651. package/chains/definitions/liskSepolia.ts +1 -1
  652. package/chains/definitions/optimism.ts +1 -1
  653. package/chains/definitions/optimismGoerli.ts +1 -1
  654. package/chains/definitions/optimismSepolia.ts +1 -1
  655. package/chains/definitions/pgn.ts +1 -1
  656. package/chains/definitions/pgnTestnet.ts +1 -1
  657. package/chains/definitions/polygonMumbai.ts +1 -1
  658. package/chains/definitions/rss3.ts +1 -1
  659. package/chains/definitions/rss3Sepolia.ts +1 -1
  660. package/chains/definitions/zkSync.ts +1 -1
  661. package/chains/definitions/zkSyncSepoliaTestnet.ts +1 -1
  662. package/chains/definitions/zkSyncTestnet.ts +1 -1
  663. package/chains/definitions/zora.ts +1 -1
  664. package/chains/definitions/zoraSepolia.ts +1 -1
  665. package/chains/definitions/zoraTestnet.ts +1 -1
  666. package/chains/index.ts +12 -10
  667. package/errors/version.ts +1 -1
  668. package/op-stack/actions/buildDepositTransaction.ts +156 -0
  669. package/op-stack/actions/buildInitiateWithdrawal.ts +118 -0
  670. package/op-stack/actions/buildProveWithdrawal.ts +180 -0
  671. package/op-stack/actions/depositTransaction.ts +177 -0
  672. package/op-stack/actions/estimateContractL1Fee.ts +142 -0
  673. package/op-stack/actions/estimateContractL1Gas.ts +142 -0
  674. package/op-stack/actions/estimateContractTotalFee.ts +144 -0
  675. package/op-stack/actions/estimateContractTotalGas.ts +144 -0
  676. package/op-stack/actions/estimateDepositTransactionGas.ts +138 -0
  677. package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +118 -0
  678. package/op-stack/actions/estimateInitiateWithdrawalGas.ts +118 -0
  679. package/op-stack/actions/estimateL1Fee.ts +122 -0
  680. package/op-stack/actions/estimateL1Gas.ts +122 -0
  681. package/op-stack/actions/estimateProveWithdrawalGas.ts +139 -0
  682. package/op-stack/actions/estimateTotalFee.ts +86 -0
  683. package/op-stack/actions/estimateTotalGas.ts +80 -0
  684. package/op-stack/actions/finalizeWithdrawal.ts +131 -0
  685. package/op-stack/actions/getGame.ts +99 -0
  686. package/op-stack/actions/getGames.ts +133 -0
  687. package/op-stack/actions/getL1BaseFee.ts +81 -0
  688. package/op-stack/actions/getL2Output.ts +130 -0
  689. package/op-stack/actions/getPortalVersion.ts +87 -0
  690. package/op-stack/actions/getTimeToFinalize.ts +159 -0
  691. package/op-stack/actions/getTimeToNextGame.ts +143 -0
  692. package/op-stack/actions/getTimeToNextL2Output.ts +162 -0
  693. package/op-stack/actions/getTimeToProve.ts +119 -0
  694. package/op-stack/actions/getWithdrawalStatus.ts +244 -0
  695. package/op-stack/actions/initiateWithdrawal.ts +153 -0
  696. package/op-stack/actions/proveWithdrawal.ts +154 -0
  697. package/op-stack/actions/waitForNextGame.ts +122 -0
  698. package/op-stack/actions/waitForNextL2Output.ts +117 -0
  699. package/op-stack/actions/waitToFinalize.ts +64 -0
  700. package/op-stack/actions/waitToProve.ts +157 -0
  701. package/op-stack/chains.ts +15 -0
  702. package/op-stack/contracts.ts +18 -0
  703. package/op-stack/decorators/publicL1.ts +693 -0
  704. package/op-stack/decorators/publicL2.ts +516 -0
  705. package/op-stack/decorators/walletL1.ts +172 -0
  706. package/op-stack/decorators/walletL2.ts +101 -0
  707. package/op-stack/errors/withdrawal.ts +25 -0
  708. package/op-stack/formatters.ts +76 -0
  709. package/op-stack/index.ts +281 -0
  710. package/op-stack/package.json +3 -3
  711. package/op-stack/parsers.ts +88 -0
  712. package/op-stack/serializers.ts +88 -0
  713. package/op-stack/types/block.ts +34 -0
  714. package/op-stack/types/chain.ts +10 -0
  715. package/op-stack/types/contract.ts +26 -0
  716. package/op-stack/types/deposit.ts +28 -0
  717. package/op-stack/types/transaction.ts +106 -0
  718. package/op-stack/types/withdrawal.ts +31 -0
  719. package/op-stack/utils/extractTransactionDepositedLogs.ts +36 -0
  720. package/op-stack/utils/extractWithdrawalMessageLogs.ts +36 -0
  721. package/op-stack/utils/getL2TransactionHash.ts +52 -0
  722. package/op-stack/utils/getL2TransactionHashes.ts +21 -0
  723. package/op-stack/utils/getSourceHash.ts +61 -0
  724. package/op-stack/utils/getWithdrawalHashStorageSlot.ts +29 -0
  725. package/op-stack/utils/getWithdrawals.ts +25 -0
  726. package/op-stack/utils/opaqueDataToDepositData.ts +45 -0
  727. package/package.json +13 -13
  728. package/zksync/actions/deployContract.ts +100 -0
  729. package/zksync/actions/sendEip712Transaction.ts +129 -0
  730. package/zksync/actions/sendTransaction.ts +79 -0
  731. package/zksync/actions/signEip712Transaction.ts +150 -0
  732. package/zksync/actions/signTransaction.ts +95 -0
  733. package/zksync/chains.ts +3 -0
  734. package/zksync/constants/number.ts +3 -0
  735. package/zksync/decorators/eip712.ts +233 -0
  736. package/zksync/errors/bytecode.ts +46 -0
  737. package/zksync/errors/transaction.ts +21 -0
  738. package/zksync/formatters.ts +155 -0
  739. package/zksync/package.json +3 -3
  740. package/zksync/serializers.ts +82 -0
  741. package/zksync/types/block.ts +34 -0
  742. package/zksync/types/chain.ts +25 -0
  743. package/zksync/types/eip712.ts +31 -0
  744. package/zksync/types/log.ts +57 -0
  745. package/zksync/types/transaction.ts +245 -0
  746. package/zksync/utils/abi/encodeDeployData.ts +120 -0
  747. package/zksync/utils/assertEip712Request.ts +19 -0
  748. package/zksync/utils/assertEip712Transaction.ts +36 -0
  749. package/zksync/utils/getEip712Domain.ts +85 -0
  750. package/zksync/utils/hashBytecode.ts +48 -0
  751. package/zksync/utils/isEip712Transaction.ts +18 -0
  752. package/_cjs/chains/celo/chainConfig.js.map +0 -1
  753. package/_cjs/chains/celo/formatters.js +0 -72
  754. package/_cjs/chains/celo/formatters.js.map +0 -1
  755. package/_cjs/chains/celo/index.js.map +0 -1
  756. package/_cjs/chains/celo/parsers.js +0 -131
  757. package/_cjs/chains/celo/parsers.js.map +0 -1
  758. package/_cjs/chains/celo/serializers.js +0 -122
  759. package/_cjs/chains/celo/serializers.js.map +0 -1
  760. package/_cjs/chains/celo/types.js.map +0 -1
  761. package/_cjs/chains/celo/utils.js +0 -46
  762. package/_cjs/chains/celo/utils.js.map +0 -1
  763. package/_cjs/chains/opStack/abis.js.map +0 -1
  764. package/_cjs/chains/opStack/actions/buildDepositTransaction.js +0 -32
  765. package/_cjs/chains/opStack/actions/buildDepositTransaction.js.map +0 -1
  766. package/_cjs/chains/opStack/actions/buildInitiateWithdrawal.js +0 -29
  767. package/_cjs/chains/opStack/actions/buildInitiateWithdrawal.js.map +0 -1
  768. package/_cjs/chains/opStack/actions/buildProveWithdrawal.js +0 -59
  769. package/_cjs/chains/opStack/actions/buildProveWithdrawal.js.map +0 -1
  770. package/_cjs/chains/opStack/actions/depositTransaction.js +0 -41
  771. package/_cjs/chains/opStack/actions/depositTransaction.js.map +0 -1
  772. package/_cjs/chains/opStack/actions/estimateContractL1Fee.js +0 -36
  773. package/_cjs/chains/opStack/actions/estimateContractL1Fee.js.map +0 -1
  774. package/_cjs/chains/opStack/actions/estimateContractL1Gas.js +0 -36
  775. package/_cjs/chains/opStack/actions/estimateContractL1Gas.js.map +0 -1
  776. package/_cjs/chains/opStack/actions/estimateContractTotalFee.js +0 -36
  777. package/_cjs/chains/opStack/actions/estimateContractTotalFee.js.map +0 -1
  778. package/_cjs/chains/opStack/actions/estimateContractTotalGas.js +0 -36
  779. package/_cjs/chains/opStack/actions/estimateContractTotalGas.js.map +0 -1
  780. package/_cjs/chains/opStack/actions/estimateDepositTransactionGas.js +0 -37
  781. package/_cjs/chains/opStack/actions/estimateDepositTransactionGas.js.map +0 -1
  782. package/_cjs/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +0 -29
  783. package/_cjs/chains/opStack/actions/estimateFinalizeWithdrawalGas.js.map +0 -1
  784. package/_cjs/chains/opStack/actions/estimateInitiateWithdrawalGas.js +0 -24
  785. package/_cjs/chains/opStack/actions/estimateInitiateWithdrawalGas.js.map +0 -1
  786. package/_cjs/chains/opStack/actions/estimateL1Fee.js +0 -37
  787. package/_cjs/chains/opStack/actions/estimateL1Fee.js.map +0 -1
  788. package/_cjs/chains/opStack/actions/estimateL1Gas.js +0 -37
  789. package/_cjs/chains/opStack/actions/estimateL1Gas.js.map +0 -1
  790. package/_cjs/chains/opStack/actions/estimateProveWithdrawalGas.js +0 -29
  791. package/_cjs/chains/opStack/actions/estimateProveWithdrawalGas.js.map +0 -1
  792. package/_cjs/chains/opStack/actions/estimateTotalFee.js +0 -18
  793. package/_cjs/chains/opStack/actions/estimateTotalFee.js.map +0 -1
  794. package/_cjs/chains/opStack/actions/estimateTotalGas.js +0 -16
  795. package/_cjs/chains/opStack/actions/estimateTotalGas.js.map +0 -1
  796. package/_cjs/chains/opStack/actions/finalizeWithdrawal.js +0 -33
  797. package/_cjs/chains/opStack/actions/finalizeWithdrawal.js.map +0 -1
  798. package/_cjs/chains/opStack/actions/getGame.js.map +0 -1
  799. package/_cjs/chains/opStack/actions/getGames.js +0 -56
  800. package/_cjs/chains/opStack/actions/getGames.js.map +0 -1
  801. package/_cjs/chains/opStack/actions/getL1BaseFee.js +0 -27
  802. package/_cjs/chains/opStack/actions/getL1BaseFee.js.map +0 -1
  803. package/_cjs/chains/opStack/actions/getL2Output.js +0 -42
  804. package/_cjs/chains/opStack/actions/getL2Output.js.map +0 -1
  805. package/_cjs/chains/opStack/actions/getPortalVersion.js +0 -25
  806. package/_cjs/chains/opStack/actions/getPortalVersion.js.map +0 -1
  807. package/_cjs/chains/opStack/actions/getTimeToFinalize.js +0 -72
  808. package/_cjs/chains/opStack/actions/getTimeToFinalize.js.map +0 -1
  809. package/_cjs/chains/opStack/actions/getTimeToNextGame.js.map +0 -1
  810. package/_cjs/chains/opStack/actions/getTimeToNextL2Output.js +0 -63
  811. package/_cjs/chains/opStack/actions/getTimeToNextL2Output.js.map +0 -1
  812. package/_cjs/chains/opStack/actions/getTimeToProve.js.map +0 -1
  813. package/_cjs/chains/opStack/actions/getWithdrawalStatus.js +0 -122
  814. package/_cjs/chains/opStack/actions/getWithdrawalStatus.js.map +0 -1
  815. package/_cjs/chains/opStack/actions/initiateWithdrawal.js +0 -28
  816. package/_cjs/chains/opStack/actions/initiateWithdrawal.js.map +0 -1
  817. package/_cjs/chains/opStack/actions/proveWithdrawal.js +0 -33
  818. package/_cjs/chains/opStack/actions/proveWithdrawal.js.map +0 -1
  819. package/_cjs/chains/opStack/actions/waitForNextGame.js +0 -35
  820. package/_cjs/chains/opStack/actions/waitForNextGame.js.map +0 -1
  821. package/_cjs/chains/opStack/actions/waitForNextL2Output.js +0 -32
  822. package/_cjs/chains/opStack/actions/waitForNextL2Output.js.map +0 -1
  823. package/_cjs/chains/opStack/actions/waitToFinalize.js +0 -11
  824. package/_cjs/chains/opStack/actions/waitToFinalize.js.map +0 -1
  825. package/_cjs/chains/opStack/actions/waitToProve.js.map +0 -1
  826. package/_cjs/chains/opStack/chainConfig.js.map +0 -1
  827. package/_cjs/chains/opStack/chains.js +0 -34
  828. package/_cjs/chains/opStack/chains.js.map +0 -1
  829. package/_cjs/chains/opStack/contracts.js.map +0 -1
  830. package/_cjs/chains/opStack/decorators/publicL1.js.map +0 -1
  831. package/_cjs/chains/opStack/decorators/publicL2.js.map +0 -1
  832. package/_cjs/chains/opStack/decorators/walletL1.js.map +0 -1
  833. package/_cjs/chains/opStack/decorators/walletL2.js.map +0 -1
  834. package/_cjs/chains/opStack/errors/withdrawal.js +0 -29
  835. package/_cjs/chains/opStack/errors/withdrawal.js.map +0 -1
  836. package/_cjs/chains/opStack/formatters.js +0 -54
  837. package/_cjs/chains/opStack/formatters.js.map +0 -1
  838. package/_cjs/chains/opStack/index.js.map +0 -1
  839. package/_cjs/chains/opStack/parsers.js +0 -55
  840. package/_cjs/chains/opStack/parsers.js.map +0 -1
  841. package/_cjs/chains/opStack/serializers.js +0 -52
  842. package/_cjs/chains/opStack/serializers.js.map +0 -1
  843. package/_cjs/chains/opStack/types/block.js.map +0 -1
  844. package/_cjs/chains/opStack/types/chain.js.map +0 -1
  845. package/_cjs/chains/opStack/types/contract.js.map +0 -1
  846. package/_cjs/chains/opStack/types/deposit.js.map +0 -1
  847. package/_cjs/chains/opStack/types/transaction.js.map +0 -1
  848. package/_cjs/chains/opStack/types/withdrawal.js.map +0 -1
  849. package/_cjs/chains/opStack/utils/extractTransactionDepositedLogs.js +0 -14
  850. package/_cjs/chains/opStack/utils/extractTransactionDepositedLogs.js.map +0 -1
  851. package/_cjs/chains/opStack/utils/extractWithdrawalMessageLogs.js +0 -14
  852. package/_cjs/chains/opStack/utils/extractWithdrawalMessageLogs.js.map +0 -1
  853. package/_cjs/chains/opStack/utils/getL2TransactionHash.js +0 -28
  854. package/_cjs/chains/opStack/utils/getL2TransactionHash.js.map +0 -1
  855. package/_cjs/chains/opStack/utils/getL2TransactionHashes.js.map +0 -1
  856. package/_cjs/chains/opStack/utils/getSourceHash.js +0 -21
  857. package/_cjs/chains/opStack/utils/getSourceHash.js.map +0 -1
  858. package/_cjs/chains/opStack/utils/getWithdrawalHashStorageSlot.js +0 -11
  859. package/_cjs/chains/opStack/utils/getWithdrawalHashStorageSlot.js.map +0 -1
  860. package/_cjs/chains/opStack/utils/getWithdrawals.js.map +0 -1
  861. package/_cjs/chains/opStack/utils/opaqueDataToDepositData.js +0 -29
  862. package/_cjs/chains/opStack/utils/opaqueDataToDepositData.js.map +0 -1
  863. package/_cjs/chains/zksync/actions/deployContract.js.map +0 -1
  864. package/_cjs/chains/zksync/actions/sendEip712Transaction.js +0 -52
  865. package/_cjs/chains/zksync/actions/sendEip712Transaction.js.map +0 -1
  866. package/_cjs/chains/zksync/actions/sendTransaction.js +0 -13
  867. package/_cjs/chains/zksync/actions/sendTransaction.js.map +0 -1
  868. package/_cjs/chains/zksync/actions/signEip712Transaction.js +0 -52
  869. package/_cjs/chains/zksync/actions/signEip712Transaction.js.map +0 -1
  870. package/_cjs/chains/zksync/actions/signTransaction.js +0 -13
  871. package/_cjs/chains/zksync/actions/signTransaction.js.map +0 -1
  872. package/_cjs/chains/zksync/chainConfig.js.map +0 -1
  873. package/_cjs/chains/zksync/chains.js +0 -10
  874. package/_cjs/chains/zksync/chains.js.map +0 -1
  875. package/_cjs/chains/zksync/constants/abis.js.map +0 -1
  876. package/_cjs/chains/zksync/constants/address.js.map +0 -1
  877. package/_cjs/chains/zksync/constants/contract.js.map +0 -1
  878. package/_cjs/chains/zksync/constants/number.js +0 -6
  879. package/_cjs/chains/zksync/constants/number.js.map +0 -1
  880. package/_cjs/chains/zksync/decorators/eip712.js +0 -19
  881. package/_cjs/chains/zksync/decorators/eip712.js.map +0 -1
  882. package/_cjs/chains/zksync/errors/bytecode.js +0 -41
  883. package/_cjs/chains/zksync/errors/bytecode.js.map +0 -1
  884. package/_cjs/chains/zksync/errors/transaction.js +0 -23
  885. package/_cjs/chains/zksync/errors/transaction.js.map +0 -1
  886. package/_cjs/chains/zksync/formatters.js +0 -134
  887. package/_cjs/chains/zksync/formatters.js.map +0 -1
  888. package/_cjs/chains/zksync/index.js.map +0 -1
  889. package/_cjs/chains/zksync/serializers.js +0 -45
  890. package/_cjs/chains/zksync/serializers.js.map +0 -1
  891. package/_cjs/chains/zksync/types/block.js.map +0 -1
  892. package/_cjs/chains/zksync/types/chain.js.map +0 -1
  893. package/_cjs/chains/zksync/types/contract.js.map +0 -1
  894. package/_cjs/chains/zksync/types/eip712.js.map +0 -1
  895. package/_cjs/chains/zksync/types/fee.js.map +0 -1
  896. package/_cjs/chains/zksync/types/log.js.map +0 -1
  897. package/_cjs/chains/zksync/types/transaction.js.map +0 -1
  898. package/_cjs/chains/zksync/utils/abi/encodeDeployData.js +0 -68
  899. package/_cjs/chains/zksync/utils/abi/encodeDeployData.js.map +0 -1
  900. package/_cjs/chains/zksync/utils/assertEip712Request.js +0 -13
  901. package/_cjs/chains/zksync/utils/assertEip712Request.js.map +0 -1
  902. package/_cjs/chains/zksync/utils/assertEip712Transaction.js +0 -30
  903. package/_cjs/chains/zksync/utils/assertEip712Transaction.js.map +0 -1
  904. package/_cjs/chains/zksync/utils/getEip712Domain.js +0 -56
  905. package/_cjs/chains/zksync/utils/getEip712Domain.js.map +0 -1
  906. package/_cjs/chains/zksync/utils/hashBytecode.js +0 -36
  907. package/_cjs/chains/zksync/utils/hashBytecode.js.map +0 -1
  908. package/_cjs/chains/zksync/utils/isEip712Transaction.js.map +0 -1
  909. package/_esm/chains/celo/chainConfig.js.map +0 -1
  910. package/_esm/chains/celo/formatters.js +0 -70
  911. package/_esm/chains/celo/formatters.js.map +0 -1
  912. package/_esm/chains/celo/index.js.map +0 -1
  913. package/_esm/chains/celo/parsers.js +0 -127
  914. package/_esm/chains/celo/parsers.js.map +0 -1
  915. package/_esm/chains/celo/serializers.js +0 -120
  916. package/_esm/chains/celo/serializers.js.map +0 -1
  917. package/_esm/chains/celo/types.js.map +0 -1
  918. package/_esm/chains/celo/utils.js +0 -50
  919. package/_esm/chains/celo/utils.js.map +0 -1
  920. package/_esm/chains/opStack/abis.js.map +0 -1
  921. package/_esm/chains/opStack/actions/buildDepositTransaction.js +0 -54
  922. package/_esm/chains/opStack/actions/buildDepositTransaction.js.map +0 -1
  923. package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js +0 -50
  924. package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js.map +0 -1
  925. package/_esm/chains/opStack/actions/buildProveWithdrawal.js +0 -88
  926. package/_esm/chains/opStack/actions/buildProveWithdrawal.js.map +0 -1
  927. package/_esm/chains/opStack/actions/depositTransaction.js +0 -91
  928. package/_esm/chains/opStack/actions/depositTransaction.js.map +0 -1
  929. package/_esm/chains/opStack/actions/estimateContractL1Fee.js +0 -55
  930. package/_esm/chains/opStack/actions/estimateContractL1Fee.js.map +0 -1
  931. package/_esm/chains/opStack/actions/estimateContractL1Gas.js +0 -55
  932. package/_esm/chains/opStack/actions/estimateContractL1Gas.js.map +0 -1
  933. package/_esm/chains/opStack/actions/estimateContractTotalFee.js +0 -55
  934. package/_esm/chains/opStack/actions/estimateContractTotalFee.js.map +0 -1
  935. package/_esm/chains/opStack/actions/estimateContractTotalGas.js +0 -55
  936. package/_esm/chains/opStack/actions/estimateContractTotalGas.js.map +0 -1
  937. package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js +0 -62
  938. package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js.map +0 -1
  939. package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +0 -50
  940. package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js.map +0 -1
  941. package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js +0 -48
  942. package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js.map +0 -1
  943. package/_esm/chains/opStack/actions/estimateL1Fee.js +0 -58
  944. package/_esm/chains/opStack/actions/estimateL1Fee.js.map +0 -1
  945. package/_esm/chains/opStack/actions/estimateL1Gas.js +0 -58
  946. package/_esm/chains/opStack/actions/estimateL1Gas.js.map +0 -1
  947. package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js +0 -53
  948. package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js.map +0 -1
  949. package/_esm/chains/opStack/actions/estimateTotalFee.js +0 -38
  950. package/_esm/chains/opStack/actions/estimateTotalFee.js.map +0 -1
  951. package/_esm/chains/opStack/actions/estimateTotalGas.js +0 -36
  952. package/_esm/chains/opStack/actions/estimateTotalGas.js.map +0 -1
  953. package/_esm/chains/opStack/actions/finalizeWithdrawal.js +0 -53
  954. package/_esm/chains/opStack/actions/finalizeWithdrawal.js.map +0 -1
  955. package/_esm/chains/opStack/actions/getGame.js.map +0 -1
  956. package/_esm/chains/opStack/actions/getGames.js +0 -75
  957. package/_esm/chains/opStack/actions/getGames.js.map +0 -1
  958. package/_esm/chains/opStack/actions/getL1BaseFee.js +0 -44
  959. package/_esm/chains/opStack/actions/getL1BaseFee.js.map +0 -1
  960. package/_esm/chains/opStack/actions/getL2Output.js +0 -62
  961. package/_esm/chains/opStack/actions/getL2Output.js.map +0 -1
  962. package/_esm/chains/opStack/actions/getPortalVersion.js +0 -48
  963. package/_esm/chains/opStack/actions/getPortalVersion.js.map +0 -1
  964. package/_esm/chains/opStack/actions/getTimeToFinalize.js +0 -104
  965. package/_esm/chains/opStack/actions/getTimeToFinalize.js.map +0 -1
  966. package/_esm/chains/opStack/actions/getTimeToNextGame.js.map +0 -1
  967. package/_esm/chains/opStack/actions/getTimeToNextL2Output.js +0 -91
  968. package/_esm/chains/opStack/actions/getTimeToNextL2Output.js.map +0 -1
  969. package/_esm/chains/opStack/actions/getTimeToProve.js.map +0 -1
  970. package/_esm/chains/opStack/actions/getWithdrawalStatus.js +0 -151
  971. package/_esm/chains/opStack/actions/getWithdrawalStatus.js.map +0 -1
  972. package/_esm/chains/opStack/actions/initiateWithdrawal.js +0 -76
  973. package/_esm/chains/opStack/actions/initiateWithdrawal.js.map +0 -1
  974. package/_esm/chains/opStack/actions/proveWithdrawal.js +0 -57
  975. package/_esm/chains/opStack/actions/proveWithdrawal.js.map +0 -1
  976. package/_esm/chains/opStack/actions/waitForNextGame.js +0 -61
  977. package/_esm/chains/opStack/actions/waitForNextGame.js.map +0 -1
  978. package/_esm/chains/opStack/actions/waitForNextL2Output.js +0 -58
  979. package/_esm/chains/opStack/actions/waitForNextL2Output.js.map +0 -1
  980. package/_esm/chains/opStack/actions/waitToFinalize.js +0 -41
  981. package/_esm/chains/opStack/actions/waitToFinalize.js.map +0 -1
  982. package/_esm/chains/opStack/actions/waitToProve.js.map +0 -1
  983. package/_esm/chains/opStack/chainConfig.js.map +0 -1
  984. package/_esm/chains/opStack/chains.js +0 -16
  985. package/_esm/chains/opStack/chains.js.map +0 -1
  986. package/_esm/chains/opStack/contracts.js.map +0 -1
  987. package/_esm/chains/opStack/decorators/publicL1.js.map +0 -1
  988. package/_esm/chains/opStack/decorators/publicL2.js.map +0 -1
  989. package/_esm/chains/opStack/decorators/walletL1.js.map +0 -1
  990. package/_esm/chains/opStack/decorators/walletL2.js.map +0 -1
  991. package/_esm/chains/opStack/errors/withdrawal.js +0 -24
  992. package/_esm/chains/opStack/errors/withdrawal.js.map +0 -1
  993. package/_esm/chains/opStack/formatters.js +0 -53
  994. package/_esm/chains/opStack/formatters.js.map +0 -1
  995. package/_esm/chains/opStack/index.js +0 -46
  996. package/_esm/chains/opStack/index.js.map +0 -1
  997. package/_esm/chains/opStack/parsers.js +0 -51
  998. package/_esm/chains/opStack/parsers.js.map +0 -1
  999. package/_esm/chains/opStack/serializers.js +0 -47
  1000. package/_esm/chains/opStack/serializers.js.map +0 -1
  1001. package/_esm/chains/opStack/types/block.js.map +0 -1
  1002. package/_esm/chains/opStack/types/chain.js.map +0 -1
  1003. package/_esm/chains/opStack/types/contract.js.map +0 -1
  1004. package/_esm/chains/opStack/types/deposit.js.map +0 -1
  1005. package/_esm/chains/opStack/types/transaction.js.map +0 -1
  1006. package/_esm/chains/opStack/types/withdrawal.js.map +0 -1
  1007. package/_esm/chains/opStack/utils/extractTransactionDepositedLogs.js +0 -10
  1008. package/_esm/chains/opStack/utils/extractTransactionDepositedLogs.js.map +0 -1
  1009. package/_esm/chains/opStack/utils/extractWithdrawalMessageLogs.js +0 -10
  1010. package/_esm/chains/opStack/utils/extractWithdrawalMessageLogs.js.map +0 -1
  1011. package/_esm/chains/opStack/utils/getL2TransactionHash.js +0 -25
  1012. package/_esm/chains/opStack/utils/getL2TransactionHash.js.map +0 -1
  1013. package/_esm/chains/opStack/utils/getL2TransactionHashes.js.map +0 -1
  1014. package/_esm/chains/opStack/utils/getSourceHash.js +0 -18
  1015. package/_esm/chains/opStack/utils/getSourceHash.js.map +0 -1
  1016. package/_esm/chains/opStack/utils/getWithdrawalHashStorageSlot.js +0 -7
  1017. package/_esm/chains/opStack/utils/getWithdrawalHashStorageSlot.js.map +0 -1
  1018. package/_esm/chains/opStack/utils/getWithdrawals.js.map +0 -1
  1019. package/_esm/chains/opStack/utils/opaqueDataToDepositData.js +0 -25
  1020. package/_esm/chains/opStack/utils/opaqueDataToDepositData.js.map +0 -1
  1021. package/_esm/chains/zksync/actions/deployContract.js.map +0 -1
  1022. package/_esm/chains/zksync/actions/sendEip712Transaction.js +0 -91
  1023. package/_esm/chains/zksync/actions/sendEip712Transaction.js.map +0 -1
  1024. package/_esm/chains/zksync/actions/sendTransaction.js +0 -54
  1025. package/_esm/chains/zksync/actions/sendTransaction.js.map +0 -1
  1026. package/_esm/chains/zksync/actions/signEip712Transaction.js +0 -86
  1027. package/_esm/chains/zksync/actions/signEip712Transaction.js.map +0 -1
  1028. package/_esm/chains/zksync/actions/signTransaction.js +0 -49
  1029. package/_esm/chains/zksync/actions/signTransaction.js.map +0 -1
  1030. package/_esm/chains/zksync/chainConfig.js.map +0 -1
  1031. package/_esm/chains/zksync/chains.js +0 -4
  1032. package/_esm/chains/zksync/chains.js.map +0 -1
  1033. package/_esm/chains/zksync/constants/abis.js.map +0 -1
  1034. package/_esm/chains/zksync/constants/address.js.map +0 -1
  1035. package/_esm/chains/zksync/constants/contract.js.map +0 -1
  1036. package/_esm/chains/zksync/constants/number.js +0 -3
  1037. package/_esm/chains/zksync/constants/number.js.map +0 -1
  1038. package/_esm/chains/zksync/decorators/eip712.js +0 -15
  1039. package/_esm/chains/zksync/decorators/eip712.js.map +0 -1
  1040. package/_esm/chains/zksync/errors/bytecode.js +0 -35
  1041. package/_esm/chains/zksync/errors/bytecode.js.map +0 -1
  1042. package/_esm/chains/zksync/errors/transaction.js +0 -19
  1043. package/_esm/chains/zksync/errors/transaction.js.map +0 -1
  1044. package/_esm/chains/zksync/formatters.js +0 -132
  1045. package/_esm/chains/zksync/formatters.js.map +0 -1
  1046. package/_esm/chains/zksync/index.js.map +0 -1
  1047. package/_esm/chains/zksync/serializers.js +0 -41
  1048. package/_esm/chains/zksync/serializers.js.map +0 -1
  1049. package/_esm/chains/zksync/types/block.js.map +0 -1
  1050. package/_esm/chains/zksync/types/chain.js.map +0 -1
  1051. package/_esm/chains/zksync/types/contract.js.map +0 -1
  1052. package/_esm/chains/zksync/types/eip712.js.map +0 -1
  1053. package/_esm/chains/zksync/types/fee.js.map +0 -1
  1054. package/_esm/chains/zksync/types/log.js.map +0 -1
  1055. package/_esm/chains/zksync/types/transaction.js.map +0 -1
  1056. package/_esm/chains/zksync/utils/abi/encodeDeployData.js +0 -65
  1057. package/_esm/chains/zksync/utils/abi/encodeDeployData.js.map +0 -1
  1058. package/_esm/chains/zksync/utils/assertEip712Request.js +0 -9
  1059. package/_esm/chains/zksync/utils/assertEip712Request.js.map +0 -1
  1060. package/_esm/chains/zksync/utils/assertEip712Transaction.js +0 -26
  1061. package/_esm/chains/zksync/utils/assertEip712Transaction.js.map +0 -1
  1062. package/_esm/chains/zksync/utils/getEip712Domain.js +0 -54
  1063. package/_esm/chains/zksync/utils/getEip712Domain.js.map +0 -1
  1064. package/_esm/chains/zksync/utils/hashBytecode.js +0 -36
  1065. package/_esm/chains/zksync/utils/hashBytecode.js.map +0 -1
  1066. package/_esm/chains/zksync/utils/isEip712Transaction.js.map +0 -1
  1067. package/_types/chains/celo/chainConfig.d.ts +0 -2107
  1068. package/_types/chains/celo/chainConfig.d.ts.map +0 -1
  1069. package/_types/chains/celo/formatters.d.ts +0 -2104
  1070. package/_types/chains/celo/formatters.d.ts.map +0 -1
  1071. package/_types/chains/celo/index.d.ts.map +0 -1
  1072. package/_types/chains/celo/parsers.d.ts +0 -6
  1073. package/_types/chains/celo/parsers.d.ts.map +0 -1
  1074. package/_types/chains/celo/serializers.d.ts +0 -11
  1075. package/_types/chains/celo/serializers.d.ts.map +0 -1
  1076. package/_types/chains/celo/types.d.ts +0 -121
  1077. package/_types/chains/celo/types.d.ts.map +0 -1
  1078. package/_types/chains/celo/utils.d.ts.map +0 -1
  1079. package/_types/chains/opStack/abis.d.ts.map +0 -1
  1080. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +0 -65
  1081. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +0 -1
  1082. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +0 -50
  1083. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts.map +0 -1
  1084. package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts +0 -54
  1085. package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts.map +0 -1
  1086. package/_types/chains/opStack/actions/depositTransaction.d.ts +0 -80
  1087. package/_types/chains/opStack/actions/depositTransaction.d.ts.map +0 -1
  1088. package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts +0 -39
  1089. package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts.map +0 -1
  1090. package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts +0 -39
  1091. package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts.map +0 -1
  1092. package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts +0 -39
  1093. package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts.map +0 -1
  1094. package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts +0 -39
  1095. package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts.map +0 -1
  1096. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +0 -50
  1097. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts.map +0 -1
  1098. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +0 -45
  1099. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts.map +0 -1
  1100. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +0 -51
  1101. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts.map +0 -1
  1102. package/_types/chains/opStack/actions/estimateL1Fee.d.ts +0 -43
  1103. package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +0 -1
  1104. package/_types/chains/opStack/actions/estimateL1Gas.d.ts +0 -43
  1105. package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +0 -1
  1106. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +0 -63
  1107. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts.map +0 -1
  1108. package/_types/chains/opStack/actions/estimateTotalFee.d.ts +0 -37
  1109. package/_types/chains/opStack/actions/estimateTotalFee.d.ts.map +0 -1
  1110. package/_types/chains/opStack/actions/estimateTotalGas.d.ts +0 -36
  1111. package/_types/chains/opStack/actions/estimateTotalGas.d.ts.map +0 -1
  1112. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +0 -49
  1113. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts.map +0 -1
  1114. package/_types/chains/opStack/actions/getGame.d.ts +0 -57
  1115. package/_types/chains/opStack/actions/getGame.d.ts.map +0 -1
  1116. package/_types/chains/opStack/actions/getGames.d.ts +0 -48
  1117. package/_types/chains/opStack/actions/getGames.d.ts.map +0 -1
  1118. package/_types/chains/opStack/actions/getL1BaseFee.d.ts +0 -35
  1119. package/_types/chains/opStack/actions/getL1BaseFee.d.ts.map +0 -1
  1120. package/_types/chains/opStack/actions/getL2Output.d.ts +0 -51
  1121. package/_types/chains/opStack/actions/getL2Output.d.ts.map +0 -1
  1122. package/_types/chains/opStack/actions/getPortalVersion.d.ts +0 -46
  1123. package/_types/chains/opStack/actions/getPortalVersion.d.ts.map +0 -1
  1124. package/_types/chains/opStack/actions/getTimeToFinalize.d.ts +0 -57
  1125. package/_types/chains/opStack/actions/getTimeToFinalize.d.ts.map +0 -1
  1126. package/_types/chains/opStack/actions/getTimeToNextGame.d.ts +0 -61
  1127. package/_types/chains/opStack/actions/getTimeToNextGame.d.ts.map +0 -1
  1128. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +0 -61
  1129. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts.map +0 -1
  1130. package/_types/chains/opStack/actions/getTimeToProve.d.ts +0 -53
  1131. package/_types/chains/opStack/actions/getTimeToProve.d.ts.map +0 -1
  1132. package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts +0 -54
  1133. package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts.map +0 -1
  1134. package/_types/chains/opStack/actions/initiateWithdrawal.d.ts +0 -77
  1135. package/_types/chains/opStack/actions/initiateWithdrawal.d.ts.map +0 -1
  1136. package/_types/chains/opStack/actions/proveWithdrawal.d.ts +0 -67
  1137. package/_types/chains/opStack/actions/proveWithdrawal.d.ts.map +0 -1
  1138. package/_types/chains/opStack/actions/waitForNextGame.d.ts +0 -60
  1139. package/_types/chains/opStack/actions/waitForNextGame.d.ts.map +0 -1
  1140. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +0 -55
  1141. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts.map +0 -1
  1142. package/_types/chains/opStack/actions/waitToFinalize.d.ts +0 -45
  1143. package/_types/chains/opStack/actions/waitToFinalize.d.ts.map +0 -1
  1144. package/_types/chains/opStack/actions/waitToProve.d.ts +0 -63
  1145. package/_types/chains/opStack/actions/waitToProve.d.ts.map +0 -1
  1146. package/_types/chains/opStack/chainConfig.d.ts +0 -1037
  1147. package/_types/chains/opStack/chainConfig.d.ts.map +0 -1
  1148. package/_types/chains/opStack/chains.d.ts +0 -16
  1149. package/_types/chains/opStack/chains.d.ts.map +0 -1
  1150. package/_types/chains/opStack/contracts.d.ts.map +0 -1
  1151. package/_types/chains/opStack/decorators/publicL1.d.ts +0 -530
  1152. package/_types/chains/opStack/decorators/publicL1.d.ts.map +0 -1
  1153. package/_types/chains/opStack/decorators/publicL2.d.ts +0 -333
  1154. package/_types/chains/opStack/decorators/publicL2.d.ts.map +0 -1
  1155. package/_types/chains/opStack/decorators/walletL1.d.ts +0 -136
  1156. package/_types/chains/opStack/decorators/walletL1.d.ts.map +0 -1
  1157. package/_types/chains/opStack/decorators/walletL2.d.ts +0 -79
  1158. package/_types/chains/opStack/decorators/walletL2.d.ts.map +0 -1
  1159. package/_types/chains/opStack/errors/withdrawal.d.ts +0 -19
  1160. package/_types/chains/opStack/errors/withdrawal.d.ts.map +0 -1
  1161. package/_types/chains/opStack/formatters.d.ts +0 -1015
  1162. package/_types/chains/opStack/formatters.d.ts.map +0 -1
  1163. package/_types/chains/opStack/index.d.ts +0 -48
  1164. package/_types/chains/opStack/index.d.ts.map +0 -1
  1165. package/_types/chains/opStack/parsers.d.ts +0 -8
  1166. package/_types/chains/opStack/parsers.d.ts.map +0 -1
  1167. package/_types/chains/opStack/serializers.d.ts +0 -13
  1168. package/_types/chains/opStack/serializers.d.ts.map +0 -1
  1169. package/_types/chains/opStack/types/block.d.ts +0 -13
  1170. package/_types/chains/opStack/types/block.d.ts.map +0 -1
  1171. package/_types/chains/opStack/types/chain.d.ts +0 -9
  1172. package/_types/chains/opStack/types/chain.d.ts.map +0 -1
  1173. package/_types/chains/opStack/types/contract.d.ts +0 -14
  1174. package/_types/chains/opStack/types/contract.d.ts.map +0 -1
  1175. package/_types/chains/opStack/types/deposit.d.ts +0 -25
  1176. package/_types/chains/opStack/types/deposit.d.ts.map +0 -1
  1177. package/_types/chains/opStack/types/transaction.d.ts +0 -56
  1178. package/_types/chains/opStack/types/transaction.d.ts.map +0 -1
  1179. package/_types/chains/opStack/types/withdrawal.d.ts +0 -29
  1180. package/_types/chains/opStack/types/withdrawal.d.ts.map +0 -1
  1181. package/_types/chains/opStack/utils/extractTransactionDepositedLogs.d.ts +0 -446
  1182. package/_types/chains/opStack/utils/extractTransactionDepositedLogs.d.ts.map +0 -1
  1183. package/_types/chains/opStack/utils/extractWithdrawalMessageLogs.d.ts +0 -137
  1184. package/_types/chains/opStack/utils/extractWithdrawalMessageLogs.d.ts.map +0 -1
  1185. package/_types/chains/opStack/utils/getL2TransactionHash.d.ts +0 -12
  1186. package/_types/chains/opStack/utils/getL2TransactionHash.d.ts.map +0 -1
  1187. package/_types/chains/opStack/utils/getL2TransactionHashes.d.ts +0 -11
  1188. package/_types/chains/opStack/utils/getL2TransactionHashes.d.ts.map +0 -1
  1189. package/_types/chains/opStack/utils/getSourceHash.d.ts +0 -28
  1190. package/_types/chains/opStack/utils/getSourceHash.d.ts.map +0 -1
  1191. package/_types/chains/opStack/utils/getWithdrawalHashStorageSlot.d.ts +0 -11
  1192. package/_types/chains/opStack/utils/getWithdrawalHashStorageSlot.d.ts.map +0 -1
  1193. package/_types/chains/opStack/utils/getWithdrawals.d.ts +0 -12
  1194. package/_types/chains/opStack/utils/getWithdrawals.d.ts.map +0 -1
  1195. package/_types/chains/opStack/utils/opaqueDataToDepositData.d.ts +0 -15
  1196. package/_types/chains/opStack/utils/opaqueDataToDepositData.d.ts.map +0 -1
  1197. package/_types/chains/zksync/actions/deployContract.d.ts +0 -49
  1198. package/_types/chains/zksync/actions/deployContract.d.ts.map +0 -1
  1199. package/_types/chains/zksync/actions/sendEip712Transaction.d.ts +0 -50
  1200. package/_types/chains/zksync/actions/sendEip712Transaction.d.ts.map +0 -1
  1201. package/_types/chains/zksync/actions/sendTransaction.d.ts +0 -54
  1202. package/_types/chains/zksync/actions/sendTransaction.d.ts.map +0 -1
  1203. package/_types/chains/zksync/actions/signEip712Transaction.d.ts +0 -54
  1204. package/_types/chains/zksync/actions/signEip712Transaction.d.ts.map +0 -1
  1205. package/_types/chains/zksync/actions/signTransaction.d.ts +0 -56
  1206. package/_types/chains/zksync/actions/signTransaction.d.ts.map +0 -1
  1207. package/_types/chains/zksync/chainConfig.d.ts +0 -1281
  1208. package/_types/chains/zksync/chainConfig.d.ts.map +0 -1
  1209. package/_types/chains/zksync/chains.d.ts +0 -4
  1210. package/_types/chains/zksync/chains.d.ts.map +0 -1
  1211. package/_types/chains/zksync/constants/abis.d.ts.map +0 -1
  1212. package/_types/chains/zksync/constants/address.d.ts.map +0 -1
  1213. package/_types/chains/zksync/constants/contract.d.ts.map +0 -1
  1214. package/_types/chains/zksync/constants/number.d.ts.map +0 -1
  1215. package/_types/chains/zksync/decorators/eip712.d.ts +0 -183
  1216. package/_types/chains/zksync/decorators/eip712.d.ts.map +0 -1
  1217. package/_types/chains/zksync/errors/bytecode.d.ts +0 -30
  1218. package/_types/chains/zksync/errors/bytecode.d.ts.map +0 -1
  1219. package/_types/chains/zksync/errors/transaction.d.ts +0 -9
  1220. package/_types/chains/zksync/errors/transaction.d.ts.map +0 -1
  1221. package/_types/chains/zksync/formatters.d.ts +0 -1277
  1222. package/_types/chains/zksync/formatters.d.ts.map +0 -1
  1223. package/_types/chains/zksync/index.d.ts.map +0 -1
  1224. package/_types/chains/zksync/serializers.d.ts +0 -8
  1225. package/_types/chains/zksync/serializers.d.ts.map +0 -1
  1226. package/_types/chains/zksync/types/block.d.ts +0 -15
  1227. package/_types/chains/zksync/types/block.d.ts.map +0 -1
  1228. package/_types/chains/zksync/types/chain.d.ts +0 -9
  1229. package/_types/chains/zksync/types/chain.d.ts.map +0 -1
  1230. package/_types/chains/zksync/types/contract.d.ts.map +0 -1
  1231. package/_types/chains/zksync/types/eip712.d.ts +0 -27
  1232. package/_types/chains/zksync/types/eip712.d.ts.map +0 -1
  1233. package/_types/chains/zksync/types/fee.d.ts.map +0 -1
  1234. package/_types/chains/zksync/types/log.d.ts +0 -41
  1235. package/_types/chains/zksync/types/log.d.ts.map +0 -1
  1236. package/_types/chains/zksync/types/transaction.d.ts +0 -122
  1237. package/_types/chains/zksync/types/transaction.d.ts.map +0 -1
  1238. package/_types/chains/zksync/utils/abi/encodeDeployData.d.ts +0 -13
  1239. package/_types/chains/zksync/utils/abi/encodeDeployData.d.ts.map +0 -1
  1240. package/_types/chains/zksync/utils/assertEip712Request.d.ts +0 -9
  1241. package/_types/chains/zksync/utils/assertEip712Request.d.ts.map +0 -1
  1242. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts +0 -4
  1243. package/_types/chains/zksync/utils/assertEip712Transaction.d.ts.map +0 -1
  1244. package/_types/chains/zksync/utils/getEip712Domain.d.ts.map +0 -1
  1245. package/_types/chains/zksync/utils/hashBytecode.d.ts +0 -3
  1246. package/_types/chains/zksync/utils/hashBytecode.d.ts.map +0 -1
  1247. package/_types/chains/zksync/utils/isEip712Transaction.d.ts +0 -4
  1248. package/_types/chains/zksync/utils/isEip712Transaction.d.ts.map +0 -1
  1249. package/chains/celo/formatters.ts +0 -90
  1250. package/chains/celo/parsers.ts +0 -203
  1251. package/chains/celo/serializers.ts +0 -228
  1252. package/chains/celo/types.ts +0 -245
  1253. package/chains/celo/utils.ts +0 -81
  1254. package/chains/opStack/actions/buildDepositTransaction.ts +0 -156
  1255. package/chains/opStack/actions/buildInitiateWithdrawal.ts +0 -118
  1256. package/chains/opStack/actions/buildProveWithdrawal.ts +0 -180
  1257. package/chains/opStack/actions/depositTransaction.ts +0 -177
  1258. package/chains/opStack/actions/estimateContractL1Fee.ts +0 -142
  1259. package/chains/opStack/actions/estimateContractL1Gas.ts +0 -142
  1260. package/chains/opStack/actions/estimateContractTotalFee.ts +0 -144
  1261. package/chains/opStack/actions/estimateContractTotalGas.ts +0 -144
  1262. package/chains/opStack/actions/estimateDepositTransactionGas.ts +0 -138
  1263. package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +0 -118
  1264. package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +0 -118
  1265. package/chains/opStack/actions/estimateL1Fee.ts +0 -122
  1266. package/chains/opStack/actions/estimateL1Gas.ts +0 -122
  1267. package/chains/opStack/actions/estimateProveWithdrawalGas.ts +0 -139
  1268. package/chains/opStack/actions/estimateTotalFee.ts +0 -86
  1269. package/chains/opStack/actions/estimateTotalGas.ts +0 -80
  1270. package/chains/opStack/actions/finalizeWithdrawal.ts +0 -131
  1271. package/chains/opStack/actions/getGame.ts +0 -99
  1272. package/chains/opStack/actions/getGames.ts +0 -133
  1273. package/chains/opStack/actions/getL1BaseFee.ts +0 -81
  1274. package/chains/opStack/actions/getL2Output.ts +0 -130
  1275. package/chains/opStack/actions/getPortalVersion.ts +0 -87
  1276. package/chains/opStack/actions/getTimeToFinalize.ts +0 -159
  1277. package/chains/opStack/actions/getTimeToNextGame.ts +0 -143
  1278. package/chains/opStack/actions/getTimeToNextL2Output.ts +0 -162
  1279. package/chains/opStack/actions/getTimeToProve.ts +0 -119
  1280. package/chains/opStack/actions/getWithdrawalStatus.ts +0 -244
  1281. package/chains/opStack/actions/initiateWithdrawal.ts +0 -153
  1282. package/chains/opStack/actions/proveWithdrawal.ts +0 -154
  1283. package/chains/opStack/actions/waitForNextGame.ts +0 -122
  1284. package/chains/opStack/actions/waitForNextL2Output.ts +0 -117
  1285. package/chains/opStack/actions/waitToFinalize.ts +0 -64
  1286. package/chains/opStack/actions/waitToProve.ts +0 -157
  1287. package/chains/opStack/chains.ts +0 -15
  1288. package/chains/opStack/contracts.ts +0 -18
  1289. package/chains/opStack/decorators/publicL1.ts +0 -693
  1290. package/chains/opStack/decorators/publicL2.ts +0 -516
  1291. package/chains/opStack/decorators/walletL1.ts +0 -172
  1292. package/chains/opStack/decorators/walletL2.ts +0 -101
  1293. package/chains/opStack/errors/withdrawal.ts +0 -25
  1294. package/chains/opStack/formatters.ts +0 -76
  1295. package/chains/opStack/index.ts +0 -269
  1296. package/chains/opStack/parsers.ts +0 -88
  1297. package/chains/opStack/serializers.ts +0 -88
  1298. package/chains/opStack/types/block.ts +0 -34
  1299. package/chains/opStack/types/chain.ts +0 -10
  1300. package/chains/opStack/types/contract.ts +0 -26
  1301. package/chains/opStack/types/deposit.ts +0 -28
  1302. package/chains/opStack/types/transaction.ts +0 -106
  1303. package/chains/opStack/types/withdrawal.ts +0 -31
  1304. package/chains/opStack/utils/extractTransactionDepositedLogs.ts +0 -36
  1305. package/chains/opStack/utils/extractWithdrawalMessageLogs.ts +0 -36
  1306. package/chains/opStack/utils/getL2TransactionHash.ts +0 -52
  1307. package/chains/opStack/utils/getL2TransactionHashes.ts +0 -21
  1308. package/chains/opStack/utils/getSourceHash.ts +0 -61
  1309. package/chains/opStack/utils/getWithdrawalHashStorageSlot.ts +0 -29
  1310. package/chains/opStack/utils/getWithdrawals.ts +0 -25
  1311. package/chains/opStack/utils/opaqueDataToDepositData.ts +0 -45
  1312. package/chains/zksync/actions/deployContract.ts +0 -100
  1313. package/chains/zksync/actions/sendEip712Transaction.ts +0 -129
  1314. package/chains/zksync/actions/sendTransaction.ts +0 -79
  1315. package/chains/zksync/actions/signEip712Transaction.ts +0 -150
  1316. package/chains/zksync/actions/signTransaction.ts +0 -95
  1317. package/chains/zksync/chains.ts +0 -3
  1318. package/chains/zksync/constants/number.ts +0 -3
  1319. package/chains/zksync/decorators/eip712.ts +0 -233
  1320. package/chains/zksync/errors/bytecode.ts +0 -46
  1321. package/chains/zksync/errors/transaction.ts +0 -21
  1322. package/chains/zksync/formatters.ts +0 -155
  1323. package/chains/zksync/serializers.ts +0 -82
  1324. package/chains/zksync/types/block.ts +0 -34
  1325. package/chains/zksync/types/chain.ts +0 -25
  1326. package/chains/zksync/types/eip712.ts +0 -31
  1327. package/chains/zksync/types/log.ts +0 -57
  1328. package/chains/zksync/types/transaction.ts +0 -245
  1329. package/chains/zksync/utils/abi/encodeDeployData.ts +0 -120
  1330. package/chains/zksync/utils/assertEip712Request.ts +0 -19
  1331. package/chains/zksync/utils/assertEip712Transaction.ts +0 -36
  1332. package/chains/zksync/utils/getEip712Domain.ts +0 -85
  1333. package/chains/zksync/utils/hashBytecode.ts +0 -48
  1334. package/chains/zksync/utils/isEip712Transaction.ts +0 -18
  1335. /package/_cjs/{chains/celo → celo}/chainConfig.js +0 -0
  1336. /package/_cjs/{chains/celo → celo}/index.js +0 -0
  1337. /package/_cjs/{chains/celo → celo}/types.js +0 -0
  1338. /package/_cjs/{chains/opStack → op-stack}/abis.js +0 -0
  1339. /package/_cjs/{chains/opStack → op-stack}/actions/getGame.js +0 -0
  1340. /package/_cjs/{chains/opStack → op-stack}/actions/getTimeToNextGame.js +0 -0
  1341. /package/_cjs/{chains/opStack → op-stack}/actions/getTimeToProve.js +0 -0
  1342. /package/_cjs/{chains/opStack → op-stack}/actions/waitToProve.js +0 -0
  1343. /package/_cjs/{chains/opStack → op-stack}/chainConfig.js +0 -0
  1344. /package/_cjs/{chains/opStack → op-stack}/contracts.js +0 -0
  1345. /package/_cjs/{chains/opStack → op-stack}/decorators/publicL1.js +0 -0
  1346. /package/_cjs/{chains/opStack → op-stack}/decorators/publicL2.js +0 -0
  1347. /package/_cjs/{chains/opStack → op-stack}/decorators/walletL1.js +0 -0
  1348. /package/_cjs/{chains/opStack → op-stack}/decorators/walletL2.js +0 -0
  1349. /package/_cjs/{chains/opStack → op-stack}/index.js +0 -0
  1350. /package/_cjs/{chains/opStack → op-stack}/types/block.js +0 -0
  1351. /package/_cjs/{chains/opStack → op-stack}/types/chain.js +0 -0
  1352. /package/_cjs/{chains/opStack → op-stack}/types/contract.js +0 -0
  1353. /package/_cjs/{chains/opStack → op-stack}/types/deposit.js +0 -0
  1354. /package/_cjs/{chains/opStack → op-stack}/types/transaction.js +0 -0
  1355. /package/_cjs/{chains/opStack → op-stack}/types/withdrawal.js +0 -0
  1356. /package/_cjs/{chains/opStack → op-stack}/utils/getL2TransactionHashes.js +0 -0
  1357. /package/_cjs/{chains/opStack → op-stack}/utils/getWithdrawals.js +0 -0
  1358. /package/_cjs/{chains/zksync → zksync}/actions/deployContract.js +0 -0
  1359. /package/_cjs/{chains/zksync → zksync}/chainConfig.js +0 -0
  1360. /package/_cjs/{chains/zksync → zksync}/constants/abis.js +0 -0
  1361. /package/_cjs/{chains/zksync → zksync}/constants/address.js +0 -0
  1362. /package/_cjs/{chains/zksync → zksync}/constants/contract.js +0 -0
  1363. /package/_cjs/{chains/zksync → zksync}/index.js +0 -0
  1364. /package/_cjs/{chains/zksync → zksync}/types/block.js +0 -0
  1365. /package/_cjs/{chains/zksync → zksync}/types/chain.js +0 -0
  1366. /package/_cjs/{chains/zksync → zksync}/types/contract.js +0 -0
  1367. /package/_cjs/{chains/zksync → zksync}/types/eip712.js +0 -0
  1368. /package/_cjs/{chains/zksync → zksync}/types/fee.js +0 -0
  1369. /package/_cjs/{chains/zksync → zksync}/types/log.js +0 -0
  1370. /package/_cjs/{chains/zksync → zksync}/types/transaction.js +0 -0
  1371. /package/_cjs/{chains/zksync → zksync}/utils/isEip712Transaction.js +0 -0
  1372. /package/_esm/{chains/celo → celo}/chainConfig.js +0 -0
  1373. /package/_esm/{chains/celo → celo}/index.js +0 -0
  1374. /package/_esm/{chains/celo → celo}/types.js +0 -0
  1375. /package/_esm/{chains/opStack → op-stack}/abis.js +0 -0
  1376. /package/_esm/{chains/opStack → op-stack}/actions/getGame.js +0 -0
  1377. /package/_esm/{chains/opStack → op-stack}/actions/getTimeToNextGame.js +0 -0
  1378. /package/_esm/{chains/opStack → op-stack}/actions/getTimeToProve.js +0 -0
  1379. /package/_esm/{chains/opStack → op-stack}/actions/waitToProve.js +0 -0
  1380. /package/_esm/{chains/opStack → op-stack}/chainConfig.js +0 -0
  1381. /package/_esm/{chains/opStack → op-stack}/contracts.js +0 -0
  1382. /package/_esm/{chains/opStack → op-stack}/decorators/publicL1.js +0 -0
  1383. /package/_esm/{chains/opStack → op-stack}/decorators/publicL2.js +0 -0
  1384. /package/_esm/{chains/opStack → op-stack}/decorators/walletL1.js +0 -0
  1385. /package/_esm/{chains/opStack → op-stack}/decorators/walletL2.js +0 -0
  1386. /package/_esm/{chains/opStack → op-stack}/types/block.js +0 -0
  1387. /package/_esm/{chains/opStack → op-stack}/types/chain.js +0 -0
  1388. /package/_esm/{chains/opStack → op-stack}/types/contract.js +0 -0
  1389. /package/_esm/{chains/opStack → op-stack}/types/deposit.js +0 -0
  1390. /package/_esm/{chains/opStack → op-stack}/types/transaction.js +0 -0
  1391. /package/_esm/{chains/opStack → op-stack}/types/withdrawal.js +0 -0
  1392. /package/_esm/{chains/opStack → op-stack}/utils/getL2TransactionHashes.js +0 -0
  1393. /package/_esm/{chains/opStack → op-stack}/utils/getWithdrawals.js +0 -0
  1394. /package/_esm/{chains/zksync → zksync}/actions/deployContract.js +0 -0
  1395. /package/_esm/{chains/zksync → zksync}/chainConfig.js +0 -0
  1396. /package/_esm/{chains/zksync → zksync}/constants/abis.js +0 -0
  1397. /package/_esm/{chains/zksync → zksync}/constants/address.js +0 -0
  1398. /package/_esm/{chains/zksync → zksync}/constants/contract.js +0 -0
  1399. /package/_esm/{chains/zksync → zksync}/index.js +0 -0
  1400. /package/_esm/{chains/zksync → zksync}/types/block.js +0 -0
  1401. /package/_esm/{chains/zksync → zksync}/types/chain.js +0 -0
  1402. /package/_esm/{chains/zksync → zksync}/types/contract.js +0 -0
  1403. /package/_esm/{chains/zksync → zksync}/types/eip712.js +0 -0
  1404. /package/_esm/{chains/zksync → zksync}/types/fee.js +0 -0
  1405. /package/_esm/{chains/zksync → zksync}/types/log.js +0 -0
  1406. /package/_esm/{chains/zksync → zksync}/types/transaction.js +0 -0
  1407. /package/_esm/{chains/zksync → zksync}/utils/isEip712Transaction.js +0 -0
  1408. /package/_types/{chains/celo → celo}/index.d.ts +0 -0
  1409. /package/_types/{chains/celo → celo}/utils.d.ts +0 -0
  1410. /package/_types/{chains/opStack → op-stack}/abis.d.ts +0 -0
  1411. /package/_types/{chains/opStack → op-stack}/contracts.d.ts +0 -0
  1412. /package/_types/{chains/zksync → zksync}/constants/abis.d.ts +0 -0
  1413. /package/_types/{chains/zksync → zksync}/constants/address.d.ts +0 -0
  1414. /package/_types/{chains/zksync → zksync}/constants/contract.d.ts +0 -0
  1415. /package/_types/{chains/zksync → zksync}/constants/number.d.ts +0 -0
  1416. /package/_types/{chains/zksync → zksync}/index.d.ts +0 -0
  1417. /package/_types/{chains/zksync → zksync}/types/contract.d.ts +0 -0
  1418. /package/_types/{chains/zksync → zksync}/types/fee.d.ts +0 -0
  1419. /package/_types/{chains/zksync → zksync}/utils/getEip712Domain.d.ts +0 -0
  1420. /package/{chains/celo → celo}/chainConfig.ts +0 -0
  1421. /package/{chains/celo → celo}/index.ts +0 -0
  1422. /package/{chains/opStack → op-stack}/abis.ts +0 -0
  1423. /package/{chains/opStack → op-stack}/chainConfig.ts +0 -0
  1424. /package/{chains/zksync → zksync}/chainConfig.ts +0 -0
  1425. /package/{chains/zksync → zksync}/constants/abis.ts +0 -0
  1426. /package/{chains/zksync → zksync}/constants/address.ts +0 -0
  1427. /package/{chains/zksync → zksync}/constants/contract.ts +0 -0
  1428. /package/{chains/zksync → zksync}/index.ts +0 -0
  1429. /package/{chains/zksync → zksync}/types/contract.ts +0 -0
  1430. /package/{chains/zksync → zksync}/types/fee.ts +0 -0
@@ -0,0 +1,516 @@
1
+ import type { Abi, Address } from 'abitype'
2
+ import type { Client } from '../../clients/createClient.js'
3
+ import type { Transport } from '../../clients/transports/createTransport.js'
4
+ import type { Account } from '../../types/account.js'
5
+ import type { Chain } from '../../types/chain.js'
6
+ import type {
7
+ ContractFunctionArgs,
8
+ ContractFunctionName,
9
+ } from '../../types/contract.js'
10
+ import {
11
+ type BuildDepositTransactionParameters,
12
+ type BuildDepositTransactionReturnType,
13
+ buildDepositTransaction,
14
+ } from '../actions/buildDepositTransaction.js'
15
+ import {
16
+ type BuildProveWithdrawalParameters,
17
+ type BuildProveWithdrawalReturnType,
18
+ buildProveWithdrawal,
19
+ } from '../actions/buildProveWithdrawal.js'
20
+ import {
21
+ type EstimateContractL1FeeParameters,
22
+ type EstimateContractL1FeeReturnType,
23
+ estimateContractL1Fee,
24
+ } from '../actions/estimateContractL1Fee.js'
25
+ import {
26
+ type EstimateContractL1GasParameters,
27
+ type EstimateContractL1GasReturnType,
28
+ estimateContractL1Gas,
29
+ } from '../actions/estimateContractL1Gas.js'
30
+ import {
31
+ type EstimateContractTotalFeeParameters,
32
+ type EstimateContractTotalFeeReturnType,
33
+ estimateContractTotalFee,
34
+ } from '../actions/estimateContractTotalFee.js'
35
+ import {
36
+ type EstimateContractTotalGasParameters,
37
+ type EstimateContractTotalGasReturnType,
38
+ estimateContractTotalGas,
39
+ } from '../actions/estimateContractTotalGas.js'
40
+ import {
41
+ type EstimateInitiateWithdrawalGasParameters,
42
+ type EstimateInitiateWithdrawalGasReturnType,
43
+ estimateInitiateWithdrawalGas,
44
+ } from '../actions/estimateInitiateWithdrawalGas.js'
45
+ import {
46
+ type EstimateL1FeeParameters,
47
+ type EstimateL1FeeReturnType,
48
+ estimateL1Fee,
49
+ } from '../actions/estimateL1Fee.js'
50
+ import {
51
+ type EstimateL1GasParameters,
52
+ type EstimateL1GasReturnType,
53
+ estimateL1Gas,
54
+ } from '../actions/estimateL1Gas.js'
55
+ import {
56
+ type EstimateTotalFeeParameters,
57
+ type EstimateTotalFeeReturnType,
58
+ estimateTotalFee,
59
+ } from '../actions/estimateTotalFee.js'
60
+ import {
61
+ type EstimateTotalGasParameters,
62
+ type EstimateTotalGasReturnType,
63
+ estimateTotalGas,
64
+ } from '../actions/estimateTotalGas.js'
65
+ import {
66
+ type GetL1BaseFeeParameters,
67
+ type GetL1BaseFeeReturnType,
68
+ getL1BaseFee,
69
+ } from '../actions/getL1BaseFee.js'
70
+
71
+ export type PublicActionsL2<
72
+ chain extends Chain | undefined = Chain | undefined,
73
+ account extends Account | undefined = Account | undefined,
74
+ > = {
75
+ /**
76
+ * Prepares parameters for a [deposit transaction](https://github.com/ethereum-optimism/optimism/blob/develop/specs/deposits.md) to be initiated on an L1.
77
+ *
78
+ * - Docs: https://viem.sh/op-stack/actions/buildDepositTransaction
79
+ *
80
+ * @param client - Client to use
81
+ * @param parameters - {@link BuildDepositTransactionParameters}
82
+ * @returns Parameters for `depositTransaction`. {@link DepositTransactionReturnType}
83
+ *
84
+ * @example
85
+ * import { createWalletClient, http, parseEther } from 'viem'
86
+ * import { base } from 'viem/chains'
87
+ * import { publicActionsL2 } from 'viem/op-stack'
88
+ *
89
+ * const client = createWalletClient({
90
+ * chain: base,
91
+ * transport: http(),
92
+ * }).extend(publicActionsL2())
93
+ *
94
+ * const args = await client.buildDepositTransaction({
95
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
96
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
97
+ * value: parseEther('1'),
98
+ * })
99
+ */
100
+ buildDepositTransaction: <
101
+ chainOverride extends Chain | undefined = undefined,
102
+ accountOverride extends Account | Address | undefined = undefined,
103
+ >(
104
+ parameters: BuildDepositTransactionParameters<
105
+ chain,
106
+ account,
107
+ chainOverride,
108
+ accountOverride
109
+ >,
110
+ ) => Promise<BuildDepositTransactionReturnType<account, accountOverride>>
111
+ /**
112
+ * Builds the transaction that proves a withdrawal was initiated on an L2. Used in the Withdrawal flow.
113
+ *
114
+ * - Docs: https://viem.sh/op-stack/actions/buildProveWithdrawal
115
+ *
116
+ * @param client - Client to use
117
+ * @param parameters - {@link BuildProveWithdrawalParameters}
118
+ * @returns The prove withdraw transaction request. {@link BuildProveWithdrawalReturnType}
119
+ *
120
+ * @example
121
+ * import { createPublicClient, http } from 'viem'
122
+ * import { optimism } from 'viem/chains'
123
+ * import { publicActionsL2 } from 'viem/op-stack'
124
+ *
125
+ * const publicClientL2 = createPublicClient({
126
+ * chain: optimism,
127
+ * transport: http(),
128
+ * }).extend(publicActionsL2())
129
+ *
130
+ * const args = await publicClientL2.buildProveWithdrawal({
131
+ * output: { ... },
132
+ * withdrawal: { ... },
133
+ * })
134
+ */
135
+ buildProveWithdrawal: <
136
+ chainOverride extends Chain | undefined = undefined,
137
+ accountOverride extends Account | Address | undefined = undefined,
138
+ >(
139
+ parameters: BuildProveWithdrawalParameters<
140
+ chain,
141
+ account,
142
+ chainOverride,
143
+ accountOverride
144
+ >,
145
+ ) => Promise<
146
+ BuildProveWithdrawalReturnType<
147
+ chain,
148
+ account,
149
+ chainOverride,
150
+ accountOverride
151
+ >
152
+ >
153
+ /**
154
+ * Estimates the L1 data fee required to execute an L2 contract write.
155
+ *
156
+ * @param client - Client to use
157
+ * @param parameters - {@link EstimateContractL1FeeParameters}
158
+ * @returns The gas estimate (in wei). {@link EstimateContractL1FeeReturnType}
159
+ *
160
+ * @example
161
+ * import { createPublicClient, http, parseAbi } from 'viem'
162
+ * import { optimism } from 'viem/chains'
163
+ * import { publicActionsL2 } from 'viem/op-stack'
164
+ *
165
+ * const client = createPublicClient({
166
+ * chain: optimism,
167
+ * transport: http(),
168
+ * }).extend(publicActionsL2())
169
+ *
170
+ * const l1Fee = await client.estimateContractL1Fee({
171
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
172
+ * abi: parseAbi(['function mint() public']),
173
+ * functionName: 'mint',
174
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
175
+ * })
176
+ */
177
+ estimateContractL1Fee: <
178
+ const abi extends Abi | readonly unknown[],
179
+ functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>,
180
+ args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
181
+ chainOverride extends Chain | undefined = undefined,
182
+ >(
183
+ parameters: EstimateContractL1FeeParameters<
184
+ abi,
185
+ functionName,
186
+ args,
187
+ chain,
188
+ account,
189
+ chainOverride
190
+ >,
191
+ ) => Promise<EstimateContractL1FeeReturnType>
192
+ /**
193
+ * Estimates the L1 data gas required to successfully execute a contract write function call.
194
+ *
195
+ * @param client - Client to use
196
+ * @param parameters - {@link EstimateContractL1GasParameters}
197
+ * @returns The gas estimate (in wei). {@link EstimateContractL1GasReturnType}
198
+ *
199
+ * @example
200
+ * import { createPublicClient, http, parseAbi } from 'viem'
201
+ * import { optimism } from 'viem/chains'
202
+ * import { publicActionsL2 } from 'viem/op-stack'
203
+ *
204
+ * const client = createPublicClient({
205
+ * chain: optimism,
206
+ * transport: http(),
207
+ * }).extend(publicActionsL2())
208
+ *
209
+ * const l1Gas = await client.estimateContractL1Gas({
210
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
211
+ * abi: parseAbi(['function mint() public']),
212
+ * functionName: 'mint',
213
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
214
+ * })
215
+ */
216
+ estimateContractL1Gas: <
217
+ const abi extends Abi | readonly unknown[],
218
+ functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>,
219
+ args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
220
+ chainOverride extends Chain | undefined = undefined,
221
+ >(
222
+ parameters: EstimateContractL1GasParameters<
223
+ abi,
224
+ functionName,
225
+ args,
226
+ chain,
227
+ account,
228
+ chainOverride
229
+ >,
230
+ ) => Promise<EstimateContractL1GasReturnType>
231
+ /**
232
+ * Estimates the L1 + L2 fee to execute an L2 contract write.
233
+ *
234
+ * @param client - Client to use
235
+ * @param parameters - {@link EstimateContractTotalFeeParameters}
236
+ * @returns The gas estimate (in wei). {@link EstimateContractTotalFeeReturnType}
237
+ *
238
+ * @example
239
+ * import { createPublicClient, http, parseAbi } from 'viem'
240
+ * import { optimism } from 'viem/chains'
241
+ * import { publicActionsL2 } from 'viem/op-stack'
242
+ *
243
+ * const client = createPublicClient({
244
+ * chain: optimism,
245
+ * transport: http(),
246
+ * }).extend(publicActionsL2())
247
+ *
248
+ * const totalFee = await client.estimateContractTotalFee({
249
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
250
+ * abi: parseAbi(['function mint() public']),
251
+ * functionName: 'mint',
252
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
253
+ * })
254
+ */
255
+ estimateContractTotalFee: <
256
+ const abi extends Abi | readonly unknown[],
257
+ functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>,
258
+ args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
259
+ chainOverride extends Chain | undefined = undefined,
260
+ >(
261
+ parameters: EstimateContractTotalFeeParameters<
262
+ abi,
263
+ functionName,
264
+ args,
265
+ chain,
266
+ account,
267
+ chainOverride
268
+ >,
269
+ ) => Promise<EstimateContractTotalFeeReturnType>
270
+ /**
271
+ * Estimates the L1 data gas + L2 gas required to successfully execute a contract write function call.
272
+ *
273
+ * @param client - Client to use
274
+ * @param parameters - {@link EstimateContractTotalGasParameters}
275
+ * @returns The gas estimate (in wei). {@link EstimateContractTotalGasReturnType}
276
+ *
277
+ * @example
278
+ * import { createPublicClient, http, parseAbi } from 'viem'
279
+ * import { optimism } from 'viem/chains'
280
+ * import { publicActionsL2 } from 'viem/op-stack'
281
+ *
282
+ * const client = createPublicClient({
283
+ * chain: optimism,
284
+ * transport: http(),
285
+ * }).extend(publicActionsL2())
286
+ *
287
+ * const totalGas = await client.estimateContractTotalGas({
288
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
289
+ * abi: parseAbi(['function mint() public']),
290
+ * functionName: 'mint',
291
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
292
+ * })
293
+ */
294
+ estimateContractTotalGas: <
295
+ const abi extends Abi | readonly unknown[],
296
+ functionName extends ContractFunctionName<abi, 'nonpayable' | 'payable'>,
297
+ args extends ContractFunctionArgs<abi, 'pure' | 'view', functionName>,
298
+ chainOverride extends Chain | undefined = undefined,
299
+ >(
300
+ parameters: EstimateContractTotalGasParameters<
301
+ abi,
302
+ functionName,
303
+ args,
304
+ chain,
305
+ account,
306
+ chainOverride
307
+ >,
308
+ ) => Promise<EstimateContractTotalGasReturnType>
309
+ /**
310
+ * Estimates gas required to initiate a [withdrawal](https://community.optimism.io/docs/protocol/withdrawal-flow/#withdrawal-initiating-transaction) on an L2 to the L1.
311
+ *
312
+ * - Docs: https://viem.sh/op-stack/actions/estimateInitiateWithdrawalGas
313
+ *
314
+ * @param client - Client to use
315
+ * @param parameters - {@link EstimateInitiateWithdrawalGasParameters}
316
+ * @returns The gas required. {@link EstimateInitiateWithdrawalGasReturnType}
317
+ *
318
+ * @example
319
+ * import { createPublicClient, http, parseEther } from 'viem'
320
+ * import { base, mainnet } from 'viem/chains'
321
+ * import { publicActionsL2 } from 'viem/op-stack'
322
+ *
323
+ * const client = createPublicClient({
324
+ * chain: mainnet,
325
+ * transport: http(),
326
+ * }).extend(publicActionsL2())
327
+ *
328
+ * const hash = await client.estimateInitiateWithdrawalGas({
329
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
330
+ * request: {
331
+ * gas: 21_000n,
332
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
333
+ * value: parseEther('1'),
334
+ * },
335
+ * })
336
+ */
337
+ estimateInitiateWithdrawalGas: <
338
+ chainOverride extends Chain | undefined = undefined,
339
+ >(
340
+ parameters: EstimateInitiateWithdrawalGasParameters<
341
+ chain,
342
+ account,
343
+ chainOverride
344
+ >,
345
+ ) => Promise<EstimateInitiateWithdrawalGasReturnType>
346
+ /**
347
+ * Estimates the L1 data fee required to execute an L2 transaction.
348
+ *
349
+ * @param client - Client to use
350
+ * @param parameters - {@link EstimateL1FeeParameters}
351
+ * @returns The fee (in wei). {@link EstimateL1FeeReturnType}
352
+ *
353
+ * @example
354
+ * import { createPublicClient, http, parseEther } from 'viem'
355
+ * import { optimism } from 'viem/chains'
356
+ * import { publicActionsL2 } from 'viem/op-stack'
357
+ *
358
+ * const client = createPublicClient({
359
+ * chain: optimism,
360
+ * transport: http(),
361
+ * }).extend(publicActionsL2())
362
+ *
363
+ * const l1Fee = await client.estimateL1Fee({
364
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
365
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
366
+ * value: parseEther('1'),
367
+ * })
368
+ */
369
+ estimateL1Fee: <chainOverride extends Chain | undefined = undefined>(
370
+ parameters: EstimateL1FeeParameters<chain, account, chainOverride>,
371
+ ) => Promise<EstimateL1FeeReturnType>
372
+
373
+ /**
374
+ * Get the L1 basefee
375
+ *
376
+ * @param client - Client to use
377
+ * @param parameters - {@link GetL1BaseFeeParameters}
378
+ * @returns The fee (in wei). {@link GetL1BaseFeeReturnType}
379
+ *
380
+ * @example
381
+ * import { createPublicClient, http, parseEther } from 'viem'
382
+ * import { optimism } from 'viem/chains'
383
+ * import { publicActionsL2 } from 'viem/op-stack'
384
+ *
385
+ * const client = createPublicClient({
386
+ * chain: optimism,
387
+ * transport: http(),
388
+ * }).extend(publicActionsL2())
389
+ *
390
+ * const l1BaseFee = await client.getL1BaseFee()
391
+ */
392
+ getL1BaseFee: <chainOverride extends Chain | undefined = undefined>(
393
+ parameters?: GetL1BaseFeeParameters<chain, chainOverride> | undefined,
394
+ ) => Promise<GetL1BaseFeeReturnType>
395
+ /**
396
+ * Estimates the amount of L1 data gas required to execute an L2 transaction.
397
+ *
398
+ * @param client - Client to use
399
+ * @param parameters - {@link EstimateL1GasParameters}
400
+ * @returns The gas estimate. {@link EstimateL1GasReturnType}
401
+ *
402
+ * @example
403
+ * import { createPublicClient, http, parseEther } from 'viem'
404
+ * import { optimism } from 'viem/chains'
405
+ * import { publicActionsL2 } from 'viem/op-stack'
406
+ *
407
+ * const client = createPublicClient({
408
+ * chain: optimism,
409
+ * transport: http(),
410
+ * }).extend(publicActionsL2())
411
+ *
412
+ * const l1Gas = await client.estimateL1Gas({
413
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
414
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
415
+ * value: parseEther('1'),
416
+ * })
417
+ */
418
+ estimateL1Gas: <chainOverride extends Chain | undefined = undefined>(
419
+ parameters: EstimateL1GasParameters<chain, account, chainOverride>,
420
+ ) => Promise<EstimateL1GasReturnType>
421
+ /**
422
+ * Estimates the L1 data fee + L2 fee to execute an L2 transaction.
423
+ *
424
+ * @param client - Client to use
425
+ * @param parameters - {@link EstimateTotalFeeParameters}
426
+ * @returns The gas estimate. {@link EstimateTotalFeeReturnType}
427
+ *
428
+ * @example
429
+ * import { createPublicClient, http, parseEther } from 'viem'
430
+ * import { optimism } from 'viem/chains'
431
+ * import { publicActionsL2 } from 'viem/op-stack'
432
+ *
433
+ * const client = createPublicClient({
434
+ * chain: optimism,
435
+ * transport: http(),
436
+ * }).extend(publicActionsL2())
437
+ *
438
+ * const totalFee = await client.estimateTotalFee({
439
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
440
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
441
+ * value: parseEther('1'),
442
+ * })
443
+ */
444
+ estimateTotalFee: <chainOverride extends Chain | undefined = undefined>(
445
+ parameters: EstimateTotalFeeParameters<chain, account, chainOverride>,
446
+ ) => Promise<EstimateTotalFeeReturnType>
447
+ /**
448
+ * Estimates the total amount of combined L1 data gas + L2 gas required to execute an L2 transaction.
449
+ *
450
+ * @param client - Client to use
451
+ * @param parameters - {@link EstimateTotalGasParameters}
452
+ * @returns The gas estimate. {@link EstimateTotalGasReturnType}
453
+ *
454
+ * @example
455
+ * import { createPublicClient, http, parseEther } from 'viem'
456
+ * import { optimism } from 'viem/chains'
457
+ * import { publicActionsL2 } from 'viem/op-stack'
458
+ *
459
+ * const client = createPublicClient({
460
+ * chain: optimism,
461
+ * transport: http(),
462
+ * }).extend(publicActionsL2())
463
+ *
464
+ * const totalGas = await client.estimateTotalGas({
465
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
466
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
467
+ * value: parseEther('1'),
468
+ * })
469
+ */
470
+ estimateTotalGas: <chainOverride extends Chain | undefined = undefined>(
471
+ parameters: EstimateTotalGasParameters<chain, account, chainOverride>,
472
+ ) => Promise<EstimateTotalGasReturnType>
473
+ }
474
+
475
+ /**
476
+ * A suite of Public Actions for suited for development with Layer 2 (OP Stack) chains.
477
+ *
478
+ * - Docs: https://viem.sh/op-stack/client
479
+ *
480
+ * @example
481
+ * import { publicActionsL2 } from 'viem/op-stack'
482
+ * import { optimism } from 'viem/chains'
483
+ * import { buildDepositTransaction } from 'viem/wallet'
484
+ *
485
+ * export const opStackPublicClientL2 = createPublicClient({
486
+ * chain: optimism,
487
+ * transport: http(),
488
+ * }).extend(publicActionsL2())
489
+ */
490
+ export function publicActionsL2() {
491
+ return <
492
+ TTransport extends Transport,
493
+ TChain extends Chain | undefined = Chain | undefined,
494
+ TAccount extends Account | undefined = Account | undefined,
495
+ >(
496
+ client: Client<TTransport, TChain, TAccount>,
497
+ ): PublicActionsL2<TChain, TAccount> => {
498
+ return {
499
+ buildDepositTransaction: (args) => buildDepositTransaction(client, args),
500
+ buildProveWithdrawal: (args) => buildProveWithdrawal(client, args),
501
+ estimateContractL1Fee: (args) => estimateContractL1Fee(client, args),
502
+ estimateContractL1Gas: (args) => estimateContractL1Gas(client, args),
503
+ estimateContractTotalFee: (args) =>
504
+ estimateContractTotalFee(client, args),
505
+ estimateContractTotalGas: (args) =>
506
+ estimateContractTotalGas(client, args),
507
+ estimateInitiateWithdrawalGas: (args) =>
508
+ estimateInitiateWithdrawalGas(client, args),
509
+ estimateL1Fee: (args) => estimateL1Fee(client, args),
510
+ getL1BaseFee: (args) => getL1BaseFee(client, args),
511
+ estimateL1Gas: (args) => estimateL1Gas(client, args),
512
+ estimateTotalFee: (args) => estimateTotalFee(client, args),
513
+ estimateTotalGas: (args) => estimateTotalGas(client, args),
514
+ }
515
+ }
516
+ }
@@ -0,0 +1,172 @@
1
+ import type { Client } from '../../clients/createClient.js'
2
+ import type { Transport } from '../../clients/transports/createTransport.js'
3
+ import type { Account } from '../../types/account.js'
4
+ import type { Chain } from '../../types/chain.js'
5
+ import {
6
+ type DepositTransactionParameters,
7
+ type DepositTransactionReturnType,
8
+ depositTransaction,
9
+ } from '../actions/depositTransaction.js'
10
+ import {
11
+ type FinalizeWithdrawalParameters,
12
+ type FinalizeWithdrawalReturnType,
13
+ finalizeWithdrawal,
14
+ } from '../actions/finalizeWithdrawal.js'
15
+ import {
16
+ type ProveWithdrawalParameters,
17
+ type ProveWithdrawalReturnType,
18
+ proveWithdrawal,
19
+ } from '../actions/proveWithdrawal.js'
20
+
21
+ export type WalletActionsL1<
22
+ chain extends Chain | undefined = Chain | undefined,
23
+ account extends Account | undefined = Account | undefined,
24
+ > = {
25
+ /**
26
+ * Initiates a [deposit transaction](https://github.com/ethereum-optimism/optimism/blob/develop/specs/deposits.md) on an L1, which executes a transaction on L2.
27
+ *
28
+ * Internally performs a contract write to the [`depositTransaction` function](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L1/OptimismPortal.sol#L378)
29
+ * on the [Optimism Portal contract](https://github.com/ethereum-optimism/optimism/blob/develop/packages/contracts-bedrock/src/L1/OptimismPortal.sol).
30
+ *
31
+ * - Docs: https://viem.sh/op-stack/actions/depositTransaction
32
+ *
33
+ * @param client - Client to use
34
+ * @param parameters - {@link DepositTransactionParameters}
35
+ * @returns The L1 transaction hash. {@link DepositTransactionReturnType}
36
+ *
37
+ * @example
38
+ * import { createWalletClient, custom, parseEther } from 'viem'
39
+ * import { base, mainnet } from 'viem/chains'
40
+ * import { walletActionsL1 } from 'viem/op-stack'
41
+ *
42
+ * const client = createWalletClient({
43
+ * chain: mainnet,
44
+ * transport: custom(window.ethereum),
45
+ * }).extend(walletActionsL1())
46
+ *
47
+ * const hash = await client.depositTransaction({
48
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
49
+ * request: {
50
+ * gas: 21_000n,
51
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
52
+ * value: parseEther('1'),
53
+ * },
54
+ * targetChain: base,
55
+ * })
56
+ *
57
+ * @example
58
+ * // Account Hoisting
59
+ * import { createWalletClient, http } from 'viem'
60
+ * import { privateKeyToAccount } from 'viem/accounts'
61
+ * import { base, mainnet } from 'viem/chains'
62
+ * import { walletActionsL1 } from 'viem/op-stack'
63
+ *
64
+ * const client = createWalletClient({
65
+ * account: privateKeyToAccount('0x…'),
66
+ * chain: mainnet,
67
+ * transport: http(),
68
+ * }).extend(walletActionsL1())
69
+ *
70
+ * const hash = await client.depositTransaction({
71
+ * request: {
72
+ * gas: 21_000n,
73
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
74
+ * value: parseEther('1'),
75
+ * },
76
+ * targetChain: base,
77
+ * })
78
+ */
79
+ depositTransaction: <chainOverride extends Chain | undefined = undefined>(
80
+ parameters: DepositTransactionParameters<chain, account, chainOverride>,
81
+ ) => Promise<DepositTransactionReturnType>
82
+ /**
83
+ * Finalizes a withdrawal that occurred on an L2. Used in the Withdrawal flow.
84
+ *
85
+ * - Docs: https://viem.sh/op-stack/actions/finalizeWithdrawal
86
+ *
87
+ * @param client - Client to use
88
+ * @param parameters - {@link FinalizeWithdrawalParameters}
89
+ * @returns The finalize transaction hash. {@link FinalizeWithdrawalReturnType}
90
+ *
91
+ * @example
92
+ * import { createWalletClient, http } from 'viem'
93
+ * import { mainnet, optimism } from 'viem/chains'
94
+ * import { walletActionsL1 } from 'viem/op-stack'
95
+ *
96
+ * const walletClientL1 = createWalletClient({
97
+ * chain: mainnet,
98
+ * transport: http(),
99
+ * }).extend(walletActionsL1)
100
+ *
101
+ * const hash = await walletClientL1.finalizeWithdrawal({
102
+ * targetChain: optimism,
103
+ * withdrawal: { ... },
104
+ * })
105
+ */
106
+ finalizeWithdrawal: <chainOverride extends Chain | undefined = undefined>(
107
+ parameters: FinalizeWithdrawalParameters<chain, account, chainOverride>,
108
+ ) => Promise<FinalizeWithdrawalReturnType>
109
+ /**
110
+ * Proves a withdrawal that occurred on an L2. Used in the Withdrawal flow.
111
+ *
112
+ * - Docs: https://viem.sh/op-stack/actions/proveWithdrawal
113
+ *
114
+ * @param client - Client to use
115
+ * @param parameters - {@link ProveWithdrawalParameters}
116
+ * @returns The prove transaction hash. {@link ProveWithdrawalReturnType}
117
+ *
118
+ * @example
119
+ * import { createWalletClient, http } from 'viem'
120
+ * import { mainnet, optimism } from 'viem/chains'
121
+ * import { walletActionsL1 } from 'viem/op-stack'
122
+ *
123
+ * const walletClientL1 = createWalletClient({
124
+ * chain: mainnet,
125
+ * transport: http(),
126
+ * }).extend(walletActionsL1())
127
+ *
128
+ * const hash = await walletClientL1.proveWithdrawal({
129
+ * l2OutputIndex: 4529n,
130
+ * outputRootProof: { ... },
131
+ * targetChain: optimism,
132
+ * withdrawalProof: [ ... ],
133
+ * withdrawalTransaction: { ... },
134
+ * })
135
+ */
136
+ proveWithdrawal: <chainOverride extends Chain | undefined = undefined>(
137
+ parameters: ProveWithdrawalParameters<chain, account, chainOverride>,
138
+ ) => Promise<ProveWithdrawalReturnType>
139
+ }
140
+
141
+ /**
142
+ * A suite of Wallet Actions for suited for development with Layer 2 (OP Stack) chains.
143
+ *
144
+ * - Docs: https://viem.sh/op-stack/client
145
+ *
146
+ * @example
147
+ * import { createPublicClient, createWalletClient, http } from 'viem'
148
+ * import { mainnet } from 'viem/chains'
149
+ * import { walletActionsL1 } from 'viem/op-stack'
150
+ *
151
+ * const walletClient = createWalletClient({
152
+ * chain: mainnet,
153
+ * transport: http(),
154
+ * }).extend(walletActionsL1())
155
+ *
156
+ * const hash = await walletClient.depositTransaction({...})
157
+ */
158
+ export function walletActionsL1() {
159
+ return <
160
+ TTransport extends Transport,
161
+ TChain extends Chain | undefined = Chain | undefined,
162
+ TAccount extends Account | undefined = Account | undefined,
163
+ >(
164
+ client: Client<TTransport, TChain, TAccount>,
165
+ ): WalletActionsL1<TChain, TAccount> => {
166
+ return {
167
+ depositTransaction: (args) => depositTransaction(client, args),
168
+ finalizeWithdrawal: (args) => finalizeWithdrawal(client, args),
169
+ proveWithdrawal: (args) => proveWithdrawal(client, args),
170
+ }
171
+ }
172
+ }