@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 @@
1
+ {"version":3,"file":"orderFulfilled.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/seaport/orderFulfilled.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,wBAAwB,QAC9B,UAAU,KACd,iBAAiB,GAAG,SAetB,CAAA;AAKD,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA+FjC,CAAA;AAEF,KAAK,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAE5E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IAClE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;IAClC,kEAAkE;IAClE,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAA;CACvC,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CryptoCurrencyPrice } from '@0xtorch/core';
2
+ import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
3
+ export declare const analyzeAsSpam: <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
4
+ //# sourceMappingURL=analyze.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/spam/analyze.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAGpB,MAAM,eAAe,CAAA;AAMtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEpE,eAAO,MAAM,aAAa,uKAuBzB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { analyzeAsSpam } from './analyze';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/spam/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CryptoCurrencyPrice } from '@0xtorch/core';
2
+ import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
3
+ export declare const analyzeSwap: <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
4
+ //# sourceMappingURL=analyze.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/analyze.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,mBAAmB,EAGpB,MAAM,eAAe,CAAA;AAatB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAYpE,eAAO,MAAM,WAAW,uKAiLvB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { analyzeSwap } from './analyze';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,108 @@
1
+ import { z } from 'zod';
2
+ import type { DecodedLog } from '../../types';
3
+ export declare const parseToTraderJoeLBPairSwap: (log: DecodedLog) => TraderJoeLBPairSwapLog | undefined;
4
+ declare const traderJoeLBPairSwapArgumentsSchema: z.ZodTuple<[z.ZodObject<{
5
+ indexed: z.ZodLiteral<true>;
6
+ type: z.ZodLiteral<"address">;
7
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: `0x${Lowercase<string>}`;
10
+ type: "address";
11
+ indexed: true;
12
+ }, {
13
+ value: string;
14
+ type: "address";
15
+ indexed: true;
16
+ }>, z.ZodObject<{
17
+ indexed: z.ZodLiteral<true>;
18
+ type: z.ZodLiteral<"address">;
19
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: `0x${Lowercase<string>}`;
22
+ type: "address";
23
+ indexed: true;
24
+ }, {
25
+ value: string;
26
+ type: "address";
27
+ indexed: true;
28
+ }>, z.ZodObject<{
29
+ indexed: z.ZodLiteral<true>;
30
+ type: z.ZodLiteral<"uint256">;
31
+ value: z.ZodBigInt;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: bigint;
34
+ type: "uint256";
35
+ indexed: true;
36
+ }, {
37
+ value: bigint;
38
+ type: "uint256";
39
+ indexed: true;
40
+ }>, z.ZodObject<{
41
+ indexed: z.ZodLiteral<false>;
42
+ type: z.ZodLiteral<"bool">;
43
+ value: z.ZodBoolean;
44
+ }, "strip", z.ZodTypeAny, {
45
+ value: boolean;
46
+ type: "bool";
47
+ indexed: false;
48
+ }, {
49
+ value: boolean;
50
+ type: "bool";
51
+ indexed: false;
52
+ }>, z.ZodObject<{
53
+ indexed: z.ZodLiteral<false>;
54
+ type: z.ZodLiteral<"uint256">;
55
+ value: z.ZodBigInt;
56
+ }, "strip", z.ZodTypeAny, {
57
+ value: bigint;
58
+ type: "uint256";
59
+ indexed: false;
60
+ }, {
61
+ value: bigint;
62
+ type: "uint256";
63
+ indexed: false;
64
+ }>, z.ZodObject<{
65
+ indexed: z.ZodLiteral<false>;
66
+ type: z.ZodLiteral<"uint256">;
67
+ value: z.ZodBigInt;
68
+ }, "strip", z.ZodTypeAny, {
69
+ value: bigint;
70
+ type: "uint256";
71
+ indexed: false;
72
+ }, {
73
+ value: bigint;
74
+ type: "uint256";
75
+ indexed: false;
76
+ }>, z.ZodObject<{
77
+ indexed: z.ZodLiteral<false>;
78
+ type: z.ZodLiteral<"uint256">;
79
+ value: z.ZodBigInt;
80
+ }, "strip", z.ZodTypeAny, {
81
+ value: bigint;
82
+ type: "uint256";
83
+ indexed: false;
84
+ }, {
85
+ value: bigint;
86
+ type: "uint256";
87
+ indexed: false;
88
+ }>, z.ZodObject<{
89
+ indexed: z.ZodLiteral<false>;
90
+ type: z.ZodLiteral<"uint256">;
91
+ value: z.ZodBigInt;
92
+ }, "strip", z.ZodTypeAny, {
93
+ value: bigint;
94
+ type: "uint256";
95
+ indexed: false;
96
+ }, {
97
+ value: bigint;
98
+ type: "uint256";
99
+ indexed: false;
100
+ }>], null>;
101
+ type TraderJoeLBPairSwapArguments = z.infer<typeof traderJoeLBPairSwapArgumentsSchema>;
102
+ export type TraderJoeLBPairSwapLog = Omit<DecodedLog, 'type' | 'args'> & {
103
+ readonly type: 'TraderJoeLBPairSwapLog';
104
+ /** [sender, recipient, id, swapForY, amountIn, amountOut, volatilityAccumulated, fees] */
105
+ readonly args: TraderJoeLBPairSwapArguments;
106
+ };
107
+ export {};
108
+ //# sourceMappingURL=traderJoeLBPairSwap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"traderJoeLBPairSwap.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/traderJoeLBPairSwap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,0BAA0B,QAChC,UAAU,KACd,sBAAsB,GAAG,SAe3B,CAAA;AAKD,QAAA,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAuDtC,CAAA;AACF,KAAK,4BAA4B,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,kCAAkC,CAC1C,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACvE,QAAQ,CAAC,IAAI,EAAE,wBAAwB,CAAA;IACvC,0FAA0F;IAC1F,QAAQ,CAAC,IAAI,EAAE,4BAA4B,CAAA;CAC5C,CAAA"}
@@ -0,0 +1,84 @@
1
+ import { z } from 'zod';
2
+ import type { DecodedLog } from '../../types';
3
+ export declare const parseToUniv2SwapLog: (log: DecodedLog) => UniV2PairSwapLog | undefined;
4
+ declare const univ2PairSwapArgumentsSchema: z.ZodTuple<[z.ZodObject<{
5
+ indexed: z.ZodLiteral<true>;
6
+ type: z.ZodLiteral<"address">;
7
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: `0x${Lowercase<string>}`;
10
+ type: "address";
11
+ indexed: true;
12
+ }, {
13
+ value: string;
14
+ type: "address";
15
+ indexed: true;
16
+ }>, z.ZodObject<{
17
+ indexed: z.ZodLiteral<false>;
18
+ type: z.ZodLiteral<"uint256">;
19
+ value: z.ZodBigInt;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: bigint;
22
+ type: "uint256";
23
+ indexed: false;
24
+ }, {
25
+ value: bigint;
26
+ type: "uint256";
27
+ indexed: false;
28
+ }>, z.ZodObject<{
29
+ indexed: z.ZodLiteral<false>;
30
+ type: z.ZodLiteral<"uint256">;
31
+ value: z.ZodBigInt;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: bigint;
34
+ type: "uint256";
35
+ indexed: false;
36
+ }, {
37
+ value: bigint;
38
+ type: "uint256";
39
+ indexed: false;
40
+ }>, z.ZodObject<{
41
+ indexed: z.ZodLiteral<false>;
42
+ type: z.ZodLiteral<"uint256">;
43
+ value: z.ZodBigInt;
44
+ }, "strip", z.ZodTypeAny, {
45
+ value: bigint;
46
+ type: "uint256";
47
+ indexed: false;
48
+ }, {
49
+ value: bigint;
50
+ type: "uint256";
51
+ indexed: false;
52
+ }>, z.ZodObject<{
53
+ indexed: z.ZodLiteral<false>;
54
+ type: z.ZodLiteral<"uint256">;
55
+ value: z.ZodBigInt;
56
+ }, "strip", z.ZodTypeAny, {
57
+ value: bigint;
58
+ type: "uint256";
59
+ indexed: false;
60
+ }, {
61
+ value: bigint;
62
+ type: "uint256";
63
+ indexed: false;
64
+ }>, z.ZodObject<{
65
+ indexed: z.ZodLiteral<true>;
66
+ type: z.ZodLiteral<"address">;
67
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ value: `0x${Lowercase<string>}`;
70
+ type: "address";
71
+ indexed: true;
72
+ }, {
73
+ value: string;
74
+ type: "address";
75
+ indexed: true;
76
+ }>], null>;
77
+ type Univ2PairSwapArguments = z.infer<typeof univ2PairSwapArgumentsSchema>;
78
+ export type UniV2PairSwapLog = Omit<DecodedLog, 'type' | 'args'> & {
79
+ readonly type: 'UniV2PairSwapLog';
80
+ /** [sender, amount0In, amount1In, amount0Out, amount1Out, to] */
81
+ readonly args: Univ2PairSwapArguments;
82
+ };
83
+ export {};
84
+ //# sourceMappingURL=univ2PairSwap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univ2PairSwap.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/univ2PairSwap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,mBAAmB,QACzB,UAAU,KACd,gBAAgB,GAAG,SAerB,CAAA;AAKD,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UA2ChC,CAAA;AACF,KAAK,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAE1E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACjE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;IACjC,iEAAiE;IACjE,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;CACtC,CAAA"}
@@ -0,0 +1,96 @@
1
+ import { z } from 'zod';
2
+ import type { DecodedLog } from '../../types';
3
+ export declare const parseToUniv3SwapLog: (log: DecodedLog) => UniV3PoolSwapLog | undefined;
4
+ declare const univ3PoolSwapArgumentsSchema: z.ZodTuple<[z.ZodObject<{
5
+ indexed: z.ZodLiteral<true>;
6
+ type: z.ZodLiteral<"address">;
7
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: `0x${Lowercase<string>}`;
10
+ type: "address";
11
+ indexed: true;
12
+ }, {
13
+ value: string;
14
+ type: "address";
15
+ indexed: true;
16
+ }>, z.ZodObject<{
17
+ indexed: z.ZodLiteral<true>;
18
+ type: z.ZodLiteral<"address">;
19
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: `0x${Lowercase<string>}`;
22
+ type: "address";
23
+ indexed: true;
24
+ }, {
25
+ value: string;
26
+ type: "address";
27
+ indexed: true;
28
+ }>, z.ZodObject<{
29
+ indexed: z.ZodLiteral<false>;
30
+ type: z.ZodLiteral<"int256">;
31
+ value: z.ZodBigInt;
32
+ }, "strip", z.ZodTypeAny, {
33
+ value: bigint;
34
+ type: "int256";
35
+ indexed: false;
36
+ }, {
37
+ value: bigint;
38
+ type: "int256";
39
+ indexed: false;
40
+ }>, z.ZodObject<{
41
+ indexed: z.ZodLiteral<false>;
42
+ type: z.ZodLiteral<"int256">;
43
+ value: z.ZodBigInt;
44
+ }, "strip", z.ZodTypeAny, {
45
+ value: bigint;
46
+ type: "int256";
47
+ indexed: false;
48
+ }, {
49
+ value: bigint;
50
+ type: "int256";
51
+ indexed: false;
52
+ }>, z.ZodObject<{
53
+ indexed: z.ZodLiteral<false>;
54
+ type: z.ZodLiteral<"uint160">;
55
+ value: z.ZodBigInt;
56
+ }, "strip", z.ZodTypeAny, {
57
+ value: bigint;
58
+ type: "uint160";
59
+ indexed: false;
60
+ }, {
61
+ value: bigint;
62
+ type: "uint160";
63
+ indexed: false;
64
+ }>, z.ZodObject<{
65
+ indexed: z.ZodLiteral<false>;
66
+ type: z.ZodLiteral<"uint128">;
67
+ value: z.ZodBigInt;
68
+ }, "strip", z.ZodTypeAny, {
69
+ value: bigint;
70
+ type: "uint128";
71
+ indexed: false;
72
+ }, {
73
+ value: bigint;
74
+ type: "uint128";
75
+ indexed: false;
76
+ }>, z.ZodObject<{
77
+ indexed: z.ZodLiteral<false>;
78
+ type: z.ZodLiteral<"int24">;
79
+ value: z.ZodNumber;
80
+ }, "strip", z.ZodTypeAny, {
81
+ value: number;
82
+ type: "int24";
83
+ indexed: false;
84
+ }, {
85
+ value: number;
86
+ type: "int24";
87
+ indexed: false;
88
+ }>], null>;
89
+ type UniV3PoolSwapArguments = z.infer<typeof univ3PoolSwapArgumentsSchema>;
90
+ export type UniV3PoolSwapLog = Omit<DecodedLog, 'type' | 'args'> & {
91
+ readonly type: 'UniV3PoolSwapLog';
92
+ /** [sender, recipient, amount0, amount1, sqrtPriceX96, liquidity, tick] */
93
+ readonly args: UniV3PoolSwapArguments;
94
+ };
95
+ export {};
96
+ //# sourceMappingURL=univ3PoolSwap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"univ3PoolSwap.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/univ3PoolSwap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,mBAAmB,QACzB,UAAU,KACd,gBAAgB,GAAG,SAerB,CAAA;AAKD,QAAA,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;UAiDhC,CAAA;AACF,KAAK,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAA;AAE1E,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACjE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAA;IACjC,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;CACtC,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import type { DecodedLog } from '../../types';
3
+ export declare const parseToWrappedDepositLog: (log: DecodedLog) => WrappedDepositLog | undefined;
4
+ declare const wrappedDepositArgumentsSchema: z.ZodTuple<[z.ZodObject<{
5
+ indexed: z.ZodLiteral<true>;
6
+ type: z.ZodLiteral<"address">;
7
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: `0x${Lowercase<string>}`;
10
+ type: "address";
11
+ indexed: true;
12
+ }, {
13
+ value: string;
14
+ type: "address";
15
+ indexed: true;
16
+ }>, z.ZodObject<{
17
+ indexed: z.ZodLiteral<false>;
18
+ type: z.ZodLiteral<"uint256">;
19
+ value: z.ZodBigInt;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: bigint;
22
+ type: "uint256";
23
+ indexed: false;
24
+ }, {
25
+ value: bigint;
26
+ type: "uint256";
27
+ indexed: false;
28
+ }>], null>;
29
+ type WrappedDepositArguments = z.infer<typeof wrappedDepositArgumentsSchema>;
30
+ export type WrappedDepositLog = Omit<DecodedLog, 'type' | 'args'> & {
31
+ readonly type: 'WrappedDepositLog';
32
+ /** [dst, wad] */
33
+ readonly args: WrappedDepositArguments;
34
+ };
35
+ export {};
36
+ //# sourceMappingURL=wrappedDeposit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrappedDeposit.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/wrappedDeposit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,wBAAwB,QAC9B,UAAU,KACd,iBAAiB,GAAG,SAetB,CAAA;AAKD,QAAA,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;UAgBjC,CAAA;AAEF,KAAK,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAA;AAE5E,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IAClE,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAA;IAClC,iBAAiB;IACjB,QAAQ,CAAC,IAAI,EAAE,uBAAuB,CAAA;CACvC,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ import type { DecodedLog } from '../../types';
3
+ export declare const parseToWrappedWithdrawalLog: (log: DecodedLog) => WrappedWithdrawalLog | undefined;
4
+ declare const wrappedWithdrawalArgumentsSchema: z.ZodTuple<[z.ZodObject<{
5
+ indexed: z.ZodLiteral<true>;
6
+ type: z.ZodLiteral<"address">;
7
+ value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ value: `0x${Lowercase<string>}`;
10
+ type: "address";
11
+ indexed: true;
12
+ }, {
13
+ value: string;
14
+ type: "address";
15
+ indexed: true;
16
+ }>, z.ZodObject<{
17
+ indexed: z.ZodLiteral<false>;
18
+ type: z.ZodLiteral<"uint256">;
19
+ value: z.ZodBigInt;
20
+ }, "strip", z.ZodTypeAny, {
21
+ value: bigint;
22
+ type: "uint256";
23
+ indexed: false;
24
+ }, {
25
+ value: bigint;
26
+ type: "uint256";
27
+ indexed: false;
28
+ }>], null>;
29
+ type WrappedWithdrawalArguments = z.infer<typeof wrappedWithdrawalArgumentsSchema>;
30
+ export type WrappedWithdrawalLog = Omit<DecodedLog, 'type' | 'args'> & {
31
+ readonly type: 'WrappedWithdrawalLog';
32
+ /** [src, wad] */
33
+ readonly args: WrappedWithdrawalArguments;
34
+ };
35
+ export {};
36
+ //# sourceMappingURL=wrappedWithdrawal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrappedWithdrawal.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/swap/wrappedWithdrawal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAG7C,eAAO,MAAM,2BAA2B,QACjC,UAAU,KACd,oBAAoB,GAAG,SAezB,CAAA;AAKD,QAAA,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;UAgBpC,CAAA;AAEF,KAAK,0BAA0B,GAAG,CAAC,CAAC,KAAK,CACvC,OAAO,gCAAgC,CACxC,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC,GAAG;IACrE,QAAQ,CAAC,IAAI,EAAE,sBAAsB,CAAA;IACrC,iBAAiB;IACjB,QAAQ,CAAC,IAAI,EAAE,0BAA0B,CAAA;CAC1C,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { CryptoCurrencyPrice } from '@0xtorch/core';
2
+ import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
3
+ export declare const analyzeTransfer: <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
4
+ //# sourceMappingURL=analyze.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/transfer/analyze.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,eAAe,CAAA;AAM9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAEpE,eAAO,MAAM,eAAe,uKAuB3B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { analyzeTransfer } from './analyze';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/transfer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA"}
@@ -0,0 +1,17 @@
1
+ import type { AccountAction, AccountActionType, ActionType, Config, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
2
+ import type { Chain } from '../chains';
3
+ import type { EvmAccount, LowerHex, TransactionDecoded, TransactionSource } from '../types';
4
+ export type Analyzer<Price extends CryptoCurrencyPrice | undefined> = {
5
+ readonly analyze: Analyze<Price>;
6
+ };
7
+ export type Analyze<Price extends CryptoCurrencyPrice | undefined> = (parameters: AnalyzeParameters<Price>, config?: Config) => Promise<AnalyzeReturnType<Price>>;
8
+ export type AnalyzeParameters<Price extends CryptoCurrencyPrice | undefined> = {
9
+ readonly chain: Chain;
10
+ readonly transaction: TransactionDecoded<Price>;
11
+ readonly accountAddresses: readonly LowerHex[];
12
+ };
13
+ export type AnalyzeReturnType<Price extends CryptoCurrencyPrice | undefined> = {
14
+ readonly actions: readonly NormalAction<ActionType, EvmAccount | undefined, Price>[];
15
+ readonly accountActions: readonly AccountAction<AccountActionType, TransactionSource, EvmAccount | undefined, Price>[];
16
+ };
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/analyzer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,UAAU,EACV,MAAM,EACN,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,UAAU,CAAA;AAEjB,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,mBAAmB,GAAG,SAAS,IAAI;IACpE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,OAAO,CAAC,KAAK,SAAS,mBAAmB,GAAG,SAAS,IAAI,CACnE,UAAU,EAAE,iBAAiB,CAAC,KAAK,CAAC,EACpC,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,CAAA;AAEtC,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,mBAAmB,GAAG,SAAS,IAAI;IAC7E,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,WAAW,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAA;IAC/C,QAAQ,CAAC,gBAAgB,EAAE,SAAS,QAAQ,EAAE,CAAA;CAC/C,CAAA;AAED,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,mBAAmB,GAAG,SAAS,IAAI;IAC7E,QAAQ,CAAC,OAAO,EAAE,SAAS,YAAY,CACrC,UAAU,EACV,UAAU,GAAG,SAAS,EACtB,KAAK,CACN,EAAE,CAAA;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,aAAa,CAC7C,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,GAAG,SAAS,EACtB,KAAK,CACN,EAAE,CAAA;CACJ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { AppDataSource } from './types';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/apps/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { App, Config } from '@0xtorch/core';
2
+ import type { LowerHex } from '../types';
3
+ export type AppDataSource = {
4
+ getApp: (chainId: number, address: LowerHex, config?: Config) => Promise<App | undefined>;
5
+ };
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/apps/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAExC,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,EAAE,CACN,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC,GAAG,GAAG,SAAS,CAAC,CAAA;CAC9B,CAAA"}
@@ -0,0 +1,99 @@
1
+ import type { Client } from '../../clients';
2
+ import type { Explorer } from '../../explorers';
3
+ import type { Chain } from '../types';
4
+ export declare const createArbitrumOneChain: (arbiscanApiKey: string) => Chain;
5
+ type CreateArbitrumOneChainParameters<TClient extends Client, TExplorer extends Explorer> = {
6
+ readonly client: TClient;
7
+ readonly explorer: TExplorer;
8
+ };
9
+ export declare const createArbitrumOneChainCustom: <const TClient extends Client, const TExplorer extends Explorer>({ client, explorer, }: CreateArbitrumOneChainParameters<TClient, TExplorer>) => {
10
+ readonly id: 42161;
11
+ readonly network: "arbitrum-one";
12
+ readonly name: "Arbitrum One";
13
+ readonly nativeToken: {
14
+ readonly name: "Ethereum";
15
+ readonly symbol: "ETH";
16
+ readonly decimals: 18;
17
+ readonly currency: {
18
+ readonly type: "CryptoCurrency";
19
+ readonly id: "ethereum";
20
+ readonly name: "Ethereum";
21
+ readonly symbol: "ETH";
22
+ readonly icon: undefined;
23
+ readonly market: {
24
+ readonly coingeckoId: "ethereum";
25
+ readonly marketCapUsd: undefined;
26
+ };
27
+ readonly updatedAt: number;
28
+ };
29
+ };
30
+ readonly explorer: TExplorer;
31
+ readonly client: TClient;
32
+ readonly blockTime: 250;
33
+ readonly coingeckoId: "arbitrum-one";
34
+ readonly defillamaId: "arbitrum";
35
+ };
36
+ export declare const arbitrumOneHttpRpcs: readonly [{
37
+ readonly url: "https://arbitrum.llamarpc.com";
38
+ readonly isArchive: true;
39
+ readonly getLogsIsUsable: true;
40
+ readonly getLogsMaxBlockRange: 80000n;
41
+ }, {
42
+ readonly url: "https://arb1.arbitrum.io/rpc";
43
+ readonly isArchive: true;
44
+ readonly getLogsIsUsable: true;
45
+ readonly getLogsMaxBlockRange: 160000n;
46
+ }, {
47
+ readonly url: "https://rpc.ankr.com/arbitrum";
48
+ readonly isArchive: true;
49
+ readonly getLogsIsUsable: true;
50
+ readonly getLogsMaxBlockRange: 3000n;
51
+ }, {
52
+ readonly url: "https://1rpc.io/arb";
53
+ readonly isArchive: true;
54
+ readonly getLogsIsUsable: true;
55
+ readonly getLogsMaxBlockRange: 10000n;
56
+ }, {
57
+ readonly url: "https://arb-pokt.nodies.app";
58
+ readonly isArchive: true;
59
+ readonly getLogsIsUsable: true;
60
+ readonly getLogsMaxBlockRange: 80000n;
61
+ }, {
62
+ readonly url: "https://arbitrum.blockpi.network/v1/rpc/public";
63
+ readonly isArchive: true;
64
+ readonly getLogsIsUsable: true;
65
+ readonly getLogsMaxBlockRange: 1024n;
66
+ }, {
67
+ readonly url: "https://endpoints.omniatech.io/v1/arbitrum/one/public";
68
+ readonly isArchive: true;
69
+ readonly getLogsIsUsable: true;
70
+ readonly getLogsMaxBlockRange: 3000n;
71
+ }, {
72
+ readonly url: "https://arb-mainnet-public.unifra.io";
73
+ readonly isArchive: true;
74
+ readonly getLogsIsUsable: true;
75
+ readonly getLogsMaxBlockRange: 10000n;
76
+ }, {
77
+ readonly url: "https://arbitrum.api.onfinality.io/public";
78
+ readonly isArchive: true;
79
+ readonly getLogsIsUsable: true;
80
+ readonly getLogsMaxBlockRange: 2000n;
81
+ }, {
82
+ readonly url: "https://rpc.arb1.arbitrum.gateway.fm";
83
+ readonly isArchive: true;
84
+ readonly getLogsIsUsable: true;
85
+ readonly getLogsMaxBlockRange: 10000n;
86
+ }, {
87
+ readonly url: "https://arbitrum-one.publicnode.com";
88
+ readonly isArchive: true;
89
+ readonly getLogsIsUsable: true;
90
+ readonly getLogsMaxBlockRange: 40000n;
91
+ }, {
92
+ readonly url: "https://arbitrum.meowrpc.com";
93
+ readonly isArchive: true;
94
+ readonly getLogsIsUsable: true;
95
+ readonly getLogsMaxBlockRange: 40000n;
96
+ }];
97
+ export declare const arbitrumOneWebsocketRpcUrls: readonly ["wss://arbitrum-one.publicnode.com"];
98
+ export {};
99
+ //# sourceMappingURL=arbitrumOne.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arbitrumOne.d.ts","sourceRoot":"","sources":["../../../../src/chains/definitions/arbitrumOne.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,UAAU,CAAA;AAG9C,eAAO,MAAM,sBAAsB,mBAAoB,MAAM,KAAG,KAY5D,CAAA;AAEJ,KAAK,gCAAgC,CACnC,OAAO,SAAS,MAAM,EACtB,SAAS,SAAS,QAAQ,IACxB;IACF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrC,CAAA;AAEJ,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyEO,CAAA;AAEvC,eAAO,MAAM,2BAA2B,gDAE9B,CAAA"}
@@ -0,0 +1,64 @@
1
+ import type { Client } from '../../clients';
2
+ import type { Explorer } from '../../explorers';
3
+ import type { Chain } from '../types';
4
+ type CreateAstarChainParameters<TClient extends Client, TExplorer extends Explorer> = {
5
+ readonly client: TClient;
6
+ readonly explorer: TExplorer;
7
+ };
8
+ export declare const createAstarChain: () => Chain;
9
+ export declare const createAstarChainCustom: <const TClient extends Client, const TExplorer extends Explorer>({ client, explorer, }: CreateAstarChainParameters<TClient, TExplorer>) => {
10
+ readonly id: 592;
11
+ readonly network: "astar-evm";
12
+ readonly name: "Astar (EVM)";
13
+ readonly nativeToken: {
14
+ readonly name: "Astar";
15
+ readonly symbol: "ASTR";
16
+ readonly decimals: 18;
17
+ readonly currency: {
18
+ readonly type: "CryptoCurrency";
19
+ readonly id: "astar";
20
+ readonly name: "Astar";
21
+ readonly symbol: "ASTR";
22
+ readonly icon: undefined;
23
+ readonly market: {
24
+ readonly coingeckoId: "astar";
25
+ readonly marketCapUsd: undefined;
26
+ };
27
+ readonly updatedAt: number;
28
+ };
29
+ };
30
+ readonly explorer: TExplorer;
31
+ readonly client: TClient;
32
+ readonly blockTime: 12000;
33
+ readonly coingeckoId: "astar";
34
+ readonly defillamaId: "astar";
35
+ };
36
+ export declare const astarHttpRpcs: readonly [{
37
+ readonly url: "https://evm.astar.network/";
38
+ readonly isArchive: true;
39
+ readonly getLogsIsUsable: true;
40
+ readonly getLogsMaxBlockRange: 20000n;
41
+ }, {
42
+ readonly url: "https://astar.public.blastapi.io";
43
+ readonly isArchive: true;
44
+ readonly getLogsIsUsable: false;
45
+ readonly getLogsMaxBlockRange: 0n;
46
+ }, {
47
+ readonly url: "https://astar.api.onfinality.io/public";
48
+ readonly isArchive: true;
49
+ readonly getLogsIsUsable: false;
50
+ readonly getLogsMaxBlockRange: 0n;
51
+ }, {
52
+ readonly url: "https://astar-rpc.dwellir.com";
53
+ readonly isArchive: true;
54
+ readonly getLogsIsUsable: true;
55
+ readonly getLogsMaxBlockRange: 10000n;
56
+ }, {
57
+ readonly url: "https://1rpc.io/astr";
58
+ readonly isArchive: false;
59
+ readonly getLogsIsUsable: false;
60
+ readonly getLogsMaxBlockRange: 0n;
61
+ }];
62
+ export declare const astarWebsocketRpcUrls: readonly ["wss://rpc.astar.network", "wss://astar.public.blastapi.io", "wss://astar.api.onfinality.io/public-ws", "wss://astar-rpc.dwellir.com"];
63
+ export {};
64
+ //# sourceMappingURL=astar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"astar.d.ts","sourceRoot":"","sources":["../../../../src/chains/definitions/astar.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAE3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAE/C,OAAO,KAAK,EAAE,KAAK,EAAW,MAAM,UAAU,CAAA;AAG9C,KAAK,0BAA0B,CAC7B,OAAO,SAAS,MAAM,EACtB,SAAS,SAAS,QAAQ,IACxB;IACF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,gBAAgB,QAAO,KAWhC,CAAA;AAEJ,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;CAsB/B,CAAA;AAEJ,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EA+Ba,CAAA;AAEvC,eAAO,MAAM,qBAAqB,kJAKxB,CAAA"}