@0xtorch/evm 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -0
- package/dist/import/abis/erc1155.d.ts +245 -0
- package/dist/import/abis/erc1155.d.ts.map +1 -0
- package/dist/import/abis/erc20.d.ts +169 -0
- package/dist/import/abis/erc20.d.ts.map +1 -0
- package/dist/import/abis/erc721.d.ts +267 -0
- package/dist/import/abis/erc721.d.ts.map +1 -0
- package/dist/import/abis/index.d.ts +5 -0
- package/dist/import/abis/index.d.ts.map +1 -0
- package/dist/import/abis/weth.d.ts +214 -0
- package/dist/import/abis/weth.d.ts.map +1 -0
- package/dist/import/absoluteValue.d.mts +3 -0
- package/dist/import/absoluteValue.d.mts.map +1 -0
- package/dist/import/absoluteValue.d.ts +3 -0
- package/dist/import/absoluteValue.d.ts.map +1 -0
- package/dist/import/analyzer/analyze.d.ts +18 -0
- package/dist/import/analyzer/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/analyzer.d.ts +4 -0
- package/dist/import/analyzer/analyzer.d.ts.map +1 -0
- package/dist/import/analyzer/axieMarketplace/analyze.d.ts +4 -0
- package/dist/import/analyzer/axieMarketplace/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/axieMarketplace/index.d.ts +2 -0
- package/dist/import/analyzer/axieMarketplace/index.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/addLiquidity.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/atomicArbitrage.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeFrom.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/bridgeTo.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/buyNft.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/createAccountActionByAction.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/deposit.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/depositWithBond.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts +53 -0
- package/dist/import/analyzer/createAccountActionByAction/freeMintNft.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/index.d.ts +2 -0
- package/dist/import/analyzer/createAccountActionByAction/index.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/removeLiquidity.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/spam.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/spam.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/trade.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/trade.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/transactionFee.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/transfer.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/withdraw.d.ts.map +1 -0
- package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts +59 -0
- package/dist/import/analyzer/createAccountActionByAction/withdrawWithBond.d.ts.map +1 -0
- package/dist/import/analyzer/gasFee/analyze.d.ts +4 -0
- package/dist/import/analyzer/gasFee/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/gasFee/index.d.ts +2 -0
- package/dist/import/analyzer/gasFee/index.d.ts.map +1 -0
- package/dist/import/analyzer/index.d.ts +10 -0
- package/dist/import/analyzer/index.d.ts.map +1 -0
- package/dist/import/analyzer/json/analyze.d.ts +5 -0
- package/dist/import/analyzer/json/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorAnyLog.d.ts +55 -0
- package/dist/import/analyzer/json/generatorAnyLog.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts +54 -0
- package/dist/import/analyzer/json/generatorAnyTokenTransfer.d.ts.map +1 -0
- package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts +55 -0
- package/dist/import/analyzer/json/generatorSpecificTokenTransfer.d.ts.map +1 -0
- package/dist/import/analyzer/json/index.d.ts +2 -0
- package/dist/import/analyzer/json/index.d.ts.map +1 -0
- package/dist/import/analyzer/json/types.d.ts +177 -0
- package/dist/import/analyzer/json/types.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/analyze.d.ts +4 -0
- package/dist/import/analyzer/seaport/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/index.d.ts +2 -0
- package/dist/import/analyzer/seaport/index.d.ts.map +1 -0
- package/dist/import/analyzer/seaport/orderFulfilled.d.ts +139 -0
- package/dist/import/analyzer/seaport/orderFulfilled.d.ts.map +1 -0
- package/dist/import/analyzer/spam/analyze.d.ts +4 -0
- package/dist/import/analyzer/spam/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/spam/index.d.ts +2 -0
- package/dist/import/analyzer/spam/index.d.ts.map +1 -0
- package/dist/import/analyzer/swap/analyze.d.ts +4 -0
- package/dist/import/analyzer/swap/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/swap/index.d.ts +2 -0
- package/dist/import/analyzer/swap/index.d.ts.map +1 -0
- package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts +108 -0
- package/dist/import/analyzer/swap/traderJoeLBPairSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/univ2PairSwap.d.ts +84 -0
- package/dist/import/analyzer/swap/univ2PairSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/univ3PoolSwap.d.ts +96 -0
- package/dist/import/analyzer/swap/univ3PoolSwap.d.ts.map +1 -0
- package/dist/import/analyzer/swap/wrappedDeposit.d.ts +36 -0
- package/dist/import/analyzer/swap/wrappedDeposit.d.ts.map +1 -0
- package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts +36 -0
- package/dist/import/analyzer/swap/wrappedWithdrawal.d.ts.map +1 -0
- package/dist/import/analyzer/transfer/analyze.d.ts +4 -0
- package/dist/import/analyzer/transfer/analyze.d.ts.map +1 -0
- package/dist/import/analyzer/transfer/index.d.ts +2 -0
- package/dist/import/analyzer/transfer/index.d.ts.map +1 -0
- package/dist/import/analyzer/types.d.ts +17 -0
- package/dist/import/analyzer/types.d.ts.map +1 -0
- package/dist/import/apps/index.d.ts +2 -0
- package/dist/import/apps/index.d.ts.map +1 -0
- package/dist/import/apps/types.d.ts +6 -0
- package/dist/import/apps/types.d.ts.map +1 -0
- package/dist/import/chains/definitions/arbitrumOne.d.ts +99 -0
- package/dist/import/chains/definitions/arbitrumOne.d.ts.map +1 -0
- package/dist/import/chains/definitions/astar.d.ts +64 -0
- package/dist/import/chains/definitions/astar.d.ts.map +1 -0
- package/dist/import/chains/definitions/avalancheC.d.ts +84 -0
- package/dist/import/chains/definitions/avalancheC.d.ts.map +1 -0
- package/dist/import/chains/definitions/base.d.ts +94 -0
- package/dist/import/chains/definitions/base.d.ts.map +1 -0
- package/dist/import/chains/definitions/bsc.d.ts +144 -0
- package/dist/import/chains/definitions/bsc.d.ts.map +1 -0
- package/dist/import/chains/definitions/defineChain.d.ts +3 -0
- package/dist/import/chains/definitions/defineChain.d.ts.map +1 -0
- package/dist/import/chains/definitions/ethereum.d.ts +129 -0
- package/dist/import/chains/definitions/ethereum.d.ts.map +1 -0
- package/dist/import/chains/definitions/fantom.d.ts +89 -0
- package/dist/import/chains/definitions/fantom.d.ts.map +1 -0
- package/dist/import/chains/definitions/index.d.ts +16 -0
- package/dist/import/chains/definitions/index.d.ts.map +1 -0
- package/dist/import/chains/definitions/linea.d.ts +69 -0
- package/dist/import/chains/definitions/linea.d.ts.map +1 -0
- package/dist/import/chains/definitions/mantle.d.ts +62 -0
- package/dist/import/chains/definitions/mantle.d.ts.map +1 -0
- package/dist/import/chains/definitions/metis.d.ts +52 -0
- package/dist/import/chains/definitions/metis.d.ts.map +1 -0
- package/dist/import/chains/definitions/moonbeam.d.ts +84 -0
- package/dist/import/chains/definitions/moonbeam.d.ts.map +1 -0
- package/dist/import/chains/definitions/moonriver.d.ts +64 -0
- package/dist/import/chains/definitions/moonriver.d.ts.map +1 -0
- package/dist/import/chains/definitions/optimism.d.ts +104 -0
- package/dist/import/chains/definitions/optimism.d.ts.map +1 -0
- package/dist/import/chains/definitions/polygonPos.d.ts +84 -0
- package/dist/import/chains/definitions/polygonPos.d.ts.map +1 -0
- package/dist/import/chains/definitions/ronin.d.ts +49 -0
- package/dist/import/chains/definitions/ronin.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/constants.d.ts +2 -0
- package/dist/import/chains/externals/defillama/constants.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts +10 -0
- package/dist/import/chains/externals/defillama/getBlockOfTimestamp.d.ts.map +1 -0
- package/dist/import/chains/externals/defillama/index.d.ts +2 -0
- package/dist/import/chains/externals/defillama/index.d.ts.map +1 -0
- package/dist/import/chains/externals/index.d.ts +2 -0
- package/dist/import/chains/externals/index.d.ts.map +1 -0
- package/dist/import/chains/index.d.ts +4 -0
- package/dist/import/chains/index.d.ts.map +1 -0
- package/dist/import/chains/types/chain.d.ts +22 -0
- package/dist/import/chains/types/chain.d.ts.map +1 -0
- package/dist/import/chains/types/index.d.ts +3 -0
- package/dist/import/chains/types/index.d.ts.map +1 -0
- package/dist/import/chains/types/rpc.d.ts +7 -0
- package/dist/import/chains/types/rpc.d.ts.map +1 -0
- package/dist/import/clients/definitions/defineClient.d.ts +3 -0
- package/dist/import/clients/definitions/defineClient.d.ts.map +1 -0
- package/dist/import/clients/definitions/index.d.ts +2 -0
- package/dist/import/clients/definitions/index.d.ts.map +1 -0
- package/dist/import/clients/definitions/viemClient.d.ts +59 -0
- package/dist/import/clients/definitions/viemClient.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts +13 -0
- package/dist/import/clients/externals/viem/estimateFeesPerGas.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBalance.d.ts +15 -0
- package/dist/import/clients/externals/viem/getBalance.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBlock.d.ts +14 -0
- package/dist/import/clients/externals/viem/getBlock.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getBlockNumber.d.ts +13 -0
- package/dist/import/clients/externals/viem/getBlockNumber.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getEventLogs.d.ts +19 -0
- package/dist/import/clients/externals/viem/getEventLogs.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransaction.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransaction.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransactionCount.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransactionCount.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts +15 -0
- package/dist/import/clients/externals/viem/getTransactionReceipt.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/index.d.ts +11 -0
- package/dist/import/clients/externals/viem/index.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/middleware.d.ts +23 -0
- package/dist/import/clients/externals/viem/middleware.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/multicall.d.ts +14 -0
- package/dist/import/clients/externals/viem/multicall.d.ts.map +1 -0
- package/dist/import/clients/externals/viem/readContract.d.ts +14 -0
- package/dist/import/clients/externals/viem/readContract.d.ts.map +1 -0
- package/dist/import/clients/index.d.ts +3 -0
- package/dist/import/clients/index.d.ts.map +1 -0
- package/dist/import/clients/types.d.ts +64 -0
- package/dist/import/clients/types.d.ts.map +1 -0
- package/dist/import/createBigDecimal.d.mts +6 -0
- package/dist/import/createBigDecimal.d.mts.map +1 -0
- package/dist/import/createBigDecimal.d.ts +3 -0
- package/dist/import/createBigDecimal.d.ts.map +1 -0
- package/dist/import/creates/createEvmAccount.d.ts +5 -0
- package/dist/import/creates/createEvmAccount.d.ts.map +1 -0
- package/dist/import/decoder/decode.d.ts +3 -0
- package/dist/import/decoder/decode.d.ts.map +1 -0
- package/dist/import/decoder/decoder.d.ts +3 -0
- package/dist/import/decoder/decoder.d.ts.map +1 -0
- package/dist/import/decoder/index.d.ts +6 -0
- package/dist/import/decoder/index.d.ts.map +1 -0
- package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts +4 -0
- package/dist/import/decoder/parseErc1155TransferSingleLogs.d.ts.map +1 -0
- package/dist/import/decoder/parseErc20TransferLogs.d.ts +8 -0
- package/dist/import/decoder/parseErc20TransferLogs.d.ts.map +1 -0
- package/dist/import/decoder/parseErc721TransferLogs.d.ts +8 -0
- package/dist/import/decoder/parseErc721TransferLogs.d.ts.map +1 -0
- package/dist/import/decoder/types.d.ts +16 -0
- package/dist/import/decoder/types.d.ts.map +1 -0
- package/dist/import/divide.d.mts +8 -0
- package/dist/import/divide.d.mts.map +1 -0
- package/dist/import/divide.d.ts +3 -0
- package/dist/import/divide.d.ts.map +1 -0
- package/dist/import/equals.d.mts +3 -0
- package/dist/import/equals.d.mts.map +1 -0
- package/dist/import/equals.d.ts +3 -0
- package/dist/import/equals.d.ts.map +1 -0
- package/dist/import/explorers/definitions/blockscout.d.ts +60 -0
- package/dist/import/explorers/definitions/blockscout.d.ts.map +1 -0
- package/dist/import/explorers/definitions/defineExplorer.d.ts +3 -0
- package/dist/import/explorers/definitions/defineExplorer.d.ts.map +1 -0
- package/dist/import/explorers/definitions/etherscan.d.ts +61 -0
- package/dist/import/explorers/definitions/etherscan.d.ts.map +1 -0
- package/dist/import/explorers/definitions/index.d.ts +5 -0
- package/dist/import/explorers/definitions/index.d.ts.map +1 -0
- package/dist/import/explorers/definitions/roninExplorer.d.ts +62 -0
- package/dist/import/explorers/definitions/roninExplorer.d.ts.map +1 -0
- package/dist/import/explorers/definitions/routescan.d.ts +19 -0
- package/dist/import/explorers/definitions/routescan.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts +11 -0
- package/dist/import/explorers/externals/blockscout/getBlockNumberOfTimestamp.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts +30 -0
- package/dist/import/explorers/externals/blockscout/getContractByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts +62 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts +54 -0
- package/dist/import/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts +77 -0
- package/dist/import/explorers/externals/blockscout/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts +80 -0
- package/dist/import/explorers/externals/blockscout/getTokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/index.d.ts +7 -0
- package/dist/import/explorers/externals/blockscout/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/blockscout/middleware.d.ts +7 -0
- package/dist/import/explorers/externals/blockscout/middleware.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts +12 -0
- package/dist/import/explorers/externals/etherscan/getBlockNumberOfTimestamp.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts +55 -0
- package/dist/import/explorers/externals/etherscan/getContractByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts +83 -0
- package/dist/import/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts +81 -0
- package/dist/import/explorers/externals/etherscan/getErc20TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts +81 -0
- package/dist/import/explorers/externals/etherscan/getErc721TokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts +62 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts +55 -0
- package/dist/import/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts +84 -0
- package/dist/import/explorers/externals/etherscan/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/index.d.ts +9 -0
- package/dist/import/explorers/externals/etherscan/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/etherscan/middleware.d.ts +7 -0
- package/dist/import/explorers/externals/etherscan/middleware.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts +57 -0
- package/dist/import/explorers/externals/roninExplorer/getInternalTransactionByHash.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts +70 -0
- package/dist/import/explorers/externals/roninExplorer/getNormalTransactionsByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts +64 -0
- package/dist/import/explorers/externals/roninExplorer/getTokenTransfersByAddress.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/index.d.ts +4 -0
- package/dist/import/explorers/externals/roninExplorer/index.d.ts.map +1 -0
- package/dist/import/explorers/externals/roninExplorer/middleware.d.ts +5 -0
- package/dist/import/explorers/externals/roninExplorer/middleware.d.ts.map +1 -0
- package/dist/import/explorers/index.d.ts +3 -0
- package/dist/import/explorers/index.d.ts.map +1 -0
- package/dist/import/explorers/types.d.ts +43 -0
- package/dist/import/explorers/types.d.ts.map +1 -0
- package/dist/import/fix.d.mts +7 -0
- package/dist/import/fix.d.mts.map +1 -0
- package/dist/import/fix.d.ts +3 -0
- package/dist/import/fix.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts +15 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFulls.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getDecodedTransactionsPrices.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts +8 -0
- package/dist/import/getAccountsTransactionFulls/getHashesAndInternalTxs.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetail.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts +5 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionDetails.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts +8 -0
- package/dist/import/getAccountsTransactionFulls/getTransactionsApps.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/index.d.ts +3 -0
- package/dist/import/getAccountsTransactionFulls/index.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/types.d.ts +87 -0
- package/dist/import/getAccountsTransactionFulls/types.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withD.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withD.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withDA.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withDA.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withP.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withP.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withPD.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withPD.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withPDA.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withPDA.d.ts.map +1 -0
- package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts +4 -0
- package/dist/import/getAccountsTransactionFulls/withUndefined.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionDetail.d.ts +5 -0
- package/dist/import/getTransactionFull/getTransactionDetail.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionFull.d.ts +11 -0
- package/dist/import/getTransactionFull/getTransactionFull.d.ts.map +1 -0
- package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts +4 -0
- package/dist/import/getTransactionFull/getTransactionFullCustom.d.ts.map +1 -0
- package/dist/import/getTransactionFull/index.d.ts +3 -0
- package/dist/import/getTransactionFull/index.d.ts.map +1 -0
- package/dist/import/getTransactionFull/types.d.ts +63 -0
- package/dist/import/getTransactionFull/types.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withD.d.ts +4 -0
- package/dist/import/getTransactionFull/withD.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withDA.d.ts +4 -0
- package/dist/import/getTransactionFull/withDA.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withP.d.ts +4 -0
- package/dist/import/getTransactionFull/withP.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withPD.d.ts +4 -0
- package/dist/import/getTransactionFull/withPD.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withPDA.d.ts +4 -0
- package/dist/import/getTransactionFull/withPDA.d.ts.map +1 -0
- package/dist/import/getTransactionFull/withUndefined.d.ts +4 -0
- package/dist/import/getTransactionFull/withUndefined.d.ts.map +1 -0
- package/dist/import/greaterThan.d.mts +3 -0
- package/dist/import/greaterThan.d.mts.map +1 -0
- package/dist/import/greaterThan.d.ts +3 -0
- package/dist/import/greaterThan.d.ts.map +1 -0
- package/dist/import/index.d.mts +15 -0
- package/dist/import/index.d.mts.map +1 -0
- package/dist/import/index.d.ts +11 -0
- package/dist/import/index.d.ts.map +1 -0
- package/dist/import/index.mjs +1 -0
- package/dist/import/minus.d.mts +3 -0
- package/dist/import/minus.d.mts.map +1 -0
- package/dist/import/minus.d.ts +3 -0
- package/dist/import/minus.d.ts.map +1 -0
- package/dist/import/plus.d.mts +3 -0
- package/dist/import/plus.d.mts.map +1 -0
- package/dist/import/plus.d.ts +3 -0
- package/dist/import/plus.d.ts.map +1 -0
- package/dist/import/removeTrailingZeros.d.mts +6 -0
- package/dist/import/removeTrailingZeros.d.mts.map +1 -0
- package/dist/import/removeTrailingZeros.d.ts +3 -0
- package/dist/import/removeTrailingZeros.d.ts.map +1 -0
- package/dist/import/times.d.ts +3 -0
- package/dist/import/times.d.ts.map +1 -0
- package/dist/import/toStringBigDecimal.d.mts +6 -0
- package/dist/import/toStringBigDecimal.d.mts.map +1 -0
- package/dist/import/toStringBigDecimal.d.ts +3 -0
- package/dist/import/toStringBigDecimal.d.ts.map +1 -0
- package/dist/import/type.d.mts +5 -0
- package/dist/import/type.d.mts.map +1 -0
- package/dist/import/type.d.ts +5 -0
- package/dist/import/type.d.ts.map +1 -0
- package/dist/import/types/erc1155.d.ts +16 -0
- package/dist/import/types/erc1155.d.ts.map +1 -0
- package/dist/import/types/erc20.d.ts +19 -0
- package/dist/import/types/erc20.d.ts.map +1 -0
- package/dist/import/types/erc721.d.ts +18 -0
- package/dist/import/types/erc721.d.ts.map +1 -0
- package/dist/import/types/evmAccount.d.ts +10 -0
- package/dist/import/types/evmAccount.d.ts.map +1 -0
- package/dist/import/types/hex.d.ts +5 -0
- package/dist/import/types/hex.d.ts.map +1 -0
- package/dist/import/types/index.d.ts +12 -0
- package/dist/import/types/index.d.ts.map +1 -0
- package/dist/import/types/input.d.ts +26 -0
- package/dist/import/types/input.d.ts.map +1 -0
- package/dist/import/types/internalTransaction.d.ts +18 -0
- package/dist/import/types/internalTransaction.d.ts.map +1 -0
- package/dist/import/types/log.d.ts +118 -0
- package/dist/import/types/log.d.ts.map +1 -0
- package/dist/import/types/transaction.d.ts +44 -0
- package/dist/import/types/transaction.d.ts.map +1 -0
- package/dist/import/utils/bigint.d.ts +3 -0
- package/dist/import/utils/bigint.d.ts.map +1 -0
- package/dist/import/utils/index.d.ts +4 -0
- package/dist/import/utils/index.d.ts.map +1 -0
- package/dist/import/utils/timeout.d.ts +2 -0
- package/dist/import/utils/timeout.d.ts.map +1 -0
- package/dist/import/utils/types.d.ts +12 -0
- package/dist/import/utils/types.d.ts.map +1 -0
- package/dist/require/absoluteValue.d.ts +3 -0
- package/dist/require/absoluteValue.d.ts.map +1 -0
- package/dist/require/createBigDecimal.d.ts +6 -0
- package/dist/require/createBigDecimal.d.ts.map +1 -0
- package/dist/require/divide.d.ts +2 -0
- package/dist/require/divide.d.ts.map +1 -0
- package/dist/require/equals.d.ts +3 -0
- package/dist/require/equals.d.ts.map +1 -0
- package/dist/require/fix.d.ts +7 -0
- package/dist/require/fix.d.ts.map +1 -0
- package/dist/require/greaterThan.d.ts +3 -0
- package/dist/require/greaterThan.d.ts.map +1 -0
- package/dist/require/index.cjs +46 -0
- package/dist/require/index.d.cts +2 -0
- package/dist/require/index.d.cts.map +1 -0
- package/dist/require/index.d.ts +11 -0
- package/dist/require/index.d.ts.map +1 -0
- package/dist/require/minus.d.ts +3 -0
- package/dist/require/minus.d.ts.map +1 -0
- package/dist/require/plus.d.ts +3 -0
- package/dist/require/plus.d.ts.map +1 -0
- package/dist/require/removeTrailingZeros.d.ts +6 -0
- package/dist/require/removeTrailingZeros.d.ts.map +1 -0
- package/dist/require/times.d.ts +8 -0
- package/dist/require/times.d.ts.map +1 -0
- package/dist/require/toStringBigDecimal.d.ts +6 -0
- package/dist/require/toStringBigDecimal.d.ts.map +1 -0
- package/dist/require/type.d.ts +5 -0
- package/dist/require/type.d.ts.map +1 -0
- package/package.json +85 -0
- package/src/abis/erc1155.ts +314 -0
- package/src/abis/erc20.ts +222 -0
- package/src/abis/erc721.ts +346 -0
- package/src/abis/index.ts +4 -0
- package/src/abis/weth.ts +153 -0
- package/src/analyzer/analyze.ts +85 -0
- package/src/analyzer/analyzer.ts +5 -0
- package/src/analyzer/axieMarketplace/analyze.ts +326 -0
- package/src/analyzer/axieMarketplace/index.ts +1 -0
- package/src/analyzer/createAccountActionByAction/addLiquidity.ts +60 -0
- package/src/analyzer/createAccountActionByAction/atomicArbitrage.ts +115 -0
- package/src/analyzer/createAccountActionByAction/bridgeFrom.ts +61 -0
- package/src/analyzer/createAccountActionByAction/bridgeTo.ts +61 -0
- package/src/analyzer/createAccountActionByAction/buyNft.ts +106 -0
- package/src/analyzer/createAccountActionByAction/createAccountActionByAction.ts +181 -0
- package/src/analyzer/createAccountActionByAction/deposit.ts +64 -0
- package/src/analyzer/createAccountActionByAction/depositWithBond.ts +60 -0
- package/src/analyzer/createAccountActionByAction/freeMintNft.ts +54 -0
- package/src/analyzer/createAccountActionByAction/index.ts +1 -0
- package/src/analyzer/createAccountActionByAction/removeLiquidity.ts +60 -0
- package/src/analyzer/createAccountActionByAction/spam.ts +79 -0
- package/src/analyzer/createAccountActionByAction/trade.ts +105 -0
- package/src/analyzer/createAccountActionByAction/transactionFee.ts +51 -0
- package/src/analyzer/createAccountActionByAction/transfer.ts +95 -0
- package/src/analyzer/createAccountActionByAction/withdraw.ts +61 -0
- package/src/analyzer/createAccountActionByAction/withdrawWithBond.ts +60 -0
- package/src/analyzer/gasFee/analyze.test.ts +6 -0
- package/src/analyzer/gasFee/analyze.ts +72 -0
- package/src/analyzer/gasFee/index.ts +1 -0
- package/src/analyzer/index.ts +9 -0
- package/src/analyzer/json/analyze.test.ts +1819 -0
- package/src/analyzer/json/analyze.ts +536 -0
- package/src/analyzer/json/generatorAnyLog.ts +207 -0
- package/src/analyzer/json/generatorAnyTokenTransfer.ts +118 -0
- package/src/analyzer/json/generatorSpecificTokenTransfer.ts +425 -0
- package/src/analyzer/json/index.ts +1 -0
- package/src/analyzer/json/types.ts +239 -0
- package/src/analyzer/seaport/analyze.test.ts +2323 -0
- package/src/analyzer/seaport/analyze.ts +917 -0
- package/src/analyzer/seaport/index.ts +1 -0
- package/src/analyzer/seaport/orderFulfilled.ts +131 -0
- package/src/analyzer/spam/analyze.ts +219 -0
- package/src/analyzer/spam/index.ts +1 -0
- package/src/analyzer/swap/analyze.test.ts +2401 -0
- package/src/analyzer/swap/analyze.ts +939 -0
- package/src/analyzer/swap/index.ts +1 -0
- package/src/analyzer/swap/traderJoeLBPairSwap.ts +92 -0
- package/src/analyzer/swap/univ2PairSwap.ts +77 -0
- package/src/analyzer/swap/univ3PoolSwap.ts +83 -0
- package/src/analyzer/swap/wrappedDeposit.ts +51 -0
- package/src/analyzer/swap/wrappedWithdrawal.ts +53 -0
- package/src/analyzer/tests.ts +2 -0
- package/src/analyzer/transfer/analyze.test.ts +6 -0
- package/src/analyzer/transfer/analyze.ts +209 -0
- package/src/analyzer/transfer/index.ts +1 -0
- package/src/analyzer/types.ts +44 -0
- package/src/apps/index.ts +1 -0
- package/src/apps/types.ts +10 -0
- package/src/chains/definitions/arbitrumOne.test.ts +50 -0
- package/src/chains/definitions/arbitrumOne.ts +133 -0
- package/src/chains/definitions/astar.test.ts +51 -0
- package/src/chains/definitions/astar.ts +93 -0
- package/src/chains/definitions/avalancheC.test.ts +50 -0
- package/src/chains/definitions/avalancheC.ts +115 -0
- package/src/chains/definitions/base.test.ts +50 -0
- package/src/chains/definitions/base.ts +125 -0
- package/src/chains/definitions/bsc.test.ts +50 -0
- package/src/chains/definitions/bsc.ts +182 -0
- package/src/chains/definitions/defineChain.ts +7 -0
- package/src/chains/definitions/ethereum.test.ts +50 -0
- package/src/chains/definitions/ethereum.ts +169 -0
- package/src/chains/definitions/fantom.test.ts +50 -0
- package/src/chains/definitions/fantom.ts +123 -0
- package/src/chains/definitions/index.ts +88 -0
- package/src/chains/definitions/linea.test.ts +50 -0
- package/src/chains/definitions/linea.ts +95 -0
- package/src/chains/definitions/mantle.test.ts +50 -0
- package/src/chains/definitions/mantle.ts +75 -0
- package/src/chains/definitions/metis.test.ts +50 -0
- package/src/chains/definitions/metis.ts +60 -0
- package/src/chains/definitions/moonbeam.test.ts +50 -0
- package/src/chains/definitions/moonbeam.ts +117 -0
- package/src/chains/definitions/moonriver.test.ts +50 -0
- package/src/chains/definitions/moonriver.ts +94 -0
- package/src/chains/definitions/optimism.test.ts +50 -0
- package/src/chains/definitions/optimism.ts +139 -0
- package/src/chains/definitions/polygonPos.test.ts +50 -0
- package/src/chains/definitions/polygonPos.ts +121 -0
- package/src/chains/definitions/ronin.test.ts +50 -0
- package/src/chains/definitions/ronin.ts +75 -0
- package/src/chains/definitions/tests.ts +2884 -0
- package/src/chains/externals/defillama/constants.ts +1 -0
- package/src/chains/externals/defillama/getBlockOfTimestamp.test.ts +12 -0
- package/src/chains/externals/defillama/getBlockOfTimestamp.ts +26 -0
- package/src/chains/externals/defillama/index.ts +1 -0
- package/src/chains/externals/index.ts +1 -0
- package/src/chains/index.ts +62 -0
- package/src/chains/types/chain.ts +22 -0
- package/src/chains/types/index.ts +2 -0
- package/src/chains/types/rpc.ts +6 -0
- package/src/clients/definitions/defineClient.ts +7 -0
- package/src/clients/definitions/index.ts +1 -0
- package/src/clients/definitions/viemClient.ts +86 -0
- package/src/clients/externals/viem/estimateFeesPerGas.ts +23 -0
- package/src/clients/externals/viem/getBalance.ts +25 -0
- package/src/clients/externals/viem/getBlock.ts +29 -0
- package/src/clients/externals/viem/getBlockNumber.ts +23 -0
- package/src/clients/externals/viem/getEventLogs.test.ts +22 -0
- package/src/clients/externals/viem/getEventLogs.ts +40 -0
- package/src/clients/externals/viem/getTransaction.ts +25 -0
- package/src/clients/externals/viem/getTransactionCount.ts +25 -0
- package/src/clients/externals/viem/getTransactionReceipt.ts +25 -0
- package/src/clients/externals/viem/index.ts +10 -0
- package/src/clients/externals/viem/middleware.ts +437 -0
- package/src/clients/externals/viem/multicall.test.ts +26 -0
- package/src/clients/externals/viem/multicall.ts +27 -0
- package/src/clients/externals/viem/readContract.test.ts +20 -0
- package/src/clients/externals/viem/readContract.ts +38 -0
- package/src/clients/externals/viem/tests.ts +957 -0
- package/src/clients/index.ts +2 -0
- package/src/clients/types.ts +113 -0
- package/src/creates/createEvmAccount.ts +12 -0
- package/src/decoder/decode.test.ts +324 -0
- package/src/decoder/decode.ts +716 -0
- package/src/decoder/decoder.ts +6 -0
- package/src/decoder/index.ts +5 -0
- package/src/decoder/parseErc1155TransferSingleLogs.ts +40 -0
- package/src/decoder/parseErc20TransferLogs.ts +35 -0
- package/src/decoder/parseErc721TransferLogs.ts +40 -0
- package/src/decoder/tests.ts +502 -0
- package/src/decoder/types.ts +21 -0
- package/src/explorers/definitions/blockscout.test.ts +124 -0
- package/src/explorers/definitions/blockscout.ts +205 -0
- package/src/explorers/definitions/defineExplorer.ts +7 -0
- package/src/explorers/definitions/etherscan.test.ts +123 -0
- package/src/explorers/definitions/etherscan.ts +279 -0
- package/src/explorers/definitions/index.ts +4 -0
- package/src/explorers/definitions/roninExplorer.ts +150 -0
- package/src/explorers/definitions/routescan.ts +57 -0
- package/src/explorers/externals/blockscout/getBlockNumberOfTimestamp.ts +67 -0
- package/src/explorers/externals/blockscout/getContractByAddress.ts +81 -0
- package/src/explorers/externals/blockscout/getInternalTransactionsByAddress.ts +120 -0
- package/src/explorers/externals/blockscout/getInternalTransactionsByTransactionHash.ts +87 -0
- package/src/explorers/externals/blockscout/getNormalTransactionsByAddress.ts +116 -0
- package/src/explorers/externals/blockscout/getTokenTransfersByAddress.ts +127 -0
- package/src/explorers/externals/blockscout/index.ts +6 -0
- package/src/explorers/externals/blockscout/middleware.ts +56 -0
- package/src/explorers/externals/defillama/getBlockNumberOfTimestamp.ts +28 -0
- package/src/explorers/externals/defillama/index.ts +1 -0
- package/src/explorers/externals/etherscan/getBlockNumberOfTimestamp.ts +66 -0
- package/src/explorers/externals/etherscan/getContractByAddress.ts +86 -0
- package/src/explorers/externals/etherscan/getErc1155TokenTransfersByAddress.ts +133 -0
- package/src/explorers/externals/etherscan/getErc20TokenTransfersByAddress.ts +125 -0
- package/src/explorers/externals/etherscan/getErc721TokenTransfersByAddress.ts +125 -0
- package/src/explorers/externals/etherscan/getInternalTransactionsByAddress.ts +117 -0
- package/src/explorers/externals/etherscan/getInternalTransactionsByTransactionHash.ts +91 -0
- package/src/explorers/externals/etherscan/getNormalTransactionsByAddress.ts +122 -0
- package/src/explorers/externals/etherscan/index.ts +8 -0
- package/src/explorers/externals/etherscan/middleware.ts +77 -0
- package/src/explorers/externals/roninExplorer/getInternalTransactionByHash.ts +80 -0
- package/src/explorers/externals/roninExplorer/getNormalTransactionsByAddress.ts +79 -0
- package/src/explorers/externals/roninExplorer/getTokenTransfersByAddress.ts +81 -0
- package/src/explorers/externals/roninExplorer/index.ts +3 -0
- package/src/explorers/externals/roninExplorer/middleware.ts +49 -0
- package/src/explorers/index.ts +7 -0
- package/src/explorers/types.ts +56 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.test.ts +22 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFulls.ts +46 -0
- package/src/getAccountsTransactionFulls/getAccountsTransactionFullsCustom.ts +106 -0
- package/src/getAccountsTransactionFulls/getDecodedTransactionsPrices.ts +97 -0
- package/src/getAccountsTransactionFulls/getHashesAndInternalTxs.ts +65 -0
- package/src/getAccountsTransactionFulls/getTransactionDetail.ts +49 -0
- package/src/getAccountsTransactionFulls/getTransactionDetails.ts +39 -0
- package/src/getAccountsTransactionFulls/getTransactionsApps.ts +42 -0
- package/src/getAccountsTransactionFulls/index.ts +2 -0
- package/src/getAccountsTransactionFulls/types.ts +122 -0
- package/src/getAccountsTransactionFulls/withD.ts +80 -0
- package/src/getAccountsTransactionFulls/withDA.ts +112 -0
- package/src/getAccountsTransactionFulls/withP.ts +120 -0
- package/src/getAccountsTransactionFulls/withPD.ts +141 -0
- package/src/getAccountsTransactionFulls/withPDA.ts +167 -0
- package/src/getAccountsTransactionFulls/withUndefined.ts +88 -0
- package/src/getContractAbi.ts +15 -0
- package/src/getTransactionFull/getTransactionDetail.ts +47 -0
- package/src/getTransactionFull/getTransactionFull.test.ts +34 -0
- package/src/getTransactionFull/getTransactionFull.ts +30 -0
- package/src/getTransactionFull/getTransactionFullCustom.ts +91 -0
- package/src/getTransactionFull/index.ts +2 -0
- package/src/getTransactionFull/types.ts +98 -0
- package/src/getTransactionFull/withD.ts +57 -0
- package/src/getTransactionFull/withDA.ts +78 -0
- package/src/getTransactionFull/withP.ts +69 -0
- package/src/getTransactionFull/withPD.ts +119 -0
- package/src/getTransactionFull/withPDA.ts +147 -0
- package/src/getTransactionFull/withUndefined.ts +39 -0
- package/src/index.cts +1 -0
- package/src/index.mts +110 -0
- package/src/tests.ts +1 -0
- package/src/types/erc1155.ts +17 -0
- package/src/types/erc20.ts +22 -0
- package/src/types/erc721.ts +19 -0
- package/src/types/evmAccount.ts +12 -0
- package/src/types/hex.test.ts +10 -0
- package/src/types/hex.ts +9 -0
- package/src/types/index.ts +16 -0
- package/src/types/input.ts +27 -0
- package/src/types/internalTransaction.ts +19 -0
- package/src/types/log.ts +68 -0
- package/src/types/transaction.ts +78 -0
- package/src/utils/bigint.ts +5 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/timeout.ts +5 -0
- package/src/utils/types.ts +12 -0
- package/tsconfig.json +28 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { AbiEvent } from 'abitype';
|
|
3
|
+
import type { Abi, ContractFunctionName, GetLogsReturnType, MulticallParameters, MulticallReturnType, ReadContractParameters, ReadContractReturnType, Chain as ViemChain } from 'viem';
|
|
4
|
+
import type { HttpRpc } from '../../chains';
|
|
5
|
+
import type { LowerHex } from '../../types';
|
|
6
|
+
type CreateViemClientParameters<TChain extends ViemChain> = {
|
|
7
|
+
readonly chain: TChain;
|
|
8
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
9
|
+
};
|
|
10
|
+
export declare const createViemClient: <TChain extends ViemChain>({ chain, httpRpcs, }: CreateViemClientParameters<TChain>) => {
|
|
11
|
+
readonly httpRpcCount: number;
|
|
12
|
+
readonly estimateFeesPerGas: (config: {
|
|
13
|
+
readonly timeout?: number | undefined;
|
|
14
|
+
readonly logger?: Logger | undefined;
|
|
15
|
+
} | undefined) => Promise<import("viem").FeeValues>;
|
|
16
|
+
readonly getBalance: (address: `0x${Lowercase<string>}`, config: {
|
|
17
|
+
readonly timeout?: number | undefined;
|
|
18
|
+
readonly logger?: Logger | undefined;
|
|
19
|
+
} | undefined) => Promise<bigint>;
|
|
20
|
+
readonly getBlock: (blockNumber: bigint, config: {
|
|
21
|
+
readonly timeout?: number | undefined;
|
|
22
|
+
readonly logger?: Logger | undefined;
|
|
23
|
+
} | undefined) => Promise<import("viem").Block<bigint, false, "latest">>;
|
|
24
|
+
readonly getBlockNumber: (config: {
|
|
25
|
+
readonly timeout?: number | undefined;
|
|
26
|
+
readonly logger?: Logger | undefined;
|
|
27
|
+
} | undefined) => Promise<bigint>;
|
|
28
|
+
readonly getEventLogs: <const TAbiEvent extends AbiEvent>(parameters: {
|
|
29
|
+
readonly contractAddress: LowerHex;
|
|
30
|
+
readonly event: TAbiEvent;
|
|
31
|
+
readonly fromBlock: bigint;
|
|
32
|
+
readonly toBlock: bigint;
|
|
33
|
+
}, config?: {
|
|
34
|
+
readonly timeout?: number;
|
|
35
|
+
readonly logger?: Logger;
|
|
36
|
+
}) => Promise<GetLogsReturnType<TAbiEvent>>;
|
|
37
|
+
readonly getTransaction: (hash: `0x${string}`, config: {
|
|
38
|
+
readonly timeout?: number | undefined;
|
|
39
|
+
readonly logger?: Logger | undefined;
|
|
40
|
+
} | undefined) => Promise<import("viem").Transaction>;
|
|
41
|
+
readonly getTransactionCount: (address: `0x${Lowercase<string>}`, config: {
|
|
42
|
+
readonly timeout?: number | undefined;
|
|
43
|
+
readonly logger?: Logger | undefined;
|
|
44
|
+
} | undefined) => Promise<number>;
|
|
45
|
+
readonly getTransactionReceipt: (hash: `0x${string}`, config: {
|
|
46
|
+
readonly timeout?: number | undefined;
|
|
47
|
+
readonly logger?: Logger | undefined;
|
|
48
|
+
} | undefined) => Promise<import("viem").TransactionReceipt>;
|
|
49
|
+
readonly multicall: <const TContracts extends readonly unknown[]>(parameters: MulticallParameters<TContracts>, config?: {
|
|
50
|
+
readonly timeout?: number;
|
|
51
|
+
readonly logger?: Logger;
|
|
52
|
+
}) => Promise<MulticallReturnType<TContracts>>;
|
|
53
|
+
readonly readContract: <const TAbi extends Abi | readonly unknown[], const TFunctionName extends ContractFunctionName<TAbi, "view" | "pure">>(parameters: ReadContractParameters<TAbi, TFunctionName>, config?: {
|
|
54
|
+
readonly timeout?: number;
|
|
55
|
+
readonly logger?: Logger;
|
|
56
|
+
}) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
|
57
|
+
};
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=viemClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viemClient.d.ts","sourceRoot":"","sources":["../../../../src/clients/definitions/viemClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,EACV,GAAG,EACH,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,KAAK,IAAI,SAAS,EACnB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAe3C,KAAK,0BAA0B,CAAC,MAAM,SAAS,SAAS,IAAI;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;kCAgBK,QAAQ;;4BAEd,MAAM;0BACR,MAAM;gBAEjB;QACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KACzB;;;;;;;;;;;;;4HAWQ;QACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KACzB;oNAQQ;QACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;QACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KACzB;CAGH,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { FeeValues, Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
type EstimateFeesPerGasParameters = {
|
|
5
|
+
readonly chain: ViemChain;
|
|
6
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
7
|
+
};
|
|
8
|
+
export declare const estimateFeesPerGas: ({ chain, httpRpcs }: EstimateFeesPerGasParameters, config?: {
|
|
9
|
+
readonly timeout?: number;
|
|
10
|
+
readonly logger?: Logger;
|
|
11
|
+
}) => Promise<FeeValues>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=estimateFeesPerGas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"estimateFeesPerGas.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/estimateFeesPerGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C,KAAK,4BAA4B,GAAG;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,kBAAkB,wBACR,4BAA4B,WACxC;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,SAAS,CAMjB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
import type { LowerHex } from '../../../types';
|
|
5
|
+
type GetBalanceParameters = {
|
|
6
|
+
readonly chain: ViemChain;
|
|
7
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
8
|
+
readonly address: LowerHex;
|
|
9
|
+
};
|
|
10
|
+
export declare const getBalance: ({ chain, httpRpcs, address }: GetBalanceParameters, config?: {
|
|
11
|
+
readonly timeout?: number;
|
|
12
|
+
readonly logger?: Logger;
|
|
13
|
+
}) => Promise<bigint>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getBalance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBalance.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,UAAU,iCACS,oBAAoB,WACzC;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,MAAM,CAMd,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Block, Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
type GetBlockParameters = {
|
|
5
|
+
readonly chain: ViemChain;
|
|
6
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
7
|
+
readonly blockNumber: bigint;
|
|
8
|
+
};
|
|
9
|
+
export declare const getBlock: ({ chain, httpRpcs, blockNumber }: GetBlockParameters, config?: {
|
|
10
|
+
readonly timeout?: number;
|
|
11
|
+
readonly logger?: Logger;
|
|
12
|
+
}) => Promise<Block<bigint, false, 'latest'>>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=getBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlock.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getBlock.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;CAC7B,CAAA;AAED,eAAO,MAAM,QAAQ,qCACe,kBAAkB,WAC3C;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,MAAM,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,CAWtC,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
type GetBlockNumberParameters = {
|
|
5
|
+
readonly chain: ViemChain;
|
|
6
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
7
|
+
};
|
|
8
|
+
export declare const getBlockNumber: ({ chain, httpRpcs }: GetBlockNumberParameters, config?: {
|
|
9
|
+
readonly timeout?: number;
|
|
10
|
+
readonly logger?: Logger;
|
|
11
|
+
}) => Promise<bigint>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=getBlockNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getBlockNumber.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CACtC,CAAA;AAED,eAAO,MAAM,cAAc,wBACJ,wBAAwB,WACpC;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,MAAM,CAMd,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { AbiEvent } from 'abitype';
|
|
3
|
+
import type { GetLogsReturnType, Chain as ViemChain } from 'viem';
|
|
4
|
+
import type { HttpRpc } from '../../../chains';
|
|
5
|
+
import type { LowerHex } from '../../../types';
|
|
6
|
+
type GetEventLogsParameters<TAbiEvent extends AbiEvent> = {
|
|
7
|
+
readonly chain: ViemChain;
|
|
8
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
9
|
+
readonly contractAddress: LowerHex;
|
|
10
|
+
readonly event: TAbiEvent;
|
|
11
|
+
readonly fromBlock: bigint;
|
|
12
|
+
readonly toBlock: bigint;
|
|
13
|
+
};
|
|
14
|
+
export declare const getEventLogs: <const TAbiEvent extends AbiEvent>({ chain, httpRpcs, contractAddress, event, fromBlock, toBlock, }: GetEventLogsParameters<TAbiEvent>, config?: {
|
|
15
|
+
readonly timeout?: number;
|
|
16
|
+
readonly logger?: Logger;
|
|
17
|
+
}) => Promise<GetLogsReturnType<TAbiEvent>>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=getEventLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getEventLogs.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getEventLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,EAAE,iBAAiB,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAG9C,KAAK,sBAAsB,CAAC,SAAS,SAAS,QAAQ,IAAI;IACxD,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,eAAO,MAAM,YAAY,mJASd;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,0CAWA,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Transaction, Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
import type { Hex } from '../../../types';
|
|
5
|
+
type GetTransactionParameters = {
|
|
6
|
+
readonly chain: ViemChain;
|
|
7
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
8
|
+
readonly hash: Hex;
|
|
9
|
+
};
|
|
10
|
+
export declare const getTransaction: ({ chain, httpRpcs, hash }: GetTransactionParameters, config?: {
|
|
11
|
+
readonly timeout?: number;
|
|
12
|
+
readonly logger?: Logger;
|
|
13
|
+
}) => Promise<Transaction>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGzC,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,8BACE,wBAAwB,WAC1C;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,WAAW,CAMnB,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
import type { Hex } from '../../../types';
|
|
5
|
+
type GetTransactionCountParameters = {
|
|
6
|
+
readonly chain: ViemChain;
|
|
7
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
8
|
+
readonly address: Hex;
|
|
9
|
+
};
|
|
10
|
+
export declare const getTransactionCount: ({ chain, httpRpcs, address }: GetTransactionCountParameters, config?: {
|
|
11
|
+
readonly timeout?: number;
|
|
12
|
+
readonly logger?: Logger;
|
|
13
|
+
}) => Promise<number>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getTransactionCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTransactionCount.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getTransactionCount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGzC,KAAK,6BAA6B,GAAG;IACnC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAA;CACtB,CAAA;AAED,eAAO,MAAM,mBAAmB,iCACA,6BAA6B,WAClD;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,MAAM,CAMd,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { TransactionReceipt, Chain as ViemChain } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
import type { Hex } from '../../../types';
|
|
5
|
+
type GetTransactionReceiptParameters = {
|
|
6
|
+
readonly chain: ViemChain;
|
|
7
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
8
|
+
readonly hash: Hex;
|
|
9
|
+
};
|
|
10
|
+
export declare const getTransactionReceipt: ({ chain, httpRpcs, hash }: GetTransactionReceiptParameters, config?: {
|
|
11
|
+
readonly timeout?: number;
|
|
12
|
+
readonly logger?: Logger;
|
|
13
|
+
}) => Promise<TransactionReceipt>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=getTransactionReceipt.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTransactionReceipt.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/getTransactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAA;AAClE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAGzC,KAAK,+BAA+B,GAAG;IACrC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,IAAI,EAAE,GAAG,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,qBAAqB,8BACL,+BAA+B,WACjD;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACA,QAAQ,kBAAkB,CAM1B,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { estimateFeesPerGas } from './estimateFeesPerGas';
|
|
2
|
+
export { getBalance } from './getBalance';
|
|
3
|
+
export { getBlock } from './getBlock';
|
|
4
|
+
export { getBlockNumber } from './getBlockNumber';
|
|
5
|
+
export { getEventLogs } from './getEventLogs';
|
|
6
|
+
export { getTransaction } from './getTransaction';
|
|
7
|
+
export { getTransactionCount } from './getTransactionCount';
|
|
8
|
+
export { getTransactionReceipt } from './getTransactionReceipt';
|
|
9
|
+
export { multicall } from './multicall';
|
|
10
|
+
export { readContract } from './readContract';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { AbiEvent } from 'abitype';
|
|
3
|
+
import type { GetLogsReturnType, MulticallParameters, MulticallReturnType, Chain as ViemChain } from 'viem';
|
|
4
|
+
import { createPublicClient } from 'viem';
|
|
5
|
+
import type { HttpRpc } from '../../../chains';
|
|
6
|
+
import type { LowerHex } from '../../../types';
|
|
7
|
+
type RpcCondition = {
|
|
8
|
+
readonly onlyArchive?: boolean;
|
|
9
|
+
readonly onlyGetLogsIsUsable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
type PublicClient = ReturnType<typeof createPublicClient>;
|
|
12
|
+
export declare const createViemClient: (chain: ViemChain, httpRpcs: readonly HttpRpc[]) => {
|
|
13
|
+
getLogs: <TAbiEvent extends AbiEvent>(parameters: {
|
|
14
|
+
readonly address: LowerHex;
|
|
15
|
+
readonly event: TAbiEvent;
|
|
16
|
+
readonly fromBlock: bigint;
|
|
17
|
+
readonly toBlock: bigint;
|
|
18
|
+
}, timeout?: number, logger?: Logger) => Promise<GetLogsReturnType<TAbiEvent>>;
|
|
19
|
+
multicall: <contracts extends readonly unknown[]>(parameters: MulticallParameters<contracts>, timeout?: number, logger?: Logger) => Promise<MulticallReturnType<contracts>>;
|
|
20
|
+
wrapper: <const TReturnType, TFunction extends (client: PublicClient) => Promise<TReturnType> = (client: PublicClient) => Promise<TReturnType>>(function_: TFunction, rpcCondition?: RpcCondition, timeout?: number, logger?: Logger) => Promise<TReturnType>;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=middleware.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/middleware.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,KAAK,IAAI,SAAS,EACnB,MAAM,MAAM,CAAA;AACb,OAAO,EAAsB,kBAAkB,EAAQ,MAAM,MAAM,CAAA;AACnE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AA2C9C,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,mBAAmB,CAAC,EAAE,OAAO,CAAA;CACvC,CAAA;AAuID,KAAK,YAAY,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAA;AAEzD,eAAO,MAAM,gBAAgB,UA2MZ,SAAS,YAAY,SAAS,OAAO,EAAE;;0BAM5B,QAAQ;;4BAEN,MAAM;0BACR,MAAM;kCAGjB,MAAM;6HAMN,MAAM;4DAIY,YAAY,qCAC7B,YAAY,gEAIP,YAAY,6BAElB,MAAM;CAWnB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { MulticallReturnType, Chain as ViemChain, MulticallParameters as ViemMulticallParameters } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
type MulticallParameters<contracts extends readonly unknown[]> = {
|
|
5
|
+
readonly chain: ViemChain;
|
|
6
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
7
|
+
readonly parameters: ViemMulticallParameters<contracts>;
|
|
8
|
+
};
|
|
9
|
+
export declare const multicall: <contracts extends readonly unknown[]>({ chain, httpRpcs, parameters }: MulticallParameters<contracts>, config?: {
|
|
10
|
+
readonly timeout?: number;
|
|
11
|
+
readonly logger?: Logger;
|
|
12
|
+
}) => Promise<MulticallReturnType<contracts>>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=multicall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multicall.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/multicall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EACV,mBAAmB,EACnB,KAAK,IAAI,SAAS,EAClB,mBAAmB,IAAI,uBAAuB,EAC/C,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C,KAAK,mBAAmB,CAAC,SAAS,SAAS,SAAS,OAAO,EAAE,IAAI;IAC/D,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,UAAU,EAAE,uBAAuB,CAAC,SAAS,CAAC,CAAA;CACxD,CAAA;AAED,eAAO,MAAM,SAAS,mHAEX;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,4CAMA,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { Abi, ContractFunctionName, ReadContractReturnType, Chain as ViemChain, ReadContractParameters as ViemReadContractParameters } from 'viem';
|
|
3
|
+
import type { HttpRpc } from '../../../chains';
|
|
4
|
+
type ReadContractParameters<TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'>> = {
|
|
5
|
+
readonly chain: ViemChain;
|
|
6
|
+
readonly httpRpcs: readonly HttpRpc[];
|
|
7
|
+
readonly parameters: ViemReadContractParameters<TAbi, TFunctionName>;
|
|
8
|
+
};
|
|
9
|
+
export declare const readContract: <TAbi extends Abi | readonly unknown[], TFunctionName extends ContractFunctionName<TAbi, "view" | "pure">>({ chain, httpRpcs, parameters }: ReadContractParameters<TAbi, TFunctionName>, config?: {
|
|
10
|
+
readonly timeout?: number;
|
|
11
|
+
readonly logger?: Logger;
|
|
12
|
+
}) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=readContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"readContract.d.ts","sourceRoot":"","sources":["../../../../../src/clients/externals/viem/readContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EACV,GAAG,EACH,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,IAAI,SAAS,EAClB,sBAAsB,IAAI,0BAA0B,EACrD,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAG9C,KAAK,sBAAsB,CACzB,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,aAAa,SAAS,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,IAC/D;IACF,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;IACrC,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;CACrE,CAAA;AAED,eAAO,MAAM,YAAY,oMAKd;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,yDASA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/clients/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAChD,YAAY,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { Logger } from '@0xtorch/core';
|
|
2
|
+
import type { AbiEvent } from 'abitype';
|
|
3
|
+
import type { Abi, Block, ContractFunctionName, FeeValues, GetLogsReturnType, MulticallParameters, MulticallReturnType, ReadContractParameters, ReadContractReturnType, Transaction, TransactionReceipt } from 'viem';
|
|
4
|
+
import type { Hex, LowerHex } from '../types';
|
|
5
|
+
export type Client = {
|
|
6
|
+
readonly httpRpcCount: number;
|
|
7
|
+
readonly estimateFeesPerGas: FunctionEstimateFeesPerGas;
|
|
8
|
+
readonly getBalance: FunctionGetBalance;
|
|
9
|
+
readonly getBlock: FunctionGetBlock;
|
|
10
|
+
readonly getBlockNumber: FunctionGetBlockNumber;
|
|
11
|
+
readonly getEventLogs: FunctionGetEventLogs;
|
|
12
|
+
readonly getTransaction: FunctionGetTransaction;
|
|
13
|
+
readonly getTransactionCount: FunctionGetTransactionCount;
|
|
14
|
+
readonly getTransactionReceipt: FunctionGetTransactionReceipt;
|
|
15
|
+
readonly multicall: FunctionMulticall;
|
|
16
|
+
readonly readContract: FunctionReadContract;
|
|
17
|
+
};
|
|
18
|
+
type FunctionEstimateFeesPerGas = (config?: {
|
|
19
|
+
readonly timeout?: number;
|
|
20
|
+
readonly logger?: Logger;
|
|
21
|
+
}) => Promise<FeeValues>;
|
|
22
|
+
type FunctionGetBalance = (address: LowerHex, config?: {
|
|
23
|
+
readonly timeout?: number;
|
|
24
|
+
readonly logger?: Logger;
|
|
25
|
+
}) => Promise<bigint>;
|
|
26
|
+
type FunctionGetBlock = (blockNumber: bigint, config?: {
|
|
27
|
+
readonly timeout?: number;
|
|
28
|
+
readonly logger?: Logger;
|
|
29
|
+
}) => Promise<Block>;
|
|
30
|
+
type FunctionGetBlockNumber = (config?: {
|
|
31
|
+
readonly timeout?: number;
|
|
32
|
+
readonly logger?: Logger;
|
|
33
|
+
}) => Promise<bigint>;
|
|
34
|
+
type FunctionGetEventLogs = <const TAbiEvent extends AbiEvent>(parameters: {
|
|
35
|
+
readonly contractAddress: LowerHex;
|
|
36
|
+
readonly event: TAbiEvent;
|
|
37
|
+
readonly fromBlock: bigint;
|
|
38
|
+
readonly toBlock: bigint;
|
|
39
|
+
}, config?: {
|
|
40
|
+
readonly timeout?: number;
|
|
41
|
+
readonly logger?: Logger;
|
|
42
|
+
}) => Promise<GetLogsReturnType<TAbiEvent>>;
|
|
43
|
+
type FunctionGetTransaction = (hash: Hex, config?: {
|
|
44
|
+
readonly timeout?: number;
|
|
45
|
+
readonly logger?: Logger;
|
|
46
|
+
}) => Promise<Transaction>;
|
|
47
|
+
type FunctionGetTransactionCount = (address: LowerHex, config?: {
|
|
48
|
+
readonly timeout?: number;
|
|
49
|
+
readonly logger?: Logger;
|
|
50
|
+
}) => Promise<number>;
|
|
51
|
+
type FunctionGetTransactionReceipt = (hash: Hex, config?: {
|
|
52
|
+
readonly timeout?: number;
|
|
53
|
+
readonly logger?: Logger;
|
|
54
|
+
}) => Promise<TransactionReceipt>;
|
|
55
|
+
type FunctionMulticall = <const TContracts extends readonly unknown[]>(parameters: MulticallParameters<TContracts>, config?: {
|
|
56
|
+
readonly timeout?: number;
|
|
57
|
+
readonly logger?: Logger;
|
|
58
|
+
}) => Promise<MulticallReturnType<TContracts>>;
|
|
59
|
+
type FunctionReadContract = <const TAbi extends Abi | readonly unknown[], const TFunctionName extends ContractFunctionName<TAbi, 'pure' | 'view'>>(parameters: ReadContractParameters<TAbi, TFunctionName>, config?: {
|
|
60
|
+
readonly timeout?: number;
|
|
61
|
+
readonly logger?: Logger;
|
|
62
|
+
}) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
|
|
63
|
+
export {};
|
|
64
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/clients/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AACvC,OAAO,KAAK,EACV,GAAG,EACH,KAAK,EACL,oBAAoB,EACpB,SAAS,EACT,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,WAAW,EACX,kBAAkB,EACnB,MAAM,MAAM,CAAA;AACb,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAE7C,MAAM,MAAM,MAAM,GAAG;IACnB,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAE7B,QAAQ,CAAC,kBAAkB,EAAE,0BAA0B,CAAA;IACvD,QAAQ,CAAC,UAAU,EAAE,kBAAkB,CAAA;IACvC,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAA;IACnC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAA;IAC/C,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAA;IAC3C,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAA;IAC/C,QAAQ,CAAC,mBAAmB,EAAE,2BAA2B,CAAA;IACzD,QAAQ,CAAC,qBAAqB,EAAE,6BAA6B,CAAA;IAC7D,QAAQ,CAAC,SAAS,EAAE,iBAAiB,CAAA;IACrC,QAAQ,CAAC,YAAY,EAAE,oBAAoB,CAAA;CAC5C,CAAA;AAED,KAAK,0BAA0B,GAAG,CAAC,MAAM,CAAC,EAAE;IAC1C,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KAAK,OAAO,CAAC,SAAS,CAAC,CAAA;AAExB,KAAK,kBAAkB,GAAG,CACxB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,MAAM,CAAC,CAAA;AAEpB,KAAK,gBAAgB,GAAG,CACtB,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,KAAK,CAAC,CAAA;AAEnB,KAAK,sBAAsB,GAAG,CAAC,MAAM,CAAC,EAAE;IACtC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;AAErB,KAAK,oBAAoB,GAAG,CAAC,KAAK,CAAC,SAAS,SAAS,QAAQ,EAC3D,UAAU,EAAE;IACV,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;IACzB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CACzB,EACD,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAA;AAE1C,KAAK,sBAAsB,GAAG,CAC5B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,WAAW,CAAC,CAAA;AAEzB,KAAK,2BAA2B,GAAG,CACjC,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,MAAM,CAAC,CAAA;AAEpB,KAAK,6BAA6B,GAAG,CACnC,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,kBAAkB,CAAC,CAAA;AAEhC,KAAK,iBAAiB,GAAG,CAAC,KAAK,CAAC,UAAU,SAAS,SAAS,OAAO,EAAE,EACnE,UAAU,EAAE,mBAAmB,CAAC,UAAU,CAAC,EAC3C,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,mBAAmB,CAAC,UAAU,CAAC,CAAC,CAAA;AAE7C,KAAK,oBAAoB,GAAG,CAC1B,KAAK,CAAC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC3C,KAAK,CAAC,aAAa,SAAS,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,EAEvE,UAAU,EAAE,sBAAsB,CAAC,IAAI,EAAE,aAAa,CAAC,EACvD,MAAM,CAAC,EAAE;IACP,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CACzB,KACE,OAAO,CAAC,sBAAsB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBigDecimal.d.mts","sourceRoot":"","sources":["../../src/createBigDecimal.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,gBAAgB,UACpB,MAAM,GAAG,MAAM,GAAG,MAAM,aACpB,MAAM,KAChB,UAOF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createBigDecimal.d.ts","sourceRoot":"","sources":["../../src/createBigDecimal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,gBAAgB,UACpB,MAAM,GAAG,MAAM,GAAG,MAAM,aACpB,MAAM,KAChB,UAOF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createEvmAccount.d.ts","sourceRoot":"","sources":["../../../src/creates/createEvmAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AAE1C,eAAO,MAAM,gBAAgB,YAClB,KAAK,UAAU,EAAE,IAAI,GAAG,UAAU,GAAG,MAAM,CAAC,GAAG;IACtD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CACvB,KACA,UAKD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../src/decoder/decode.ts"],"names":[],"mappings":"AA6BA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAErC,eAAO,MAAM,MAAM,EAAE,MA6IpB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decoder.d.ts","sourceRoot":"","sources":["../../../src/decoder/decoder.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,OAErB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { decoder } from './decoder';
|
|
2
|
+
export { parseErc1155TransferSingleLogs } from './parseErc1155TransferSingleLogs';
|
|
3
|
+
export { parseErc20TransferLogs } from './parseErc20TransferLogs';
|
|
4
|
+
export { parseErc721TransferLogs } from './parseErc721TransferLogs';
|
|
5
|
+
export type { Decoder } from './types';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decoder/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,YAAY,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Log } from 'viem';
|
|
2
|
+
import type { Erc1155Transfer } from '../types';
|
|
3
|
+
export declare const parseErc1155TransferSingleLogs: (chainId: number, logs: readonly Log<bigint, number, false>[]) => readonly Erc1155Transfer[];
|
|
4
|
+
//# sourceMappingURL=parseErc1155TransferSingleLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseErc1155TransferSingleLogs.d.ts","sourceRoot":"","sources":["../../../src/decoder/parseErc1155TransferSingleLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAO/C,eAAO,MAAM,8BAA8B,YAChC,MAAM,QACT,SAAS,IAAI,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAC1C,SAAS,eAAe,EA4BrB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Log } from 'viem';
|
|
2
|
+
import type { Erc20Transfer, LowerHex } from '../types';
|
|
3
|
+
type Erc20TransferLog = Omit<Erc20Transfer, 'token'> & {
|
|
4
|
+
readonly contractAddress: LowerHex;
|
|
5
|
+
};
|
|
6
|
+
export declare const parseErc20TransferLogs: (logs: readonly Log<bigint, number, false>[]) => readonly Erc20TransferLog[];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=parseErc20TransferLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseErc20TransferLogs.d.ts","sourceRoot":"","sources":["../../../src/decoder/parseErc20TransferLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAOvD,KAAK,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,GAAG;IACrD,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,sBAAsB,SAC3B,SAAS,IAAI,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAC1C,SAAS,gBAAgB,EAoBvB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Log } from 'viem';
|
|
2
|
+
import type { Erc721Transfer, LowerHex } from '../types';
|
|
3
|
+
type Erc721TransferLog = Omit<Erc721Transfer, 'token'> & {
|
|
4
|
+
readonly contractAddress: LowerHex;
|
|
5
|
+
};
|
|
6
|
+
export declare const parseErc721TransferLogs: (chainId: number, logs: readonly Log<bigint, number, false>[]) => readonly Erc721TransferLog[];
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=parseErc721TransferLogs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseErc721TransferLogs.d.ts","sourceRoot":"","sources":["../../../src/decoder/parseErc721TransferLogs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,MAAM,CAAA;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAOxD,KAAK,iBAAiB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,CAAC,GAAG;IACvD,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAA;CACnC,CAAA;AAED,eAAO,MAAM,uBAAuB,YACzB,MAAM,QACT,SAAS,IAAI,MAAM,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAC1C,SAAS,iBAAiB,EAwBvB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { Config } from '@0xtorch/core';
|
|
2
|
+
import type { Chain } from '../chains';
|
|
3
|
+
import type { TransactionDecoded, TransactionDetail } from '../types';
|
|
4
|
+
export type Decoder = {
|
|
5
|
+
readonly decode: Decode;
|
|
6
|
+
};
|
|
7
|
+
type DecodeParameters = {
|
|
8
|
+
readonly chain: Chain;
|
|
9
|
+
readonly transactions: readonly TransactionDetail[];
|
|
10
|
+
};
|
|
11
|
+
type DecodeReturnType = {
|
|
12
|
+
readonly transactions: readonly TransactionDecoded<undefined>[];
|
|
13
|
+
};
|
|
14
|
+
export type Decode = (parameters: DecodeParameters, config?: Config) => Promise<DecodeReturnType>;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/decoder/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAA;AAErE,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAA;IACrB,QAAQ,CAAC,YAAY,EAAE,SAAS,iBAAiB,EAAE,CAAA;CACpD,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,QAAQ,CAAC,YAAY,EAAE,SAAS,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAA;CAChE,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,CACnB,UAAU,EAAE,gBAAgB,EAC5B,MAAM,CAAC,EAAE,MAAM,KACZ,OAAO,CAAC,gBAAgB,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divide.d.mts","sourceRoot":"","sources":["../../src/divide.mts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,MAAM,MACd,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAoBF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"divide.d.ts","sourceRoot":"","sources":["../../src/divide.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,MAAM,MACd,UAAU,KACV,UAAU,gBACC,MAAM,aACV,OAAO,GAAG,OAAO,GAAG,MAAM,KACnC,UAoBF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equals.d.mts","sourceRoot":"","sources":["../../src/equals.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE5C,eAAO,MAAM,MAAM,MAAO,UAAU,KAAK,UAAU,KAAG,OAMrD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"equals.d.ts","sourceRoot":"","sources":["../../src/equals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAExC,eAAO,MAAM,MAAM,MAAO,UAAU,KAAK,UAAU,KAAG,OAMrD,CAAA"}
|