@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,2323 @@
1
+ /* eslint-disable unicorn/no-null */
2
+ import type { CryptoCurrencyPrice } from '@0xtorch/core'
3
+ import { describe, expect, it } from 'bun:test'
4
+ import { createPolygonPosChain } from '../../chains'
5
+ import type { TransactionDecoded } from '../../types'
6
+ import { analyzeSeaport } from './analyze'
7
+
8
+ const chain = createPolygonPosChain('')
9
+
10
+ describe('analyzeSeaport', () => {
11
+ it('buy nft transaction using seaport', async () => {
12
+ // https://polygonscan.com/tx/0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e
13
+ const transaction: TransactionDecoded<CryptoCurrencyPrice | undefined> = {
14
+ app: undefined,
15
+ nativeTokenPrice: undefined,
16
+ blockHash:
17
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
18
+ blockNumber: 40_223_921n,
19
+ from: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
20
+ gas: 240_934n,
21
+ gasPrice: 195_439_063_594n,
22
+ maxFeePerGas: 247_233_165_206n,
23
+ maxPriorityFeePerGas: 35_267_286_109n,
24
+ hash: '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
25
+ input:
26
+ '0x0000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bd27afa65b400000000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000003a1d2aaa511a39da6b2dea8c229498bd5dc9370b000000000000000000000000000000000000000000000000000000000000009900000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000006404f80200000000000000000000000000000000000000000000000000000000642dc8720000000000000000000000000000000000000000000000000000000000000000360c6ebe000000000000000000000000000000000000000071d3d328132488620000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002e0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000027ca57357c0000000000000000000000000000000a26b00c1f0df003000390027140000faa7190000000000000000000000000000000000000000000000000031bced02db000000000000000000000000000005a3ab25b397db2e2d03d3ec4461629bb05a297200000000000000000000000000000000000000000000000000000000000000409f04cc1de7687c6aa07268b48a1c05c02ad015ec88b53947aa5e2171f400926f89bb808f76333e9ccaf05ec61df18c46606260f56fba4131748bd9a40ec2fb2600000000360c6ebe',
27
+ nonce: 452,
28
+ to: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
29
+ transactionIndex: 90,
30
+ value: 0n,
31
+ type: 'eip1559',
32
+ accessList: [],
33
+ chainId: 137,
34
+ v: 1n,
35
+ r: '0xb4d9222d411a3bbb965cf99af80d801f76a885b1885ecdc03c66af62a1a1184f',
36
+ s: '0x6e90994e1c6f2c9185c18b4175d6331689f7aec1ba3bea346be17e2b99c668b8',
37
+ yParity: 1,
38
+ typeHex: '0x2',
39
+ contractAddress: null,
40
+ cumulativeGasUsed: 17_131_969n,
41
+ effectiveGasPrice: 195_439_063_594n,
42
+ gasUsed: 175_563n,
43
+ logs: [
44
+ {
45
+ type: 'decoded',
46
+ log: {
47
+ address: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
48
+ blockHash:
49
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
50
+ blockNumber: 40_223_921n,
51
+ data: '0x11070a5a18fb37926f00f95783b7c79ca9f8c9ab06cd61530617ef1e84d65d6b000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d600000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000020000000000000000000000003a1d2aaa511a39da6b2dea8c229498bd5dc9370b00000000000000000000000000000000000000000000000000000000000000990000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001bd27afa65b400000000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e00000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000027ca57357c0000000000000000000000000000000a26b00c1f0df003000390027140000faa71900000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f61900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031bced02db000000000000000000000000000005a3ab25b397db2e2d03d3ec4461629bb05a2972',
52
+ logIndex: 406,
53
+ transactionHash:
54
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
55
+ transactionIndex: 90,
56
+ removed: false,
57
+ topics: [
58
+ '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31',
59
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
60
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
61
+ ],
62
+ eventName: 'OrderFulfilled',
63
+ args: [
64
+ {
65
+ indexed: false,
66
+ name: 'orderHash',
67
+ type: 'bytes32',
68
+ value:
69
+ '0x11070a5a18fb37926f00f95783b7c79ca9f8c9ab06cd61530617ef1e84d65d6b',
70
+ },
71
+ {
72
+ indexed: true,
73
+ name: 'offerer',
74
+ type: 'address',
75
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
76
+ },
77
+ {
78
+ indexed: true,
79
+ name: 'zone',
80
+ type: 'address',
81
+ value: '0x0000000000000000000000000000000000000000',
82
+ },
83
+ {
84
+ indexed: false,
85
+ name: 'recipient',
86
+ type: 'address',
87
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
88
+ },
89
+ {
90
+ indexed: false,
91
+ name: 'offer',
92
+ type: 'tuple[]',
93
+ value: [
94
+ {
95
+ itemType: 2,
96
+ token: '0x3A1D2AaA511A39dA6b2dEA8c229498bD5dc9370B',
97
+ identifier: 153n,
98
+ amount: 1n,
99
+ },
100
+ ],
101
+ },
102
+ {
103
+ indexed: false,
104
+ name: 'consideration',
105
+ type: 'tuple[]',
106
+ value: [
107
+ {
108
+ itemType: 1,
109
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
110
+ identifier: 0n,
111
+ amount: 125_300_000_000_000_000n,
112
+ recipient: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
113
+ },
114
+ {
115
+ itemType: 1,
116
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
117
+ identifier: 0n,
118
+ amount: 700_000_000_000_000n,
119
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
120
+ },
121
+ {
122
+ itemType: 1,
123
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
124
+ identifier: 0n,
125
+ amount: 14_000_000_000_000_000n,
126
+ recipient: '0x05A3AB25b397Db2e2D03d3ec4461629Bb05A2972',
127
+ },
128
+ ],
129
+ },
130
+ ],
131
+ type: 'DecodedLog',
132
+ },
133
+ source: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
134
+ },
135
+ {
136
+ type: 'decoded',
137
+ log: {
138
+ address: '0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b',
139
+ blockHash:
140
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
141
+ blockNumber: 40_223_921n,
142
+ data: '0x',
143
+ logIndex: 407,
144
+ transactionHash:
145
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
146
+ transactionIndex: 90,
147
+ removed: false,
148
+ topics: [
149
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
150
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
151
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
152
+ '0x0000000000000000000000000000000000000000000000000000000000000099',
153
+ ],
154
+ eventName: 'Approval',
155
+ args: [
156
+ {
157
+ indexed: true,
158
+ name: 'owner',
159
+ type: 'address',
160
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
161
+ },
162
+ {
163
+ indexed: true,
164
+ name: 'approved',
165
+ type: 'address',
166
+ value: '0x0000000000000000000000000000000000000000',
167
+ },
168
+ { indexed: true, name: 'tokenId', type: 'uint256', value: 153n },
169
+ ],
170
+ type: 'DecodedLog',
171
+ },
172
+ source: '0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b',
173
+ },
174
+ {
175
+ type: 'decoded',
176
+ log: {
177
+ address: '0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b',
178
+ blockHash:
179
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
180
+ blockNumber: 40_223_921n,
181
+ data: '0x',
182
+ logIndex: 408,
183
+ transactionHash:
184
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
185
+ transactionIndex: 90,
186
+ removed: false,
187
+ topics: [
188
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
189
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
190
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
191
+ '0x0000000000000000000000000000000000000000000000000000000000000099',
192
+ ],
193
+ eventName: 'Transfer',
194
+ args: [
195
+ {
196
+ indexed: true,
197
+ name: 'from',
198
+ type: 'address',
199
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
200
+ },
201
+ {
202
+ indexed: true,
203
+ name: 'to',
204
+ type: 'address',
205
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
206
+ },
207
+ { indexed: true, name: 'tokenId', type: 'uint256', value: 153n },
208
+ ],
209
+ type: 'DecodedLog',
210
+ },
211
+ source: '0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b',
212
+ },
213
+ {
214
+ type: 'decoded',
215
+ log: {
216
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
217
+ blockHash:
218
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
219
+ blockNumber: 40_223_921n,
220
+ data: '0x00000000000000000000000000000000000000000000000000027ca57357c000',
221
+ logIndex: 409,
222
+ transactionHash:
223
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
224
+ transactionIndex: 90,
225
+ removed: false,
226
+ topics: [
227
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
228
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
229
+ '0x0000000000000000000000000000a26b00c1f0df003000390027140000faa719',
230
+ ],
231
+ eventName: 'Transfer',
232
+ args: [
233
+ {
234
+ indexed: true,
235
+ name: 'from',
236
+ type: 'address',
237
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
238
+ },
239
+ {
240
+ indexed: true,
241
+ name: 'to',
242
+ type: 'address',
243
+ value: '0x0000a26b00c1F0DF003000390027140000fAa719',
244
+ },
245
+ {
246
+ indexed: false,
247
+ name: 'value',
248
+ type: 'uint256',
249
+ value: 700_000_000_000_000n,
250
+ },
251
+ ],
252
+ type: 'DecodedLog',
253
+ },
254
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
255
+ },
256
+ {
257
+ type: 'decoded',
258
+ log: {
259
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
260
+ blockHash:
261
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
262
+ blockNumber: 40_223_921n,
263
+ data: '0xfffffffffffffffffffffffffffffffffffffffffffffffffffd835a8ca83fff',
264
+ logIndex: 410,
265
+ transactionHash:
266
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
267
+ transactionIndex: 90,
268
+ removed: false,
269
+ topics: [
270
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
271
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
272
+ '0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71',
273
+ ],
274
+ eventName: 'Approval',
275
+ args: [
276
+ {
277
+ indexed: true,
278
+ name: 'owner',
279
+ type: 'address',
280
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
281
+ },
282
+ {
283
+ indexed: true,
284
+ name: 'spender',
285
+ type: 'address',
286
+ value: '0x1E0049783F008A0085193E00003D00cd54003c71',
287
+ },
288
+ {
289
+ indexed: false,
290
+ name: 'value',
291
+ type: 'uint256',
292
+ value:
293
+ 115_792_089_237_316_195_423_570_985_008_687_907_853_269_984_665_640_564_039_457_583_307_913_129_639_935n,
294
+ },
295
+ ],
296
+ type: 'DecodedLog',
297
+ },
298
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
299
+ },
300
+ {
301
+ type: 'decoded',
302
+ log: {
303
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
304
+ blockHash:
305
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
306
+ blockNumber: 40_223_921n,
307
+ data: '0x0000000000000000000000000000000000000000000000000031bced02db0000',
308
+ logIndex: 411,
309
+ transactionHash:
310
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
311
+ transactionIndex: 90,
312
+ removed: false,
313
+ topics: [
314
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
315
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
316
+ '0x00000000000000000000000005a3ab25b397db2e2d03d3ec4461629bb05a2972',
317
+ ],
318
+ eventName: 'Transfer',
319
+ args: [
320
+ {
321
+ indexed: true,
322
+ name: 'from',
323
+ type: 'address',
324
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
325
+ },
326
+ {
327
+ indexed: true,
328
+ name: 'to',
329
+ type: 'address',
330
+ value: '0x05A3AB25b397Db2e2D03d3ec4461629Bb05A2972',
331
+ },
332
+ {
333
+ indexed: false,
334
+ name: 'value',
335
+ type: 'uint256',
336
+ value: 14_000_000_000_000_000n,
337
+ },
338
+ ],
339
+ type: 'DecodedLog',
340
+ },
341
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
342
+ },
343
+ {
344
+ type: 'decoded',
345
+ log: {
346
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
347
+ blockHash:
348
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
349
+ blockNumber: 40_223_921n,
350
+ data: '0xffffffffffffffffffffffffffffffffffffffffffffffffffcbc66d89cd3fff',
351
+ logIndex: 412,
352
+ transactionHash:
353
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
354
+ transactionIndex: 90,
355
+ removed: false,
356
+ topics: [
357
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
358
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
359
+ '0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71',
360
+ ],
361
+ eventName: 'Approval',
362
+ args: [
363
+ {
364
+ indexed: true,
365
+ name: 'owner',
366
+ type: 'address',
367
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
368
+ },
369
+ {
370
+ indexed: true,
371
+ name: 'spender',
372
+ type: 'address',
373
+ value: '0x1E0049783F008A0085193E00003D00cd54003c71',
374
+ },
375
+ {
376
+ indexed: false,
377
+ name: 'value',
378
+ type: 'uint256',
379
+ value:
380
+ 115_792_089_237_316_195_423_570_985_008_687_907_853_269_984_665_640_564_039_457_569_307_913_129_639_935n,
381
+ },
382
+ ],
383
+ type: 'DecodedLog',
384
+ },
385
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
386
+ },
387
+ {
388
+ type: 'decoded',
389
+ log: {
390
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
391
+ blockHash:
392
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
393
+ blockNumber: 40_223_921n,
394
+ data: '0x00000000000000000000000000000000000000000000000001bd27afa65b4000',
395
+ logIndex: 413,
396
+ transactionHash:
397
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
398
+ transactionIndex: 90,
399
+ removed: false,
400
+ topics: [
401
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
402
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
403
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
404
+ ],
405
+ eventName: 'Transfer',
406
+ args: [
407
+ {
408
+ indexed: true,
409
+ name: 'from',
410
+ type: 'address',
411
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
412
+ },
413
+ {
414
+ indexed: true,
415
+ name: 'to',
416
+ type: 'address',
417
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
418
+ },
419
+ {
420
+ indexed: false,
421
+ name: 'value',
422
+ type: 'uint256',
423
+ value: 125_300_000_000_000_000n,
424
+ },
425
+ ],
426
+ type: 'DecodedLog',
427
+ },
428
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
429
+ },
430
+ {
431
+ type: 'decoded',
432
+ log: {
433
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
434
+ blockHash:
435
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
436
+ blockNumber: 40_223_921n,
437
+ data: '0xfffffffffffffffffffffffffffffffffffffffffffffffffe0e9ebde371ffff',
438
+ logIndex: 414,
439
+ transactionHash:
440
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
441
+ transactionIndex: 90,
442
+ removed: false,
443
+ topics: [
444
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
445
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
446
+ '0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71',
447
+ ],
448
+ eventName: 'Approval',
449
+ args: [
450
+ {
451
+ indexed: true,
452
+ name: 'owner',
453
+ type: 'address',
454
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
455
+ },
456
+ {
457
+ indexed: true,
458
+ name: 'spender',
459
+ type: 'address',
460
+ value: '0x1E0049783F008A0085193E00003D00cd54003c71',
461
+ },
462
+ {
463
+ indexed: false,
464
+ name: 'value',
465
+ type: 'uint256',
466
+ value:
467
+ 115_792_089_237_316_195_423_570_985_008_687_907_853_269_984_665_640_564_039_457_444_007_913_129_639_935n,
468
+ },
469
+ ],
470
+ type: 'DecodedLog',
471
+ },
472
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
473
+ },
474
+ {
475
+ type: 'decoded',
476
+ log: {
477
+ address: '0x0000000000000000000000000000000000001010',
478
+ blockHash:
479
+ '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
480
+ blockNumber: 40_223_921n,
481
+ data: '0x0000000000000000000000000000000000000000000000000015ff415394febf00000000000000000000000000000000000000000000003be7444c229c4614e400000000000000000000000000000000000000000000035061121ec9a1ac39a100000000000000000000000000000000000000000000003be72e4ce148b1162500000000000000000000000000000000000000000000035061281e0af5413860',
482
+ logIndex: 415,
483
+ transactionHash:
484
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
485
+ transactionIndex: 90,
486
+ removed: false,
487
+ topics: [
488
+ '0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63',
489
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
490
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
491
+ '0x000000000000000000000000794e44d1334a56fea7f4df12633b88820d0c5888',
492
+ ],
493
+ eventName: 'LogFeeTransfer',
494
+ args: [
495
+ {
496
+ indexed: true,
497
+ name: 'token',
498
+ type: 'address',
499
+ value: '0x0000000000000000000000000000000000001010',
500
+ },
501
+ {
502
+ indexed: true,
503
+ name: 'from',
504
+ type: 'address',
505
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
506
+ },
507
+ {
508
+ indexed: true,
509
+ name: 'to',
510
+ type: 'address',
511
+ value: '0x794e44D1334A56Fea7f4df12633b88820D0c5888',
512
+ },
513
+ {
514
+ indexed: false,
515
+ name: 'amount',
516
+ type: 'uint256',
517
+ value: 6_191_630_551_154_367n,
518
+ },
519
+ {
520
+ indexed: false,
521
+ name: 'input1',
522
+ type: 'uint256',
523
+ value: 1_105_022_428_581_575_660_772n,
524
+ },
525
+ {
526
+ indexed: false,
527
+ name: 'input2',
528
+ type: 'uint256',
529
+ value: 15_649_833_661_528_309_250_465n,
530
+ },
531
+ {
532
+ indexed: false,
533
+ name: 'output1',
534
+ type: 'uint256',
535
+ value: 1_105_016_236_951_024_506_405n,
536
+ },
537
+ {
538
+ indexed: false,
539
+ name: 'output2',
540
+ type: 'uint256',
541
+ value: 15_649_839_853_158_860_404_832n,
542
+ },
543
+ ],
544
+ type: 'DecodedLog',
545
+ },
546
+ source: '0x0000000000000000000000000000000000001010',
547
+ },
548
+ ],
549
+ logsBloom:
550
+ '0x00000000000000000000000000000000000000000000000000000000000000000000000000001000080000000000000000008000000000000000000000200000000040000000400020000008400000a000000000000000000001000208000000000000000202000000000000000008000000000400000200800000100000000400000000000000000000000000004000000100000000000000000000100000002a0001002000400000000002000000000000000000800000000000000000004000001002000008000001000000000000000000000000000002140800000020000010020000000000000000000000000080000000000800000000000020100000',
551
+ status: 'success',
552
+ transactionHash:
553
+ '0xcff25049ecf85d841b2a43e95265d11eebae30b08ad9fd09b4f02b9560406c4e',
554
+ block: {
555
+ blobGasUsed: 0n,
556
+ excessBlobGas: 0n,
557
+ sealFields: [],
558
+ baseFeePerGas: 160_171_777_485n,
559
+ difficulty: 27n,
560
+ extraData:
561
+ '0xd682030383626f7288676f312e31392e34856c696e7578000000000000000000073f64be171d07708a38f16febf1680f09d02ab74d4b6ef8e3ed20dd7ecc8bee605696ce7071ae4a2a78d5ebd122baa4d1de4a17f3f90b030082d54b3036a64300',
562
+ gasLimit: 29_940_524n,
563
+ gasUsed: 22_558_505n,
564
+ hash: '0xd5c57878144302e392091eaff5c32d8ac48ed18783dff03faf2593b1f97ec113',
565
+ logsBloom:
566
+ '0xcff2ba60b43574e2af893beaff0bf8bab6cfbc7b0fce86bdd9a2aaf25792d5b679429f7ac26eb14249e109b36ede1be3c861c56cc09ef087ae991d53873d23c172dbc56ffabbe03c27e5d19d72b7f5ea72bdbcbac95ebd8d2fcf6ff39d24522c3a7e2e2b4306eae27d8b9f26c68e1ca49935c9dd7a948ebdbb44eab9e3d834d4b73777d57dba78f7759d3de97aa377468393e4b73154a29ea15eaa59922190fa6f59f7f6f9bf7534a7ee09d63d8b0835de45c927b3b7dfd44003432ff86638e9730c9f4eb71efa73d54bfabdaa6a8ccff07cbf5a8f7ebf9817ffaf15e2dd7e6a3c5d93b963e0977a42a7f9631ba1ae39bb4cfb453aaed6d70893183fa2dcecfb',
567
+ miner: '0x0000000000000000000000000000000000000000',
568
+ mixHash:
569
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
570
+ nonce: '0x0000000000000000',
571
+ number: 40_223_921n,
572
+ parentHash:
573
+ '0x55a4fff8bbc3cff5f511e7047f5550ea065dd1fba760d7aadfe4b953b8217c80',
574
+ receiptsRoot:
575
+ '0xd8150519e03d6e11ecb4d5ab77ccadfed0f10bbca5beb6b9557fabb4593d34c1',
576
+ sha3Uncles:
577
+ '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
578
+ size: 56_247n,
579
+ stateRoot:
580
+ '0xe284f4842e73f2c7225536752ebf5ed40262a01cd9c15294d668c450708e7fe6',
581
+ timestamp: 1_678_544_371n,
582
+ totalDifficulty: 659_429_453n,
583
+ transactions: [],
584
+ transactionsRoot:
585
+ '0xecb28ea056851b20337eaa5cf09814d574ae2d22af4478b452f101f99380906f',
586
+ uncles: [],
587
+ },
588
+ internalTransactions: [],
589
+ function: {
590
+ name: 'fulfillBasicOrder_efficient_6GL6yc',
591
+ args: [
592
+ {
593
+ name: 'parameters',
594
+ type: 'tuple',
595
+ value: {
596
+ considerationToken: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
597
+ considerationIdentifier: 0n,
598
+ considerationAmount: 125_300_000_000_000_000n,
599
+ offerer: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
600
+ zone: '0x0000000000000000000000000000000000000000',
601
+ offerToken: '0x3A1D2AaA511A39dA6b2dEA8c229498bD5dc9370B',
602
+ offerIdentifier: 153n,
603
+ offerAmount: 1n,
604
+ basicOrderType: 8,
605
+ startTime: 1_678_047_234n,
606
+ endTime: 1_680_722_034n,
607
+ zoneHash:
608
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
609
+ salt: 24_446_860_302_761_739_304_752_683_030_156_737_591_518_664_810_215_442_929_808_584_819_950_697_613_410n,
610
+ offererConduitKey:
611
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
612
+ fulfillerConduitKey:
613
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
614
+ totalOriginalAdditionalRecipients: 2n,
615
+ additionalRecipients: [
616
+ {
617
+ amount: 700_000_000_000_000n,
618
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
619
+ },
620
+ {
621
+ amount: 14_000_000_000_000_000n,
622
+ recipient: '0x05A3AB25b397Db2e2D03d3ec4461629Bb05A2972',
623
+ },
624
+ ],
625
+ signature:
626
+ '0x9f04cc1de7687c6aa07268b48a1c05c02ad015ec88b53947aa5e2171f400926f89bb808f76333e9ccaf05ec61df18c46606260f56fba4131748bd9a40ec2fb26',
627
+ },
628
+ },
629
+ ],
630
+ },
631
+ erc20Transfers: [
632
+ {
633
+ type: 'Erc20Transfer',
634
+ logIndex: 409,
635
+ token: {
636
+ contractAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
637
+ name: 'Wrapped Ether',
638
+ symbol: 'WETH',
639
+ decimals: 18,
640
+ currency: {
641
+ type: 'CryptoCurrency',
642
+ id: 'weth',
643
+ name: 'WETH',
644
+ symbol: 'WETH',
645
+ market: { coingeckoId: 'weth', marketCapUsd: undefined },
646
+ icon: undefined,
647
+ updatedAt: 1_708_177_227_935,
648
+ },
649
+ },
650
+ from: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
651
+ to: '0x0000a26b00c1f0df003000390027140000faa719',
652
+ value: 700_000_000_000_000n,
653
+ price: undefined,
654
+ },
655
+ {
656
+ type: 'Erc20Transfer',
657
+ logIndex: 411,
658
+ token: {
659
+ contractAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
660
+ name: 'Wrapped Ether',
661
+ symbol: 'WETH',
662
+ decimals: 18,
663
+ currency: {
664
+ type: 'CryptoCurrency',
665
+ id: 'weth',
666
+ name: 'WETH',
667
+ symbol: 'WETH',
668
+ market: { coingeckoId: 'weth', marketCapUsd: undefined },
669
+ icon: undefined,
670
+ updatedAt: 1_708_177_227_935,
671
+ },
672
+ },
673
+ from: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
674
+ to: '0x05a3ab25b397db2e2d03d3ec4461629bb05a2972',
675
+ value: 14_000_000_000_000_000n,
676
+ price: undefined,
677
+ },
678
+ {
679
+ type: 'Erc20Transfer',
680
+ logIndex: 413,
681
+ token: {
682
+ contractAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
683
+ name: 'Wrapped Ether',
684
+ symbol: 'WETH',
685
+ decimals: 18,
686
+ currency: {
687
+ type: 'CryptoCurrency',
688
+ id: 'weth',
689
+ name: 'WETH',
690
+ symbol: 'WETH',
691
+ market: { coingeckoId: 'weth', marketCapUsd: undefined },
692
+ icon: undefined,
693
+ updatedAt: 1_708_177_227_935,
694
+ },
695
+ },
696
+ from: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
697
+ to: '0x38835098a8accd046efa8123f9fcd5aaa2cb3a7e',
698
+ value: 125_300_000_000_000_000n,
699
+ price: undefined,
700
+ },
701
+ ],
702
+ erc721Transfers: [
703
+ {
704
+ type: 'Erc721Transfer',
705
+ logIndex: 408,
706
+ token: {
707
+ contractAddress: '0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b',
708
+ name: 'Kyomugao: Despair Face',
709
+ symbol: 'KYOMU',
710
+ },
711
+ from: '0x38835098a8accd046efa8123f9fcd5aaa2cb3a7e',
712
+ to: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
713
+ tokenId: 153n,
714
+ nft: {
715
+ type: 'Nft',
716
+ id: 'evm_137_0x3a1d2aaa511a39da6b2dea8c229498bd5dc9370b_153',
717
+ },
718
+ },
719
+ ],
720
+ erc1155Transfers: [],
721
+ }
722
+ const analyzed = await analyzeSeaport({
723
+ chain,
724
+ transaction,
725
+ accountAddresses: ['0x161619839ebbada5d3c279e1a79c50f7fc4274d6'],
726
+ })
727
+ expect(analyzed).toBeDefined()
728
+ expect(analyzed?.accountActions).toHaveLength(1)
729
+ expect(analyzed?.accountActions[0].action).toBe('buy-nft')
730
+ })
731
+ it('spam transaction using seaport', async () => {
732
+ // https://polygonscan.com/tx/0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d
733
+ const transaction: TransactionDecoded<CryptoCurrencyPrice | undefined> = {
734
+ app: undefined,
735
+ nativeTokenPrice: undefined,
736
+ blockHash:
737
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
738
+ blockNumber: 37_745_682n,
739
+ from: '0xa91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
740
+ gas: 600_000n,
741
+ gasPrice: 187_482_250_587n,
742
+ maxFeePerGas: 202_878_874_272n,
743
+ maxPriorityFeePerGas: 31_000_000_000n,
744
+ hash: '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
745
+ input:
746
+ '0xe7acab24000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000005a00000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000046000000000000000000000000000000000000000000000000000000000000004e0000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be967000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000022000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000063b688160000000000000000000000000000000000000000000000000000000063df66960000000000000000000000000000000000000000000000000000000000000000360c6ebe00000000000000000000000000000000000000000c0977637d61bfb30000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c176d9a7e3693c7a2ff4a4c4950ecefdd61e1887000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001f4000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004c494c00000000000000000000000000000000000000000000000000000000004c494c000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be967000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001f400000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000a26b00c1f0df003000390027140000faa719000000000000000000000000000000000000000000000000000000000000004176a4338d0266718761a222a3d9828f632b0c1c9633a91e384eb317efd0a3871d31659189e7f4a69a21163319198502fd1508da7d1c1180b7ad02b434a619db1a1b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000360c6ebe',
747
+ nonce: 9,
748
+ to: '0x00000000006c3852cbef3e08e8df289169ede581',
749
+ transactionIndex: 115,
750
+ value: 10_000n,
751
+ type: 'eip1559',
752
+ accessList: [],
753
+ chainId: 137,
754
+ v: 1n,
755
+ r: '0x596919638041d457ed7a9332e1461cef11911df5b614aa6ad34b71610602c77a',
756
+ s: '0x39a7558170de80b03be4bd6af47b4889243a0fd69fc1e76b59b7df25af3de20d',
757
+ yParity: 1,
758
+ typeHex: '0x2',
759
+ contractAddress: null,
760
+ cumulativeGasUsed: 20_742_845n,
761
+ effectiveGasPrice: 187_482_250_587n,
762
+ gasUsed: 162_015n,
763
+ logs: [
764
+ {
765
+ type: 'decoded',
766
+ log: {
767
+ address: '0x0000000000000000000000000000000000001010',
768
+ blockHash:
769
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
770
+ blockNumber: 37_745_682n,
771
+ data: '0x00000000000000000000000000000000000000000000000000000000000027100000000000000000000000000000000000000000000000001623c900402256cb00000000000000000000000000000000000000000000000012bef841dbaf78000000000000000000000000000000000000000000000000001623c90040222fbb00000000000000000000000000000000000000000000000012bef841dbaf9f10',
772
+ logIndex: 848,
773
+ transactionHash:
774
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
775
+ transactionIndex: 115,
776
+ removed: false,
777
+ topics: [
778
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
779
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
780
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
781
+ '0x00000000000000000000000000000000006c3852cbef3e08e8df289169ede581',
782
+ ],
783
+ eventName: 'LogTransfer',
784
+ args: [
785
+ {
786
+ indexed: true,
787
+ name: 'token',
788
+ type: 'address',
789
+ value: '0x0000000000000000000000000000000000001010',
790
+ },
791
+ {
792
+ indexed: true,
793
+ name: 'from',
794
+ type: 'address',
795
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
796
+ },
797
+ {
798
+ indexed: true,
799
+ name: 'to',
800
+ type: 'address',
801
+ value: '0x00000000006c3852cbEf3e08E8dF289169EdE581',
802
+ },
803
+ {
804
+ indexed: false,
805
+ name: 'amount',
806
+ type: 'uint256',
807
+ value: 10_000n,
808
+ },
809
+ {
810
+ indexed: false,
811
+ name: 'input1',
812
+ type: 'uint256',
813
+ value: 1_595_339_695_932_462_795n,
814
+ },
815
+ {
816
+ indexed: false,
817
+ name: 'input2',
818
+ type: 'uint256',
819
+ value: 1_350_789_900_000_000_000n,
820
+ },
821
+ {
822
+ indexed: false,
823
+ name: 'output1',
824
+ type: 'uint256',
825
+ value: 1_595_339_695_932_452_795n,
826
+ },
827
+ {
828
+ indexed: false,
829
+ name: 'output2',
830
+ type: 'uint256',
831
+ value: 1_350_789_900_000_010_000n,
832
+ },
833
+ ],
834
+ type: 'DecodedLog',
835
+ },
836
+ source: '0x0000000000000000000000000000000000001010',
837
+ },
838
+ {
839
+ type: 'decoded',
840
+ log: {
841
+ address: '0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887',
842
+ blockHash:
843
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
844
+ blockNumber: 37_745_682n,
845
+ data: '0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001',
846
+ logIndex: 849,
847
+ transactionHash:
848
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
849
+ transactionIndex: 115,
850
+ removed: false,
851
+ topics: [
852
+ '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',
853
+ '0x000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be9670',
854
+ '0x00000000000000000000000079b711055b9fa9b1bb49eedbd3bc8bbbaa0d5f77',
855
+ '0x0000000000000000000000009c87a083fde85ffec17aa725f08fa388876981a7',
856
+ ],
857
+ eventName: 'TransferSingle',
858
+ args: [
859
+ {
860
+ indexed: true,
861
+ name: 'operator',
862
+ type: 'address',
863
+ value: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
864
+ },
865
+ {
866
+ indexed: true,
867
+ name: 'from',
868
+ type: 'address',
869
+ value: '0x79B711055B9fA9B1bB49EeDBd3bC8bbBaa0d5F77',
870
+ },
871
+ {
872
+ indexed: true,
873
+ name: 'to',
874
+ type: 'address',
875
+ value: '0x9c87A083Fde85fFec17AA725f08Fa388876981A7',
876
+ },
877
+ { indexed: false, name: 'id', type: 'uint256', value: 1n },
878
+ { indexed: false, name: 'value', type: 'uint256', value: 1n },
879
+ ],
880
+ type: 'DecodedLog',
881
+ },
882
+ source: '0x60e63401d6dc1427d7650c6016f4464dae8692c3',
883
+ },
884
+ {
885
+ type: 'decoded',
886
+ log: {
887
+ address: '0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887',
888
+ blockHash:
889
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
890
+ blockNumber: 37_745_682n,
891
+ data: '0x00000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001',
892
+ logIndex: 850,
893
+ transactionHash:
894
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
895
+ transactionIndex: 115,
896
+ removed: false,
897
+ topics: [
898
+ '0xc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62',
899
+ '0x000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be9670',
900
+ '0x000000000000000000000000161619839ebbada5d3c279e1a79c50f7fc4274d6',
901
+ '0x000000000000000000000000f66c53f324529c24e29eaef7cf8467af99089c0b',
902
+ ],
903
+ eventName: 'TransferSingle',
904
+ args: [
905
+ {
906
+ indexed: true,
907
+ name: 'operator',
908
+ type: 'address',
909
+ value: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
910
+ },
911
+ {
912
+ indexed: true,
913
+ name: 'from',
914
+ type: 'address',
915
+ value: '0x161619839EBbADa5d3C279E1A79C50F7fc4274D6',
916
+ },
917
+ {
918
+ indexed: true,
919
+ name: 'to',
920
+ type: 'address',
921
+ value: '0xf66C53f324529c24E29EAeF7cF8467Af99089c0B',
922
+ },
923
+ { indexed: false, name: 'id', type: 'uint256', value: 1n },
924
+ { indexed: false, name: 'value', type: 'uint256', value: 1n },
925
+ ],
926
+ type: 'DecodedLog',
927
+ },
928
+ source: '0x60e63401d6dc1427d7650c6016f4464dae8692c3',
929
+ },
930
+ {
931
+ type: 'decoded',
932
+ log: {
933
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
934
+ blockHash:
935
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
936
+ blockNumber: 37_745_682n,
937
+ data: '0x000000000000000000000000000000000000000000000000000000000000270f',
938
+ logIndex: 851,
939
+ transactionHash:
940
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
941
+ transactionIndex: 115,
942
+ removed: false,
943
+ topics: [
944
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
945
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
946
+ '0x000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be9670',
947
+ ],
948
+ eventName: 'Transfer',
949
+ args: [
950
+ {
951
+ indexed: true,
952
+ name: 'from',
953
+ type: 'address',
954
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
955
+ },
956
+ {
957
+ indexed: true,
958
+ name: 'to',
959
+ type: 'address',
960
+ value: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
961
+ },
962
+ { indexed: false, name: 'value', type: 'uint256', value: 9999n },
963
+ ],
964
+ type: 'DecodedLog',
965
+ },
966
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
967
+ },
968
+ {
969
+ type: 'decoded',
970
+ log: {
971
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
972
+ blockHash:
973
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
974
+ blockNumber: 37_745_682n,
975
+ data: '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff15a0',
976
+ logIndex: 852,
977
+ transactionHash:
978
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
979
+ transactionIndex: 115,
980
+ removed: false,
981
+ topics: [
982
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
983
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
984
+ '0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71',
985
+ ],
986
+ eventName: 'Approval',
987
+ args: [
988
+ {
989
+ indexed: true,
990
+ name: 'owner',
991
+ type: 'address',
992
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
993
+ },
994
+ {
995
+ indexed: true,
996
+ name: 'spender',
997
+ type: 'address',
998
+ value: '0x1E0049783F008A0085193E00003D00cd54003c71',
999
+ },
1000
+ {
1001
+ indexed: false,
1002
+ name: 'value',
1003
+ type: 'uint256',
1004
+ value:
1005
+ 115_792_089_237_316_195_423_570_985_008_687_907_853_269_984_665_640_564_039_457_584_007_913_129_579_936n,
1006
+ },
1007
+ ],
1008
+ type: 'DecodedLog',
1009
+ },
1010
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1011
+ },
1012
+ {
1013
+ type: 'decoded',
1014
+ log: {
1015
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1016
+ blockHash:
1017
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1018
+ blockNumber: 37_745_682n,
1019
+ data: '0x0000000000000000000000000000000000000000000000000000000000000001',
1020
+ logIndex: 853,
1021
+ transactionHash:
1022
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1023
+ transactionIndex: 115,
1024
+ removed: false,
1025
+ topics: [
1026
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
1027
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1028
+ '0x0000000000000000000000000000a26b00c1f0df003000390027140000faa719',
1029
+ ],
1030
+ eventName: 'Transfer',
1031
+ args: [
1032
+ {
1033
+ indexed: true,
1034
+ name: 'from',
1035
+ type: 'address',
1036
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
1037
+ },
1038
+ {
1039
+ indexed: true,
1040
+ name: 'to',
1041
+ type: 'address',
1042
+ value: '0x0000a26b00c1F0DF003000390027140000fAa719',
1043
+ },
1044
+ { indexed: false, name: 'value', type: 'uint256', value: 1n },
1045
+ ],
1046
+ type: 'DecodedLog',
1047
+ },
1048
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1049
+ },
1050
+ {
1051
+ type: 'decoded',
1052
+ log: {
1053
+ address: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1054
+ blockHash:
1055
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1056
+ blockNumber: 37_745_682n,
1057
+ data: '0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff159f',
1058
+ logIndex: 854,
1059
+ transactionHash:
1060
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1061
+ transactionIndex: 115,
1062
+ removed: false,
1063
+ topics: [
1064
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
1065
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1066
+ '0x0000000000000000000000001e0049783f008a0085193e00003d00cd54003c71',
1067
+ ],
1068
+ eventName: 'Approval',
1069
+ args: [
1070
+ {
1071
+ indexed: true,
1072
+ name: 'owner',
1073
+ type: 'address',
1074
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
1075
+ },
1076
+ {
1077
+ indexed: true,
1078
+ name: 'spender',
1079
+ type: 'address',
1080
+ value: '0x1E0049783F008A0085193E00003D00cd54003c71',
1081
+ },
1082
+ {
1083
+ indexed: false,
1084
+ name: 'value',
1085
+ type: 'uint256',
1086
+ value:
1087
+ 115_792_089_237_316_195_423_570_985_008_687_907_853_269_984_665_640_564_039_457_584_007_913_129_579_935n,
1088
+ },
1089
+ ],
1090
+ type: 'DecodedLog',
1091
+ },
1092
+ source: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1093
+ },
1094
+ {
1095
+ type: 'decoded',
1096
+ log: {
1097
+ address: '0x0000000000000000000000000000000000001010',
1098
+ blockHash:
1099
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1100
+ blockNumber: 37_745_682n,
1101
+ data: '0x000000000000000000000000000000000000000000000000000000000000271000000000000000000000000000000000000000000000000012bef841dbaf9f100000000000000000000000000000000000000000000000001623c90040222fbb00000000000000000000000000000000000000000000000012bef841dbaf78000000000000000000000000000000000000000000000000001623c900402256cb',
1102
+ logIndex: 855,
1103
+ transactionHash:
1104
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1105
+ transactionIndex: 115,
1106
+ removed: false,
1107
+ topics: [
1108
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
1109
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
1110
+ '0x00000000000000000000000000000000006c3852cbef3e08e8df289169ede581',
1111
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1112
+ ],
1113
+ eventName: 'LogTransfer',
1114
+ args: [
1115
+ {
1116
+ indexed: true,
1117
+ name: 'token',
1118
+ type: 'address',
1119
+ value: '0x0000000000000000000000000000000000001010',
1120
+ },
1121
+ {
1122
+ indexed: true,
1123
+ name: 'from',
1124
+ type: 'address',
1125
+ value: '0x00000000006c3852cbEf3e08E8dF289169EdE581',
1126
+ },
1127
+ {
1128
+ indexed: true,
1129
+ name: 'to',
1130
+ type: 'address',
1131
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
1132
+ },
1133
+ {
1134
+ indexed: false,
1135
+ name: 'amount',
1136
+ type: 'uint256',
1137
+ value: 10_000n,
1138
+ },
1139
+ {
1140
+ indexed: false,
1141
+ name: 'input1',
1142
+ type: 'uint256',
1143
+ value: 1_350_789_900_000_010_000n,
1144
+ },
1145
+ {
1146
+ indexed: false,
1147
+ name: 'input2',
1148
+ type: 'uint256',
1149
+ value: 1_595_339_695_932_452_795n,
1150
+ },
1151
+ {
1152
+ indexed: false,
1153
+ name: 'output1',
1154
+ type: 'uint256',
1155
+ value: 1_350_789_900_000_000_000n,
1156
+ },
1157
+ {
1158
+ indexed: false,
1159
+ name: 'output2',
1160
+ type: 'uint256',
1161
+ value: 1_595_339_695_932_462_795n,
1162
+ },
1163
+ ],
1164
+ type: 'DecodedLog',
1165
+ },
1166
+ source: '0x0000000000000000000000000000000000001010',
1167
+ },
1168
+ {
1169
+ type: 'decoded',
1170
+ log: {
1171
+ address: '0x00000000006c3852cbef3e08e8df289169ede581',
1172
+ blockHash:
1173
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1174
+ blockNumber: 37_745_682n,
1175
+ data: '0xaf9a3deb29117bac0bc1b84fda4c4ec9c896670c046c703a738e36a938b54f17000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000003000000000000000000000000c176d9a7e3693c7a2ff4a4c4950ecefdd61e188700000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f6190000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000270f000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be967000000000000000000000000000000000000000000000000000000000000000010000000000000000000000007ceb23fd6bc0add59e62ac25578270cff1b9f619000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000a26b00c1f0df003000390027140000faa719',
1176
+ logIndex: 856,
1177
+ transactionHash:
1178
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1179
+ transactionIndex: 115,
1180
+ removed: false,
1181
+ topics: [
1182
+ '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31',
1183
+ '0x000000000000000000000000e3c3f177e76c36f6bff1b694a951a49c97be9670',
1184
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
1185
+ ],
1186
+ eventName: 'OrderFulfilled',
1187
+ args: [
1188
+ {
1189
+ indexed: false,
1190
+ name: 'orderHash',
1191
+ type: 'bytes32',
1192
+ value:
1193
+ '0xaf9a3deb29117bac0bc1b84fda4c4ec9c896670c046c703a738e36a938b54f17',
1194
+ },
1195
+ {
1196
+ indexed: true,
1197
+ name: 'offerer',
1198
+ type: 'address',
1199
+ value: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
1200
+ },
1201
+ {
1202
+ indexed: true,
1203
+ name: 'zone',
1204
+ type: 'address',
1205
+ value: '0x0000000000000000000000000000000000000000',
1206
+ },
1207
+ {
1208
+ indexed: false,
1209
+ name: 'recipient',
1210
+ type: 'address',
1211
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
1212
+ },
1213
+ {
1214
+ indexed: false,
1215
+ name: 'offer',
1216
+ type: 'tuple[]',
1217
+ value: [
1218
+ {
1219
+ itemType: 3,
1220
+ token: '0xc176D9A7E3693C7A2ff4a4c4950ECEfdd61E1887',
1221
+ identifier: 1n,
1222
+ amount: 1n,
1223
+ },
1224
+ ],
1225
+ },
1226
+ {
1227
+ indexed: false,
1228
+ name: 'consideration',
1229
+ type: 'tuple[]',
1230
+ value: [
1231
+ {
1232
+ itemType: 1,
1233
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
1234
+ identifier: 0n,
1235
+ amount: 9999n,
1236
+ recipient: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
1237
+ },
1238
+ {
1239
+ itemType: 1,
1240
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
1241
+ identifier: 0n,
1242
+ amount: 1n,
1243
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
1244
+ },
1245
+ ],
1246
+ },
1247
+ ],
1248
+ type: 'DecodedLog',
1249
+ },
1250
+ source: '0x00000000006c3852cbef3e08e8df289169ede581',
1251
+ },
1252
+ {
1253
+ type: 'decoded',
1254
+ log: {
1255
+ address: '0x0000000000000000000000000000000000001010',
1256
+ blockHash:
1257
+ '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1258
+ blockNumber: 37_745_682n,
1259
+ data: '0x0000000000000000000000000000000000000000000000000011d7e7c238ca0000000000000000000000000000000000000000000000000017b36d7818e4380b000000000000000000000000000000000000000000000424034544d1c119012600000000000000000000000000000000000000000000000017a1959056ab6e0b00000000000000000000000000000000000000000000042403571cb98351cb26',
1260
+ logIndex: 857,
1261
+ transactionHash:
1262
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1263
+ transactionIndex: 115,
1264
+ removed: false,
1265
+ topics: [
1266
+ '0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63',
1267
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
1268
+ '0x000000000000000000000000a91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1269
+ '0x00000000000000000000000046a3a41bd932244dd08186e4c19f1a7e48cbcdf4',
1270
+ ],
1271
+ eventName: 'LogFeeTransfer',
1272
+ args: [
1273
+ {
1274
+ indexed: true,
1275
+ name: 'token',
1276
+ type: 'address',
1277
+ value: '0x0000000000000000000000000000000000001010',
1278
+ },
1279
+ {
1280
+ indexed: true,
1281
+ name: 'from',
1282
+ type: 'address',
1283
+ value: '0xA91C9eB9DE43bea6a2bcD4c8a52ed785Df44A77B',
1284
+ },
1285
+ {
1286
+ indexed: true,
1287
+ name: 'to',
1288
+ type: 'address',
1289
+ value: '0x46a3A41bd932244Dd08186e4c19F1a7E48cbcDf4',
1290
+ },
1291
+ {
1292
+ indexed: false,
1293
+ name: 'amount',
1294
+ type: 'uint256',
1295
+ value: 5_022_465_000_000_000n,
1296
+ },
1297
+ {
1298
+ indexed: false,
1299
+ name: 'input1',
1300
+ type: 'uint256',
1301
+ value: 1_707_829_046_284_662_795n,
1302
+ },
1303
+ {
1304
+ indexed: false,
1305
+ name: 'input2',
1306
+ type: 'uint256',
1307
+ value: 19_553_784_388_355_310_027_046n,
1308
+ },
1309
+ {
1310
+ indexed: false,
1311
+ name: 'output1',
1312
+ type: 'uint256',
1313
+ value: 1_702_806_581_284_662_795n,
1314
+ },
1315
+ {
1316
+ indexed: false,
1317
+ name: 'output2',
1318
+ type: 'uint256',
1319
+ value: 19_553_789_410_820_310_027_046n,
1320
+ },
1321
+ ],
1322
+ type: 'DecodedLog',
1323
+ },
1324
+ source: '0x0000000000000000000000000000000000001010',
1325
+ },
1326
+ ],
1327
+ logsBloom:
1328
+ '0x000000000000000010001000000000000000000000000000000000000000000001000000000000008000001000000000000080000200000000000000002021002000000000004000200000080010008000000000000000000021000008004000000000400202000000000000000008000000000000000000800000100000002400804000000200000000000000000000000100000000000000200000080000002a0001002000c00000000000000000000000000000000000000000000000004001000002000008000001800000040200000000400008800000148800000020000010000000000000000000000000000080000000000800080000080000100002',
1329
+ status: 'success',
1330
+ transactionHash:
1331
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1332
+ block: {
1333
+ blobGasUsed: 0n,
1334
+ excessBlobGas: 0n,
1335
+ sealFields: [],
1336
+ baseFeePerGas: 156_482_250_587n,
1337
+ difficulty: 22n,
1338
+ extraData:
1339
+ '0xd682030083626f7288676f312e31392e34856c696e757800000000000000000074d90e18124c532e93b9694bf3a89e8ef9e229b1d2b894d944350e93aa4c5415586602aabd7eaba9a1cbb17c867545d272b45f169803515715f5fe391aaf7fff00',
1340
+ gasLimit: 26_120_427n,
1341
+ gasUsed: 25_603_067n,
1342
+ hash: '0x7d9722971017939cbe42be50feee1e11b33552d9127e390d0afaa2a2c6f20414',
1343
+ logsBloom:
1344
+ '0xb7b59a7bff96effb9f7d793fb5e5ae23bb8bd74b336ef2dff9ef5f375bd67fecff79f37e1ba1fe47c6fe7d39eff976af4d7cbeefbfdafc097c5f73bffaafef4aef3e5d5ffef77c2e6c37ebfffebffceebee7edfde357df295bffbe736ff9f6ea77ff4fdf8f1ab6afef797d267db5dadf3bc534e76adff35dfbb66ad1fbffd0ef9fffffffff3eeef6dffbe815bc90dff10f3b1d9bef55fdffcd6802ecebcc7ebefe3f4f82f53ace7a2b65d3f51fdf6b99fffd0b6f390ffbff3fd75ce7fce0accadf6d371b469fcf5fbfb9f8a6e6f7ffdaf4fce7e0cdefff7fbcffff5be8ea64e99bdff7ffdd8fff09df6f9c25f5f7ea2dffd1c9df5ebc887ffce3b8756bbcbeff',
1345
+ miner: '0x0000000000000000000000000000000000000000',
1346
+ mixHash:
1347
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
1348
+ nonce: '0x0000000000000000',
1349
+ number: 37_745_682n,
1350
+ parentHash:
1351
+ '0x6a81c19267b5dc71e004610b024efc75b0f73804e92cb023239f979468d645a8',
1352
+ receiptsRoot:
1353
+ '0x4bec743770c07aa1b05c1e315b9511a41458db10120b7799f7a11fe9f4867d2e',
1354
+ sha3Uncles:
1355
+ '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
1356
+ size: 165_477n,
1357
+ stateRoot:
1358
+ '0x421cda921889a5046613ab89584fc1fc8a89d37f4d452d4e6db334d45929ae40',
1359
+ timestamp: 1_673_016_300n,
1360
+ totalDifficulty: 602_860_069n,
1361
+ transactions: [],
1362
+ transactionsRoot:
1363
+ '0xf171df672540ba26b9ed5a5975039e095aedc1a7f31ad5ff1a47d57fe526fafc',
1364
+ uncles: [],
1365
+ },
1366
+ internalTransactions: [
1367
+ {
1368
+ contractAddress: undefined,
1369
+ price: undefined,
1370
+ from: '0x00000000006c3852cbef3e08e8df289169ede581',
1371
+ to: '0xa91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1372
+ value: 10_000n,
1373
+ input: '',
1374
+ type: 'InternalTransaction',
1375
+ gas: 436_447n,
1376
+ gasUsed: 0n,
1377
+ isError: false,
1378
+ transactionHash:
1379
+ '0xad84ac3f3e56369b5c2f1ec20d73f8dfd0f402035272f6e9f210b0d99cfd0b8d',
1380
+ txType: 'call',
1381
+ currency: {
1382
+ type: 'CryptoCurrency',
1383
+ id: 'matic-network',
1384
+ name: 'Polygon',
1385
+ symbol: 'MATIC',
1386
+ market: { coingeckoId: 'matic-network', marketCapUsd: undefined },
1387
+ icon: undefined,
1388
+ updatedAt: 1_708_177_633_248,
1389
+ },
1390
+ },
1391
+ ],
1392
+ function: {
1393
+ name: 'fulfillAdvancedOrder',
1394
+ args: [
1395
+ {
1396
+ name: 'advancedOrder',
1397
+ type: 'tuple',
1398
+ value: {
1399
+ parameters: {
1400
+ offerer: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
1401
+ zone: '0x0000000000000000000000000000000000000000',
1402
+ offer: [
1403
+ {
1404
+ itemType: 3,
1405
+ token: '0xc176D9A7E3693C7A2ff4a4c4950ECEfdd61E1887',
1406
+ identifierOrCriteria: 1n,
1407
+ startAmount: 500n,
1408
+ endAmount: 500n,
1409
+ },
1410
+ ],
1411
+ consideration: [
1412
+ {
1413
+ itemType: 1,
1414
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
1415
+ identifierOrCriteria: 0n,
1416
+ startAmount: 4_999_500n,
1417
+ endAmount: 4_999_500n,
1418
+ recipient: '0xe3C3F177e76C36F6BFf1B694a951a49c97bE9670',
1419
+ },
1420
+ {
1421
+ itemType: 1,
1422
+ token: '0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619',
1423
+ identifierOrCriteria: 0n,
1424
+ startAmount: 500n,
1425
+ endAmount: 500n,
1426
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
1427
+ },
1428
+ ],
1429
+ orderType: 1,
1430
+ startTime: 1_672_906_774n,
1431
+ endTime: 1_675_585_174n,
1432
+ zoneHash:
1433
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
1434
+ salt: 24_446_860_302_761_739_304_752_683_030_156_737_591_518_664_810_215_442_929_801_250_044_107_687_051_187n,
1435
+ conduitKey:
1436
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
1437
+ totalOriginalConsiderationItems: 2n,
1438
+ },
1439
+ numerator: 1n,
1440
+ denominator: 500n,
1441
+ signature:
1442
+ '0x76a4338d0266718761a222a3d9828f632b0c1c9633a91e384eb317efd0a3871d31659189e7f4a69a21163319198502fd1508da7d1c1180b7ad02b434a619db1a1b',
1443
+ extraData: '0x',
1444
+ },
1445
+ },
1446
+ { name: 'criteriaResolvers', type: 'tuple[]', value: [] },
1447
+ {
1448
+ name: 'fulfillerConduitKey',
1449
+ type: 'bytes32',
1450
+ value:
1451
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
1452
+ },
1453
+ {
1454
+ name: 'recipient',
1455
+ type: 'address',
1456
+ value: '0x0000000000000000000000000000000000000000',
1457
+ },
1458
+ ],
1459
+ },
1460
+ erc20Transfers: [
1461
+ {
1462
+ type: 'Erc20Transfer',
1463
+ logIndex: 851,
1464
+ token: {
1465
+ contractAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1466
+ name: 'Wrapped Ether',
1467
+ symbol: 'WETH',
1468
+ decimals: 18,
1469
+ currency: {
1470
+ type: 'CryptoCurrency',
1471
+ id: 'weth',
1472
+ name: 'WETH',
1473
+ symbol: 'WETH',
1474
+ market: { coingeckoId: 'weth', marketCapUsd: undefined },
1475
+ updatedAt: 1_708_177_636_224,
1476
+ icon: undefined,
1477
+ },
1478
+ },
1479
+ from: '0xa91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1480
+ to: '0xe3c3f177e76c36f6bff1b694a951a49c97be9670',
1481
+ value: 9999n,
1482
+ price: undefined,
1483
+ },
1484
+ {
1485
+ type: 'Erc20Transfer',
1486
+ logIndex: 853,
1487
+ token: {
1488
+ contractAddress: '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619',
1489
+ name: 'Wrapped Ether',
1490
+ symbol: 'WETH',
1491
+ decimals: 18,
1492
+ currency: {
1493
+ type: 'CryptoCurrency',
1494
+ id: 'weth',
1495
+ name: 'WETH',
1496
+ symbol: 'WETH',
1497
+ market: { coingeckoId: 'weth', marketCapUsd: undefined },
1498
+ icon: undefined,
1499
+ updatedAt: 1_708_177_636_224,
1500
+ },
1501
+ },
1502
+ from: '0xa91c9eb9de43bea6a2bcd4c8a52ed785df44a77b',
1503
+ to: '0x0000a26b00c1f0df003000390027140000faa719',
1504
+ value: 1n,
1505
+ price: undefined,
1506
+ },
1507
+ ],
1508
+ erc721Transfers: [],
1509
+ erc1155Transfers: [
1510
+ {
1511
+ type: 'Erc1155Transfer',
1512
+ logIndex: 849,
1513
+ token: {
1514
+ contractAddress: '0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887',
1515
+ },
1516
+ from: '0x79b711055b9fa9b1bb49eedbd3bc8bbbaa0d5f77',
1517
+ to: '0x9c87a083fde85ffec17aa725f08fa388876981a7',
1518
+ id: 1n,
1519
+ value: 1n,
1520
+ nft: {
1521
+ type: 'Nft',
1522
+ id: 'evm_137_0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887_1',
1523
+ },
1524
+ },
1525
+ {
1526
+ type: 'Erc1155Transfer',
1527
+ logIndex: 850,
1528
+ token: {
1529
+ contractAddress: '0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887',
1530
+ },
1531
+ from: '0x161619839ebbada5d3c279e1a79c50f7fc4274d6',
1532
+ to: '0xf66c53f324529c24e29eaef7cf8467af99089c0b',
1533
+ id: 1n,
1534
+ value: 1n,
1535
+ nft: {
1536
+ type: 'Nft',
1537
+ id: 'evm_137_0xc176d9a7e3693c7a2ff4a4c4950ecefdd61e1887_1',
1538
+ },
1539
+ },
1540
+ ],
1541
+ }
1542
+ const analyzed = await analyzeSeaport({
1543
+ chain,
1544
+ transaction,
1545
+ accountAddresses: ['0x161619839ebbada5d3c279e1a79c50f7fc4274d6'],
1546
+ })
1547
+ expect(analyzed).toBeDefined()
1548
+ expect(analyzed?.accountActions).toHaveLength(1)
1549
+ expect(analyzed?.accountActions[0].action).toEqual('spam')
1550
+ })
1551
+
1552
+ it('buy nft (with native token) transaction using seaport', async () => {
1553
+ // https://polygonscan.com/tx/0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672
1554
+ const transaction: TransactionDecoded<CryptoCurrencyPrice | undefined> = {
1555
+ app: undefined,
1556
+ nativeTokenPrice: undefined,
1557
+ blockHash:
1558
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1559
+ blockNumber: 40_438_868n,
1560
+ from: '0x38835098a8accd046efa8123f9fcd5aaa2cb3a7e',
1561
+ gas: 372_881n,
1562
+ gasPrice: 116_761_672_310n,
1563
+ hash: '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1564
+ input:
1565
+ '0x0000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068ea83f205f40000000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c590000000000000000000000000000000000000000000000000000000000000000000000000000000000000000461aeb735b06295dbb85cd4f15578f0252b240cd000000000000000000000000000000000000000000000000000000000000035200000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006413f5d900000000000000000000000000000000000000000000000000000000643cd4590000000000000000000000000000000000000000000000000000000000000000360c6ebe0000000000000000000000000000000000000000b3c1e0fd6f2ab81a0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f00000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000000000000000002e00000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000008e1bc9bf0400000000000000000000000000000000a26b00c1f0df003000390027140000faa719000000000000000000000000000000000000000000000000058d15e17628000000000000000000000000000099f35b3c1fce2e1c269c485a27cfbaa402414621000000000000000000000000000000000000000000000000000000000000004090447aa453fba2aa0394a3235a18ee187eccea51f680bf3ff14817e2cdb0ec0813e0bd6c312a5c45037198c94a20a424491d603653780d127f52266caf9091b100000000360c6ebe',
1566
+ nonce: 4910,
1567
+ to: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
1568
+ transactionIndex: 45,
1569
+ value: 8_000_000_000_000_000_000n,
1570
+ type: 'legacy',
1571
+ chainId: 137,
1572
+ v: 309n,
1573
+ r: '0xe958644583852d347341c2a3037c1121eeb92db541cb5a0fd498b3173db36e30',
1574
+ s: '0x26089093a4d26f6fb4611fd316535794b70deb17ac58be7f7e5edafdc87d93ca',
1575
+ typeHex: '0x0',
1576
+ contractAddress: null,
1577
+ cumulativeGasUsed: 6_741_197n,
1578
+ effectiveGasPrice: 116_761_672_310n,
1579
+ gasUsed: 190_309n,
1580
+ logs: [
1581
+ {
1582
+ type: 'decoded',
1583
+ log: {
1584
+ address: '0x0000000000000000000000000000000000001010',
1585
+ blockHash:
1586
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1587
+ blockNumber: 40_438_868n,
1588
+ data: '0x0000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000018159829abbd56ec500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000017a692740e8236ec500000000000000000000000000000000000000000000000006f05b59d3b200000',
1589
+ logIndex: 151,
1590
+ transactionHash:
1591
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1592
+ transactionIndex: 45,
1593
+ removed: false,
1594
+ topics: [
1595
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
1596
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
1597
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
1598
+ '0x00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6',
1599
+ ],
1600
+ eventName: 'LogTransfer',
1601
+ args: [
1602
+ {
1603
+ indexed: true,
1604
+ name: 'token',
1605
+ type: 'address',
1606
+ value: '0x0000000000000000000000000000000000001010',
1607
+ },
1608
+ {
1609
+ indexed: true,
1610
+ name: 'from',
1611
+ type: 'address',
1612
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
1613
+ },
1614
+ {
1615
+ indexed: true,
1616
+ name: 'to',
1617
+ type: 'address',
1618
+ value: '0x00000000000001ad428e4906aE43D8F9852d0dD6',
1619
+ },
1620
+ {
1621
+ indexed: false,
1622
+ name: 'amount',
1623
+ type: 'uint256',
1624
+ value: 8_000_000_000_000_000_000n,
1625
+ },
1626
+ {
1627
+ indexed: false,
1628
+ name: 'input1',
1629
+ type: 'uint256',
1630
+ value: 444_277_897_257_878_482_000n,
1631
+ },
1632
+ { indexed: false, name: 'input2', type: 'uint256', value: 0n },
1633
+ {
1634
+ indexed: false,
1635
+ name: 'output1',
1636
+ type: 'uint256',
1637
+ value: 436_277_897_257_878_482_000n,
1638
+ },
1639
+ {
1640
+ indexed: false,
1641
+ name: 'output2',
1642
+ type: 'uint256',
1643
+ value: 8_000_000_000_000_000_000n,
1644
+ },
1645
+ ],
1646
+ type: 'DecodedLog',
1647
+ },
1648
+ source: '0x0000000000000000000000000000000000001010',
1649
+ },
1650
+ {
1651
+ type: 'decoded',
1652
+ log: {
1653
+ address: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
1654
+ blockHash:
1655
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1656
+ blockNumber: 40_438_868n,
1657
+ data: '0xb894a9fdce9737dccb6ef3f869c5cdd86d1b236c6852d44e91f350ddbf9b8d5900000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e0000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000012000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000461aeb735b06295dbb85cd4f15578f0252b240cd00000000000000000000000000000000000000000000000000000000000003520000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068ea83f205f40000000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c59000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008e1bc9bf0400000000000000000000000000000000a26b00c1f0df003000390027140000faa719000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000058d15e17628000000000000000000000000000099f35b3c1fce2e1c269c485a27cfbaa402414621',
1658
+ logIndex: 152,
1659
+ transactionHash:
1660
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1661
+ transactionIndex: 45,
1662
+ removed: false,
1663
+ topics: [
1664
+ '0x9d9af8e38d66c62e2c12f0225249fd9d721c54b83f48d9352c97c6cacdcb6f31',
1665
+ '0x000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
1666
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
1667
+ ],
1668
+ eventName: 'OrderFulfilled',
1669
+ args: [
1670
+ {
1671
+ indexed: false,
1672
+ name: 'orderHash',
1673
+ type: 'bytes32',
1674
+ value:
1675
+ '0xb894a9fdce9737dccb6ef3f869c5cdd86d1b236c6852d44e91f350ddbf9b8d59',
1676
+ },
1677
+ {
1678
+ indexed: true,
1679
+ name: 'offerer',
1680
+ type: 'address',
1681
+ value: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
1682
+ },
1683
+ {
1684
+ indexed: true,
1685
+ name: 'zone',
1686
+ type: 'address',
1687
+ value: '0x0000000000000000000000000000000000000000',
1688
+ },
1689
+ {
1690
+ indexed: false,
1691
+ name: 'recipient',
1692
+ type: 'address',
1693
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
1694
+ },
1695
+ {
1696
+ indexed: false,
1697
+ name: 'offer',
1698
+ type: 'tuple[]',
1699
+ value: [
1700
+ {
1701
+ itemType: 2,
1702
+ token: '0x461AeB735B06295dBB85cd4F15578F0252B240cD',
1703
+ identifier: 850n,
1704
+ amount: 1n,
1705
+ },
1706
+ ],
1707
+ },
1708
+ {
1709
+ indexed: false,
1710
+ name: 'consideration',
1711
+ type: 'tuple[]',
1712
+ value: [
1713
+ {
1714
+ itemType: 0,
1715
+ token: '0x0000000000000000000000000000000000000000',
1716
+ identifier: 0n,
1717
+ amount: 7_560_000_000_000_000_000n,
1718
+ recipient: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
1719
+ },
1720
+ {
1721
+ itemType: 0,
1722
+ token: '0x0000000000000000000000000000000000000000',
1723
+ identifier: 0n,
1724
+ amount: 40_000_000_000_000_000n,
1725
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
1726
+ },
1727
+ {
1728
+ itemType: 0,
1729
+ token: '0x0000000000000000000000000000000000000000',
1730
+ identifier: 0n,
1731
+ amount: 400_000_000_000_000_000n,
1732
+ recipient: '0x99F35B3c1FCe2E1C269c485A27CFbaA402414621',
1733
+ },
1734
+ ],
1735
+ },
1736
+ ],
1737
+ type: 'DecodedLog',
1738
+ },
1739
+ source: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
1740
+ },
1741
+ {
1742
+ type: 'decoded',
1743
+ log: {
1744
+ address: '0x461aeb735b06295dbb85cd4f15578f0252b240cd',
1745
+ blockHash:
1746
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1747
+ blockNumber: 40_438_868n,
1748
+ data: '0x',
1749
+ logIndex: 153,
1750
+ transactionHash:
1751
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1752
+ transactionIndex: 45,
1753
+ removed: false,
1754
+ topics: [
1755
+ '0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
1756
+ '0x000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
1757
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
1758
+ '0x0000000000000000000000000000000000000000000000000000000000000352',
1759
+ ],
1760
+ eventName: 'Approval',
1761
+ args: [
1762
+ {
1763
+ indexed: true,
1764
+ name: 'owner',
1765
+ type: 'address',
1766
+ value: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
1767
+ },
1768
+ {
1769
+ indexed: true,
1770
+ name: 'approved',
1771
+ type: 'address',
1772
+ value: '0x0000000000000000000000000000000000000000',
1773
+ },
1774
+ { indexed: true, name: 'tokenId', type: 'uint256', value: 850n },
1775
+ ],
1776
+ type: 'DecodedLog',
1777
+ },
1778
+ source: '0x461aeb735b06295dbb85cd4f15578f0252b240cd',
1779
+ },
1780
+ {
1781
+ type: 'decoded',
1782
+ log: {
1783
+ address: '0x461aeb735b06295dbb85cd4f15578f0252b240cd',
1784
+ blockHash:
1785
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1786
+ blockNumber: 40_438_868n,
1787
+ data: '0x',
1788
+ logIndex: 154,
1789
+ transactionHash:
1790
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1791
+ transactionIndex: 45,
1792
+ removed: false,
1793
+ topics: [
1794
+ '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef',
1795
+ '0x000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
1796
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
1797
+ '0x0000000000000000000000000000000000000000000000000000000000000352',
1798
+ ],
1799
+ eventName: 'Transfer',
1800
+ args: [
1801
+ {
1802
+ indexed: true,
1803
+ name: 'from',
1804
+ type: 'address',
1805
+ value: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
1806
+ },
1807
+ {
1808
+ indexed: true,
1809
+ name: 'to',
1810
+ type: 'address',
1811
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
1812
+ },
1813
+ { indexed: true, name: 'tokenId', type: 'uint256', value: 850n },
1814
+ ],
1815
+ type: 'DecodedLog',
1816
+ },
1817
+ source: '0x461aeb735b06295dbb85cd4f15578f0252b240cd',
1818
+ },
1819
+ {
1820
+ type: 'decoded',
1821
+ log: {
1822
+ address: '0x0000000000000000000000000000000000001010',
1823
+ blockHash:
1824
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1825
+ blockNumber: 40_438_868n,
1826
+ data: '0x000000000000000000000000000000000000000000000000008e1bc9bf0400000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000001de570e8a85bf0bb14c80000000000000000000000000000000000000000000000006e7799d37c1c0000000000000000000000000000000000000000000000001de57176c425afbf14c8',
1827
+ logIndex: 155,
1828
+ transactionHash:
1829
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1830
+ transactionIndex: 45,
1831
+ removed: false,
1832
+ topics: [
1833
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
1834
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
1835
+ '0x00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6',
1836
+ '0x0000000000000000000000000000a26b00c1f0df003000390027140000faa719',
1837
+ ],
1838
+ eventName: 'LogTransfer',
1839
+ args: [
1840
+ {
1841
+ indexed: true,
1842
+ name: 'token',
1843
+ type: 'address',
1844
+ value: '0x0000000000000000000000000000000000001010',
1845
+ },
1846
+ {
1847
+ indexed: true,
1848
+ name: 'from',
1849
+ type: 'address',
1850
+ value: '0x00000000000001ad428e4906aE43D8F9852d0dD6',
1851
+ },
1852
+ {
1853
+ indexed: true,
1854
+ name: 'to',
1855
+ type: 'address',
1856
+ value: '0x0000a26b00c1F0DF003000390027140000fAa719',
1857
+ },
1858
+ {
1859
+ indexed: false,
1860
+ name: 'amount',
1861
+ type: 'uint256',
1862
+ value: 40_000_000_000_000_000n,
1863
+ },
1864
+ {
1865
+ indexed: false,
1866
+ name: 'input1',
1867
+ type: 'uint256',
1868
+ value: 8_000_000_000_000_000_000n,
1869
+ },
1870
+ {
1871
+ indexed: false,
1872
+ name: 'input2',
1873
+ type: 'uint256',
1874
+ value: 141_181_068_333_938_877_600_968n,
1875
+ },
1876
+ {
1877
+ indexed: false,
1878
+ name: 'output1',
1879
+ type: 'uint256',
1880
+ value: 7_960_000_000_000_000_000n,
1881
+ },
1882
+ {
1883
+ indexed: false,
1884
+ name: 'output2',
1885
+ type: 'uint256',
1886
+ value: 141_181_108_333_938_877_600_968n,
1887
+ },
1888
+ ],
1889
+ type: 'DecodedLog',
1890
+ },
1891
+ source: '0x0000000000000000000000000000000000001010',
1892
+ },
1893
+ {
1894
+ type: 'decoded',
1895
+ log: {
1896
+ address: '0x0000000000000000000000000000000000001010',
1897
+ blockHash:
1898
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1899
+ blockNumber: 40_438_868n,
1900
+ data: '0x000000000000000000000000000000000000000000000000058d15e1762800000000000000000000000000000000000000000000000000006e7799d37c1c0000000000000000000000000000000000000000000000000007cd5480107797000000000000000000000000000000000000000000000000000068ea83f205f40000000000000000000000000000000000000000000000000007d2e195f1edbf0000',
1901
+ logIndex: 156,
1902
+ transactionHash:
1903
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1904
+ transactionIndex: 45,
1905
+ removed: false,
1906
+ topics: [
1907
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
1908
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
1909
+ '0x00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6',
1910
+ '0x00000000000000000000000099f35b3c1fce2e1c269c485a27cfbaa402414621',
1911
+ ],
1912
+ eventName: 'LogTransfer',
1913
+ args: [
1914
+ {
1915
+ indexed: true,
1916
+ name: 'token',
1917
+ type: 'address',
1918
+ value: '0x0000000000000000000000000000000000001010',
1919
+ },
1920
+ {
1921
+ indexed: true,
1922
+ name: 'from',
1923
+ type: 'address',
1924
+ value: '0x00000000000001ad428e4906aE43D8F9852d0dD6',
1925
+ },
1926
+ {
1927
+ indexed: true,
1928
+ name: 'to',
1929
+ type: 'address',
1930
+ value: '0x99F35B3c1FCe2E1C269c485A27CFbaA402414621',
1931
+ },
1932
+ {
1933
+ indexed: false,
1934
+ name: 'amount',
1935
+ type: 'uint256',
1936
+ value: 400_000_000_000_000_000n,
1937
+ },
1938
+ {
1939
+ indexed: false,
1940
+ name: 'input1',
1941
+ type: 'uint256',
1942
+ value: 7_960_000_000_000_000_000n,
1943
+ },
1944
+ {
1945
+ indexed: false,
1946
+ name: 'input2',
1947
+ type: 'uint256',
1948
+ value: 143_922_800_000_000_000_000n,
1949
+ },
1950
+ {
1951
+ indexed: false,
1952
+ name: 'output1',
1953
+ type: 'uint256',
1954
+ value: 7_560_000_000_000_000_000n,
1955
+ },
1956
+ {
1957
+ indexed: false,
1958
+ name: 'output2',
1959
+ type: 'uint256',
1960
+ value: 144_322_800_000_000_000_000n,
1961
+ },
1962
+ ],
1963
+ type: 'DecodedLog',
1964
+ },
1965
+ source: '0x0000000000000000000000000000000000001010',
1966
+ },
1967
+ {
1968
+ type: 'LogOriginal',
1969
+ log: {
1970
+ address: '0x99f35b3c1fce2e1c269c485a27cfbaa402414621',
1971
+ topics: [
1972
+ '0x3d0ce9bfc3ed7d6862dbb28b2dea94561fe714a1b4d019aa8af39730d1ad7c3d',
1973
+ '0x00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6',
1974
+ ],
1975
+ data: '0x000000000000000000000000000000000000000000000000058d15e176280000',
1976
+ blockNumber: 40_438_868n,
1977
+ transactionHash:
1978
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1979
+ transactionIndex: 45,
1980
+ blockHash:
1981
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1982
+ logIndex: 157,
1983
+ removed: false,
1984
+ },
1985
+ },
1986
+ {
1987
+ type: 'decoded',
1988
+ log: {
1989
+ address: '0x0000000000000000000000000000000000001010',
1990
+ blockHash:
1991
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
1992
+ blockNumber: 40_438_868n,
1993
+ data: '0x00000000000000000000000000000000000000000000000068ea83f205f4000000000000000000000000000000000000000000000000000068ea83f205f4000000000000000000000000000000000000000000000000000006d4c7cf0a67b02000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006fbf4bc1105bb020',
1994
+ logIndex: 158,
1995
+ transactionHash:
1996
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
1997
+ transactionIndex: 45,
1998
+ removed: false,
1999
+ topics: [
2000
+ '0xe6497e3ee548a3372136af2fcb0696db31fc6cf20260707645068bd3fe97f3c4',
2001
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
2002
+ '0x00000000000000000000000000000000000001ad428e4906ae43d8f9852d0dd6',
2003
+ '0x000000000000000000000000b8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
2004
+ ],
2005
+ eventName: 'LogTransfer',
2006
+ args: [
2007
+ {
2008
+ indexed: true,
2009
+ name: 'token',
2010
+ type: 'address',
2011
+ value: '0x0000000000000000000000000000000000001010',
2012
+ },
2013
+ {
2014
+ indexed: true,
2015
+ name: 'from',
2016
+ type: 'address',
2017
+ value: '0x00000000000001ad428e4906aE43D8F9852d0dD6',
2018
+ },
2019
+ {
2020
+ indexed: true,
2021
+ name: 'to',
2022
+ type: 'address',
2023
+ value: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
2024
+ },
2025
+ {
2026
+ indexed: false,
2027
+ name: 'amount',
2028
+ type: 'uint256',
2029
+ value: 7_560_000_000_000_000_000n,
2030
+ },
2031
+ {
2032
+ indexed: false,
2033
+ name: 'input1',
2034
+ type: 'uint256',
2035
+ value: 7_560_000_000_000_000_000n,
2036
+ },
2037
+ {
2038
+ indexed: false,
2039
+ name: 'input2',
2040
+ type: 'uint256',
2041
+ value: 492_237_951_336_951_840n,
2042
+ },
2043
+ { indexed: false, name: 'output1', type: 'uint256', value: 0n },
2044
+ {
2045
+ indexed: false,
2046
+ name: 'output2',
2047
+ type: 'uint256',
2048
+ value: 8_052_237_951_336_951_840n,
2049
+ },
2050
+ ],
2051
+ type: 'DecodedLog',
2052
+ },
2053
+ source: '0x0000000000000000000000000000000000001010',
2054
+ },
2055
+ {
2056
+ type: 'decoded',
2057
+ log: {
2058
+ address: '0x0000000000000000000000000000000000001010',
2059
+ blockHash:
2060
+ '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
2061
+ blockNumber: 40_438_868n,
2062
+ data: '0x00000000000000000000000000000000000000000000000000144d1b9c317ba90000000000000000000000000000000000000000000000181632d770fed8a9260000000000000000000000000000000000000000000003fd873f7102d96aee93000000000000000000000000000000000000000000000018161e8a5562a72d7d0000000000000000000000000000000000000000000003fd8753be1e759c6a3c',
2063
+ logIndex: 159,
2064
+ transactionHash:
2065
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
2066
+ transactionIndex: 45,
2067
+ removed: false,
2068
+ topics: [
2069
+ '0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63',
2070
+ '0x0000000000000000000000000000000000000000000000000000000000001010',
2071
+ '0x00000000000000000000000038835098a8accd046efa8123f9fcd5aaa2cb3a7e',
2072
+ '0x000000000000000000000000eb4f2a75cac4bbcb4d71c252e4cc80eb80bb3a34',
2073
+ ],
2074
+ eventName: 'LogFeeTransfer',
2075
+ args: [
2076
+ {
2077
+ indexed: true,
2078
+ name: 'token',
2079
+ type: 'address',
2080
+ value: '0x0000000000000000000000000000000000001010',
2081
+ },
2082
+ {
2083
+ indexed: true,
2084
+ name: 'from',
2085
+ type: 'address',
2086
+ value: '0x38835098A8AcCD046Efa8123f9fCd5AAA2CB3a7E',
2087
+ },
2088
+ {
2089
+ indexed: true,
2090
+ name: 'to',
2091
+ type: 'address',
2092
+ value: '0xeb4F2a75caC4BBCb4D71c252E4Cc80eB80bb3A34',
2093
+ },
2094
+ {
2095
+ indexed: false,
2096
+ name: 'amount',
2097
+ type: 'uint256',
2098
+ value: 5_714_280_514_157_481n,
2099
+ },
2100
+ {
2101
+ indexed: false,
2102
+ name: 'input1',
2103
+ type: 'uint256',
2104
+ value: 444_321_435_467_011_107_110n,
2105
+ },
2106
+ {
2107
+ indexed: false,
2108
+ name: 'input2',
2109
+ type: 'uint256',
2110
+ value: 18_843_871_331_633_156_779_667n,
2111
+ },
2112
+ {
2113
+ indexed: false,
2114
+ name: 'output1',
2115
+ type: 'uint256',
2116
+ value: 444_315_721_186_496_949_629n,
2117
+ },
2118
+ {
2119
+ indexed: false,
2120
+ name: 'output2',
2121
+ type: 'uint256',
2122
+ value: 18_843_877_045_913_670_937_148n,
2123
+ },
2124
+ ],
2125
+ type: 'DecodedLog',
2126
+ },
2127
+ source: '0x0000000000000000000000000000000000001010',
2128
+ },
2129
+ ],
2130
+ logsBloom:
2131
+ '0x000000000000040000000000000000000000000000000000002000000002000000000000000000010800001000001000000084000000000000000000002000000000000000000000000000084000008000000008000000000001000008000000000000000212000000830000000008010000000400000000800000100000000400000000000000000000010080000000000000000000000000000000000000002a0000000000008000000040000020000000000000810000000000000000004000000002000000000001000000000000000000000000800002148000000020000010820000000400000000800000000000000000000800000000008100100000',
2132
+ status: 'success',
2133
+ transactionHash:
2134
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
2135
+ block: {
2136
+ blobGasUsed: 0n,
2137
+ excessBlobGas: 0n,
2138
+ sealFields: [],
2139
+ baseFeePerGas: 86_735_344_001n,
2140
+ difficulty: 22n,
2141
+ extraData:
2142
+ '0xd682030383626f7288676f312e31392e35856c696e7578000000000000000000604843a4a6b1c74bc3bca90118b3e0073fee64e5fc61372f51aca387e8be0dfd4489c0bcbecaf82bb8eec2b4bff7ee615ea276e9c0a04e3e235ef24f6b0b896200',
2143
+ gasLimit: 30_000_000n,
2144
+ gasUsed: 9_166_254n,
2145
+ hash: '0x227789bcb7a2fd8b0b322c573863dacc162d2eadb01179fe7856dfb3652f56cd',
2146
+ logsBloom:
2147
+ '0x40b4015a2100d6f00001049580c538b0000402100a8212204d23882180ca483108011118a400100948249c102090d001433296612103aa6022104b128028a4488106a2012c87441824ba808f442442a0a2220c4c09000881080b08508d1582e80b0c2a281a12948330871d010151a859410a144c6901100b800c6c10c0fe4186a0711750ccac58100858a590f3c0000642938db98001001c04084ae4004420082a28037a11a846804300006c90092093f4e0812040855e0e020018448f0f445904401482009a3883540702040b040142f1c40b480c09c4190a148587688821240910aace020a050000ce01c080080921c01010b1208dd25289800a89a6146807',
2148
+ miner: '0x0000000000000000000000000000000000000000',
2149
+ mixHash:
2150
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
2151
+ nonce: '0x0000000000000000',
2152
+ number: 40_438_868n,
2153
+ parentHash:
2154
+ '0x359126ba2d53cde5e2aa63a68fb9c15307757959c48f35eed8032787027f7ff2',
2155
+ receiptsRoot:
2156
+ '0x5d390cdf80a54e1ee3a8d6661239842a43de5ee94bc455d933c0b1d538ba2d12',
2157
+ sha3Uncles:
2158
+ '0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347',
2159
+ size: 32_835n,
2160
+ stateRoot:
2161
+ '0x6d156ac8c1dea84170617d96b3be246a9707c2e8dafd68b9fbe4b77425f0bfd0',
2162
+ timestamp: 1_679_029_830n,
2163
+ totalDifficulty: 664_408_410n,
2164
+ transactions: [],
2165
+ transactionsRoot:
2166
+ '0xc963c75a38f2ad3484a8858e9d8499b5a81c108c75efa3e0701c35383b872663',
2167
+ uncles: [],
2168
+ },
2169
+ internalTransactions: [
2170
+ {
2171
+ contractAddress: undefined,
2172
+ price: undefined,
2173
+ from: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
2174
+ to: '0x0000a26b00c1f0df003000390027140000faa719',
2175
+ value: 40_000_000_000_000_000n,
2176
+ input: '',
2177
+ type: 'InternalTransaction',
2178
+ gas: 192_909n,
2179
+ gasUsed: 85n,
2180
+ isError: false,
2181
+ transactionHash:
2182
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
2183
+ txType: 'call',
2184
+ currency: {
2185
+ type: 'CryptoCurrency',
2186
+ id: 'matic-network',
2187
+ name: 'Polygon',
2188
+ symbol: 'MATIC',
2189
+ market: { coingeckoId: 'matic-network', marketCapUsd: undefined },
2190
+ icon: undefined,
2191
+ updatedAt: 1_708_238_207_600,
2192
+ },
2193
+ },
2194
+ {
2195
+ contractAddress: undefined,
2196
+ price: undefined,
2197
+ from: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
2198
+ to: '0x99f35b3c1fce2e1c269c485a27cfbaa402414621',
2199
+ value: 400_000_000_000_000_000n,
2200
+ input: '',
2201
+ type: 'InternalTransaction',
2202
+ gas: 183_462n,
2203
+ gasUsed: 6329n,
2204
+ isError: false,
2205
+ transactionHash:
2206
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
2207
+ txType: 'call',
2208
+ currency: {
2209
+ type: 'CryptoCurrency',
2210
+ id: 'matic-network',
2211
+ name: 'Polygon',
2212
+ symbol: 'MATIC',
2213
+ market: { coingeckoId: 'matic-network', marketCapUsd: undefined },
2214
+ icon: undefined,
2215
+ updatedAt: 1_708_238_207_600,
2216
+ },
2217
+ },
2218
+ {
2219
+ contractAddress: undefined,
2220
+ price: undefined,
2221
+ from: '0x00000000000001ad428e4906ae43d8f9852d0dd6',
2222
+ to: '0xb8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
2223
+ value: 7_560_000_000_000_000_000n,
2224
+ input: '',
2225
+ type: 'InternalTransaction',
2226
+ gas: 167_898n,
2227
+ gasUsed: 0n,
2228
+ isError: false,
2229
+ transactionHash:
2230
+ '0x645e7125f2ba1aee73104cf65d6aa4b471b5ddf2ce18dac271b8524f75c39672',
2231
+ txType: 'call',
2232
+ currency: {
2233
+ type: 'CryptoCurrency',
2234
+ id: 'matic-network',
2235
+ name: 'Polygon',
2236
+ symbol: 'MATIC',
2237
+ market: { coingeckoId: 'matic-network', marketCapUsd: undefined },
2238
+ icon: undefined,
2239
+ updatedAt: 1_708_238_207_600,
2240
+ },
2241
+ },
2242
+ ],
2243
+ function: {
2244
+ name: 'fulfillBasicOrder_efficient_6GL6yc',
2245
+ args: [
2246
+ {
2247
+ name: 'parameters',
2248
+ type: 'tuple',
2249
+ value: {
2250
+ considerationToken: '0x0000000000000000000000000000000000000000',
2251
+ considerationIdentifier: 0n,
2252
+ considerationAmount: 7_560_000_000_000_000_000n,
2253
+ offerer: '0xB8703bDb0EC5b15e58c0BEAe73B6fc5e68972C59',
2254
+ zone: '0x0000000000000000000000000000000000000000',
2255
+ offerToken: '0x461AeB735B06295dBB85cd4F15578F0252B240cD',
2256
+ offerIdentifier: 850n,
2257
+ offerAmount: 1n,
2258
+ basicOrderType: 0,
2259
+ startTime: 1_679_029_721n,
2260
+ endTime: 1_681_708_121n,
2261
+ zoneHash:
2262
+ '0x0000000000000000000000000000000000000000000000000000000000000000',
2263
+ salt: 24_446_860_302_761_739_304_752_683_030_156_737_591_518_664_810_215_442_929_813_335_569_817_643_169_818n,
2264
+ offererConduitKey:
2265
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
2266
+ fulfillerConduitKey:
2267
+ '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000',
2268
+ totalOriginalAdditionalRecipients: 2n,
2269
+ additionalRecipients: [
2270
+ {
2271
+ amount: 40_000_000_000_000_000n,
2272
+ recipient: '0x0000a26b00c1F0DF003000390027140000fAa719',
2273
+ },
2274
+ {
2275
+ amount: 400_000_000_000_000_000n,
2276
+ recipient: '0x99F35B3c1FCe2E1C269c485A27CFbaA402414621',
2277
+ },
2278
+ ],
2279
+ signature:
2280
+ '0x90447aa453fba2aa0394a3235a18ee187eccea51f680bf3ff14817e2cdb0ec0813e0bd6c312a5c45037198c94a20a424491d603653780d127f52266caf9091b1',
2281
+ },
2282
+ },
2283
+ ],
2284
+ },
2285
+ erc20Transfers: [],
2286
+ erc721Transfers: [
2287
+ {
2288
+ type: 'Erc721Transfer',
2289
+ logIndex: 154,
2290
+ token: {
2291
+ contractAddress: '0x461aeb735b06295dbb85cd4f15578f0252b240cd',
2292
+ name: 'Symbiogenesis Member Card',
2293
+ symbol: 'SYMCARD',
2294
+ },
2295
+ from: '0xb8703bdb0ec5b15e58c0beae73b6fc5e68972c59',
2296
+ to: '0x38835098a8accd046efa8123f9fcd5aaa2cb3a7e',
2297
+ tokenId: 850n,
2298
+ nft: {
2299
+ type: 'Nft',
2300
+ id: 'evm_137_0x461aeb735b06295dbb85cd4f15578f0252b240cd_850',
2301
+ },
2302
+ },
2303
+ ],
2304
+ erc1155Transfers: [],
2305
+ }
2306
+ const analyzed = await analyzeSeaport({
2307
+ chain,
2308
+ transaction,
2309
+ accountAddresses: ['0x38835098a8accd046efa8123f9fcd5aaa2cb3a7e'],
2310
+ })
2311
+ expect(analyzed).toBeDefined()
2312
+ expect(analyzed?.accountActions).toHaveLength(1)
2313
+ expect(analyzed?.accountActions[0].action).toBe('buy-nft')
2314
+ })
2315
+
2316
+ // TODO
2317
+ // OrderFulfilled が 2つあるタイプ
2318
+ // https://etherscan.io/tx/0xd6d865a1cd5bde2284d1d86c5bd16faa07e680f1cea36ab75a8c0a21625b5697
2319
+
2320
+ // TODO
2321
+ // sell nft & OrderFulfilled が 2つあるタイプ
2322
+ // https://etherscan.io/tx/0x9d425108f06551636d2df8413a573e56959b4cc9dcb7d4d713226da26202a0d3
2323
+ })