@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,63 @@
|
|
|
1
|
+
import type { CryptoCurrencyDataSource, CryptoCurrencyPrice, FiatCurrency } from '@0xtorch/core';
|
|
2
|
+
import type { Analyzer } from '../analyzer';
|
|
3
|
+
import type { AppDataSource } from '../apps';
|
|
4
|
+
import type { Chain } from '../chains';
|
|
5
|
+
import type { Decoder } from '../decoder';
|
|
6
|
+
import type { Hex, TransactionFull } from '../types';
|
|
7
|
+
export type GetTransactionFullCustomParameters = GetTransactionFullCustomParametersAllUndefined | GetTransactionFullCustomParametersP | GetTransactionFullCustomParametersPD | GetTransactionFullCustomParametersPDA | GetTransactionFullCustomParametersD | GetTransactionFullCustomParametersDA;
|
|
8
|
+
export type GetTransactionFullCustomParametersAllUndefined = {
|
|
9
|
+
readonly chain: Chain;
|
|
10
|
+
readonly hash: Hex;
|
|
11
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
12
|
+
readonly priceDataSource: undefined;
|
|
13
|
+
readonly fiat: undefined;
|
|
14
|
+
readonly decoder: undefined;
|
|
15
|
+
readonly analyzer: undefined;
|
|
16
|
+
};
|
|
17
|
+
export type GetTransactionFullCustomParametersP = {
|
|
18
|
+
readonly chain: Chain;
|
|
19
|
+
readonly hash: Hex;
|
|
20
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
21
|
+
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
22
|
+
readonly fiat: FiatCurrency;
|
|
23
|
+
readonly decoder: undefined;
|
|
24
|
+
readonly analyzer: undefined;
|
|
25
|
+
};
|
|
26
|
+
export type GetTransactionFullCustomParametersPD = {
|
|
27
|
+
readonly chain: Chain;
|
|
28
|
+
readonly hash: Hex;
|
|
29
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
30
|
+
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
31
|
+
readonly fiat: FiatCurrency;
|
|
32
|
+
readonly decoder: Decoder;
|
|
33
|
+
readonly analyzer: undefined;
|
|
34
|
+
};
|
|
35
|
+
export type GetTransactionFullCustomParametersPDA = {
|
|
36
|
+
readonly chain: Chain;
|
|
37
|
+
readonly hash: Hex;
|
|
38
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
39
|
+
readonly priceDataSource: CryptoCurrencyDataSource;
|
|
40
|
+
readonly fiat: FiatCurrency;
|
|
41
|
+
readonly decoder: Decoder;
|
|
42
|
+
readonly analyzer: Analyzer<CryptoCurrencyPrice | undefined>;
|
|
43
|
+
};
|
|
44
|
+
export type GetTransactionFullCustomParametersD = {
|
|
45
|
+
readonly chain: Chain;
|
|
46
|
+
readonly hash: Hex;
|
|
47
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
48
|
+
readonly priceDataSource: undefined;
|
|
49
|
+
readonly fiat: undefined;
|
|
50
|
+
readonly decoder: Decoder;
|
|
51
|
+
readonly analyzer: undefined;
|
|
52
|
+
};
|
|
53
|
+
export type GetTransactionFullCustomParametersDA = {
|
|
54
|
+
readonly chain: Chain;
|
|
55
|
+
readonly hash: Hex;
|
|
56
|
+
readonly appDataSource: AppDataSource | undefined;
|
|
57
|
+
readonly priceDataSource: undefined;
|
|
58
|
+
readonly fiat: undefined;
|
|
59
|
+
readonly decoder: Decoder;
|
|
60
|
+
readonly analyzer: Analyzer<undefined>;
|
|
61
|
+
};
|
|
62
|
+
export type GetTransactionFullCustomReturnType<T extends GetTransactionFullCustomParameters> = T extends GetTransactionFullCustomParametersAllUndefined ? TransactionFull<undefined, false, false> | undefined : T extends GetTransactionFullCustomParametersP ? TransactionFull<CryptoCurrencyPrice | undefined, false, false> | undefined : T extends GetTransactionFullCustomParametersPD ? TransactionFull<CryptoCurrencyPrice | undefined, true, false> | undefined : T extends GetTransactionFullCustomParametersPDA ? TransactionFull<CryptoCurrencyPrice | undefined, true, true> | undefined : T extends GetTransactionFullCustomParametersD ? TransactionFull<undefined, true, false> | undefined : T extends GetTransactionFullCustomParametersDA ? TransactionFull<undefined, true, true> | undefined : never;
|
|
63
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,mBAAmB,EACnB,YAAY,EACb,MAAM,eAAe,CAAA;AACtB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAEpD,MAAM,MAAM,kCAAkC,GAC1C,8CAA8C,GAC9C,mCAAmC,GACnC,oCAAoC,GACpC,qCAAqC,GACrC,mCAAmC,GACnC,oCAAoC,CAAA;AAExC,MAAM,MAAM,8CAA8C,GAAG;IAC3D,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,SAAS,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAA;IAClD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAA;IAC3B,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG;IACjD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAA;IAClD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,qCAAqC,GAAG;IAClD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,wBAAwB,CAAA;IAClD,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;IAC3B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,mBAAmB,GAAG,SAAS,CAAC,CAAA;CAC7D,CAAA;AAED,MAAM,MAAM,mCAAmC,GAAG;IAChD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,SAAS,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAC7B,CAAA;AAED,MAAM,MAAM,oCAAoC,GAAG;IACjD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,aAAa,EAAE,aAAa,GAAG,SAAS,CAAA;IACjD,QAAQ,CAAC,eAAe,EAAE,SAAS,CAAA;IACnC,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAA;CACvC,CAAA;AAED,MAAM,MAAM,kCAAkC,CAC5C,CAAC,SAAS,kCAAkC,IAC1C,CAAC,SAAS,8CAA8C,GACxD,eAAe,CAAC,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,SAAS,GACpD,CAAC,SAAS,mCAAmC,GAC3C,eAAe,CAAC,mBAAmB,GAAG,SAAS,EAAE,KAAK,EAAE,KAAK,CAAC,GAAG,SAAS,GAC1E,CAAC,SAAS,oCAAoC,GAExC,eAAe,CAAC,mBAAmB,GAAG,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,GAC7D,SAAS,GACb,CAAC,SAAS,qCAAqC,GAEzC,eAAe,CAAC,mBAAmB,GAAG,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,GAC5D,SAAS,GACb,CAAC,SAAS,mCAAmC,GAC3C,eAAe,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,SAAS,GACnD,CAAC,SAAS,oCAAoC,GAC5C,eAAe,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,SAAS,GAClD,KAAK,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersD, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithD: (parameters: GetTransactionFullCustomParametersD, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersD>>;
|
|
4
|
+
//# sourceMappingURL=withD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withD.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withD.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,mCAAmC,EACnC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,6BAA6B,eAC5B,mCAAmC,WACtC,MAAM,KACd,QACD,mCAAmC,mCAAmC,CAAC,CA4CxE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersDA, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithDA: (parameters: GetTransactionFullCustomParametersDA, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersDA>>;
|
|
4
|
+
//# sourceMappingURL=withDA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDA.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,oCAAoC,EACpC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8BAA8B,eAC7B,oCAAoC,WACvC,MAAM,KACd,QACD,mCAAmC,oCAAoC,CAAC,CAgEzE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersP, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithP: (parameters: GetTransactionFullCustomParametersP, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersP>>;
|
|
4
|
+
//# sourceMappingURL=withP.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withP.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withP.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAuB,MAAM,eAAe,CAAA;AAGhE,OAAO,KAAK,EACV,mCAAmC,EACnC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,6BAA6B,eAC5B,mCAAmC,WACtC,MAAM,KACd,QACD,mCAAmC,mCAAmC,CAAC,CAwDxE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersPD, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithPD: (parameters: GetTransactionFullCustomParametersPD, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersPD>>;
|
|
4
|
+
//# sourceMappingURL=withPD.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withPD.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withPD.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuC,MAAM,eAAe,CAAA;AAGhF,OAAO,KAAK,EACV,oCAAoC,EACpC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,8BAA8B,eAC7B,oCAAoC,WACvC,MAAM,KACd,QACD,mCAAmC,oCAAoC,CAAC,CAyGzE,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersPDA, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithPDA: (parameters: GetTransactionFullCustomParametersPDA, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersPDA>>;
|
|
4
|
+
//# sourceMappingURL=withPDA.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withPDA.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withPDA.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAuC,MAAM,eAAe,CAAA;AAGhF,OAAO,KAAK,EACV,qCAAqC,EACrC,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,+BAA+B,eAC9B,qCAAqC,WACxC,MAAM,KACd,QACD,mCAAmC,qCAAqC,CAAC,CAqI1E,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { GetTransactionFullCustomParametersAllUndefined, GetTransactionFullCustomReturnType } from './types';
|
|
3
|
+
export declare const getTransactionFullCustomWithAllUndefined: (parameters: GetTransactionFullCustomParametersAllUndefined, config?: Config) => Promise<GetTransactionFullCustomReturnType<GetTransactionFullCustomParametersAllUndefined>>;
|
|
4
|
+
//# sourceMappingURL=withUndefined.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withUndefined.d.ts","sourceRoot":"","sources":["../../../src/getTransactionFull/withUndefined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAG3C,OAAO,KAAK,EACV,8CAA8C,EAC9C,kCAAkC,EACnC,MAAM,SAAS,CAAA;AAEhB,eAAO,MAAM,wCAAwC,eACvC,8CAA8C,WACjD,MAAM,KACd,QACD,mCAAmC,8CAA8C,CAAC,CA0BnF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greaterThan.d.mts","sourceRoot":"","sources":["../../src/greaterThan.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,WAAW,MAAO,UAAU,KAAK,UAAU,KAAG,OAM1D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"greaterThan.d.ts","sourceRoot":"","sources":["../../src/greaterThan.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,WAAW,MAAO,UAAU,KAAK,UAAU,KAAG,OAM1D,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { erc1155Abi, erc20Abi, erc721Abi, wethAbi } from './abis';
|
|
2
|
+
export { analyzeAxieMarketplace, analyzeGasFee, analyzeSeaport, analyzeSwap, analyzeTransfer, analyzer, createAnalyzeByJsonRule, } from './analyzer';
|
|
3
|
+
export type { AnalyzeParameters, AnalyzeReturnType, Analyzer } from './analyzer';
|
|
4
|
+
export type { AppDataSource } from './apps';
|
|
5
|
+
export { arbitrumOneHttpRpcs, arbitrumOneWebsocketRpcUrls, astarHttpRpcs, astarWebsocketRpcUrls, avalancheCHttpRpcs, avalancheCWebsocketRpcUrls, baseHttpRpcs, baseWebsocketRpcUrls, bscHttpRpcs, bscWebsocketRpcUrls, createArbitrumOneChain, createArbitrumOneChainCustom, createAstarChain, createAstarChainCustom, createAvalancheCChain, createAvalancheCChainCustom, createBaseChain, createBaseChainCustom, createBscChain, createBscChainCustom, createEthereumChain, createEthereumChainCustom, createFantomChain, createFantomChainCustom, createLineaChain, createLineaChainCustom, createMantleChainCustom, createMetisChainCustom, createMoonbeamChain, createMoonbeamChainCustom, createMoonriverChain, createMoonriverChainCustom, createOptimismChain, createOptimismChainCustom, createPolygonPosChain, createPolygonPosChainCustom, createRoninChain, createRoninChainCustom, ethereumHttpRpcs, ethereumWebsocketRpcUrls, fantomHttpRpcs, fantomWebsocketRpcUrls, getBlockOfTimestampByDefillama, lineaHttpRpcs, lineaWebsocketRpcUrls, mantleHttpRpcs, mantleWebsocketRpcUrls, metisHttpRpcs, metisWebsocketRpcUrls, moonbeamHttpRpcs, moonbeamWebsocketRpcUrls, moonriverHttpRpcs, moonriverWebsocketRpcUrls, optimismHttpRpcs, optimismWebsocketRpcUrls, polygonPosHttpRpcs, polygonPosWebsocketRpcUrls, roninHttpRpcs, roninWebsocketRpcUrls, } from './chains';
|
|
6
|
+
export type { Chain } from './chains';
|
|
7
|
+
export { decoder, parseErc1155TransferSingleLogs, parseErc20TransferLogs, parseErc721TransferLogs, } from './decoder';
|
|
8
|
+
export type { Decoder } from './decoder';
|
|
9
|
+
export { createEtherscan, createRoninExplorer } from './explorers';
|
|
10
|
+
export type { Explorer } from './explorers';
|
|
11
|
+
export { getAccountsTransactionFulls, getAccountsTransactionFullsCustom, } from './getAccountsTransactionFulls';
|
|
12
|
+
export { getTransactionFull, getTransactionFullCustom, } from './getTransactionFull';
|
|
13
|
+
export { isHex, parsedLogSchema, toLowerHex } from './types';
|
|
14
|
+
export type { Erc1155Token, Erc1155Transfer, Erc20Token, Erc20Transfer, Erc721Token, Erc721Transfer, EvmAccount, Hex, InputData, InternalTransaction, LogData, LowerHex, TransactionDecoded, TransactionDetail, TransactionFull, TransactionSource, } from './types';
|
|
15
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AACjE,OAAO,EACL,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,WAAW,EACX,eAAe,EACf,QAAQ,EACR,uBAAuB,GACxB,MAAM,YAAY,CAAA;AACnB,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAChF,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,0BAA0B,EAC1B,YAAY,EACZ,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,sBAAsB,EACtB,4BAA4B,EAC5B,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,2BAA2B,EAC3B,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,uBAAuB,EACvB,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,EACtB,mBAAmB,EACnB,yBAAyB,EACzB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,qBAAqB,EACrB,2BAA2B,EAC3B,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,wBAAwB,EACxB,cAAc,EACd,sBAAsB,EACtB,8BAA8B,EAC9B,aAAa,EACb,qBAAqB,EACrB,cAAc,EACd,sBAAsB,EACtB,aAAa,EACb,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,EACxB,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,0BAA0B,EAC1B,aAAa,EACb,qBAAqB,GACtB,MAAM,UAAU,CAAA;AACjB,YAAY,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EACL,OAAO,EACP,8BAA8B,EAC9B,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,WAAW,CAAA;AAClB,YAAY,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAClE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAC5D,YAAY,EACV,YAAY,EACZ,eAAe,EACf,UAAU,EACV,aAAa,EACb,WAAW,EACX,cAAc,EACd,UAAU,EACV,GAAG,EACH,SAAS,EACT,mBAAmB,EACnB,OAAO,EACP,QAAQ,EACR,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAClB,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { absoluteValue } from './absoluteValue'
|
|
2
|
+
export { createBigDecimal } from './createBigDecimal'
|
|
3
|
+
export { divide } from './divide'
|
|
4
|
+
export { equals } from './equals'
|
|
5
|
+
export { greaterThan } from './greaterThan'
|
|
6
|
+
export { minus } from './minus'
|
|
7
|
+
export { plus } from './plus'
|
|
8
|
+
export { times } from './times'
|
|
9
|
+
export { toStringBigDecimal } from './toStringBigDecimal'
|
|
10
|
+
export type { BigDecimal } from './type'
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAC7B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,YAAY,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=e=>e.value>=0?e:{value:-e.value,decimals:e.decimals};var T=(e,t)=>typeof e=="string"?D(e,t):typeof e=="number"?D(e.toString(),t):I(e,t),D=(e,t)=>{let i=e.split("e"),n=i[0],r=i[1],o=n.startsWith("-"),a=(o?n.slice(1):n).replaceAll(",","").replaceAll("_",""),[m,c]=a.split("."),d=/^\d+$/;if(!d.test(m)||c!==void 0&&c.length>0&&!d.test(c))throw new Error(`Invalid decimal format value: ${n}`);let B=c!==void 0&&c.length>0?c.replace(/0+$/,""):"",f=B.length,b=y(t,B,f),g=BigInt(`${o?"-":""}${m}${b}`),v=t===void 0?f:t;if(r===void 0)return{value:g,decimals:v};let x=Number(r),p=v-x;return p<0?{value:g*10n**BigInt(-p),decimals:0}:{value:g,decimals:p}},y=(e,t,i)=>e===void 0?t:e>i?t.padEnd(e,"0"):e<i?t.slice(0,e):t,I=(e,t)=>({value:e,decimals:t??0});var l=({value:e,decimals:t})=>{let i=e,n=t;for(;i%10n===0n&&n>0;)i/=10n,n-=1;return{value:i,decimals:n}};var s=({value:e,decimals:t},i,n)=>{if(t<=i)return l({value:e,decimals:t});let r=e/10n**BigInt(t-i-1),o=$(r,n);return l({value:o,decimals:i})},$=(e,t)=>{switch(t){case"ceil":return(e+9n)/10n;case"floor":return e/10n;case"round":return(e+5n)/10n}};var V=(e,t,i,n="round")=>{let r=i===void 0||i<e.decimals?e.decimals:i+1,u=(i===void 0||i<e.decimals?e.value:e.value*10n**BigInt(i+1-e.decimals))*10n**BigInt(t.decimals),a=t.value,m=u/a;return i===void 0?l({value:m,decimals:r}):s({value:m,decimals:r},i,n)};var X=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals);return n===r};var S=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals);return n>r};var Z=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals),o=n-r;return l({value:o,decimals:i})};var Y=(e,t)=>{let i=Math.max(e.decimals,t.decimals),n=e.value*10n**BigInt(i-e.decimals),r=t.value*10n**BigInt(i-t.decimals),o=n+r;return l({value:o,decimals:i})};var w=(e,t,i,n="round")=>{let r=e.decimals+t.decimals,o=e.value*t.value;return i===void 0?l({value:o,decimals:r}):s({value:o,decimals:r},i,n)};var E=({value:e,decimals:t})=>{let i=e.toString(),n=i.length,r=t;if(n<=r)return`0.${i.padStart(r,"0")}`;let o=i.slice(0,n-r),a=i.slice(n-r).replace(/0+$/,"");return a.length===0?o:`${o}.${a}`};export{h as absoluteValue,T as createBigDecimal,V as divide,X as equals,S as greaterThan,Z as minus,Y as plus,w as times,E as toStringBigDecimal};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minus.d.mts","sourceRoot":"","sources":["../../src/minus.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,KAAK,MAAO,UAAU,KAAK,UAAU,KAAG,UAQpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minus.d.ts","sourceRoot":"","sources":["../../src/minus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MAAO,UAAU,KAAK,UAAU,KAAG,UAQpD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plus.d.mts","sourceRoot":"","sources":["../../src/plus.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,IAAI,MAAO,UAAU,KAAK,UAAU,KAAG,UAQnD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plus.d.ts","sourceRoot":"","sources":["../../src/plus.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,IAAI,MAAO,UAAU,KAAK,UAAU,KAAG,UAQnD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeTrailingZeros.d.mts","sourceRoot":"","sources":["../../src/removeTrailingZeros.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,mBAAmB,yBAG7B,UAAU,KAAG,UAWf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"removeTrailingZeros.d.ts","sourceRoot":"","sources":["../../src/removeTrailingZeros.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,mBAAmB,yBAG7B,UAAU,KAAG,UAWf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../src/times.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,KAAK,MACb,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAWF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toStringBigDecimal.d.mts","sourceRoot":"","sources":["../../src/toStringBigDecimal.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAepE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toStringBigDecimal.d.ts","sourceRoot":"","sources":["../../src/toStringBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,kBAAkB,wBAAyB,UAAU,KAAG,MAepE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.mts","sourceRoot":"","sources":["../../src/type.mts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../src/type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAC1B,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Nft } from '@0xtorch/core';
|
|
2
|
+
import type { LowerHex } from './hex';
|
|
3
|
+
export type Erc1155Token = {
|
|
4
|
+
readonly contractAddress: LowerHex;
|
|
5
|
+
};
|
|
6
|
+
export type Erc1155Transfer = {
|
|
7
|
+
readonly type: 'Erc1155Transfer';
|
|
8
|
+
readonly logIndex: number;
|
|
9
|
+
readonly token: Erc1155Token;
|
|
10
|
+
readonly from: LowerHex;
|
|
11
|
+
readonly to: LowerHex;
|
|
12
|
+
readonly id: bigint;
|
|
13
|
+
readonly value: bigint;
|
|
14
|
+
readonly nft: Nft;
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=erc1155.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc1155.d.ts","sourceRoot":"","sources":["../../../src/types/erc1155.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;CACnC,CAAA;AAED,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAA;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAA;IACrB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice } from '@0xtorch/core';
|
|
2
|
+
import type { LowerHex } from './hex';
|
|
3
|
+
export type Erc20Token = {
|
|
4
|
+
readonly contractAddress: LowerHex;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly symbol: string;
|
|
7
|
+
readonly decimals: number;
|
|
8
|
+
readonly currency: CryptoCurrency;
|
|
9
|
+
};
|
|
10
|
+
export type Erc20Transfer<Price extends CryptoCurrencyPrice | undefined = undefined> = {
|
|
11
|
+
readonly type: 'Erc20Transfer';
|
|
12
|
+
readonly logIndex: number;
|
|
13
|
+
readonly token: Erc20Token;
|
|
14
|
+
readonly from: LowerHex;
|
|
15
|
+
readonly to: LowerHex;
|
|
16
|
+
readonly value: bigint;
|
|
17
|
+
readonly price: Price;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=erc20.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc20.d.ts","sourceRoot":"","sources":["../../../src/types/erc20.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,aAAa,CACvB,KAAK,SAAS,mBAAmB,GAAG,SAAS,GAAG,SAAS,IACvD;IACF,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAA;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,UAAU,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Nft } from '@0xtorch/core';
|
|
2
|
+
import type { LowerHex } from './hex';
|
|
3
|
+
export type Erc721Token = {
|
|
4
|
+
readonly contractAddress: LowerHex;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly symbol: string;
|
|
7
|
+
readonly baseUri?: string;
|
|
8
|
+
};
|
|
9
|
+
export type Erc721Transfer = {
|
|
10
|
+
readonly type: 'Erc721Transfer';
|
|
11
|
+
readonly logIndex: number;
|
|
12
|
+
readonly token: Erc721Token;
|
|
13
|
+
readonly from: LowerHex;
|
|
14
|
+
readonly to: LowerHex;
|
|
15
|
+
readonly tokenId: bigint;
|
|
16
|
+
readonly nft: Nft;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=erc721.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"erc721.d.ts","sourceRoot":"","sources":["../../../src/types/erc721.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAA;IAC/B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAA;IAC3B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,EAAE,QAAQ,CAAA;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAA;CAClB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Account } from '@0xtorch/core';
|
|
2
|
+
import type { Chain } from '../chains';
|
|
3
|
+
import type { Prettify } from '../utils';
|
|
4
|
+
import type { LowerHex } from './hex';
|
|
5
|
+
export type EvmAccount = Prettify<Account<'evm'> & {
|
|
6
|
+
readonly id: `evm_${Chain['id']}_${LowerHex}`;
|
|
7
|
+
readonly chainId: number;
|
|
8
|
+
readonly address: LowerHex;
|
|
9
|
+
}>;
|
|
10
|
+
//# sourceMappingURL=evmAccount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evmAccount.d.ts","sourceRoot":"","sources":["../../../src/types/evmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,MAAM,MAAM,UAAU,GAAG,QAAQ,CAC/B,OAAO,CAAC,KAAK,CAAC,GAAG;IACf,QAAQ,CAAC,EAAE,EAAE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,QAAQ,EAAE,CAAA;IAC7C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;CAC3B,CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../../../src/types/hex.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG,GAAG,KAAK,MAAM,EAAE,CAAA;AAE/B,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;AAErC,eAAO,MAAM,KAAK,UAAW,MAAM,2BACN,CAAA;AAE7B,eAAO,MAAM,UAAU,UAAW,GAAG,KAAG,QACP,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type { Erc1155Token, Erc1155Transfer } from './erc1155';
|
|
2
|
+
export type { Erc20Token, Erc20Transfer } from './erc20';
|
|
3
|
+
export type { Erc721Token, Erc721Transfer } from './erc721';
|
|
4
|
+
export type { EvmAccount } from './evmAccount';
|
|
5
|
+
export { isHex, toLowerHex } from './hex';
|
|
6
|
+
export type { Hex, LowerHex } from './hex';
|
|
7
|
+
export type { InputData } from './input';
|
|
8
|
+
export type { InternalTransaction } from './internalTransaction';
|
|
9
|
+
export { parsedLogSchema } from './log';
|
|
10
|
+
export type { DecodedLog, LogData } from './log';
|
|
11
|
+
export type { TransactionDecoded, TransactionDetail, TransactionFull, TransactionSource, } from './transaction';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,WAAW,CAAA;AAC9D,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AACxD,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAC3D,YAAY,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,YAAY,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAC1C,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AACxC,YAAY,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AACvC,YAAY,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAChD,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,GAClB,MAAM,eAAe,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { Hex, LowerHex } from './hex';
|
|
2
|
+
export type Argument = {
|
|
3
|
+
readonly name: string;
|
|
4
|
+
readonly type: string;
|
|
5
|
+
readonly value: unknown;
|
|
6
|
+
};
|
|
7
|
+
export type InputFunction = {
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly args: readonly Argument[] | undefined;
|
|
10
|
+
};
|
|
11
|
+
type InputOriginal = {
|
|
12
|
+
readonly type: 'original';
|
|
13
|
+
readonly address: LowerHex;
|
|
14
|
+
readonly data: Hex;
|
|
15
|
+
};
|
|
16
|
+
type InputDecoded = {
|
|
17
|
+
readonly type: 'decoded';
|
|
18
|
+
readonly address: LowerHex;
|
|
19
|
+
readonly data: Hex;
|
|
20
|
+
readonly function: InputFunction;
|
|
21
|
+
/** contract address of ABI source */
|
|
22
|
+
readonly source: LowerHex;
|
|
23
|
+
};
|
|
24
|
+
export type InputData = InputOriginal | InputDecoded;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/types/input.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAA;CAC/C,CAAA;AAED,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;IACzB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;CACnB,CAAA;AACD,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;IAClB,QAAQ,CAAC,QAAQ,EAAE,aAAa,CAAA;IAChC,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;CAC1B,CAAA;AACD,MAAM,MAAM,SAAS,GAAG,aAAa,GAAG,YAAY,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { CryptoCurrency, CryptoCurrencyPrice } from '@0xtorch/core';
|
|
2
|
+
import type { Hex, LowerHex } from './hex';
|
|
3
|
+
export type InternalTransaction<Price extends CryptoCurrencyPrice | undefined> = {
|
|
4
|
+
readonly type: 'InternalTransaction';
|
|
5
|
+
readonly transactionHash: Hex;
|
|
6
|
+
readonly from: LowerHex;
|
|
7
|
+
readonly to: LowerHex | undefined;
|
|
8
|
+
readonly contractAddress: LowerHex | undefined;
|
|
9
|
+
readonly txType: string;
|
|
10
|
+
readonly value: bigint;
|
|
11
|
+
readonly gas: bigint;
|
|
12
|
+
readonly gasUsed: bigint;
|
|
13
|
+
readonly isError: boolean;
|
|
14
|
+
readonly input: string | undefined;
|
|
15
|
+
readonly currency: CryptoCurrency;
|
|
16
|
+
readonly price: Price;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=internalTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internalTransaction.d.ts","sourceRoot":"","sources":["../../../src/types/internalTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxE,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1C,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,mBAAmB,GAAG,SAAS,IAC3E;IACE,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAA;IACpC,QAAQ,CAAC,eAAe,EAAE,GAAG,CAAA;IAC7B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,EAAE,EAAE,QAAQ,GAAG,SAAS,CAAA;IACjC,QAAQ,CAAC,eAAe,EAAE,QAAQ,GAAG,SAAS,CAAA;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;CACtB,CAAA"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import type { Log } from 'viem';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import type { LowerHex } from './hex';
|
|
4
|
+
export type LogData = LogOriginal | LogDecoded;
|
|
5
|
+
type LogOriginal = {
|
|
6
|
+
readonly type: 'LogOriginal';
|
|
7
|
+
readonly log: Log<bigint, number, false>;
|
|
8
|
+
};
|
|
9
|
+
type LogDecoded = {
|
|
10
|
+
readonly type: 'decoded';
|
|
11
|
+
readonly log: DecodedLog;
|
|
12
|
+
/** contract address of ABI source */
|
|
13
|
+
readonly source: LowerHex;
|
|
14
|
+
};
|
|
15
|
+
export type DecodedLog = z.infer<typeof decodedLogSchema> & {
|
|
16
|
+
readonly type: 'DecodedLog';
|
|
17
|
+
};
|
|
18
|
+
export declare const parsedLogSchema: z.ZodObject<{
|
|
19
|
+
address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
20
|
+
data: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
21
|
+
blockNumber: z.ZodBigInt;
|
|
22
|
+
blockHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
23
|
+
transactionIndex: z.ZodNumber;
|
|
24
|
+
logIndex: z.ZodNumber;
|
|
25
|
+
transactionHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
26
|
+
removed: z.ZodBoolean;
|
|
27
|
+
topics: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
28
|
+
eventName: z.ZodString;
|
|
29
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
address: `0x${Lowercase<string>}`;
|
|
32
|
+
data: `0x${string}`;
|
|
33
|
+
blockNumber: bigint;
|
|
34
|
+
args: Record<string, unknown>;
|
|
35
|
+
eventName: string;
|
|
36
|
+
blockHash: `0x${string}`;
|
|
37
|
+
transactionIndex: number;
|
|
38
|
+
logIndex: number;
|
|
39
|
+
transactionHash: `0x${string}`;
|
|
40
|
+
removed: boolean;
|
|
41
|
+
topics: `0x${string}`[];
|
|
42
|
+
}, {
|
|
43
|
+
address: string;
|
|
44
|
+
data: string;
|
|
45
|
+
blockNumber: bigint;
|
|
46
|
+
args: Record<string, unknown>;
|
|
47
|
+
eventName: string;
|
|
48
|
+
blockHash: string;
|
|
49
|
+
transactionIndex: number;
|
|
50
|
+
logIndex: number;
|
|
51
|
+
transactionHash: string;
|
|
52
|
+
removed: boolean;
|
|
53
|
+
topics: string[];
|
|
54
|
+
}>;
|
|
55
|
+
export declare const decodedLogSchema: z.ZodObject<{
|
|
56
|
+
address: z.ZodEffects<z.ZodString, `0x${Lowercase<string>}`, string>;
|
|
57
|
+
data: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
58
|
+
blockNumber: z.ZodBigInt;
|
|
59
|
+
blockHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
60
|
+
transactionIndex: z.ZodNumber;
|
|
61
|
+
logIndex: z.ZodNumber;
|
|
62
|
+
transactionHash: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
63
|
+
removed: z.ZodBoolean;
|
|
64
|
+
topics: z.ZodArray<z.ZodEffects<z.ZodString, `0x${string}`, string>, "many">;
|
|
65
|
+
eventName: z.ZodString;
|
|
66
|
+
args: z.ZodArray<z.ZodObject<{
|
|
67
|
+
indexed: z.ZodBoolean;
|
|
68
|
+
name: z.ZodString;
|
|
69
|
+
type: z.ZodString;
|
|
70
|
+
value: z.ZodUnknown;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
name: string;
|
|
73
|
+
type: string;
|
|
74
|
+
indexed: boolean;
|
|
75
|
+
value?: unknown;
|
|
76
|
+
}, {
|
|
77
|
+
name: string;
|
|
78
|
+
type: string;
|
|
79
|
+
indexed: boolean;
|
|
80
|
+
value?: unknown;
|
|
81
|
+
}>, "many">;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
address: `0x${Lowercase<string>}`;
|
|
84
|
+
data: `0x${string}`;
|
|
85
|
+
blockNumber: bigint;
|
|
86
|
+
args: {
|
|
87
|
+
name: string;
|
|
88
|
+
type: string;
|
|
89
|
+
indexed: boolean;
|
|
90
|
+
value?: unknown;
|
|
91
|
+
}[];
|
|
92
|
+
eventName: string;
|
|
93
|
+
blockHash: `0x${string}`;
|
|
94
|
+
transactionIndex: number;
|
|
95
|
+
logIndex: number;
|
|
96
|
+
transactionHash: `0x${string}`;
|
|
97
|
+
removed: boolean;
|
|
98
|
+
topics: `0x${string}`[];
|
|
99
|
+
}, {
|
|
100
|
+
address: string;
|
|
101
|
+
data: string;
|
|
102
|
+
blockNumber: bigint;
|
|
103
|
+
args: {
|
|
104
|
+
name: string;
|
|
105
|
+
type: string;
|
|
106
|
+
indexed: boolean;
|
|
107
|
+
value?: unknown;
|
|
108
|
+
}[];
|
|
109
|
+
eventName: string;
|
|
110
|
+
blockHash: string;
|
|
111
|
+
transactionIndex: number;
|
|
112
|
+
logIndex: number;
|
|
113
|
+
transactionHash: string;
|
|
114
|
+
removed: boolean;
|
|
115
|
+
topics: string[];
|
|
116
|
+
}>;
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=log.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["../../../src/types/log.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAGrC,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG,UAAU,CAAA;AAE9C,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;IAC5B,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,CAAA;CACzC,CAAA;AAED,KAAK,UAAU,GAAG;IAChB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;IACxB,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAA;IACxB,qCAAqC;IACrC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,GAAG;IAC1D,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAA;CAC5B,CAAA;AA+BD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG1B,CAAA;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU3B,CAAA"}
|