@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.
- package/README.md +15 -0
- package/dist/import/abis/erc1155.d.ts +245 -0
- package/dist/import/abis/erc1155.d.ts.map +1 -0
- package/dist/import/abis/erc20.d.ts +169 -0
- package/dist/import/abis/erc20.d.ts.map +1 -0
- package/dist/import/abis/erc721.d.ts +267 -0
- package/dist/import/abis/erc721.d.ts.map +1 -0
- package/dist/import/abis/index.d.ts +5 -0
- package/dist/import/abis/index.d.ts.map +1 -0
- package/dist/import/abis/weth.d.ts +214 -0
- package/dist/import/abis/weth.d.ts.map +1 -0
- package/dist/import/absoluteValue.d.mts +3 -0
- package/dist/import/absoluteValue.d.mts.map +1 -0
- package/dist/import/absoluteValue.d.ts +3 -0
- package/dist/import/absoluteValue.d.ts.map +1 -0
- package/dist/import/analyzer/analyze.d.ts +18 -0
- package/dist/import/analyzer/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/analyzer.d.ts +4 -0
- package/dist/import/analyzer/analyzer.d.ts.map +1 -0
- package/dist/import/analyzer/axieMarketplace/analyze.d.ts +4 -0
- package/dist/import/analyzer/axieMarketplace/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/axieMarketplace/index.d.ts +2 -0
- package/dist/import/analyzer/axieMarketplace/index.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts +53 -0
- package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/index.d.ts +2 -0
- package/dist/import/analyzer/createAccountActionByAction/index.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/spam.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/spam.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/trade.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/trade.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts.map +1 -0
- package/dist/import/analyzer/gasFee/analyze.d.ts +4 -0
- package/dist/import/analyzer/gasFee/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/gasFee/index.d.ts +2 -0
- package/dist/import/analyzer/gasFee/index.d.ts.map +1 -0
- package/dist/import/analyzer/index.d.ts +10 -0
- package/dist/import/analyzer/index.d.ts.map +1 -0
- package/dist/import/analyzer/json/analyze.d.ts +5 -0
- package/dist/import/analyzer/json/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorAnyLog.d.ts +55 -0
- package/dist/import/analyzer/json/generatorAnyLog.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts +54 -0
- package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts +55 -0
- package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts.map +1 -0
- package/dist/import/analyzer/json/index.d.ts +2 -0
- package/dist/import/analyzer/json/index.d.ts.map +1 -0
- package/dist/import/analyzer/json/types.d.ts +177 -0
- package/dist/import/analyzer/json/types.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/analyze.d.ts +4 -0
- package/dist/import/analyzer/seaport/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/index.d.ts +2 -0
- package/dist/import/analyzer/seaport/index.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/orderFulfilled.d.ts +139 -0
- package/dist/import/analyzer/seaport/orderFulfilled.d.ts.map +1 -0
- package/dist/import/analyzer/spam/analyze.d.ts +4 -0
- package/dist/import/analyzer/spam/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/spam/index.d.ts +2 -0
- package/dist/import/analyzer/spam/index.d.ts.map +1 -0
- package/dist/import/analyzer/swap/analyze.d.ts +4 -0
- package/dist/import/analyzer/swap/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/swap/index.d.ts +2 -0
- package/dist/import/analyzer/swap/index.d.ts.map +1 -0
- package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts +108 -0
- package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/univ2PairSwap.d.ts +84 -0
- package/dist/import/analyzer/swap/univ2PairSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/univ3PoolSwap.d.ts +96 -0
- package/dist/import/analyzer/swap/univ3PoolSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/wrappedDeposit.d.ts +36 -0
- package/dist/import/analyzer/swap/wrappedDeposit.d.ts.map +1 -0
- package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts +36 -0
- package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts.map +1 -0
- package/dist/import/analyzer/transfer/analyze.d.ts +4 -0
- package/dist/import/analyzer/transfer/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/transfer/index.d.ts +2 -0
- package/dist/import/analyzer/transfer/index.d.ts.map +1 -0
- package/dist/import/analyzer/types.d.ts +17 -0
- package/dist/import/analyzer/types.d.ts.map +1 -0
- package/dist/import/apps/index.d.ts +2 -0
- package/dist/import/apps/index.d.ts.map +1 -0
- package/dist/import/apps/types.d.ts +6 -0
- package/dist/import/apps/types.d.ts.map +1 -0
- package/dist/import/chains/definitions/arbitrumOne.d.ts +99 -0
- package/dist/import/chains/definitions/arbitrumOne.d.ts.map +1 -0
- package/dist/import/chains/definitions/astar.d.ts +64 -0
- package/dist/import/chains/definitions/astar.d.ts.map +1 -0
- package/dist/import/chains/definitions/avalancheC.d.ts +84 -0
- package/dist/import/chains/definitions/avalancheC.d.ts.map +1 -0
- package/dist/import/chains/definitions/base.d.ts +94 -0
- package/dist/import/chains/definitions/base.d.ts.map +1 -0
- package/dist/import/chains/definitions/bsc.d.ts +144 -0
- package/dist/import/chains/definitions/bsc.d.ts.map +1 -0
- package/dist/import/chains/definitions/defineChain.d.ts +3 -0
- package/dist/import/chains/definitions/defineChain.d.ts.map +1 -0
- package/dist/import/chains/definitions/ethereum.d.ts +129 -0
- package/dist/import/chains/definitions/ethereum.d.ts.map +1 -0
- package/dist/import/chains/definitions/fantom.d.ts +89 -0
- package/dist/import/chains/definitions/fantom.d.ts.map +1 -0
- package/dist/import/chains/definitions/index.d.ts +16 -0
- package/dist/import/chains/definitions/index.d.ts.map +1 -0
- package/dist/import/chains/definitions/linea.d.ts +69 -0
- package/dist/import/chains/definitions/linea.d.ts.map +1 -0
- package/dist/import/chains/definitions/mantle.d.ts +62 -0
- package/dist/import/chains/definitions/mantle.d.ts.map +1 -0
- package/dist/import/chains/definitions/metis.d.ts +52 -0
- package/dist/import/chains/definitions/metis.d.ts.map +1 -0
- package/dist/import/chains/definitions/moonbeam.d.ts +84 -0
- package/dist/import/chains/definitions/moonbeam.d.ts.map +1 -0
- package/dist/import/chains/definitions/moonriver.d.ts +64 -0
- package/dist/import/chains/definitions/moonriver.d.ts.map +1 -0
- package/dist/import/chains/definitions/optimism.d.ts +104 -0
- package/dist/import/chains/definitions/optimism.d.ts.map +1 -0
- package/dist/import/chains/definitions/polygonPos.d.ts +84 -0
- package/dist/import/chains/definitions/polygonPos.d.ts.map +1 -0
- package/dist/import/chains/definitions/ronin.d.ts +49 -0
- package/dist/import/chains/definitions/ronin.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/constants.d.ts +2 -0
- package/dist/import/chains/externals/defillama/constants.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts +10 -0
- package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/index.d.ts +2 -0
- package/dist/import/chains/externals/defillama/index.d.ts.map +1 -0
- package/dist/import/chains/externals/index.d.ts +2 -0
- package/dist/import/chains/externals/index.d.ts.map +1 -0
- package/dist/import/chains/index.d.ts +4 -0
- package/dist/import/chains/index.d.ts.map +1 -0
- package/dist/import/chains/types/chain.d.ts +22 -0
- package/dist/import/chains/types/chain.d.ts.map +1 -0
- package/dist/import/chains/types/index.d.ts +3 -0
- package/dist/import/chains/types/index.d.ts.map +1 -0
- package/dist/import/chains/types/rpc.d.ts +7 -0
- package/dist/import/chains/types/rpc.d.ts.map +1 -0
- package/dist/import/clients/definitions/defineClient.d.ts +3 -0
- package/dist/import/clients/definitions/defineClient.d.ts.map +1 -0
- package/dist/import/clients/definitions/index.d.ts +2 -0
- package/dist/import/clients/definitions/index.d.ts.map +1 -0
- package/dist/import/clients/definitions/viemClient.d.ts +59 -0
- package/dist/import/clients/definitions/viemClient.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts +13 -0
- package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBalance.d.ts +15 -0
- package/dist/import/clients/externals/viem/getBalance.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBlock.d.ts +14 -0
- package/dist/import/clients/externals/viem/getBlock.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBlockNumber.d.ts +13 -0
- package/dist/import/clients/externals/viem/getBlockNumber.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getEventLogs.d.ts +19 -0
- package/dist/import/clients/externals/viem/getEventLogs.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransaction.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransaction.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransactionCount.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransactionCount.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/index.d.ts +11 -0
- package/dist/import/clients/externals/viem/index.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/middleware.d.ts +23 -0
- package/dist/import/clients/externals/viem/middleware.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/multicall.d.ts +14 -0
- package/dist/import/clients/externals/viem/multicall.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/readContract.d.ts +14 -0
- package/dist/import/clients/externals/viem/readContract.d.ts.map +1 -0
- package/dist/import/clients/index.d.ts +3 -0
- package/dist/import/clients/index.d.ts.map +1 -0
- package/dist/import/clients/types.d.ts +64 -0
- package/dist/import/clients/types.d.ts.map +1 -0
- package/dist/import/createBigDecimal.d.mts +6 -0
- package/dist/import/createBigDecimal.d.mts.map +1 -0
- package/dist/import/createBigDecimal.d.ts +3 -0
- package/dist/import/createBigDecimal.d.ts.map +1 -0
- package/dist/import/creates/createEvmAccount.d.ts +5 -0
- package/dist/import/creates/createEvmAccount.d.ts.map +1 -0
- package/dist/import/decoder/decode.d.ts +3 -0
- package/dist/import/decoder/decode.d.ts.map +1 -0
- package/dist/import/decoder/decoder.d.ts +3 -0
- package/dist/import/decoder/decoder.d.ts.map +1 -0
- package/dist/import/decoder/index.d.ts +6 -0
- package/dist/import/decoder/index.d.ts.map +1 -0
- package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts +4 -0
- package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts.map +1 -0
- package/dist/import/decoder/parseErc20TransferLogs.d.ts +8 -0
- package/dist/import/decoder/parseErc20TransferLogs.d.ts.map +1 -0
- package/dist/import/decoder/parseErc721TransferLogs.d.ts +8 -0
- package/dist/import/decoder/parseErc721TransferLogs.d.ts.map +1 -0
- package/dist/import/decoder/types.d.ts +16 -0
- package/dist/import/decoder/types.d.ts.map +1 -0
- package/dist/import/divide.d.mts +8 -0
- package/dist/import/divide.d.mts.map +1 -0
- package/dist/import/divide.d.ts +3 -0
- package/dist/import/divide.d.ts.map +1 -0
- package/dist/import/equals.d.mts +3 -0
- package/dist/import/equals.d.mts.map +1 -0
- package/dist/import/equals.d.ts +3 -0
- package/dist/import/equals.d.ts.map +1 -0
- package/dist/import/explorers/definitions/blockscout.d.ts +60 -0
- package/dist/import/explorers/definitions/blockscout.d.ts.map +1 -0
- package/dist/import/explorers/definitions/defineExplorer.d.ts +3 -0
- package/dist/import/explorers/definitions/defineExplorer.d.ts.map +1 -0
- package/dist/import/explorers/definitions/etherscan.d.ts +61 -0
- package/dist/import/explorers/definitions/etherscan.d.ts.map +1 -0
- package/dist/import/explorers/definitions/index.d.ts +5 -0
- package/dist/import/explorers/definitions/index.d.ts.map +1 -0
- package/dist/import/explorers/definitions/roninExplorer.d.ts +62 -0
- package/dist/import/explorers/definitions/roninExplorer.d.ts.map +1 -0
- package/dist/import/explorers/definitions/routescan.d.ts +19 -0
- package/dist/import/explorers/definitions/routescan.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts +11 -0
- package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts +30 -0
- package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts +62 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts +54 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts +77 -0
- package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts +80 -0
- package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/index.d.ts +7 -0
- package/dist/import/explorers/externals/blockscout/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/middleware.d.ts +7 -0
- package/dist/import/explorers/externals/blockscout/middleware.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts +12 -0
- package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts +55 -0
- package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts +83 -0
- package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts +81 -0
- package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts +81 -0
- package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts +62 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts +55 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts +84 -0
- package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/index.d.ts +9 -0
- package/dist/import/explorers/externals/etherscan/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/middleware.d.ts +7 -0
- package/dist/import/explorers/externals/etherscan/middleware.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts +57 -0
- package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts +70 -0
- package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts +64 -0
- package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/index.d.ts +4 -0
- package/dist/import/explorers/externals/roninExplorer/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/middleware.d.ts +5 -0
- package/dist/import/explorers/externals/roninExplorer/middleware.d.ts.map +1 -0
- package/dist/import/explorers/index.d.ts +3 -0
- package/dist/import/explorers/index.d.ts.map +1 -0
- package/dist/import/explorers/types.d.ts +43 -0
- package/dist/import/explorers/types.d.ts.map +1 -0
- package/dist/import/fix.d.mts +7 -0
- package/dist/import/fix.d.mts.map +1 -0
- package/dist/import/fix.d.ts +3 -0
- package/dist/import/fix.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts +15 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts +8 -0
- package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts +8 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/index.d.ts +3 -0
- package/dist/import/getAccountsTransactionFulls/index.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/types.d.ts +87 -0
- package/dist/import/getAccountsTransactionFulls/types.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withD.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withD.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withDA.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withDA.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withP.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withP.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withPD.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withPD.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withPDA.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withPDA.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionDetail.d.ts +5 -0
- package/dist/import/getTransactionFull/getTransactionDetail.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionFull.d.ts +11 -0
- package/dist/import/getTransactionFull/getTransactionFull.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts +4 -0
- package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts.map +1 -0
- package/dist/import/getTransactionFull/index.d.ts +3 -0
- package/dist/import/getTransactionFull/index.d.ts.map +1 -0
- package/dist/import/getTransactionFull/types.d.ts +63 -0
- package/dist/import/getTransactionFull/types.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withD.d.ts +4 -0
- package/dist/import/getTransactionFull/withD.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withDA.d.ts +4 -0
- package/dist/import/getTransactionFull/withDA.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withP.d.ts +4 -0
- package/dist/import/getTransactionFull/withP.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withPD.d.ts +4 -0
- package/dist/import/getTransactionFull/withPD.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withPDA.d.ts +4 -0
- package/dist/import/getTransactionFull/withPDA.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withUndefined.d.ts +4 -0
- package/dist/import/getTransactionFull/withUndefined.d.ts.map +1 -0
- package/dist/import/greaterThan.d.mts +3 -0
- package/dist/import/greaterThan.d.mts.map +1 -0
- package/dist/import/greaterThan.d.ts +3 -0
- package/dist/import/greaterThan.d.ts.map +1 -0
- package/dist/import/index.d.mts +15 -0
- package/dist/import/index.d.mts.map +1 -0
- package/dist/import/index.d.ts +11 -0
- package/dist/import/index.d.ts.map +1 -0
- package/dist/import/index.mjs +1 -0
- package/dist/import/minus.d.mts +3 -0
- package/dist/import/minus.d.mts.map +1 -0
- package/dist/import/minus.d.ts +3 -0
- package/dist/import/minus.d.ts.map +1 -0
- package/dist/import/plus.d.mts +3 -0
- package/dist/import/plus.d.mts.map +1 -0
- package/dist/import/plus.d.ts +3 -0
- package/dist/import/plus.d.ts.map +1 -0
- package/dist/import/removeTrailingZeros.d.mts +6 -0
- package/dist/import/removeTrailingZeros.d.mts.map +1 -0
- package/dist/import/removeTrailingZeros.d.ts +3 -0
- package/dist/import/removeTrailingZeros.d.ts.map +1 -0
- package/dist/import/times.d.ts +3 -0
- package/dist/import/times.d.ts.map +1 -0
- package/dist/import/toStringBigDecimal.d.mts +6 -0
- package/dist/import/toStringBigDecimal.d.mts.map +1 -0
- package/dist/import/toStringBigDecimal.d.ts +3 -0
- package/dist/import/toStringBigDecimal.d.ts.map +1 -0
- package/dist/import/type.d.mts +5 -0
- package/dist/import/type.d.mts.map +1 -0
- package/dist/import/type.d.ts +5 -0
- package/dist/import/type.d.ts.map +1 -0
- package/dist/import/types/erc1155.d.ts +16 -0
- package/dist/import/types/erc1155.d.ts.map +1 -0
- package/dist/import/types/erc20.d.ts +19 -0
- package/dist/import/types/erc20.d.ts.map +1 -0
- package/dist/import/types/erc721.d.ts +18 -0
- package/dist/import/types/erc721.d.ts.map +1 -0
- package/dist/import/types/evmAccount.d.ts +10 -0
- package/dist/import/types/evmAccount.d.ts.map +1 -0
- package/dist/import/types/hex.d.ts +5 -0
- package/dist/import/types/hex.d.ts.map +1 -0
- package/dist/import/types/index.d.ts +12 -0
- package/dist/import/types/index.d.ts.map +1 -0
- package/dist/import/types/input.d.ts +26 -0
- package/dist/import/types/input.d.ts.map +1 -0
- package/dist/import/types/internalTransaction.d.ts +18 -0
- package/dist/import/types/internalTransaction.d.ts.map +1 -0
- package/dist/import/types/log.d.ts +118 -0
- package/dist/import/types/log.d.ts.map +1 -0
- package/dist/import/types/transaction.d.ts +44 -0
- package/dist/import/types/transaction.d.ts.map +1 -0
- package/dist/import/utils/bigint.d.ts +3 -0
- package/dist/import/utils/bigint.d.ts.map +1 -0
- package/dist/import/utils/index.d.ts +4 -0
- package/dist/import/utils/index.d.ts.map +1 -0
- package/dist/import/utils/timeout.d.ts +2 -0
- package/dist/import/utils/timeout.d.ts.map +1 -0
- package/dist/import/utils/types.d.ts +12 -0
- package/dist/import/utils/types.d.ts.map +1 -0
- package/dist/require/absoluteValue.d.ts +3 -0
- package/dist/require/absoluteValue.d.ts.map +1 -0
- package/dist/require/createBigDecimal.d.ts +6 -0
- package/dist/require/createBigDecimal.d.ts.map +1 -0
- package/dist/require/divide.d.ts +2 -0
- package/dist/require/divide.d.ts.map +1 -0
- package/dist/require/equals.d.ts +3 -0
- package/dist/require/equals.d.ts.map +1 -0
- package/dist/require/fix.d.ts +7 -0
- package/dist/require/fix.d.ts.map +1 -0
- package/dist/require/greaterThan.d.ts +3 -0
- package/dist/require/greaterThan.d.ts.map +1 -0
- package/dist/require/index.cjs +46 -0
- package/dist/require/index.d.cts +2 -0
- package/dist/require/index.d.cts.map +1 -0
- package/dist/require/index.d.ts +11 -0
- package/dist/require/index.d.ts.map +1 -0
- package/dist/require/minus.d.ts +3 -0
- package/dist/require/minus.d.ts.map +1 -0
- package/dist/require/plus.d.ts +3 -0
- package/dist/require/plus.d.ts.map +1 -0
- package/dist/require/removeTrailingZeros.d.ts +6 -0
- package/dist/require/removeTrailingZeros.d.ts.map +1 -0
- package/dist/require/times.d.ts +8 -0
- package/dist/require/times.d.ts.map +1 -0
- package/dist/require/toStringBigDecimal.d.ts +6 -0
- package/dist/require/toStringBigDecimal.d.ts.map +1 -0
- package/dist/require/type.d.ts +5 -0
- package/dist/require/type.d.ts.map +1 -0
- package/package.json +85 -0
- package/src/abis/erc1155.ts +314 -0
- package/src/abis/erc20.ts +222 -0
- package/src/abis/erc721.ts +346 -0
- package/src/abis/index.ts +4 -0
- package/src/abis/weth.ts +153 -0
- package/src/analyzer/analyze.ts +85 -0
- package/src/analyzer/analyzer.ts +5 -0
- package/src/analyzer/axieMarketplace/analyze.ts +326 -0
- package/src/analyzer/axieMarketplace/index.ts +1 -0
- package/src/analyzer/createAccountActionByAction/addLiquidity.ts +60 -0
- package/src/analyzer/createAccountActionByAction/atomicArbitrage.ts +115 -0
- package/src/analyzer/createAccountActionByAction/bridgeFrom.ts +61 -0
- package/src/analyzer/createAccountActionByAction/bridgeTo.ts +61 -0
- package/src/analyzer/createAccountActionByAction/buyNft.ts +106 -0
- package/src/analyzer/createAccountActionByAction/createAccountActionByAction.ts +181 -0
- package/src/analyzer/createAccountActionByAction/deposit.ts +64 -0
- package/src/analyzer/createAccountActionByAction/depositWithBond.ts +60 -0
- package/src/analyzer/createAccountActionByAction/freeMintNft.ts +54 -0
- package/src/analyzer/createAccountActionByAction/index.ts +1 -0
- package/src/analyzer/createAccountActionByAction/removeLiquidity.ts +60 -0
- package/src/analyzer/createAccountActionByAction/spam.ts +79 -0
- package/src/analyzer/createAccountActionByAction/trade.ts +105 -0
- package/src/analyzer/createAccountActionByAction/transactionFee.ts +51 -0
- package/src/analyzer/createAccountActionByAction/transfer.ts +95 -0
- package/src/analyzer/createAccountActionByAction/withdraw.ts +61 -0
- package/src/analyzer/createAccountActionByAction/withdrawWithBond.ts +60 -0
- package/src/analyzer/gasFee/analyze.test.ts +6 -0
- package/src/analyzer/gasFee/analyze.ts +72 -0
- package/src/analyzer/gasFee/index.ts +1 -0
- package/src/analyzer/index.ts +9 -0
- package/src/analyzer/json/analyze.test.ts +1819 -0
- package/src/analyzer/json/analyze.ts +536 -0
- package/src/analyzer/json/generatorAnyLog.ts +207 -0
- package/src/analyzer/json/generatorAnyTokenTransfer.ts +118 -0
- package/src/analyzer/json/generatorSpecificTokenTransfer.ts +425 -0
- package/src/analyzer/json/index.ts +1 -0
- package/src/analyzer/json/types.ts +239 -0
- package/src/analyzer/seaport/analyze.test.ts +2323 -0
- package/src/analyzer/seaport/analyze.ts +917 -0
- package/src/analyzer/seaport/index.ts +1 -0
- package/src/analyzer/seaport/orderFulfilled.ts +131 -0
- package/src/analyzer/spam/analyze.ts +219 -0
- package/src/analyzer/spam/index.ts +1 -0
- package/src/analyzer/swap/analyze.test.ts +2401 -0
- package/src/analyzer/swap/analyze.ts +939 -0
- package/src/analyzer/swap/index.ts +1 -0
- package/src/analyzer/swap/traderJoeLBPairSwap.ts +92 -0
- package/src/analyzer/swap/univ2PairSwap.ts +77 -0
- package/src/analyzer/swap/univ3PoolSwap.ts +83 -0
- package/src/analyzer/swap/wrappedDeposit.ts +51 -0
- package/src/analyzer/swap/wrappedWithdrawal.ts +53 -0
- package/src/analyzer/tests.ts +2 -0
- package/src/analyzer/transfer/analyze.test.ts +6 -0
- package/src/analyzer/transfer/analyze.ts +209 -0
- package/src/analyzer/transfer/index.ts +1 -0
- package/src/analyzer/types.ts +44 -0
- package/src/apps/index.ts +1 -0
- package/src/apps/types.ts +10 -0
- package/src/chains/definitions/arbitrumOne.test.ts +50 -0
- package/src/chains/definitions/arbitrumOne.ts +133 -0
- package/src/chains/definitions/astar.test.ts +51 -0
- package/src/chains/definitions/astar.ts +93 -0
- package/src/chains/definitions/avalancheC.test.ts +50 -0
- package/src/chains/definitions/avalancheC.ts +115 -0
- package/src/chains/definitions/base.test.ts +50 -0
- package/src/chains/definitions/base.ts +125 -0
- package/src/chains/definitions/bsc.test.ts +50 -0
- package/src/chains/definitions/bsc.ts +182 -0
- package/src/chains/definitions/defineChain.ts +7 -0
- package/src/chains/definitions/ethereum.test.ts +50 -0
- package/src/chains/definitions/ethereum.ts +169 -0
- package/src/chains/definitions/fantom.test.ts +50 -0
- package/src/chains/definitions/fantom.ts +123 -0
- package/src/chains/definitions/index.ts +88 -0
- package/src/chains/definitions/linea.test.ts +50 -0
- package/src/chains/definitions/linea.ts +95 -0
- package/src/chains/definitions/mantle.test.ts +50 -0
- package/src/chains/definitions/mantle.ts +75 -0
- package/src/chains/definitions/metis.test.ts +50 -0
- package/src/chains/definitions/metis.ts +60 -0
- package/src/chains/definitions/moonbeam.test.ts +50 -0
- package/src/chains/definitions/moonbeam.ts +117 -0
- package/src/chains/definitions/moonriver.test.ts +50 -0
- package/src/chains/definitions/moonriver.ts +94 -0
- package/src/chains/definitions/optimism.test.ts +50 -0
- package/src/chains/definitions/optimism.ts +139 -0
- package/src/chains/definitions/polygonPos.test.ts +50 -0
- package/src/chains/definitions/polygonPos.ts +121 -0
- package/src/chains/definitions/ronin.test.ts +50 -0
- package/src/chains/definitions/ronin.ts +75 -0
- package/src/chains/definitions/tests.ts +2884 -0
- package/src/chains/externals/defillama/constants.ts +1 -0
- package/src/chains/externals/defillama/getBlockOfTimestamp.test.ts +12 -0
- package/src/chains/externals/defillama/getBlockOfTimestamp.ts +26 -0
- package/src/chains/externals/defillama/index.ts +1 -0
- package/src/chains/externals/index.ts +1 -0
- package/src/chains/index.ts +62 -0
- package/src/chains/types/chain.ts +22 -0
- package/src/chains/types/index.ts +2 -0
- package/src/chains/types/rpc.ts +6 -0
- package/src/clients/definitions/defineClient.ts +7 -0
- package/src/clients/definitions/index.ts +1 -0
- package/src/clients/definitions/viemClient.ts +86 -0
- package/src/clients/externals/viem/estimateFeesPerGas.ts +23 -0
- package/src/clients/externals/viem/getBalance.ts +25 -0
- package/src/clients/externals/viem/getBlock.ts +29 -0
- package/src/clients/externals/viem/getBlockNumber.ts +23 -0
- package/src/clients/externals/viem/getEventLogs.test.ts +22 -0
- package/src/clients/externals/viem/getEventLogs.ts +40 -0
- package/src/clients/externals/viem/getTransaction.ts +25 -0
- package/src/clients/externals/viem/getTransactionCount.ts +25 -0
- package/src/clients/externals/viem/getTransactionReceipt.ts +25 -0
- package/src/clients/externals/viem/index.ts +10 -0
- package/src/clients/externals/viem/middleware.ts +437 -0
- package/src/clients/externals/viem/multicall.test.ts +26 -0
- package/src/clients/externals/viem/multicall.ts +27 -0
- package/src/clients/externals/viem/readContract.test.ts +20 -0
- package/src/clients/externals/viem/readContract.ts +38 -0
- package/src/clients/externals/viem/tests.ts +957 -0
- package/src/clients/index.ts +2 -0
- package/src/clients/types.ts +113 -0
- package/src/creates/createEvmAccount.ts +12 -0
- package/src/decoder/decode.test.ts +324 -0
- package/src/decoder/decode.ts +716 -0
- package/src/decoder/decoder.ts +6 -0
- package/src/decoder/index.ts +5 -0
- package/src/decoder/parseErc1155TransferSingleLogs.ts +40 -0
- package/src/decoder/parseErc20TransferLogs.ts +35 -0
- package/src/decoder/parseErc721TransferLogs.ts +40 -0
- package/src/decoder/tests.ts +502 -0
- package/src/decoder/types.ts +21 -0
- package/src/explorers/definitions/blockscout.test.ts +124 -0
- package/src/explorers/definitions/blockscout.ts +205 -0
- package/src/explorers/definitions/defineExplorer.ts +7 -0
- package/src/explorers/definitions/etherscan.test.ts +123 -0
- package/src/explorers/definitions/etherscan.ts +279 -0
- package/src/explorers/definitions/index.ts +4 -0
- package/src/explorers/definitions/roninExplorer.ts +150 -0
- package/src/explorers/definitions/routescan.ts +57 -0
- package/src/explorers/externals/blockscout/getBlockNumberOfTimestamp.ts +67 -0
- package/src/explorers/externals/blockscout/getContractByAddress.ts +81 -0
- package/src/explorers/externals/blockscout/getInternalTransactionsByAddress.ts +120 -0
- package/src/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.ts +87 -0
- package/src/explorers/externals/blockscout/getNormalTransactionsByAddress.ts +116 -0
- package/src/explorers/externals/blockscout/getTokenTransfersByAddress.ts +127 -0
- package/src/explorers/externals/blockscout/index.ts +6 -0
- package/src/explorers/externals/blockscout/middleware.ts +56 -0
- package/src/explorers/externals/defillama/getBlockNumberOfTimestamp.ts +28 -0
- package/src/explorers/externals/defillama/index.ts +1 -0
- package/src/explorers/externals/etherscan/getBlockNumberOfTimestamp.ts +66 -0
- package/src/explorers/externals/etherscan/getContractByAddress.ts +86 -0
- package/src/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.ts +133 -0
- package/src/explorers/externals/etherscan/getErc20TokenTransfersByAddress.ts +125 -0
- package/src/explorers/externals/etherscan/getErc721TokenTransfersByAddress.ts +125 -0
- package/src/explorers/externals/etherscan/getInternalTransactionsByAddress.ts +117 -0
- package/src/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.ts +91 -0
- package/src/explorers/externals/etherscan/getNormalTransactionsByAddress.ts +122 -0
- package/src/explorers/externals/etherscan/index.ts +8 -0
- package/src/explorers/externals/etherscan/middleware.ts +77 -0
- package/src/explorers/externals/roninExplorer/getInternalTransactionByHash.ts +80 -0
- package/src/explorers/externals/roninExplorer/getNormalTransactionsByAddress.ts +79 -0
- package/src/explorers/externals/roninExplorer/getTokenTransfersByAddress.ts +81 -0
- package/src/explorers/externals/roninExplorer/index.ts +3 -0
- package/src/explorers/externals/roninExplorer/middleware.ts +49 -0
- package/src/explorers/index.ts +7 -0
- package/src/explorers/types.ts +56 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.test.ts +22 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.ts +46 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.ts +106 -0
- package/src/getAccountsTransactionFulls/getDecodedTransactionsPrices.ts +97 -0
- package/src/getAccountsTransactionFulls/getHashesAndInternalTxs.ts +65 -0
- package/src/getAccountsTransactionFulls/getTransactionDetail.ts +49 -0
- package/src/getAccountsTransactionFulls/getTransactionDetails.ts +39 -0
- package/src/getAccountsTransactionFulls/getTransactionsApps.ts +42 -0
- package/src/getAccountsTransactionFulls/index.ts +2 -0
- package/src/getAccountsTransactionFulls/types.ts +122 -0
- package/src/getAccountsTransactionFulls/withD.ts +80 -0
- package/src/getAccountsTransactionFulls/withDA.ts +112 -0
- package/src/getAccountsTransactionFulls/withP.ts +120 -0
- package/src/getAccountsTransactionFulls/withPD.ts +141 -0
- package/src/getAccountsTransactionFulls/withPDA.ts +167 -0
- package/src/getAccountsTransactionFulls/withUndefined.ts +88 -0
- package/src/getContractAbi.ts +15 -0
- package/src/getTransactionFull/getTransactionDetail.ts +47 -0
- package/src/getTransactionFull/getTransactionFull.test.ts +34 -0
- package/src/getTransactionFull/getTransactionFull.ts +30 -0
- package/src/getTransactionFull/getTransactionFullCustom.ts +91 -0
- package/src/getTransactionFull/index.ts +2 -0
- package/src/getTransactionFull/types.ts +98 -0
- package/src/getTransactionFull/withD.ts +57 -0
- package/src/getTransactionFull/withDA.ts +78 -0
- package/src/getTransactionFull/withP.ts +69 -0
- package/src/getTransactionFull/withPD.ts +119 -0
- package/src/getTransactionFull/withPDA.ts +147 -0
- package/src/getTransactionFull/withUndefined.ts +39 -0
- package/src/index.cts +1 -0
- package/src/index.mts +110 -0
- package/src/tests.ts +1 -0
- package/src/types/erc1155.ts +17 -0
- package/src/types/erc20.ts +22 -0
- package/src/types/erc721.ts +19 -0
- package/src/types/evmAccount.ts +12 -0
- package/src/types/hex.test.ts +10 -0
- package/src/types/hex.ts +9 -0
- package/src/types/index.ts +16 -0
- package/src/types/input.ts +27 -0
- package/src/types/internalTransaction.ts +19 -0
- package/src/types/log.ts +68 -0
- package/src/types/transaction.ts +78 -0
- package/src/utils/bigint.ts +5 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/timeout.ts +5 -0
- package/src/utils/types.ts +12 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdraw.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/createAccountActionByAction/withdraw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACrB,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAK5B,SAAS,QAAQ,EAAE;;;;;;iCAyCtC,CAAA"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { AccountAction, AccountActionType, CryptoCurrencyPrice, NormalActionWithdrawWithBond } from '@0xtorch/core';
|
|
2
|
+
import type { EvmAccount, LowerHex, TransactionDecoded, TransactionSource } from '../../types';
|
|
3
|
+
export declare const createAccountActionByActionWithdrawWithBond: <Price extends CryptoCurrencyPrice | undefined>(action: NormalActionWithdrawWithBond<{
|
|
4
|
+
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
5
|
+
readonly category: "evm";
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly chainId: number;
|
|
8
|
+
readonly address: `0x${Lowercase<string>}`;
|
|
9
|
+
}, Price>, transaction: {
|
|
10
|
+
from: `0x${string}`;
|
|
11
|
+
to: `0x${string}` | null;
|
|
12
|
+
value: bigint;
|
|
13
|
+
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
14
|
+
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
15
|
+
gas: bigint;
|
|
16
|
+
nonce: number;
|
|
17
|
+
gasPrice?: bigint | undefined;
|
|
18
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
19
|
+
maxFeePerGas?: bigint | undefined;
|
|
20
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
21
|
+
accessList?: import("viem").AccessList | undefined;
|
|
22
|
+
blockNumber: bigint;
|
|
23
|
+
hash: `0x${string}`;
|
|
24
|
+
yParity?: number | undefined;
|
|
25
|
+
blockHash: `0x${string}`;
|
|
26
|
+
input: `0x${string}`;
|
|
27
|
+
r: `0x${string}`;
|
|
28
|
+
s: `0x${string}`;
|
|
29
|
+
transactionIndex: number;
|
|
30
|
+
typeHex: `0x${string}` | null;
|
|
31
|
+
v: bigint;
|
|
32
|
+
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
33
|
+
readonly chainId: number;
|
|
34
|
+
logsBloom: `0x${string}`;
|
|
35
|
+
blobGasUsed?: bigint | undefined;
|
|
36
|
+
gasUsed: bigint;
|
|
37
|
+
transactionHash: `0x${string}`;
|
|
38
|
+
contractAddress: `0x${string}` | null;
|
|
39
|
+
status: "success" | "reverted";
|
|
40
|
+
cumulativeGasUsed: bigint;
|
|
41
|
+
blobGasPrice?: bigint | undefined;
|
|
42
|
+
effectiveGasPrice: bigint;
|
|
43
|
+
root?: `0x${string}` | undefined;
|
|
44
|
+
readonly function: import("../../types/input").InputFunction | undefined;
|
|
45
|
+
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
46
|
+
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
47
|
+
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
48
|
+
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
49
|
+
readonly logs: readonly import("../../types").LogData[];
|
|
50
|
+
readonly app: import("@0xtorch/core").App | undefined;
|
|
51
|
+
readonly nativeTokenPrice: Price;
|
|
52
|
+
}, accountAddresses: readonly LowerHex[]) => AccountAction<"transfer" | "withdraw" | "deposit" | "add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "withdraw-with-bond" | "income" | "move" | "nft-royalty" | "sell-nft" | "swap-income" | "swap-nft" | "swap-transfer", `evm_${number}_0x${Lowercase<string>}`, {
|
|
53
|
+
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
54
|
+
readonly category: "evm";
|
|
55
|
+
readonly name: string;
|
|
56
|
+
readonly chainId: number;
|
|
57
|
+
readonly address: `0x${Lowercase<string>}`;
|
|
58
|
+
} | undefined, Price> | undefined;
|
|
59
|
+
//# sourceMappingURL=withdrawWithBond.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withdrawWithBond.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/createAccountActionByAction/withdrawWithBond.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,iBAAiB,EACjB,mBAAmB,EACnB,4BAA4B,EAC7B,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EACV,UAAU,EACV,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EAClB,MAAM,aAAa,CAAA;AAGpB,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAKpC,SAAS,QAAQ,EAAE;;;;;;iCAwCtC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CryptoCurrencyPrice } from '@0xtorch/core';
|
|
2
|
+
import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
|
|
3
|
+
export declare const analyzeGasFee: <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
|
|
4
|
+
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/gasFee/analyze.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,mBAAmB,EAEpB,MAAM,eAAe,CAAA;AAMtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAGpE,eAAO,MAAM,aAAa,uKAmBzB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/gasFee/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { analyze } from './analyze';
|
|
2
|
+
export { analyzer } from './analyzer';
|
|
3
|
+
export { analyzeAxieMarketplace } from './axieMarketplace';
|
|
4
|
+
export { analyzeGasFee } from './gasFee';
|
|
5
|
+
export { createAnalyzeByJsonRule } from './json';
|
|
6
|
+
export { analyzeSeaport } from './seaport';
|
|
7
|
+
export { analyzeSwap } from './swap';
|
|
8
|
+
export { analyzeTransfer } from './transfer';
|
|
9
|
+
export type { AnalyzeParameters, AnalyzeReturnType, Analyzer } from './types';
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/analyzer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,uBAAuB,EAAE,MAAM,QAAQ,CAAA;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAC5C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { CryptoCurrencyPrice } from '@0xtorch/core';
|
|
2
|
+
import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
|
|
3
|
+
import type { AnalyzeRule } from './types';
|
|
4
|
+
export declare const createAnalyzeByJsonRule: (rule: AnalyzeRule) => <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
|
|
5
|
+
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/analyze.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,mBAAmB,EAEpB,MAAM,eAAe,CAAA;AAItB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAIpE,OAAO,KAAK,EAAE,WAAW,EAAiC,MAAM,SAAS,CAAA;AAEzE,eAAO,MAAM,uBAAuB,SAC3B,WAAW,0KA0SjB,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
+
import type { Chain } from '../../chains';
|
|
3
|
+
import type { EvmAccount, LogData, TransactionDecoded } from '../../types';
|
|
4
|
+
import type { ActionGeneratorAnyLog } from './types';
|
|
5
|
+
export declare const generateActionsByAnyLogGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorAnyLog, chain: Chain, transaction: {
|
|
6
|
+
from: `0x${string}`;
|
|
7
|
+
to: `0x${string}` | null;
|
|
8
|
+
value: bigint;
|
|
9
|
+
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
10
|
+
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
11
|
+
gas: bigint;
|
|
12
|
+
nonce: number;
|
|
13
|
+
gasPrice?: bigint | undefined;
|
|
14
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
15
|
+
maxFeePerGas?: bigint | undefined;
|
|
16
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
17
|
+
accessList?: import("viem").AccessList | undefined;
|
|
18
|
+
blockNumber: bigint;
|
|
19
|
+
hash: `0x${string}`;
|
|
20
|
+
yParity?: number | undefined;
|
|
21
|
+
blockHash: `0x${string}`;
|
|
22
|
+
input: `0x${string}`;
|
|
23
|
+
r: `0x${string}`;
|
|
24
|
+
s: `0x${string}`;
|
|
25
|
+
transactionIndex: number;
|
|
26
|
+
typeHex: `0x${string}` | null;
|
|
27
|
+
v: bigint;
|
|
28
|
+
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
29
|
+
readonly chainId: number;
|
|
30
|
+
logsBloom: `0x${string}`;
|
|
31
|
+
blobGasUsed?: bigint | undefined;
|
|
32
|
+
gasUsed: bigint;
|
|
33
|
+
transactionHash: `0x${string}`;
|
|
34
|
+
contractAddress: `0x${string}` | null;
|
|
35
|
+
status: "success" | "reverted";
|
|
36
|
+
cumulativeGasUsed: bigint;
|
|
37
|
+
blobGasPrice?: bigint | undefined;
|
|
38
|
+
effectiveGasPrice: bigint;
|
|
39
|
+
root?: `0x${string}` | undefined;
|
|
40
|
+
readonly function: import("../../types/input").InputFunction | undefined;
|
|
41
|
+
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
42
|
+
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
43
|
+
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
44
|
+
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
45
|
+
readonly logs: readonly LogData[];
|
|
46
|
+
readonly app: import("@0xtorch/core").App | undefined;
|
|
47
|
+
readonly nativeTokenPrice: Price;
|
|
48
|
+
}) => NormalAction<"transfer" | "withdraw" | "deposit" | "add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "withdraw-with-bond", {
|
|
49
|
+
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
50
|
+
readonly category: "evm";
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly chainId: number;
|
|
53
|
+
readonly address: `0x${Lowercase<string>}`;
|
|
54
|
+
}, Price>[];
|
|
55
|
+
//# sourceMappingURL=generatorAnyLog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatorAnyLog.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/generatorAnyLog.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAEP,kBAAkB,EACnB,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EACV,qBAAqB,EAGtB,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,gCAAgC,6DAGhC,qBAAqB,SACzB,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAqEb,CAAA"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
+
import type { EvmAccount, TransactionDecoded } from '../../types';
|
|
3
|
+
import type { ActionGeneratorAnyTokenTransfer } from './types';
|
|
4
|
+
export declare const generateActionsByAnyTokenTransferGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorAnyTokenTransfer, transaction: {
|
|
5
|
+
from: `0x${string}`;
|
|
6
|
+
to: `0x${string}` | null;
|
|
7
|
+
value: bigint;
|
|
8
|
+
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
9
|
+
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
10
|
+
gas: bigint;
|
|
11
|
+
nonce: number;
|
|
12
|
+
gasPrice?: bigint | undefined;
|
|
13
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
14
|
+
maxFeePerGas?: bigint | undefined;
|
|
15
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
16
|
+
accessList?: import("viem").AccessList | undefined;
|
|
17
|
+
blockNumber: bigint;
|
|
18
|
+
hash: `0x${string}`;
|
|
19
|
+
yParity?: number | undefined;
|
|
20
|
+
blockHash: `0x${string}`;
|
|
21
|
+
input: `0x${string}`;
|
|
22
|
+
r: `0x${string}`;
|
|
23
|
+
s: `0x${string}`;
|
|
24
|
+
transactionIndex: number;
|
|
25
|
+
typeHex: `0x${string}` | null;
|
|
26
|
+
v: bigint;
|
|
27
|
+
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
28
|
+
readonly chainId: number;
|
|
29
|
+
logsBloom: `0x${string}`;
|
|
30
|
+
blobGasUsed?: bigint | undefined;
|
|
31
|
+
gasUsed: bigint;
|
|
32
|
+
transactionHash: `0x${string}`;
|
|
33
|
+
contractAddress: `0x${string}` | null;
|
|
34
|
+
status: "success" | "reverted";
|
|
35
|
+
cumulativeGasUsed: bigint;
|
|
36
|
+
blobGasPrice?: bigint | undefined;
|
|
37
|
+
effectiveGasPrice: bigint;
|
|
38
|
+
root?: `0x${string}` | undefined;
|
|
39
|
+
readonly function: import("../../types/input").InputFunction | undefined;
|
|
40
|
+
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
41
|
+
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
42
|
+
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
43
|
+
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
44
|
+
readonly logs: readonly import("../../types").LogData[];
|
|
45
|
+
readonly app: import("@0xtorch/core").App | undefined;
|
|
46
|
+
readonly nativeTokenPrice: Price;
|
|
47
|
+
}) => NormalAction<"transfer" | "withdraw" | "deposit" | "add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "withdraw-with-bond", {
|
|
48
|
+
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
49
|
+
readonly category: "evm";
|
|
50
|
+
readonly name: string;
|
|
51
|
+
readonly chainId: number;
|
|
52
|
+
readonly address: `0x${Lowercase<string>}`;
|
|
53
|
+
}, Price>[];
|
|
54
|
+
//# sourceMappingURL=generatorAnyTokenTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatorAnyTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/generatorAnyTokenTransfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAY,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAC3E,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,SAAS,CAAA;AAE9D,eAAO,MAAM,0CAA0C,6DAG1C,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAwG3C,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ActionType, CryptoCurrencyPrice, NormalAction } from '@0xtorch/core';
|
|
2
|
+
import type { Chain } from '../../chains';
|
|
3
|
+
import type { EvmAccount, TransactionDecoded } from '../../types';
|
|
4
|
+
import type { ActionGeneratorSpecificTokenTransfer } from './types';
|
|
5
|
+
export declare const generateActionBySpecificTokenTransferGenerator: <Price extends CryptoCurrencyPrice | undefined>(generator: ActionGeneratorSpecificTokenTransfer, chain: Chain, transaction: {
|
|
6
|
+
from: `0x${string}`;
|
|
7
|
+
to: `0x${string}` | null;
|
|
8
|
+
value: bigint;
|
|
9
|
+
readonly type: "legacy" | "eip2930" | "eip1559" | "eip4844";
|
|
10
|
+
readonly block: import("viem").Block<bigint, false, "latest" | "earliest" | "safe" | "finalized">;
|
|
11
|
+
gas: bigint;
|
|
12
|
+
nonce: number;
|
|
13
|
+
gasPrice?: bigint | undefined;
|
|
14
|
+
maxFeePerBlobGas?: bigint | undefined;
|
|
15
|
+
maxFeePerGas?: bigint | undefined;
|
|
16
|
+
maxPriorityFeePerGas?: bigint | undefined;
|
|
17
|
+
accessList?: import("viem").AccessList | undefined;
|
|
18
|
+
blockNumber: bigint;
|
|
19
|
+
hash: `0x${string}`;
|
|
20
|
+
yParity?: number | undefined;
|
|
21
|
+
blockHash: `0x${string}`;
|
|
22
|
+
input: `0x${string}`;
|
|
23
|
+
r: `0x${string}`;
|
|
24
|
+
s: `0x${string}`;
|
|
25
|
+
transactionIndex: number;
|
|
26
|
+
typeHex: `0x${string}` | null;
|
|
27
|
+
v: bigint;
|
|
28
|
+
blobVersionedHashes?: `0x${string}`[] | undefined;
|
|
29
|
+
readonly chainId: number;
|
|
30
|
+
logsBloom: `0x${string}`;
|
|
31
|
+
blobGasUsed?: bigint | undefined;
|
|
32
|
+
gasUsed: bigint;
|
|
33
|
+
transactionHash: `0x${string}`;
|
|
34
|
+
contractAddress: `0x${string}` | null;
|
|
35
|
+
status: "success" | "reverted";
|
|
36
|
+
cumulativeGasUsed: bigint;
|
|
37
|
+
blobGasPrice?: bigint | undefined;
|
|
38
|
+
effectiveGasPrice: bigint;
|
|
39
|
+
root?: `0x${string}` | undefined;
|
|
40
|
+
readonly function: import("../../types/input").InputFunction | undefined;
|
|
41
|
+
readonly internalTransactions: readonly import("../../types").InternalTransaction<Price>[];
|
|
42
|
+
readonly erc20Transfers: readonly import("../../types").Erc20Transfer<Price>[];
|
|
43
|
+
readonly erc721Transfers: readonly import("../../types").Erc721Transfer[];
|
|
44
|
+
readonly erc1155Transfers: readonly import("../../types").Erc1155Transfer[];
|
|
45
|
+
readonly logs: readonly import("../../types").LogData[];
|
|
46
|
+
readonly app: import("@0xtorch/core").App | undefined;
|
|
47
|
+
readonly nativeTokenPrice: Price;
|
|
48
|
+
}) => NormalAction<"transfer" | "withdraw" | "deposit" | "add-liquidity" | "atomic-arbitrage" | "bridge-from" | "bridge-to" | "buy-nft" | "deposit-with-bond" | "free-mint-nft" | "remove-liquidity" | "spam" | "trade" | "transaction-fee" | "withdraw-with-bond", {
|
|
49
|
+
readonly id: `evm_${number}_0x${Lowercase<string>}`;
|
|
50
|
+
readonly category: "evm";
|
|
51
|
+
readonly name: string;
|
|
52
|
+
readonly chainId: number;
|
|
53
|
+
readonly address: `0x${Lowercase<string>}`;
|
|
54
|
+
}, Price>;
|
|
55
|
+
//# sourceMappingURL=generatorSpecificTokenTransfer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generatorSpecificTokenTransfer.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/generatorSpecificTokenTransfer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,UAAU,EACV,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAY,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAE3E,OAAO,KAAK,EACV,oCAAoC,EAIrC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8CAA8C,6DAG9C,oCAAoC,SACxC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAwCb,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import type { ActionType } from '@0xtorch/core';
|
|
2
|
+
import type { LowerHex } from '../../types';
|
|
3
|
+
export type AnalyzeRule = {
|
|
4
|
+
readonly chainId: number | undefined;
|
|
5
|
+
readonly from: LowerHex[] | undefined;
|
|
6
|
+
readonly to: LowerHex[] | undefined;
|
|
7
|
+
readonly value: 'plus' | 'zero' | undefined;
|
|
8
|
+
readonly functionSignature: LowerHex;
|
|
9
|
+
readonly functionInterface: string | undefined;
|
|
10
|
+
readonly logsPatterns: readonly LogsPattern[];
|
|
11
|
+
readonly internalsPatterns: readonly InternalsPattern[] | undefined;
|
|
12
|
+
readonly parameterMatchPatterns: readonly ParameterMatchPattern[] | undefined;
|
|
13
|
+
readonly generators: readonly ActionGenerator[];
|
|
14
|
+
};
|
|
15
|
+
type ParameterMatchPattern = {
|
|
16
|
+
readonly base: ParameterBase;
|
|
17
|
+
readonly compare: ParameterIndex;
|
|
18
|
+
};
|
|
19
|
+
export type ParameterBase = ParameterIndexDefault | ParameterIndexFunction | ParameterBaseLog | ParameterBaseInternal;
|
|
20
|
+
type ParameterBaseLog = {
|
|
21
|
+
readonly type: 'log';
|
|
22
|
+
readonly signature: LowerHex;
|
|
23
|
+
readonly indexedCount: number;
|
|
24
|
+
readonly index: number;
|
|
25
|
+
readonly argIndex: number;
|
|
26
|
+
};
|
|
27
|
+
type ParameterBaseInternal = {
|
|
28
|
+
readonly type: 'internal';
|
|
29
|
+
readonly index: number;
|
|
30
|
+
readonly key: 'from' | 'to' | 'value';
|
|
31
|
+
};
|
|
32
|
+
export type ParameterIndex = ParameterIndexDefault | ParameterIndexFunction | ParameterIndexLog | ParameterIndexInternal;
|
|
33
|
+
type ParameterIndexDefault = {
|
|
34
|
+
readonly type: 'from' | 'to' | 'value';
|
|
35
|
+
};
|
|
36
|
+
type ParameterIndexFunction = {
|
|
37
|
+
readonly type: 'function';
|
|
38
|
+
readonly argIndex: number;
|
|
39
|
+
};
|
|
40
|
+
type ParameterIndexLog = {
|
|
41
|
+
readonly type: 'log';
|
|
42
|
+
readonly signature: LowerHex;
|
|
43
|
+
readonly indexedCount: number;
|
|
44
|
+
readonly index: 'some' | 'every' | number;
|
|
45
|
+
readonly argIndex: number;
|
|
46
|
+
};
|
|
47
|
+
type ParameterIndexInternal = {
|
|
48
|
+
readonly type: 'internal';
|
|
49
|
+
readonly index: 'some' | 'every' | number;
|
|
50
|
+
readonly key: 'from' | 'to' | 'value';
|
|
51
|
+
};
|
|
52
|
+
type LogsPattern = LogsPatternExact | LogsPatternPartial;
|
|
53
|
+
type LogsPatternExact = {
|
|
54
|
+
readonly matchType: 'exact';
|
|
55
|
+
readonly items: readonly {
|
|
56
|
+
readonly signature: LowerHex;
|
|
57
|
+
readonly indexedCount: number;
|
|
58
|
+
readonly args: readonly {
|
|
59
|
+
readonly type: 'to-lower-string-value';
|
|
60
|
+
readonly index: number;
|
|
61
|
+
readonly value: string;
|
|
62
|
+
}[] | undefined;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
type LogsPatternPartial = {
|
|
66
|
+
readonly matchType: 'partial';
|
|
67
|
+
readonly signature: LowerHex;
|
|
68
|
+
readonly indexedCount: number;
|
|
69
|
+
/** undefined の場合は 1つ以上の任意の数の一致する log を持つ */
|
|
70
|
+
readonly logCount: number | undefined;
|
|
71
|
+
readonly args: readonly {
|
|
72
|
+
readonly type: 'to-lower-string-value';
|
|
73
|
+
readonly index: number;
|
|
74
|
+
readonly value: string;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
};
|
|
77
|
+
type InternalsPattern = InternalsPatternPartial;
|
|
78
|
+
type InternalsPatternPartial = {
|
|
79
|
+
readonly type: 'partial';
|
|
80
|
+
readonly from: LowerHex | undefined;
|
|
81
|
+
readonly to: LowerHex | undefined;
|
|
82
|
+
readonly value: 'plus' | 'zero' | undefined;
|
|
83
|
+
/** undefined の場合は 1つ以上の任意の数の一致する internal transaction を持つ */
|
|
84
|
+
readonly count: number | undefined;
|
|
85
|
+
};
|
|
86
|
+
type ActionGenerator = ActionGeneratorAnyTokenTransfer | ActionGeneratorAnyLog | ActionGeneratorSpecificTokenTransfer;
|
|
87
|
+
/** 指定した token type の 全ての token transfer を個別に指定した action として生成する generator */
|
|
88
|
+
export type ActionGeneratorAnyTokenTransfer = {
|
|
89
|
+
readonly type: 'any-token-transfer';
|
|
90
|
+
readonly token: 'erc20' | 'erc721' | 'erc1155';
|
|
91
|
+
readonly action: ActionType;
|
|
92
|
+
readonly comment: string | undefined;
|
|
93
|
+
readonly target: 'from' | 'to' | 'none';
|
|
94
|
+
};
|
|
95
|
+
/** 指定した全ての log を個別に指定した action として生成する generator */
|
|
96
|
+
export type ActionGeneratorAnyLog = {
|
|
97
|
+
readonly type: 'any-log';
|
|
98
|
+
readonly action: ActionType;
|
|
99
|
+
readonly comment: string | undefined;
|
|
100
|
+
readonly target: 'from' | 'to' | 'none';
|
|
101
|
+
readonly signature: LowerHex;
|
|
102
|
+
readonly indexedCount: number;
|
|
103
|
+
readonly token: ActionGeneratorAnyLogToken;
|
|
104
|
+
readonly from: ActionGeneratorAnyLogAddress;
|
|
105
|
+
readonly to: ActionGeneratorAnyLogAddress;
|
|
106
|
+
readonly amount: ActionGeneratorAnyLogAmount;
|
|
107
|
+
};
|
|
108
|
+
type ActionGeneratorAnyLogToken = ActionGeneratorAnyLogTokenNative;
|
|
109
|
+
type ActionGeneratorAnyLogTokenNative = {
|
|
110
|
+
readonly token: 'native';
|
|
111
|
+
};
|
|
112
|
+
export type ActionGeneratorAnyLogAddress = ActionGeneratorAnyLogAddressDefault | ActionGeneratorAnyLogAddressFixValue | ActionGeneratorAnyLogAddressTarget | ActionGeneratorAnyLogAddressLog;
|
|
113
|
+
type ActionGeneratorAnyLogAddressDefault = {
|
|
114
|
+
readonly type: 'from' | 'to';
|
|
115
|
+
};
|
|
116
|
+
type ActionGeneratorAnyLogAddressFixValue = {
|
|
117
|
+
readonly type: 'fix-value';
|
|
118
|
+
readonly value: LowerHex;
|
|
119
|
+
};
|
|
120
|
+
type ActionGeneratorAnyLogAddressTarget = {
|
|
121
|
+
readonly type: 'target';
|
|
122
|
+
readonly argIndex: number;
|
|
123
|
+
};
|
|
124
|
+
type ActionGeneratorAnyLogAddressLog = {
|
|
125
|
+
readonly type: 'log';
|
|
126
|
+
readonly signature: LowerHex;
|
|
127
|
+
readonly indexedCount: number;
|
|
128
|
+
readonly index: number;
|
|
129
|
+
readonly argIndex: number;
|
|
130
|
+
};
|
|
131
|
+
export type ActionGeneratorAnyLogAmount = ActionGeneratorAnyLogAmountDefault | ActionGeneratorAnyLogAmountFixValue | ActionGeneratorAnyLogAmountTarget | ActionGeneratorAnyLogAmountLog;
|
|
132
|
+
type ActionGeneratorAnyLogAmountDefault = {
|
|
133
|
+
readonly type: 'value';
|
|
134
|
+
};
|
|
135
|
+
type ActionGeneratorAnyLogAmountFixValue = {
|
|
136
|
+
readonly type: 'fix-value';
|
|
137
|
+
readonly value: bigint;
|
|
138
|
+
};
|
|
139
|
+
type ActionGeneratorAnyLogAmountTarget = {
|
|
140
|
+
readonly type: 'target';
|
|
141
|
+
readonly argIndex: number;
|
|
142
|
+
};
|
|
143
|
+
type ActionGeneratorAnyLogAmountLog = {
|
|
144
|
+
readonly type: 'log';
|
|
145
|
+
readonly signature: LowerHex;
|
|
146
|
+
readonly indexedCount: number;
|
|
147
|
+
readonly index: number;
|
|
148
|
+
readonly argIndex: number;
|
|
149
|
+
};
|
|
150
|
+
/** 個別の token transfer 毎に指定した action を生成する generator */
|
|
151
|
+
export type ActionGeneratorSpecificTokenTransfer = {
|
|
152
|
+
readonly type: 'specific-token-transfer';
|
|
153
|
+
readonly action: ActionType;
|
|
154
|
+
readonly comment: string | undefined;
|
|
155
|
+
readonly transfers: readonly ActionTransferGenerator[];
|
|
156
|
+
};
|
|
157
|
+
type ActionTransferGenerator = ActionTransferGeneratorFromTokenTransfer | ActionTransferGeneratorFromTokenTransferWithCondition;
|
|
158
|
+
export type ActionTransferGeneratorFromTokenTransfer = {
|
|
159
|
+
readonly type: 'token-transfer';
|
|
160
|
+
readonly token: 'erc20' | 'erc721' | 'erc1155' | 'value' | 'internal';
|
|
161
|
+
readonly transferIndex: 'any' | number;
|
|
162
|
+
readonly target: 'from' | 'to' | 'none';
|
|
163
|
+
};
|
|
164
|
+
export type ActionTransferGeneratorFromTokenTransferWithCondition = {
|
|
165
|
+
readonly type: 'token-transfer-with-condition';
|
|
166
|
+
readonly token: 'erc20' | 'erc721' | 'erc1155' | 'internal';
|
|
167
|
+
readonly conditions: readonly TokenTransferCondition[];
|
|
168
|
+
readonly target: 'from' | 'to' | 'none';
|
|
169
|
+
};
|
|
170
|
+
type TokenTransferCondition = TokenTransferConditionAddress;
|
|
171
|
+
export type TokenTransferConditionAddress = {
|
|
172
|
+
readonly type: 'from' | 'to';
|
|
173
|
+
readonly condition: ConditionAddress;
|
|
174
|
+
};
|
|
175
|
+
type ConditionAddress = ActionGeneratorAnyLogAddressDefault | ActionGeneratorAnyLogAddressFixValue | ActionGeneratorAnyLogAddressLog;
|
|
176
|
+
export {};
|
|
177
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/json/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAA;IACrC,QAAQ,CAAC,EAAE,EAAE,QA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QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAA;IACrE,QAAQ,CAAC,aAAa,EAAE,KAAK,GAAG,MAAM,CAAA;IACtC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAA;CACxC,CAAA;AAED,MAAM,MAAM,qDAAqD,GAAG;IAClE,QAAQ,CAAC,IAAI,EAAE,+BAA+B,CAAA;IAC9C,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAA;IAC3D,QAAQ,CAAC,UAAU,EAAE,SAAS,sBAAsB,EAAE,CAAA;IACtD,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAAA;CACxC,CAAA;AAED,KAAK,sBAAsB,GAAG,6BAA6B,CAAA;AAE3D,MAAM,MAAM,6BAA6B,GAAG;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,QAAQ,CAAC,SAAS,EAAE,gBAAgB,CAAA;CACrC,CAAA;AAED,KAAK,gBAAgB,GACjB,mCAAmC,GACnC,oCAAoC,GACpC,+BAA+B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { CryptoCurrencyPrice } from '@0xtorch/core';
|
|
2
|
+
import type { AnalyzeParameters, AnalyzeReturnType } from '../types';
|
|
3
|
+
export declare const analyzeSeaport: <Price extends CryptoCurrencyPrice | undefined>({ chain, transaction, accountAddresses, }: AnalyzeParameters<Price>) => Promise<AnalyzeReturnType<Price> | undefined>;
|
|
4
|
+
//# sourceMappingURL=analyze.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyze.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/seaport/analyze.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAMV,mBAAmB,EAEpB,MAAM,eAAe,CAAA;AAgBtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAIpE,eAAO,MAAM,cAAc,uKAqa1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/analyzer/seaport/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { DecodedLog } from '../../types';
|
|
3
|
+
export declare const parseToOrderFulfilledLog: (log: DecodedLog) => OrderFulfilledLog | undefined;
|
|
4
|
+
declare const orderFulfilledArgumentsSchema: z.ZodTuple<[z.ZodObject<{
|
|
5
|
+
indexed: z.ZodLiteral<false>;
|
|
6
|
+
type: z.ZodLiteral<"bytes32">;
|
|
7
|
+
value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
value: `0x${Lowercase<string>}`;
|
|
10
|
+
type: "bytes32";
|
|
11
|
+
indexed: false;
|
|
12
|
+
}, {
|
|
13
|
+
value: string;
|
|
14
|
+
type: "bytes32";
|
|
15
|
+
indexed: false;
|
|
16
|
+
}>, z.ZodObject<{
|
|
17
|
+
indexed: z.ZodLiteral<true>;
|
|
18
|
+
type: z.ZodLiteral<"address">;
|
|
19
|
+
value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
|
21
|
+
value: `0x${Lowercase<string>}`;
|
|
22
|
+
type: "address";
|
|
23
|
+
indexed: true;
|
|
24
|
+
}, {
|
|
25
|
+
value: string;
|
|
26
|
+
type: "address";
|
|
27
|
+
indexed: true;
|
|
28
|
+
}>, z.ZodObject<{
|
|
29
|
+
indexed: z.ZodLiteral<true>;
|
|
30
|
+
type: z.ZodLiteral<"address">;
|
|
31
|
+
value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
value: `0x${Lowercase<string>}`;
|
|
34
|
+
type: "address";
|
|
35
|
+
indexed: true;
|
|
36
|
+
}, {
|
|
37
|
+
value: string;
|
|
38
|
+
type: "address";
|
|
39
|
+
indexed: true;
|
|
40
|
+
}>, z.ZodObject<{
|
|
41
|
+
indexed: z.ZodLiteral<false>;
|
|
42
|
+
type: z.ZodLiteral<"address">;
|
|
43
|
+
value: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
value: `0x${Lowercase<string>}`;
|
|
46
|
+
type: "address";
|
|
47
|
+
indexed: false;
|
|
48
|
+
}, {
|
|
49
|
+
value: string;
|
|
50
|
+
type: "address";
|
|
51
|
+
indexed: false;
|
|
52
|
+
}>, z.ZodObject<{
|
|
53
|
+
indexed: z.ZodLiteral<false>;
|
|
54
|
+
type: z.ZodLiteral<"tuple[]">;
|
|
55
|
+
value: z.ZodArray<z.ZodObject<{
|
|
56
|
+
itemType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
57
|
+
token: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
58
|
+
identifier: z.ZodUnion<[z.ZodBigInt, z.ZodEffects<z.ZodString, bigint, string>]>;
|
|
59
|
+
amount: z.ZodUnion<[z.ZodBigInt, z.ZodEffects<z.ZodString, bigint, string>]>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
amount: bigint;
|
|
62
|
+
itemType: 0 | 3 | 2 | 1;
|
|
63
|
+
token: `0x${Lowercase<string>}`;
|
|
64
|
+
identifier: bigint;
|
|
65
|
+
}, {
|
|
66
|
+
amount: string | bigint;
|
|
67
|
+
itemType: 0 | 3 | 2 | 1;
|
|
68
|
+
token: string;
|
|
69
|
+
identifier: string | bigint;
|
|
70
|
+
}>, "many">;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
value: {
|
|
73
|
+
amount: bigint;
|
|
74
|
+
itemType: 0 | 3 | 2 | 1;
|
|
75
|
+
token: `0x${Lowercase<string>}`;
|
|
76
|
+
identifier: bigint;
|
|
77
|
+
}[];
|
|
78
|
+
type: "tuple[]";
|
|
79
|
+
indexed: false;
|
|
80
|
+
}, {
|
|
81
|
+
value: {
|
|
82
|
+
amount: string | bigint;
|
|
83
|
+
itemType: 0 | 3 | 2 | 1;
|
|
84
|
+
token: string;
|
|
85
|
+
identifier: string | bigint;
|
|
86
|
+
}[];
|
|
87
|
+
type: "tuple[]";
|
|
88
|
+
indexed: false;
|
|
89
|
+
}>, z.ZodObject<{
|
|
90
|
+
indexed: z.ZodLiteral<false>;
|
|
91
|
+
type: z.ZodLiteral<"tuple[]">;
|
|
92
|
+
value: z.ZodArray<z.ZodObject<{
|
|
93
|
+
itemType: z.ZodUnion<[z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
94
|
+
token: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
95
|
+
identifier: z.ZodUnion<[z.ZodBigInt, z.ZodEffects<z.ZodString, bigint, string>]>;
|
|
96
|
+
amount: z.ZodUnion<[z.ZodBigInt, z.ZodEffects<z.ZodString, bigint, string>]>;
|
|
97
|
+
recipient: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
amount: bigint;
|
|
100
|
+
itemType: 0 | 3 | 2 | 1;
|
|
101
|
+
token: `0x${Lowercase<string>}`;
|
|
102
|
+
identifier: bigint;
|
|
103
|
+
recipient: `0x${Lowercase<string>}`;
|
|
104
|
+
}, {
|
|
105
|
+
amount: string | bigint;
|
|
106
|
+
itemType: 0 | 3 | 2 | 1;
|
|
107
|
+
token: string;
|
|
108
|
+
identifier: string | bigint;
|
|
109
|
+
recipient: string;
|
|
110
|
+
}>, "many">;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
value: {
|
|
113
|
+
amount: bigint;
|
|
114
|
+
itemType: 0 | 3 | 2 | 1;
|
|
115
|
+
token: `0x${Lowercase<string>}`;
|
|
116
|
+
identifier: bigint;
|
|
117
|
+
recipient: `0x${Lowercase<string>}`;
|
|
118
|
+
}[];
|
|
119
|
+
type: "tuple[]";
|
|
120
|
+
indexed: false;
|
|
121
|
+
}, {
|
|
122
|
+
value: {
|
|
123
|
+
amount: string | bigint;
|
|
124
|
+
itemType: 0 | 3 | 2 | 1;
|
|
125
|
+
token: string;
|
|
126
|
+
identifier: string | bigint;
|
|
127
|
+
recipient: string;
|
|
128
|
+
}[];
|
|
129
|
+
type: "tuple[]";
|
|
130
|
+
indexed: false;
|
|
131
|
+
}>], null>;
|
|
132
|
+
type OrderFulfilledArguments = z.infer<typeof orderFulfilledArgumentsSchema>;
|
|
133
|
+
export type OrderFulfilledLog = Omit<DecodedLog, 'type' | 'args'> & {
|
|
134
|
+
readonly type: 'OrderFulfilledLog';
|
|
135
|
+
/** [orderHash, offerer, zone, recipient, offer, consideration] */
|
|
136
|
+
readonly args: OrderFulfilledArguments;
|
|
137
|
+
};
|
|
138
|
+
export {};
|
|
139
|
+
//# sourceMappingURL=orderFulfilled.d.ts.map
|