@0xtorch/evm 0.0.1

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 (642) hide show
  1. package/README.md +15 -0
  2. package/dist/import/abis/erc1155.d.ts +245 -0
  3. package/dist/import/abis/erc1155.d.ts.map +1 -0
  4. package/dist/import/abis/erc20.d.ts +169 -0
  5. package/dist/import/abis/erc20.d.ts.map +1 -0
  6. package/dist/import/abis/erc721.d.ts +267 -0
  7. package/dist/import/abis/erc721.d.ts.map +1 -0
  8. package/dist/import/abis/index.d.ts +5 -0
  9. package/dist/import/abis/index.d.ts.map +1 -0
  10. package/dist/import/abis/weth.d.ts +214 -0
  11. package/dist/import/abis/weth.d.ts.map +1 -0
  12. package/dist/import/absoluteValue.d.mts +3 -0
  13. package/dist/import/absoluteValue.d.mts.map +1 -0
  14. package/dist/import/absoluteValue.d.ts +3 -0
  15. package/dist/import/absoluteValue.d.ts.map +1 -0
  16. package/dist/import/analyzer/analyze.d.ts +18 -0
  17. package/dist/import/analyzer/analyze.d.ts.map +1 -0
  18. package/dist/import/analyzer/analyzer.d.ts +4 -0
  19. package/dist/import/analyzer/analyzer.d.ts.map +1 -0
  20. package/dist/import/analyzer/axieMarketplace/analyze.d.ts +4 -0
  21. package/dist/import/analyzer/axieMarketplace/analyze.d.ts.map +1 -0
  22. package/dist/import/analyzer/axieMarketplace/index.d.ts +2 -0
  23. package/dist/import/analyzer/axieMarketplace/index.d.ts.map +1 -0
  24. package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts +59 -0
  25. package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts.map +1 -0
  26. package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts +59 -0
  27. package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts.map +1 -0
  28. package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts +59 -0
  29. package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts.map +1 -0
  30. package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts +59 -0
  31. package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts.map +1 -0
  32. package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts +59 -0
  33. package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts.map +1 -0
  34. package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts +59 -0
  35. package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts.map +1 -0
  36. package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts +59 -0
  37. package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts.map +1 -0
  38. package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts +59 -0
  39. package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts.map +1 -0
  40. package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts +53 -0
  41. package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts.map +1 -0
  42. package/dist/import/analyzer/createAccountActionByAction/index.d.ts +2 -0
  43. package/dist/import/analyzer/createAccountActionByAction/index.d.ts.map +1 -0
  44. package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts +59 -0
  45. package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts.map +1 -0
  46. package/dist/import/analyzer/createAccountActionByAction/spam.d.ts +59 -0
  47. package/dist/import/analyzer/createAccountActionByAction/spam.d.ts.map +1 -0
  48. package/dist/import/analyzer/createAccountActionByAction/trade.d.ts +59 -0
  49. package/dist/import/analyzer/createAccountActionByAction/trade.d.ts.map +1 -0
  50. package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts +59 -0
  51. package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts.map +1 -0
  52. package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts +59 -0
  53. package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts.map +1 -0
  54. package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts +59 -0
  55. package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts.map +1 -0
  56. package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts +59 -0
  57. package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts.map +1 -0
  58. package/dist/import/analyzer/gasFee/analyze.d.ts +4 -0
  59. package/dist/import/analyzer/gasFee/analyze.d.ts.map +1 -0
  60. package/dist/import/analyzer/gasFee/index.d.ts +2 -0
  61. package/dist/import/analyzer/gasFee/index.d.ts.map +1 -0
  62. package/dist/import/analyzer/index.d.ts +10 -0
  63. package/dist/import/analyzer/index.d.ts.map +1 -0
  64. package/dist/import/analyzer/json/analyze.d.ts +5 -0
  65. package/dist/import/analyzer/json/analyze.d.ts.map +1 -0
  66. package/dist/import/analyzer/json/generatorAnyLog.d.ts +55 -0
  67. package/dist/import/analyzer/json/generatorAnyLog.d.ts.map +1 -0
  68. package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts +54 -0
  69. package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts.map +1 -0
  70. package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts +55 -0
  71. package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts.map +1 -0
  72. package/dist/import/analyzer/json/index.d.ts +2 -0
  73. package/dist/import/analyzer/json/index.d.ts.map +1 -0
  74. package/dist/import/analyzer/json/types.d.ts +177 -0
  75. package/dist/import/analyzer/json/types.d.ts.map +1 -0
  76. package/dist/import/analyzer/seaport/analyze.d.ts +4 -0
  77. package/dist/import/analyzer/seaport/analyze.d.ts.map +1 -0
  78. package/dist/import/analyzer/seaport/index.d.ts +2 -0
  79. package/dist/import/analyzer/seaport/index.d.ts.map +1 -0
  80. package/dist/import/analyzer/seaport/orderFulfilled.d.ts +139 -0
  81. package/dist/import/analyzer/seaport/orderFulfilled.d.ts.map +1 -0
  82. package/dist/import/analyzer/spam/analyze.d.ts +4 -0
  83. package/dist/import/analyzer/spam/analyze.d.ts.map +1 -0
  84. package/dist/import/analyzer/spam/index.d.ts +2 -0
  85. package/dist/import/analyzer/spam/index.d.ts.map +1 -0
  86. package/dist/import/analyzer/swap/analyze.d.ts +4 -0
  87. package/dist/import/analyzer/swap/analyze.d.ts.map +1 -0
  88. package/dist/import/analyzer/swap/index.d.ts +2 -0
  89. package/dist/import/analyzer/swap/index.d.ts.map +1 -0
  90. package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts +108 -0
  91. package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts.map +1 -0
  92. package/dist/import/analyzer/swap/univ2PairSwap.d.ts +84 -0
  93. package/dist/import/analyzer/swap/univ2PairSwap.d.ts.map +1 -0
  94. package/dist/import/analyzer/swap/univ3PoolSwap.d.ts +96 -0
  95. package/dist/import/analyzer/swap/univ3PoolSwap.d.ts.map +1 -0
  96. package/dist/import/analyzer/swap/wrappedDeposit.d.ts +36 -0
  97. package/dist/import/analyzer/swap/wrappedDeposit.d.ts.map +1 -0
  98. package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts +36 -0
  99. package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts.map +1 -0
  100. package/dist/import/analyzer/transfer/analyze.d.ts +4 -0
  101. package/dist/import/analyzer/transfer/analyze.d.ts.map +1 -0
  102. package/dist/import/analyzer/transfer/index.d.ts +2 -0
  103. package/dist/import/analyzer/transfer/index.d.ts.map +1 -0
  104. package/dist/import/analyzer/types.d.ts +17 -0
  105. package/dist/import/analyzer/types.d.ts.map +1 -0
  106. package/dist/import/apps/index.d.ts +2 -0
  107. package/dist/import/apps/index.d.ts.map +1 -0
  108. package/dist/import/apps/types.d.ts +6 -0
  109. package/dist/import/apps/types.d.ts.map +1 -0
  110. package/dist/import/chains/definitions/arbitrumOne.d.ts +99 -0
  111. package/dist/import/chains/definitions/arbitrumOne.d.ts.map +1 -0
  112. package/dist/import/chains/definitions/astar.d.ts +64 -0
  113. package/dist/import/chains/definitions/astar.d.ts.map +1 -0
  114. package/dist/import/chains/definitions/avalancheC.d.ts +84 -0
  115. package/dist/import/chains/definitions/avalancheC.d.ts.map +1 -0
  116. package/dist/import/chains/definitions/base.d.ts +94 -0
  117. package/dist/import/chains/definitions/base.d.ts.map +1 -0
  118. package/dist/import/chains/definitions/bsc.d.ts +144 -0
  119. package/dist/import/chains/definitions/bsc.d.ts.map +1 -0
  120. package/dist/import/chains/definitions/defineChain.d.ts +3 -0
  121. package/dist/import/chains/definitions/defineChain.d.ts.map +1 -0
  122. package/dist/import/chains/definitions/ethereum.d.ts +129 -0
  123. package/dist/import/chains/definitions/ethereum.d.ts.map +1 -0
  124. package/dist/import/chains/definitions/fantom.d.ts +89 -0
  125. package/dist/import/chains/definitions/fantom.d.ts.map +1 -0
  126. package/dist/import/chains/definitions/index.d.ts +16 -0
  127. package/dist/import/chains/definitions/index.d.ts.map +1 -0
  128. package/dist/import/chains/definitions/linea.d.ts +69 -0
  129. package/dist/import/chains/definitions/linea.d.ts.map +1 -0
  130. package/dist/import/chains/definitions/mantle.d.ts +62 -0
  131. package/dist/import/chains/definitions/mantle.d.ts.map +1 -0
  132. package/dist/import/chains/definitions/metis.d.ts +52 -0
  133. package/dist/import/chains/definitions/metis.d.ts.map +1 -0
  134. package/dist/import/chains/definitions/moonbeam.d.ts +84 -0
  135. package/dist/import/chains/definitions/moonbeam.d.ts.map +1 -0
  136. package/dist/import/chains/definitions/moonriver.d.ts +64 -0
  137. package/dist/import/chains/definitions/moonriver.d.ts.map +1 -0
  138. package/dist/import/chains/definitions/optimism.d.ts +104 -0
  139. package/dist/import/chains/definitions/optimism.d.ts.map +1 -0
  140. package/dist/import/chains/definitions/polygonPos.d.ts +84 -0
  141. package/dist/import/chains/definitions/polygonPos.d.ts.map +1 -0
  142. package/dist/import/chains/definitions/ronin.d.ts +49 -0
  143. package/dist/import/chains/definitions/ronin.d.ts.map +1 -0
  144. package/dist/import/chains/externals/defillama/constants.d.ts +2 -0
  145. package/dist/import/chains/externals/defillama/constants.d.ts.map +1 -0
  146. package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts +10 -0
  147. package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts.map +1 -0
  148. package/dist/import/chains/externals/defillama/index.d.ts +2 -0
  149. package/dist/import/chains/externals/defillama/index.d.ts.map +1 -0
  150. package/dist/import/chains/externals/index.d.ts +2 -0
  151. package/dist/import/chains/externals/index.d.ts.map +1 -0
  152. package/dist/import/chains/index.d.ts +4 -0
  153. package/dist/import/chains/index.d.ts.map +1 -0
  154. package/dist/import/chains/types/chain.d.ts +22 -0
  155. package/dist/import/chains/types/chain.d.ts.map +1 -0
  156. package/dist/import/chains/types/index.d.ts +3 -0
  157. package/dist/import/chains/types/index.d.ts.map +1 -0
  158. package/dist/import/chains/types/rpc.d.ts +7 -0
  159. package/dist/import/chains/types/rpc.d.ts.map +1 -0
  160. package/dist/import/clients/definitions/defineClient.d.ts +3 -0
  161. package/dist/import/clients/definitions/defineClient.d.ts.map +1 -0
  162. package/dist/import/clients/definitions/index.d.ts +2 -0
  163. package/dist/import/clients/definitions/index.d.ts.map +1 -0
  164. package/dist/import/clients/definitions/viemClient.d.ts +59 -0
  165. package/dist/import/clients/definitions/viemClient.d.ts.map +1 -0
  166. package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts +13 -0
  167. package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts.map +1 -0
  168. package/dist/import/clients/externals/viem/getBalance.d.ts +15 -0
  169. package/dist/import/clients/externals/viem/getBalance.d.ts.map +1 -0
  170. package/dist/import/clients/externals/viem/getBlock.d.ts +14 -0
  171. package/dist/import/clients/externals/viem/getBlock.d.ts.map +1 -0
  172. package/dist/import/clients/externals/viem/getBlockNumber.d.ts +13 -0
  173. package/dist/import/clients/externals/viem/getBlockNumber.d.ts.map +1 -0
  174. package/dist/import/clients/externals/viem/getEventLogs.d.ts +19 -0
  175. package/dist/import/clients/externals/viem/getEventLogs.d.ts.map +1 -0
  176. package/dist/import/clients/externals/viem/getTransaction.d.ts +15 -0
  177. package/dist/import/clients/externals/viem/getTransaction.d.ts.map +1 -0
  178. package/dist/import/clients/externals/viem/getTransactionCount.d.ts +15 -0
  179. package/dist/import/clients/externals/viem/getTransactionCount.d.ts.map +1 -0
  180. package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts +15 -0
  181. package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts.map +1 -0
  182. package/dist/import/clients/externals/viem/index.d.ts +11 -0
  183. package/dist/import/clients/externals/viem/index.d.ts.map +1 -0
  184. package/dist/import/clients/externals/viem/middleware.d.ts +23 -0
  185. package/dist/import/clients/externals/viem/middleware.d.ts.map +1 -0
  186. package/dist/import/clients/externals/viem/multicall.d.ts +14 -0
  187. package/dist/import/clients/externals/viem/multicall.d.ts.map +1 -0
  188. package/dist/import/clients/externals/viem/readContract.d.ts +14 -0
  189. package/dist/import/clients/externals/viem/readContract.d.ts.map +1 -0
  190. package/dist/import/clients/index.d.ts +3 -0
  191. package/dist/import/clients/index.d.ts.map +1 -0
  192. package/dist/import/clients/types.d.ts +64 -0
  193. package/dist/import/clients/types.d.ts.map +1 -0
  194. package/dist/import/createBigDecimal.d.mts +6 -0
  195. package/dist/import/createBigDecimal.d.mts.map +1 -0
  196. package/dist/import/createBigDecimal.d.ts +3 -0
  197. package/dist/import/createBigDecimal.d.ts.map +1 -0
  198. package/dist/import/creates/createEvmAccount.d.ts +5 -0
  199. package/dist/import/creates/createEvmAccount.d.ts.map +1 -0
  200. package/dist/import/decoder/decode.d.ts +3 -0
  201. package/dist/import/decoder/decode.d.ts.map +1 -0
  202. package/dist/import/decoder/decoder.d.ts +3 -0
  203. package/dist/import/decoder/decoder.d.ts.map +1 -0
  204. package/dist/import/decoder/index.d.ts +6 -0
  205. package/dist/import/decoder/index.d.ts.map +1 -0
  206. package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts +4 -0
  207. package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts.map +1 -0
  208. package/dist/import/decoder/parseErc20TransferLogs.d.ts +8 -0
  209. package/dist/import/decoder/parseErc20TransferLogs.d.ts.map +1 -0
  210. package/dist/import/decoder/parseErc721TransferLogs.d.ts +8 -0
  211. package/dist/import/decoder/parseErc721TransferLogs.d.ts.map +1 -0
  212. package/dist/import/decoder/types.d.ts +16 -0
  213. package/dist/import/decoder/types.d.ts.map +1 -0
  214. package/dist/import/divide.d.mts +8 -0
  215. package/dist/import/divide.d.mts.map +1 -0
  216. package/dist/import/divide.d.ts +3 -0
  217. package/dist/import/divide.d.ts.map +1 -0
  218. package/dist/import/equals.d.mts +3 -0
  219. package/dist/import/equals.d.mts.map +1 -0
  220. package/dist/import/equals.d.ts +3 -0
  221. package/dist/import/equals.d.ts.map +1 -0
  222. package/dist/import/explorers/definitions/blockscout.d.ts +60 -0
  223. package/dist/import/explorers/definitions/blockscout.d.ts.map +1 -0
  224. package/dist/import/explorers/definitions/defineExplorer.d.ts +3 -0
  225. package/dist/import/explorers/definitions/defineExplorer.d.ts.map +1 -0
  226. package/dist/import/explorers/definitions/etherscan.d.ts +61 -0
  227. package/dist/import/explorers/definitions/etherscan.d.ts.map +1 -0
  228. package/dist/import/explorers/definitions/index.d.ts +5 -0
  229. package/dist/import/explorers/definitions/index.d.ts.map +1 -0
  230. package/dist/import/explorers/definitions/roninExplorer.d.ts +62 -0
  231. package/dist/import/explorers/definitions/roninExplorer.d.ts.map +1 -0
  232. package/dist/import/explorers/definitions/routescan.d.ts +19 -0
  233. package/dist/import/explorers/definitions/routescan.d.ts.map +1 -0
  234. package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts +11 -0
  235. package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts.map +1 -0
  236. package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts +30 -0
  237. package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts.map +1 -0
  238. package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts +62 -0
  239. package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts.map +1 -0
  240. package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts +54 -0
  241. package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
  242. package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts +77 -0
  243. package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts.map +1 -0
  244. package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts +80 -0
  245. package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts.map +1 -0
  246. package/dist/import/explorers/externals/blockscout/index.d.ts +7 -0
  247. package/dist/import/explorers/externals/blockscout/index.d.ts.map +1 -0
  248. package/dist/import/explorers/externals/blockscout/middleware.d.ts +7 -0
  249. package/dist/import/explorers/externals/blockscout/middleware.d.ts.map +1 -0
  250. package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts +12 -0
  251. package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts.map +1 -0
  252. package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts +55 -0
  253. package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts.map +1 -0
  254. package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts +83 -0
  255. package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts.map +1 -0
  256. package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts +81 -0
  257. package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts.map +1 -0
  258. package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts +81 -0
  259. package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts.map +1 -0
  260. package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts +62 -0
  261. package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts.map +1 -0
  262. package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts +55 -0
  263. package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
  264. package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts +84 -0
  265. package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts.map +1 -0
  266. package/dist/import/explorers/externals/etherscan/index.d.ts +9 -0
  267. package/dist/import/explorers/externals/etherscan/index.d.ts.map +1 -0
  268. package/dist/import/explorers/externals/etherscan/middleware.d.ts +7 -0
  269. package/dist/import/explorers/externals/etherscan/middleware.d.ts.map +1 -0
  270. package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts +57 -0
  271. package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts.map +1 -0
  272. package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts +70 -0
  273. package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts.map +1 -0
  274. package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts +64 -0
  275. package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts.map +1 -0
  276. package/dist/import/explorers/externals/roninExplorer/index.d.ts +4 -0
  277. package/dist/import/explorers/externals/roninExplorer/index.d.ts.map +1 -0
  278. package/dist/import/explorers/externals/roninExplorer/middleware.d.ts +5 -0
  279. package/dist/import/explorers/externals/roninExplorer/middleware.d.ts.map +1 -0
  280. package/dist/import/explorers/index.d.ts +3 -0
  281. package/dist/import/explorers/index.d.ts.map +1 -0
  282. package/dist/import/explorers/types.d.ts +43 -0
  283. package/dist/import/explorers/types.d.ts.map +1 -0
  284. package/dist/import/fix.d.mts +7 -0
  285. package/dist/import/fix.d.mts.map +1 -0
  286. package/dist/import/fix.d.ts +3 -0
  287. package/dist/import/fix.d.ts.map +1 -0
  288. package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts +15 -0
  289. package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts.map +1 -0
  290. package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts +4 -0
  291. package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts.map +1 -0
  292. package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts +5 -0
  293. package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts.map +1 -0
  294. package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts +8 -0
  295. package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts.map +1 -0
  296. package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts +5 -0
  297. package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts.map +1 -0
  298. package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts +5 -0
  299. package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts.map +1 -0
  300. package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts +8 -0
  301. package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts.map +1 -0
  302. package/dist/import/getAccountsTransactionFulls/index.d.ts +3 -0
  303. package/dist/import/getAccountsTransactionFulls/index.d.ts.map +1 -0
  304. package/dist/import/getAccountsTransactionFulls/types.d.ts +87 -0
  305. package/dist/import/getAccountsTransactionFulls/types.d.ts.map +1 -0
  306. package/dist/import/getAccountsTransactionFulls/withD.d.ts +4 -0
  307. package/dist/import/getAccountsTransactionFulls/withD.d.ts.map +1 -0
  308. package/dist/import/getAccountsTransactionFulls/withDA.d.ts +4 -0
  309. package/dist/import/getAccountsTransactionFulls/withDA.d.ts.map +1 -0
  310. package/dist/import/getAccountsTransactionFulls/withP.d.ts +4 -0
  311. package/dist/import/getAccountsTransactionFulls/withP.d.ts.map +1 -0
  312. package/dist/import/getAccountsTransactionFulls/withPD.d.ts +4 -0
  313. package/dist/import/getAccountsTransactionFulls/withPD.d.ts.map +1 -0
  314. package/dist/import/getAccountsTransactionFulls/withPDA.d.ts +4 -0
  315. package/dist/import/getAccountsTransactionFulls/withPDA.d.ts.map +1 -0
  316. package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts +4 -0
  317. package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts.map +1 -0
  318. package/dist/import/getTransactionFull/getTransactionDetail.d.ts +5 -0
  319. package/dist/import/getTransactionFull/getTransactionDetail.d.ts.map +1 -0
  320. package/dist/import/getTransactionFull/getTransactionFull.d.ts +11 -0
  321. package/dist/import/getTransactionFull/getTransactionFull.d.ts.map +1 -0
  322. package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts +4 -0
  323. package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts.map +1 -0
  324. package/dist/import/getTransactionFull/index.d.ts +3 -0
  325. package/dist/import/getTransactionFull/index.d.ts.map +1 -0
  326. package/dist/import/getTransactionFull/types.d.ts +63 -0
  327. package/dist/import/getTransactionFull/types.d.ts.map +1 -0
  328. package/dist/import/getTransactionFull/withD.d.ts +4 -0
  329. package/dist/import/getTransactionFull/withD.d.ts.map +1 -0
  330. package/dist/import/getTransactionFull/withDA.d.ts +4 -0
  331. package/dist/import/getTransactionFull/withDA.d.ts.map +1 -0
  332. package/dist/import/getTransactionFull/withP.d.ts +4 -0
  333. package/dist/import/getTransactionFull/withP.d.ts.map +1 -0
  334. package/dist/import/getTransactionFull/withPD.d.ts +4 -0
  335. package/dist/import/getTransactionFull/withPD.d.ts.map +1 -0
  336. package/dist/import/getTransactionFull/withPDA.d.ts +4 -0
  337. package/dist/import/getTransactionFull/withPDA.d.ts.map +1 -0
  338. package/dist/import/getTransactionFull/withUndefined.d.ts +4 -0
  339. package/dist/import/getTransactionFull/withUndefined.d.ts.map +1 -0
  340. package/dist/import/greaterThan.d.mts +3 -0
  341. package/dist/import/greaterThan.d.mts.map +1 -0
  342. package/dist/import/greaterThan.d.ts +3 -0
  343. package/dist/import/greaterThan.d.ts.map +1 -0
  344. package/dist/import/index.d.mts +15 -0
  345. package/dist/import/index.d.mts.map +1 -0
  346. package/dist/import/index.d.ts +11 -0
  347. package/dist/import/index.d.ts.map +1 -0
  348. package/dist/import/index.mjs +1 -0
  349. package/dist/import/minus.d.mts +3 -0
  350. package/dist/import/minus.d.mts.map +1 -0
  351. package/dist/import/minus.d.ts +3 -0
  352. package/dist/import/minus.d.ts.map +1 -0
  353. package/dist/import/plus.d.mts +3 -0
  354. package/dist/import/plus.d.mts.map +1 -0
  355. package/dist/import/plus.d.ts +3 -0
  356. package/dist/import/plus.d.ts.map +1 -0
  357. package/dist/import/removeTrailingZeros.d.mts +6 -0
  358. package/dist/import/removeTrailingZeros.d.mts.map +1 -0
  359. package/dist/import/removeTrailingZeros.d.ts +3 -0
  360. package/dist/import/removeTrailingZeros.d.ts.map +1 -0
  361. package/dist/import/times.d.ts +3 -0
  362. package/dist/import/times.d.ts.map +1 -0
  363. package/dist/import/toStringBigDecimal.d.mts +6 -0
  364. package/dist/import/toStringBigDecimal.d.mts.map +1 -0
  365. package/dist/import/toStringBigDecimal.d.ts +3 -0
  366. package/dist/import/toStringBigDecimal.d.ts.map +1 -0
  367. package/dist/import/type.d.mts +5 -0
  368. package/dist/import/type.d.mts.map +1 -0
  369. package/dist/import/type.d.ts +5 -0
  370. package/dist/import/type.d.ts.map +1 -0
  371. package/dist/import/types/erc1155.d.ts +16 -0
  372. package/dist/import/types/erc1155.d.ts.map +1 -0
  373. package/dist/import/types/erc20.d.ts +19 -0
  374. package/dist/import/types/erc20.d.ts.map +1 -0
  375. package/dist/import/types/erc721.d.ts +18 -0
  376. package/dist/import/types/erc721.d.ts.map +1 -0
  377. package/dist/import/types/evmAccount.d.ts +10 -0
  378. package/dist/import/types/evmAccount.d.ts.map +1 -0
  379. package/dist/import/types/hex.d.ts +5 -0
  380. package/dist/import/types/hex.d.ts.map +1 -0
  381. package/dist/import/types/index.d.ts +12 -0
  382. package/dist/import/types/index.d.ts.map +1 -0
  383. package/dist/import/types/input.d.ts +26 -0
  384. package/dist/import/types/input.d.ts.map +1 -0
  385. package/dist/import/types/internalTransaction.d.ts +18 -0
  386. package/dist/import/types/internalTransaction.d.ts.map +1 -0
  387. package/dist/import/types/log.d.ts +118 -0
  388. package/dist/import/types/log.d.ts.map +1 -0
  389. package/dist/import/types/transaction.d.ts +44 -0
  390. package/dist/import/types/transaction.d.ts.map +1 -0
  391. package/dist/import/utils/bigint.d.ts +3 -0
  392. package/dist/import/utils/bigint.d.ts.map +1 -0
  393. package/dist/import/utils/index.d.ts +4 -0
  394. package/dist/import/utils/index.d.ts.map +1 -0
  395. package/dist/import/utils/timeout.d.ts +2 -0
  396. package/dist/import/utils/timeout.d.ts.map +1 -0
  397. package/dist/import/utils/types.d.ts +12 -0
  398. package/dist/import/utils/types.d.ts.map +1 -0
  399. package/dist/require/absoluteValue.d.ts +3 -0
  400. package/dist/require/absoluteValue.d.ts.map +1 -0
  401. package/dist/require/createBigDecimal.d.ts +6 -0
  402. package/dist/require/createBigDecimal.d.ts.map +1 -0
  403. package/dist/require/divide.d.ts +2 -0
  404. package/dist/require/divide.d.ts.map +1 -0
  405. package/dist/require/equals.d.ts +3 -0
  406. package/dist/require/equals.d.ts.map +1 -0
  407. package/dist/require/fix.d.ts +7 -0
  408. package/dist/require/fix.d.ts.map +1 -0
  409. package/dist/require/greaterThan.d.ts +3 -0
  410. package/dist/require/greaterThan.d.ts.map +1 -0
  411. package/dist/require/index.cjs +46 -0
  412. package/dist/require/index.d.cts +2 -0
  413. package/dist/require/index.d.cts.map +1 -0
  414. package/dist/require/index.d.ts +11 -0
  415. package/dist/require/index.d.ts.map +1 -0
  416. package/dist/require/minus.d.ts +3 -0
  417. package/dist/require/minus.d.ts.map +1 -0
  418. package/dist/require/plus.d.ts +3 -0
  419. package/dist/require/plus.d.ts.map +1 -0
  420. package/dist/require/removeTrailingZeros.d.ts +6 -0
  421. package/dist/require/removeTrailingZeros.d.ts.map +1 -0
  422. package/dist/require/times.d.ts +8 -0
  423. package/dist/require/times.d.ts.map +1 -0
  424. package/dist/require/toStringBigDecimal.d.ts +6 -0
  425. package/dist/require/toStringBigDecimal.d.ts.map +1 -0
  426. package/dist/require/type.d.ts +5 -0
  427. package/dist/require/type.d.ts.map +1 -0
  428. package/package.json +85 -0
  429. package/src/abis/erc1155.ts +314 -0
  430. package/src/abis/erc20.ts +222 -0
  431. package/src/abis/erc721.ts +346 -0
  432. package/src/abis/index.ts +4 -0
  433. package/src/abis/weth.ts +153 -0
  434. package/src/analyzer/analyze.ts +85 -0
  435. package/src/analyzer/analyzer.ts +5 -0
  436. package/src/analyzer/axieMarketplace/analyze.ts +326 -0
  437. package/src/analyzer/axieMarketplace/index.ts +1 -0
  438. package/src/analyzer/createAccountActionByAction/addLiquidity.ts +60 -0
  439. package/src/analyzer/createAccountActionByAction/atomicArbitrage.ts +115 -0
  440. package/src/analyzer/createAccountActionByAction/bridgeFrom.ts +61 -0
  441. package/src/analyzer/createAccountActionByAction/bridgeTo.ts +61 -0
  442. package/src/analyzer/createAccountActionByAction/buyNft.ts +106 -0
  443. package/src/analyzer/createAccountActionByAction/createAccountActionByAction.ts +181 -0
  444. package/src/analyzer/createAccountActionByAction/deposit.ts +64 -0
  445. package/src/analyzer/createAccountActionByAction/depositWithBond.ts +60 -0
  446. package/src/analyzer/createAccountActionByAction/freeMintNft.ts +54 -0
  447. package/src/analyzer/createAccountActionByAction/index.ts +1 -0
  448. package/src/analyzer/createAccountActionByAction/removeLiquidity.ts +60 -0
  449. package/src/analyzer/createAccountActionByAction/spam.ts +79 -0
  450. package/src/analyzer/createAccountActionByAction/trade.ts +105 -0
  451. package/src/analyzer/createAccountActionByAction/transactionFee.ts +51 -0
  452. package/src/analyzer/createAccountActionByAction/transfer.ts +95 -0
  453. package/src/analyzer/createAccountActionByAction/withdraw.ts +61 -0
  454. package/src/analyzer/createAccountActionByAction/withdrawWithBond.ts +60 -0
  455. package/src/analyzer/gasFee/analyze.test.ts +6 -0
  456. package/src/analyzer/gasFee/analyze.ts +72 -0
  457. package/src/analyzer/gasFee/index.ts +1 -0
  458. package/src/analyzer/index.ts +9 -0
  459. package/src/analyzer/json/analyze.test.ts +1819 -0
  460. package/src/analyzer/json/analyze.ts +536 -0
  461. package/src/analyzer/json/generatorAnyLog.ts +207 -0
  462. package/src/analyzer/json/generatorAnyTokenTransfer.ts +118 -0
  463. package/src/analyzer/json/generatorSpecificTokenTransfer.ts +425 -0
  464. package/src/analyzer/json/index.ts +1 -0
  465. package/src/analyzer/json/types.ts +239 -0
  466. package/src/analyzer/seaport/analyze.test.ts +2323 -0
  467. package/src/analyzer/seaport/analyze.ts +917 -0
  468. package/src/analyzer/seaport/index.ts +1 -0
  469. package/src/analyzer/seaport/orderFulfilled.ts +131 -0
  470. package/src/analyzer/spam/analyze.ts +219 -0
  471. package/src/analyzer/spam/index.ts +1 -0
  472. package/src/analyzer/swap/analyze.test.ts +2401 -0
  473. package/src/analyzer/swap/analyze.ts +939 -0
  474. package/src/analyzer/swap/index.ts +1 -0
  475. package/src/analyzer/swap/traderJoeLBPairSwap.ts +92 -0
  476. package/src/analyzer/swap/univ2PairSwap.ts +77 -0
  477. package/src/analyzer/swap/univ3PoolSwap.ts +83 -0
  478. package/src/analyzer/swap/wrappedDeposit.ts +51 -0
  479. package/src/analyzer/swap/wrappedWithdrawal.ts +53 -0
  480. package/src/analyzer/tests.ts +2 -0
  481. package/src/analyzer/transfer/analyze.test.ts +6 -0
  482. package/src/analyzer/transfer/analyze.ts +209 -0
  483. package/src/analyzer/transfer/index.ts +1 -0
  484. package/src/analyzer/types.ts +44 -0
  485. package/src/apps/index.ts +1 -0
  486. package/src/apps/types.ts +10 -0
  487. package/src/chains/definitions/arbitrumOne.test.ts +50 -0
  488. package/src/chains/definitions/arbitrumOne.ts +133 -0
  489. package/src/chains/definitions/astar.test.ts +51 -0
  490. package/src/chains/definitions/astar.ts +93 -0
  491. package/src/chains/definitions/avalancheC.test.ts +50 -0
  492. package/src/chains/definitions/avalancheC.ts +115 -0
  493. package/src/chains/definitions/base.test.ts +50 -0
  494. package/src/chains/definitions/base.ts +125 -0
  495. package/src/chains/definitions/bsc.test.ts +50 -0
  496. package/src/chains/definitions/bsc.ts +182 -0
  497. package/src/chains/definitions/defineChain.ts +7 -0
  498. package/src/chains/definitions/ethereum.test.ts +50 -0
  499. package/src/chains/definitions/ethereum.ts +169 -0
  500. package/src/chains/definitions/fantom.test.ts +50 -0
  501. package/src/chains/definitions/fantom.ts +123 -0
  502. package/src/chains/definitions/index.ts +88 -0
  503. package/src/chains/definitions/linea.test.ts +50 -0
  504. package/src/chains/definitions/linea.ts +95 -0
  505. package/src/chains/definitions/mantle.test.ts +50 -0
  506. package/src/chains/definitions/mantle.ts +75 -0
  507. package/src/chains/definitions/metis.test.ts +50 -0
  508. package/src/chains/definitions/metis.ts +60 -0
  509. package/src/chains/definitions/moonbeam.test.ts +50 -0
  510. package/src/chains/definitions/moonbeam.ts +117 -0
  511. package/src/chains/definitions/moonriver.test.ts +50 -0
  512. package/src/chains/definitions/moonriver.ts +94 -0
  513. package/src/chains/definitions/optimism.test.ts +50 -0
  514. package/src/chains/definitions/optimism.ts +139 -0
  515. package/src/chains/definitions/polygonPos.test.ts +50 -0
  516. package/src/chains/definitions/polygonPos.ts +121 -0
  517. package/src/chains/definitions/ronin.test.ts +50 -0
  518. package/src/chains/definitions/ronin.ts +75 -0
  519. package/src/chains/definitions/tests.ts +2884 -0
  520. package/src/chains/externals/defillama/constants.ts +1 -0
  521. package/src/chains/externals/defillama/getBlockOfTimestamp.test.ts +12 -0
  522. package/src/chains/externals/defillama/getBlockOfTimestamp.ts +26 -0
  523. package/src/chains/externals/defillama/index.ts +1 -0
  524. package/src/chains/externals/index.ts +1 -0
  525. package/src/chains/index.ts +62 -0
  526. package/src/chains/types/chain.ts +22 -0
  527. package/src/chains/types/index.ts +2 -0
  528. package/src/chains/types/rpc.ts +6 -0
  529. package/src/clients/definitions/defineClient.ts +7 -0
  530. package/src/clients/definitions/index.ts +1 -0
  531. package/src/clients/definitions/viemClient.ts +86 -0
  532. package/src/clients/externals/viem/estimateFeesPerGas.ts +23 -0
  533. package/src/clients/externals/viem/getBalance.ts +25 -0
  534. package/src/clients/externals/viem/getBlock.ts +29 -0
  535. package/src/clients/externals/viem/getBlockNumber.ts +23 -0
  536. package/src/clients/externals/viem/getEventLogs.test.ts +22 -0
  537. package/src/clients/externals/viem/getEventLogs.ts +40 -0
  538. package/src/clients/externals/viem/getTransaction.ts +25 -0
  539. package/src/clients/externals/viem/getTransactionCount.ts +25 -0
  540. package/src/clients/externals/viem/getTransactionReceipt.ts +25 -0
  541. package/src/clients/externals/viem/index.ts +10 -0
  542. package/src/clients/externals/viem/middleware.ts +437 -0
  543. package/src/clients/externals/viem/multicall.test.ts +26 -0
  544. package/src/clients/externals/viem/multicall.ts +27 -0
  545. package/src/clients/externals/viem/readContract.test.ts +20 -0
  546. package/src/clients/externals/viem/readContract.ts +38 -0
  547. package/src/clients/externals/viem/tests.ts +957 -0
  548. package/src/clients/index.ts +2 -0
  549. package/src/clients/types.ts +113 -0
  550. package/src/creates/createEvmAccount.ts +12 -0
  551. package/src/decoder/decode.test.ts +324 -0
  552. package/src/decoder/decode.ts +716 -0
  553. package/src/decoder/decoder.ts +6 -0
  554. package/src/decoder/index.ts +5 -0
  555. package/src/decoder/parseErc1155TransferSingleLogs.ts +40 -0
  556. package/src/decoder/parseErc20TransferLogs.ts +35 -0
  557. package/src/decoder/parseErc721TransferLogs.ts +40 -0
  558. package/src/decoder/tests.ts +502 -0
  559. package/src/decoder/types.ts +21 -0
  560. package/src/explorers/definitions/blockscout.test.ts +124 -0
  561. package/src/explorers/definitions/blockscout.ts +205 -0
  562. package/src/explorers/definitions/defineExplorer.ts +7 -0
  563. package/src/explorers/definitions/etherscan.test.ts +123 -0
  564. package/src/explorers/definitions/etherscan.ts +279 -0
  565. package/src/explorers/definitions/index.ts +4 -0
  566. package/src/explorers/definitions/roninExplorer.ts +150 -0
  567. package/src/explorers/definitions/routescan.ts +57 -0
  568. package/src/explorers/externals/blockscout/getBlockNumberOfTimestamp.ts +67 -0
  569. package/src/explorers/externals/blockscout/getContractByAddress.ts +81 -0
  570. package/src/explorers/externals/blockscout/getInternalTransactionsByAddress.ts +120 -0
  571. package/src/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.ts +87 -0
  572. package/src/explorers/externals/blockscout/getNormalTransactionsByAddress.ts +116 -0
  573. package/src/explorers/externals/blockscout/getTokenTransfersByAddress.ts +127 -0
  574. package/src/explorers/externals/blockscout/index.ts +6 -0
  575. package/src/explorers/externals/blockscout/middleware.ts +56 -0
  576. package/src/explorers/externals/defillama/getBlockNumberOfTimestamp.ts +28 -0
  577. package/src/explorers/externals/defillama/index.ts +1 -0
  578. package/src/explorers/externals/etherscan/getBlockNumberOfTimestamp.ts +66 -0
  579. package/src/explorers/externals/etherscan/getContractByAddress.ts +86 -0
  580. package/src/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.ts +133 -0
  581. package/src/explorers/externals/etherscan/getErc20TokenTransfersByAddress.ts +125 -0
  582. package/src/explorers/externals/etherscan/getErc721TokenTransfersByAddress.ts +125 -0
  583. package/src/explorers/externals/etherscan/getInternalTransactionsByAddress.ts +117 -0
  584. package/src/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.ts +91 -0
  585. package/src/explorers/externals/etherscan/getNormalTransactionsByAddress.ts +122 -0
  586. package/src/explorers/externals/etherscan/index.ts +8 -0
  587. package/src/explorers/externals/etherscan/middleware.ts +77 -0
  588. package/src/explorers/externals/roninExplorer/getInternalTransactionByHash.ts +80 -0
  589. package/src/explorers/externals/roninExplorer/getNormalTransactionsByAddress.ts +79 -0
  590. package/src/explorers/externals/roninExplorer/getTokenTransfersByAddress.ts +81 -0
  591. package/src/explorers/externals/roninExplorer/index.ts +3 -0
  592. package/src/explorers/externals/roninExplorer/middleware.ts +49 -0
  593. package/src/explorers/index.ts +7 -0
  594. package/src/explorers/types.ts +56 -0
  595. package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.test.ts +22 -0
  596. package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.ts +46 -0
  597. package/src/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.ts +106 -0
  598. package/src/getAccountsTransactionFulls/getDecodedTransactionsPrices.ts +97 -0
  599. package/src/getAccountsTransactionFulls/getHashesAndInternalTxs.ts +65 -0
  600. package/src/getAccountsTransactionFulls/getTransactionDetail.ts +49 -0
  601. package/src/getAccountsTransactionFulls/getTransactionDetails.ts +39 -0
  602. package/src/getAccountsTransactionFulls/getTransactionsApps.ts +42 -0
  603. package/src/getAccountsTransactionFulls/index.ts +2 -0
  604. package/src/getAccountsTransactionFulls/types.ts +122 -0
  605. package/src/getAccountsTransactionFulls/withD.ts +80 -0
  606. package/src/getAccountsTransactionFulls/withDA.ts +112 -0
  607. package/src/getAccountsTransactionFulls/withP.ts +120 -0
  608. package/src/getAccountsTransactionFulls/withPD.ts +141 -0
  609. package/src/getAccountsTransactionFulls/withPDA.ts +167 -0
  610. package/src/getAccountsTransactionFulls/withUndefined.ts +88 -0
  611. package/src/getContractAbi.ts +15 -0
  612. package/src/getTransactionFull/getTransactionDetail.ts +47 -0
  613. package/src/getTransactionFull/getTransactionFull.test.ts +34 -0
  614. package/src/getTransactionFull/getTransactionFull.ts +30 -0
  615. package/src/getTransactionFull/getTransactionFullCustom.ts +91 -0
  616. package/src/getTransactionFull/index.ts +2 -0
  617. package/src/getTransactionFull/types.ts +98 -0
  618. package/src/getTransactionFull/withD.ts +57 -0
  619. package/src/getTransactionFull/withDA.ts +78 -0
  620. package/src/getTransactionFull/withP.ts +69 -0
  621. package/src/getTransactionFull/withPD.ts +119 -0
  622. package/src/getTransactionFull/withPDA.ts +147 -0
  623. package/src/getTransactionFull/withUndefined.ts +39 -0
  624. package/src/index.cts +1 -0
  625. package/src/index.mts +110 -0
  626. package/src/tests.ts +1 -0
  627. package/src/types/erc1155.ts +17 -0
  628. package/src/types/erc20.ts +22 -0
  629. package/src/types/erc721.ts +19 -0
  630. package/src/types/evmAccount.ts +12 -0
  631. package/src/types/hex.test.ts +10 -0
  632. package/src/types/hex.ts +9 -0
  633. package/src/types/index.ts +16 -0
  634. package/src/types/input.ts +27 -0
  635. package/src/types/internalTransaction.ts +19 -0
  636. package/src/types/log.ts +68 -0
  637. package/src/types/transaction.ts +78 -0
  638. package/src/utils/bigint.ts +5 -0
  639. package/src/utils/index.ts +3 -0
  640. package/src/utils/timeout.ts +5 -0
  641. package/src/utils/types.ts +12 -0
  642. package/tsconfig.json +28 -0
@@ -0,0 +1,2884 @@
1
+ import { getAbiItem } from 'viem'
2
+
3
+ export const cbridgeBridgeAbi = [
4
+ {
5
+ anonymous: false,
6
+ inputs: [
7
+ {
8
+ indexed: false,
9
+ internalType: 'uint256',
10
+ name: 'period',
11
+ type: 'uint256',
12
+ },
13
+ ],
14
+ name: 'DelayPeriodUpdated',
15
+ type: 'event',
16
+ },
17
+ {
18
+ anonymous: false,
19
+ inputs: [
20
+ {
21
+ indexed: false,
22
+ internalType: 'address',
23
+ name: 'token',
24
+ type: 'address',
25
+ },
26
+ {
27
+ indexed: false,
28
+ internalType: 'uint256',
29
+ name: 'threshold',
30
+ type: 'uint256',
31
+ },
32
+ ],
33
+ name: 'DelayThresholdUpdated',
34
+ type: 'event',
35
+ },
36
+ {
37
+ anonymous: false,
38
+ inputs: [
39
+ {
40
+ indexed: false,
41
+ internalType: 'bytes32',
42
+ name: 'id',
43
+ type: 'bytes32',
44
+ },
45
+ ],
46
+ name: 'DelayedTransferAdded',
47
+ type: 'event',
48
+ },
49
+ {
50
+ anonymous: false,
51
+ inputs: [
52
+ {
53
+ indexed: false,
54
+ internalType: 'bytes32',
55
+ name: 'id',
56
+ type: 'bytes32',
57
+ },
58
+ {
59
+ indexed: false,
60
+ internalType: 'address',
61
+ name: 'receiver',
62
+ type: 'address',
63
+ },
64
+ {
65
+ indexed: false,
66
+ internalType: 'address',
67
+ name: 'token',
68
+ type: 'address',
69
+ },
70
+ {
71
+ indexed: false,
72
+ internalType: 'uint256',
73
+ name: 'amount',
74
+ type: 'uint256',
75
+ },
76
+ ],
77
+ name: 'DelayedTransferExecuted',
78
+ type: 'event',
79
+ },
80
+ {
81
+ anonymous: false,
82
+ inputs: [
83
+ {
84
+ indexed: false,
85
+ internalType: 'uint256',
86
+ name: 'length',
87
+ type: 'uint256',
88
+ },
89
+ ],
90
+ name: 'EpochLengthUpdated',
91
+ type: 'event',
92
+ },
93
+ {
94
+ anonymous: false,
95
+ inputs: [
96
+ {
97
+ indexed: false,
98
+ internalType: 'address',
99
+ name: 'token',
100
+ type: 'address',
101
+ },
102
+ {
103
+ indexed: false,
104
+ internalType: 'uint256',
105
+ name: 'cap',
106
+ type: 'uint256',
107
+ },
108
+ ],
109
+ name: 'EpochVolumeUpdated',
110
+ type: 'event',
111
+ },
112
+ {
113
+ anonymous: false,
114
+ inputs: [
115
+ {
116
+ indexed: false,
117
+ internalType: 'address',
118
+ name: 'account',
119
+ type: 'address',
120
+ },
121
+ ],
122
+ name: 'GovernorAdded',
123
+ type: 'event',
124
+ },
125
+ {
126
+ anonymous: false,
127
+ inputs: [
128
+ {
129
+ indexed: false,
130
+ internalType: 'address',
131
+ name: 'account',
132
+ type: 'address',
133
+ },
134
+ ],
135
+ name: 'GovernorRemoved',
136
+ type: 'event',
137
+ },
138
+ {
139
+ anonymous: false,
140
+ inputs: [
141
+ {
142
+ indexed: false,
143
+ internalType: 'uint64',
144
+ name: 'seqnum',
145
+ type: 'uint64',
146
+ },
147
+ {
148
+ indexed: false,
149
+ internalType: 'address',
150
+ name: 'provider',
151
+ type: 'address',
152
+ },
153
+ {
154
+ indexed: false,
155
+ internalType: 'address',
156
+ name: 'token',
157
+ type: 'address',
158
+ },
159
+ {
160
+ indexed: false,
161
+ internalType: 'uint256',
162
+ name: 'amount',
163
+ type: 'uint256',
164
+ },
165
+ ],
166
+ name: 'LiquidityAdded',
167
+ type: 'event',
168
+ },
169
+ {
170
+ anonymous: false,
171
+ inputs: [
172
+ {
173
+ indexed: false,
174
+ internalType: 'address',
175
+ name: 'token',
176
+ type: 'address',
177
+ },
178
+ {
179
+ indexed: false,
180
+ internalType: 'uint256',
181
+ name: 'amount',
182
+ type: 'uint256',
183
+ },
184
+ ],
185
+ name: 'MaxSendUpdated',
186
+ type: 'event',
187
+ },
188
+ {
189
+ anonymous: false,
190
+ inputs: [
191
+ {
192
+ indexed: false,
193
+ internalType: 'address',
194
+ name: 'token',
195
+ type: 'address',
196
+ },
197
+ {
198
+ indexed: false,
199
+ internalType: 'uint256',
200
+ name: 'amount',
201
+ type: 'uint256',
202
+ },
203
+ ],
204
+ name: 'MinAddUpdated',
205
+ type: 'event',
206
+ },
207
+ {
208
+ anonymous: false,
209
+ inputs: [
210
+ {
211
+ indexed: false,
212
+ internalType: 'address',
213
+ name: 'token',
214
+ type: 'address',
215
+ },
216
+ {
217
+ indexed: false,
218
+ internalType: 'uint256',
219
+ name: 'amount',
220
+ type: 'uint256',
221
+ },
222
+ ],
223
+ name: 'MinSendUpdated',
224
+ type: 'event',
225
+ },
226
+ {
227
+ anonymous: false,
228
+ inputs: [
229
+ {
230
+ indexed: true,
231
+ internalType: 'address',
232
+ name: 'previousOwner',
233
+ type: 'address',
234
+ },
235
+ {
236
+ indexed: true,
237
+ internalType: 'address',
238
+ name: 'newOwner',
239
+ type: 'address',
240
+ },
241
+ ],
242
+ name: 'OwnershipTransferred',
243
+ type: 'event',
244
+ },
245
+ {
246
+ anonymous: false,
247
+ inputs: [
248
+ {
249
+ indexed: false,
250
+ internalType: 'address',
251
+ name: 'account',
252
+ type: 'address',
253
+ },
254
+ ],
255
+ name: 'Paused',
256
+ type: 'event',
257
+ },
258
+ {
259
+ anonymous: false,
260
+ inputs: [
261
+ {
262
+ indexed: false,
263
+ internalType: 'address',
264
+ name: 'account',
265
+ type: 'address',
266
+ },
267
+ ],
268
+ name: 'PauserAdded',
269
+ type: 'event',
270
+ },
271
+ {
272
+ anonymous: false,
273
+ inputs: [
274
+ {
275
+ indexed: false,
276
+ internalType: 'address',
277
+ name: 'account',
278
+ type: 'address',
279
+ },
280
+ ],
281
+ name: 'PauserRemoved',
282
+ type: 'event',
283
+ },
284
+ {
285
+ anonymous: false,
286
+ inputs: [
287
+ {
288
+ indexed: false,
289
+ internalType: 'bytes32',
290
+ name: 'transferId',
291
+ type: 'bytes32',
292
+ },
293
+ {
294
+ indexed: false,
295
+ internalType: 'address',
296
+ name: 'sender',
297
+ type: 'address',
298
+ },
299
+ {
300
+ indexed: false,
301
+ internalType: 'address',
302
+ name: 'receiver',
303
+ type: 'address',
304
+ },
305
+ {
306
+ indexed: false,
307
+ internalType: 'address',
308
+ name: 'token',
309
+ type: 'address',
310
+ },
311
+ {
312
+ indexed: false,
313
+ internalType: 'uint256',
314
+ name: 'amount',
315
+ type: 'uint256',
316
+ },
317
+ {
318
+ indexed: false,
319
+ internalType: 'uint64',
320
+ name: 'srcChainId',
321
+ type: 'uint64',
322
+ },
323
+ {
324
+ indexed: false,
325
+ internalType: 'bytes32',
326
+ name: 'srcTransferId',
327
+ type: 'bytes32',
328
+ },
329
+ ],
330
+ name: 'Relay',
331
+ type: 'event',
332
+ },
333
+ {
334
+ anonymous: false,
335
+ inputs: [
336
+ {
337
+ indexed: false,
338
+ internalType: 'uint256',
339
+ name: 'resetTime',
340
+ type: 'uint256',
341
+ },
342
+ ],
343
+ name: 'ResetNotification',
344
+ type: 'event',
345
+ },
346
+ {
347
+ anonymous: false,
348
+ inputs: [
349
+ {
350
+ indexed: false,
351
+ internalType: 'bytes32',
352
+ name: 'transferId',
353
+ type: 'bytes32',
354
+ },
355
+ {
356
+ indexed: false,
357
+ internalType: 'address',
358
+ name: 'sender',
359
+ type: 'address',
360
+ },
361
+ {
362
+ indexed: false,
363
+ internalType: 'address',
364
+ name: 'receiver',
365
+ type: 'address',
366
+ },
367
+ {
368
+ indexed: false,
369
+ internalType: 'address',
370
+ name: 'token',
371
+ type: 'address',
372
+ },
373
+ {
374
+ indexed: false,
375
+ internalType: 'uint256',
376
+ name: 'amount',
377
+ type: 'uint256',
378
+ },
379
+ {
380
+ indexed: false,
381
+ internalType: 'uint64',
382
+ name: 'dstChainId',
383
+ type: 'uint64',
384
+ },
385
+ {
386
+ indexed: false,
387
+ internalType: 'uint64',
388
+ name: 'nonce',
389
+ type: 'uint64',
390
+ },
391
+ {
392
+ indexed: false,
393
+ internalType: 'uint32',
394
+ name: 'maxSlippage',
395
+ type: 'uint32',
396
+ },
397
+ ],
398
+ name: 'Send',
399
+ type: 'event',
400
+ },
401
+ {
402
+ anonymous: false,
403
+ inputs: [
404
+ {
405
+ indexed: false,
406
+ internalType: 'address[]',
407
+ name: '_signers',
408
+ type: 'address[]',
409
+ },
410
+ {
411
+ indexed: false,
412
+ internalType: 'uint256[]',
413
+ name: '_powers',
414
+ type: 'uint256[]',
415
+ },
416
+ ],
417
+ name: 'SignersUpdated',
418
+ type: 'event',
419
+ },
420
+ {
421
+ anonymous: false,
422
+ inputs: [
423
+ {
424
+ indexed: false,
425
+ internalType: 'address',
426
+ name: 'account',
427
+ type: 'address',
428
+ },
429
+ ],
430
+ name: 'Unpaused',
431
+ type: 'event',
432
+ },
433
+ {
434
+ anonymous: false,
435
+ inputs: [
436
+ {
437
+ indexed: false,
438
+ internalType: 'bytes32',
439
+ name: 'withdrawId',
440
+ type: 'bytes32',
441
+ },
442
+ {
443
+ indexed: false,
444
+ internalType: 'uint64',
445
+ name: 'seqnum',
446
+ type: 'uint64',
447
+ },
448
+ {
449
+ indexed: false,
450
+ internalType: 'address',
451
+ name: 'receiver',
452
+ type: 'address',
453
+ },
454
+ {
455
+ indexed: false,
456
+ internalType: 'address',
457
+ name: 'token',
458
+ type: 'address',
459
+ },
460
+ {
461
+ indexed: false,
462
+ internalType: 'uint256',
463
+ name: 'amount',
464
+ type: 'uint256',
465
+ },
466
+ {
467
+ indexed: false,
468
+ internalType: 'bytes32',
469
+ name: 'refid',
470
+ type: 'bytes32',
471
+ },
472
+ ],
473
+ name: 'WithdrawDone',
474
+ type: 'event',
475
+ },
476
+ {
477
+ inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
478
+ name: 'addGovernor',
479
+ outputs: [],
480
+ stateMutability: 'nonpayable',
481
+ type: 'function',
482
+ },
483
+ {
484
+ inputs: [
485
+ { internalType: 'address', name: '_token', type: 'address' },
486
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
487
+ ],
488
+ name: 'addLiquidity',
489
+ outputs: [],
490
+ stateMutability: 'nonpayable',
491
+ type: 'function',
492
+ },
493
+ {
494
+ inputs: [{ internalType: 'uint256', name: '_amount', type: 'uint256' }],
495
+ name: 'addNativeLiquidity',
496
+ outputs: [],
497
+ stateMutability: 'payable',
498
+ type: 'function',
499
+ },
500
+ {
501
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
502
+ name: 'addPauser',
503
+ outputs: [],
504
+ stateMutability: 'nonpayable',
505
+ type: 'function',
506
+ },
507
+ {
508
+ inputs: [],
509
+ name: 'addseq',
510
+ outputs: [{ internalType: 'uint64', name: '', type: 'uint64' }],
511
+ stateMutability: 'view',
512
+ type: 'function',
513
+ },
514
+ {
515
+ inputs: [],
516
+ name: 'delayPeriod',
517
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
518
+ stateMutability: 'view',
519
+ type: 'function',
520
+ },
521
+ {
522
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
523
+ name: 'delayThresholds',
524
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
525
+ stateMutability: 'view',
526
+ type: 'function',
527
+ },
528
+ {
529
+ inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
530
+ name: 'delayedTransfers',
531
+ outputs: [
532
+ { internalType: 'address', name: 'receiver', type: 'address' },
533
+ { internalType: 'address', name: 'token', type: 'address' },
534
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
535
+ { internalType: 'uint256', name: 'timestamp', type: 'uint256' },
536
+ ],
537
+ stateMutability: 'view',
538
+ type: 'function',
539
+ },
540
+ {
541
+ inputs: [],
542
+ name: 'epochLength',
543
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
544
+ stateMutability: 'view',
545
+ type: 'function',
546
+ },
547
+ {
548
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
549
+ name: 'epochVolumeCaps',
550
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
551
+ stateMutability: 'view',
552
+ type: 'function',
553
+ },
554
+ {
555
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
556
+ name: 'epochVolumes',
557
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
558
+ stateMutability: 'view',
559
+ type: 'function',
560
+ },
561
+ {
562
+ inputs: [{ internalType: 'bytes32', name: 'id', type: 'bytes32' }],
563
+ name: 'executeDelayedTransfer',
564
+ outputs: [],
565
+ stateMutability: 'nonpayable',
566
+ type: 'function',
567
+ },
568
+ {
569
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
570
+ name: 'governors',
571
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
572
+ stateMutability: 'view',
573
+ type: 'function',
574
+ },
575
+ {
576
+ inputs: [{ internalType: 'uint256', name: 'period', type: 'uint256' }],
577
+ name: 'increaseNoticePeriod',
578
+ outputs: [],
579
+ stateMutability: 'nonpayable',
580
+ type: 'function',
581
+ },
582
+ {
583
+ inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
584
+ name: 'isGovernor',
585
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
586
+ stateMutability: 'view',
587
+ type: 'function',
588
+ },
589
+ {
590
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
591
+ name: 'isPauser',
592
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
593
+ stateMutability: 'view',
594
+ type: 'function',
595
+ },
596
+ {
597
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
598
+ name: 'lastOpTimestamps',
599
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
600
+ stateMutability: 'view',
601
+ type: 'function',
602
+ },
603
+ {
604
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
605
+ name: 'maxSend',
606
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
607
+ stateMutability: 'view',
608
+ type: 'function',
609
+ },
610
+ {
611
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
612
+ name: 'minAdd',
613
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
614
+ stateMutability: 'view',
615
+ type: 'function',
616
+ },
617
+ {
618
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
619
+ name: 'minSend',
620
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
621
+ stateMutability: 'view',
622
+ type: 'function',
623
+ },
624
+ {
625
+ inputs: [],
626
+ name: 'minimalMaxSlippage',
627
+ outputs: [{ internalType: 'uint32', name: '', type: 'uint32' }],
628
+ stateMutability: 'view',
629
+ type: 'function',
630
+ },
631
+ {
632
+ inputs: [],
633
+ name: 'nativeWrap',
634
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
635
+ stateMutability: 'view',
636
+ type: 'function',
637
+ },
638
+ {
639
+ inputs: [],
640
+ name: 'noticePeriod',
641
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
642
+ stateMutability: 'view',
643
+ type: 'function',
644
+ },
645
+ {
646
+ inputs: [],
647
+ name: 'notifyResetSigners',
648
+ outputs: [],
649
+ stateMutability: 'nonpayable',
650
+ type: 'function',
651
+ },
652
+ {
653
+ inputs: [],
654
+ name: 'owner',
655
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
656
+ stateMutability: 'view',
657
+ type: 'function',
658
+ },
659
+ {
660
+ inputs: [],
661
+ name: 'pause',
662
+ outputs: [],
663
+ stateMutability: 'nonpayable',
664
+ type: 'function',
665
+ },
666
+ {
667
+ inputs: [],
668
+ name: 'paused',
669
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
670
+ stateMutability: 'view',
671
+ type: 'function',
672
+ },
673
+ {
674
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
675
+ name: 'pausers',
676
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
677
+ stateMutability: 'view',
678
+ type: 'function',
679
+ },
680
+ {
681
+ inputs: [
682
+ { internalType: 'bytes', name: '_relayRequest', type: 'bytes' },
683
+ { internalType: 'bytes[]', name: '_sigs', type: 'bytes[]' },
684
+ { internalType: 'address[]', name: '_signers', type: 'address[]' },
685
+ { internalType: 'uint256[]', name: '_powers', type: 'uint256[]' },
686
+ ],
687
+ name: 'relay',
688
+ outputs: [],
689
+ stateMutability: 'nonpayable',
690
+ type: 'function',
691
+ },
692
+ {
693
+ inputs: [{ internalType: 'address', name: '_account', type: 'address' }],
694
+ name: 'removeGovernor',
695
+ outputs: [],
696
+ stateMutability: 'nonpayable',
697
+ type: 'function',
698
+ },
699
+ {
700
+ inputs: [{ internalType: 'address', name: 'account', type: 'address' }],
701
+ name: 'removePauser',
702
+ outputs: [],
703
+ stateMutability: 'nonpayable',
704
+ type: 'function',
705
+ },
706
+ {
707
+ inputs: [],
708
+ name: 'renounceGovernor',
709
+ outputs: [],
710
+ stateMutability: 'nonpayable',
711
+ type: 'function',
712
+ },
713
+ {
714
+ inputs: [],
715
+ name: 'renounceOwnership',
716
+ outputs: [],
717
+ stateMutability: 'nonpayable',
718
+ type: 'function',
719
+ },
720
+ {
721
+ inputs: [],
722
+ name: 'renouncePauser',
723
+ outputs: [],
724
+ stateMutability: 'nonpayable',
725
+ type: 'function',
726
+ },
727
+ {
728
+ inputs: [
729
+ { internalType: 'address[]', name: '_signers', type: 'address[]' },
730
+ { internalType: 'uint256[]', name: '_powers', type: 'uint256[]' },
731
+ ],
732
+ name: 'resetSigners',
733
+ outputs: [],
734
+ stateMutability: 'nonpayable',
735
+ type: 'function',
736
+ },
737
+ {
738
+ inputs: [],
739
+ name: 'resetTime',
740
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
741
+ stateMutability: 'view',
742
+ type: 'function',
743
+ },
744
+ {
745
+ inputs: [
746
+ { internalType: 'address', name: '_receiver', type: 'address' },
747
+ { internalType: 'address', name: '_token', type: 'address' },
748
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
749
+ { internalType: 'uint64', name: '_dstChainId', type: 'uint64' },
750
+ { internalType: 'uint64', name: '_nonce', type: 'uint64' },
751
+ { internalType: 'uint32', name: '_maxSlippage', type: 'uint32' },
752
+ ],
753
+ name: 'send',
754
+ outputs: [],
755
+ stateMutability: 'nonpayable',
756
+ type: 'function',
757
+ },
758
+ {
759
+ inputs: [
760
+ { internalType: 'address', name: '_receiver', type: 'address' },
761
+ { internalType: 'uint256', name: '_amount', type: 'uint256' },
762
+ { internalType: 'uint64', name: '_dstChainId', type: 'uint64' },
763
+ { internalType: 'uint64', name: '_nonce', type: 'uint64' },
764
+ { internalType: 'uint32', name: '_maxSlippage', type: 'uint32' },
765
+ ],
766
+ name: 'sendNative',
767
+ outputs: [],
768
+ stateMutability: 'payable',
769
+ type: 'function',
770
+ },
771
+ {
772
+ inputs: [{ internalType: 'uint256', name: '_period', type: 'uint256' }],
773
+ name: 'setDelayPeriod',
774
+ outputs: [],
775
+ stateMutability: 'nonpayable',
776
+ type: 'function',
777
+ },
778
+ {
779
+ inputs: [
780
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
781
+ {
782
+ internalType: 'uint256[]',
783
+ name: '_thresholds',
784
+ type: 'uint256[]',
785
+ },
786
+ ],
787
+ name: 'setDelayThresholds',
788
+ outputs: [],
789
+ stateMutability: 'nonpayable',
790
+ type: 'function',
791
+ },
792
+ {
793
+ inputs: [{ internalType: 'uint256', name: '_length', type: 'uint256' }],
794
+ name: 'setEpochLength',
795
+ outputs: [],
796
+ stateMutability: 'nonpayable',
797
+ type: 'function',
798
+ },
799
+ {
800
+ inputs: [
801
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
802
+ { internalType: 'uint256[]', name: '_caps', type: 'uint256[]' },
803
+ ],
804
+ name: 'setEpochVolumeCaps',
805
+ outputs: [],
806
+ stateMutability: 'nonpayable',
807
+ type: 'function',
808
+ },
809
+ {
810
+ inputs: [
811
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
812
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
813
+ ],
814
+ name: 'setMaxSend',
815
+ outputs: [],
816
+ stateMutability: 'nonpayable',
817
+ type: 'function',
818
+ },
819
+ {
820
+ inputs: [
821
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
822
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
823
+ ],
824
+ name: 'setMinAdd',
825
+ outputs: [],
826
+ stateMutability: 'nonpayable',
827
+ type: 'function',
828
+ },
829
+ {
830
+ inputs: [
831
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
832
+ { internalType: 'uint256[]', name: '_amounts', type: 'uint256[]' },
833
+ ],
834
+ name: 'setMinSend',
835
+ outputs: [],
836
+ stateMutability: 'nonpayable',
837
+ type: 'function',
838
+ },
839
+ {
840
+ inputs: [
841
+ {
842
+ internalType: 'uint32',
843
+ name: '_minimalMaxSlippage',
844
+ type: 'uint32',
845
+ },
846
+ ],
847
+ name: 'setMinimalMaxSlippage',
848
+ outputs: [],
849
+ stateMutability: 'nonpayable',
850
+ type: 'function',
851
+ },
852
+ {
853
+ inputs: [{ internalType: 'address', name: '_weth', type: 'address' }],
854
+ name: 'setWrap',
855
+ outputs: [],
856
+ stateMutability: 'nonpayable',
857
+ type: 'function',
858
+ },
859
+ {
860
+ inputs: [],
861
+ name: 'ssHash',
862
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
863
+ stateMutability: 'view',
864
+ type: 'function',
865
+ },
866
+ {
867
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
868
+ name: 'transferOwnership',
869
+ outputs: [],
870
+ stateMutability: 'nonpayable',
871
+ type: 'function',
872
+ },
873
+ {
874
+ inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
875
+ name: 'transfers',
876
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
877
+ stateMutability: 'view',
878
+ type: 'function',
879
+ },
880
+ {
881
+ inputs: [],
882
+ name: 'triggerTime',
883
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
884
+ stateMutability: 'view',
885
+ type: 'function',
886
+ },
887
+ {
888
+ inputs: [],
889
+ name: 'unpause',
890
+ outputs: [],
891
+ stateMutability: 'nonpayable',
892
+ type: 'function',
893
+ },
894
+ {
895
+ inputs: [
896
+ { internalType: 'uint256', name: '_triggerTime', type: 'uint256' },
897
+ {
898
+ internalType: 'address[]',
899
+ name: '_newSigners',
900
+ type: 'address[]',
901
+ },
902
+ {
903
+ internalType: 'uint256[]',
904
+ name: '_newPowers',
905
+ type: 'uint256[]',
906
+ },
907
+ { internalType: 'bytes[]', name: '_sigs', type: 'bytes[]' },
908
+ {
909
+ internalType: 'address[]',
910
+ name: '_curSigners',
911
+ type: 'address[]',
912
+ },
913
+ { internalType: 'uint256[]', name: '_curPowers', type: 'uint256[]' },
914
+ ],
915
+ name: 'updateSigners',
916
+ outputs: [],
917
+ stateMutability: 'nonpayable',
918
+ type: 'function',
919
+ },
920
+ {
921
+ inputs: [
922
+ { internalType: 'bytes', name: '_msg', type: 'bytes' },
923
+ { internalType: 'bytes[]', name: '_sigs', type: 'bytes[]' },
924
+ { internalType: 'address[]', name: '_signers', type: 'address[]' },
925
+ { internalType: 'uint256[]', name: '_powers', type: 'uint256[]' },
926
+ ],
927
+ name: 'verifySigs',
928
+ outputs: [],
929
+ stateMutability: 'view',
930
+ type: 'function',
931
+ },
932
+ {
933
+ inputs: [
934
+ { internalType: 'bytes', name: '_wdmsg', type: 'bytes' },
935
+ { internalType: 'bytes[]', name: '_sigs', type: 'bytes[]' },
936
+ { internalType: 'address[]', name: '_signers', type: 'address[]' },
937
+ { internalType: 'uint256[]', name: '_powers', type: 'uint256[]' },
938
+ ],
939
+ name: 'withdraw',
940
+ outputs: [],
941
+ stateMutability: 'nonpayable',
942
+ type: 'function',
943
+ },
944
+ {
945
+ inputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
946
+ name: 'withdraws',
947
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
948
+ stateMutability: 'view',
949
+ type: 'function',
950
+ },
951
+ { stateMutability: 'payable', type: 'receive' },
952
+ ] as const
953
+
954
+ export const relayEvent = getAbiItem({
955
+ abi: cbridgeBridgeAbi,
956
+ name: 'Relay',
957
+ })
958
+
959
+ export const roninbridgeGatewayV3Abi = [
960
+ {
961
+ inputs: [{ internalType: 'address', name: 'voter', type: 'address' }],
962
+ name: 'ErrAlreadyVoted',
963
+ type: 'error',
964
+ },
965
+ {
966
+ inputs: [
967
+ {
968
+ internalType: 'enum ContractType',
969
+ name: 'contractType',
970
+ type: 'uint8',
971
+ },
972
+ ],
973
+ name: 'ErrContractTypeNotFound',
974
+ type: 'error',
975
+ },
976
+ { inputs: [], name: 'ErrERC20MintingFailed', type: 'error' },
977
+ { inputs: [], name: 'ErrERC721MintingFailed', type: 'error' },
978
+ { inputs: [], name: 'ErrEmptyArray', type: 'error' },
979
+ {
980
+ inputs: [
981
+ { internalType: 'bytes4', name: 'msgSig', type: 'bytes4' },
982
+ { internalType: 'uint256', name: 'actual', type: 'uint256' },
983
+ { internalType: 'uint256', name: 'expected', type: 'uint256' },
984
+ ],
985
+ name: 'ErrInvalidChainId',
986
+ type: 'error',
987
+ },
988
+ { inputs: [], name: 'ErrInvalidInfo', type: 'error' },
989
+ { inputs: [], name: 'ErrInvalidReceipt', type: 'error' },
990
+ { inputs: [], name: 'ErrInvalidReceiptKind', type: 'error' },
991
+ { inputs: [], name: 'ErrInvalidRequest', type: 'error' },
992
+ {
993
+ inputs: [{ internalType: 'bytes4', name: 'msgSig', type: 'bytes4' }],
994
+ name: 'ErrInvalidThreshold',
995
+ type: 'error',
996
+ },
997
+ { inputs: [], name: 'ErrInvalidTokenStandard', type: 'error' },
998
+ { inputs: [], name: 'ErrInvalidTrustedThreshold', type: 'error' },
999
+ {
1000
+ inputs: [{ internalType: 'bytes4', name: 'msgSig', type: 'bytes4' }],
1001
+ name: 'ErrLengthMismatch',
1002
+ type: 'error',
1003
+ },
1004
+ { inputs: [], name: 'ErrQueryForTooSmallQuantity', type: 'error' },
1005
+ {
1006
+ inputs: [
1007
+ {
1008
+ components: [
1009
+ {
1010
+ internalType: 'enum Token.Standard',
1011
+ name: 'erc',
1012
+ type: 'uint8',
1013
+ },
1014
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1015
+ { internalType: 'uint256', name: 'quantity', type: 'uint256' },
1016
+ ],
1017
+ internalType: 'struct Token.Info',
1018
+ name: 'tokenInfo',
1019
+ type: 'tuple',
1020
+ },
1021
+ { internalType: 'address', name: 'to', type: 'address' },
1022
+ { internalType: 'address', name: 'token', type: 'address' },
1023
+ ],
1024
+ name: 'ErrTokenCouldNotTransfer',
1025
+ type: 'error',
1026
+ },
1027
+ {
1028
+ inputs: [
1029
+ {
1030
+ components: [
1031
+ {
1032
+ internalType: 'enum Token.Standard',
1033
+ name: 'erc',
1034
+ type: 'uint8',
1035
+ },
1036
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1037
+ { internalType: 'uint256', name: 'quantity', type: 'uint256' },
1038
+ ],
1039
+ internalType: 'struct Token.Info',
1040
+ name: 'tokenInfo',
1041
+ type: 'tuple',
1042
+ },
1043
+ { internalType: 'address', name: 'from', type: 'address' },
1044
+ { internalType: 'address', name: 'to', type: 'address' },
1045
+ { internalType: 'address', name: 'token', type: 'address' },
1046
+ ],
1047
+ name: 'ErrTokenCouldNotTransferFrom',
1048
+ type: 'error',
1049
+ },
1050
+ {
1051
+ inputs: [
1052
+ { internalType: 'bytes4', name: 'msgSig', type: 'bytes4' },
1053
+ {
1054
+ internalType: 'enum RoleAccess',
1055
+ name: 'expectedRole',
1056
+ type: 'uint8',
1057
+ },
1058
+ ],
1059
+ name: 'ErrUnauthorized',
1060
+ type: 'error',
1061
+ },
1062
+ { inputs: [], name: 'ErrUnsupportedStandard', type: 'error' },
1063
+ { inputs: [], name: 'ErrUnsupportedToken', type: 'error' },
1064
+ { inputs: [], name: 'ErrWithdrawalsMigrated', type: 'error' },
1065
+ { inputs: [], name: 'ErrWithdrawnOnMainchainAlready', type: 'error' },
1066
+ {
1067
+ inputs: [{ internalType: 'address', name: 'addr', type: 'address' }],
1068
+ name: 'ErrZeroCodeContract',
1069
+ type: 'error',
1070
+ },
1071
+ {
1072
+ anonymous: false,
1073
+ inputs: [
1074
+ {
1075
+ indexed: true,
1076
+ internalType: 'enum ContractType',
1077
+ name: 'contractType',
1078
+ type: 'uint8',
1079
+ },
1080
+ {
1081
+ indexed: true,
1082
+ internalType: 'address',
1083
+ name: 'addr',
1084
+ type: 'address',
1085
+ },
1086
+ ],
1087
+ name: 'ContractUpdated',
1088
+ type: 'event',
1089
+ },
1090
+ {
1091
+ anonymous: false,
1092
+ inputs: [
1093
+ {
1094
+ indexed: true,
1095
+ internalType: 'address',
1096
+ name: 'bridgeOperator',
1097
+ type: 'address',
1098
+ },
1099
+ {
1100
+ indexed: true,
1101
+ internalType: 'uint256',
1102
+ name: 'id',
1103
+ type: 'uint256',
1104
+ },
1105
+ {
1106
+ indexed: true,
1107
+ internalType: 'uint256',
1108
+ name: 'chainId',
1109
+ type: 'uint256',
1110
+ },
1111
+ {
1112
+ indexed: false,
1113
+ internalType: 'bytes32',
1114
+ name: 'receiptHash',
1115
+ type: 'bytes32',
1116
+ },
1117
+ ],
1118
+ name: 'DepositVoted',
1119
+ type: 'event',
1120
+ },
1121
+ {
1122
+ anonymous: false,
1123
+ inputs: [
1124
+ {
1125
+ indexed: false,
1126
+ internalType: 'bytes32',
1127
+ name: 'receiptHash',
1128
+ type: 'bytes32',
1129
+ },
1130
+ {
1131
+ components: [
1132
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1133
+ {
1134
+ internalType: 'enum Transfer.Kind',
1135
+ name: 'kind',
1136
+ type: 'uint8',
1137
+ },
1138
+ {
1139
+ components: [
1140
+ { internalType: 'address', name: 'addr', type: 'address' },
1141
+ {
1142
+ internalType: 'address',
1143
+ name: 'tokenAddr',
1144
+ type: 'address',
1145
+ },
1146
+ {
1147
+ internalType: 'uint256',
1148
+ name: 'chainId',
1149
+ type: 'uint256',
1150
+ },
1151
+ ],
1152
+ internalType: 'struct Token.Owner',
1153
+ name: 'mainchain',
1154
+ type: 'tuple',
1155
+ },
1156
+ {
1157
+ components: [
1158
+ { internalType: 'address', name: 'addr', type: 'address' },
1159
+ {
1160
+ internalType: 'address',
1161
+ name: 'tokenAddr',
1162
+ type: 'address',
1163
+ },
1164
+ {
1165
+ internalType: 'uint256',
1166
+ name: 'chainId',
1167
+ type: 'uint256',
1168
+ },
1169
+ ],
1170
+ internalType: 'struct Token.Owner',
1171
+ name: 'ronin',
1172
+ type: 'tuple',
1173
+ },
1174
+ {
1175
+ components: [
1176
+ {
1177
+ internalType: 'enum Token.Standard',
1178
+ name: 'erc',
1179
+ type: 'uint8',
1180
+ },
1181
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1182
+ {
1183
+ internalType: 'uint256',
1184
+ name: 'quantity',
1185
+ type: 'uint256',
1186
+ },
1187
+ ],
1188
+ internalType: 'struct Token.Info',
1189
+ name: 'info',
1190
+ type: 'tuple',
1191
+ },
1192
+ ],
1193
+ indexed: false,
1194
+ internalType: 'struct Transfer.Receipt',
1195
+ name: 'receipt',
1196
+ type: 'tuple',
1197
+ },
1198
+ ],
1199
+ name: 'Deposited',
1200
+ type: 'event',
1201
+ },
1202
+ {
1203
+ anonymous: false,
1204
+ inputs: [
1205
+ {
1206
+ indexed: false,
1207
+ internalType: 'uint8',
1208
+ name: 'version',
1209
+ type: 'uint8',
1210
+ },
1211
+ ],
1212
+ name: 'Initialized',
1213
+ type: 'event',
1214
+ },
1215
+ {
1216
+ anonymous: false,
1217
+ inputs: [
1218
+ {
1219
+ indexed: false,
1220
+ internalType: 'bytes32',
1221
+ name: 'receiptHash',
1222
+ type: 'bytes32',
1223
+ },
1224
+ {
1225
+ components: [
1226
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1227
+ {
1228
+ internalType: 'enum Transfer.Kind',
1229
+ name: 'kind',
1230
+ type: 'uint8',
1231
+ },
1232
+ {
1233
+ components: [
1234
+ { internalType: 'address', name: 'addr', type: 'address' },
1235
+ {
1236
+ internalType: 'address',
1237
+ name: 'tokenAddr',
1238
+ type: 'address',
1239
+ },
1240
+ {
1241
+ internalType: 'uint256',
1242
+ name: 'chainId',
1243
+ type: 'uint256',
1244
+ },
1245
+ ],
1246
+ internalType: 'struct Token.Owner',
1247
+ name: 'mainchain',
1248
+ type: 'tuple',
1249
+ },
1250
+ {
1251
+ components: [
1252
+ { internalType: 'address', name: 'addr', type: 'address' },
1253
+ {
1254
+ internalType: 'address',
1255
+ name: 'tokenAddr',
1256
+ type: 'address',
1257
+ },
1258
+ {
1259
+ internalType: 'uint256',
1260
+ name: 'chainId',
1261
+ type: 'uint256',
1262
+ },
1263
+ ],
1264
+ internalType: 'struct Token.Owner',
1265
+ name: 'ronin',
1266
+ type: 'tuple',
1267
+ },
1268
+ {
1269
+ components: [
1270
+ {
1271
+ internalType: 'enum Token.Standard',
1272
+ name: 'erc',
1273
+ type: 'uint8',
1274
+ },
1275
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1276
+ {
1277
+ internalType: 'uint256',
1278
+ name: 'quantity',
1279
+ type: 'uint256',
1280
+ },
1281
+ ],
1282
+ internalType: 'struct Token.Info',
1283
+ name: 'info',
1284
+ type: 'tuple',
1285
+ },
1286
+ ],
1287
+ indexed: false,
1288
+ internalType: 'struct Transfer.Receipt',
1289
+ name: 'receipt',
1290
+ type: 'tuple',
1291
+ },
1292
+ ],
1293
+ name: 'MainchainWithdrew',
1294
+ type: 'event',
1295
+ },
1296
+ {
1297
+ anonymous: false,
1298
+ inputs: [
1299
+ {
1300
+ indexed: false,
1301
+ internalType: 'address[]',
1302
+ name: 'tokens',
1303
+ type: 'address[]',
1304
+ },
1305
+ {
1306
+ indexed: false,
1307
+ internalType: 'uint256[]',
1308
+ name: 'threshold',
1309
+ type: 'uint256[]',
1310
+ },
1311
+ ],
1312
+ name: 'MinimumThresholdsUpdated',
1313
+ type: 'event',
1314
+ },
1315
+ {
1316
+ anonymous: false,
1317
+ inputs: [
1318
+ {
1319
+ indexed: false,
1320
+ internalType: 'address',
1321
+ name: 'account',
1322
+ type: 'address',
1323
+ },
1324
+ ],
1325
+ name: 'Paused',
1326
+ type: 'event',
1327
+ },
1328
+ {
1329
+ anonymous: false,
1330
+ inputs: [
1331
+ {
1332
+ indexed: true,
1333
+ internalType: 'bytes32',
1334
+ name: 'role',
1335
+ type: 'bytes32',
1336
+ },
1337
+ {
1338
+ indexed: true,
1339
+ internalType: 'bytes32',
1340
+ name: 'previousAdminRole',
1341
+ type: 'bytes32',
1342
+ },
1343
+ {
1344
+ indexed: true,
1345
+ internalType: 'bytes32',
1346
+ name: 'newAdminRole',
1347
+ type: 'bytes32',
1348
+ },
1349
+ ],
1350
+ name: 'RoleAdminChanged',
1351
+ type: 'event',
1352
+ },
1353
+ {
1354
+ anonymous: false,
1355
+ inputs: [
1356
+ {
1357
+ indexed: true,
1358
+ internalType: 'bytes32',
1359
+ name: 'role',
1360
+ type: 'bytes32',
1361
+ },
1362
+ {
1363
+ indexed: true,
1364
+ internalType: 'address',
1365
+ name: 'account',
1366
+ type: 'address',
1367
+ },
1368
+ {
1369
+ indexed: true,
1370
+ internalType: 'address',
1371
+ name: 'sender',
1372
+ type: 'address',
1373
+ },
1374
+ ],
1375
+ name: 'RoleGranted',
1376
+ type: 'event',
1377
+ },
1378
+ {
1379
+ anonymous: false,
1380
+ inputs: [
1381
+ {
1382
+ indexed: true,
1383
+ internalType: 'bytes32',
1384
+ name: 'role',
1385
+ type: 'bytes32',
1386
+ },
1387
+ {
1388
+ indexed: true,
1389
+ internalType: 'address',
1390
+ name: 'account',
1391
+ type: 'address',
1392
+ },
1393
+ {
1394
+ indexed: true,
1395
+ internalType: 'address',
1396
+ name: 'sender',
1397
+ type: 'address',
1398
+ },
1399
+ ],
1400
+ name: 'RoleRevoked',
1401
+ type: 'event',
1402
+ },
1403
+ {
1404
+ anonymous: false,
1405
+ inputs: [
1406
+ {
1407
+ indexed: true,
1408
+ internalType: 'uint256',
1409
+ name: 'nonce',
1410
+ type: 'uint256',
1411
+ },
1412
+ {
1413
+ indexed: true,
1414
+ internalType: 'uint256',
1415
+ name: 'numerator',
1416
+ type: 'uint256',
1417
+ },
1418
+ {
1419
+ indexed: true,
1420
+ internalType: 'uint256',
1421
+ name: 'denominator',
1422
+ type: 'uint256',
1423
+ },
1424
+ {
1425
+ indexed: false,
1426
+ internalType: 'uint256',
1427
+ name: 'previousNumerator',
1428
+ type: 'uint256',
1429
+ },
1430
+ {
1431
+ indexed: false,
1432
+ internalType: 'uint256',
1433
+ name: 'previousDenominator',
1434
+ type: 'uint256',
1435
+ },
1436
+ ],
1437
+ name: 'ThresholdUpdated',
1438
+ type: 'event',
1439
+ },
1440
+ {
1441
+ anonymous: false,
1442
+ inputs: [
1443
+ {
1444
+ indexed: false,
1445
+ internalType: 'address[]',
1446
+ name: 'roninTokens',
1447
+ type: 'address[]',
1448
+ },
1449
+ {
1450
+ indexed: false,
1451
+ internalType: 'address[]',
1452
+ name: 'mainchainTokens',
1453
+ type: 'address[]',
1454
+ },
1455
+ {
1456
+ indexed: false,
1457
+ internalType: 'uint256[]',
1458
+ name: 'chainIds',
1459
+ type: 'uint256[]',
1460
+ },
1461
+ {
1462
+ indexed: false,
1463
+ internalType: 'enum Token.Standard[]',
1464
+ name: 'standards',
1465
+ type: 'uint8[]',
1466
+ },
1467
+ ],
1468
+ name: 'TokenMapped',
1469
+ type: 'event',
1470
+ },
1471
+ {
1472
+ anonymous: false,
1473
+ inputs: [
1474
+ {
1475
+ indexed: true,
1476
+ internalType: 'uint256',
1477
+ name: 'nonce',
1478
+ type: 'uint256',
1479
+ },
1480
+ {
1481
+ indexed: true,
1482
+ internalType: 'uint256',
1483
+ name: 'numerator',
1484
+ type: 'uint256',
1485
+ },
1486
+ {
1487
+ indexed: true,
1488
+ internalType: 'uint256',
1489
+ name: 'denominator',
1490
+ type: 'uint256',
1491
+ },
1492
+ {
1493
+ indexed: false,
1494
+ internalType: 'uint256',
1495
+ name: 'previousNumerator',
1496
+ type: 'uint256',
1497
+ },
1498
+ {
1499
+ indexed: false,
1500
+ internalType: 'uint256',
1501
+ name: 'previousDenominator',
1502
+ type: 'uint256',
1503
+ },
1504
+ ],
1505
+ name: 'TrustedThresholdUpdated',
1506
+ type: 'event',
1507
+ },
1508
+ {
1509
+ anonymous: false,
1510
+ inputs: [
1511
+ {
1512
+ indexed: false,
1513
+ internalType: 'address',
1514
+ name: 'account',
1515
+ type: 'address',
1516
+ },
1517
+ ],
1518
+ name: 'Unpaused',
1519
+ type: 'event',
1520
+ },
1521
+ {
1522
+ anonymous: false,
1523
+ inputs: [
1524
+ {
1525
+ indexed: false,
1526
+ internalType: 'bytes32',
1527
+ name: 'receiptHash',
1528
+ type: 'bytes32',
1529
+ },
1530
+ {
1531
+ components: [
1532
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1533
+ {
1534
+ internalType: 'enum Transfer.Kind',
1535
+ name: 'kind',
1536
+ type: 'uint8',
1537
+ },
1538
+ {
1539
+ components: [
1540
+ { internalType: 'address', name: 'addr', type: 'address' },
1541
+ {
1542
+ internalType: 'address',
1543
+ name: 'tokenAddr',
1544
+ type: 'address',
1545
+ },
1546
+ {
1547
+ internalType: 'uint256',
1548
+ name: 'chainId',
1549
+ type: 'uint256',
1550
+ },
1551
+ ],
1552
+ internalType: 'struct Token.Owner',
1553
+ name: 'mainchain',
1554
+ type: 'tuple',
1555
+ },
1556
+ {
1557
+ components: [
1558
+ { internalType: 'address', name: 'addr', type: 'address' },
1559
+ {
1560
+ internalType: 'address',
1561
+ name: 'tokenAddr',
1562
+ type: 'address',
1563
+ },
1564
+ {
1565
+ internalType: 'uint256',
1566
+ name: 'chainId',
1567
+ type: 'uint256',
1568
+ },
1569
+ ],
1570
+ internalType: 'struct Token.Owner',
1571
+ name: 'ronin',
1572
+ type: 'tuple',
1573
+ },
1574
+ {
1575
+ components: [
1576
+ {
1577
+ internalType: 'enum Token.Standard',
1578
+ name: 'erc',
1579
+ type: 'uint8',
1580
+ },
1581
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1582
+ {
1583
+ internalType: 'uint256',
1584
+ name: 'quantity',
1585
+ type: 'uint256',
1586
+ },
1587
+ ],
1588
+ internalType: 'struct Token.Info',
1589
+ name: 'info',
1590
+ type: 'tuple',
1591
+ },
1592
+ ],
1593
+ indexed: false,
1594
+ internalType: 'struct Transfer.Receipt',
1595
+ name: '',
1596
+ type: 'tuple',
1597
+ },
1598
+ ],
1599
+ name: 'WithdrawalRequested',
1600
+ type: 'event',
1601
+ },
1602
+ {
1603
+ anonymous: false,
1604
+ inputs: [
1605
+ {
1606
+ indexed: false,
1607
+ internalType: 'bytes32',
1608
+ name: 'receiptHash',
1609
+ type: 'bytes32',
1610
+ },
1611
+ {
1612
+ components: [
1613
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1614
+ {
1615
+ internalType: 'enum Transfer.Kind',
1616
+ name: 'kind',
1617
+ type: 'uint8',
1618
+ },
1619
+ {
1620
+ components: [
1621
+ { internalType: 'address', name: 'addr', type: 'address' },
1622
+ {
1623
+ internalType: 'address',
1624
+ name: 'tokenAddr',
1625
+ type: 'address',
1626
+ },
1627
+ {
1628
+ internalType: 'uint256',
1629
+ name: 'chainId',
1630
+ type: 'uint256',
1631
+ },
1632
+ ],
1633
+ internalType: 'struct Token.Owner',
1634
+ name: 'mainchain',
1635
+ type: 'tuple',
1636
+ },
1637
+ {
1638
+ components: [
1639
+ { internalType: 'address', name: 'addr', type: 'address' },
1640
+ {
1641
+ internalType: 'address',
1642
+ name: 'tokenAddr',
1643
+ type: 'address',
1644
+ },
1645
+ {
1646
+ internalType: 'uint256',
1647
+ name: 'chainId',
1648
+ type: 'uint256',
1649
+ },
1650
+ ],
1651
+ internalType: 'struct Token.Owner',
1652
+ name: 'ronin',
1653
+ type: 'tuple',
1654
+ },
1655
+ {
1656
+ components: [
1657
+ {
1658
+ internalType: 'enum Token.Standard',
1659
+ name: 'erc',
1660
+ type: 'uint8',
1661
+ },
1662
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1663
+ {
1664
+ internalType: 'uint256',
1665
+ name: 'quantity',
1666
+ type: 'uint256',
1667
+ },
1668
+ ],
1669
+ internalType: 'struct Token.Info',
1670
+ name: 'info',
1671
+ type: 'tuple',
1672
+ },
1673
+ ],
1674
+ indexed: false,
1675
+ internalType: 'struct Transfer.Receipt',
1676
+ name: '',
1677
+ type: 'tuple',
1678
+ },
1679
+ ],
1680
+ name: 'WithdrawalSignaturesRequested',
1681
+ type: 'event',
1682
+ },
1683
+ { stateMutability: 'payable', type: 'fallback' },
1684
+ {
1685
+ inputs: [],
1686
+ name: 'DEFAULT_ADMIN_ROLE',
1687
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1688
+ stateMutability: 'view',
1689
+ type: 'function',
1690
+ },
1691
+ {
1692
+ inputs: [
1693
+ {
1694
+ components: [
1695
+ {
1696
+ internalType: 'address',
1697
+ name: 'recipientAddr',
1698
+ type: 'address',
1699
+ },
1700
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
1701
+ {
1702
+ components: [
1703
+ {
1704
+ internalType: 'enum Token.Standard',
1705
+ name: 'erc',
1706
+ type: 'uint8',
1707
+ },
1708
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1709
+ {
1710
+ internalType: 'uint256',
1711
+ name: 'quantity',
1712
+ type: 'uint256',
1713
+ },
1714
+ ],
1715
+ internalType: 'struct Token.Info',
1716
+ name: 'info',
1717
+ type: 'tuple',
1718
+ },
1719
+ ],
1720
+ internalType: 'struct Transfer.Request[]',
1721
+ name: '_requests',
1722
+ type: 'tuple[]',
1723
+ },
1724
+ { internalType: 'uint256', name: '_chainId', type: 'uint256' },
1725
+ ],
1726
+ name: 'bulkRequestWithdrawalFor',
1727
+ outputs: [],
1728
+ stateMutability: 'nonpayable',
1729
+ type: 'function',
1730
+ },
1731
+ {
1732
+ inputs: [
1733
+ {
1734
+ internalType: 'uint256[]',
1735
+ name: 'withdrawals',
1736
+ type: 'uint256[]',
1737
+ },
1738
+ { internalType: 'bytes[]', name: 'signatures', type: 'bytes[]' },
1739
+ ],
1740
+ name: 'bulkSubmitWithdrawalSignatures',
1741
+ outputs: [],
1742
+ stateMutability: 'nonpayable',
1743
+ type: 'function',
1744
+ },
1745
+ {
1746
+ inputs: [{ internalType: 'uint256', name: '_voteWeight', type: 'uint256' }],
1747
+ name: 'checkThreshold',
1748
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1749
+ stateMutability: 'view',
1750
+ type: 'function',
1751
+ },
1752
+ {
1753
+ inputs: [
1754
+ {
1755
+ components: [
1756
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1757
+ {
1758
+ internalType: 'enum Transfer.Kind',
1759
+ name: 'kind',
1760
+ type: 'uint8',
1761
+ },
1762
+ {
1763
+ components: [
1764
+ { internalType: 'address', name: 'addr', type: 'address' },
1765
+ {
1766
+ internalType: 'address',
1767
+ name: 'tokenAddr',
1768
+ type: 'address',
1769
+ },
1770
+ {
1771
+ internalType: 'uint256',
1772
+ name: 'chainId',
1773
+ type: 'uint256',
1774
+ },
1775
+ ],
1776
+ internalType: 'struct Token.Owner',
1777
+ name: 'mainchain',
1778
+ type: 'tuple',
1779
+ },
1780
+ {
1781
+ components: [
1782
+ { internalType: 'address', name: 'addr', type: 'address' },
1783
+ {
1784
+ internalType: 'address',
1785
+ name: 'tokenAddr',
1786
+ type: 'address',
1787
+ },
1788
+ {
1789
+ internalType: 'uint256',
1790
+ name: 'chainId',
1791
+ type: 'uint256',
1792
+ },
1793
+ ],
1794
+ internalType: 'struct Token.Owner',
1795
+ name: 'ronin',
1796
+ type: 'tuple',
1797
+ },
1798
+ {
1799
+ components: [
1800
+ {
1801
+ internalType: 'enum Token.Standard',
1802
+ name: 'erc',
1803
+ type: 'uint8',
1804
+ },
1805
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
1806
+ {
1807
+ internalType: 'uint256',
1808
+ name: 'quantity',
1809
+ type: 'uint256',
1810
+ },
1811
+ ],
1812
+ internalType: 'struct Token.Info',
1813
+ name: 'info',
1814
+ type: 'tuple',
1815
+ },
1816
+ ],
1817
+ internalType: 'struct Transfer.Receipt',
1818
+ name: '_receipt',
1819
+ type: 'tuple',
1820
+ },
1821
+ ],
1822
+ name: 'depositFor',
1823
+ outputs: [],
1824
+ stateMutability: 'nonpayable',
1825
+ type: 'function',
1826
+ },
1827
+ {
1828
+ inputs: [
1829
+ { internalType: 'uint256', name: '', type: 'uint256' },
1830
+ { internalType: 'uint256', name: '', type: 'uint256' },
1831
+ ],
1832
+ name: 'depositVote',
1833
+ outputs: [
1834
+ {
1835
+ internalType: 'enum VoteStatusConsumer.VoteStatus',
1836
+ name: 'status',
1837
+ type: 'uint8',
1838
+ },
1839
+ { internalType: 'bytes32', name: 'finalHash', type: 'bytes32' },
1840
+ { internalType: 'uint256', name: 'expiredAt', type: 'uint256' },
1841
+ { internalType: 'uint256', name: 'createdAt', type: 'uint256' },
1842
+ ],
1843
+ stateMutability: 'view',
1844
+ type: 'function',
1845
+ },
1846
+ {
1847
+ inputs: [
1848
+ { internalType: 'uint256', name: '_chainId', type: 'uint256' },
1849
+ { internalType: 'uint256', name: '_depositId', type: 'uint256' },
1850
+ { internalType: 'address', name: '_voter', type: 'address' },
1851
+ ],
1852
+ name: 'depositVoted',
1853
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1854
+ stateMutability: 'view',
1855
+ type: 'function',
1856
+ },
1857
+ {
1858
+ inputs: [],
1859
+ name: 'emergencyPauser',
1860
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1861
+ stateMutability: 'view',
1862
+ type: 'function',
1863
+ },
1864
+ {
1865
+ inputs: [
1866
+ {
1867
+ internalType: 'enum ContractType',
1868
+ name: 'contractType',
1869
+ type: 'uint8',
1870
+ },
1871
+ ],
1872
+ name: 'getContract',
1873
+ outputs: [{ internalType: 'address', name: 'contract_', type: 'address' }],
1874
+ stateMutability: 'view',
1875
+ type: 'function',
1876
+ },
1877
+ {
1878
+ inputs: [
1879
+ { internalType: 'address', name: '_roninToken', type: 'address' },
1880
+ { internalType: 'uint256', name: '_chainId', type: 'uint256' },
1881
+ ],
1882
+ name: 'getMainchainToken',
1883
+ outputs: [
1884
+ {
1885
+ components: [
1886
+ {
1887
+ internalType: 'enum Token.Standard',
1888
+ name: 'erc',
1889
+ type: 'uint8',
1890
+ },
1891
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
1892
+ ],
1893
+ internalType: 'struct MappedTokenConsumer.MappedToken',
1894
+ name: '_token',
1895
+ type: 'tuple',
1896
+ },
1897
+ ],
1898
+ stateMutability: 'view',
1899
+ type: 'function',
1900
+ },
1901
+ {
1902
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
1903
+ name: 'getRoleAdmin',
1904
+ outputs: [{ internalType: 'bytes32', name: '', type: 'bytes32' }],
1905
+ stateMutability: 'view',
1906
+ type: 'function',
1907
+ },
1908
+ {
1909
+ inputs: [
1910
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1911
+ { internalType: 'uint256', name: 'index', type: 'uint256' },
1912
+ ],
1913
+ name: 'getRoleMember',
1914
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
1915
+ stateMutability: 'view',
1916
+ type: 'function',
1917
+ },
1918
+ {
1919
+ inputs: [{ internalType: 'bytes32', name: 'role', type: 'bytes32' }],
1920
+ name: 'getRoleMemberCount',
1921
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
1922
+ stateMutability: 'view',
1923
+ type: 'function',
1924
+ },
1925
+ {
1926
+ inputs: [],
1927
+ name: 'getThreshold',
1928
+ outputs: [
1929
+ { internalType: 'uint256', name: 'num_', type: 'uint256' },
1930
+ { internalType: 'uint256', name: 'denom_', type: 'uint256' },
1931
+ ],
1932
+ stateMutability: 'view',
1933
+ type: 'function',
1934
+ },
1935
+ {
1936
+ inputs: [],
1937
+ name: 'getTrustedThreshold',
1938
+ outputs: [
1939
+ { internalType: 'uint256', name: 'trustedNum_', type: 'uint256' },
1940
+ { internalType: 'uint256', name: 'trustedDenom_', type: 'uint256' },
1941
+ ],
1942
+ stateMutability: 'view',
1943
+ type: 'function',
1944
+ },
1945
+ {
1946
+ inputs: [
1947
+ { internalType: 'uint256', name: 'withdrawalId', type: 'uint256' },
1948
+ { internalType: 'address[]', name: 'operators', type: 'address[]' },
1949
+ ],
1950
+ name: 'getWithdrawalSignatures',
1951
+ outputs: [
1952
+ { internalType: 'bytes[]', name: '_signatures', type: 'bytes[]' },
1953
+ ],
1954
+ stateMutability: 'view',
1955
+ type: 'function',
1956
+ },
1957
+ {
1958
+ inputs: [
1959
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1960
+ { internalType: 'address', name: 'account', type: 'address' },
1961
+ ],
1962
+ name: 'grantRole',
1963
+ outputs: [],
1964
+ stateMutability: 'nonpayable',
1965
+ type: 'function',
1966
+ },
1967
+ {
1968
+ inputs: [
1969
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
1970
+ { internalType: 'address', name: 'account', type: 'address' },
1971
+ ],
1972
+ name: 'hasRole',
1973
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
1974
+ stateMutability: 'view',
1975
+ type: 'function',
1976
+ },
1977
+ {
1978
+ inputs: [
1979
+ { internalType: 'address', name: '_roleSetter', type: 'address' },
1980
+ { internalType: 'uint256', name: '_numerator', type: 'uint256' },
1981
+ { internalType: 'uint256', name: '_denominator', type: 'uint256' },
1982
+ {
1983
+ internalType: 'uint256',
1984
+ name: '_trustedNumerator',
1985
+ type: 'uint256',
1986
+ },
1987
+ {
1988
+ internalType: 'uint256',
1989
+ name: '_trustedDenominator',
1990
+ type: 'uint256',
1991
+ },
1992
+ { internalType: 'address[]', name: '', type: 'address[]' },
1993
+ {
1994
+ internalType: 'address[][2]',
1995
+ name: '_packedAddresses',
1996
+ type: 'address[][2]',
1997
+ },
1998
+ {
1999
+ internalType: 'uint256[][2]',
2000
+ name: '_packedNumbers',
2001
+ type: 'uint256[][2]',
2002
+ },
2003
+ {
2004
+ internalType: 'enum Token.Standard[]',
2005
+ name: '_standards',
2006
+ type: 'uint8[]',
2007
+ },
2008
+ ],
2009
+ name: 'initialize',
2010
+ outputs: [],
2011
+ stateMutability: 'nonpayable',
2012
+ type: 'function',
2013
+ },
2014
+ {
2015
+ inputs: [],
2016
+ name: 'initializeV2',
2017
+ outputs: [],
2018
+ stateMutability: 'nonpayable',
2019
+ type: 'function',
2020
+ },
2021
+ {
2022
+ inputs: [{ internalType: 'address', name: 'bridgeAdmin', type: 'address' }],
2023
+ name: 'initializeV3',
2024
+ outputs: [],
2025
+ stateMutability: 'nonpayable',
2026
+ type: 'function',
2027
+ },
2028
+ {
2029
+ inputs: [
2030
+ { internalType: 'uint256', name: '_withdrawalId', type: 'uint256' },
2031
+ ],
2032
+ name: 'mainchainWithdrew',
2033
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2034
+ stateMutability: 'view',
2035
+ type: 'function',
2036
+ },
2037
+ {
2038
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2039
+ name: 'mainchainWithdrewVote',
2040
+ outputs: [
2041
+ {
2042
+ internalType: 'enum VoteStatusConsumer.VoteStatus',
2043
+ name: 'status',
2044
+ type: 'uint8',
2045
+ },
2046
+ { internalType: 'bytes32', name: 'finalHash', type: 'bytes32' },
2047
+ { internalType: 'uint256', name: 'expiredAt', type: 'uint256' },
2048
+ { internalType: 'uint256', name: 'createdAt', type: 'uint256' },
2049
+ ],
2050
+ stateMutability: 'view',
2051
+ type: 'function',
2052
+ },
2053
+ {
2054
+ inputs: [
2055
+ { internalType: 'uint256', name: '_withdrawalId', type: 'uint256' },
2056
+ { internalType: 'address', name: '_voter', type: 'address' },
2057
+ ],
2058
+ name: 'mainchainWithdrewVoted',
2059
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2060
+ stateMutability: 'view',
2061
+ type: 'function',
2062
+ },
2063
+ {
2064
+ inputs: [
2065
+ {
2066
+ internalType: 'address[]',
2067
+ name: '_roninTokens',
2068
+ type: 'address[]',
2069
+ },
2070
+ {
2071
+ internalType: 'address[]',
2072
+ name: '_mainchainTokens',
2073
+ type: 'address[]',
2074
+ },
2075
+ { internalType: 'uint256[]', name: '_chainIds', type: 'uint256[]' },
2076
+ {
2077
+ internalType: 'enum Token.Standard[]',
2078
+ name: '_standards',
2079
+ type: 'uint8[]',
2080
+ },
2081
+ ],
2082
+ name: 'mapTokens',
2083
+ outputs: [],
2084
+ stateMutability: 'nonpayable',
2085
+ type: 'function',
2086
+ },
2087
+ {
2088
+ inputs: [{ internalType: 'address', name: '', type: 'address' }],
2089
+ name: 'minimumThreshold',
2090
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2091
+ stateMutability: 'view',
2092
+ type: 'function',
2093
+ },
2094
+ {
2095
+ inputs: [],
2096
+ name: 'minimumVoteWeight',
2097
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2098
+ stateMutability: 'view',
2099
+ type: 'function',
2100
+ },
2101
+ {
2102
+ inputs: [],
2103
+ name: 'nonce',
2104
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2105
+ stateMutability: 'view',
2106
+ type: 'function',
2107
+ },
2108
+ {
2109
+ inputs: [],
2110
+ name: 'pause',
2111
+ outputs: [],
2112
+ stateMutability: 'nonpayable',
2113
+ type: 'function',
2114
+ },
2115
+ {
2116
+ inputs: [],
2117
+ name: 'paused',
2118
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2119
+ stateMutability: 'view',
2120
+ type: 'function',
2121
+ },
2122
+ {
2123
+ inputs: [
2124
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
2125
+ { internalType: 'address', name: 'account', type: 'address' },
2126
+ ],
2127
+ name: 'renounceRole',
2128
+ outputs: [],
2129
+ stateMutability: 'nonpayable',
2130
+ type: 'function',
2131
+ },
2132
+ {
2133
+ inputs: [
2134
+ {
2135
+ components: [
2136
+ {
2137
+ internalType: 'address',
2138
+ name: 'recipientAddr',
2139
+ type: 'address',
2140
+ },
2141
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
2142
+ {
2143
+ components: [
2144
+ {
2145
+ internalType: 'enum Token.Standard',
2146
+ name: 'erc',
2147
+ type: 'uint8',
2148
+ },
2149
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
2150
+ {
2151
+ internalType: 'uint256',
2152
+ name: 'quantity',
2153
+ type: 'uint256',
2154
+ },
2155
+ ],
2156
+ internalType: 'struct Token.Info',
2157
+ name: 'info',
2158
+ type: 'tuple',
2159
+ },
2160
+ ],
2161
+ internalType: 'struct Transfer.Request',
2162
+ name: '_request',
2163
+ type: 'tuple',
2164
+ },
2165
+ { internalType: 'uint256', name: '_chainId', type: 'uint256' },
2166
+ ],
2167
+ name: 'requestWithdrawalFor',
2168
+ outputs: [],
2169
+ stateMutability: 'nonpayable',
2170
+ type: 'function',
2171
+ },
2172
+ {
2173
+ inputs: [
2174
+ { internalType: 'uint256', name: '_withdrawalId', type: 'uint256' },
2175
+ ],
2176
+ name: 'requestWithdrawalSignatures',
2177
+ outputs: [],
2178
+ stateMutability: 'nonpayable',
2179
+ type: 'function',
2180
+ },
2181
+ {
2182
+ inputs: [
2183
+ { internalType: 'bytes32', name: 'role', type: 'bytes32' },
2184
+ { internalType: 'address', name: 'account', type: 'address' },
2185
+ ],
2186
+ name: 'revokeRole',
2187
+ outputs: [],
2188
+ stateMutability: 'nonpayable',
2189
+ type: 'function',
2190
+ },
2191
+ {
2192
+ inputs: [
2193
+ {
2194
+ internalType: 'enum ContractType',
2195
+ name: 'contractType',
2196
+ type: 'uint8',
2197
+ },
2198
+ { internalType: 'address', name: 'addr', type: 'address' },
2199
+ ],
2200
+ name: 'setContract',
2201
+ outputs: [],
2202
+ stateMutability: 'nonpayable',
2203
+ type: 'function',
2204
+ },
2205
+ {
2206
+ inputs: [{ internalType: 'address', name: '_addr', type: 'address' }],
2207
+ name: 'setEmergencyPauser',
2208
+ outputs: [],
2209
+ stateMutability: 'nonpayable',
2210
+ type: 'function',
2211
+ },
2212
+ {
2213
+ inputs: [
2214
+ { internalType: 'address[]', name: '_tokens', type: 'address[]' },
2215
+ {
2216
+ internalType: 'uint256[]',
2217
+ name: '_thresholds',
2218
+ type: 'uint256[]',
2219
+ },
2220
+ ],
2221
+ name: 'setMinimumThresholds',
2222
+ outputs: [],
2223
+ stateMutability: 'nonpayable',
2224
+ type: 'function',
2225
+ },
2226
+ {
2227
+ inputs: [
2228
+ { internalType: 'uint256', name: '_numerator', type: 'uint256' },
2229
+ { internalType: 'uint256', name: '_denominator', type: 'uint256' },
2230
+ ],
2231
+ name: 'setThreshold',
2232
+ outputs: [
2233
+ { internalType: 'uint256', name: '', type: 'uint256' },
2234
+ { internalType: 'uint256', name: '', type: 'uint256' },
2235
+ ],
2236
+ stateMutability: 'nonpayable',
2237
+ type: 'function',
2238
+ },
2239
+ {
2240
+ inputs: [
2241
+ {
2242
+ internalType: 'uint256',
2243
+ name: '_trustedNumerator',
2244
+ type: 'uint256',
2245
+ },
2246
+ {
2247
+ internalType: 'uint256',
2248
+ name: '_trustedDenominator',
2249
+ type: 'uint256',
2250
+ },
2251
+ ],
2252
+ name: 'setTrustedThreshold',
2253
+ outputs: [
2254
+ { internalType: 'uint256', name: '', type: 'uint256' },
2255
+ { internalType: 'uint256', name: '', type: 'uint256' },
2256
+ ],
2257
+ stateMutability: 'nonpayable',
2258
+ type: 'function',
2259
+ },
2260
+ {
2261
+ inputs: [{ internalType: 'bytes4', name: 'interfaceId', type: 'bytes4' }],
2262
+ name: 'supportsInterface',
2263
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2264
+ stateMutability: 'view',
2265
+ type: 'function',
2266
+ },
2267
+ {
2268
+ inputs: [
2269
+ {
2270
+ internalType: 'uint256[]',
2271
+ name: '_withdrawalIds',
2272
+ type: 'uint256[]',
2273
+ },
2274
+ ],
2275
+ name: 'tryBulkAcknowledgeMainchainWithdrew',
2276
+ outputs: [
2277
+ {
2278
+ internalType: 'bool[]',
2279
+ name: '_executedReceipts',
2280
+ type: 'bool[]',
2281
+ },
2282
+ ],
2283
+ stateMutability: 'nonpayable',
2284
+ type: 'function',
2285
+ },
2286
+ {
2287
+ inputs: [
2288
+ {
2289
+ components: [
2290
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
2291
+ {
2292
+ internalType: 'enum Transfer.Kind',
2293
+ name: 'kind',
2294
+ type: 'uint8',
2295
+ },
2296
+ {
2297
+ components: [
2298
+ { internalType: 'address', name: 'addr', type: 'address' },
2299
+ {
2300
+ internalType: 'address',
2301
+ name: 'tokenAddr',
2302
+ type: 'address',
2303
+ },
2304
+ {
2305
+ internalType: 'uint256',
2306
+ name: 'chainId',
2307
+ type: 'uint256',
2308
+ },
2309
+ ],
2310
+ internalType: 'struct Token.Owner',
2311
+ name: 'mainchain',
2312
+ type: 'tuple',
2313
+ },
2314
+ {
2315
+ components: [
2316
+ { internalType: 'address', name: 'addr', type: 'address' },
2317
+ {
2318
+ internalType: 'address',
2319
+ name: 'tokenAddr',
2320
+ type: 'address',
2321
+ },
2322
+ {
2323
+ internalType: 'uint256',
2324
+ name: 'chainId',
2325
+ type: 'uint256',
2326
+ },
2327
+ ],
2328
+ internalType: 'struct Token.Owner',
2329
+ name: 'ronin',
2330
+ type: 'tuple',
2331
+ },
2332
+ {
2333
+ components: [
2334
+ {
2335
+ internalType: 'enum Token.Standard',
2336
+ name: 'erc',
2337
+ type: 'uint8',
2338
+ },
2339
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
2340
+ {
2341
+ internalType: 'uint256',
2342
+ name: 'quantity',
2343
+ type: 'uint256',
2344
+ },
2345
+ ],
2346
+ internalType: 'struct Token.Info',
2347
+ name: 'info',
2348
+ type: 'tuple',
2349
+ },
2350
+ ],
2351
+ internalType: 'struct Transfer.Receipt[]',
2352
+ name: '_receipts',
2353
+ type: 'tuple[]',
2354
+ },
2355
+ ],
2356
+ name: 'tryBulkDepositFor',
2357
+ outputs: [
2358
+ {
2359
+ internalType: 'bool[]',
2360
+ name: '_executedReceipts',
2361
+ type: 'bool[]',
2362
+ },
2363
+ ],
2364
+ stateMutability: 'nonpayable',
2365
+ type: 'function',
2366
+ },
2367
+ {
2368
+ inputs: [],
2369
+ name: 'unpause',
2370
+ outputs: [],
2371
+ stateMutability: 'nonpayable',
2372
+ type: 'function',
2373
+ },
2374
+ {
2375
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2376
+ name: 'withdrawal',
2377
+ outputs: [
2378
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
2379
+ { internalType: 'enum Transfer.Kind', name: 'kind', type: 'uint8' },
2380
+ {
2381
+ components: [
2382
+ { internalType: 'address', name: 'addr', type: 'address' },
2383
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
2384
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
2385
+ ],
2386
+ internalType: 'struct Token.Owner',
2387
+ name: 'mainchain',
2388
+ type: 'tuple',
2389
+ },
2390
+ {
2391
+ components: [
2392
+ { internalType: 'address', name: 'addr', type: 'address' },
2393
+ { internalType: 'address', name: 'tokenAddr', type: 'address' },
2394
+ { internalType: 'uint256', name: 'chainId', type: 'uint256' },
2395
+ ],
2396
+ internalType: 'struct Token.Owner',
2397
+ name: 'ronin',
2398
+ type: 'tuple',
2399
+ },
2400
+ {
2401
+ components: [
2402
+ {
2403
+ internalType: 'enum Token.Standard',
2404
+ name: 'erc',
2405
+ type: 'uint8',
2406
+ },
2407
+ { internalType: 'uint256', name: 'id', type: 'uint256' },
2408
+ { internalType: 'uint256', name: 'quantity', type: 'uint256' },
2409
+ ],
2410
+ internalType: 'struct Token.Info',
2411
+ name: 'info',
2412
+ type: 'tuple',
2413
+ },
2414
+ ],
2415
+ stateMutability: 'view',
2416
+ type: 'function',
2417
+ },
2418
+ {
2419
+ inputs: [],
2420
+ name: 'withdrawalCount',
2421
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2422
+ stateMutability: 'view',
2423
+ type: 'function',
2424
+ },
2425
+ {
2426
+ inputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2427
+ name: 'withdrawalStatVote',
2428
+ outputs: [
2429
+ {
2430
+ internalType: 'enum VoteStatusConsumer.VoteStatus',
2431
+ name: 'status',
2432
+ type: 'uint8',
2433
+ },
2434
+ { internalType: 'bytes32', name: 'finalHash', type: 'bytes32' },
2435
+ { internalType: 'uint256', name: 'expiredAt', type: 'uint256' },
2436
+ { internalType: 'uint256', name: 'createdAt', type: 'uint256' },
2437
+ ],
2438
+ stateMutability: 'view',
2439
+ type: 'function',
2440
+ },
2441
+ { stateMutability: 'payable', type: 'receive' },
2442
+ ] as const
2443
+
2444
+ export const depositedEvent = getAbiItem({
2445
+ abi: roninbridgeGatewayV3Abi,
2446
+ name: 'Deposited',
2447
+ })
2448
+
2449
+ export const stargateBridgeAbi = [
2450
+ {
2451
+ inputs: [
2452
+ {
2453
+ internalType: 'address',
2454
+ name: '_layerZeroEndpoint',
2455
+ type: 'address',
2456
+ },
2457
+ { internalType: 'address', name: '_router', type: 'address' },
2458
+ ],
2459
+ stateMutability: 'nonpayable',
2460
+ type: 'constructor',
2461
+ },
2462
+ {
2463
+ anonymous: false,
2464
+ inputs: [
2465
+ {
2466
+ indexed: true,
2467
+ internalType: 'address',
2468
+ name: 'previousOwner',
2469
+ type: 'address',
2470
+ },
2471
+ {
2472
+ indexed: true,
2473
+ internalType: 'address',
2474
+ name: 'newOwner',
2475
+ type: 'address',
2476
+ },
2477
+ ],
2478
+ name: 'OwnershipTransferred',
2479
+ type: 'event',
2480
+ },
2481
+ {
2482
+ anonymous: false,
2483
+ inputs: [
2484
+ {
2485
+ indexed: false,
2486
+ internalType: 'uint8',
2487
+ name: 'msgType',
2488
+ type: 'uint8',
2489
+ },
2490
+ {
2491
+ indexed: false,
2492
+ internalType: 'uint64',
2493
+ name: 'nonce',
2494
+ type: 'uint64',
2495
+ },
2496
+ ],
2497
+ name: 'SendMsg',
2498
+ type: 'event',
2499
+ },
2500
+ {
2501
+ inputs: [
2502
+ { internalType: 'address', name: 'token', type: 'address' },
2503
+ { internalType: 'address', name: 'spender', type: 'address' },
2504
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2505
+ ],
2506
+ name: 'approveTokenSpender',
2507
+ outputs: [],
2508
+ stateMutability: 'nonpayable',
2509
+ type: 'function',
2510
+ },
2511
+ {
2512
+ inputs: [{ internalType: 'uint16', name: '', type: 'uint16' }],
2513
+ name: 'bridgeLookup',
2514
+ outputs: [{ internalType: 'bytes', name: '', type: 'bytes' }],
2515
+ stateMutability: 'view',
2516
+ type: 'function',
2517
+ },
2518
+ {
2519
+ inputs: [
2520
+ { internalType: 'uint16', name: '_srcChainId', type: 'uint16' },
2521
+ { internalType: 'bytes', name: '_srcAddress', type: 'bytes' },
2522
+ ],
2523
+ name: 'forceResumeReceive',
2524
+ outputs: [],
2525
+ stateMutability: 'nonpayable',
2526
+ type: 'function',
2527
+ },
2528
+ {
2529
+ inputs: [
2530
+ { internalType: 'uint16', name: '', type: 'uint16' },
2531
+ { internalType: 'uint8', name: '', type: 'uint8' },
2532
+ ],
2533
+ name: 'gasLookup',
2534
+ outputs: [{ internalType: 'uint256', name: '', type: 'uint256' }],
2535
+ stateMutability: 'view',
2536
+ type: 'function',
2537
+ },
2538
+ {
2539
+ inputs: [],
2540
+ name: 'layerZeroEndpoint',
2541
+ outputs: [
2542
+ {
2543
+ internalType: 'contract ILayerZeroEndpoint',
2544
+ name: '',
2545
+ type: 'address',
2546
+ },
2547
+ ],
2548
+ stateMutability: 'view',
2549
+ type: 'function',
2550
+ },
2551
+ {
2552
+ inputs: [
2553
+ { internalType: 'uint16', name: '_srcChainId', type: 'uint16' },
2554
+ { internalType: 'bytes', name: '_srcAddress', type: 'bytes' },
2555
+ { internalType: 'uint64', name: '_nonce', type: 'uint64' },
2556
+ { internalType: 'bytes', name: '_payload', type: 'bytes' },
2557
+ ],
2558
+ name: 'lzReceive',
2559
+ outputs: [],
2560
+ stateMutability: 'nonpayable',
2561
+ type: 'function',
2562
+ },
2563
+ {
2564
+ inputs: [],
2565
+ name: 'owner',
2566
+ outputs: [{ internalType: 'address', name: '', type: 'address' }],
2567
+ stateMutability: 'view',
2568
+ type: 'function',
2569
+ },
2570
+ {
2571
+ inputs: [
2572
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2573
+ { internalType: 'uint8', name: '_functionType', type: 'uint8' },
2574
+ { internalType: 'bytes', name: '_toAddress', type: 'bytes' },
2575
+ {
2576
+ internalType: 'bytes',
2577
+ name: '_transferAndCallPayload',
2578
+ type: 'bytes',
2579
+ },
2580
+ {
2581
+ components: [
2582
+ {
2583
+ internalType: 'uint256',
2584
+ name: 'dstGasForCall',
2585
+ type: 'uint256',
2586
+ },
2587
+ {
2588
+ internalType: 'uint256',
2589
+ name: 'dstNativeAmount',
2590
+ type: 'uint256',
2591
+ },
2592
+ { internalType: 'bytes', name: 'dstNativeAddr', type: 'bytes' },
2593
+ ],
2594
+ internalType: 'struct IStargateRouter.lzTxObj',
2595
+ name: '_lzTxParams',
2596
+ type: 'tuple',
2597
+ },
2598
+ ],
2599
+ name: 'quoteLayerZeroFee',
2600
+ outputs: [
2601
+ { internalType: 'uint256', name: '', type: 'uint256' },
2602
+ { internalType: 'uint256', name: '', type: 'uint256' },
2603
+ ],
2604
+ stateMutability: 'view',
2605
+ type: 'function',
2606
+ },
2607
+ {
2608
+ inputs: [
2609
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2610
+ { internalType: 'uint256', name: '_srcPoolId', type: 'uint256' },
2611
+ { internalType: 'uint256', name: '_dstPoolId', type: 'uint256' },
2612
+ {
2613
+ internalType: 'address payable',
2614
+ name: '_refundAddress',
2615
+ type: 'address',
2616
+ },
2617
+ {
2618
+ components: [
2619
+ { internalType: 'uint256', name: 'credits', type: 'uint256' },
2620
+ {
2621
+ internalType: 'uint256',
2622
+ name: 'idealBalance',
2623
+ type: 'uint256',
2624
+ },
2625
+ ],
2626
+ internalType: 'struct Pool.CreditObj',
2627
+ name: '_c',
2628
+ type: 'tuple',
2629
+ },
2630
+ { internalType: 'uint256', name: '_amountSD', type: 'uint256' },
2631
+ { internalType: 'bytes', name: '_to', type: 'bytes' },
2632
+ {
2633
+ components: [
2634
+ {
2635
+ internalType: 'uint256',
2636
+ name: 'dstGasForCall',
2637
+ type: 'uint256',
2638
+ },
2639
+ {
2640
+ internalType: 'uint256',
2641
+ name: 'dstNativeAmount',
2642
+ type: 'uint256',
2643
+ },
2644
+ { internalType: 'bytes', name: 'dstNativeAddr', type: 'bytes' },
2645
+ ],
2646
+ internalType: 'struct IStargateRouter.lzTxObj',
2647
+ name: '_lzTxParams',
2648
+ type: 'tuple',
2649
+ },
2650
+ ],
2651
+ name: 'redeemLocal',
2652
+ outputs: [],
2653
+ stateMutability: 'payable',
2654
+ type: 'function',
2655
+ },
2656
+ {
2657
+ inputs: [
2658
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2659
+ {
2660
+ internalType: 'address payable',
2661
+ name: '_refundAddress',
2662
+ type: 'address',
2663
+ },
2664
+ {
2665
+ components: [
2666
+ { internalType: 'uint256', name: 'credits', type: 'uint256' },
2667
+ {
2668
+ internalType: 'uint256',
2669
+ name: 'idealBalance',
2670
+ type: 'uint256',
2671
+ },
2672
+ ],
2673
+ internalType: 'struct Pool.CreditObj',
2674
+ name: '_c',
2675
+ type: 'tuple',
2676
+ },
2677
+ {
2678
+ components: [
2679
+ {
2680
+ internalType: 'uint256',
2681
+ name: 'dstGasForCall',
2682
+ type: 'uint256',
2683
+ },
2684
+ {
2685
+ internalType: 'uint256',
2686
+ name: 'dstNativeAmount',
2687
+ type: 'uint256',
2688
+ },
2689
+ { internalType: 'bytes', name: 'dstNativeAddr', type: 'bytes' },
2690
+ ],
2691
+ internalType: 'struct IStargateRouter.lzTxObj',
2692
+ name: '_lzTxParams',
2693
+ type: 'tuple',
2694
+ },
2695
+ { internalType: 'bytes', name: '_payload', type: 'bytes' },
2696
+ ],
2697
+ name: 'redeemLocalCallback',
2698
+ outputs: [],
2699
+ stateMutability: 'payable',
2700
+ type: 'function',
2701
+ },
2702
+ {
2703
+ inputs: [],
2704
+ name: 'renounceOwnership',
2705
+ outputs: [],
2706
+ stateMutability: 'nonpayable',
2707
+ type: 'function',
2708
+ },
2709
+ {
2710
+ inputs: [],
2711
+ name: 'router',
2712
+ outputs: [{ internalType: 'contract Router', name: '', type: 'address' }],
2713
+ stateMutability: 'view',
2714
+ type: 'function',
2715
+ },
2716
+ {
2717
+ inputs: [
2718
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2719
+ { internalType: 'uint256', name: '_srcPoolId', type: 'uint256' },
2720
+ { internalType: 'uint256', name: '_dstPoolId', type: 'uint256' },
2721
+ {
2722
+ internalType: 'address payable',
2723
+ name: '_refundAddress',
2724
+ type: 'address',
2725
+ },
2726
+ {
2727
+ components: [
2728
+ { internalType: 'uint256', name: 'credits', type: 'uint256' },
2729
+ {
2730
+ internalType: 'uint256',
2731
+ name: 'idealBalance',
2732
+ type: 'uint256',
2733
+ },
2734
+ ],
2735
+ internalType: 'struct Pool.CreditObj',
2736
+ name: '_c',
2737
+ type: 'tuple',
2738
+ },
2739
+ ],
2740
+ name: 'sendCredits',
2741
+ outputs: [],
2742
+ stateMutability: 'payable',
2743
+ type: 'function',
2744
+ },
2745
+ {
2746
+ inputs: [
2747
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2748
+ { internalType: 'bytes', name: '_bridgeAddress', type: 'bytes' },
2749
+ ],
2750
+ name: 'setBridge',
2751
+ outputs: [],
2752
+ stateMutability: 'nonpayable',
2753
+ type: 'function',
2754
+ },
2755
+ {
2756
+ inputs: [
2757
+ { internalType: 'uint16', name: '_version', type: 'uint16' },
2758
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2759
+ { internalType: 'uint256', name: '_configType', type: 'uint256' },
2760
+ { internalType: 'bytes', name: '_config', type: 'bytes' },
2761
+ ],
2762
+ name: 'setConfig',
2763
+ outputs: [],
2764
+ stateMutability: 'nonpayable',
2765
+ type: 'function',
2766
+ },
2767
+ {
2768
+ inputs: [
2769
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2770
+ { internalType: 'uint8', name: '_functionType', type: 'uint8' },
2771
+ { internalType: 'uint256', name: '_gasAmount', type: 'uint256' },
2772
+ ],
2773
+ name: 'setGasAmount',
2774
+ outputs: [],
2775
+ stateMutability: 'nonpayable',
2776
+ type: 'function',
2777
+ },
2778
+ {
2779
+ inputs: [{ internalType: 'uint16', name: 'version', type: 'uint16' }],
2780
+ name: 'setReceiveVersion',
2781
+ outputs: [],
2782
+ stateMutability: 'nonpayable',
2783
+ type: 'function',
2784
+ },
2785
+ {
2786
+ inputs: [{ internalType: 'uint16', name: 'version', type: 'uint16' }],
2787
+ name: 'setSendVersion',
2788
+ outputs: [],
2789
+ stateMutability: 'nonpayable',
2790
+ type: 'function',
2791
+ },
2792
+ {
2793
+ inputs: [{ internalType: 'bool', name: 'enable', type: 'bool' }],
2794
+ name: 'setUseLayerZeroToken',
2795
+ outputs: [],
2796
+ stateMutability: 'nonpayable',
2797
+ type: 'function',
2798
+ },
2799
+ {
2800
+ inputs: [
2801
+ { internalType: 'uint16', name: '_chainId', type: 'uint16' },
2802
+ { internalType: 'uint256', name: '_srcPoolId', type: 'uint256' },
2803
+ { internalType: 'uint256', name: '_dstPoolId', type: 'uint256' },
2804
+ {
2805
+ internalType: 'address payable',
2806
+ name: '_refundAddress',
2807
+ type: 'address',
2808
+ },
2809
+ {
2810
+ components: [
2811
+ { internalType: 'uint256', name: 'credits', type: 'uint256' },
2812
+ {
2813
+ internalType: 'uint256',
2814
+ name: 'idealBalance',
2815
+ type: 'uint256',
2816
+ },
2817
+ ],
2818
+ internalType: 'struct Pool.CreditObj',
2819
+ name: '_c',
2820
+ type: 'tuple',
2821
+ },
2822
+ {
2823
+ components: [
2824
+ { internalType: 'uint256', name: 'amount', type: 'uint256' },
2825
+ { internalType: 'uint256', name: 'eqFee', type: 'uint256' },
2826
+ { internalType: 'uint256', name: 'eqReward', type: 'uint256' },
2827
+ { internalType: 'uint256', name: 'lpFee', type: 'uint256' },
2828
+ {
2829
+ internalType: 'uint256',
2830
+ name: 'protocolFee',
2831
+ type: 'uint256',
2832
+ },
2833
+ { internalType: 'uint256', name: 'lkbRemove', type: 'uint256' },
2834
+ ],
2835
+ internalType: 'struct Pool.SwapObj',
2836
+ name: '_s',
2837
+ type: 'tuple',
2838
+ },
2839
+ {
2840
+ components: [
2841
+ {
2842
+ internalType: 'uint256',
2843
+ name: 'dstGasForCall',
2844
+ type: 'uint256',
2845
+ },
2846
+ {
2847
+ internalType: 'uint256',
2848
+ name: 'dstNativeAmount',
2849
+ type: 'uint256',
2850
+ },
2851
+ { internalType: 'bytes', name: 'dstNativeAddr', type: 'bytes' },
2852
+ ],
2853
+ internalType: 'struct IStargateRouter.lzTxObj',
2854
+ name: '_lzTxParams',
2855
+ type: 'tuple',
2856
+ },
2857
+ { internalType: 'bytes', name: '_to', type: 'bytes' },
2858
+ { internalType: 'bytes', name: '_payload', type: 'bytes' },
2859
+ ],
2860
+ name: 'swap',
2861
+ outputs: [],
2862
+ stateMutability: 'payable',
2863
+ type: 'function',
2864
+ },
2865
+ {
2866
+ inputs: [{ internalType: 'address', name: 'newOwner', type: 'address' }],
2867
+ name: 'transferOwnership',
2868
+ outputs: [],
2869
+ stateMutability: 'nonpayable',
2870
+ type: 'function',
2871
+ },
2872
+ {
2873
+ inputs: [],
2874
+ name: 'useLayerZeroToken',
2875
+ outputs: [{ internalType: 'bool', name: '', type: 'bool' }],
2876
+ stateMutability: 'view',
2877
+ type: 'function',
2878
+ },
2879
+ ] as const
2880
+
2881
+ export const sendMsgEvent = getAbiItem({
2882
+ abi: stargateBridgeAbi,
2883
+ name: 'SendMsg',
2884
+ })