@0xtorch/evm 0.0.60 → 0.0.62
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/.DS_Store +0 -0
- package/_cjs/analyzer/analyze.js +0 -61
- package/_cjs/analyzer/analyze.js.map +1 -1
- package/_cjs/analyzer/analyzer.js +0 -6
- package/_cjs/analyzer/analyzer.js.map +1 -1
- package/_cjs/analyzer/axieMarketplace/analyze.js +0 -147
- package/_cjs/analyzer/axieMarketplace/analyze.js.map +1 -1
- package/_cjs/analyzer/axieMarketplace/index.js +0 -4
- package/_cjs/analyzer/axieMarketplace/index.js.map +1 -1
- package/_cjs/analyzer/fail/analyze.js +0 -37
- package/_cjs/analyzer/fail/analyze.js.map +1 -1
- package/_cjs/analyzer/fail/index.js +0 -4
- package/_cjs/analyzer/fail/index.js.map +1 -1
- package/_cjs/analyzer/gasFee/analyze.js +0 -45
- package/_cjs/analyzer/gasFee/analyze.js.map +1 -1
- package/_cjs/analyzer/gasFee/index.js +0 -4
- package/_cjs/analyzer/gasFee/index.js.map +1 -1
- package/_cjs/analyzer/index.js +0 -23
- package/_cjs/analyzer/index.js.map +1 -1
- package/_cjs/analyzer/json/analyze.js +0 -416
- package/_cjs/analyzer/json/analyze.js.map +1 -1
- package/_cjs/analyzer/json/components/comment.js +0 -48
- package/_cjs/analyzer/json/components/comment.js.map +1 -1
- package/_cjs/analyzer/json/components/erc1155.js +0 -91
- package/_cjs/analyzer/json/components/erc1155.js.map +1 -1
- package/_cjs/analyzer/json/components/erc1155Raw.js +0 -29
- package/_cjs/analyzer/json/components/erc1155Raw.js.map +1 -1
- package/_cjs/analyzer/json/components/erc20.js +0 -88
- package/_cjs/analyzer/json/components/erc20.js.map +1 -1
- package/_cjs/analyzer/json/components/erc20Raw.js +0 -26
- package/_cjs/analyzer/json/components/erc20Raw.js.map +1 -1
- package/_cjs/analyzer/json/components/erc721.js +0 -76
- package/_cjs/analyzer/json/components/erc721.js.map +1 -1
- package/_cjs/analyzer/json/components/erc721Raw.js +0 -27
- package/_cjs/analyzer/json/components/erc721Raw.js.map +1 -1
- package/_cjs/analyzer/json/components/id.js +0 -48
- package/_cjs/analyzer/json/components/id.js.map +1 -1
- package/_cjs/analyzer/json/components/internal.js +0 -76
- package/_cjs/analyzer/json/components/internal.js.map +1 -1
- package/_cjs/analyzer/json/components/internalRaw.js +0 -24
- package/_cjs/analyzer/json/components/internalRaw.js.map +1 -1
- package/_cjs/analyzer/json/components/logArgument.js +0 -79
- package/_cjs/analyzer/json/components/logArgument.js.map +1 -1
- package/_cjs/analyzer/json/components/logArgumentRaw.js +0 -39
- package/_cjs/analyzer/json/components/logArgumentRaw.js.map +1 -1
- package/_cjs/analyzer/json/components/targetAsset.js +0 -122
- package/_cjs/analyzer/json/components/targetAsset.js.map +1 -1
- package/_cjs/analyzer/json/components/transfer.js +0 -462
- package/_cjs/analyzer/json/components/transfer.js.map +1 -1
- package/_cjs/analyzer/json/condition/address.js +0 -104
- package/_cjs/analyzer/json/condition/address.js.map +1 -1
- package/_cjs/analyzer/json/condition/argumentValue.js +0 -29
- package/_cjs/analyzer/json/condition/argumentValue.js.map +1 -1
- package/_cjs/analyzer/json/condition/index.js +0 -8
- package/_cjs/analyzer/json/condition/index.js.map +1 -1
- package/_cjs/analyzer/json/condition/value.js +0 -63
- package/_cjs/analyzer/json/condition/value.js.map +1 -1
- package/_cjs/analyzer/json/generator.js +0 -212
- package/_cjs/analyzer/json/generator.js.map +1 -1
- package/_cjs/analyzer/json/index.js +0 -6
- package/_cjs/analyzer/json/index.js.map +1 -1
- package/_cjs/analyzer/json/schemas/generator.js +0 -299
- package/_cjs/analyzer/json/schemas/generator.js.map +1 -1
- package/_cjs/analyzer/json/schemas/index.js +0 -302
- package/_cjs/analyzer/json/schemas/index.js.map +1 -1
- package/_cjs/analyzer/json/schemas/utils.js +0 -12
- package/_cjs/analyzer/json/schemas/utils.js.map +1 -1
- package/_cjs/analyzer/json/types.js +0 -1
- package/_cjs/analyzer/parsers/transfer.js +0 -147
- package/_cjs/analyzer/parsers/transfer.js.map +1 -1
- package/_cjs/analyzer/seaport/analyze.js +0 -655
- package/_cjs/analyzer/seaport/analyze.js.map +1 -1
- package/_cjs/analyzer/seaport/index.js +0 -4
- package/_cjs/analyzer/seaport/index.js.map +1 -1
- package/_cjs/analyzer/seaport/orderFulfilled.js +0 -109
- package/_cjs/analyzer/seaport/orderFulfilled.js.map +1 -1
- package/_cjs/analyzer/spam/analyze.js +0 -142
- package/_cjs/analyzer/spam/analyze.js.map +1 -1
- package/_cjs/analyzer/spam/index.js +0 -4
- package/_cjs/analyzer/spam/index.js.map +1 -1
- package/_cjs/analyzer/swap/analyze.js +0 -576
- package/_cjs/analyzer/swap/analyze.js.map +1 -1
- package/_cjs/analyzer/swap/index.js +0 -4
- package/_cjs/analyzer/swap/index.js.map +1 -1
- package/_cjs/analyzer/swap/traderJoeLBPairSwap.js +0 -70
- package/_cjs/analyzer/swap/traderJoeLBPairSwap.js.map +1 -1
- package/_cjs/analyzer/swap/univ2PairSwap.js +0 -60
- package/_cjs/analyzer/swap/univ2PairSwap.js.map +1 -1
- package/_cjs/analyzer/swap/univ3PoolSwap.js +0 -65
- package/_cjs/analyzer/swap/univ3PoolSwap.js.map +1 -1
- package/_cjs/analyzer/swap/wrappedDeposit.js +0 -37
- package/_cjs/analyzer/swap/wrappedDeposit.js.map +1 -1
- package/_cjs/analyzer/swap/wrappedWithdrawal.js +0 -37
- package/_cjs/analyzer/swap/wrappedWithdrawal.js.map +1 -1
- package/_cjs/analyzer/tests.js +0 -3
- package/_cjs/analyzer/tests.js.map +1 -1
- package/_cjs/analyzer/transfer/analyze.js +0 -43
- package/_cjs/analyzer/transfer/analyze.js.map +1 -1
- package/_cjs/analyzer/transfer/index.js +0 -4
- package/_cjs/analyzer/transfer/index.js.map +1 -1
- package/_cjs/analyzer/types.js +0 -1
- package/_cjs/analyzer/utils/createTransfersByTransaction.js +0 -50
- package/_cjs/analyzer/utils/createTransfersByTransaction.js.map +1 -1
- package/_cjs/chain/definitions/arbitrumOne.js +85 -0
- package/_cjs/chain/definitions/arbitrumOne.js.map +1 -0
- package/_cjs/chain/definitions/astar.js +79 -0
- package/_cjs/chain/definitions/astar.js.map +1 -0
- package/_cjs/chain/definitions/avalancheC.js +88 -0
- package/_cjs/chain/definitions/avalancheC.js.map +1 -0
- package/_cjs/chain/definitions/base.js +113 -0
- package/_cjs/chain/definitions/base.js.map +1 -0
- package/_cjs/chain/definitions/bsc.js +168 -0
- package/_cjs/chain/definitions/bsc.js.map +1 -0
- package/_cjs/chain/definitions/ethereum.js +193 -0
- package/_cjs/chain/definitions/ethereum.js.map +1 -0
- package/_cjs/chain/definitions/fantom.js +125 -0
- package/_cjs/chain/definitions/fantom.js.map +1 -0
- package/_cjs/chain/definitions/linea.js +76 -0
- package/_cjs/chain/definitions/linea.js.map +1 -0
- package/_cjs/chain/definitions/mantaPacific.js +78 -0
- package/_cjs/chain/definitions/mantaPacific.js.map +1 -0
- package/_cjs/chain/definitions/mantle.js +89 -0
- package/_cjs/chain/definitions/mantle.js.map +1 -0
- package/_cjs/chain/definitions/metis.js +72 -0
- package/_cjs/chain/definitions/metis.js.map +1 -0
- package/_cjs/chain/definitions/moonbeam.js +100 -0
- package/_cjs/chain/definitions/moonbeam.js.map +1 -0
- package/_cjs/chain/definitions/moonriver.js +81 -0
- package/_cjs/chain/definitions/moonriver.js.map +1 -0
- package/_cjs/chain/definitions/oasys.js +60 -0
- package/_cjs/chain/definitions/oasys.js.map +1 -0
- package/_cjs/chain/definitions/optimism.js +123 -0
- package/_cjs/chain/definitions/optimism.js.map +1 -0
- package/_cjs/chain/definitions/polygonPos.js +113 -0
- package/_cjs/chain/definitions/polygonPos.js.map +1 -0
- package/_cjs/chain/definitions/ronin.js +57 -0
- package/_cjs/chain/definitions/ronin.js.map +1 -0
- package/_cjs/chain/definitions/tests.js.map +1 -0
- package/_cjs/chain/index.js +90 -0
- package/_cjs/chain/index.js.map +1 -0
- package/_cjs/chain/types/chain.js.map +1 -0
- package/_cjs/chain/types/rpc.js.map +1 -0
- package/_cjs/client/create.js +231 -0
- package/_cjs/client/create.js.map +1 -0
- package/_cjs/client/index.js +6 -0
- package/_cjs/client/index.js.map +1 -0
- package/_cjs/client/rpcManager.js +99 -0
- package/_cjs/client/rpcManager.js.map +1 -0
- package/_cjs/client/types.js.map +1 -0
- package/_cjs/explorer/blockscout/client.js +74 -0
- package/_cjs/explorer/blockscout/client.js.map +1 -0
- package/_cjs/explorer/blockscout/create.js +136 -0
- package/_cjs/explorer/blockscout/create.js.map +1 -0
- package/_cjs/explorer/blockscout/getBlockNumberByTimestamp.js +22 -0
- package/_cjs/explorer/blockscout/getBlockNumberByTimestamp.js.map +1 -0
- package/_cjs/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.js +25 -0
- package/_cjs/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.js.map +1 -0
- package/_cjs/explorer/blockscout/getContractSourceCodeForAVerifiedContract.js +35 -0
- package/_cjs/explorer/blockscout/getContractSourceCodeForAVerifiedContract.js.map +1 -0
- package/_cjs/explorer/blockscout/getEventLogsByAddressAndTopic.js +39 -0
- package/_cjs/explorer/blockscout/getEventLogsByAddressAndTopic.js.map +1 -0
- package/_cjs/explorer/blockscout/getInternalTransactionsByAddressHash.js +74 -0
- package/_cjs/explorer/blockscout/getInternalTransactionsByAddressHash.js.map +1 -0
- package/_cjs/explorer/blockscout/getInternalTransactionsByTransactionHash.js +65 -0
- package/_cjs/explorer/blockscout/getInternalTransactionsByTransactionHash.js.map +1 -0
- package/_cjs/explorer/blockscout/getTokenTransferEventsByAddress.js +47 -0
- package/_cjs/explorer/blockscout/getTokenTransferEventsByAddress.js.map +1 -0
- package/_cjs/explorer/blockscout/getTransactionsByAddress.js +46 -0
- package/_cjs/explorer/blockscout/getTransactionsByAddress.js.map +1 -0
- package/_cjs/explorer/etherscan/client.js +90 -0
- package/_cjs/explorer/etherscan/client.js.map +1 -0
- package/_cjs/explorer/etherscan/create.js +180 -0
- package/_cjs/explorer/etherscan/create.js.map +1 -0
- package/_cjs/explorer/etherscan/getBlockNumberByTimestamp.js +20 -0
- package/_cjs/explorer/etherscan/getBlockNumberByTimestamp.js.map +1 -0
- package/_cjs/explorer/etherscan/getContractCreatorAndCreationTxHash.js +25 -0
- package/_cjs/explorer/etherscan/getContractCreatorAndCreationTxHash.js.map +1 -0
- package/_cjs/explorer/etherscan/getContractSourceCodeForVerifiedContract.js +35 -0
- package/_cjs/explorer/etherscan/getContractSourceCodeForVerifiedContract.js.map +1 -0
- package/_cjs/explorer/etherscan/getEventLogsByAddressFilteredByTopics.js +39 -0
- package/_cjs/explorer/etherscan/getEventLogsByAddressFilteredByTopics.js.map +1 -0
- package/_cjs/explorer/etherscan/getInternalTransactionsByTransactionHash.js +63 -0
- package/_cjs/explorer/etherscan/getInternalTransactionsByTransactionHash.js.map +1 -0
- package/_cjs/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.js +48 -0
- package/_cjs/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.js.map +1 -0
- package/_cjs/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.js +46 -0
- package/_cjs/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.js.map +1 -0
- package/_cjs/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.js +46 -0
- package/_cjs/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.js.map +1 -0
- package/_cjs/explorer/etherscan/getListOfInternalTransactionsByAddress.js +73 -0
- package/_cjs/explorer/etherscan/getListOfInternalTransactionsByAddress.js.map +1 -0
- package/_cjs/explorer/etherscan/getListOfNormalTransactionsByAddress.js +46 -0
- package/_cjs/explorer/etherscan/getListOfNormalTransactionsByAddress.js.map +1 -0
- package/_cjs/explorer/index.js +10 -0
- package/_cjs/explorer/index.js.map +1 -0
- package/_cjs/explorer/noApiExplorer/create.js +33 -0
- package/_cjs/explorer/noApiExplorer/create.js.map +1 -0
- package/_cjs/explorer/types.js.map +1 -0
- package/_cjs/index.js +103 -100
- package/_cjs/index.js.map +1 -1
- package/_cjs/logic/analyzeTransaction/createActions/fail.js +29 -0
- package/_cjs/logic/analyzeTransaction/createActions/fail.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/gas.js +36 -0
- package/_cjs/logic/analyzeTransaction/createActions/gas.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/general.js +18 -0
- package/_cjs/logic/analyzeTransaction/createActions/general.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/index.js +61 -0
- package/_cjs/logic/analyzeTransaction/createActions/index.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/spam.js +133 -0
- package/_cjs/logic/analyzeTransaction/createActions/spam.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.js +10 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/createDirection.js +18 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/createDirection.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/createTokenTransfers.js +129 -0
- package/_cjs/logic/analyzeTransaction/createActions/utils/createTokenTransfers.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeInput.js +94 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeInput.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeLog.js +93 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/decodeLog.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/index.js +63 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/index.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.js +22 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.js +15 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.js +22 -0
- package/_cjs/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/getDataFromDatasource.js +60 -0
- package/_cjs/logic/analyzeTransaction/getDataFromDatasource.js.map +1 -0
- package/_cjs/logic/analyzeTransaction/index.js +32 -0
- package/_cjs/logic/analyzeTransaction/index.js.map +1 -0
- package/_cjs/logic/getAddressIndexData.js +48 -0
- package/_cjs/logic/getAddressIndexData.js.map +1 -0
- package/_cjs/logic/getTransactionDetail/decodeTokenTransferLogs.js +393 -0
- package/_cjs/logic/getTransactionDetail/decodeTokenTransferLogs.js.map +1 -0
- package/_cjs/logic/getTransactionDetail/index.js +53 -0
- package/_cjs/logic/getTransactionDetail/index.js.map +1 -0
- package/_cjs/tests.js +7 -2
- package/_cjs/tests.js.map +1 -1
- package/_cjs/types/accountId.js +6 -0
- package/_cjs/types/accountId.js.map +1 -0
- package/_cjs/types/address.js +10 -30
- package/_cjs/types/address.js.map +1 -1
- package/_cjs/types/analyzeDataSource.js +3 -0
- package/_cjs/types/analyzeDataSource.js.map +1 -0
- package/_cjs/types/erc1155.js +17 -0
- package/_cjs/types/erc1155.js.map +1 -1
- package/_cjs/types/erc20.js +21 -0
- package/_cjs/types/erc20.js.map +1 -1
- package/_cjs/types/erc721.js +16 -0
- package/_cjs/types/erc721.js.map +1 -1
- package/_cjs/types/index.js +27 -2
- package/_cjs/types/index.js.map +1 -1
- package/_cjs/types/internalTransaction.js +16 -0
- package/_cjs/types/internalTransaction.js.map +1 -1
- package/_cjs/types/log.js +12 -35
- package/_cjs/types/log.js.map +1 -1
- package/_cjs/types/primitive.js +19 -0
- package/_cjs/types/primitive.js.map +1 -0
- package/_cjs/types/source.js +6 -0
- package/_cjs/types/source.js.map +1 -0
- package/_cjs/types/transactionDecoded.js +27 -0
- package/_cjs/types/transactionDecoded.js.map +1 -0
- package/_cjs/types/transactionDetail.js +30 -0
- package/_cjs/types/transactionDetail.js.map +1 -0
- package/_cjs/types/transactionIndex.js +9 -0
- package/_cjs/types/transactionIndex.js.map +1 -0
- package/_cjs/utils/create.js +2 -6
- package/_cjs/utils/create.js.map +1 -1
- package/_cjs/utils/createInternalTransactionId.js +14 -0
- package/_cjs/utils/createInternalTransactionId.js.map +1 -0
- package/_cjs/utils/index.js +1 -3
- package/_cjs/utils/index.js.map +1 -1
- package/_esm/analyzer/analyze.js +83 -61
- package/_esm/analyzer/analyze.js.map +1 -1
- package/_esm/analyzer/analyzer.js +5 -4
- package/_esm/analyzer/analyzer.js.map +1 -1
- package/_esm/analyzer/axieMarketplace/analyze.js +238 -146
- package/_esm/analyzer/axieMarketplace/analyze.js.map +1 -1
- package/_esm/analyzer/axieMarketplace/index.js +2 -1
- package/_esm/analyzer/axieMarketplace/index.js.map +1 -1
- package/_esm/analyzer/fail/analyze.js +47 -36
- package/_esm/analyzer/fail/analyze.js.map +1 -1
- package/_esm/analyzer/fail/index.js +2 -1
- package/_esm/analyzer/fail/index.js.map +1 -1
- package/_esm/analyzer/gasFee/analyze.js +68 -47
- package/_esm/analyzer/gasFee/analyze.js.map +1 -1
- package/_esm/analyzer/gasFee/index.js +2 -1
- package/_esm/analyzer/gasFee/index.js.map +1 -1
- package/_esm/analyzer/index.js +12 -10
- package/_esm/analyzer/index.js.map +1 -1
- package/_esm/analyzer/json/analyze.js +512 -432
- package/_esm/analyzer/json/analyze.js.map +1 -1
- package/_esm/analyzer/json/components/comment.js +66 -45
- package/_esm/analyzer/json/components/comment.js.map +1 -1
- package/_esm/analyzer/json/components/erc1155.js +129 -87
- package/_esm/analyzer/json/components/erc1155.js.map +1 -1
- package/_esm/analyzer/json/components/erc1155Raw.js +45 -26
- package/_esm/analyzer/json/components/erc1155Raw.js.map +1 -1
- package/_esm/analyzer/json/components/erc20.js +126 -84
- package/_esm/analyzer/json/components/erc20.js.map +1 -1
- package/_esm/analyzer/json/components/erc20Raw.js +42 -23
- package/_esm/analyzer/json/components/erc20Raw.js.map +1 -1
- package/_esm/analyzer/json/components/erc721.js +113 -72
- package/_esm/analyzer/json/components/erc721.js.map +1 -1
- package/_esm/analyzer/json/components/erc721Raw.js +45 -24
- package/_esm/analyzer/json/components/erc721Raw.js.map +1 -1
- package/_esm/analyzer/json/components/id.js +66 -45
- package/_esm/analyzer/json/components/id.js.map +1 -1
- package/_esm/analyzer/json/components/internal.js +114 -72
- package/_esm/analyzer/json/components/internal.js.map +1 -1
- package/_esm/analyzer/json/components/internalRaw.js +38 -21
- package/_esm/analyzer/json/components/internalRaw.js.map +1 -1
- package/_esm/analyzer/json/components/logArgument.js +109 -75
- package/_esm/analyzer/json/components/logArgument.js.map +1 -1
- package/_esm/analyzer/json/components/logArgumentRaw.js +56 -36
- package/_esm/analyzer/json/components/logArgumentRaw.js.map +1 -1
- package/_esm/analyzer/json/components/targetAsset.js +138 -119
- package/_esm/analyzer/json/components/targetAsset.js.map +1 -1
- package/_esm/analyzer/json/components/transfer.js +558 -462
- package/_esm/analyzer/json/components/transfer.js.map +1 -1
- package/_esm/analyzer/json/condition/address.js +123 -101
- package/_esm/analyzer/json/condition/address.js.map +1 -1
- package/_esm/analyzer/json/condition/argumentValue.js +42 -26
- package/_esm/analyzer/json/condition/argumentValue.js.map +1 -1
- package/_esm/analyzer/json/condition/index.js +4 -3
- package/_esm/analyzer/json/condition/index.js.map +1 -1
- package/_esm/analyzer/json/condition/value.js +77 -60
- package/_esm/analyzer/json/condition/value.js.map +1 -1
- package/_esm/analyzer/json/generator.js +286 -212
- package/_esm/analyzer/json/generator.js.map +1 -1
- package/_esm/analyzer/json/index.js +3 -2
- package/_esm/analyzer/json/index.js.map +1 -1
- package/_esm/analyzer/json/schemas/generator.js +389 -370
- package/_esm/analyzer/json/schemas/generator.js.map +1 -1
- package/_esm/analyzer/json/schemas/index.js +324 -299
- package/_esm/analyzer/json/schemas/index.js.map +1 -1
- package/_esm/analyzer/json/schemas/utils.js +11 -10
- package/_esm/analyzer/json/schemas/utils.js.map +1 -1
- package/_esm/analyzer/json/types.js +114 -1
- package/_esm/analyzer/json/types.js.map +1 -1
- package/_esm/analyzer/parsers/transfer.js +273 -128
- package/_esm/analyzer/parsers/transfer.js.map +1 -1
- package/_esm/analyzer/seaport/analyze.js +931 -711
- package/_esm/analyzer/seaport/analyze.js.map +1 -1
- package/_esm/analyzer/seaport/index.js +2 -1
- package/_esm/analyzer/seaport/index.js.map +1 -1
- package/_esm/analyzer/seaport/orderFulfilled.js +126 -112
- package/_esm/analyzer/seaport/orderFulfilled.js.map +1 -1
- package/_esm/analyzer/spam/analyze.js +181 -142
- package/_esm/analyzer/spam/analyze.js.map +1 -1
- package/_esm/analyzer/spam/index.js +2 -1
- package/_esm/analyzer/spam/index.js.map +1 -1
- package/_esm/analyzer/swap/analyze.js +848 -629
- package/_esm/analyzer/swap/analyze.js.map +1 -1
- package/_esm/analyzer/swap/index.js +2 -1
- package/_esm/analyzer/swap/index.js.map +1 -1
- package/_esm/analyzer/swap/traderJoeLBPairSwap.js +87 -76
- package/_esm/analyzer/swap/traderJoeLBPairSwap.js.map +1 -1
- package/_esm/analyzer/swap/univ2PairSwap.js +73 -63
- package/_esm/analyzer/swap/univ2PairSwap.js.map +1 -1
- package/_esm/analyzer/swap/univ3PoolSwap.js +79 -69
- package/_esm/analyzer/swap/univ3PoolSwap.js.map +1 -1
- package/_esm/analyzer/swap/wrappedDeposit.js +46 -36
- package/_esm/analyzer/swap/wrappedDeposit.js.map +1 -1
- package/_esm/analyzer/swap/wrappedWithdrawal.js +48 -36
- package/_esm/analyzer/swap/wrappedWithdrawal.js.map +1 -1
- package/_esm/analyzer/tests.js +3 -1
- package/_esm/analyzer/tests.js.map +1 -1
- package/_esm/analyzer/transfer/analyze.js +58 -42
- package/_esm/analyzer/transfer/analyze.js.map +1 -1
- package/_esm/analyzer/transfer/index.js +2 -1
- package/_esm/analyzer/transfer/index.js.map +1 -1
- package/_esm/analyzer/types.js +25 -1
- package/_esm/analyzer/types.js.map +1 -1
- package/_esm/analyzer/utils/createTransfersByTransaction.js +84 -50
- package/_esm/analyzer/utils/createTransfersByTransaction.js.map +1 -1
- package/_esm/chain/definitions/arbitrumOne.js +152 -0
- package/_esm/chain/definitions/arbitrumOne.js.map +1 -0
- package/_esm/chain/definitions/astar.js +98 -0
- package/_esm/chain/definitions/astar.js.map +1 -0
- package/_esm/chain/definitions/avalancheC.js +143 -0
- package/_esm/chain/definitions/avalancheC.js.map +1 -0
- package/_esm/chain/definitions/base.js +138 -0
- package/_esm/chain/definitions/base.js.map +1 -0
- package/_esm/chain/definitions/bsc.js +265 -0
- package/_esm/chain/definitions/bsc.js.map +1 -0
- package/_esm/chain/definitions/ethereum.js +380 -0
- package/_esm/chain/definitions/ethereum.js.map +1 -0
- package/_esm/chain/definitions/fantom.js +138 -0
- package/_esm/chain/definitions/fantom.js.map +1 -0
- package/_esm/chain/definitions/linea.js +77 -0
- package/_esm/chain/definitions/linea.js.map +1 -0
- package/_esm/chain/definitions/mantaPacific.js +73 -0
- package/_esm/chain/definitions/mantaPacific.js.map +1 -0
- package/_esm/chain/definitions/mantle.js +84 -0
- package/_esm/chain/definitions/mantle.js.map +1 -0
- package/_esm/chain/definitions/metis.js +67 -0
- package/_esm/chain/definitions/metis.js.map +1 -0
- package/_esm/chain/definitions/moonbeam.js +107 -0
- package/_esm/chain/definitions/moonbeam.js.map +1 -0
- package/_esm/chain/definitions/moonriver.js +88 -0
- package/_esm/chain/definitions/moonriver.js.map +1 -0
- package/_esm/chain/definitions/oasys.js +61 -0
- package/_esm/chain/definitions/oasys.js.map +1 -0
- package/_esm/chain/definitions/optimism.js +166 -0
- package/_esm/chain/definitions/optimism.js.map +1 -0
- package/_esm/chain/definitions/polygonPos.js +162 -0
- package/_esm/chain/definitions/polygonPos.js.map +1 -0
- package/_esm/chain/definitions/ronin.js +58 -0
- package/_esm/chain/definitions/ronin.js.map +1 -0
- package/_esm/chain/definitions/tests.js.map +1 -0
- package/_esm/chain/index.js +18 -0
- package/_esm/chain/index.js.map +1 -0
- package/_esm/chain/types/chain.js.map +1 -0
- package/_esm/chain/types/rpc.js.map +1 -0
- package/_esm/client/create.js +227 -0
- package/_esm/client/create.js.map +1 -0
- package/_esm/client/index.js +2 -0
- package/_esm/client/index.js.map +1 -0
- package/_esm/client/rpcManager.js +95 -0
- package/_esm/client/rpcManager.js.map +1 -0
- package/_esm/client/types.js.map +1 -0
- package/_esm/explorer/blockscout/client.js +74 -0
- package/_esm/explorer/blockscout/client.js.map +1 -0
- package/_esm/explorer/blockscout/create.js +132 -0
- package/_esm/explorer/blockscout/create.js.map +1 -0
- package/_esm/explorer/blockscout/getBlockNumberByTimestamp.js +19 -0
- package/_esm/explorer/blockscout/getBlockNumberByTimestamp.js.map +1 -0
- package/_esm/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.js +22 -0
- package/_esm/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.js.map +1 -0
- package/_esm/explorer/blockscout/getContractSourceCodeForAVerifiedContract.js +32 -0
- package/_esm/explorer/blockscout/getContractSourceCodeForAVerifiedContract.js.map +1 -0
- package/_esm/explorer/blockscout/getEventLogsByAddressAndTopic.js +36 -0
- package/_esm/explorer/blockscout/getEventLogsByAddressAndTopic.js.map +1 -0
- package/_esm/explorer/blockscout/getInternalTransactionsByAddressHash.js +71 -0
- package/_esm/explorer/blockscout/getInternalTransactionsByAddressHash.js.map +1 -0
- package/_esm/explorer/blockscout/getInternalTransactionsByTransactionHash.js +62 -0
- package/_esm/explorer/blockscout/getInternalTransactionsByTransactionHash.js.map +1 -0
- package/_esm/explorer/blockscout/getTokenTransferEventsByAddress.js +44 -0
- package/_esm/explorer/blockscout/getTokenTransferEventsByAddress.js.map +1 -0
- package/_esm/explorer/blockscout/getTransactionsByAddress.js +43 -0
- package/_esm/explorer/blockscout/getTransactionsByAddress.js.map +1 -0
- package/_esm/explorer/etherscan/client.js +91 -0
- package/_esm/explorer/etherscan/client.js.map +1 -0
- package/_esm/explorer/etherscan/create.js +179 -0
- package/_esm/explorer/etherscan/create.js.map +1 -0
- package/_esm/explorer/etherscan/getBlockNumberByTimestamp.js +17 -0
- package/_esm/explorer/etherscan/getBlockNumberByTimestamp.js.map +1 -0
- package/_esm/explorer/etherscan/getContractCreatorAndCreationTxHash.js +22 -0
- package/_esm/explorer/etherscan/getContractCreatorAndCreationTxHash.js.map +1 -0
- package/_esm/explorer/etherscan/getContractSourceCodeForVerifiedContract.js +32 -0
- package/_esm/explorer/etherscan/getContractSourceCodeForVerifiedContract.js.map +1 -0
- package/_esm/explorer/etherscan/getEventLogsByAddressFilteredByTopics.js +36 -0
- package/_esm/explorer/etherscan/getEventLogsByAddressFilteredByTopics.js.map +1 -0
- package/_esm/explorer/etherscan/getInternalTransactionsByTransactionHash.js +60 -0
- package/_esm/explorer/etherscan/getInternalTransactionsByTransactionHash.js.map +1 -0
- package/_esm/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.js +45 -0
- package/_esm/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.js.map +1 -0
- package/_esm/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.js +43 -0
- package/_esm/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.js.map +1 -0
- package/_esm/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.js +43 -0
- package/_esm/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.js.map +1 -0
- package/_esm/explorer/etherscan/getListOfInternalTransactionsByAddress.js +70 -0
- package/_esm/explorer/etherscan/getListOfInternalTransactionsByAddress.js.map +1 -0
- package/_esm/explorer/etherscan/getListOfNormalTransactionsByAddress.js +43 -0
- package/_esm/explorer/etherscan/getListOfNormalTransactionsByAddress.js.map +1 -0
- package/_esm/explorer/index.js +4 -0
- package/_esm/explorer/index.js.map +1 -0
- package/_esm/explorer/noApiExplorer/create.js +29 -0
- package/_esm/explorer/noApiExplorer/create.js.map +1 -0
- package/_esm/explorer/types.js.map +1 -0
- package/_esm/index.js +10 -9
- package/_esm/index.js.map +1 -1
- package/_esm/logic/analyzeTransaction/createActions/fail.js +25 -0
- package/_esm/logic/analyzeTransaction/createActions/fail.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/gas.js +35 -0
- package/_esm/logic/analyzeTransaction/createActions/gas.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/general.js +15 -0
- package/_esm/logic/analyzeTransaction/createActions/general.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/index.js +63 -0
- package/_esm/logic/analyzeTransaction/createActions/index.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/spam.js +135 -0
- package/_esm/logic/analyzeTransaction/createActions/spam.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.js +23 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/createDirection.js +14 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/createDirection.js.map +1 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/createTokenTransfers.js +130 -0
- package/_esm/logic/analyzeTransaction/createActions/utils/createTokenTransfers.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/decodeInput.js +93 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/decodeInput.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/decodeLog.js +91 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/decodeLog.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/index.js +64 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/index.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.js +18 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.js +11 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.js.map +1 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.js +18 -0
- package/_esm/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.js.map +1 -0
- package/_esm/logic/analyzeTransaction/getDataFromDatasource.js +57 -0
- package/_esm/logic/analyzeTransaction/getDataFromDatasource.js.map +1 -0
- package/_esm/logic/analyzeTransaction/index.js +28 -0
- package/_esm/logic/analyzeTransaction/index.js.map +1 -0
- package/_esm/logic/getAddressIndexData.js +44 -0
- package/_esm/logic/getAddressIndexData.js.map +1 -0
- package/_esm/logic/getTransactionDetail/decodeTokenTransferLogs.js +393 -0
- package/_esm/logic/getTransactionDetail/decodeTokenTransferLogs.js.map +1 -0
- package/_esm/logic/getTransactionDetail/index.js +49 -0
- package/_esm/logic/getTransactionDetail/index.js.map +1 -0
- package/_esm/tests.js +6 -1
- package/_esm/tests.js.map +1 -1
- package/_esm/types/accountId.js +2 -0
- package/_esm/types/accountId.js.map +1 -0
- package/_esm/types/address.js +4 -24
- package/_esm/types/address.js.map +1 -1
- package/_esm/types/analyzeDataSource.js +2 -0
- package/_esm/types/analyzeDataSource.js.map +1 -0
- package/_esm/types/erc1155.js +15 -1
- package/_esm/types/erc1155.js.map +1 -1
- package/_esm/types/erc20.js +20 -1
- package/_esm/types/erc20.js.map +1 -1
- package/_esm/types/erc721.js +14 -1
- package/_esm/types/erc721.js.map +1 -1
- package/_esm/types/index.js +10 -1
- package/_esm/types/index.js.map +1 -1
- package/_esm/types/internalTransaction.js +15 -1
- package/_esm/types/internalTransaction.js.map +1 -1
- package/_esm/types/log.js +11 -34
- package/_esm/types/log.js.map +1 -1
- package/_esm/types/primitive.js +16 -0
- package/_esm/types/primitive.js.map +1 -0
- package/_esm/types/source.js +2 -0
- package/_esm/types/source.js.map +1 -0
- package/_esm/types/transactionDecoded.js +24 -0
- package/_esm/types/transactionDecoded.js.map +1 -0
- package/_esm/types/transactionDetail.js +27 -0
- package/_esm/types/transactionDetail.js.map +1 -0
- package/_esm/types/transactionIndex.js +7 -0
- package/_esm/types/transactionIndex.js.map +1 -0
- package/_esm/utils/create.js +2 -4
- package/_esm/utils/create.js.map +1 -1
- package/_esm/utils/createInternalTransactionId.js +10 -0
- package/_esm/utils/createInternalTransactionId.js.map +1 -0
- package/_esm/utils/index.js +1 -1
- package/_esm/utils/index.js.map +1 -1
- package/_types/analyzer/analyze.d.ts +0 -12
- package/_types/analyzer/analyze.d.ts.map +1 -1
- package/_types/analyzer/analyzer.d.ts +0 -11
- package/_types/analyzer/analyzer.d.ts.map +1 -1
- package/_types/analyzer/axieMarketplace/analyze.d.ts +0 -10
- package/_types/analyzer/axieMarketplace/analyze.d.ts.map +1 -1
- package/_types/analyzer/axieMarketplace/index.d.ts +0 -1
- package/_types/analyzer/axieMarketplace/index.d.ts.map +1 -1
- package/_types/analyzer/fail/analyze.d.ts +0 -10
- package/_types/analyzer/fail/analyze.d.ts.map +1 -1
- package/_types/analyzer/fail/index.d.ts +0 -1
- package/_types/analyzer/fail/index.d.ts.map +1 -1
- package/_types/analyzer/gasFee/analyze.d.ts +0 -10
- package/_types/analyzer/gasFee/analyze.d.ts.map +1 -1
- package/_types/analyzer/gasFee/index.d.ts +0 -1
- package/_types/analyzer/gasFee/index.d.ts.map +1 -1
- package/_types/analyzer/index.d.ts +0 -11
- package/_types/analyzer/index.d.ts.map +1 -1
- package/_types/analyzer/json/analyze.d.ts +0 -11
- package/_types/analyzer/json/analyze.d.ts.map +1 -1
- package/_types/analyzer/json/components/comment.d.ts +0 -19
- package/_types/analyzer/json/components/comment.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc1155.d.ts +0 -31
- package/_types/analyzer/json/components/erc1155.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc1155Raw.d.ts +0 -17
- package/_types/analyzer/json/components/erc1155Raw.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc20.d.ts +0 -31
- package/_types/analyzer/json/components/erc20.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc20Raw.d.ts +0 -17
- package/_types/analyzer/json/components/erc20Raw.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc721.d.ts +0 -31
- package/_types/analyzer/json/components/erc721.d.ts.map +1 -1
- package/_types/analyzer/json/components/erc721Raw.d.ts +0 -17
- package/_types/analyzer/json/components/erc721Raw.d.ts.map +1 -1
- package/_types/analyzer/json/components/id.d.ts +0 -19
- package/_types/analyzer/json/components/id.d.ts.map +1 -1
- package/_types/analyzer/json/components/internal.d.ts +0 -31
- package/_types/analyzer/json/components/internal.d.ts.map +1 -1
- package/_types/analyzer/json/components/internalRaw.d.ts +0 -17
- package/_types/analyzer/json/components/internalRaw.d.ts.map +1 -1
- package/_types/analyzer/json/components/logArgument.d.ts +0 -31
- package/_types/analyzer/json/components/logArgument.d.ts.map +1 -1
- package/_types/analyzer/json/components/logArgumentRaw.d.ts +0 -17
- package/_types/analyzer/json/components/logArgumentRaw.d.ts.map +1 -1
- package/_types/analyzer/json/components/targetAsset.d.ts +0 -19
- package/_types/analyzer/json/components/targetAsset.d.ts.map +1 -1
- package/_types/analyzer/json/components/transfer.d.ts +0 -19
- package/_types/analyzer/json/components/transfer.d.ts.map +1 -1
- package/_types/analyzer/json/condition/address.d.ts +0 -17
- package/_types/analyzer/json/condition/address.d.ts.map +1 -1
- package/_types/analyzer/json/condition/argumentValue.d.ts +0 -17
- package/_types/analyzer/json/condition/argumentValue.d.ts.map +1 -1
- package/_types/analyzer/json/condition/index.d.ts +0 -3
- package/_types/analyzer/json/condition/index.d.ts.map +1 -1
- package/_types/analyzer/json/condition/value.d.ts +0 -17
- package/_types/analyzer/json/condition/value.d.ts.map +1 -1
- package/_types/analyzer/json/generator.d.ts +0 -19
- package/_types/analyzer/json/generator.d.ts.map +1 -1
- package/_types/analyzer/json/index.d.ts +0 -2
- package/_types/analyzer/json/index.d.ts.map +1 -1
- package/_types/analyzer/json/schemas/generator.d.ts +0 -46862
- package/_types/analyzer/json/schemas/generator.d.ts.map +1 -1
- package/_types/analyzer/json/schemas/index.d.ts +0 -1348
- package/_types/analyzer/json/schemas/index.d.ts.map +1 -1
- package/_types/analyzer/json/schemas/utils.d.ts +0 -3
- package/_types/analyzer/json/schemas/utils.d.ts.map +1 -1
- package/_types/analyzer/json/types.d.ts +0 -47
- package/_types/analyzer/json/types.d.ts.map +1 -1
- package/_types/analyzer/parsers/transfer.d.ts +0 -45
- package/_types/analyzer/parsers/transfer.d.ts.map +1 -1
- package/_types/analyzer/seaport/analyze.d.ts +0 -10
- package/_types/analyzer/seaport/analyze.d.ts.map +1 -1
- package/_types/analyzer/seaport/index.d.ts +0 -1
- package/_types/analyzer/seaport/index.d.ts.map +1 -1
- package/_types/analyzer/seaport/orderFulfilled.d.ts +0 -138
- package/_types/analyzer/seaport/orderFulfilled.d.ts.map +1 -1
- package/_types/analyzer/spam/analyze.d.ts +0 -10
- package/_types/analyzer/spam/analyze.d.ts.map +1 -1
- package/_types/analyzer/spam/index.d.ts +0 -1
- package/_types/analyzer/spam/index.d.ts.map +1 -1
- package/_types/analyzer/swap/analyze.d.ts +0 -10
- package/_types/analyzer/swap/analyze.d.ts.map +1 -1
- package/_types/analyzer/swap/index.d.ts +0 -1
- package/_types/analyzer/swap/index.d.ts.map +1 -1
- package/_types/analyzer/swap/traderJoeLBPairSwap.d.ts +0 -107
- package/_types/analyzer/swap/traderJoeLBPairSwap.d.ts.map +1 -1
- package/_types/analyzer/swap/univ2PairSwap.d.ts +0 -83
- package/_types/analyzer/swap/univ2PairSwap.d.ts.map +1 -1
- package/_types/analyzer/swap/univ3PoolSwap.d.ts +0 -95
- package/_types/analyzer/swap/univ3PoolSwap.d.ts.map +1 -1
- package/_types/analyzer/swap/wrappedDeposit.d.ts +0 -35
- package/_types/analyzer/swap/wrappedDeposit.d.ts.map +1 -1
- package/_types/analyzer/swap/wrappedWithdrawal.d.ts +0 -35
- package/_types/analyzer/swap/wrappedWithdrawal.d.ts.map +1 -1
- package/_types/analyzer/tests.d.ts +0 -1
- package/_types/analyzer/tests.d.ts.map +1 -1
- package/_types/analyzer/transfer/analyze.d.ts +0 -10
- package/_types/analyzer/transfer/analyze.d.ts.map +1 -1
- package/_types/analyzer/transfer/index.d.ts +0 -1
- package/_types/analyzer/transfer/index.d.ts.map +1 -1
- package/_types/analyzer/types.d.ts +0 -16
- package/_types/analyzer/types.d.ts.map +1 -1
- package/_types/analyzer/utils/createTransfersByTransaction.d.ts +0 -63
- package/_types/analyzer/utils/createTransfersByTransaction.d.ts.map +1 -1
- package/_types/chain/definitions/arbitrumOne.d.ts +18 -0
- package/_types/chain/definitions/arbitrumOne.d.ts.map +1 -0
- package/_types/chain/definitions/astar.d.ts +14 -0
- package/_types/chain/definitions/astar.d.ts.map +1 -0
- package/_types/chain/definitions/avalancheC.d.ts +18 -0
- package/_types/chain/definitions/avalancheC.d.ts.map +1 -0
- package/_types/chain/definitions/base.d.ts +18 -0
- package/_types/chain/definitions/base.d.ts.map +1 -0
- package/_types/chain/definitions/bsc.d.ts +18 -0
- package/_types/chain/definitions/bsc.d.ts.map +1 -0
- package/_types/chain/definitions/ethereum.d.ts +18 -0
- package/_types/chain/definitions/ethereum.d.ts.map +1 -0
- package/_types/chain/definitions/fantom.d.ts +18 -0
- package/_types/chain/definitions/fantom.d.ts.map +1 -0
- package/_types/chain/definitions/linea.d.ts +18 -0
- package/_types/chain/definitions/linea.d.ts.map +1 -0
- package/_types/chain/definitions/mantaPacific.d.ts +14 -0
- package/_types/chain/definitions/mantaPacific.d.ts.map +1 -0
- package/_types/chain/definitions/mantle.d.ts +18 -0
- package/_types/chain/definitions/mantle.d.ts.map +1 -0
- package/_types/chain/definitions/metis.d.ts +14 -0
- package/_types/chain/definitions/metis.d.ts.map +1 -0
- package/_types/chain/definitions/moonbeam.d.ts +18 -0
- package/_types/chain/definitions/moonbeam.d.ts.map +1 -0
- package/_types/chain/definitions/moonriver.d.ts +18 -0
- package/_types/chain/definitions/moonriver.d.ts.map +1 -0
- package/_types/chain/definitions/oasys.d.ts +14 -0
- package/_types/chain/definitions/oasys.d.ts.map +1 -0
- package/_types/chain/definitions/optimism.d.ts +18 -0
- package/_types/chain/definitions/optimism.d.ts.map +1 -0
- package/_types/chain/definitions/polygonPos.d.ts +18 -0
- package/_types/chain/definitions/polygonPos.d.ts.map +1 -0
- package/_types/chain/definitions/ronin.d.ts +14 -0
- package/_types/chain/definitions/ronin.d.ts.map +1 -0
- package/_types/chain/definitions/tests.d.ts.map +1 -0
- package/_types/chain/index.d.ts +20 -0
- package/_types/chain/index.d.ts.map +1 -0
- package/_types/chain/types/chain.d.ts +24 -0
- package/_types/chain/types/chain.d.ts.map +1 -0
- package/_types/chain/types/rpc.d.ts +6 -0
- package/_types/chain/types/rpc.d.ts.map +1 -0
- package/_types/client/create.d.ts +10 -0
- package/_types/client/create.d.ts.map +1 -0
- package/_types/client/index.d.ts +3 -0
- package/_types/client/index.d.ts.map +1 -0
- package/_types/client/rpcManager.d.ts +20 -0
- package/_types/client/rpcManager.d.ts.map +1 -0
- package/_types/client/types.d.ts +27 -0
- package/_types/client/types.d.ts.map +1 -0
- package/_types/explorer/blockscout/client.d.ts +10 -0
- package/_types/explorer/blockscout/client.d.ts.map +1 -0
- package/_types/explorer/blockscout/create.d.ts +9 -0
- package/_types/explorer/blockscout/create.d.ts.map +1 -0
- package/_types/explorer/blockscout/getBlockNumberByTimestamp.d.ts +11 -0
- package/_types/explorer/blockscout/getBlockNumberByTimestamp.d.ts.map +1 -0
- package/_types/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.d.ts +11 -0
- package/_types/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.d.ts.map +1 -0
- package/_types/explorer/blockscout/getContractSourceCodeForAVerifiedContract.d.ts +11 -0
- package/_types/explorer/blockscout/getContractSourceCodeForAVerifiedContract.d.ts.map +1 -0
- package/_types/explorer/blockscout/getEventLogsByAddressAndTopic.d.ts +14 -0
- package/_types/explorer/blockscout/getEventLogsByAddressAndTopic.d.ts.map +1 -0
- package/_types/explorer/blockscout/getInternalTransactionsByAddressHash.d.ts +16 -0
- package/_types/explorer/blockscout/getInternalTransactionsByAddressHash.d.ts.map +1 -0
- package/_types/explorer/blockscout/getInternalTransactionsByTransactionHash.d.ts +11 -0
- package/_types/explorer/blockscout/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/_types/explorer/blockscout/getTokenTransferEventsByAddress.d.ts +15 -0
- package/_types/explorer/blockscout/getTokenTransferEventsByAddress.d.ts.map +1 -0
- package/_types/explorer/blockscout/getTransactionsByAddress.d.ts +16 -0
- package/_types/explorer/blockscout/getTransactionsByAddress.d.ts.map +1 -0
- package/_types/explorer/etherscan/client.d.ts +17 -0
- package/_types/explorer/etherscan/client.d.ts.map +1 -0
- package/_types/explorer/etherscan/create.d.ts +12 -0
- package/_types/explorer/etherscan/create.d.ts.map +1 -0
- package/_types/explorer/etherscan/getBlockNumberByTimestamp.d.ts +11 -0
- package/_types/explorer/etherscan/getBlockNumberByTimestamp.d.ts.map +1 -0
- package/_types/explorer/etherscan/getContractCreatorAndCreationTxHash.d.ts +11 -0
- package/_types/explorer/etherscan/getContractCreatorAndCreationTxHash.d.ts.map +1 -0
- package/_types/explorer/etherscan/getContractSourceCodeForVerifiedContract.d.ts +11 -0
- package/_types/explorer/etherscan/getContractSourceCodeForVerifiedContract.d.ts.map +1 -0
- package/_types/explorer/etherscan/getEventLogsByAddressFilteredByTopics.d.ts +15 -0
- package/_types/explorer/etherscan/getEventLogsByAddressFilteredByTopics.d.ts.map +1 -0
- package/_types/explorer/etherscan/getInternalTransactionsByTransactionHash.d.ts +11 -0
- package/_types/explorer/etherscan/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/_types/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.d.ts +15 -0
- package/_types/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.d.ts.map +1 -0
- package/_types/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.d.ts +15 -0
- package/_types/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.d.ts.map +1 -0
- package/_types/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.d.ts +15 -0
- package/_types/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.d.ts.map +1 -0
- package/_types/explorer/etherscan/getListOfInternalTransactionsByAddress.d.ts +16 -0
- package/_types/explorer/etherscan/getListOfInternalTransactionsByAddress.d.ts.map +1 -0
- package/_types/explorer/etherscan/getListOfNormalTransactionsByAddress.d.ts +16 -0
- package/_types/explorer/etherscan/getListOfNormalTransactionsByAddress.d.ts.map +1 -0
- package/_types/explorer/index.d.ts +5 -0
- package/_types/explorer/index.d.ts.map +1 -0
- package/_types/explorer/noApiExplorer/create.d.ts +8 -0
- package/_types/explorer/noApiExplorer/create.d.ts.map +1 -0
- package/_types/explorer/types.d.ts +64 -0
- package/_types/explorer/types.d.ts.map +1 -0
- package/_types/index.d.ts +13 -16
- package/_types/index.d.ts.map +1 -1
- package/_types/logic/analyzeTransaction/createActions/fail.d.ts +10 -0
- package/_types/logic/analyzeTransaction/createActions/fail.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/gas.d.ts +12 -0
- package/_types/logic/analyzeTransaction/createActions/gas.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/general.d.ts +11 -0
- package/_types/logic/analyzeTransaction/createActions/general.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/index.d.ts +12 -0
- package/_types/logic/analyzeTransaction/createActions/index.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/spam.d.ts +11 -0
- package/_types/logic/analyzeTransaction/createActions/spam.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.d.ts +16 -0
- package/_types/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/utils/createDirection.d.ts +8 -0
- package/_types/logic/analyzeTransaction/createActions/utils/createDirection.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/createActions/utils/createTokenTransfers.d.ts +11 -0
- package/_types/logic/analyzeTransaction/createActions/utils/createTokenTransfers.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/decodeInput.d.ts +10 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/decodeInput.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/decodeLog.d.ts +10 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/decodeLog.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/index.d.ts +20 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/index.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.d.ts +11 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.d.ts +9 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.d.ts +11 -0
- package/_types/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/getDataFromDatasource.d.ts +24 -0
- package/_types/logic/analyzeTransaction/getDataFromDatasource.d.ts.map +1 -0
- package/_types/logic/analyzeTransaction/index.d.ts +18 -0
- package/_types/logic/analyzeTransaction/index.d.ts.map +1 -0
- package/_types/logic/getAddressIndexData.d.ts +17 -0
- package/_types/logic/getAddressIndexData.d.ts.map +1 -0
- package/_types/logic/getTransactionDetail/decodeTokenTransferLogs.d.ts +11 -0
- package/_types/logic/getTransactionDetail/decodeTokenTransferLogs.d.ts.map +1 -0
- package/_types/logic/getTransactionDetail/index.d.ts +12 -0
- package/_types/logic/getTransactionDetail/index.d.ts.map +1 -0
- package/_types/tests.d.ts +6 -1
- package/_types/tests.d.ts.map +1 -1
- package/_types/types/accountId.d.ts +4 -0
- package/_types/types/accountId.d.ts.map +1 -0
- package/_types/types/address.d.ts +7 -34
- package/_types/types/address.d.ts.map +1 -1
- package/_types/types/analyzeDataSource.d.ts +40 -0
- package/_types/types/analyzeDataSource.d.ts.map +1 -0
- package/_types/types/erc1155.d.ts +87 -14
- package/_types/types/erc1155.d.ts.map +1 -1
- package/_types/types/erc20.d.ts +251 -18
- package/_types/types/erc20.d.ts.map +1 -1
- package/_types/types/erc721.d.ts +81 -16
- package/_types/types/erc721.d.ts.map +1 -1
- package/_types/types/hex.d.ts +1 -1
- package/_types/types/hex.d.ts.map +1 -1
- package/_types/types/index.d.ts +22 -9
- package/_types/types/index.d.ts.map +1 -1
- package/_types/types/internalTransaction.d.ts +60 -17
- package/_types/types/internalTransaction.d.ts.map +1 -1
- package/_types/types/log.d.ts +23 -90
- package/_types/types/log.d.ts.map +1 -1
- package/_types/types/primitive.d.ts +6 -0
- package/_types/types/primitive.d.ts.map +1 -0
- package/_types/types/source.d.ts +4 -0
- package/_types/types/source.d.ts.map +1 -0
- package/_types/types/transactionDecoded.d.ts +759 -0
- package/_types/types/transactionDecoded.d.ts.map +1 -0
- package/_types/types/transactionDetail.d.ts +268 -0
- package/_types/types/transactionDetail.d.ts.map +1 -0
- package/_types/types/transactionIndex.d.ts +161 -0
- package/_types/types/transactionIndex.d.ts.map +1 -0
- package/_types/utils/create.d.ts +3 -5
- package/_types/utils/create.d.ts.map +1 -1
- package/_types/utils/createInternalTransactionId.d.ts +3 -0
- package/_types/utils/createInternalTransactionId.d.ts.map +1 -0
- package/_types/utils/index.d.ts +1 -1
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/types.d.ts.map +1 -1
- package/analyzer/analyze.ts +82 -82
- package/analyzer/analyzer.ts +4 -4
- package/analyzer/axieMarketplace/analyze.ts +237 -237
- package/analyzer/axieMarketplace/index.ts +1 -1
- package/analyzer/fail/analyze.ts +46 -46
- package/analyzer/fail/index.ts +1 -1
- package/analyzer/gasFee/analyze.ts +67 -67
- package/analyzer/gasFee/index.ts +1 -1
- package/analyzer/index.ts +11 -11
- package/analyzer/json/analyze.ts +511 -513
- package/analyzer/json/components/comment.ts +65 -63
- package/analyzer/json/components/erc1155.ts +128 -128
- package/analyzer/json/components/erc1155Raw.ts +44 -44
- package/analyzer/json/components/erc20.ts +125 -125
- package/analyzer/json/components/erc20Raw.ts +41 -41
- package/analyzer/json/components/erc721.ts +112 -113
- package/analyzer/json/components/erc721Raw.ts +44 -44
- package/analyzer/json/components/id.ts +65 -63
- package/analyzer/json/components/internal.ts +113 -113
- package/analyzer/json/components/internalRaw.ts +37 -37
- package/analyzer/json/components/logArgument.ts +108 -109
- package/analyzer/json/components/logArgumentRaw.ts +55 -55
- package/analyzer/json/components/targetAsset.ts +137 -137
- package/analyzer/json/components/transfer.ts +557 -556
- package/analyzer/json/condition/address.ts +122 -122
- package/analyzer/json/condition/argumentValue.ts +41 -41
- package/analyzer/json/condition/index.ts +3 -3
- package/analyzer/json/condition/value.ts +76 -74
- package/analyzer/json/generator.ts +285 -285
- package/analyzer/json/index.ts +2 -2
- package/analyzer/json/schemas/generator.ts +426 -422
- package/analyzer/json/schemas/index.ts +363 -363
- package/analyzer/json/schemas/utils.ts +10 -10
- package/analyzer/json/types.ts +136 -136
- package/analyzer/parsers/transfer.ts +272 -272
- package/analyzer/seaport/analyze.ts +930 -931
- package/analyzer/seaport/index.ts +1 -1
- package/analyzer/seaport/orderFulfilled.ts +125 -125
- package/analyzer/spam/analyze.ts +180 -180
- package/analyzer/spam/index.ts +1 -1
- package/analyzer/swap/analyze.ts +905 -905
- package/analyzer/swap/index.ts +1 -1
- package/analyzer/swap/traderJoeLBPairSwap.ts +86 -87
- package/analyzer/swap/univ2PairSwap.ts +72 -72
- package/analyzer/swap/univ3PoolSwap.ts +78 -78
- package/analyzer/swap/wrappedDeposit.ts +45 -45
- package/analyzer/swap/wrappedWithdrawal.ts +47 -47
- package/analyzer/tests.ts +2 -2
- package/analyzer/transfer/analyze.ts +57 -57
- package/analyzer/transfer/index.ts +1 -1
- package/analyzer/types.ts +24 -24
- package/analyzer/utils/createTransfersByTransaction.ts +83 -83
- package/chain/.DS_Store +0 -0
- package/chain/definitions/arbitrumOne.ts +176 -0
- package/chain/definitions/astar.ts +113 -0
- package/chain/definitions/avalancheC.ts +166 -0
- package/chain/definitions/base.ts +161 -0
- package/chain/definitions/bsc.ts +288 -0
- package/chain/definitions/ethereum.ts +403 -0
- package/chain/definitions/fantom.ts +161 -0
- package/chain/definitions/linea.ts +100 -0
- package/chain/definitions/mantaPacific.ts +88 -0
- package/chain/definitions/mantle.ts +106 -0
- package/chain/definitions/metis.ts +81 -0
- package/chain/definitions/moonbeam.ts +130 -0
- package/chain/definitions/moonriver.ts +111 -0
- package/chain/definitions/oasys.ts +76 -0
- package/chain/definitions/optimism.ts +189 -0
- package/chain/definitions/polygonPos.ts +185 -0
- package/chain/definitions/ronin.ts +72 -0
- package/chain/index.ts +104 -0
- package/chain/types/chain.ts +24 -0
- package/chain/types/rpc.ts +5 -0
- package/client/create.ts +300 -0
- package/client/index.ts +2 -0
- package/client/rpcManager.ts +140 -0
- package/client/types.ts +34 -0
- package/explorer/.DS_Store +0 -0
- package/explorer/blockscout/client.ts +114 -0
- package/explorer/blockscout/create.ts +159 -0
- package/explorer/blockscout/getBlockNumberByTimestamp.ts +32 -0
- package/explorer/blockscout/getContractCreatorAddressHashAndCreationTransactionHash.ts +36 -0
- package/explorer/blockscout/getContractSourceCodeForAVerifiedContract.ts +51 -0
- package/explorer/blockscout/getEventLogsByAddressAndTopic.ts +54 -0
- package/explorer/blockscout/getInternalTransactionsByAddressHash.ts +101 -0
- package/explorer/blockscout/getInternalTransactionsByTransactionHash.ts +82 -0
- package/explorer/blockscout/getTokenTransferEventsByAddress.ts +68 -0
- package/explorer/blockscout/getTransactionsByAddress.ts +64 -0
- package/explorer/etherscan/client.ts +144 -0
- package/explorer/etherscan/create.ts +216 -0
- package/explorer/etherscan/getBlockNumberByTimestamp.ts +30 -0
- package/explorer/etherscan/getContractCreatorAndCreationTxHash.ts +36 -0
- package/explorer/etherscan/getContractSourceCodeForVerifiedContract.ts +51 -0
- package/explorer/etherscan/getEventLogsByAddressFilteredByTopics.ts +57 -0
- package/explorer/etherscan/getInternalTransactionsByTransactionHash.ts +73 -0
- package/explorer/etherscan/getListOfErc1155TokenTransferEventsByAddress.ts +69 -0
- package/explorer/etherscan/getListOfErc20TokenTransferEventsByAddress.ts +65 -0
- package/explorer/etherscan/getListOfErc721TokenTransferEventsByAddress.ts +65 -0
- package/explorer/etherscan/getListOfInternalTransactionsByAddress.ts +97 -0
- package/explorer/etherscan/getListOfNormalTransactionsByAddress.ts +66 -0
- package/explorer/index.ts +4 -0
- package/explorer/noApiExplorer/create.ts +38 -0
- package/explorer/types.ts +74 -0
- package/index.ts +47 -44
- package/logic/analyzeTransaction/createActions/fail.ts +39 -0
- package/logic/analyzeTransaction/createActions/gas.ts +55 -0
- package/logic/analyzeTransaction/createActions/general.ts +32 -0
- package/logic/analyzeTransaction/createActions/index.ts +87 -0
- package/logic/analyzeTransaction/createActions/spam.ts +153 -0
- package/logic/analyzeTransaction/createActions/tests/tx-1-0x4a65329939822318857d0953f0e0280fc5967f0d66df3d1282ef45c347d017ce.json +53026 -0
- package/logic/analyzeTransaction/createActions/tests/tx-1-0x526908797529f6aef403be2c0b54d08ce3fa0db8dbb6c551505b702a94de0d70.json +24 -0
- package/logic/analyzeTransaction/createActions/tests/tx-1-0x9eabff7c9dbe08db80a7eae674068ec0d520be1658d34fc037b05a0ecb25ba1b-from-is-spam.json +48027 -0
- package/logic/analyzeTransaction/createActions/tests/tx-1-0x9eabff7c9dbe08db80a7eae674068ec0d520be1658d34fc037b05a0ecb25ba1b-nft-is-spam.json +49026 -0
- package/logic/analyzeTransaction/createActions/tests/tx-2020-0xd84c9280b85a4d40980cbc51d523c7c0a747cd684d9802131d044a5d0b5e4035.json +193 -0
- package/logic/analyzeTransaction/createActions/utils/containsUrlOrDomain.ts +25 -0
- package/logic/analyzeTransaction/createActions/utils/createDirection.ts +27 -0
- package/logic/analyzeTransaction/createActions/utils/createTokenTransfers.ts +154 -0
- package/logic/analyzeTransaction/decodeTransaction/decodeInput.ts +126 -0
- package/logic/analyzeTransaction/decodeTransaction/decodeLog.ts +110 -0
- package/logic/analyzeTransaction/decodeTransaction/index.ts +107 -0
- package/logic/analyzeTransaction/decodeTransaction/parseToErc1155TokenTransfer.ts +31 -0
- package/logic/analyzeTransaction/decodeTransaction/parseToErc20TokenTransfer.ts +21 -0
- package/logic/analyzeTransaction/decodeTransaction/parseToErc721TokenTransfer.ts +31 -0
- package/logic/analyzeTransaction/getDataFromDatasource.ts +97 -0
- package/logic/analyzeTransaction/index.ts +60 -0
- package/logic/getAddressIndexData.ts +68 -0
- package/logic/getTransactionDetail/data.json +217 -0
- package/logic/getTransactionDetail/decodeTokenTransferLogs.ts +487 -0
- package/logic/getTransactionDetail/index.ts +79 -0
- package/package.json +4 -7
- package/tests.ts +11 -1
- package/types/accountId.ts +6 -0
- package/types/address.ts +4 -27
- package/types/analyzeDataSource.ts +41 -0
- package/types/erc1155.ts +21 -14
- package/types/erc20.ts +27 -20
- package/types/erc721.ts +20 -16
- package/types/index.ts +45 -12
- package/types/internalTransaction.ts +27 -18
- package/types/log.ts +22 -63
- package/types/primitive.ts +19 -0
- package/types/source.ts +7 -0
- package/types/transactionDecoded.ts +31 -0
- package/types/transactionDetail.ts +34 -0
- package/types/transactionIndex.ts +10 -0
- package/utils/create.ts +13 -11
- package/utils/createInternalTransactionId.ts +14 -0
- package/utils/index.ts +0 -2
- package/utils/types.ts +0 -1
- package/_cjs/apps/index.js +0 -3
- package/_cjs/apps/index.js.map +0 -1
- package/_cjs/apps/types.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumOne.js +0 -116
- package/_cjs/chains/definitions/arbitrumOne.js.map +0 -1
- package/_cjs/chains/definitions/astar.js +0 -76
- package/_cjs/chains/definitions/astar.js.map +0 -1
- package/_cjs/chains/definitions/avalancheC.js +0 -98
- package/_cjs/chains/definitions/avalancheC.js.map +0 -1
- package/_cjs/chains/definitions/base.js +0 -110
- package/_cjs/chains/definitions/base.js.map +0 -1
- package/_cjs/chains/definitions/bsc.js +0 -170
- package/_cjs/chains/definitions/bsc.js.map +0 -1
- package/_cjs/chains/definitions/defineChain.js +0 -8
- package/_cjs/chains/definitions/defineChain.js.map +0 -1
- package/_cjs/chains/definitions/ethereum.js +0 -140
- package/_cjs/chains/definitions/ethereum.js.map +0 -1
- package/_cjs/chains/definitions/fantom.js +0 -106
- package/_cjs/chains/definitions/fantom.js.map +0 -1
- package/_cjs/chains/definitions/index.js +0 -88
- package/_cjs/chains/definitions/index.js.map +0 -1
- package/_cjs/chains/definitions/linea.js +0 -78
- package/_cjs/chains/definitions/linea.js.map +0 -1
- package/_cjs/chains/definitions/mantaPacific.js +0 -77
- package/_cjs/chains/definitions/mantaPacific.js.map +0 -1
- package/_cjs/chains/definitions/mantle.js +0 -59
- package/_cjs/chains/definitions/mantle.js.map +0 -1
- package/_cjs/chains/definitions/metis.js +0 -46
- package/_cjs/chains/definitions/metis.js.map +0 -1
- package/_cjs/chains/definitions/moonbeam.js +0 -100
- package/_cjs/chains/definitions/moonbeam.js.map +0 -1
- package/_cjs/chains/definitions/moonriver.js +0 -77
- package/_cjs/chains/definitions/moonriver.js.map +0 -1
- package/_cjs/chains/definitions/oasys.js +0 -67
- package/_cjs/chains/definitions/oasys.js.map +0 -1
- package/_cjs/chains/definitions/optimism.js +0 -122
- package/_cjs/chains/definitions/optimism.js.map +0 -1
- package/_cjs/chains/definitions/polygonPos.js +0 -92
- package/_cjs/chains/definitions/polygonPos.js.map +0 -1
- package/_cjs/chains/definitions/ronin.js +0 -55
- package/_cjs/chains/definitions/ronin.js.map +0 -1
- package/_cjs/chains/definitions/tests.js.map +0 -1
- package/_cjs/chains/externals/defillama/constants.js +0 -5
- package/_cjs/chains/externals/defillama/constants.js.map +0 -1
- package/_cjs/chains/externals/defillama/getBlockOfTimestamp.js +0 -18
- package/_cjs/chains/externals/defillama/getBlockOfTimestamp.js.map +0 -1
- package/_cjs/chains/externals/defillama/index.js +0 -6
- package/_cjs/chains/externals/defillama/index.js.map +0 -1
- package/_cjs/chains/externals/index.js +0 -6
- package/_cjs/chains/externals/index.js.map +0 -1
- package/_cjs/chains/index.js +0 -74
- package/_cjs/chains/index.js.map +0 -1
- package/_cjs/chains/types/chain.js.map +0 -1
- package/_cjs/chains/types/index.js +0 -3
- package/_cjs/chains/types/index.js.map +0 -1
- package/_cjs/chains/types/rpc.js.map +0 -1
- package/_cjs/clients/definitions/defineClient.js +0 -8
- package/_cjs/clients/definitions/defineClient.js.map +0 -1
- package/_cjs/clients/definitions/index.js +0 -6
- package/_cjs/clients/definitions/index.js.map +0 -1
- package/_cjs/clients/definitions/viemClient.js +0 -21
- package/_cjs/clients/definitions/viemClient.js.map +0 -1
- package/_cjs/clients/externals/viem/createViemInstance.js +0 -134
- package/_cjs/clients/externals/viem/createViemInstance.js.map +0 -1
- package/_cjs/clients/externals/viem/estimateFeesPerGas.js +0 -7
- package/_cjs/clients/externals/viem/estimateFeesPerGas.js.map +0 -1
- package/_cjs/clients/externals/viem/getBalance.js +0 -7
- package/_cjs/clients/externals/viem/getBalance.js.map +0 -1
- package/_cjs/clients/externals/viem/getBlock.js +0 -7
- package/_cjs/clients/externals/viem/getBlock.js.map +0 -1
- package/_cjs/clients/externals/viem/getBlockNumber.js +0 -7
- package/_cjs/clients/externals/viem/getBlockNumber.js.map +0 -1
- package/_cjs/clients/externals/viem/getEventLogs.js +0 -12
- package/_cjs/clients/externals/viem/getEventLogs.js.map +0 -1
- package/_cjs/clients/externals/viem/getTransaction.js +0 -7
- package/_cjs/clients/externals/viem/getTransaction.js.map +0 -1
- package/_cjs/clients/externals/viem/getTransactionCount.js +0 -7
- package/_cjs/clients/externals/viem/getTransactionCount.js.map +0 -1
- package/_cjs/clients/externals/viem/getTransactionReceipt.js +0 -7
- package/_cjs/clients/externals/viem/getTransactionReceipt.js.map +0 -1
- package/_cjs/clients/externals/viem/index.js +0 -26
- package/_cjs/clients/externals/viem/index.js.map +0 -1
- package/_cjs/clients/externals/viem/middleware.js +0 -282
- package/_cjs/clients/externals/viem/middleware.js.map +0 -1
- package/_cjs/clients/externals/viem/multicall.js +0 -7
- package/_cjs/clients/externals/viem/multicall.js.map +0 -1
- package/_cjs/clients/externals/viem/readContract.js +0 -7
- package/_cjs/clients/externals/viem/readContract.js.map +0 -1
- package/_cjs/clients/externals/viem/tests.js +0 -959
- package/_cjs/clients/externals/viem/tests.js.map +0 -1
- package/_cjs/clients/index.js +0 -6
- package/_cjs/clients/index.js.map +0 -1
- package/_cjs/clients/types.js.map +0 -1
- package/_cjs/creates/createEvmAccount.js +0 -11
- package/_cjs/creates/createEvmAccount.js.map +0 -1
- package/_cjs/decoder/decode.js +0 -494
- package/_cjs/decoder/decode.js.map +0 -1
- package/_cjs/decoder/decoder.js +0 -8
- package/_cjs/decoder/decoder.js.map +0 -1
- package/_cjs/decoder/index.js +0 -12
- package/_cjs/decoder/index.js.map +0 -1
- package/_cjs/decoder/parseErc1155TransferSingleLogs.js +0 -43
- package/_cjs/decoder/parseErc1155TransferSingleLogs.js.map +0 -1
- package/_cjs/decoder/parseErc20TransferLogs.js +0 -23
- package/_cjs/decoder/parseErc20TransferLogs.js.map +0 -1
- package/_cjs/decoder/parseErc721TransferLogs.js +0 -39
- package/_cjs/decoder/parseErc721TransferLogs.js.map +0 -1
- package/_cjs/decoder/tests.js +0 -495
- package/_cjs/decoder/tests.js.map +0 -1
- package/_cjs/decoder/types.js +0 -3
- package/_cjs/decoder/types.js.map +0 -1
- package/_cjs/explorers/definitions/blockscout.js +0 -267
- package/_cjs/explorers/definitions/blockscout.js.map +0 -1
- package/_cjs/explorers/definitions/defineExplorer.js +0 -8
- package/_cjs/explorers/definitions/defineExplorer.js.map +0 -1
- package/_cjs/explorers/definitions/etherscan.js +0 -382
- package/_cjs/explorers/definitions/etherscan.js.map +0 -1
- package/_cjs/explorers/definitions/index.js +0 -12
- package/_cjs/explorers/definitions/index.js.map +0 -1
- package/_cjs/explorers/definitions/roninExplorer.js +0 -186
- package/_cjs/explorers/definitions/roninExplorer.js.map +0 -1
- package/_cjs/explorers/definitions/routescan.js +0 -55
- package/_cjs/explorers/definitions/routescan.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getBlockNumberOfTimestamp.js +0 -49
- package/_cjs/explorers/externals/blockscout/getBlockNumberOfTimestamp.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getContractByAddress.js +0 -59
- package/_cjs/explorers/externals/blockscout/getContractByAddress.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getContractCreations.js +0 -64
- package/_cjs/explorers/externals/blockscout/getContractCreations.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getEventLogsByAddressAndTopics.js +0 -76
- package/_cjs/explorers/externals/blockscout/getEventLogsByAddressAndTopics.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getInternalTransactionsByAddress.js +0 -88
- package/_cjs/explorers/externals/blockscout/getInternalTransactionsByAddress.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.js +0 -66
- package/_cjs/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getNormalTransactionsByAddress.js +0 -86
- package/_cjs/explorers/externals/blockscout/getNormalTransactionsByAddress.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/getTokenTransfersByAddress.js +0 -95
- package/_cjs/explorers/externals/blockscout/getTokenTransfersByAddress.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/index.js +0 -20
- package/_cjs/explorers/externals/blockscout/index.js.map +0 -1
- package/_cjs/explorers/externals/blockscout/middleware.js +0 -40
- package/_cjs/explorers/externals/blockscout/middleware.js.map +0 -1
- package/_cjs/explorers/externals/defillama/getBlockNumberOfTimestamp.js +0 -15
- package/_cjs/explorers/externals/defillama/getBlockNumberOfTimestamp.js.map +0 -1
- package/_cjs/explorers/externals/defillama/index.js +0 -6
- package/_cjs/explorers/externals/defillama/index.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getBlockNumberOfTimestamp.js +0 -47
- package/_cjs/explorers/externals/etherscan/getBlockNumberOfTimestamp.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getContractByAddress.js +0 -64
- package/_cjs/explorers/externals/etherscan/getContractByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getContractCreations.js +0 -64
- package/_cjs/explorers/externals/etherscan/getContractCreations.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.js +0 -102
- package/_cjs/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getErc20TokenTransfersByAddress.js +0 -94
- package/_cjs/explorers/externals/etherscan/getErc20TokenTransfersByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getErc721TokenTransfersByAddress.js +0 -94
- package/_cjs/explorers/externals/etherscan/getErc721TokenTransfersByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getEventLogsByAddressAndTopics.js +0 -82
- package/_cjs/explorers/externals/etherscan/getEventLogsByAddressAndTopics.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getInternalTransactionsByAddress.js +0 -87
- package/_cjs/explorers/externals/etherscan/getInternalTransactionsByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.js +0 -69
- package/_cjs/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/getNormalTransactionsByAddress.js +0 -91
- package/_cjs/explorers/externals/etherscan/getNormalTransactionsByAddress.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/index.js +0 -24
- package/_cjs/explorers/externals/etherscan/index.js.map +0 -1
- package/_cjs/explorers/externals/etherscan/middleware.js +0 -57
- package/_cjs/explorers/externals/etherscan/middleware.js.map +0 -1
- package/_cjs/explorers/externals/roninExplorer/getInternalTransactionByHash.js +0 -61
- package/_cjs/explorers/externals/roninExplorer/getInternalTransactionByHash.js.map +0 -1
- package/_cjs/explorers/externals/roninExplorer/getNormalTransactionsByAddress.js +0 -57
- package/_cjs/explorers/externals/roninExplorer/getNormalTransactionsByAddress.js.map +0 -1
- package/_cjs/explorers/externals/roninExplorer/getTokenTransfersByAddress.js +0 -59
- package/_cjs/explorers/externals/roninExplorer/getTokenTransfersByAddress.js.map +0 -1
- package/_cjs/explorers/externals/roninExplorer/index.js +0 -10
- package/_cjs/explorers/externals/roninExplorer/index.js.map +0 -1
- package/_cjs/explorers/externals/roninExplorer/middleware.js +0 -36
- package/_cjs/explorers/externals/roninExplorer/middleware.js.map +0 -1
- package/_cjs/explorers/index.js +0 -9
- package/_cjs/explorers/index.js.map +0 -1
- package/_cjs/explorers/types.js +0 -3
- package/_cjs/explorers/types.js.map +0 -1
- package/_cjs/getContractAbi.js +0 -9
- package/_cjs/getContractAbi.js.map +0 -1
- package/_cjs/getTransactionDetail.js +0 -46
- package/_cjs/getTransactionDetail.js.map +0 -1
- package/_cjs/types/evmAccount.js +0 -3
- package/_cjs/types/evmAccount.js.map +0 -1
- package/_cjs/types/input.js +0 -3
- package/_cjs/types/input.js.map +0 -1
- package/_cjs/types/transaction.js +0 -3
- package/_cjs/types/transaction.js.map +0 -1
- package/_esm/apps/index.js +0 -2
- package/_esm/apps/index.js.map +0 -1
- package/_esm/apps/types.js.map +0 -1
- package/_esm/chains/definitions/arbitrumOne.js +0 -111
- package/_esm/chains/definitions/arbitrumOne.js.map +0 -1
- package/_esm/chains/definitions/astar.js +0 -71
- package/_esm/chains/definitions/astar.js.map +0 -1
- package/_esm/chains/definitions/avalancheC.js +0 -93
- package/_esm/chains/definitions/avalancheC.js.map +0 -1
- package/_esm/chains/definitions/base.js +0 -105
- package/_esm/chains/definitions/base.js.map +0 -1
- package/_esm/chains/definitions/bsc.js +0 -165
- package/_esm/chains/definitions/bsc.js.map +0 -1
- package/_esm/chains/definitions/defineChain.js +0 -4
- package/_esm/chains/definitions/defineChain.js.map +0 -1
- package/_esm/chains/definitions/ethereum.js +0 -147
- package/_esm/chains/definitions/ethereum.js.map +0 -1
- package/_esm/chains/definitions/fantom.js +0 -101
- package/_esm/chains/definitions/fantom.js.map +0 -1
- package/_esm/chains/definitions/index.js +0 -18
- package/_esm/chains/definitions/index.js.map +0 -1
- package/_esm/chains/definitions/linea.js +0 -73
- package/_esm/chains/definitions/linea.js.map +0 -1
- package/_esm/chains/definitions/mantaPacific.js +0 -72
- package/_esm/chains/definitions/mantaPacific.js.map +0 -1
- package/_esm/chains/definitions/mantle.js +0 -55
- package/_esm/chains/definitions/mantle.js.map +0 -1
- package/_esm/chains/definitions/metis.js +0 -42
- package/_esm/chains/definitions/metis.js.map +0 -1
- package/_esm/chains/definitions/moonbeam.js +0 -95
- package/_esm/chains/definitions/moonbeam.js.map +0 -1
- package/_esm/chains/definitions/moonriver.js +0 -72
- package/_esm/chains/definitions/moonriver.js.map +0 -1
- package/_esm/chains/definitions/oasys.js +0 -62
- package/_esm/chains/definitions/oasys.js.map +0 -1
- package/_esm/chains/definitions/optimism.js +0 -117
- package/_esm/chains/definitions/optimism.js.map +0 -1
- package/_esm/chains/definitions/polygonPos.js +0 -93
- package/_esm/chains/definitions/polygonPos.js.map +0 -1
- package/_esm/chains/definitions/ronin.js +0 -50
- package/_esm/chains/definitions/ronin.js.map +0 -1
- package/_esm/chains/definitions/tests.js.map +0 -1
- package/_esm/chains/externals/defillama/constants.js +0 -2
- package/_esm/chains/externals/defillama/constants.js.map +0 -1
- package/_esm/chains/externals/defillama/getBlockOfTimestamp.js +0 -14
- package/_esm/chains/externals/defillama/getBlockOfTimestamp.js.map +0 -1
- package/_esm/chains/externals/defillama/index.js +0 -2
- package/_esm/chains/externals/defillama/index.js.map +0 -1
- package/_esm/chains/externals/index.js +0 -2
- package/_esm/chains/externals/index.js.map +0 -1
- package/_esm/chains/index.js +0 -3
- package/_esm/chains/index.js.map +0 -1
- package/_esm/chains/types/chain.js.map +0 -1
- package/_esm/chains/types/index.js +0 -2
- package/_esm/chains/types/index.js.map +0 -1
- package/_esm/chains/types/rpc.js.map +0 -1
- package/_esm/clients/definitions/defineClient.js +0 -4
- package/_esm/clients/definitions/defineClient.js.map +0 -1
- package/_esm/clients/definitions/index.js +0 -2
- package/_esm/clients/definitions/index.js.map +0 -1
- package/_esm/clients/definitions/viemClient.js +0 -17
- package/_esm/clients/definitions/viemClient.js.map +0 -1
- package/_esm/clients/externals/viem/createViemInstance.js +0 -134
- package/_esm/clients/externals/viem/createViemInstance.js.map +0 -1
- package/_esm/clients/externals/viem/estimateFeesPerGas.js +0 -3
- package/_esm/clients/externals/viem/estimateFeesPerGas.js.map +0 -1
- package/_esm/clients/externals/viem/getBalance.js +0 -3
- package/_esm/clients/externals/viem/getBalance.js.map +0 -1
- package/_esm/clients/externals/viem/getBlock.js +0 -3
- package/_esm/clients/externals/viem/getBlock.js.map +0 -1
- package/_esm/clients/externals/viem/getBlockNumber.js +0 -3
- package/_esm/clients/externals/viem/getBlockNumber.js.map +0 -1
- package/_esm/clients/externals/viem/getEventLogs.js +0 -8
- package/_esm/clients/externals/viem/getEventLogs.js.map +0 -1
- package/_esm/clients/externals/viem/getTransaction.js +0 -3
- package/_esm/clients/externals/viem/getTransaction.js.map +0 -1
- package/_esm/clients/externals/viem/getTransactionCount.js +0 -3
- package/_esm/clients/externals/viem/getTransactionCount.js.map +0 -1
- package/_esm/clients/externals/viem/getTransactionReceipt.js +0 -3
- package/_esm/clients/externals/viem/getTransactionReceipt.js.map +0 -1
- package/_esm/clients/externals/viem/index.js +0 -12
- package/_esm/clients/externals/viem/index.js.map +0 -1
- package/_esm/clients/externals/viem/middleware.js +0 -285
- package/_esm/clients/externals/viem/middleware.js.map +0 -1
- package/_esm/clients/externals/viem/multicall.js +0 -3
- package/_esm/clients/externals/viem/multicall.js.map +0 -1
- package/_esm/clients/externals/viem/readContract.js +0 -3
- package/_esm/clients/externals/viem/readContract.js.map +0 -1
- package/_esm/clients/externals/viem/tests.js +0 -956
- package/_esm/clients/externals/viem/tests.js.map +0 -1
- package/_esm/clients/index.js +0 -2
- package/_esm/clients/index.js.map +0 -1
- package/_esm/clients/types.js.map +0 -1
- package/_esm/creates/createEvmAccount.js +0 -7
- package/_esm/creates/createEvmAccount.js.map +0 -1
- package/_esm/decoder/decode.js +0 -511
- package/_esm/decoder/decode.js.map +0 -1
- package/_esm/decoder/decoder.js +0 -5
- package/_esm/decoder/decoder.js.map +0 -1
- package/_esm/decoder/index.js +0 -5
- package/_esm/decoder/index.js.map +0 -1
- package/_esm/decoder/parseErc1155TransferSingleLogs.js +0 -39
- package/_esm/decoder/parseErc1155TransferSingleLogs.js.map +0 -1
- package/_esm/decoder/parseErc20TransferLogs.js +0 -19
- package/_esm/decoder/parseErc20TransferLogs.js.map +0 -1
- package/_esm/decoder/parseErc721TransferLogs.js +0 -35
- package/_esm/decoder/parseErc721TransferLogs.js.map +0 -1
- package/_esm/decoder/tests.js +0 -494
- package/_esm/decoder/tests.js.map +0 -1
- package/_esm/decoder/types.js +0 -2
- package/_esm/decoder/types.js.map +0 -1
- package/_esm/explorers/definitions/blockscout.js +0 -265
- package/_esm/explorers/definitions/blockscout.js.map +0 -1
- package/_esm/explorers/definitions/defineExplorer.js +0 -4
- package/_esm/explorers/definitions/defineExplorer.js.map +0 -1
- package/_esm/explorers/definitions/etherscan.js +0 -384
- package/_esm/explorers/definitions/etherscan.js.map +0 -1
- package/_esm/explorers/definitions/index.js +0 -5
- package/_esm/explorers/definitions/index.js.map +0 -1
- package/_esm/explorers/definitions/roninExplorer.js +0 -182
- package/_esm/explorers/definitions/roninExplorer.js.map +0 -1
- package/_esm/explorers/definitions/routescan.js +0 -62
- package/_esm/explorers/definitions/routescan.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getBlockNumberOfTimestamp.js +0 -46
- package/_esm/explorers/externals/blockscout/getBlockNumberOfTimestamp.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getContractByAddress.js +0 -56
- package/_esm/explorers/externals/blockscout/getContractByAddress.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getContractCreations.js +0 -61
- package/_esm/explorers/externals/blockscout/getContractCreations.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getEventLogsByAddressAndTopics.js +0 -73
- package/_esm/explorers/externals/blockscout/getEventLogsByAddressAndTopics.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getInternalTransactionsByAddress.js +0 -85
- package/_esm/explorers/externals/blockscout/getInternalTransactionsByAddress.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.js +0 -63
- package/_esm/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getNormalTransactionsByAddress.js +0 -83
- package/_esm/explorers/externals/blockscout/getNormalTransactionsByAddress.js.map +0 -1
- package/_esm/explorers/externals/blockscout/getTokenTransfersByAddress.js +0 -92
- package/_esm/explorers/externals/blockscout/getTokenTransfersByAddress.js.map +0 -1
- package/_esm/explorers/externals/blockscout/index.js +0 -9
- package/_esm/explorers/externals/blockscout/index.js.map +0 -1
- package/_esm/explorers/externals/blockscout/middleware.js +0 -40
- package/_esm/explorers/externals/blockscout/middleware.js.map +0 -1
- package/_esm/explorers/externals/defillama/getBlockNumberOfTimestamp.js +0 -11
- package/_esm/explorers/externals/defillama/getBlockNumberOfTimestamp.js.map +0 -1
- package/_esm/explorers/externals/defillama/index.js +0 -2
- package/_esm/explorers/externals/defillama/index.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getBlockNumberOfTimestamp.js +0 -44
- package/_esm/explorers/externals/etherscan/getBlockNumberOfTimestamp.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getContractByAddress.js +0 -61
- package/_esm/explorers/externals/etherscan/getContractByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getContractCreations.js +0 -61
- package/_esm/explorers/externals/etherscan/getContractCreations.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.js +0 -101
- package/_esm/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getErc20TokenTransfersByAddress.js +0 -91
- package/_esm/explorers/externals/etherscan/getErc20TokenTransfersByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getErc721TokenTransfersByAddress.js +0 -91
- package/_esm/explorers/externals/etherscan/getErc721TokenTransfersByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getEventLogsByAddressAndTopics.js +0 -79
- package/_esm/explorers/externals/etherscan/getEventLogsByAddressAndTopics.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getInternalTransactionsByAddress.js +0 -83
- package/_esm/explorers/externals/etherscan/getInternalTransactionsByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.js +0 -66
- package/_esm/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.js.map +0 -1
- package/_esm/explorers/externals/etherscan/getNormalTransactionsByAddress.js +0 -88
- package/_esm/explorers/externals/etherscan/getNormalTransactionsByAddress.js.map +0 -1
- package/_esm/explorers/externals/etherscan/index.js +0 -11
- package/_esm/explorers/externals/etherscan/index.js.map +0 -1
- package/_esm/explorers/externals/etherscan/middleware.js +0 -58
- package/_esm/explorers/externals/etherscan/middleware.js.map +0 -1
- package/_esm/explorers/externals/roninExplorer/getInternalTransactionByHash.js +0 -57
- package/_esm/explorers/externals/roninExplorer/getInternalTransactionByHash.js.map +0 -1
- package/_esm/explorers/externals/roninExplorer/getNormalTransactionsByAddress.js +0 -53
- package/_esm/explorers/externals/roninExplorer/getNormalTransactionsByAddress.js.map +0 -1
- package/_esm/explorers/externals/roninExplorer/getTokenTransfersByAddress.js +0 -55
- package/_esm/explorers/externals/roninExplorer/getTokenTransfersByAddress.js.map +0 -1
- package/_esm/explorers/externals/roninExplorer/index.js +0 -4
- package/_esm/explorers/externals/roninExplorer/index.js.map +0 -1
- package/_esm/explorers/externals/roninExplorer/middleware.js +0 -36
- package/_esm/explorers/externals/roninExplorer/middleware.js.map +0 -1
- package/_esm/explorers/index.js +0 -2
- package/_esm/explorers/index.js.map +0 -1
- package/_esm/explorers/types.js +0 -2
- package/_esm/explorers/types.js.map +0 -1
- package/_esm/getContractAbi.js +0 -6
- package/_esm/getContractAbi.js.map +0 -1
- package/_esm/getTransactionDetail.js +0 -43
- package/_esm/getTransactionDetail.js.map +0 -1
- package/_esm/types/evmAccount.js +0 -2
- package/_esm/types/evmAccount.js.map +0 -1
- package/_esm/types/input.js +0 -2
- package/_esm/types/input.js.map +0 -1
- package/_esm/types/transaction.js +0 -2
- package/_esm/types/transaction.js.map +0 -1
- package/_types/apps/index.d.ts +0 -2
- package/_types/apps/index.d.ts.map +0 -1
- package/_types/apps/types.d.ts +0 -6
- package/_types/apps/types.d.ts.map +0 -1
- package/_types/chains/definitions/arbitrumOne.d.ts +0 -40
- package/_types/chains/definitions/arbitrumOne.d.ts.map +0 -1
- package/_types/chains/definitions/astar.d.ts +0 -40
- package/_types/chains/definitions/astar.d.ts.map +0 -1
- package/_types/chains/definitions/avalancheC.d.ts +0 -40
- package/_types/chains/definitions/avalancheC.d.ts.map +0 -1
- package/_types/chains/definitions/base.d.ts +0 -40
- package/_types/chains/definitions/base.d.ts.map +0 -1
- package/_types/chains/definitions/bsc.d.ts +0 -40
- package/_types/chains/definitions/bsc.d.ts.map +0 -1
- package/_types/chains/definitions/defineChain.d.ts +0 -3
- package/_types/chains/definitions/defineChain.d.ts.map +0 -1
- package/_types/chains/definitions/ethereum.d.ts +0 -40
- package/_types/chains/definitions/ethereum.d.ts.map +0 -1
- package/_types/chains/definitions/fantom.d.ts +0 -40
- package/_types/chains/definitions/fantom.d.ts.map +0 -1
- package/_types/chains/definitions/index.d.ts +0 -18
- package/_types/chains/definitions/index.d.ts.map +0 -1
- package/_types/chains/definitions/linea.d.ts +0 -40
- package/_types/chains/definitions/linea.d.ts.map +0 -1
- package/_types/chains/definitions/mantaPacific.d.ts +0 -40
- package/_types/chains/definitions/mantaPacific.d.ts.map +0 -1
- package/_types/chains/definitions/mantle.d.ts +0 -39
- package/_types/chains/definitions/mantle.d.ts.map +0 -1
- package/_types/chains/definitions/metis.d.ts +0 -39
- package/_types/chains/definitions/metis.d.ts.map +0 -1
- package/_types/chains/definitions/moonbeam.d.ts +0 -40
- package/_types/chains/definitions/moonbeam.d.ts.map +0 -1
- package/_types/chains/definitions/moonriver.d.ts +0 -40
- package/_types/chains/definitions/moonriver.d.ts.map +0 -1
- package/_types/chains/definitions/oasys.d.ts +0 -40
- package/_types/chains/definitions/oasys.d.ts.map +0 -1
- package/_types/chains/definitions/optimism.d.ts +0 -40
- package/_types/chains/definitions/optimism.d.ts.map +0 -1
- package/_types/chains/definitions/polygonPos.d.ts +0 -40
- package/_types/chains/definitions/polygonPos.d.ts.map +0 -1
- package/_types/chains/definitions/ronin.d.ts +0 -40
- package/_types/chains/definitions/ronin.d.ts.map +0 -1
- package/_types/chains/definitions/tests.d.ts.map +0 -1
- package/_types/chains/externals/defillama/constants.d.ts +0 -2
- package/_types/chains/externals/defillama/constants.d.ts.map +0 -1
- package/_types/chains/externals/defillama/getBlockOfTimestamp.d.ts +0 -10
- package/_types/chains/externals/defillama/getBlockOfTimestamp.d.ts.map +0 -1
- package/_types/chains/externals/defillama/index.d.ts +0 -2
- package/_types/chains/externals/defillama/index.d.ts.map +0 -1
- package/_types/chains/externals/index.d.ts +0 -2
- package/_types/chains/externals/index.d.ts.map +0 -1
- package/_types/chains/index.d.ts +0 -4
- package/_types/chains/index.d.ts.map +0 -1
- package/_types/chains/types/chain.d.ts +0 -22
- package/_types/chains/types/chain.d.ts.map +0 -1
- package/_types/chains/types/index.d.ts +0 -3
- package/_types/chains/types/index.d.ts.map +0 -1
- package/_types/chains/types/rpc.d.ts +0 -7
- package/_types/chains/types/rpc.d.ts.map +0 -1
- package/_types/clients/definitions/defineClient.d.ts +0 -3
- package/_types/clients/definitions/defineClient.d.ts.map +0 -1
- package/_types/clients/definitions/index.d.ts +0 -2
- package/_types/clients/definitions/index.d.ts.map +0 -1
- package/_types/clients/definitions/viemClient.d.ts +0 -63
- package/_types/clients/definitions/viemClient.d.ts.map +0 -1
- package/_types/clients/externals/viem/createViemInstance.d.ts +0 -19
- package/_types/clients/externals/viem/createViemInstance.d.ts.map +0 -1
- package/_types/clients/externals/viem/estimateFeesPerGas.d.ts +0 -14
- package/_types/clients/externals/viem/estimateFeesPerGas.d.ts.map +0 -1
- package/_types/clients/externals/viem/getBalance.d.ts +0 -15
- package/_types/clients/externals/viem/getBalance.d.ts.map +0 -1
- package/_types/clients/externals/viem/getBlock.d.ts +0 -14
- package/_types/clients/externals/viem/getBlock.d.ts.map +0 -1
- package/_types/clients/externals/viem/getBlockNumber.d.ts +0 -13
- package/_types/clients/externals/viem/getBlockNumber.d.ts.map +0 -1
- package/_types/clients/externals/viem/getEventLogs.d.ts +0 -19
- package/_types/clients/externals/viem/getEventLogs.d.ts.map +0 -1
- package/_types/clients/externals/viem/getTransaction.d.ts +0 -15
- package/_types/clients/externals/viem/getTransaction.d.ts.map +0 -1
- package/_types/clients/externals/viem/getTransactionCount.d.ts +0 -15
- package/_types/clients/externals/viem/getTransactionCount.d.ts.map +0 -1
- package/_types/clients/externals/viem/getTransactionReceipt.d.ts +0 -15
- package/_types/clients/externals/viem/getTransactionReceipt.d.ts.map +0 -1
- package/_types/clients/externals/viem/index.d.ts +0 -12
- package/_types/clients/externals/viem/index.d.ts.map +0 -1
- package/_types/clients/externals/viem/middleware.d.ts +0 -23
- package/_types/clients/externals/viem/middleware.d.ts.map +0 -1
- package/_types/clients/externals/viem/multicall.d.ts +0 -14
- package/_types/clients/externals/viem/multicall.d.ts.map +0 -1
- package/_types/clients/externals/viem/readContract.d.ts +0 -14
- package/_types/clients/externals/viem/readContract.d.ts.map +0 -1
- package/_types/clients/externals/viem/tests.d.ts +0 -1145
- package/_types/clients/externals/viem/tests.d.ts.map +0 -1
- package/_types/clients/index.d.ts +0 -3
- package/_types/clients/index.d.ts.map +0 -1
- package/_types/clients/types.d.ts +0 -69
- package/_types/clients/types.d.ts.map +0 -1
- package/_types/creates/createEvmAccount.d.ts +0 -5
- package/_types/creates/createEvmAccount.d.ts.map +0 -1
- package/_types/decoder/decode.d.ts +0 -3
- package/_types/decoder/decode.d.ts.map +0 -1
- package/_types/decoder/decoder.d.ts +0 -3
- package/_types/decoder/decoder.d.ts.map +0 -1
- package/_types/decoder/index.d.ts +0 -6
- package/_types/decoder/index.d.ts.map +0 -1
- package/_types/decoder/parseErc1155TransferSingleLogs.d.ts +0 -4
- package/_types/decoder/parseErc1155TransferSingleLogs.d.ts.map +0 -1
- package/_types/decoder/parseErc20TransferLogs.d.ts +0 -8
- package/_types/decoder/parseErc20TransferLogs.d.ts.map +0 -1
- package/_types/decoder/parseErc721TransferLogs.d.ts +0 -8
- package/_types/decoder/parseErc721TransferLogs.d.ts.map +0 -1
- package/_types/decoder/tests.d.ts +0 -70
- package/_types/decoder/tests.d.ts.map +0 -1
- package/_types/decoder/types.d.ts +0 -16
- package/_types/decoder/types.d.ts.map +0 -1
- package/_types/explorers/definitions/blockscout.d.ts +0 -164
- package/_types/explorers/definitions/blockscout.d.ts.map +0 -1
- package/_types/explorers/definitions/defineExplorer.d.ts +0 -3
- package/_types/explorers/definitions/defineExplorer.d.ts.map +0 -1
- package/_types/explorers/definitions/etherscan.d.ts +0 -165
- package/_types/explorers/definitions/etherscan.d.ts.map +0 -1
- package/_types/explorers/definitions/index.d.ts +0 -5
- package/_types/explorers/definitions/index.d.ts.map +0 -1
- package/_types/explorers/definitions/roninExplorer.d.ts +0 -157
- package/_types/explorers/definitions/roninExplorer.d.ts.map +0 -1
- package/_types/explorers/definitions/routescan.d.ts +0 -24
- package/_types/explorers/definitions/routescan.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts +0 -11
- package/_types/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getContractByAddress.d.ts +0 -30
- package/_types/explorers/externals/blockscout/getContractByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getContractCreations.d.ts +0 -27
- package/_types/explorers/externals/blockscout/getContractCreations.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getEventLogsByAddressAndTopics.d.ts +0 -39
- package/_types/explorers/externals/blockscout/getEventLogsByAddressAndTopics.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts +0 -62
- package/_types/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts +0 -54
- package/_types/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts +0 -77
- package/_types/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts +0 -80
- package/_types/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/index.d.ts +0 -9
- package/_types/explorers/externals/blockscout/index.d.ts.map +0 -1
- package/_types/explorers/externals/blockscout/middleware.d.ts +0 -7
- package/_types/explorers/externals/blockscout/middleware.d.ts.map +0 -1
- package/_types/explorers/externals/defillama/getBlockNumberOfTimestamp.d.ts +0 -10
- package/_types/explorers/externals/defillama/getBlockNumberOfTimestamp.d.ts.map +0 -1
- package/_types/explorers/externals/defillama/index.d.ts +0 -2
- package/_types/explorers/externals/defillama/index.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts +0 -12
- package/_types/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getContractByAddress.d.ts +0 -55
- package/_types/explorers/externals/etherscan/getContractByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getContractCreations.d.ts +0 -28
- package/_types/explorers/externals/etherscan/getContractCreations.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts +0 -83
- package/_types/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts +0 -81
- package/_types/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts +0 -81
- package/_types/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getEventLogsByAddressAndTopics.d.ts +0 -41
- package/_types/explorers/externals/etherscan/getEventLogsByAddressAndTopics.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts +0 -62
- package/_types/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts +0 -55
- package/_types/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts +0 -84
- package/_types/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/index.d.ts +0 -11
- package/_types/explorers/externals/etherscan/index.d.ts.map +0 -1
- package/_types/explorers/externals/etherscan/middleware.d.ts +0 -7
- package/_types/explorers/externals/etherscan/middleware.d.ts.map +0 -1
- package/_types/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts +0 -57
- package/_types/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts.map +0 -1
- package/_types/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts +0 -70
- package/_types/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts +0 -64
- package/_types/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts.map +0 -1
- package/_types/explorers/externals/roninExplorer/index.d.ts +0 -4
- package/_types/explorers/externals/roninExplorer/index.d.ts.map +0 -1
- package/_types/explorers/externals/roninExplorer/middleware.d.ts +0 -5
- package/_types/explorers/externals/roninExplorer/middleware.d.ts.map +0 -1
- package/_types/explorers/index.d.ts +0 -3
- package/_types/explorers/index.d.ts.map +0 -1
- package/_types/explorers/types.d.ts +0 -92
- package/_types/explorers/types.d.ts.map +0 -1
- package/_types/getContractAbi.d.ts +0 -9
- package/_types/getContractAbi.d.ts.map +0 -1
- package/_types/getTransactionDetail.d.ts +0 -11
- package/_types/getTransactionDetail.d.ts.map +0 -1
- package/_types/types/evmAccount.d.ts +0 -10
- package/_types/types/evmAccount.d.ts.map +0 -1
- package/_types/types/input.d.ts +0 -26
- package/_types/types/input.d.ts.map +0 -1
- package/_types/types/transaction.d.ts +0 -43
- package/_types/types/transaction.d.ts.map +0 -1
- package/apps/index.ts +0 -1
- package/apps/types.ts +0 -10
- package/chains/.DS_Store +0 -0
- package/chains/definitions/arbitrumOne.ts +0 -133
- package/chains/definitions/astar.ts +0 -93
- package/chains/definitions/avalancheC.ts +0 -115
- package/chains/definitions/base.ts +0 -127
- package/chains/definitions/bsc.ts +0 -184
- package/chains/definitions/defineChain.ts +0 -7
- package/chains/definitions/ethereum.ts +0 -169
- package/chains/definitions/fantom.ts +0 -123
- package/chains/definitions/index.ts +0 -100
- package/chains/definitions/linea.ts +0 -95
- package/chains/definitions/mantaPacific.ts +0 -94
- package/chains/definitions/mantle.ts +0 -75
- package/chains/definitions/metis.ts +0 -62
- package/chains/definitions/moonbeam.ts +0 -117
- package/chains/definitions/moonriver.ts +0 -94
- package/chains/definitions/oasys.ts +0 -84
- package/chains/definitions/optimism.ts +0 -139
- package/chains/definitions/polygonPos.ts +0 -115
- package/chains/definitions/ronin.ts +0 -75
- package/chains/externals/defillama/constants.ts +0 -1
- package/chains/externals/defillama/getBlockOfTimestamp.ts +0 -26
- package/chains/externals/defillama/index.ts +0 -1
- package/chains/externals/index.ts +0 -1
- package/chains/index.ts +0 -70
- package/chains/types/chain.ts +0 -22
- package/chains/types/index.ts +0 -2
- package/chains/types/rpc.ts +0 -6
- package/clients/definitions/defineClient.ts +0 -7
- package/clients/definitions/index.ts +0 -1
- package/clients/definitions/viemClient.ts +0 -101
- package/clients/externals/viem/createViemInstance.ts +0 -207
- package/clients/externals/viem/estimateFeesPerGas.ts +0 -24
- package/clients/externals/viem/getBalance.ts +0 -25
- package/clients/externals/viem/getBlock.ts +0 -29
- package/clients/externals/viem/getBlockNumber.ts +0 -23
- package/clients/externals/viem/getEventLogs.ts +0 -40
- package/clients/externals/viem/getTransaction.ts +0 -25
- package/clients/externals/viem/getTransactionCount.ts +0 -25
- package/clients/externals/viem/getTransactionReceipt.ts +0 -25
- package/clients/externals/viem/index.ts +0 -11
- package/clients/externals/viem/middleware.ts +0 -452
- package/clients/externals/viem/multicall.ts +0 -27
- package/clients/externals/viem/readContract.ts +0 -38
- package/clients/externals/viem/tests.ts +0 -957
- package/clients/index.ts +0 -2
- package/clients/types.ts +0 -125
- package/creates/createEvmAccount.ts +0 -12
- package/decoder/decode.ts +0 -726
- package/decoder/decoder.ts +0 -6
- package/decoder/index.ts +0 -5
- package/decoder/parseErc1155TransferSingleLogs.ts +0 -50
- package/decoder/parseErc20TransferLogs.ts +0 -35
- package/decoder/parseErc721TransferLogs.ts +0 -50
- package/decoder/tests.ts +0 -521
- package/decoder/types.ts +0 -21
- package/explorers/.DS_Store +0 -0
- package/explorers/definitions/blockscout.ts +0 -385
- package/explorers/definitions/defineExplorer.ts +0 -7
- package/explorers/definitions/etherscan.ts +0 -533
- package/explorers/definitions/index.ts +0 -4
- package/explorers/definitions/roninExplorer.ts +0 -262
- package/explorers/definitions/routescan.ts +0 -82
- package/explorers/externals/blockscout/getBlockNumberOfTimestamp.ts +0 -67
- package/explorers/externals/blockscout/getContractByAddress.ts +0 -81
- package/explorers/externals/blockscout/getContractCreations.ts +0 -85
- package/explorers/externals/blockscout/getEventLogsByAddressAndTopics.ts +0 -105
- package/explorers/externals/blockscout/getInternalTransactionsByAddress.ts +0 -120
- package/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.ts +0 -87
- package/explorers/externals/blockscout/getNormalTransactionsByAddress.ts +0 -116
- package/explorers/externals/blockscout/getTokenTransfersByAddress.ts +0 -127
- package/explorers/externals/blockscout/index.ts +0 -8
- package/explorers/externals/blockscout/middleware.ts +0 -56
- package/explorers/externals/defillama/getBlockNumberOfTimestamp.ts +0 -28
- package/explorers/externals/defillama/index.ts +0 -1
- package/explorers/externals/etherscan/getBlockNumberOfTimestamp.ts +0 -70
- package/explorers/externals/etherscan/getContractByAddress.ts +0 -90
- package/explorers/externals/etherscan/getContractCreations.ts +0 -90
- package/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.ts +0 -145
- package/explorers/externals/etherscan/getErc20TokenTransfersByAddress.ts +0 -129
- package/explorers/externals/etherscan/getErc721TokenTransfersByAddress.ts +0 -129
- package/explorers/externals/etherscan/getEventLogsByAddressAndTopics.ts +0 -118
- package/explorers/externals/etherscan/getInternalTransactionsByAddress.ts +0 -121
- package/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.ts +0 -95
- package/explorers/externals/etherscan/getNormalTransactionsByAddress.ts +0 -126
- package/explorers/externals/etherscan/index.ts +0 -10
- package/explorers/externals/etherscan/middleware.ts +0 -77
- package/explorers/externals/roninExplorer/getInternalTransactionByHash.ts +0 -80
- package/explorers/externals/roninExplorer/getNormalTransactionsByAddress.ts +0 -79
- package/explorers/externals/roninExplorer/getTokenTransfersByAddress.ts +0 -81
- package/explorers/externals/roninExplorer/index.ts +0 -3
- package/explorers/externals/roninExplorer/middleware.ts +0 -49
- package/explorers/index.ts +0 -7
- package/explorers/types.ts +0 -121
- package/getContractAbi.ts +0 -15
- package/getTransactionDetail.ts +0 -63
- package/types/evmAccount.ts +0 -12
- package/types/input.ts +0 -27
- package/types/transaction.ts +0 -66
- /package/_cjs/{chains → chain}/definitions/tests.js +0 -0
- /package/_cjs/{chains → chain}/types/chain.js +0 -0
- /package/_cjs/{chains → chain}/types/rpc.js +0 -0
- /package/_cjs/{apps → client}/types.js +0 -0
- /package/_cjs/{clients → explorer}/types.js +0 -0
- /package/_esm/{chains → chain}/definitions/tests.js +0 -0
- /package/_esm/{chains → chain}/types/chain.js +0 -0
- /package/_esm/{chains → chain}/types/rpc.js +0 -0
- /package/_esm/{apps → client}/types.js +0 -0
- /package/_esm/{clients → explorer}/types.js +0 -0
- /package/_types/{chains → chain}/definitions/tests.d.ts +0 -0
- /package/{chains → chain}/definitions/tests.ts +0 -0
- /package/{clients → client}/.DS_Store +0 -0
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getContractCreations = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const contractCreationSchema = zod_1.z.object({
|
|
8
|
-
contractAddress: zod_1.z
|
|
9
|
-
.string()
|
|
10
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
11
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
12
|
-
contractCreator: zod_1.z.union([
|
|
13
|
-
zod_1.z
|
|
14
|
-
.string()
|
|
15
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
16
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
17
|
-
zod_1.z.string().transform(() => undefined),
|
|
18
|
-
]),
|
|
19
|
-
txHash: zod_1.z.union([
|
|
20
|
-
zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
23
|
-
.transform((x) => ((0, types_1.isHex)(x) ? x : '0x')),
|
|
24
|
-
zod_1.z.string().transform(() => undefined),
|
|
25
|
-
]),
|
|
26
|
-
});
|
|
27
|
-
const responseSchema = zod_1.z.object({
|
|
28
|
-
status: zod_1.z.string(),
|
|
29
|
-
message: zod_1.z.string(),
|
|
30
|
-
result: zod_1.z.union([zod_1.z.array(contractCreationSchema), zod_1.z.string()]).nullable(),
|
|
31
|
-
});
|
|
32
|
-
const getContractCreations = async ({ apiEndpoint, apiKey, addresses, logger, }) => {
|
|
33
|
-
try {
|
|
34
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
35
|
-
module: 'contract',
|
|
36
|
-
action: 'getcontractcreation',
|
|
37
|
-
contractaddresses: addresses.join(','),
|
|
38
|
-
}, responseSchema, logger);
|
|
39
|
-
if (status !== '1' || result === null) {
|
|
40
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
41
|
-
throw error;
|
|
42
|
-
}
|
|
43
|
-
if (typeof result === 'string') {
|
|
44
|
-
throw new TypeError(result);
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
catch (error) {
|
|
49
|
-
if (error instanceof Error &&
|
|
50
|
-
(error.message === 'Max rate limit reached' ||
|
|
51
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
52
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
53
|
-
return await (0, exports.getContractCreations)({
|
|
54
|
-
apiEndpoint,
|
|
55
|
-
apiKey,
|
|
56
|
-
addresses,
|
|
57
|
-
logger,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
throw error;
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
exports.getContractCreations = getContractCreations;
|
|
64
|
-
//# sourceMappingURL=getContractCreations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getContractCreations.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getContractCreations.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AASpD,MAAM,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,eAAe,EAAE,OAAC;SACf,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,eAAe,EAAE,OAAC,CAAC,KAAK,CAAC;QACvB,OAAC;aACE,MAAM,EAAE;aACR,KAAK,CAAC,iBAAiB,CAAC;aACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACtD,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC;KACtC,CAAC;IACF,MAAM,EAAE,OAAC,CAAC,KAAK,CAAC;QACd,OAAC;aACE,MAAM,EAAE;aACR,KAAK,CAAC,iBAAiB,CAAC;aACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAC1C,OAAC,CAAC,MAAM,EAAE,CAAC,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CAAC,KAAK,CAAC,OAAO,KAAK,wBAAwB;gBACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,EACjE,CAAC;YACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;YACzD,OAAO,MAAM,IAAA,4BAAoB,EAAC;gBAChC,WAAW;gBACX,MAAM;gBACN,SAAS;gBACT,MAAM;aACP,CAAC,CAAA;QACJ,CAAC;QACD,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AA7CY,QAAA,oBAAoB,wBA6ChC"}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getErc1155TokenTransfersByAddress = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const transferSchema = zod_1.z.object({
|
|
8
|
-
blockNumber: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
9
|
-
timeStamp: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
10
|
-
hash: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
13
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
14
|
-
nonce: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
15
|
-
blockHash: zod_1.z.string(),
|
|
16
|
-
from: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
19
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
20
|
-
contractAddress: zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
23
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
24
|
-
to: zod_1.z
|
|
25
|
-
.string()
|
|
26
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
27
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
28
|
-
tokenID: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
29
|
-
tokenValue: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
30
|
-
tokenName: zod_1.z.string(),
|
|
31
|
-
tokenSymbol: zod_1.z.string(),
|
|
32
|
-
transactionIndex: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
33
|
-
gas: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
34
|
-
gasPrice: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
35
|
-
gasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
36
|
-
cumulativeGasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
37
|
-
input: zod_1.z.string(),
|
|
38
|
-
confirmations: zod_1.z.string(),
|
|
39
|
-
});
|
|
40
|
-
const responseSchema = zod_1.z.object({
|
|
41
|
-
status: zod_1.z.string(),
|
|
42
|
-
message: zod_1.z.string(),
|
|
43
|
-
result: zod_1.z.union([zod_1.z.array(transferSchema), zod_1.z.string()]).nullable(),
|
|
44
|
-
});
|
|
45
|
-
const getErc1155TokenTransfersByAddress = async ({ apiEndpoint, apiKey, address, startBlock = 0n, endBlock, page = 1, offset = 10_000, sort = 'asc', logger, }) => {
|
|
46
|
-
try {
|
|
47
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
48
|
-
module: 'account',
|
|
49
|
-
action: 'token1155tx',
|
|
50
|
-
address,
|
|
51
|
-
startblock: startBlock.toString(),
|
|
52
|
-
...(endBlock === undefined
|
|
53
|
-
? {}
|
|
54
|
-
: {
|
|
55
|
-
endblock: endBlock.toString(),
|
|
56
|
-
}),
|
|
57
|
-
page: page.toString(),
|
|
58
|
-
offset: offset.toString(),
|
|
59
|
-
sort,
|
|
60
|
-
}, responseSchema, logger);
|
|
61
|
-
if (status !== '1' || result === null) {
|
|
62
|
-
if (message === 'No transactions found') {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
if (message ===
|
|
66
|
-
'Query Timeout occured. Please select a smaller result dataset') {
|
|
67
|
-
return [];
|
|
68
|
-
}
|
|
69
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
70
|
-
if (error.message === 'Error! Missing Or invalid Action name') {
|
|
71
|
-
console.debug('getErc1155TokenTransfersByAddress > Error! Missing Or invalid Action name');
|
|
72
|
-
return [];
|
|
73
|
-
}
|
|
74
|
-
throw error;
|
|
75
|
-
}
|
|
76
|
-
if (typeof result === 'string') {
|
|
77
|
-
throw new TypeError(result);
|
|
78
|
-
}
|
|
79
|
-
return result;
|
|
80
|
-
}
|
|
81
|
-
catch (error) {
|
|
82
|
-
if (error instanceof Error &&
|
|
83
|
-
(error.message === 'Max rate limit reached' ||
|
|
84
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
85
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
86
|
-
return await (0, exports.getErc1155TokenTransfersByAddress)({
|
|
87
|
-
apiEndpoint,
|
|
88
|
-
apiKey,
|
|
89
|
-
address,
|
|
90
|
-
startBlock,
|
|
91
|
-
endBlock,
|
|
92
|
-
page,
|
|
93
|
-
offset,
|
|
94
|
-
sort,
|
|
95
|
-
logger,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
throw error;
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
exports.getErc1155TokenTransfersByAddress = getErc1155TokenTransfersByAddress;
|
|
102
|
-
//# sourceMappingURL=getErc1155TokenTransfersByAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getErc1155TokenTransfersByAddress.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getErc1155TokenTransfersByAddress.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AAcpD,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,eAAe,EAAE,OAAC;SACf,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAA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ACD,MAAM,KAAK,GACT,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAA;YAErE,IAAI,KAAK,CAAC,OAAO,KAAK,uCAAuC,EAAE,CAAC;gBAC9D,OAAO,CAAC,KAAK,CACX,2EAA2E,CAC5E,CAAA;gBACD,OAAO,EAAE,CAAA;YACX,CAAC;YAED,MAAM,KAAK,CAAA;QACb,CAAC;QACD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,CAAA;QAC7B,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IACE,KAAK,YAAY,KAAK;YACtB,CAAC,KAAK,CAAC,OAAO,KAAK,wBAAwB;gBACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,EACjE,CAAC;YACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;YACzD,OAAO,MAAM,IAAA,yCAAiC,EAAC;gBAC7C,WAAW;gBACX,MAAM;gBACN,OAAO;gBACP,UAAU;gBACV,QAAQ;gBACR,IAAI;gBACJ,MAAM;gBACN,IAAI;gBACJ,MAAM;aACP,CAAC,CAAA;QACJ,CAAC;QACD,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAjFY,QAAA,iCAAiC,qCAiF7C"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getErc20TokenTransfersByAddress = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const transferSchema = zod_1.z.object({
|
|
8
|
-
blockNumber: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
9
|
-
timeStamp: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
10
|
-
hash: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
13
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
14
|
-
nonce: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
15
|
-
blockHash: zod_1.z.string(),
|
|
16
|
-
from: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
19
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
20
|
-
contractAddress: zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
23
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
24
|
-
to: zod_1.z
|
|
25
|
-
.string()
|
|
26
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
27
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
28
|
-
value: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
29
|
-
tokenName: zod_1.z.string(),
|
|
30
|
-
tokenSymbol: zod_1.z.string(),
|
|
31
|
-
tokenDecimal: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
32
|
-
transactionIndex: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
33
|
-
gas: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
34
|
-
gasPrice: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
35
|
-
gasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
36
|
-
cumulativeGasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
37
|
-
input: zod_1.z.string(),
|
|
38
|
-
confirmations: zod_1.z.string(),
|
|
39
|
-
});
|
|
40
|
-
const responseSchema = zod_1.z.object({
|
|
41
|
-
status: zod_1.z.string(),
|
|
42
|
-
message: zod_1.z.string(),
|
|
43
|
-
result: zod_1.z.union([zod_1.z.array(transferSchema), zod_1.z.string()]).nullable(),
|
|
44
|
-
});
|
|
45
|
-
const getErc20TokenTransfersByAddress = async ({ apiEndpoint, apiKey, address, startBlock = 0n, endBlock, page = 1, offset = 10_000, sort = 'asc', logger, }) => {
|
|
46
|
-
try {
|
|
47
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
48
|
-
module: 'account',
|
|
49
|
-
action: 'tokentx',
|
|
50
|
-
address,
|
|
51
|
-
startblock: startBlock.toString(),
|
|
52
|
-
...(endBlock === undefined
|
|
53
|
-
? {}
|
|
54
|
-
: {
|
|
55
|
-
endblock: endBlock.toString(),
|
|
56
|
-
}),
|
|
57
|
-
page: page.toString(),
|
|
58
|
-
offset: offset.toString(),
|
|
59
|
-
sort,
|
|
60
|
-
}, responseSchema, logger);
|
|
61
|
-
if (status !== '1' || result === null) {
|
|
62
|
-
if (message === 'No transactions found') {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
66
|
-
throw error;
|
|
67
|
-
}
|
|
68
|
-
if (typeof result === 'string') {
|
|
69
|
-
throw new TypeError(result);
|
|
70
|
-
}
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
if (error instanceof Error &&
|
|
75
|
-
(error.message === 'Max rate limit reached' ||
|
|
76
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
77
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
78
|
-
return await (0, exports.getErc20TokenTransfersByAddress)({
|
|
79
|
-
apiEndpoint,
|
|
80
|
-
apiKey,
|
|
81
|
-
address,
|
|
82
|
-
startBlock,
|
|
83
|
-
endBlock,
|
|
84
|
-
page,
|
|
85
|
-
offset,
|
|
86
|
-
sort,
|
|
87
|
-
logger,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
throw error;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
exports.getErc20TokenTransfersByAddress = getErc20TokenTransfersByAddress;
|
|
94
|
-
//# sourceMappingURL=getErc20TokenTransfersByAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getErc20TokenTransfersByAddress.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getErc20TokenTransfersByAddress.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AAcpD,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IAClD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC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exports, "__esModule", { value: true });
|
|
3
|
-
exports.getErc721TokenTransfersByAddress = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const transferSchema = zod_1.z.object({
|
|
8
|
-
blockNumber: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
9
|
-
timeStamp: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
10
|
-
hash: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
13
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
14
|
-
nonce: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
15
|
-
blockHash: zod_1.z.string(),
|
|
16
|
-
from: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
19
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
20
|
-
contractAddress: zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
23
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
24
|
-
to: zod_1.z
|
|
25
|
-
.string()
|
|
26
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
27
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
28
|
-
tokenID: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
29
|
-
tokenName: zod_1.z.string(),
|
|
30
|
-
tokenSymbol: zod_1.z.string(),
|
|
31
|
-
tokenDecimal: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
32
|
-
transactionIndex: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
33
|
-
gas: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
34
|
-
gasPrice: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
35
|
-
gasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
36
|
-
cumulativeGasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
37
|
-
input: zod_1.z.string(),
|
|
38
|
-
confirmations: zod_1.z.string(),
|
|
39
|
-
});
|
|
40
|
-
const responseSchema = zod_1.z.object({
|
|
41
|
-
status: zod_1.z.string(),
|
|
42
|
-
message: zod_1.z.string(),
|
|
43
|
-
result: zod_1.z.union([zod_1.z.array(transferSchema), zod_1.z.string()]).nullable(),
|
|
44
|
-
});
|
|
45
|
-
const getErc721TokenTransfersByAddress = async ({ apiEndpoint, apiKey, address, startBlock = 0n, endBlock, page = 1, offset = 10_000, sort = 'asc', logger, }) => {
|
|
46
|
-
try {
|
|
47
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
48
|
-
module: 'account',
|
|
49
|
-
action: 'tokennfttx',
|
|
50
|
-
address,
|
|
51
|
-
startblock: startBlock.toString(),
|
|
52
|
-
...(endBlock === undefined
|
|
53
|
-
? {}
|
|
54
|
-
: {
|
|
55
|
-
endblock: endBlock.toString(),
|
|
56
|
-
}),
|
|
57
|
-
page: page.toString(),
|
|
58
|
-
offset: offset.toString(),
|
|
59
|
-
sort,
|
|
60
|
-
}, responseSchema, logger);
|
|
61
|
-
if (status !== '1' || result === null) {
|
|
62
|
-
if (message === 'No transactions found') {
|
|
63
|
-
return [];
|
|
64
|
-
}
|
|
65
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
66
|
-
throw error;
|
|
67
|
-
}
|
|
68
|
-
if (typeof result === 'string') {
|
|
69
|
-
throw new TypeError(result);
|
|
70
|
-
}
|
|
71
|
-
return result;
|
|
72
|
-
}
|
|
73
|
-
catch (error) {
|
|
74
|
-
if (error instanceof Error &&
|
|
75
|
-
(error.message === 'Max rate limit reached' ||
|
|
76
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
77
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
78
|
-
return await (0, exports.getErc721TokenTransfersByAddress)({
|
|
79
|
-
apiEndpoint,
|
|
80
|
-
apiKey,
|
|
81
|
-
address,
|
|
82
|
-
startBlock,
|
|
83
|
-
endBlock,
|
|
84
|
-
page,
|
|
85
|
-
offset,
|
|
86
|
-
sort,
|
|
87
|
-
logger,
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
throw error;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
exports.getErc721TokenTransfersByAddress = getErc721TokenTransfersByAddress;
|
|
94
|
-
//# sourceMappingURL=getErc721TokenTransfersByAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getErc721TokenTransfersByAddress.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getErc721TokenTransfersByAddress.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AAcpD,MAAM,cAAc,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAA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AAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAnEY,QAAA,gCAAgC,oCAmE5C"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getEventLogsByAddressAndTopics = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const logSchema = zod_1.z.object({
|
|
8
|
-
address: zod_1.z
|
|
9
|
-
.string()
|
|
10
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
11
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
12
|
-
topics: zod_1.z.array(zod_1.z
|
|
13
|
-
.string()
|
|
14
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
15
|
-
.transform((x) => ((0, types_1.isHex)(x) ? x : '0x'))),
|
|
16
|
-
data: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.regex(/^0x[\da-f]*$/)
|
|
19
|
-
.transform((x) => ((0, types_1.isHex)(x) ? x : '0x')),
|
|
20
|
-
blockNumber: zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.regex(/^0x[\da-f]*$/)
|
|
23
|
-
.transform((x) => (x === '0x' ? 0n : BigInt(x))),
|
|
24
|
-
logIndex: zod_1.z
|
|
25
|
-
.string()
|
|
26
|
-
.regex(/^0x[\da-f]*$/)
|
|
27
|
-
.transform((x) => (x === '0x' ? 0n : BigInt(x))),
|
|
28
|
-
transactionHash: zod_1.z
|
|
29
|
-
.string()
|
|
30
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
31
|
-
.transform((x) => ((0, types_1.isHex)(x) ? x : '0x')),
|
|
32
|
-
});
|
|
33
|
-
const responseSchema = zod_1.z.object({
|
|
34
|
-
status: zod_1.z.string(),
|
|
35
|
-
message: zod_1.z.string(),
|
|
36
|
-
result: zod_1.z.union([zod_1.z.array(logSchema), zod_1.z.string()]).nullable(),
|
|
37
|
-
});
|
|
38
|
-
const getEventLogsByAddressAndTopics = async ({ apiEndpoint, apiKey, address, topic0, fromBlock, toBlock, page, logger, }) => {
|
|
39
|
-
try {
|
|
40
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
41
|
-
module: 'logs',
|
|
42
|
-
action: 'getLogs',
|
|
43
|
-
address,
|
|
44
|
-
topic0,
|
|
45
|
-
...(fromBlock === undefined ? {} : { fromBlock: fromBlock.toString() }),
|
|
46
|
-
...(toBlock === undefined ? {} : { toBlock: toBlock.toString() }),
|
|
47
|
-
...(page === undefined ? {} : { page: page.toString() }),
|
|
48
|
-
offset: '1000',
|
|
49
|
-
}, responseSchema, logger);
|
|
50
|
-
if (status !== '1' || result === null) {
|
|
51
|
-
if (message === 'No records found') {
|
|
52
|
-
return [];
|
|
53
|
-
}
|
|
54
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
55
|
-
throw error;
|
|
56
|
-
}
|
|
57
|
-
if (typeof result === 'string') {
|
|
58
|
-
throw new TypeError(result);
|
|
59
|
-
}
|
|
60
|
-
return result;
|
|
61
|
-
}
|
|
62
|
-
catch (error) {
|
|
63
|
-
if (error instanceof Error &&
|
|
64
|
-
(error.message === 'Max rate limit reached' ||
|
|
65
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
66
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
67
|
-
return await (0, exports.getEventLogsByAddressAndTopics)({
|
|
68
|
-
apiEndpoint,
|
|
69
|
-
apiKey,
|
|
70
|
-
address,
|
|
71
|
-
topic0,
|
|
72
|
-
fromBlock,
|
|
73
|
-
toBlock,
|
|
74
|
-
page,
|
|
75
|
-
logger,
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
throw error;
|
|
79
|
-
}
|
|
80
|
-
};
|
|
81
|
-
exports.getEventLogsByAddressAndTopics = getEventLogsByAddressAndTopics;
|
|
82
|
-
//# sourceMappingURL=getEventLogsByAddressAndTopics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getEventLogsByAddressAndTopics.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getEventLogsByAddressAndTopics.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AAapD,MAAM,SAAS,GAAG,OAAC,CAAC,MAAM,CAAC;IACzB,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,MAAM,EAAE,OAAC,CAAC,KAAK,CACb,OAAC;SACE,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAC3C;IACD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,cAAc,CAAC;SACrB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC1C,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,KAAK,CAAC,cAAc,CAAC;SACrB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CA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AAO;gBACP,IAAI;gBACJ,MAAM;aACP,CAAC,CAAA;QACJ,CAAC;QACD,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AA7DY,QAAA,8BAA8B,kCA6D1C"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInternalTransactionsByAddress = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const transactionSchema = zod_1.z.object({
|
|
8
|
-
blockNumber: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
9
|
-
timeStamp: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
10
|
-
hash: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(/^0x[\da-f]{64}$/)
|
|
13
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
14
|
-
from: zod_1.z
|
|
15
|
-
.string()
|
|
16
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
17
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
18
|
-
to: zod_1.z.string().transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : undefined)),
|
|
19
|
-
value: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
20
|
-
contractAddress: zod_1.z
|
|
21
|
-
.string()
|
|
22
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : undefined)),
|
|
23
|
-
input: zod_1.z.string(),
|
|
24
|
-
type: zod_1.z.string(),
|
|
25
|
-
gas: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
26
|
-
gasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
27
|
-
isError: zod_1.z
|
|
28
|
-
.string()
|
|
29
|
-
.regex(/^\d+$/)
|
|
30
|
-
.transform((x) => (x === '1' ? true : false)),
|
|
31
|
-
errCode: zod_1.z.string(),
|
|
32
|
-
});
|
|
33
|
-
const responseSchema = zod_1.z.object({
|
|
34
|
-
status: zod_1.z.string(),
|
|
35
|
-
message: zod_1.z.string(),
|
|
36
|
-
result: zod_1.z.union([zod_1.z.array(transactionSchema), zod_1.z.string()]).nullable(),
|
|
37
|
-
});
|
|
38
|
-
const getInternalTransactionsByAddress = async ({ apiEndpoint, apiKey, address, startBlock = 0n, endBlock, page = 1, offset = 10_000, sort = 'asc', logger, }) => {
|
|
39
|
-
try {
|
|
40
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
41
|
-
module: 'account',
|
|
42
|
-
action: 'txlistinternal',
|
|
43
|
-
address,
|
|
44
|
-
startBlock: startBlock.toString(),
|
|
45
|
-
...(endBlock === undefined
|
|
46
|
-
? {}
|
|
47
|
-
: {
|
|
48
|
-
endblock: endBlock.toString(),
|
|
49
|
-
}),
|
|
50
|
-
page: page.toString(),
|
|
51
|
-
offset: offset.toString(),
|
|
52
|
-
sort,
|
|
53
|
-
}, responseSchema, logger);
|
|
54
|
-
if (status !== '1' || result === null) {
|
|
55
|
-
if (message === 'No transactions found') {
|
|
56
|
-
return [];
|
|
57
|
-
}
|
|
58
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
59
|
-
throw error;
|
|
60
|
-
}
|
|
61
|
-
if (typeof result === 'string') {
|
|
62
|
-
throw new TypeError(result);
|
|
63
|
-
}
|
|
64
|
-
return result;
|
|
65
|
-
}
|
|
66
|
-
catch (error) {
|
|
67
|
-
if (error instanceof Error &&
|
|
68
|
-
(error.message === 'Max rate limit reached' ||
|
|
69
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
70
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
71
|
-
return await (0, exports.getInternalTransactionsByAddress)({
|
|
72
|
-
apiEndpoint,
|
|
73
|
-
apiKey,
|
|
74
|
-
address,
|
|
75
|
-
startBlock,
|
|
76
|
-
endBlock,
|
|
77
|
-
page,
|
|
78
|
-
offset,
|
|
79
|
-
sort,
|
|
80
|
-
logger,
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
throw error;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
exports.getInternalTransactionsByAddress = getInternalTransactionsByAddress;
|
|
87
|
-
//# sourceMappingURL=getInternalTransactionsByAddress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getInternalTransactionsByAddress.js","sourceRoot":"","sources":["../../../../explorers/externals/etherscan/getInternalTransactionsByAddress.ts"],"names":[],"mappings":";;;AACA,6BAAuB;AAEvB,0CAAkD;AAClD,6CAAoD;AAcpD,MAAM,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACjC,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACxD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IACtD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,KAAK,CAAC,iBAAiB,CAAC;SACxB,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,IAAA,aAAK,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAC,C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ACb,CAAC;QACD,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;YAC/B,MAAM,IAAI,SAAS,CAAC,MAAM,CAAC,CAAA;QAC7B,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IACE,KAAK,YAAY,KAAK;YACtB,CAAC,KAAK,CAAC,OAAO,KAAK,wBAAwB;gBACzC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,sCAAsC,CAAC,CAAC,EACjE,CAAC;YACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;YACzD,OAAO,MAAM,IAAA,wCAAgC,EAAC;gBAC5C,WAAW;gBACX,MAAM;gBACN,OAAO;gBACP,UAAU;gBACV,QAAQ;gBACR,IAAI;gBACJ,MAAM;gBACN,IAAI;gBACJ,MAAM;aACP,CAAC,CAAA;QACJ,CAAC;QACD,MAAM,KAAK,CAAA;IACb,CAAC;AACH,CAAC,CAAA;AAnEY,QAAA,gCAAgC,oCAmE5C"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getInternalTransactionsByTransactionHash = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const types_1 = require("../../../types");
|
|
6
|
-
const middleware_1 = require("./middleware");
|
|
7
|
-
const transactionSchema = zod_1.z.object({
|
|
8
|
-
blockNumber: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
9
|
-
timeStamp: zod_1.z.string().regex(/^\d+$/).transform(Number),
|
|
10
|
-
from: zod_1.z
|
|
11
|
-
.string()
|
|
12
|
-
.regex(/^0x[\da-f]{40}$/)
|
|
13
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : '0x')),
|
|
14
|
-
to: zod_1.z.string().transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : undefined)),
|
|
15
|
-
value: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
16
|
-
contractAddress: zod_1.z
|
|
17
|
-
.string()
|
|
18
|
-
.transform((x) => ((0, types_1.isHex)(x) ? (0, types_1.toLowerHex)(x) : undefined)),
|
|
19
|
-
input: zod_1.z.string(),
|
|
20
|
-
type: zod_1.z.string(),
|
|
21
|
-
gas: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
22
|
-
gasUsed: zod_1.z.string().regex(/^\d+$/).transform(BigInt),
|
|
23
|
-
isError: zod_1.z
|
|
24
|
-
.string()
|
|
25
|
-
.regex(/^\d+$/)
|
|
26
|
-
.transform((x) => (x === '1' ? true : false)),
|
|
27
|
-
errCode: zod_1.z.string(),
|
|
28
|
-
});
|
|
29
|
-
const responseSchema = zod_1.z.object({
|
|
30
|
-
status: zod_1.z.string(),
|
|
31
|
-
message: zod_1.z.string(),
|
|
32
|
-
result: zod_1.z.union([zod_1.z.array(transactionSchema), zod_1.z.string()]).nullable(),
|
|
33
|
-
});
|
|
34
|
-
const getInternalTransactionsByTransactionHash = async ({ apiEndpoint, apiKey, transactionHash, logger, }) => {
|
|
35
|
-
try {
|
|
36
|
-
const { status, message, result } = await (0, middleware_1.createEtherscanClient)(apiEndpoint, apiKey).get('', {
|
|
37
|
-
module: 'account',
|
|
38
|
-
action: 'txlistinternal',
|
|
39
|
-
txhash: transactionHash,
|
|
40
|
-
}, responseSchema, logger);
|
|
41
|
-
if (status !== '1' || result === null) {
|
|
42
|
-
if (message === 'No transactions found') {
|
|
43
|
-
return [];
|
|
44
|
-
}
|
|
45
|
-
const error = typeof result === 'string' ? new Error(result) : new Error(message);
|
|
46
|
-
throw error;
|
|
47
|
-
}
|
|
48
|
-
if (typeof result === 'string') {
|
|
49
|
-
throw new TypeError(result);
|
|
50
|
-
}
|
|
51
|
-
return result;
|
|
52
|
-
}
|
|
53
|
-
catch (error) {
|
|
54
|
-
if (error instanceof Error &&
|
|
55
|
-
(error.message === 'Max rate limit reached' ||
|
|
56
|
-
error.message.includes('Max calls per sec rate limit reached'))) {
|
|
57
|
-
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
58
|
-
return (0, exports.getInternalTransactionsByTransactionHash)({
|
|
59
|
-
apiEndpoint,
|
|
60
|
-
apiKey,
|
|
61
|
-
transactionHash,
|
|
62
|
-
logger,
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
throw error;
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
exports.getInternalTransactionsByTransactionHash = getInternalTransactionsByTransactionHash;
|
|
69
|
-
//# sourceMappingURL=getInternalTransactionsByTransactionHash.js.map
|