viem 2.0.0-beta.2 → 2.0.0-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1108) hide show
  1. package/_cjs/errors/version.js +1 -1
  2. package/_esm/chains/celo/chainConfig.js +7 -0
  3. package/_esm/chains/celo/chainConfig.js.map +1 -0
  4. package/_esm/chains/celo/formatters.js +1 -1
  5. package/_esm/chains/celo/formatters.js.map +1 -1
  6. package/_esm/chains/celo/index.js +4 -0
  7. package/_esm/chains/celo/index.js.map +1 -0
  8. package/_esm/chains/celo/parsers.js +3 -3
  9. package/_esm/chains/celo/parsers.js.map +1 -1
  10. package/_esm/chains/celo/serializers.js +5 -5
  11. package/_esm/chains/celo/serializers.js.map +1 -1
  12. package/_esm/chains/definitions/base.js +3 -2
  13. package/_esm/chains/definitions/base.js.map +1 -1
  14. package/_esm/chains/definitions/baseGoerli.js +4 -3
  15. package/_esm/chains/definitions/baseGoerli.js.map +1 -1
  16. package/_esm/chains/definitions/baseSepolia.js +4 -3
  17. package/_esm/chains/definitions/baseSepolia.js.map +1 -1
  18. package/_esm/chains/definitions/celo.js +2 -4
  19. package/_esm/chains/definitions/celo.js.map +1 -1
  20. package/_esm/chains/definitions/celoAlfajores.js +2 -4
  21. package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
  22. package/_esm/chains/definitions/celoCannoli.js +2 -4
  23. package/_esm/chains/definitions/celoCannoli.js.map +1 -1
  24. package/_esm/chains/definitions/optimism.js +3 -2
  25. package/_esm/chains/definitions/optimism.js.map +1 -1
  26. package/_esm/chains/definitions/optimismGoerli.js +3 -2
  27. package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
  28. package/_esm/chains/definitions/optimismSepolia.js +3 -2
  29. package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
  30. package/_esm/chains/definitions/zkSync.js +2 -4
  31. package/_esm/chains/definitions/zkSync.js.map +1 -1
  32. package/_esm/chains/definitions/zkSyncTestnet.js +2 -4
  33. package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
  34. package/_esm/chains/definitions/zora.js +3 -2
  35. package/_esm/chains/definitions/zora.js.map +1 -1
  36. package/_esm/chains/definitions/zoraSepolia.js +3 -2
  37. package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
  38. package/_esm/chains/definitions/zoraTestnet.js +3 -2
  39. package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
  40. package/_esm/chains/opStack/abis.js +74 -0
  41. package/_esm/chains/opStack/abis.js.map +1 -0
  42. package/_esm/chains/opStack/actions/estimateContractL1Fee.js +55 -0
  43. package/_esm/chains/opStack/actions/estimateContractL1Fee.js.map +1 -0
  44. package/_esm/chains/opStack/actions/estimateContractL1Gas.js +55 -0
  45. package/_esm/chains/opStack/actions/estimateContractL1Gas.js.map +1 -0
  46. package/_esm/chains/opStack/actions/estimateContractTotalFee.js +55 -0
  47. package/_esm/chains/opStack/actions/estimateContractTotalFee.js.map +1 -0
  48. package/_esm/chains/opStack/actions/estimateContractTotalGas.js +55 -0
  49. package/_esm/chains/opStack/actions/estimateContractTotalGas.js.map +1 -0
  50. package/_esm/chains/opStack/actions/estimateL1Fee.js +74 -0
  51. package/_esm/chains/opStack/actions/estimateL1Fee.js.map +1 -0
  52. package/_esm/chains/opStack/actions/estimateL1Gas.js +74 -0
  53. package/_esm/chains/opStack/actions/estimateL1Gas.js.map +1 -0
  54. package/_esm/chains/opStack/actions/estimateTotalFee.js +38 -0
  55. package/_esm/chains/opStack/actions/estimateTotalFee.js.map +1 -0
  56. package/_esm/chains/opStack/actions/estimateTotalGas.js +36 -0
  57. package/_esm/chains/opStack/actions/estimateTotalGas.js.map +1 -0
  58. package/_esm/chains/opStack/chainConfig.js +7 -0
  59. package/_esm/chains/opStack/chainConfig.js.map +1 -0
  60. package/_esm/chains/opStack/contracts.js +13 -0
  61. package/_esm/chains/opStack/contracts.js.map +1 -0
  62. package/_esm/chains/opStack/decorators/public.js +23 -0
  63. package/_esm/chains/opStack/decorators/public.js.map +1 -0
  64. package/_esm/chains/{optimism → opStack}/formatters.js +1 -1
  65. package/_esm/chains/opStack/formatters.js.map +1 -0
  66. package/_esm/chains/opStack/index.js +20 -0
  67. package/_esm/chains/opStack/index.js.map +1 -0
  68. package/{_cjs/accounts → _esm/chains/opStack}/types.js.map +1 -1
  69. package/_esm/chains/utils.js +0 -5
  70. package/_esm/chains/utils.js.map +1 -1
  71. package/_esm/chains/zksync/chainConfig.js +7 -0
  72. package/_esm/chains/zksync/chainConfig.js.map +1 -0
  73. package/_esm/chains/zksync/formatters.js +2 -2
  74. package/_esm/chains/zksync/formatters.js.map +1 -1
  75. package/_esm/chains/zksync/index.js +3 -0
  76. package/_esm/chains/zksync/index.js.map +1 -0
  77. package/_esm/chains/zksync/serializers.js +7 -7
  78. package/_esm/chains/zksync/serializers.js.map +1 -1
  79. package/_esm/errors/version.js +1 -1
  80. package/_types/chains/celo/chainConfig.d.ts +884 -0
  81. package/_types/chains/celo/chainConfig.d.ts.map +1 -0
  82. package/_types/chains/celo/formatters.d.ts +92 -92
  83. package/_types/chains/celo/formatters.d.ts.map +1 -1
  84. package/_types/chains/celo/index.d.ts +5 -0
  85. package/_types/chains/celo/index.d.ts.map +1 -0
  86. package/_types/chains/celo/parsers.d.ts +3 -3
  87. package/_types/chains/celo/parsers.d.ts.map +1 -1
  88. package/_types/chains/celo/serializers.d.ts +2 -2
  89. package/_types/chains/celo/serializers.d.ts.map +1 -1
  90. package/_types/chains/definitions/base.d.ts +92 -74
  91. package/_types/chains/definitions/base.d.ts.map +1 -1
  92. package/_types/chains/definitions/baseGoerli.d.ts +92 -74
  93. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  94. package/_types/chains/definitions/baseSepolia.d.ts +94 -82
  95. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  96. package/_types/chains/definitions/celo.d.ts +97 -97
  97. package/_types/chains/definitions/celo.d.ts.map +1 -1
  98. package/_types/chains/definitions/celoAlfajores.d.ts +97 -97
  99. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  100. package/_types/chains/definitions/celoCannoli.d.ts +97 -97
  101. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
  102. package/_types/chains/definitions/optimism.d.ts +92 -74
  103. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  104. package/_types/chains/definitions/optimismGoerli.d.ts +92 -74
  105. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  106. package/_types/chains/definitions/optimismSepolia.d.ts +92 -74
  107. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  108. package/_types/chains/definitions/zkSync.d.ts +13 -13
  109. package/_types/chains/definitions/zkSync.d.ts.map +1 -1
  110. package/_types/chains/definitions/zkSyncTestnet.d.ts +13 -13
  111. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  112. package/_types/chains/definitions/zora.d.ts +92 -74
  113. package/_types/chains/definitions/zora.d.ts.map +1 -1
  114. package/_types/chains/definitions/zoraSepolia.d.ts +92 -74
  115. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  116. package/_types/chains/definitions/zoraTestnet.d.ts +92 -74
  117. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  118. package/_types/chains/opStack/abis.d.ts +114 -0
  119. package/_types/chains/opStack/abis.d.ts.map +1 -0
  120. package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts +39 -0
  121. package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts.map +1 -0
  122. package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts +39 -0
  123. package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts.map +1 -0
  124. package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts +39 -0
  125. package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts.map +1 -0
  126. package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts +39 -0
  127. package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts.map +1 -0
  128. package/_types/chains/opStack/actions/estimateL1Fee.d.ts +43 -0
  129. package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -0
  130. package/_types/chains/opStack/actions/estimateL1Gas.d.ts +43 -0
  131. package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -0
  132. package/_types/chains/opStack/actions/estimateTotalFee.d.ts +37 -0
  133. package/_types/chains/opStack/actions/estimateTotalFee.d.ts.map +1 -0
  134. package/_types/chains/opStack/actions/estimateTotalGas.d.ts +36 -0
  135. package/_types/chains/opStack/actions/estimateTotalGas.d.ts.map +1 -0
  136. package/_types/chains/opStack/chainConfig.d.ts +521 -0
  137. package/_types/chains/opStack/chainConfig.d.ts.map +1 -0
  138. package/_types/chains/opStack/contracts.d.ts +21 -0
  139. package/_types/chains/opStack/contracts.d.ts.map +1 -0
  140. package/_types/chains/opStack/decorators/public.d.ts +214 -0
  141. package/_types/chains/opStack/decorators/public.d.ts.map +1 -0
  142. package/_types/chains/{optimism → opStack}/formatters.d.ts +76 -76
  143. package/_types/chains/{optimism → opStack}/formatters.d.ts.map +1 -1
  144. package/_types/chains/opStack/index.d.ts +21 -0
  145. package/_types/chains/opStack/index.d.ts.map +1 -0
  146. package/_types/chains/opStack/types.d.ts +53 -0
  147. package/_types/chains/opStack/types.d.ts.map +1 -0
  148. package/_types/chains/utils.d.ts +0 -8
  149. package/_types/chains/utils.d.ts.map +1 -1
  150. package/_types/chains/zksync/chainConfig.d.ts +490 -0
  151. package/_types/chains/zksync/chainConfig.d.ts.map +1 -0
  152. package/_types/chains/zksync/formatters.d.ts +1 -1
  153. package/_types/chains/zksync/formatters.d.ts.map +1 -1
  154. package/_types/chains/zksync/index.d.ts +4 -0
  155. package/_types/chains/zksync/index.d.ts.map +1 -0
  156. package/_types/chains/zksync/serializers.d.ts +2 -2
  157. package/_types/chains/zksync/serializers.d.ts.map +1 -1
  158. package/_types/errors/version.d.ts +1 -1
  159. package/_types/utils/formatters/transaction.d.ts +1 -1
  160. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  161. package/chains/celo/chainConfig.ts +7 -0
  162. package/chains/celo/formatters.ts +1 -1
  163. package/chains/celo/index.ts +35 -0
  164. package/chains/celo/package.json +6 -0
  165. package/chains/celo/parsers.ts +10 -12
  166. package/chains/celo/serializers.ts +5 -5
  167. package/chains/definitions/base.ts +3 -2
  168. package/chains/definitions/baseGoerli.ts +3 -2
  169. package/chains/definitions/baseSepolia.ts +3 -2
  170. package/chains/definitions/celo.ts +2 -4
  171. package/chains/definitions/celoAlfajores.ts +2 -4
  172. package/chains/definitions/celoCannoli.ts +2 -4
  173. package/chains/definitions/optimism.ts +3 -2
  174. package/chains/definitions/optimismGoerli.ts +3 -2
  175. package/chains/definitions/optimismSepolia.ts +3 -2
  176. package/chains/definitions/zkSync.ts +2 -4
  177. package/chains/definitions/zkSyncTestnet.ts +2 -4
  178. package/chains/definitions/zora.ts +3 -2
  179. package/chains/definitions/zoraSepolia.ts +3 -2
  180. package/chains/definitions/zoraTestnet.ts +3 -2
  181. package/chains/opStack/abis.ts +73 -0
  182. package/chains/opStack/actions/estimateContractL1Fee.ts +142 -0
  183. package/chains/opStack/actions/estimateContractL1Gas.ts +142 -0
  184. package/chains/opStack/actions/estimateContractTotalFee.ts +144 -0
  185. package/chains/opStack/actions/estimateContractTotalGas.ts +144 -0
  186. package/chains/opStack/actions/estimateL1Fee.ts +138 -0
  187. package/chains/opStack/actions/estimateL1Gas.ts +138 -0
  188. package/chains/opStack/actions/estimateTotalFee.ts +86 -0
  189. package/chains/opStack/actions/estimateTotalGas.ts +80 -0
  190. package/chains/opStack/chainConfig.ts +7 -0
  191. package/chains/opStack/contracts.ts +14 -0
  192. package/chains/opStack/decorators/public.ts +337 -0
  193. package/chains/{optimism → opStack}/formatters.ts +17 -17
  194. package/chains/opStack/index.ts +77 -0
  195. package/chains/opStack/package.json +6 -0
  196. package/chains/{optimism → opStack}/types.ts +20 -20
  197. package/chains/utils.ts +0 -83
  198. package/chains/zksync/chainConfig.ts +7 -0
  199. package/chains/zksync/formatters.ts +2 -2
  200. package/chains/zksync/index.ts +33 -0
  201. package/chains/zksync/package.json +6 -0
  202. package/chains/zksync/serializers.ts +7 -9
  203. package/errors/version.ts +1 -1
  204. package/package.json +26 -34
  205. package/_cjs/accounts/generateMnemonic.js +0 -9
  206. package/_cjs/accounts/generateMnemonic.js.map +0 -1
  207. package/_cjs/accounts/generatePrivateKey.js +0 -10
  208. package/_cjs/accounts/generatePrivateKey.js.map +0 -1
  209. package/_cjs/accounts/hdKeyToAccount.js +0 -16
  210. package/_cjs/accounts/hdKeyToAccount.js.map +0 -1
  211. package/_cjs/accounts/index.js +0 -52
  212. package/_cjs/accounts/index.js.map +0 -1
  213. package/_cjs/accounts/mnemonicToAccount.js +0 -12
  214. package/_cjs/accounts/mnemonicToAccount.js.map +0 -1
  215. package/_cjs/accounts/privateKeyToAccount.js +0 -33
  216. package/_cjs/accounts/privateKeyToAccount.js.map +0 -1
  217. package/_cjs/accounts/toAccount.js +0 -27
  218. package/_cjs/accounts/toAccount.js.map +0 -1
  219. package/_cjs/accounts/types.js +0 -3
  220. package/_cjs/accounts/utils/parseAccount.js +0 -10
  221. package/_cjs/accounts/utils/parseAccount.js.map +0 -1
  222. package/_cjs/accounts/utils/privateKeyToAddress.js +0 -12
  223. package/_cjs/accounts/utils/privateKeyToAddress.js.map +0 -1
  224. package/_cjs/accounts/utils/publicKeyToAddress.js +0 -11
  225. package/_cjs/accounts/utils/publicKeyToAddress.js.map +0 -1
  226. package/_cjs/accounts/utils/sign.js +0 -15
  227. package/_cjs/accounts/utils/sign.js.map +0 -1
  228. package/_cjs/accounts/utils/signMessage.js +0 -12
  229. package/_cjs/accounts/utils/signMessage.js.map +0 -1
  230. package/_cjs/accounts/utils/signTransaction.js +0 -15
  231. package/_cjs/accounts/utils/signTransaction.js.map +0 -1
  232. package/_cjs/accounts/utils/signTypedData.js +0 -16
  233. package/_cjs/accounts/utils/signTypedData.js.map +0 -1
  234. package/_cjs/actions/ens/getEnsAddress.js +0 -63
  235. package/_cjs/actions/ens/getEnsAddress.js.map +0 -1
  236. package/_cjs/actions/ens/getEnsAvatar.js +0 -25
  237. package/_cjs/actions/ens/getEnsAvatar.js.map +0 -1
  238. package/_cjs/actions/ens/getEnsName.js +0 -41
  239. package/_cjs/actions/ens/getEnsName.js.map +0 -1
  240. package/_cjs/actions/ens/getEnsResolver.js +0 -39
  241. package/_cjs/actions/ens/getEnsResolver.js.map +0 -1
  242. package/_cjs/actions/ens/getEnsText.js +0 -57
  243. package/_cjs/actions/ens/getEnsText.js.map +0 -1
  244. package/_cjs/actions/getContract.js +0 -184
  245. package/_cjs/actions/getContract.js.map +0 -1
  246. package/_cjs/actions/index.js +0 -167
  247. package/_cjs/actions/index.js.map +0 -1
  248. package/_cjs/actions/public/call.js +0 -156
  249. package/_cjs/actions/public/call.js.map +0 -1
  250. package/_cjs/actions/public/createBlockFilter.js +0 -15
  251. package/_cjs/actions/public/createBlockFilter.js.map +0 -1
  252. package/_cjs/actions/public/createContractEventFilter.js +0 -41
  253. package/_cjs/actions/public/createContractEventFilter.js.map +0 -1
  254. package/_cjs/actions/public/createEventFilter.js +0 -48
  255. package/_cjs/actions/public/createEventFilter.js.map +0 -1
  256. package/_cjs/actions/public/createPendingTransactionFilter.js +0 -15
  257. package/_cjs/actions/public/createPendingTransactionFilter.js.map +0 -1
  258. package/_cjs/actions/public/estimateContractGas.js +0 -37
  259. package/_cjs/actions/public/estimateContractGas.js.map +0 -1
  260. package/_cjs/actions/public/estimateFeesPerGas.js +0 -62
  261. package/_cjs/actions/public/estimateFeesPerGas.js.map +0 -1
  262. package/_cjs/actions/public/estimateGas.js +0 -56
  263. package/_cjs/actions/public/estimateGas.js.map +0 -1
  264. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +0 -45
  265. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +0 -1
  266. package/_cjs/actions/public/getBalance.js +0 -14
  267. package/_cjs/actions/public/getBalance.js.map +0 -1
  268. package/_cjs/actions/public/getBlock.js +0 -30
  269. package/_cjs/actions/public/getBlock.js.map +0 -1
  270. package/_cjs/actions/public/getBlockNumber.js +0 -17
  271. package/_cjs/actions/public/getBlockNumber.js.map +0 -1
  272. package/_cjs/actions/public/getBlockTransactionCount.js +0 -24
  273. package/_cjs/actions/public/getBlockTransactionCount.js.map +0 -1
  274. package/_cjs/actions/public/getBytecode.js +0 -16
  275. package/_cjs/actions/public/getBytecode.js.map +0 -1
  276. package/_cjs/actions/public/getChainId.js +0 -12
  277. package/_cjs/actions/public/getChainId.js.map +0 -1
  278. package/_cjs/actions/public/getContractEvents.js +0 -27
  279. package/_cjs/actions/public/getContractEvents.js.map +0 -1
  280. package/_cjs/actions/public/getFeeHistory.js +0 -19
  281. package/_cjs/actions/public/getFeeHistory.js.map +0 -1
  282. package/_cjs/actions/public/getFilterChanges.js +0 -44
  283. package/_cjs/actions/public/getFilterChanges.js.map +0 -1
  284. package/_cjs/actions/public/getFilterLogs.js +0 -42
  285. package/_cjs/actions/public/getFilterLogs.js.map +0 -1
  286. package/_cjs/actions/public/getGasPrice.js +0 -11
  287. package/_cjs/actions/public/getGasPrice.js.map +0 -1
  288. package/_cjs/actions/public/getLogs.js +0 -73
  289. package/_cjs/actions/public/getLogs.js.map +0 -1
  290. package/_cjs/actions/public/getProof.js +0 -16
  291. package/_cjs/actions/public/getProof.js.map +0 -1
  292. package/_cjs/actions/public/getStorageAt.js +0 -14
  293. package/_cjs/actions/public/getStorageAt.js.map +0 -1
  294. package/_cjs/actions/public/getTransaction.js +0 -41
  295. package/_cjs/actions/public/getTransaction.js.map +0 -1
  296. package/_cjs/actions/public/getTransactionConfirmations.js +0 -18
  297. package/_cjs/actions/public/getTransactionConfirmations.js.map +0 -1
  298. package/_cjs/actions/public/getTransactionCount.js +0 -14
  299. package/_cjs/actions/public/getTransactionCount.js.map +0 -1
  300. package/_cjs/actions/public/getTransactionReceipt.js +0 -18
  301. package/_cjs/actions/public/getTransactionReceipt.js.map +0 -1
  302. package/_cjs/actions/public/multicall.js +0 -135
  303. package/_cjs/actions/public/multicall.js.map +0 -1
  304. package/_cjs/actions/public/readContract.js +0 -40
  305. package/_cjs/actions/public/readContract.js.map +0 -1
  306. package/_cjs/actions/public/simulateContract.js +0 -56
  307. package/_cjs/actions/public/simulateContract.js.map +0 -1
  308. package/_cjs/actions/public/uninstallFilter.js +0 -11
  309. package/_cjs/actions/public/uninstallFilter.js.map +0 -1
  310. package/_cjs/actions/public/verifyHash.js +0 -32
  311. package/_cjs/actions/public/verifyHash.js.map +0 -1
  312. package/_cjs/actions/public/verifyMessage.js +0 -16
  313. package/_cjs/actions/public/verifyMessage.js.map +0 -1
  314. package/_cjs/actions/public/verifyTypedData.js +0 -16
  315. package/_cjs/actions/public/verifyTypedData.js.map +0 -1
  316. package/_cjs/actions/public/waitForTransactionReceipt.js +0 -119
  317. package/_cjs/actions/public/waitForTransactionReceipt.js.map +0 -1
  318. package/_cjs/actions/public/watchBlockNumber.js +0 -78
  319. package/_cjs/actions/public/watchBlockNumber.js.map +0 -1
  320. package/_cjs/actions/public/watchBlocks.js +0 -90
  321. package/_cjs/actions/public/watchBlocks.js.map +0 -1
  322. package/_cjs/actions/public/watchContractEvent.js +0 -162
  323. package/_cjs/actions/public/watchContractEvent.js.map +0 -1
  324. package/_cjs/actions/public/watchEvent.js +0 -161
  325. package/_cjs/actions/public/watchEvent.js.map +0 -1
  326. package/_cjs/actions/public/watchPendingTransactions.js +0 -88
  327. package/_cjs/actions/public/watchPendingTransactions.js.map +0 -1
  328. package/_cjs/actions/test/dropTransaction.js +0 -11
  329. package/_cjs/actions/test/dropTransaction.js.map +0 -1
  330. package/_cjs/actions/test/getAutomine.js +0 -14
  331. package/_cjs/actions/test/getAutomine.js.map +0 -1
  332. package/_cjs/actions/test/getTxpoolContent.js +0 -10
  333. package/_cjs/actions/test/getTxpoolContent.js.map +0 -1
  334. package/_cjs/actions/test/getTxpoolStatus.js +0 -15
  335. package/_cjs/actions/test/getTxpoolStatus.js.map +0 -1
  336. package/_cjs/actions/test/impersonateAccount.js +0 -11
  337. package/_cjs/actions/test/impersonateAccount.js.map +0 -1
  338. package/_cjs/actions/test/increaseTime.js +0 -12
  339. package/_cjs/actions/test/increaseTime.js.map +0 -1
  340. package/_cjs/actions/test/inspectTxpool.js +0 -10
  341. package/_cjs/actions/test/inspectTxpool.js.map +0 -1
  342. package/_cjs/actions/test/mine.js +0 -18
  343. package/_cjs/actions/test/mine.js.map +0 -1
  344. package/_cjs/actions/test/removeBlockTimestampInterval.js +0 -10
  345. package/_cjs/actions/test/removeBlockTimestampInterval.js.map +0 -1
  346. package/_cjs/actions/test/reset.js +0 -11
  347. package/_cjs/actions/test/reset.js.map +0 -1
  348. package/_cjs/actions/test/revert.js +0 -11
  349. package/_cjs/actions/test/revert.js.map +0 -1
  350. package/_cjs/actions/test/sendUnsignedTransaction.js +0 -30
  351. package/_cjs/actions/test/sendUnsignedTransaction.js.map +0 -1
  352. package/_cjs/actions/test/setAutomine.js +0 -18
  353. package/_cjs/actions/test/setAutomine.js.map +0 -1
  354. package/_cjs/actions/test/setBalance.js +0 -18
  355. package/_cjs/actions/test/setBalance.js.map +0 -1
  356. package/_cjs/actions/test/setBlockGasLimit.js +0 -12
  357. package/_cjs/actions/test/setBlockGasLimit.js.map +0 -1
  358. package/_cjs/actions/test/setBlockTimestampInterval.js +0 -16
  359. package/_cjs/actions/test/setBlockTimestampInterval.js.map +0 -1
  360. package/_cjs/actions/test/setCode.js +0 -11
  361. package/_cjs/actions/test/setCode.js.map +0 -1
  362. package/_cjs/actions/test/setCoinbase.js +0 -11
  363. package/_cjs/actions/test/setCoinbase.js.map +0 -1
  364. package/_cjs/actions/test/setIntervalMining.js +0 -16
  365. package/_cjs/actions/test/setIntervalMining.js.map +0 -1
  366. package/_cjs/actions/test/setLoggingEnabled.js +0 -11
  367. package/_cjs/actions/test/setLoggingEnabled.js.map +0 -1
  368. package/_cjs/actions/test/setMinGasPrice.js +0 -12
  369. package/_cjs/actions/test/setMinGasPrice.js.map +0 -1
  370. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js +0 -12
  371. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +0 -1
  372. package/_cjs/actions/test/setNextBlockTimestamp.js +0 -12
  373. package/_cjs/actions/test/setNextBlockTimestamp.js.map +0 -1
  374. package/_cjs/actions/test/setNonce.js +0 -12
  375. package/_cjs/actions/test/setNonce.js.map +0 -1
  376. package/_cjs/actions/test/setRpcUrl.js +0 -11
  377. package/_cjs/actions/test/setRpcUrl.js.map +0 -1
  378. package/_cjs/actions/test/setStorageAt.js +0 -16
  379. package/_cjs/actions/test/setStorageAt.js.map +0 -1
  380. package/_cjs/actions/test/snapshot.js +0 -10
  381. package/_cjs/actions/test/snapshot.js.map +0 -1
  382. package/_cjs/actions/test/stopImpersonatingAccount.js +0 -11
  383. package/_cjs/actions/test/stopImpersonatingAccount.js.map +0 -1
  384. package/_cjs/actions/wallet/addChain.js +0 -23
  385. package/_cjs/actions/wallet/addChain.js.map +0 -1
  386. package/_cjs/actions/wallet/deployContract.js +0 -15
  387. package/_cjs/actions/wallet/deployContract.js.map +0 -1
  388. package/_cjs/actions/wallet/getAddresses.js +0 -12
  389. package/_cjs/actions/wallet/getAddresses.js.map +0 -1
  390. package/_cjs/actions/wallet/getPermissions.js +0 -9
  391. package/_cjs/actions/wallet/getPermissions.js.map +0 -1
  392. package/_cjs/actions/wallet/prepareTransactionRequest.js +0 -71
  393. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +0 -1
  394. package/_cjs/actions/wallet/requestAddresses.js +0 -10
  395. package/_cjs/actions/wallet/requestAddresses.js.map +0 -1
  396. package/_cjs/actions/wallet/requestPermissions.js +0 -11
  397. package/_cjs/actions/wallet/requestPermissions.js.map +0 -1
  398. package/_cjs/actions/wallet/sendRawTransaction.js +0 -11
  399. package/_cjs/actions/wallet/sendRawTransaction.js.map +0 -1
  400. package/_cjs/actions/wallet/sendTransaction.js +0 -87
  401. package/_cjs/actions/wallet/sendTransaction.js.map +0 -1
  402. package/_cjs/actions/wallet/signMessage.js +0 -28
  403. package/_cjs/actions/wallet/signMessage.js.map +0 -1
  404. package/_cjs/actions/wallet/signTransaction.js +0 -48
  405. package/_cjs/actions/wallet/signTransaction.js.map +0 -1
  406. package/_cjs/actions/wallet/signTypedData.js +0 -30
  407. package/_cjs/actions/wallet/signTypedData.js.map +0 -1
  408. package/_cjs/actions/wallet/switchChain.js +0 -16
  409. package/_cjs/actions/wallet/switchChain.js.map +0 -1
  410. package/_cjs/actions/wallet/watchAsset.js +0 -12
  411. package/_cjs/actions/wallet/watchAsset.js.map +0 -1
  412. package/_cjs/actions/wallet/writeContract.js +0 -18
  413. package/_cjs/actions/wallet/writeContract.js.map +0 -1
  414. package/_cjs/chains/celo/formatters.js +0 -82
  415. package/_cjs/chains/celo/formatters.js.map +0 -1
  416. package/_cjs/chains/celo/parsers.js +0 -131
  417. package/_cjs/chains/celo/parsers.js.map +0 -1
  418. package/_cjs/chains/celo/serializers.js +0 -131
  419. package/_cjs/chains/celo/serializers.js.map +0 -1
  420. package/_cjs/chains/celo/types.js +0 -3
  421. package/_cjs/chains/celo/types.js.map +0 -1
  422. package/_cjs/chains/celo/utils.js +0 -44
  423. package/_cjs/chains/celo/utils.js.map +0 -1
  424. package/_cjs/chains/definitions/arbitrum.js +0 -24
  425. package/_cjs/chains/definitions/arbitrum.js.map +0 -1
  426. package/_cjs/chains/definitions/arbitrumGoerli.js +0 -30
  427. package/_cjs/chains/definitions/arbitrumGoerli.js.map +0 -1
  428. package/_cjs/chains/definitions/arbitrumNova.js +0 -24
  429. package/_cjs/chains/definitions/arbitrumNova.js.map +0 -1
  430. package/_cjs/chains/definitions/arbitrumSepolia.js +0 -32
  431. package/_cjs/chains/definitions/arbitrumSepolia.js.map +0 -1
  432. package/_cjs/chains/definitions/astar.js +0 -29
  433. package/_cjs/chains/definitions/astar.js.map +0 -1
  434. package/_cjs/chains/definitions/astarZkatana.js +0 -42
  435. package/_cjs/chains/definitions/astarZkatana.js.map +0 -1
  436. package/_cjs/chains/definitions/aurora.js +0 -20
  437. package/_cjs/chains/definitions/aurora.js.map +0 -1
  438. package/_cjs/chains/definitions/auroraTestnet.js +0 -21
  439. package/_cjs/chains/definitions/auroraTestnet.js.map +0 -1
  440. package/_cjs/chains/definitions/avalanche.js +0 -26
  441. package/_cjs/chains/definitions/avalanche.js.map +0 -1
  442. package/_cjs/chains/definitions/avalancheFuji.js +0 -27
  443. package/_cjs/chains/definitions/avalancheFuji.js.map +0 -1
  444. package/_cjs/chains/definitions/base.js +0 -29
  445. package/_cjs/chains/definitions/base.js.map +0 -1
  446. package/_cjs/chains/definitions/baseGoerli.js +0 -29
  447. package/_cjs/chains/definitions/baseGoerli.js.map +0 -1
  448. package/_cjs/chains/definitions/baseSepolia.js +0 -33
  449. package/_cjs/chains/definitions/baseSepolia.js.map +0 -1
  450. package/_cjs/chains/definitions/bearNetworkChainMainnet.js +0 -20
  451. package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +0 -1
  452. package/_cjs/chains/definitions/bearNetworkChainTestnet.js +0 -24
  453. package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +0 -1
  454. package/_cjs/chains/definitions/boba.js +0 -26
  455. package/_cjs/chains/definitions/boba.js.map +0 -1
  456. package/_cjs/chains/definitions/bronos.js +0 -20
  457. package/_cjs/chains/definitions/bronos.js.map +0 -1
  458. package/_cjs/chains/definitions/bronosTestnet.js +0 -21
  459. package/_cjs/chains/definitions/bronosTestnet.js.map +0 -1
  460. package/_cjs/chains/definitions/bsc.js +0 -26
  461. package/_cjs/chains/definitions/bsc.js.map +0 -1
  462. package/_cjs/chains/definitions/bscTestnet.js +0 -27
  463. package/_cjs/chains/definitions/bscTestnet.js.map +0 -1
  464. package/_cjs/chains/definitions/bxn.js +0 -21
  465. package/_cjs/chains/definitions/bxn.js.map +0 -1
  466. package/_cjs/chains/definitions/bxnTestnet.js +0 -25
  467. package/_cjs/chains/definitions/bxnTestnet.js.map +0 -1
  468. package/_cjs/chains/definitions/canto.js +0 -29
  469. package/_cjs/chains/definitions/canto.js.map +0 -1
  470. package/_cjs/chains/definitions/celo.js +0 -34
  471. package/_cjs/chains/definitions/celo.js.map +0 -1
  472. package/_cjs/chains/definitions/celoAlfajores.js +0 -36
  473. package/_cjs/chains/definitions/celoAlfajores.js.map +0 -1
  474. package/_cjs/chains/definitions/celoCannoli.js +0 -36
  475. package/_cjs/chains/definitions/celoCannoli.js.map +0 -1
  476. package/_cjs/chains/definitions/classic.js +0 -23
  477. package/_cjs/chains/definitions/classic.js.map +0 -1
  478. package/_cjs/chains/definitions/confluxESpace.js +0 -27
  479. package/_cjs/chains/definitions/confluxESpace.js.map +0 -1
  480. package/_cjs/chains/definitions/coreDao.js +0 -27
  481. package/_cjs/chains/definitions/coreDao.js.map +0 -1
  482. package/_cjs/chains/definitions/cronos.js +0 -26
  483. package/_cjs/chains/definitions/cronos.js.map +0 -1
  484. package/_cjs/chains/definitions/cronosTestnet.js +0 -30
  485. package/_cjs/chains/definitions/cronosTestnet.js.map +0 -1
  486. package/_cjs/chains/definitions/crossbell.js +0 -28
  487. package/_cjs/chains/definitions/crossbell.js.map +0 -1
  488. package/_cjs/chains/definitions/dfk.js +0 -25
  489. package/_cjs/chains/definitions/dfk.js.map +0 -1
  490. package/_cjs/chains/definitions/dogechain.js +0 -23
  491. package/_cjs/chains/definitions/dogechain.js.map +0 -1
  492. package/_cjs/chains/definitions/edgeware.js +0 -26
  493. package/_cjs/chains/definitions/edgeware.js.map +0 -1
  494. package/_cjs/chains/definitions/edgewareTestnet.js +0 -23
  495. package/_cjs/chains/definitions/edgewareTestnet.js.map +0 -1
  496. package/_cjs/chains/definitions/ekta.js +0 -20
  497. package/_cjs/chains/definitions/ekta.js.map +0 -1
  498. package/_cjs/chains/definitions/ektaTestnet.js +0 -21
  499. package/_cjs/chains/definitions/ektaTestnet.js.map +0 -1
  500. package/_cjs/chains/definitions/eon.js +0 -24
  501. package/_cjs/chains/definitions/eon.js.map +0 -1
  502. package/_cjs/chains/definitions/eos.js +0 -29
  503. package/_cjs/chains/definitions/eos.js.map +0 -1
  504. package/_cjs/chains/definitions/eosTestnet.js +0 -30
  505. package/_cjs/chains/definitions/eosTestnet.js.map +0 -1
  506. package/_cjs/chains/definitions/evmos.js +0 -20
  507. package/_cjs/chains/definitions/evmos.js.map +0 -1
  508. package/_cjs/chains/definitions/evmosTestnet.js +0 -23
  509. package/_cjs/chains/definitions/evmosTestnet.js.map +0 -1
  510. package/_cjs/chains/definitions/fantom.js +0 -26
  511. package/_cjs/chains/definitions/fantom.js.map +0 -1
  512. package/_cjs/chains/definitions/fantomTestnet.js +0 -26
  513. package/_cjs/chains/definitions/fantomTestnet.js.map +0 -1
  514. package/_cjs/chains/definitions/fibo.js +0 -20
  515. package/_cjs/chains/definitions/fibo.js.map +0 -1
  516. package/_cjs/chains/definitions/filecoin.js +0 -20
  517. package/_cjs/chains/definitions/filecoin.js.map +0 -1
  518. package/_cjs/chains/definitions/filecoinCalibration.js +0 -20
  519. package/_cjs/chains/definitions/filecoinCalibration.js.map +0 -1
  520. package/_cjs/chains/definitions/filecoinHyperspace.js +0 -20
  521. package/_cjs/chains/definitions/filecoinHyperspace.js.map +0 -1
  522. package/_cjs/chains/definitions/flare.js +0 -23
  523. package/_cjs/chains/definitions/flare.js.map +0 -1
  524. package/_cjs/chains/definitions/flareTestnet.js +0 -24
  525. package/_cjs/chains/definitions/flareTestnet.js.map +0 -1
  526. package/_cjs/chains/definitions/foundry.js +0 -20
  527. package/_cjs/chains/definitions/foundry.js.map +0 -1
  528. package/_cjs/chains/definitions/fuse.js +0 -22
  529. package/_cjs/chains/definitions/fuse.js.map +0 -1
  530. package/_cjs/chains/definitions/fuseSparknet.js +0 -19
  531. package/_cjs/chains/definitions/fuseSparknet.js.map +0 -1
  532. package/_cjs/chains/definitions/gnosis.js +0 -32
  533. package/_cjs/chains/definitions/gnosis.js.map +0 -1
  534. package/_cjs/chains/definitions/gnosisChiado.js +0 -33
  535. package/_cjs/chains/definitions/gnosisChiado.js.map +0 -1
  536. package/_cjs/chains/definitions/gobi.js +0 -22
  537. package/_cjs/chains/definitions/gobi.js.map +0 -1
  538. package/_cjs/chains/definitions/goerli.js +0 -35
  539. package/_cjs/chains/definitions/goerli.js.map +0 -1
  540. package/_cjs/chains/definitions/haqqMainnet.js +0 -25
  541. package/_cjs/chains/definitions/haqqMainnet.js.map +0 -1
  542. package/_cjs/chains/definitions/haqqTestedge2.js +0 -25
  543. package/_cjs/chains/definitions/haqqTestedge2.js.map +0 -1
  544. package/_cjs/chains/definitions/hardhat.js +0 -17
  545. package/_cjs/chains/definitions/hardhat.js.map +0 -1
  546. package/_cjs/chains/definitions/harmonyOne.js +0 -26
  547. package/_cjs/chains/definitions/harmonyOne.js.map +0 -1
  548. package/_cjs/chains/definitions/holesky.js +0 -22
  549. package/_cjs/chains/definitions/holesky.js.map +0 -1
  550. package/_cjs/chains/definitions/iotex.js +0 -23
  551. package/_cjs/chains/definitions/iotex.js.map +0 -1
  552. package/_cjs/chains/definitions/iotexTestnet.js +0 -23
  553. package/_cjs/chains/definitions/iotexTestnet.js.map +0 -1
  554. package/_cjs/chains/definitions/kava.js +0 -29
  555. package/_cjs/chains/definitions/kava.js.map +0 -1
  556. package/_cjs/chains/definitions/kavaTestnet.js +0 -32
  557. package/_cjs/chains/definitions/kavaTestnet.js.map +0 -1
  558. package/_cjs/chains/definitions/klaytn.js +0 -20
  559. package/_cjs/chains/definitions/klaytn.js.map +0 -1
  560. package/_cjs/chains/definitions/kroma.js +0 -22
  561. package/_cjs/chains/definitions/kroma.js.map +0 -1
  562. package/_cjs/chains/definitions/kromaSepolia.js +0 -22
  563. package/_cjs/chains/definitions/kromaSepolia.js.map +0 -1
  564. package/_cjs/chains/definitions/linea.js +0 -29
  565. package/_cjs/chains/definitions/linea.js.map +0 -1
  566. package/_cjs/chains/definitions/lineaTestnet.js +0 -29
  567. package/_cjs/chains/definitions/lineaTestnet.js.map +0 -1
  568. package/_cjs/chains/definitions/localhost.js +0 -17
  569. package/_cjs/chains/definitions/localhost.js.map +0 -1
  570. package/_cjs/chains/definitions/mainnet.js +0 -34
  571. package/_cjs/chains/definitions/mainnet.js.map +0 -1
  572. package/_cjs/chains/definitions/manta.js +0 -35
  573. package/_cjs/chains/definitions/manta.js.map +0 -1
  574. package/_cjs/chains/definitions/mantaTestnet.js +0 -36
  575. package/_cjs/chains/definitions/mantaTestnet.js.map +0 -1
  576. package/_cjs/chains/definitions/mantle.js +0 -29
  577. package/_cjs/chains/definitions/mantle.js.map +0 -1
  578. package/_cjs/chains/definitions/mantleTestnet.js +0 -24
  579. package/_cjs/chains/definitions/mantleTestnet.js.map +0 -1
  580. package/_cjs/chains/definitions/meter.js +0 -20
  581. package/_cjs/chains/definitions/meter.js.map +0 -1
  582. package/_cjs/chains/definitions/meterTestnet.js +0 -23
  583. package/_cjs/chains/definitions/meterTestnet.js.map +0 -1
  584. package/_cjs/chains/definitions/metis.js +0 -29
  585. package/_cjs/chains/definitions/metis.js.map +0 -1
  586. package/_cjs/chains/definitions/metisGoerli.js +0 -29
  587. package/_cjs/chains/definitions/metisGoerli.js.map +0 -1
  588. package/_cjs/chains/definitions/mev.js +0 -31
  589. package/_cjs/chains/definitions/mev.js.map +0 -1
  590. package/_cjs/chains/definitions/mevTestnet.js +0 -32
  591. package/_cjs/chains/definitions/mevTestnet.js.map +0 -1
  592. package/_cjs/chains/definitions/modeTestnet.js +0 -28
  593. package/_cjs/chains/definitions/modeTestnet.js.map +0 -1
  594. package/_cjs/chains/definitions/moonbaseAlpha.js +0 -33
  595. package/_cjs/chains/definitions/moonbaseAlpha.js.map +0 -1
  596. package/_cjs/chains/definitions/moonbeam.js +0 -33
  597. package/_cjs/chains/definitions/moonbeam.js.map +0 -1
  598. package/_cjs/chains/definitions/moonbeamDev.js +0 -20
  599. package/_cjs/chains/definitions/moonbeamDev.js.map +0 -1
  600. package/_cjs/chains/definitions/moonriver.js +0 -33
  601. package/_cjs/chains/definitions/moonriver.js.map +0 -1
  602. package/_cjs/chains/definitions/neonDevnet.js +0 -28
  603. package/_cjs/chains/definitions/neonDevnet.js.map +0 -1
  604. package/_cjs/chains/definitions/neonMainnet.js +0 -27
  605. package/_cjs/chains/definitions/neonMainnet.js.map +0 -1
  606. package/_cjs/chains/definitions/nexi.js +0 -27
  607. package/_cjs/chains/definitions/nexi.js.map +0 -1
  608. package/_cjs/chains/definitions/nexilix.js +0 -26
  609. package/_cjs/chains/definitions/nexilix.js.map +0 -1
  610. package/_cjs/chains/definitions/oasys.js +0 -21
  611. package/_cjs/chains/definitions/oasys.js.map +0 -1
  612. package/_cjs/chains/definitions/okc.js +0 -26
  613. package/_cjs/chains/definitions/okc.js.map +0 -1
  614. package/_cjs/chains/definitions/opBNB.js +0 -26
  615. package/_cjs/chains/definitions/opBNB.js.map +0 -1
  616. package/_cjs/chains/definitions/opBNBTestnet.js +0 -27
  617. package/_cjs/chains/definitions/opBNBTestnet.js.map +0 -1
  618. package/_cjs/chains/definitions/optimism.js +0 -29
  619. package/_cjs/chains/definitions/optimism.js.map +0 -1
  620. package/_cjs/chains/definitions/optimismGoerli.js +0 -30
  621. package/_cjs/chains/definitions/optimismGoerli.js.map +0 -1
  622. package/_cjs/chains/definitions/optimismSepolia.js +0 -30
  623. package/_cjs/chains/definitions/optimismSepolia.js.map +0 -1
  624. package/_cjs/chains/definitions/plinga.js +0 -27
  625. package/_cjs/chains/definitions/plinga.js.map +0 -1
  626. package/_cjs/chains/definitions/polygon.js +0 -27
  627. package/_cjs/chains/definitions/polygon.js.map +0 -1
  628. package/_cjs/chains/definitions/polygonMumbai.js +0 -28
  629. package/_cjs/chains/definitions/polygonMumbai.js.map +0 -1
  630. package/_cjs/chains/definitions/polygonZkEvm.js +0 -27
  631. package/_cjs/chains/definitions/polygonZkEvm.js.map +0 -1
  632. package/_cjs/chains/definitions/polygonZkEvmTestnet.js +0 -28
  633. package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +0 -1
  634. package/_cjs/chains/definitions/pulsechain.js +0 -32
  635. package/_cjs/chains/definitions/pulsechain.js.map +0 -1
  636. package/_cjs/chains/definitions/pulsechainV4.js +0 -32
  637. package/_cjs/chains/definitions/pulsechainV4.js.map +0 -1
  638. package/_cjs/chains/definitions/qMainnet.js +0 -23
  639. package/_cjs/chains/definitions/qMainnet.js.map +0 -1
  640. package/_cjs/chains/definitions/qTestnet.js +0 -24
  641. package/_cjs/chains/definitions/qTestnet.js.map +0 -1
  642. package/_cjs/chains/definitions/rollux.js +0 -29
  643. package/_cjs/chains/definitions/rollux.js.map +0 -1
  644. package/_cjs/chains/definitions/rolluxTestnet.js +0 -32
  645. package/_cjs/chains/definitions/rolluxTestnet.js.map +0 -1
  646. package/_cjs/chains/definitions/ronin.js +0 -24
  647. package/_cjs/chains/definitions/ronin.js.map +0 -1
  648. package/_cjs/chains/definitions/saigon.js +0 -28
  649. package/_cjs/chains/definitions/saigon.js.map +0 -1
  650. package/_cjs/chains/definitions/scroll.js +0 -29
  651. package/_cjs/chains/definitions/scroll.js.map +0 -1
  652. package/_cjs/chains/definitions/scrollSepolia.js +0 -28
  653. package/_cjs/chains/definitions/scrollSepolia.js.map +0 -1
  654. package/_cjs/chains/definitions/scrollTestnet.js +0 -23
  655. package/_cjs/chains/definitions/scrollTestnet.js.map +0 -1
  656. package/_cjs/chains/definitions/sepolia.js +0 -33
  657. package/_cjs/chains/definitions/sepolia.js.map +0 -1
  658. package/_cjs/chains/definitions/shardeumSphinx.js +0 -22
  659. package/_cjs/chains/definitions/shardeumSphinx.js.map +0 -1
  660. package/_cjs/chains/definitions/skale/brawl.js +0 -23
  661. package/_cjs/chains/definitions/skale/brawl.js.map +0 -1
  662. package/_cjs/chains/definitions/skale/calypso.js +0 -30
  663. package/_cjs/chains/definitions/skale/calypso.js.map +0 -1
  664. package/_cjs/chains/definitions/skale/calypsoTestnet.js +0 -33
  665. package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +0 -1
  666. package/_cjs/chains/definitions/skale/chaosTestnet.js +0 -33
  667. package/_cjs/chains/definitions/skale/chaosTestnet.js.map +0 -1
  668. package/_cjs/chains/definitions/skale/cryptoBlades.js +0 -25
  669. package/_cjs/chains/definitions/skale/cryptoBlades.js.map +0 -1
  670. package/_cjs/chains/definitions/skale/cryptoColosseum.js +0 -23
  671. package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +0 -1
  672. package/_cjs/chains/definitions/skale/europa.js +0 -28
  673. package/_cjs/chains/definitions/skale/europa.js.map +0 -1
  674. package/_cjs/chains/definitions/skale/europaTestnet.js +0 -31
  675. package/_cjs/chains/definitions/skale/europaTestnet.js.map +0 -1
  676. package/_cjs/chains/definitions/skale/exorde.js +0 -23
  677. package/_cjs/chains/definitions/skale/exorde.js.map +0 -1
  678. package/_cjs/chains/definitions/skale/humanProtocol.js +0 -23
  679. package/_cjs/chains/definitions/skale/humanProtocol.js.map +0 -1
  680. package/_cjs/chains/definitions/skale/nebula.js +0 -28
  681. package/_cjs/chains/definitions/skale/nebula.js.map +0 -1
  682. package/_cjs/chains/definitions/skale/nebulaTestnet.js +0 -31
  683. package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +0 -1
  684. package/_cjs/chains/definitions/skale/razor.js +0 -23
  685. package/_cjs/chains/definitions/skale/razor.js.map +0 -1
  686. package/_cjs/chains/definitions/skale/titan.js +0 -28
  687. package/_cjs/chains/definitions/skale/titan.js.map +0 -1
  688. package/_cjs/chains/definitions/skale/titanTestnet.js +0 -33
  689. package/_cjs/chains/definitions/skale/titanTestnet.js.map +0 -1
  690. package/_cjs/chains/definitions/songbird.js +0 -23
  691. package/_cjs/chains/definitions/songbird.js.map +0 -1
  692. package/_cjs/chains/definitions/songbirdTestnet.js +0 -24
  693. package/_cjs/chains/definitions/songbirdTestnet.js.map +0 -1
  694. package/_cjs/chains/definitions/syscoin.js +0 -29
  695. package/_cjs/chains/definitions/syscoin.js.map +0 -1
  696. package/_cjs/chains/definitions/syscoinTestnet.js +0 -29
  697. package/_cjs/chains/definitions/syscoinTestnet.js.map +0 -1
  698. package/_cjs/chains/definitions/taikoJolnir.js +0 -21
  699. package/_cjs/chains/definitions/taikoJolnir.js.map +0 -1
  700. package/_cjs/chains/definitions/taikoTestnetSepolia.js +0 -21
  701. package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +0 -1
  702. package/_cjs/chains/definitions/taraxa.js +0 -21
  703. package/_cjs/chains/definitions/taraxa.js.map +0 -1
  704. package/_cjs/chains/definitions/taraxaTestnet.js +0 -22
  705. package/_cjs/chains/definitions/taraxaTestnet.js.map +0 -1
  706. package/_cjs/chains/definitions/telos.js +0 -29
  707. package/_cjs/chains/definitions/telos.js.map +0 -1
  708. package/_cjs/chains/definitions/telosTestnet.js +0 -24
  709. package/_cjs/chains/definitions/telosTestnet.js.map +0 -1
  710. package/_cjs/chains/definitions/tenet.js +0 -23
  711. package/_cjs/chains/definitions/tenet.js.map +0 -1
  712. package/_cjs/chains/definitions/thunderTestnet.js +0 -22
  713. package/_cjs/chains/definitions/thunderTestnet.js.map +0 -1
  714. package/_cjs/chains/definitions/vechain.js +0 -25
  715. package/_cjs/chains/definitions/vechain.js.map +0 -1
  716. package/_cjs/chains/definitions/wanchain.js +0 -30
  717. package/_cjs/chains/definitions/wanchain.js.map +0 -1
  718. package/_cjs/chains/definitions/wanchainTestnet.js +0 -28
  719. package/_cjs/chains/definitions/wanchainTestnet.js.map +0 -1
  720. package/_cjs/chains/definitions/xdc.js +0 -21
  721. package/_cjs/chains/definitions/xdc.js.map +0 -1
  722. package/_cjs/chains/definitions/xdcTestnet.js +0 -21
  723. package/_cjs/chains/definitions/xdcTestnet.js.map +0 -1
  724. package/_cjs/chains/definitions/zetachainAthensTestnet.js +0 -26
  725. package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +0 -1
  726. package/_cjs/chains/definitions/zhejiang.js +0 -22
  727. package/_cjs/chains/definitions/zhejiang.js.map +0 -1
  728. package/_cjs/chains/definitions/zkSync.js +0 -36
  729. package/_cjs/chains/definitions/zkSync.js.map +0 -1
  730. package/_cjs/chains/definitions/zkSyncTestnet.js +0 -33
  731. package/_cjs/chains/definitions/zkSyncTestnet.js.map +0 -1
  732. package/_cjs/chains/definitions/zora.js +0 -31
  733. package/_cjs/chains/definitions/zora.js.map +0 -1
  734. package/_cjs/chains/definitions/zoraSepolia.js +0 -40
  735. package/_cjs/chains/definitions/zoraSepolia.js.map +0 -1
  736. package/_cjs/chains/definitions/zoraTestnet.js +0 -35
  737. package/_cjs/chains/definitions/zoraTestnet.js.map +0 -1
  738. package/_cjs/chains/index.js +0 -319
  739. package/_cjs/chains/index.js.map +0 -1
  740. package/_cjs/chains/optimism/formatters.js +0 -54
  741. package/_cjs/chains/optimism/formatters.js.map +0 -1
  742. package/_cjs/chains/optimism/types.js +0 -3
  743. package/_cjs/chains/optimism/types.js.map +0 -1
  744. package/_cjs/chains/utils.js +0 -23
  745. package/_cjs/chains/utils.js.map +0 -1
  746. package/_cjs/chains/zksync/formatters.js +0 -128
  747. package/_cjs/chains/zksync/formatters.js.map +0 -1
  748. package/_cjs/chains/zksync/serializers.js +0 -74
  749. package/_cjs/chains/zksync/serializers.js.map +0 -1
  750. package/_cjs/chains/zksync/types.js +0 -3
  751. package/_cjs/chains/zksync/types.js.map +0 -1
  752. package/_cjs/clients/createClient.js +0 -42
  753. package/_cjs/clients/createClient.js.map +0 -1
  754. package/_cjs/clients/createPublicClient.js +0 -17
  755. package/_cjs/clients/createPublicClient.js.map +0 -1
  756. package/_cjs/clients/createTestClient.js +0 -20
  757. package/_cjs/clients/createTestClient.js.map +0 -1
  758. package/_cjs/clients/createWalletClient.js +0 -18
  759. package/_cjs/clients/createWalletClient.js.map +0 -1
  760. package/_cjs/clients/decorators/public.js +0 -101
  761. package/_cjs/clients/decorators/public.js.map +0 -1
  762. package/_cjs/clients/decorators/test.js +0 -70
  763. package/_cjs/clients/decorators/test.js.map +0 -1
  764. package/_cjs/clients/decorators/wallet.js +0 -41
  765. package/_cjs/clients/decorators/wallet.js.map +0 -1
  766. package/_cjs/clients/transports/createTransport.js +0 -13
  767. package/_cjs/clients/transports/createTransport.js.map +0 -1
  768. package/_cjs/clients/transports/custom.js +0 -17
  769. package/_cjs/clients/transports/custom.js.map +0 -1
  770. package/_cjs/clients/transports/fallback.js +0 -122
  771. package/_cjs/clients/transports/fallback.js.map +0 -1
  772. package/_cjs/clients/transports/http.js +0 -59
  773. package/_cjs/clients/transports/http.js.map +0 -1
  774. package/_cjs/clients/transports/webSocket.js +0 -81
  775. package/_cjs/clients/transports/webSocket.js.map +0 -1
  776. package/_cjs/constants/abis.js +0 -1350
  777. package/_cjs/constants/abis.js.map +0 -1
  778. package/_cjs/constants/address.js +0 -5
  779. package/_cjs/constants/address.js.map +0 -1
  780. package/_cjs/constants/contract.js +0 -5
  781. package/_cjs/constants/contract.js.map +0 -1
  782. package/_cjs/constants/contracts.js +0 -5
  783. package/_cjs/constants/contracts.js.map +0 -1
  784. package/_cjs/constants/number.js +0 -101
  785. package/_cjs/constants/number.js.map +0 -1
  786. package/_cjs/constants/solidity.js +0 -35
  787. package/_cjs/constants/solidity.js.map +0 -1
  788. package/_cjs/constants/unit.js +0 -16
  789. package/_cjs/constants/unit.js.map +0 -1
  790. package/_cjs/ens/index.js +0 -20
  791. package/_cjs/ens/index.js.map +0 -1
  792. package/_cjs/errors/abi.js +0 -461
  793. package/_cjs/errors/abi.js.map +0 -1
  794. package/_cjs/errors/account.js +0 -23
  795. package/_cjs/errors/account.js.map +0 -1
  796. package/_cjs/errors/address.js +0 -17
  797. package/_cjs/errors/address.js.map +0 -1
  798. package/_cjs/errors/base.js +0 -83
  799. package/_cjs/errors/base.js.map +0 -1
  800. package/_cjs/errors/block.js +0 -22
  801. package/_cjs/errors/block.js.map +0 -1
  802. package/_cjs/errors/ccip.js +0 -69
  803. package/_cjs/errors/ccip.js.map +0 -1
  804. package/_cjs/errors/chain.js +0 -86
  805. package/_cjs/errors/chain.js.map +0 -1
  806. package/_cjs/errors/contract.js +0 -286
  807. package/_cjs/errors/contract.js.map +0 -1
  808. package/_cjs/errors/cursor.js +0 -29
  809. package/_cjs/errors/cursor.js.map +0 -1
  810. package/_cjs/errors/data.js +0 -31
  811. package/_cjs/errors/data.js.map +0 -1
  812. package/_cjs/errors/encoding.js +0 -65
  813. package/_cjs/errors/encoding.js.map +0 -1
  814. package/_cjs/errors/ens.js +0 -59
  815. package/_cjs/errors/ens.js.map +0 -1
  816. package/_cjs/errors/estimateGas.js +0 -49
  817. package/_cjs/errors/estimateGas.js.map +0 -1
  818. package/_cjs/errors/fee.js +0 -42
  819. package/_cjs/errors/fee.js.map +0 -1
  820. package/_cjs/errors/log.js +0 -17
  821. package/_cjs/errors/log.js.map +0 -1
  822. package/_cjs/errors/node.js +0 -262
  823. package/_cjs/errors/node.js.map +0 -1
  824. package/_cjs/errors/request.js +0 -107
  825. package/_cjs/errors/request.js.map +0 -1
  826. package/_cjs/errors/rpc.js +0 -448
  827. package/_cjs/errors/rpc.js.map +0 -1
  828. package/_cjs/errors/transaction.js +0 -225
  829. package/_cjs/errors/transaction.js.map +0 -1
  830. package/_cjs/errors/transport.js +0 -13
  831. package/_cjs/errors/transport.js.map +0 -1
  832. package/_cjs/index.js +0 -482
  833. package/_cjs/index.js.map +0 -1
  834. package/_cjs/types/account.js +0 -3
  835. package/_cjs/types/account.js.map +0 -1
  836. package/_cjs/types/block.js +0 -3
  837. package/_cjs/types/block.js.map +0 -1
  838. package/_cjs/types/chain.js +0 -3
  839. package/_cjs/types/chain.js.map +0 -1
  840. package/_cjs/types/contract.js +0 -3
  841. package/_cjs/types/contract.js.map +0 -1
  842. package/_cjs/types/eip1193.js +0 -24
  843. package/_cjs/types/eip1193.js.map +0 -1
  844. package/_cjs/types/ens.js +0 -3
  845. package/_cjs/types/ens.js.map +0 -1
  846. package/_cjs/types/fee.js +0 -3
  847. package/_cjs/types/fee.js.map +0 -1
  848. package/_cjs/types/filter.js +0 -3
  849. package/_cjs/types/filter.js.map +0 -1
  850. package/_cjs/types/log.js +0 -3
  851. package/_cjs/types/log.js.map +0 -1
  852. package/_cjs/types/misc.js +0 -3
  853. package/_cjs/types/misc.js.map +0 -1
  854. package/_cjs/types/multicall.js +0 -3
  855. package/_cjs/types/multicall.js.map +0 -1
  856. package/_cjs/types/proof.js +0 -3
  857. package/_cjs/types/proof.js.map +0 -1
  858. package/_cjs/types/rpc.js +0 -3
  859. package/_cjs/types/rpc.js.map +0 -1
  860. package/_cjs/types/transaction.js +0 -3
  861. package/_cjs/types/transaction.js.map +0 -1
  862. package/_cjs/types/transport.js +0 -3
  863. package/_cjs/types/transport.js.map +0 -1
  864. package/_cjs/types/typedData.js +0 -3
  865. package/_cjs/types/typedData.js.map +0 -1
  866. package/_cjs/types/utils.js +0 -3
  867. package/_cjs/types/utils.js.map +0 -1
  868. package/_cjs/types/window.js +0 -3
  869. package/_cjs/types/window.js.map +0 -1
  870. package/_cjs/types/withdrawal.js +0 -3
  871. package/_cjs/types/withdrawal.js.map +0 -1
  872. package/_cjs/utils/abi/decodeAbiParameters.js +0 -210
  873. package/_cjs/utils/abi/decodeAbiParameters.js.map +0 -1
  874. package/_cjs/utils/abi/decodeDeployData.js +0 -22
  875. package/_cjs/utils/abi/decodeDeployData.js.map +0 -1
  876. package/_cjs/utils/abi/decodeErrorResult.js +0 -30
  877. package/_cjs/utils/abi/decodeErrorResult.js.map +0 -1
  878. package/_cjs/utils/abi/decodeEventLog.js +0 -85
  879. package/_cjs/utils/abi/decodeEventLog.js.map +0 -1
  880. package/_cjs/utils/abi/decodeFunctionData.js +0 -28
  881. package/_cjs/utils/abi/decodeFunctionData.js.map +0 -1
  882. package/_cjs/utils/abi/decodeFunctionResult.js +0 -29
  883. package/_cjs/utils/abi/decodeFunctionResult.js.map +0 -1
  884. package/_cjs/utils/abi/encodeAbiParameters.js +0 -211
  885. package/_cjs/utils/abi/encodeAbiParameters.js.map +0 -1
  886. package/_cjs/utils/abi/encodeDeployData.js +0 -23
  887. package/_cjs/utils/abi/encodeDeployData.js.map +0 -1
  888. package/_cjs/utils/abi/encodeErrorResult.js +0 -33
  889. package/_cjs/utils/abi/encodeErrorResult.js.map +0 -1
  890. package/_cjs/utils/abi/encodeEventTopics.js +0 -53
  891. package/_cjs/utils/abi/encodeEventTopics.js.map +0 -1
  892. package/_cjs/utils/abi/encodeFunctionData.js +0 -34
  893. package/_cjs/utils/abi/encodeFunctionData.js.map +0 -1
  894. package/_cjs/utils/abi/encodeFunctionResult.js +0 -27
  895. package/_cjs/utils/abi/encodeFunctionResult.js.map +0 -1
  896. package/_cjs/utils/abi/encodePacked.js +0 -73
  897. package/_cjs/utils/abi/encodePacked.js.map +0 -1
  898. package/_cjs/utils/abi/formatAbiItem.js +0 -27
  899. package/_cjs/utils/abi/formatAbiItem.js.map +0 -1
  900. package/_cjs/utils/abi/formatAbiItemWithArgs.js +0 -17
  901. package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +0 -1
  902. package/_cjs/utils/abi/getAbiItem.js +0 -84
  903. package/_cjs/utils/abi/getAbiItem.js.map +0 -1
  904. package/_cjs/utils/accounts.js +0 -8
  905. package/_cjs/utils/accounts.js.map +0 -1
  906. package/_cjs/utils/address/getAddress.js +0 -31
  907. package/_cjs/utils/address/getAddress.js.map +0 -1
  908. package/_cjs/utils/address/getContractAddress.js +0 -42
  909. package/_cjs/utils/address/getContractAddress.js.map +0 -1
  910. package/_cjs/utils/address/isAddress.js +0 -9
  911. package/_cjs/utils/address/isAddress.js.map +0 -1
  912. package/_cjs/utils/address/isAddressEqual.js +0 -14
  913. package/_cjs/utils/address/isAddressEqual.js.map +0 -1
  914. package/_cjs/utils/buildRequest.js +0 -93
  915. package/_cjs/utils/buildRequest.js.map +0 -1
  916. package/_cjs/utils/ccip.js +0 -121
  917. package/_cjs/utils/ccip.js.map +0 -1
  918. package/_cjs/utils/chain/assertCurrentChain.js +0 -12
  919. package/_cjs/utils/chain/assertCurrentChain.js.map +0 -1
  920. package/_cjs/utils/chain/defineChain.js +0 -13
  921. package/_cjs/utils/chain/defineChain.js.map +0 -1
  922. package/_cjs/utils/chain/extractChain.js +0 -8
  923. package/_cjs/utils/chain/extractChain.js.map +0 -1
  924. package/_cjs/utils/chain/getChainContractAddress.js +0 -26
  925. package/_cjs/utils/chain/getChainContractAddress.js.map +0 -1
  926. package/_cjs/utils/cursor.js +0 -134
  927. package/_cjs/utils/cursor.js.map +0 -1
  928. package/_cjs/utils/data/concat.js +0 -28
  929. package/_cjs/utils/data/concat.js.map +0 -1
  930. package/_cjs/utils/data/isBytes.js +0 -14
  931. package/_cjs/utils/data/isBytes.js.map +0 -1
  932. package/_cjs/utils/data/isBytesEqual.js +0 -13
  933. package/_cjs/utils/data/isBytesEqual.js.map +0 -1
  934. package/_cjs/utils/data/isHex.js +0 -12
  935. package/_cjs/utils/data/isHex.js.map +0 -1
  936. package/_cjs/utils/data/pad.js +0 -42
  937. package/_cjs/utils/data/pad.js.map +0 -1
  938. package/_cjs/utils/data/size.js +0 -11
  939. package/_cjs/utils/data/size.js.map +0 -1
  940. package/_cjs/utils/data/slice.js +0 -54
  941. package/_cjs/utils/data/slice.js.map +0 -1
  942. package/_cjs/utils/data/trim.js +0 -25
  943. package/_cjs/utils/data/trim.js.map +0 -1
  944. package/_cjs/utils/encoding/fromBytes.js +0 -56
  945. package/_cjs/utils/encoding/fromBytes.js.map +0 -1
  946. package/_cjs/utils/encoding/fromHex.js +0 -70
  947. package/_cjs/utils/encoding/fromHex.js.map +0 -1
  948. package/_cjs/utils/encoding/fromRlp.js +0 -67
  949. package/_cjs/utils/encoding/fromRlp.js.map +0 -1
  950. package/_cjs/utils/encoding/toBytes.js +0 -83
  951. package/_cjs/utils/encoding/toBytes.js.map +0 -1
  952. package/_cjs/utils/encoding/toHex.js +0 -79
  953. package/_cjs/utils/encoding/toHex.js.map +0 -1
  954. package/_cjs/utils/encoding/toRlp.js +0 -105
  955. package/_cjs/utils/encoding/toRlp.js.map +0 -1
  956. package/_cjs/utils/ens/avatar/parseAvatarRecord.js +0 -34
  957. package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +0 -1
  958. package/_cjs/utils/ens/avatar/utils.js +0 -186
  959. package/_cjs/utils/ens/avatar/utils.js.map +0 -1
  960. package/_cjs/utils/ens/encodeLabelhash.js +0 -8
  961. package/_cjs/utils/ens/encodeLabelhash.js.map +0 -1
  962. package/_cjs/utils/ens/encodedLabelToLabelhash.js +0 -18
  963. package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +0 -1
  964. package/_cjs/utils/ens/errors.js +0 -24
  965. package/_cjs/utils/ens/errors.js.map +0 -1
  966. package/_cjs/utils/ens/labelhash.js +0 -15
  967. package/_cjs/utils/ens/labelhash.js.map +0 -1
  968. package/_cjs/utils/ens/namehash.js +0 -24
  969. package/_cjs/utils/ens/namehash.js.map +0 -1
  970. package/_cjs/utils/ens/normalize.js +0 -9
  971. package/_cjs/utils/ens/normalize.js.map +0 -1
  972. package/_cjs/utils/ens/packetToBytes.js +0 -27
  973. package/_cjs/utils/ens/packetToBytes.js.map +0 -1
  974. package/_cjs/utils/errors/getCallError.js +0 -20
  975. package/_cjs/utils/errors/getCallError.js.map +0 -1
  976. package/_cjs/utils/errors/getContractError.js +0 -39
  977. package/_cjs/utils/errors/getContractError.js.map +0 -1
  978. package/_cjs/utils/errors/getEstimateGasError.js +0 -20
  979. package/_cjs/utils/errors/getEstimateGasError.js.map +0 -1
  980. package/_cjs/utils/errors/getNodeError.js +0 -65
  981. package/_cjs/utils/errors/getNodeError.js.map +0 -1
  982. package/_cjs/utils/errors/getTransactionError.js +0 -20
  983. package/_cjs/utils/errors/getTransactionError.js.map +0 -1
  984. package/_cjs/utils/filters/createFilterRequestScope.js +0 -14
  985. package/_cjs/utils/filters/createFilterRequestScope.js.map +0 -1
  986. package/_cjs/utils/formatters/block.js +0 -32
  987. package/_cjs/utils/formatters/block.js.map +0 -1
  988. package/_cjs/utils/formatters/extract.js +0 -24
  989. package/_cjs/utils/formatters/extract.js.map +0 -1
  990. package/_cjs/utils/formatters/feeHistory.js +0 -13
  991. package/_cjs/utils/formatters/feeHistory.js.map +0 -1
  992. package/_cjs/utils/formatters/formatter.js +0 -25
  993. package/_cjs/utils/formatters/formatter.js.map +0 -1
  994. package/_cjs/utils/formatters/log.js +0 -18
  995. package/_cjs/utils/formatters/log.js.map +0 -1
  996. package/_cjs/utils/formatters/proof.js +0 -22
  997. package/_cjs/utils/formatters/proof.js.map +0 -1
  998. package/_cjs/utils/formatters/transaction.js +0 -50
  999. package/_cjs/utils/formatters/transaction.js.map +0 -1
  1000. package/_cjs/utils/formatters/transactionReceipt.js +0 -47
  1001. package/_cjs/utils/formatters/transactionReceipt.js.map +0 -1
  1002. package/_cjs/utils/formatters/transactionRequest.js +0 -39
  1003. package/_cjs/utils/formatters/transactionRequest.js.map +0 -1
  1004. package/_cjs/utils/getAction.js +0 -8
  1005. package/_cjs/utils/getAction.js.map +0 -1
  1006. package/_cjs/utils/hash/getEventSelector.js +0 -10
  1007. package/_cjs/utils/hash/getEventSelector.js.map +0 -1
  1008. package/_cjs/utils/hash/getEventSignature.js +0 -9
  1009. package/_cjs/utils/hash/getEventSignature.js.map +0 -1
  1010. package/_cjs/utils/hash/getFunctionSelector.js +0 -11
  1011. package/_cjs/utils/hash/getFunctionSelector.js.map +0 -1
  1012. package/_cjs/utils/hash/getFunctionSignature.js +0 -15
  1013. package/_cjs/utils/hash/getFunctionSignature.js.map +0 -1
  1014. package/_cjs/utils/hash/hashFunction.js +0 -17
  1015. package/_cjs/utils/hash/hashFunction.js.map +0 -1
  1016. package/_cjs/utils/hash/isHash.js +0 -10
  1017. package/_cjs/utils/hash/isHash.js.map +0 -1
  1018. package/_cjs/utils/hash/keccak256.js +0 -16
  1019. package/_cjs/utils/hash/keccak256.js.map +0 -1
  1020. package/_cjs/utils/hash/normalizeSignature.js +0 -48
  1021. package/_cjs/utils/hash/normalizeSignature.js.map +0 -1
  1022. package/_cjs/utils/index.js +0 -213
  1023. package/_cjs/utils/index.js.map +0 -1
  1024. package/_cjs/utils/observe.js +0 -42
  1025. package/_cjs/utils/observe.js.map +0 -1
  1026. package/_cjs/utils/poll.js +0 -27
  1027. package/_cjs/utils/poll.js.map +0 -1
  1028. package/_cjs/utils/promise/createBatchScheduler.js +0 -49
  1029. package/_cjs/utils/promise/createBatchScheduler.js.map +0 -1
  1030. package/_cjs/utils/promise/withCache.js +0 -47
  1031. package/_cjs/utils/promise/withCache.js.map +0 -1
  1032. package/_cjs/utils/promise/withRetry.js +0 -29
  1033. package/_cjs/utils/promise/withRetry.js.map +0 -1
  1034. package/_cjs/utils/promise/withTimeout.js +0 -35
  1035. package/_cjs/utils/promise/withTimeout.js.map +0 -1
  1036. package/_cjs/utils/regex.js +0 -7
  1037. package/_cjs/utils/regex.js.map +0 -1
  1038. package/_cjs/utils/rpc.js +0 -154
  1039. package/_cjs/utils/rpc.js.map +0 -1
  1040. package/_cjs/utils/signature/compactSignatureToHex.js +0 -10
  1041. package/_cjs/utils/signature/compactSignatureToHex.js.map +0 -1
  1042. package/_cjs/utils/signature/compactSignatureToSignature.js +0 -15
  1043. package/_cjs/utils/signature/compactSignatureToSignature.js.map +0 -1
  1044. package/_cjs/utils/signature/hashMessage.js +0 -19
  1045. package/_cjs/utils/signature/hashMessage.js.map +0 -1
  1046. package/_cjs/utils/signature/hashTypedData.js +0 -124
  1047. package/_cjs/utils/signature/hashTypedData.js.map +0 -1
  1048. package/_cjs/utils/signature/hexToCompactSignature.js +0 -14
  1049. package/_cjs/utils/signature/hexToCompactSignature.js.map +0 -1
  1050. package/_cjs/utils/signature/hexToSignature.js +0 -12
  1051. package/_cjs/utils/signature/hexToSignature.js.map +0 -1
  1052. package/_cjs/utils/signature/recoverAddress.js +0 -10
  1053. package/_cjs/utils/signature/recoverAddress.js.map +0 -1
  1054. package/_cjs/utils/signature/recoverMessageAddress.js +0 -10
  1055. package/_cjs/utils/signature/recoverMessageAddress.js.map +0 -1
  1056. package/_cjs/utils/signature/recoverPublicKey.js +0 -21
  1057. package/_cjs/utils/signature/recoverPublicKey.js.map +0 -1
  1058. package/_cjs/utils/signature/recoverTypedDataAddress.js +0 -19
  1059. package/_cjs/utils/signature/recoverTypedDataAddress.js.map +0 -1
  1060. package/_cjs/utils/signature/signatureToCompactSignature.js +0 -17
  1061. package/_cjs/utils/signature/signatureToCompactSignature.js.map +0 -1
  1062. package/_cjs/utils/signature/signatureToHex.js +0 -11
  1063. package/_cjs/utils/signature/signatureToHex.js.map +0 -1
  1064. package/_cjs/utils/signature/verifyMessage.js +0 -11
  1065. package/_cjs/utils/signature/verifyMessage.js.map +0 -1
  1066. package/_cjs/utils/signature/verifyTypedData.js +0 -18
  1067. package/_cjs/utils/signature/verifyTypedData.js.map +0 -1
  1068. package/_cjs/utils/stringify.js +0 -9
  1069. package/_cjs/utils/stringify.js.map +0 -1
  1070. package/_cjs/utils/transaction/assertRequest.js +0 -28
  1071. package/_cjs/utils/transaction/assertRequest.js.map +0 -1
  1072. package/_cjs/utils/transaction/assertTransaction.js +0 -51
  1073. package/_cjs/utils/transaction/assertTransaction.js.map +0 -1
  1074. package/_cjs/utils/transaction/getSerializedTransactionType.js +0 -18
  1075. package/_cjs/utils/transaction/getSerializedTransactionType.js.map +0 -1
  1076. package/_cjs/utils/transaction/getTransactionType.js +0 -19
  1077. package/_cjs/utils/transaction/getTransactionType.js.map +0 -1
  1078. package/_cjs/utils/transaction/parseTransaction.js +0 -213
  1079. package/_cjs/utils/transaction/parseTransaction.js.map +0 -1
  1080. package/_cjs/utils/transaction/serializeAccessList.js +0 -26
  1081. package/_cjs/utils/transaction/serializeAccessList.js.map +0 -1
  1082. package/_cjs/utils/transaction/serializeTransaction.js +0 -107
  1083. package/_cjs/utils/transaction/serializeTransaction.js.map +0 -1
  1084. package/_cjs/utils/typedData.js +0 -75
  1085. package/_cjs/utils/typedData.js.map +0 -1
  1086. package/_cjs/utils/uid.js +0 -18
  1087. package/_cjs/utils/uid.js.map +0 -1
  1088. package/_cjs/utils/unit/formatEther.js +0 -10
  1089. package/_cjs/utils/unit/formatEther.js.map +0 -1
  1090. package/_cjs/utils/unit/formatGwei.js +0 -10
  1091. package/_cjs/utils/unit/formatGwei.js.map +0 -1
  1092. package/_cjs/utils/unit/formatUnits.js +0 -18
  1093. package/_cjs/utils/unit/formatUnits.js.map +0 -1
  1094. package/_cjs/utils/unit/parseEther.js +0 -10
  1095. package/_cjs/utils/unit/parseEther.js.map +0 -1
  1096. package/_cjs/utils/unit/parseGwei.js +0 -10
  1097. package/_cjs/utils/unit/parseGwei.js.map +0 -1
  1098. package/_cjs/utils/unit/parseUnits.js +0 -38
  1099. package/_cjs/utils/unit/parseUnits.js.map +0 -1
  1100. package/_cjs/utils/wait.js +0 -8
  1101. package/_cjs/utils/wait.js.map +0 -1
  1102. package/_cjs/window/index.js +0 -4
  1103. package/_cjs/window/index.js.map +0 -1
  1104. package/_esm/chains/optimism/formatters.js.map +0 -1
  1105. package/_esm/chains/optimism/types.js.map +0 -1
  1106. package/_types/chains/optimism/types.d.ts +0 -53
  1107. package/_types/chains/optimism/types.d.ts.map +0 -1
  1108. /package/_esm/chains/{optimism → opStack}/types.js +0 -0
@@ -1,54 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formattersOptimism = void 0;
4
- const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
5
- const block_js_1 = require("../../utils/formatters/block.js");
6
- const transaction_js_1 = require("../../utils/formatters/transaction.js");
7
- const transactionReceipt_js_1 = require("../../utils/formatters/transactionReceipt.js");
8
- exports.formattersOptimism = {
9
- block: (0, block_js_1.defineBlock)({
10
- format(args) {
11
- const transactions = args.transactions?.map((transaction) => {
12
- if (typeof transaction === 'string')
13
- return transaction;
14
- const formatted = (0, transaction_js_1.formatTransaction)(transaction);
15
- if (formatted.typeHex === '0x7e') {
16
- formatted.isSystemTx = transaction.isSystemTx;
17
- formatted.mint = transaction.mint
18
- ? (0, fromHex_js_1.hexToBigInt)(transaction.mint)
19
- : undefined;
20
- formatted.sourceHash = transaction.sourceHash;
21
- formatted.type = 'deposit';
22
- }
23
- return formatted;
24
- });
25
- return {
26
- transactions,
27
- stateRoot: args.stateRoot,
28
- };
29
- },
30
- }),
31
- transaction: (0, transaction_js_1.defineTransaction)({
32
- format(args) {
33
- const transaction = {};
34
- if (args.type === '0x7e') {
35
- transaction.isSystemTx = args.isSystemTx;
36
- transaction.mint = args.mint ? (0, fromHex_js_1.hexToBigInt)(args.mint) : undefined;
37
- transaction.sourceHash = args.sourceHash;
38
- transaction.type = 'deposit';
39
- }
40
- return transaction;
41
- },
42
- }),
43
- transactionReceipt: (0, transactionReceipt_js_1.defineTransactionReceipt)({
44
- format(args) {
45
- return {
46
- l1GasPrice: args.l1GasPrice ? (0, fromHex_js_1.hexToBigInt)(args.l1GasPrice) : null,
47
- l1GasUsed: args.l1GasUsed ? (0, fromHex_js_1.hexToBigInt)(args.l1GasUsed) : null,
48
- l1Fee: args.l1Fee ? (0, fromHex_js_1.hexToBigInt)(args.l1Fee) : null,
49
- l1FeeScalar: args.l1FeeScalar ? Number(args.l1FeeScalar) : null,
50
- };
51
- },
52
- }),
53
- };
54
- //# sourceMappingURL=formatters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../chains/optimism/formatters.ts"],"names":[],"mappings":";;;AAGA,gEAA6D;AAC7D,8DAA6D;AAC7D,0EAG8C;AAC9C,wFAAuF;AAU1E,QAAA,kBAAkB,GAAG;IAChC,KAAK,EAAgB,IAAA,sBAAW,EAAC;QAC/B,MAAM,CACJ,IAEC;YAID,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;gBAC1D,IAAI,OAAO,WAAW,KAAK,QAAQ;oBAAE,OAAO,WAAW,CAAA;gBACvD,MAAM,SAAS,GAAG,IAAA,kCAAiB,EACjC,WAA6B,CACP,CAAA;gBACxB,I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,CAAC,CAAC,CAAC,IAAA,wBAAW,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;gBAC9D,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,IAAA,wBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI;gBAClD,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,IAAI;aAChE,CAAA;QACH,CAAC;KACF,CAAC;CACgC,CAAA"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../chains/optimism/types.ts"],"names":[],"mappings":""}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formattersZkSync = exports.formattersOptimism = exports.parseTransactionCelo = exports.serializersCelo = exports.serializeTransactionCelo = exports.formattersCelo = exports.getChainContractAddress = exports.extractChain = exports.defineChain = exports.assertCurrentChain = void 0;
4
- var assertCurrentChain_js_1 = require("../utils/chain/assertCurrentChain.js");
5
- Object.defineProperty(exports, "assertCurrentChain", { enumerable: true, get: function () { return assertCurrentChain_js_1.assertCurrentChain; } });
6
- var defineChain_js_1 = require("../utils/chain/defineChain.js");
7
- Object.defineProperty(exports, "defineChain", { enumerable: true, get: function () { return defineChain_js_1.defineChain; } });
8
- var extractChain_js_1 = require("../utils/chain/extractChain.js");
9
- Object.defineProperty(exports, "extractChain", { enumerable: true, get: function () { return extractChain_js_1.extractChain; } });
10
- var getChainContractAddress_js_1 = require("../utils/chain/getChainContractAddress.js");
11
- Object.defineProperty(exports, "getChainContractAddress", { enumerable: true, get: function () { return getChainContractAddress_js_1.getChainContractAddress; } });
12
- var formatters_js_1 = require("./celo/formatters.js");
13
- Object.defineProperty(exports, "formattersCelo", { enumerable: true, get: function () { return formatters_js_1.formattersCelo; } });
14
- var serializers_js_1 = require("./celo/serializers.js");
15
- Object.defineProperty(exports, "serializeTransactionCelo", { enumerable: true, get: function () { return serializers_js_1.serializeTransactionCelo; } });
16
- Object.defineProperty(exports, "serializersCelo", { enumerable: true, get: function () { return serializers_js_1.serializersCelo; } });
17
- var parsers_js_1 = require("./celo/parsers.js");
18
- Object.defineProperty(exports, "parseTransactionCelo", { enumerable: true, get: function () { return parsers_js_1.parseTransactionCelo; } });
19
- var formatters_js_2 = require("./optimism/formatters.js");
20
- Object.defineProperty(exports, "formattersOptimism", { enumerable: true, get: function () { return formatters_js_2.formattersOptimism; } });
21
- var formatters_js_3 = require("./zksync/formatters.js");
22
- Object.defineProperty(exports, "formattersZkSync", { enumerable: true, get: function () { return formatters_js_3.formattersZkSync; } });
23
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../chains/utils.ts"],"names":[],"mappings":";;;AAAA,8EAI6C;AAD3C,2HAAA,kBAAkB,OAAA;AAEpB,gEAA2D;AAAlD,6GAAA,WAAW,OAAA;AACpB,kEAKuC;AADrC,+GAAA,YAAY,OAAA;AAEd,wFAGkD;AADhD,qIAAA,uBAAuB,OAAA;AAGzB,sDAAqD;AAA5C,+GAAA,cAAc,OAAA;AACvB,wDAG8B;AAF5B,0HAAA,wBAAwB,OAAA;AACxB,iHAAA,eAAe,OAAA;AAEjB,gDAAwD;AAA/C,kHAAA,oBAAoB,OAAA;AA+B7B,0DAA6D;AAApD,mHAAA,kBAAkB,OAAA;AAgB3B,wDAAyD;AAAhD,iHAAA,gBAAgB,OAAA"}
@@ -1,128 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.formattersZkSync = void 0;
4
- const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
5
- const toBytes_js_1 = require("../../utils/encoding/toBytes.js");
6
- const toHex_js_1 = require("../../utils/encoding/toHex.js");
7
- const block_js_1 = require("../../utils/formatters/block.js");
8
- const log_js_1 = require("../../utils/formatters/log.js");
9
- const transaction_js_1 = require("../../utils/formatters/transaction.js");
10
- const transactionReceipt_js_1 = require("../../utils/formatters/transactionReceipt.js");
11
- const transactionRequest_js_1 = require("../../utils/formatters/transactionRequest.js");
12
- exports.formattersZkSync = {
13
- block: (0, block_js_1.defineBlock)({
14
- format(args) {
15
- const transactions = args.transactions?.map((transaction) => {
16
- if (typeof transaction === 'string')
17
- return transaction;
18
- const formatted = exports.formattersZkSync.transaction.format(transaction);
19
- if (formatted.typeHex === '0x71')
20
- formatted.type = 'eip712';
21
- else if (formatted.typeHex === '0xff')
22
- formatted.type = 'priority';
23
- return formatted;
24
- });
25
- return {
26
- l1BatchNumber: args.l1BatchNumber
27
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchNumber)
28
- : null,
29
- l1BatchTimestamp: args.l1BatchTimestamp
30
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchTimestamp)
31
- : null,
32
- transactions,
33
- };
34
- },
35
- }),
36
- transaction: (0, transaction_js_1.defineTransaction)({
37
- format(args) {
38
- const transaction = {};
39
- if (args.type === '0x71')
40
- transaction.type = 'eip712';
41
- else if (args.type === '0xff')
42
- transaction.type = 'priority';
43
- return {
44
- ...transaction,
45
- l1BatchNumber: args.l1BatchNumber
46
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchNumber)
47
- : null,
48
- l1BatchTxIndex: args.l1BatchTxIndex
49
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchTxIndex)
50
- : null,
51
- };
52
- },
53
- }),
54
- transactionReceipt: (0, transactionReceipt_js_1.defineTransactionReceipt)({
55
- format(args) {
56
- return {
57
- l1BatchNumber: args.l1BatchNumber
58
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchNumber)
59
- : null,
60
- l1BatchTxIndex: args.l1BatchTxIndex
61
- ? (0, fromHex_js_1.hexToBigInt)(args.l1BatchTxIndex)
62
- : null,
63
- logs: args.logs.map((log) => {
64
- return {
65
- ...(0, log_js_1.formatLog)(log),
66
- l1BatchNumber: log.l1BatchNumber
67
- ? (0, fromHex_js_1.hexToBigInt)(log.l1BatchNumber)
68
- : null,
69
- transactionLogIndex: (0, fromHex_js_1.hexToNumber)(log.transactionLogIndex),
70
- logType: log.logType,
71
- };
72
- }),
73
- l2ToL1Logs: args.l2ToL1Logs.map((l2ToL1Log) => {
74
- return {
75
- blockNumber: (0, fromHex_js_1.hexToBigInt)(l2ToL1Log.blockHash),
76
- blockHash: l2ToL1Log.blockHash,
77
- l1BatchNumber: (0, fromHex_js_1.hexToBigInt)(l2ToL1Log.l1BatchNumber),
78
- transactionIndex: (0, fromHex_js_1.hexToBigInt)(l2ToL1Log.transactionIndex),
79
- shardId: (0, fromHex_js_1.hexToBigInt)(l2ToL1Log.shardId),
80
- isService: l2ToL1Log.isService,
81
- sender: l2ToL1Log.sender,
82
- key: l2ToL1Log.key,
83
- value: l2ToL1Log.value,
84
- transactionHash: l2ToL1Log.transactionHash,
85
- logIndex: (0, fromHex_js_1.hexToBigInt)(l2ToL1Log.logIndex),
86
- };
87
- }),
88
- };
89
- },
90
- }),
91
- transactionRequest: (0, transactionRequest_js_1.defineTransactionRequest)({
92
- exclude: [
93
- 'customSignature',
94
- 'factoryDeps',
95
- 'gasPerPubdata',
96
- 'paymaster',
97
- 'paymasterInput',
98
- ],
99
- format(args) {
100
- if (args.gasPerPubdata ||
101
- (args.paymaster && args.paymasterInput) ||
102
- args.factoryDeps ||
103
- args.customSignature)
104
- return {
105
- eip712Meta: {
106
- ...(args.gasPerPubdata
107
- ? { gasPerPubdata: (0, toHex_js_1.toHex)(args.gasPerPubdata) }
108
- : {}),
109
- ...(args.paymaster && args.paymasterInput
110
- ? {
111
- paymasterParams: {
112
- paymaster: args.paymaster,
113
- paymasterInput: Array.from((0, toBytes_js_1.hexToBytes)(args.paymasterInput)),
114
- },
115
- }
116
- : {}),
117
- ...(args.factoryDeps ? { factoryDeps: args.factoryDeps } : {}),
118
- ...(args.customSignature
119
- ? { customSignature: args.customSignature }
120
- : {}),
121
- },
122
- type: args.type === 'eip712' ? '0x71' : '0xff',
123
- };
124
- return {};
125
- },
126
- }),
127
- };
128
- //# sourceMappingURL=formatters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatters.js","sourceRoot":"","sources":["../../../chains/zksync/formatters.ts"],"names":[],"mappings":";;;AAEA,gEAA0E;AAC1E,gEAA4D;AAC5D,4DAAqD;AACrD,8DAA6D;AAC7D,0DAAyD;AACzD,0EAAyE;AACzE,wFAAuF;AACvF,wFAAuF;AAc1E,QAAA,gBAAgB,GAAG;IAC9B,KAAK,EAAgB,IAAA,sBAAW,EAAC;QAC/B,MAAM,CACJ,IAEC;YAID,MAAM,YAAY,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE;gBAC1D,IAAI,OAAO,WAAW,KAAK,QAAQ;oBAAE,OAAO,WAAW,CAAA;gBACvD,MAAM,SAAS,GAAG,wBAAgB,CAAC,WAAW,CAAC,MAAM,CACnD,WAAmC,CACf,CAAA;gBACtB,IAAI,SAAS,CAAC,OAAO,KAAK,MAAM;oBAAE,SAAS,CAAC,IAAI,GAAG,QAAQ,CAAA;qBACtD,IAAI,SAAS,CAAC,OAAO,KAAK,MAAM;oBAAE,SAAS,CAAC,IAAI,GAAG,UAAU,CAAA;gBAClE,OAAO,SAAS,CAAA;YAClB,CAAC,CAAiC,CAAA;YAClC,OAAO;gBACL,aAAa,EAAE,IAAI,CAAC,aAAa;oBAC/B,CAAC,CAAC,IAAA,wBAAW,EAAC,IAAI,CAAC,aAAa,CAAC;oBACjC,CAAC,CAAC,IAAI;gBACR,gBAAgB,EAAE,IAAI,CAAC,gBAAgB;oBACrC,CAAC,CAAC,IAAA,wBAAW,EAAC,IAAI,CAAC,gBAAgB,CAAC;oBACpC,CAAC,CAAC,IA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a,EAAE,IAAA,gBAAK,EAAC,IAAI,CAAC,aAAa,CAAC,EAAE;4BAC9C,CAAC,CAAC,EAAE,CAAC;wBACP,GAAG,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,cAAc;4BACvC,CAAC,CAAC;gCACE,eAAe,EAAE;oCACf,SAAS,EAAE,IAAI,CAAC,SAAS;oCACzB,cAAc,EAAE,KAAK,CAAC,IAAI,CAAC,IAAA,uBAAU,EAAC,IAAI,CAAC,cAAc,CAAC,CAAC;iCAC5D;6BACF;4BACH,CAAC,CAAC,EAAE,CAAC;wBACP,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBAC9D,GAAG,CAAC,IAAI,CAAC,eAAe;4BACtB,CAAC,CAAC,EAAE,eAAe,EAAE,IAAI,CAAC,eAAe,EAAE;4BAC3C,CAAC,CAAC,EAAE,CAAC;qBACR;oBACD,IAAI,EAAE,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;iBAChB,CAAA;YAClC,OAAO,EAAiC,CAAA;QAC1C,CAAC;KACF,CAAC;CACgC,CAAA"}
@@ -1,74 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertTransactionEIP712 = exports.serializersZkSync = exports.serializeTransactionZkSync = void 0;
4
- const address_js_1 = require("../../errors/address.js");
5
- const base_js_1 = require("../../errors/base.js");
6
- const chain_js_1 = require("../../errors/chain.js");
7
- const isAddress_js_1 = require("../../utils/address/isAddress.js");
8
- const concat_js_1 = require("../../utils/data/concat.js");
9
- const toHex_js_1 = require("../../utils/encoding/toHex.js");
10
- const toRlp_js_1 = require("../../utils/encoding/toRlp.js");
11
- const serializeTransaction_js_1 = require("../../utils/transaction/serializeTransaction.js");
12
- const serializeTransactionZkSync = (tx, signature) => {
13
- if (isEIP712(tx))
14
- return serializeTransactionZkSyncEIP712(tx);
15
- return (0, serializeTransaction_js_1.serializeTransaction)(tx, signature);
16
- };
17
- exports.serializeTransactionZkSync = serializeTransactionZkSync;
18
- exports.serializersZkSync = {
19
- transaction: exports.serializeTransactionZkSync,
20
- };
21
- function serializeTransactionZkSyncEIP712(transaction) {
22
- const { chainId, gas, nonce, to, from, value, maxFeePerGas, maxPriorityFeePerGas, customSignature, factoryDeps, paymaster, paymasterInput, gasPerPubdata, data, } = transaction;
23
- assertTransactionEIP712(transaction);
24
- const serializedTransaction = [
25
- nonce ? (0, toHex_js_1.toHex)(nonce) : '0x',
26
- maxPriorityFeePerGas ? (0, toHex_js_1.toHex)(maxPriorityFeePerGas) : '0x',
27
- maxFeePerGas ? (0, toHex_js_1.toHex)(maxFeePerGas) : '0x',
28
- gas ? (0, toHex_js_1.toHex)(gas) : '0x',
29
- to ?? '0x',
30
- value ? (0, toHex_js_1.toHex)(value) : '0x',
31
- data ?? '0x',
32
- (0, toHex_js_1.toHex)(chainId),
33
- (0, toHex_js_1.toHex)(''),
34
- (0, toHex_js_1.toHex)(''),
35
- (0, toHex_js_1.toHex)(chainId),
36
- from ?? '0x',
37
- gasPerPubdata ? (0, toHex_js_1.toHex)(gasPerPubdata) : '0x',
38
- factoryDeps ?? [],
39
- customSignature ?? '0x',
40
- paymaster && paymasterInput ? [paymaster, paymasterInput] : [],
41
- ];
42
- return (0, concat_js_1.concatHex)([
43
- '0x71',
44
- (0, toRlp_js_1.toRlp)(serializedTransaction),
45
- ]);
46
- }
47
- function isEIP712(transaction) {
48
- if ('customSignature' in transaction ||
49
- 'paymaster' in transaction ||
50
- 'paymasterInput' in transaction ||
51
- 'gasPerPubdata' in transaction ||
52
- 'factoryDeps' in transaction)
53
- return true;
54
- return false;
55
- }
56
- function assertTransactionEIP712(transaction) {
57
- const { chainId, to, from, paymaster, paymasterInput } = transaction;
58
- if (chainId <= 0)
59
- throw new chain_js_1.InvalidChainIdError({ chainId });
60
- if (to && !(0, isAddress_js_1.isAddress)(to))
61
- throw new address_js_1.InvalidAddressError({ address: to });
62
- if (from && !(0, isAddress_js_1.isAddress)(from))
63
- throw new address_js_1.InvalidAddressError({ address: from });
64
- if (paymaster && !(0, isAddress_js_1.isAddress)(paymaster))
65
- throw new address_js_1.InvalidAddressError({ address: paymaster });
66
- if (paymaster && !paymasterInput) {
67
- throw new base_js_1.BaseError('`paymasterInput` must be provided when `paymaster` is defined');
68
- }
69
- if (!paymaster && paymasterInput) {
70
- throw new base_js_1.BaseError('`paymaster` must be provided when `paymasterInput` is defined');
71
- }
72
- }
73
- exports.assertTransactionEIP712 = assertTransactionEIP712;
74
- //# sourceMappingURL=serializers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../../chains/zksync/serializers.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,kDAAgD;AAChD,oDAA2D;AAG3D,mEAA4D;AAC5D,0DAAsD;AACtD,4DAAqD;AACrD,4DAAqD;AACrD,6FAGwD;AAOjD,MAAM,0BAA0B,GAEnC,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE;IACpB,IAAI,QAAQ,CAAC,EAAE,CAAC;QACd,OAAO,gCAAgC,CACrC,EAAyC,CAC1C,CAAA;IACH,OAAO,IAAA,8CAAoB,EAAC,EAA6B,EAAE,SAAS,CAAC,CAAA;AACvE,CAAC,CAAA;AARY,QAAA,0BAA0B,8BAQtC;AAEY,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,kCAA0B;CACJ,CAAA;AAQrC,SAAS,gCAAgC,CACvC,WAAgD;IAEhD,MAAM,EACJ,OAAO,EACP,GAAG,EACH,KAAK,EACL,EAAE,EACF,IAAI,EACJ,KAAK,EACL,YAAY,EACZ,oBAAoB,EACpB,eAAe,EACf,WAAW,EACX,SAAS,EACT,cAAc,EACd,aAAa,EACb,IAAI,GACL,GAAG,WAAW,CAAA;IAEf,uBAAuB,CAAC,W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,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC;AAED,SAAgB,uBAAuB,CACrC,WAAgD;IAEhD,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,GAAG,WAAW,CAAA;IACpE,IAAI,OAAO,IAAI,CAAC;QAAE,MAAM,IAAI,8BAAmB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IAE5D,IAAI,EAAE,IAAI,CAAC,IAAA,wBAAS,EAAC,EAAE,CAAC;QAAE,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;IACxE,IAAI,IAAI,IAAI,CAAC,IAAA,wBAAS,EAAC,IAAI,CAAC;QAAE,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;IAC9E,IAAI,SAAS,IAAI,CAAC,IAAA,wBAAS,EAAC,SAAS,CAAC;QACpC,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAA;IAEvD,IAAI,SAAS,IAAI,CAAC,cAAc,EAAE;QAChC,MAAM,IAAI,mBAAS,CACjB,+DAA+D,CAChE,CAAA;KACF;IAED,IAAI,CAAC,SAAS,IAAI,cAAc,EAAE;QAChC,MAAM,IAAI,mBAAS,CACjB,+DAA+D,CAChE,CAAA;KACF;AACH,CAAC;AAtBD,0DAsBC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../chains/zksync/types.ts"],"names":[],"mappings":""}
@@ -1,42 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createClient = void 0;
4
- const accounts_js_1 = require("../utils/accounts.js");
5
- const uid_js_1 = require("../utils/uid.js");
6
- function createClient(parameters) {
7
- const { batch, cacheTime = parameters.pollingInterval ?? 4000, key = 'base', name = 'Base Client', pollingInterval = 4000, type = 'base', } = parameters;
8
- const chain = parameters.chain;
9
- const account = parameters.account
10
- ? (0, accounts_js_1.parseAccount)(parameters.account)
11
- : undefined;
12
- const { config, request, value } = parameters.transport({
13
- chain,
14
- pollingInterval,
15
- });
16
- const transport = { ...config, ...value };
17
- const client = {
18
- account,
19
- batch,
20
- cacheTime,
21
- chain,
22
- key,
23
- name,
24
- pollingInterval,
25
- request,
26
- transport,
27
- type,
28
- uid: (0, uid_js_1.uid)(),
29
- };
30
- function extend(base) {
31
- return (extendFn) => {
32
- const extended = extendFn(base);
33
- for (const key in client)
34
- delete extended[key];
35
- const combined = { ...base, ...extended };
36
- return Object.assign(combined, { extend: extend(combined) });
37
- };
38
- }
39
- return Object.assign(client, { extend: extend(client) });
40
- }
41
- exports.createClient = createClient;
42
- //# sourceMappingURL=createClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createClient.js","sourceRoot":"","sources":["../../clients/createClient.ts"],"names":[],"mappings":";;;AAaA,sDAAmD;AACnD,4CAAqC;AAwKrC,SAAgB,YAAY,CAAC,UAAwB;IACnD,MAAM,EACJ,KAAK,EACL,SAAS,GAAG,UAAU,CAAC,eAAe,IAAI,IAAK,EAC/C,GAAG,GAAG,MAAM,EACZ,IAAI,GAAG,aAAa,EACpB,eAAe,GAAG,IAAK,EACvB,IAAI,GAAG,MAAM,GACd,GAAG,UAAU,CAAA;IAEd,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAA;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,OAAO;QAChC,CAAC,CAAC,IAAA,0BAAY,EAAC,UAAU,CAAC,OAAO,CAAC;QAClC,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,SAAS,CAAC;QACtD,KAAK;QACL,eAAe;KAChB,CAAC,CAAA;IACF,MAAM,SAAS,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,KAAK,EAAE,CAAA;IAEzC,MAAM,MAAM,GAAG;QACb,OAAO;QACP,KAAK;QACL,SAAS;QACT,KAAK;QACL,GAAG;QACH,IAAI;QACJ,eAAe;QACf,OAAO;QACP,SAAS;QACT,IAAI;QACJ,GAAG,EAAE,IAAA,YAAG,GAAE;KACX,CAAA;IAED,SAAS,MAAM,CAAC,IAAmB;QAEjC,OAAO,CAAC,QAAkB,EAAE,EAAE;YAC5B,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAa,CAAA;YAC3C,KAAK,MAAM,GAAG,IAAI,MAAM;gBAAE,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAA;YAC9C,MAAM,QAAQ,GAAG,EAAE,GAAG,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAA;YACzC,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAA;QAC9D,CAAC,CAAA;IACH,CAAC;IAED,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,CAAQ,EAAE,CAAC,CAAA;AACjE,CAAC;AA7CD,oCA6CC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createPublicClient = void 0;
4
- const createClient_js_1 = require("./createClient.js");
5
- const public_js_1 = require("./decorators/public.js");
6
- function createPublicClient(parameters) {
7
- const { key = 'public', name = 'Public Client' } = parameters;
8
- const client = (0, createClient_js_1.createClient)({
9
- ...parameters,
10
- key,
11
- name,
12
- type: 'publicClient',
13
- });
14
- return client.extend(public_js_1.publicActions);
15
- }
16
- exports.createPublicClient = createPublicClient;
17
- //# sourceMappingURL=createPublicClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createPublicClient.js","sourceRoot":"","sources":["../../clients/createPublicClient.ts"],"names":[],"mappings":";;;AAIA,uDAK0B;AAC1B,sDAA0E;AA4D1E,SAAgB,kBAAkB,CAChC,UAA8B;IAE9B,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,eAAe,EAAE,GAAG,UAAU,CAAA;IAC7D,MAAM,MAAM,GAAG,IAAA,8BAAY,EAAC;QAC1B,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,cAAc;KACrB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,yBAAa,CAAC,CAAA;AACrC,CAAC;AAXD,gDAWC"}
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createTestClient = void 0;
4
- const createClient_js_1 = require("./createClient.js");
5
- const test_js_1 = require("./decorators/test.js");
6
- function createTestClient(parameters) {
7
- const { key = 'test', name = 'Test Client', mode } = parameters;
8
- const client = (0, createClient_js_1.createClient)({
9
- ...parameters,
10
- key,
11
- name,
12
- type: 'testClient',
13
- });
14
- return client.extend((config) => ({
15
- mode,
16
- ...(0, test_js_1.testActions)({ mode })(config),
17
- }));
18
- }
19
- exports.createTestClient = createTestClient;
20
- //# sourceMappingURL=createTestClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createTestClient.js","sourceRoot":"","sources":["../../clients/createTestClient.ts"],"names":[],"mappings":";;;AAQA,uDAK0B;AAC1B,kDAAoE;AA+EpE,SAAgB,gBAAgB,CAAC,UAA4B;IAC3D,MAAM,EAAE,GAAG,GAAG,MAAM,EAAE,IAAI,GAAG,aAAa,EAAE,IAAI,EAAE,GAAG,UAAU,CAAA;IAC/D,MAAM,MAAM,GAAG,IAAA,8BAAY,EAAC;QAC1B,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,IAAI,EAAE,YAAY;KACnB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAChC,IAAI;QACJ,GAAG,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC;KACjC,CAAC,CAAC,CAAA;AACL,CAAC;AAZD,4CAYC"}
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createWalletClient = void 0;
4
- const createClient_js_1 = require("./createClient.js");
5
- const wallet_js_1 = require("./decorators/wallet.js");
6
- function createWalletClient(parameters) {
7
- const { key = 'wallet', name = 'Wallet Client', transport } = parameters;
8
- const client = (0, createClient_js_1.createClient)({
9
- ...parameters,
10
- key,
11
- name,
12
- transport: (opts) => transport({ ...opts, retryCount: 0 }),
13
- type: 'walletClient',
14
- });
15
- return client.extend(wallet_js_1.walletActions);
16
- }
17
- exports.createWalletClient = createWalletClient;
18
- //# sourceMappingURL=createWalletClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"createWalletClient.js","sourceRoot":"","sources":["../../clients/createWalletClient.ts"],"names":[],"mappings":";;;AAQA,uDAK0B;AAC1B,sDAA0E;AAmF1E,SAAgB,kBAAkB,CAChC,UAA8B;IAE9B,MAAM,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,GAAG,eAAe,EAAE,SAAS,EAAE,GAAG,UAAU,CAAA;IACxE,MAAM,MAAM,GAAG,IAAA,8BAAY,EAAC;QAC1B,GAAG,UAAU;QACb,GAAG;QACH,IAAI;QACJ,SAAS,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,GAAG,IAAI,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;QAC1D,IAAI,EAAE,cAAc;KACrB,CAAC,CAAA;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,yBAAa,CAAC,CAAA;AACrC,CAAC;AAZD,gDAYC"}
@@ -1,101 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.publicActions = void 0;
4
- const getEnsAddress_js_1 = require("../../actions/ens/getEnsAddress.js");
5
- const getEnsAvatar_js_1 = require("../../actions/ens/getEnsAvatar.js");
6
- const getEnsName_js_1 = require("../../actions/ens/getEnsName.js");
7
- const getEnsResolver_js_1 = require("../../actions/ens/getEnsResolver.js");
8
- const getEnsText_js_1 = require("../../actions/ens/getEnsText.js");
9
- const call_js_1 = require("../../actions/public/call.js");
10
- const createBlockFilter_js_1 = require("../../actions/public/createBlockFilter.js");
11
- const createContractEventFilter_js_1 = require("../../actions/public/createContractEventFilter.js");
12
- const createEventFilter_js_1 = require("../../actions/public/createEventFilter.js");
13
- const createPendingTransactionFilter_js_1 = require("../../actions/public/createPendingTransactionFilter.js");
14
- const estimateContractGas_js_1 = require("../../actions/public/estimateContractGas.js");
15
- const estimateFeesPerGas_js_1 = require("../../actions/public/estimateFeesPerGas.js");
16
- const estimateGas_js_1 = require("../../actions/public/estimateGas.js");
17
- const estimateMaxPriorityFeePerGas_js_1 = require("../../actions/public/estimateMaxPriorityFeePerGas.js");
18
- const getBalance_js_1 = require("../../actions/public/getBalance.js");
19
- const getBlock_js_1 = require("../../actions/public/getBlock.js");
20
- const getBlockNumber_js_1 = require("../../actions/public/getBlockNumber.js");
21
- const getBlockTransactionCount_js_1 = require("../../actions/public/getBlockTransactionCount.js");
22
- const getBytecode_js_1 = require("../../actions/public/getBytecode.js");
23
- const getChainId_js_1 = require("../../actions/public/getChainId.js");
24
- const getContractEvents_js_1 = require("../../actions/public/getContractEvents.js");
25
- const getFeeHistory_js_1 = require("../../actions/public/getFeeHistory.js");
26
- const getFilterChanges_js_1 = require("../../actions/public/getFilterChanges.js");
27
- const getFilterLogs_js_1 = require("../../actions/public/getFilterLogs.js");
28
- const getGasPrice_js_1 = require("../../actions/public/getGasPrice.js");
29
- const getLogs_js_1 = require("../../actions/public/getLogs.js");
30
- const getProof_js_1 = require("../../actions/public/getProof.js");
31
- const getStorageAt_js_1 = require("../../actions/public/getStorageAt.js");
32
- const getTransaction_js_1 = require("../../actions/public/getTransaction.js");
33
- const getTransactionConfirmations_js_1 = require("../../actions/public/getTransactionConfirmations.js");
34
- const getTransactionCount_js_1 = require("../../actions/public/getTransactionCount.js");
35
- const getTransactionReceipt_js_1 = require("../../actions/public/getTransactionReceipt.js");
36
- const multicall_js_1 = require("../../actions/public/multicall.js");
37
- const readContract_js_1 = require("../../actions/public/readContract.js");
38
- const simulateContract_js_1 = require("../../actions/public/simulateContract.js");
39
- const uninstallFilter_js_1 = require("../../actions/public/uninstallFilter.js");
40
- const verifyMessage_js_1 = require("../../actions/public/verifyMessage.js");
41
- const verifyTypedData_js_1 = require("../../actions/public/verifyTypedData.js");
42
- const waitForTransactionReceipt_js_1 = require("../../actions/public/waitForTransactionReceipt.js");
43
- const watchBlockNumber_js_1 = require("../../actions/public/watchBlockNumber.js");
44
- const watchBlocks_js_1 = require("../../actions/public/watchBlocks.js");
45
- const watchContractEvent_js_1 = require("../../actions/public/watchContractEvent.js");
46
- const watchEvent_js_1 = require("../../actions/public/watchEvent.js");
47
- const watchPendingTransactions_js_1 = require("../../actions/public/watchPendingTransactions.js");
48
- const prepareTransactionRequest_js_1 = require("../../actions/wallet/prepareTransactionRequest.js");
49
- const sendRawTransaction_js_1 = require("../../actions/wallet/sendRawTransaction.js");
50
- function publicActions(client) {
51
- return {
52
- call: (args) => (0, call_js_1.call)(client, args),
53
- createBlockFilter: () => (0, createBlockFilter_js_1.createBlockFilter)(client),
54
- createContractEventFilter: (args) => (0, createContractEventFilter_js_1.createContractEventFilter)(client, args),
55
- createEventFilter: (args) => (0, createEventFilter_js_1.createEventFilter)(client, args),
56
- createPendingTransactionFilter: () => (0, createPendingTransactionFilter_js_1.createPendingTransactionFilter)(client),
57
- estimateContractGas: (args) => (0, estimateContractGas_js_1.estimateContractGas)(client, args),
58
- estimateGas: (args) => (0, estimateGas_js_1.estimateGas)(client, args),
59
- getBalance: (args) => (0, getBalance_js_1.getBalance)(client, args),
60
- getBlock: (args) => (0, getBlock_js_1.getBlock)(client, args),
61
- getBlockNumber: (args) => (0, getBlockNumber_js_1.getBlockNumber)(client, args),
62
- getBlockTransactionCount: (args) => (0, getBlockTransactionCount_js_1.getBlockTransactionCount)(client, args),
63
- getBytecode: (args) => (0, getBytecode_js_1.getBytecode)(client, args),
64
- getChainId: () => (0, getChainId_js_1.getChainId)(client),
65
- getContractEvents: (args) => (0, getContractEvents_js_1.getContractEvents)(client, args),
66
- getEnsAddress: (args) => (0, getEnsAddress_js_1.getEnsAddress)(client, args),
67
- getEnsAvatar: (args) => (0, getEnsAvatar_js_1.getEnsAvatar)(client, args),
68
- getEnsName: (args) => (0, getEnsName_js_1.getEnsName)(client, args),
69
- getEnsResolver: (args) => (0, getEnsResolver_js_1.getEnsResolver)(client, args),
70
- getEnsText: (args) => (0, getEnsText_js_1.getEnsText)(client, args),
71
- getFeeHistory: (args) => (0, getFeeHistory_js_1.getFeeHistory)(client, args),
72
- estimateFeesPerGas: (args) => (0, estimateFeesPerGas_js_1.estimateFeesPerGas)(client, args),
73
- getFilterChanges: (args) => (0, getFilterChanges_js_1.getFilterChanges)(client, args),
74
- getFilterLogs: (args) => (0, getFilterLogs_js_1.getFilterLogs)(client, args),
75
- getGasPrice: () => (0, getGasPrice_js_1.getGasPrice)(client),
76
- getLogs: (args) => (0, getLogs_js_1.getLogs)(client, args),
77
- getProof: (args) => (0, getProof_js_1.getProof)(client, args),
78
- estimateMaxPriorityFeePerGas: (args) => (0, estimateMaxPriorityFeePerGas_js_1.estimateMaxPriorityFeePerGas)(client, args),
79
- getStorageAt: (args) => (0, getStorageAt_js_1.getStorageAt)(client, args),
80
- getTransaction: (args) => (0, getTransaction_js_1.getTransaction)(client, args),
81
- getTransactionConfirmations: (args) => (0, getTransactionConfirmations_js_1.getTransactionConfirmations)(client, args),
82
- getTransactionCount: (args) => (0, getTransactionCount_js_1.getTransactionCount)(client, args),
83
- getTransactionReceipt: (args) => (0, getTransactionReceipt_js_1.getTransactionReceipt)(client, args),
84
- multicall: (args) => (0, multicall_js_1.multicall)(client, args),
85
- prepareTransactionRequest: (args) => (0, prepareTransactionRequest_js_1.prepareTransactionRequest)(client, args),
86
- readContract: (args) => (0, readContract_js_1.readContract)(client, args),
87
- sendRawTransaction: (args) => (0, sendRawTransaction_js_1.sendRawTransaction)(client, args),
88
- simulateContract: (args) => (0, simulateContract_js_1.simulateContract)(client, args),
89
- verifyMessage: (args) => (0, verifyMessage_js_1.verifyMessage)(client, args),
90
- verifyTypedData: (args) => (0, verifyTypedData_js_1.verifyTypedData)(client, args),
91
- uninstallFilter: (args) => (0, uninstallFilter_js_1.uninstallFilter)(client, args),
92
- waitForTransactionReceipt: (args) => (0, waitForTransactionReceipt_js_1.waitForTransactionReceipt)(client, args),
93
- watchBlocks: (args) => (0, watchBlocks_js_1.watchBlocks)(client, args),
94
- watchBlockNumber: (args) => (0, watchBlockNumber_js_1.watchBlockNumber)(client, args),
95
- watchContractEvent: (args) => (0, watchContractEvent_js_1.watchContractEvent)(client, args),
96
- watchEvent: (args) => (0, watchEvent_js_1.watchEvent)(client, args),
97
- watchPendingTransactions: (args) => (0, watchPendingTransactions_js_1.watchPendingTransactions)(client, args),
98
- };
99
- }
100
- exports.publicActions = publicActions;
101
- //# sourceMappingURL=public.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"public.js","sourceRoot":"","sources":["../../../clients/decorators/public.ts"],"names":[],"mappings":";;;AAEA,yEAI2C;AAC3C,uEAI0C;AAC1C,mEAIwC;AACxC,2EAI4C;AAC5C,mEAIwC;AACxC,0DAIqC;AACrC,oFAGkD;AAClD,oGAI0D;AAC1D,oFAIkD;AAClD,8GAG+D;AAC/D,wFAIoD;AACpD,sFAImD;AACnD,wEAI4C;AAC5C,0GAI6D;AAC7D,sEAI2C;AAC3C,kEAIyC;AACzC,8EAI+C;AAC/C,kGAIyD;AACzD,wEAI4C;AAC5C,sEAG2C;AAC3C,oFAIkD;AAClD,4EAI8C;AAC9C,kFAIiD;AACjD,4EAI8C;AAC9C,wEAG4C;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