@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,182 @@
|
|
|
1
|
+
import { bnb } from '@0xtorch/core'
|
|
2
|
+
import { bsc } from 'viem/chains'
|
|
3
|
+
import type { Client } from '../../clients'
|
|
4
|
+
import { createViemClient } from '../../clients'
|
|
5
|
+
import type { Explorer } from '../../explorers'
|
|
6
|
+
import { createEtherscan } from '../../explorers'
|
|
7
|
+
import type { Chain, HttpRpc } from '../types'
|
|
8
|
+
import { defineChain } from './defineChain'
|
|
9
|
+
|
|
10
|
+
export const createBscChain = (bscscanApiKey: string): Chain =>
|
|
11
|
+
createBscChainCustom({
|
|
12
|
+
client: createViemClient({
|
|
13
|
+
chain: bsc,
|
|
14
|
+
httpRpcs: bscHttpRpcs,
|
|
15
|
+
}),
|
|
16
|
+
explorer: createEtherscan({
|
|
17
|
+
name: 'BscScan',
|
|
18
|
+
url: 'https://bscscan.com',
|
|
19
|
+
apiUrl: 'https://api.bscscan.com/api',
|
|
20
|
+
apiKey: bscscanApiKey,
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
type CreateBscParameters<TClient extends Client, TExplorer extends Explorer> = {
|
|
25
|
+
readonly client: TClient
|
|
26
|
+
readonly explorer: TExplorer
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export const createBscChainCustom = <
|
|
30
|
+
const TClient extends Client,
|
|
31
|
+
const TExplorer extends Explorer,
|
|
32
|
+
>({
|
|
33
|
+
client,
|
|
34
|
+
explorer,
|
|
35
|
+
}: CreateBscParameters<TClient, TExplorer>) =>
|
|
36
|
+
defineChain({
|
|
37
|
+
id: 56,
|
|
38
|
+
network: 'bsc',
|
|
39
|
+
name: 'BNB Smart Chain',
|
|
40
|
+
nativeToken: {
|
|
41
|
+
name: 'BNB',
|
|
42
|
+
symbol: 'BNB',
|
|
43
|
+
decimals: 18,
|
|
44
|
+
currency: bnb,
|
|
45
|
+
},
|
|
46
|
+
explorer,
|
|
47
|
+
client,
|
|
48
|
+
blockTime: 3000,
|
|
49
|
+
coingeckoId: 'binance-smart-chain',
|
|
50
|
+
defillamaId: 'bsc',
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
export const bscHttpRpcs = [
|
|
54
|
+
{
|
|
55
|
+
url: 'https://bsc-dataseed.bnbchain.org/',
|
|
56
|
+
isArchive: true,
|
|
57
|
+
getLogsIsUsable: false,
|
|
58
|
+
getLogsMaxBlockRange: 0n,
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
url: 'https://bsc-dataseed1.defibit.io/',
|
|
62
|
+
isArchive: true,
|
|
63
|
+
getLogsIsUsable: false,
|
|
64
|
+
getLogsMaxBlockRange: 0n,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
url: 'https://bsc-dataseed1.ninicoin.io/',
|
|
68
|
+
isArchive: true,
|
|
69
|
+
getLogsIsUsable: false,
|
|
70
|
+
getLogsMaxBlockRange: 0n,
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
url: 'https://bsc-dataseed2.defibit.io/',
|
|
74
|
+
isArchive: true,
|
|
75
|
+
getLogsIsUsable: false,
|
|
76
|
+
getLogsMaxBlockRange: 0n,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
url: 'https://bsc-dataseed3.defibit.io/',
|
|
80
|
+
isArchive: true,
|
|
81
|
+
getLogsIsUsable: false,
|
|
82
|
+
getLogsMaxBlockRange: 0n,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
url: 'https://bsc-dataseed4.defibit.io/',
|
|
86
|
+
isArchive: true,
|
|
87
|
+
getLogsIsUsable: false,
|
|
88
|
+
getLogsMaxBlockRange: 0n,
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
url: 'https://bsc-dataseed2.ninicoin.io/',
|
|
92
|
+
isArchive: true,
|
|
93
|
+
getLogsIsUsable: false,
|
|
94
|
+
getLogsMaxBlockRange: 0n,
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
url: 'https://bsc-dataseed3.ninicoin.io/',
|
|
98
|
+
isArchive: true,
|
|
99
|
+
getLogsIsUsable: false,
|
|
100
|
+
getLogsMaxBlockRange: 0n,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
url: 'https://bsc-dataseed4.ninicoin.io/',
|
|
104
|
+
isArchive: true,
|
|
105
|
+
getLogsIsUsable: false,
|
|
106
|
+
getLogsMaxBlockRange: 0n,
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
url: 'https://bsc-dataseed1.bnbchain.org/',
|
|
110
|
+
isArchive: true,
|
|
111
|
+
getLogsIsUsable: false,
|
|
112
|
+
getLogsMaxBlockRange: 0n,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
url: 'https://bsc-dataseed2.bnbchain.org/',
|
|
116
|
+
isArchive: true,
|
|
117
|
+
getLogsIsUsable: false,
|
|
118
|
+
getLogsMaxBlockRange: 0n,
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
url: 'https://bsc-dataseed3.bnbchain.org/',
|
|
122
|
+
isArchive: true,
|
|
123
|
+
getLogsIsUsable: false,
|
|
124
|
+
getLogsMaxBlockRange: 0n,
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
url: 'https://bsc-dataseed4.bnbchain.org/',
|
|
128
|
+
isArchive: true,
|
|
129
|
+
getLogsIsUsable: false,
|
|
130
|
+
getLogsMaxBlockRange: 0n,
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
url: 'https://endpoints.omniatech.io/v1/bsc/mainnet/public',
|
|
134
|
+
isArchive: true,
|
|
135
|
+
getLogsIsUsable: true,
|
|
136
|
+
getLogsMaxBlockRange: 3000n,
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
url: 'https://bsc-mainnet.nodereal.io/v1/64a9df0874fb4a93b9d0a3849de012d3',
|
|
140
|
+
isArchive: true,
|
|
141
|
+
getLogsIsUsable: true,
|
|
142
|
+
getLogsMaxBlockRange: 50_000n,
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
url: 'https://rpc.ankr.com/bsc',
|
|
146
|
+
isArchive: true,
|
|
147
|
+
getLogsIsUsable: true,
|
|
148
|
+
getLogsMaxBlockRange: 3000n,
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
url: 'https://bscrpc.com',
|
|
152
|
+
isArchive: true,
|
|
153
|
+
getLogsIsUsable: true,
|
|
154
|
+
getLogsMaxBlockRange: 3000n,
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
url: 'https://binance.nodereal.io',
|
|
158
|
+
isArchive: true,
|
|
159
|
+
getLogsIsUsable: false,
|
|
160
|
+
getLogsMaxBlockRange: 0n,
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
url: 'https://1rpc.io/bnb',
|
|
164
|
+
isArchive: true,
|
|
165
|
+
getLogsIsUsable: true,
|
|
166
|
+
getLogsMaxBlockRange: 2000n,
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
url: 'https://bnb.api.onfinality.io/public',
|
|
170
|
+
isArchive: true,
|
|
171
|
+
getLogsIsUsable: true,
|
|
172
|
+
getLogsMaxBlockRange: 2000n,
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
url: 'https://bsc.drpc.org',
|
|
176
|
+
isArchive: true,
|
|
177
|
+
getLogsIsUsable: true,
|
|
178
|
+
getLogsMaxBlockRange: 5000n,
|
|
179
|
+
},
|
|
180
|
+
] as const satisfies readonly HttpRpc[]
|
|
181
|
+
|
|
182
|
+
export const bscWebsocketRpcUrls = ['wss://bsc.publicnode.com'] as const
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { expect, it } from 'bun:test'
|
|
2
|
+
import { createPublicClient, http } from 'viem'
|
|
3
|
+
import { mainnet } from 'viem/chains'
|
|
4
|
+
import { ethereumHttpRpcs } from './ethereum'
|
|
5
|
+
import { sendMsgEvent as sendMessageEvent } from './tests'
|
|
6
|
+
|
|
7
|
+
it('Should all ethereumHttpRpcs be the rpc url of the archive node', async () => {
|
|
8
|
+
for (const rpc of ethereumHttpRpcs) {
|
|
9
|
+
const { url, isArchive, getLogsIsUsable, getLogsMaxBlockRange } = rpc
|
|
10
|
+
console.debug('Checking >', url)
|
|
11
|
+
const client = createPublicClient({
|
|
12
|
+
chain: mainnet,
|
|
13
|
+
transport: http(url),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
// get latest block number
|
|
17
|
+
const blockNumber = await client.getBlockNumber()
|
|
18
|
+
console.debug('Result getBlockNumber >', blockNumber)
|
|
19
|
+
expect(blockNumber).toBeGreaterThan(0n)
|
|
20
|
+
|
|
21
|
+
// archive
|
|
22
|
+
// - getTransactionReceipt
|
|
23
|
+
// - getBlock
|
|
24
|
+
if (isArchive) {
|
|
25
|
+
const hash =
|
|
26
|
+
'0x194f62e36b7d116de81de26712aded5e054d214fcfc2f44355e584f38f9d2f6f'
|
|
27
|
+
const blockNumber = 18_917_221n
|
|
28
|
+
const receipt = await client.getTransactionReceipt({ hash })
|
|
29
|
+
console.debug('Result getTransactionReceipt >', receipt.status)
|
|
30
|
+
const block = await client.getBlock({ blockNumber })
|
|
31
|
+
console.debug('Result getBlock >', block.timestamp)
|
|
32
|
+
expect(receipt.transactionHash).toEqual(hash)
|
|
33
|
+
expect(block.number).toEqual(blockNumber)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// getLogs
|
|
37
|
+
if (getLogsIsUsable) {
|
|
38
|
+
const toBlock = blockNumber - 5n
|
|
39
|
+
const fromBlock = toBlock - getLogsMaxBlockRange + 1n
|
|
40
|
+
const logs = await client.getLogs({
|
|
41
|
+
address: '0x296f55f8fb28e498b858d0bcda06d955b2cb3f97',
|
|
42
|
+
event: sendMessageEvent,
|
|
43
|
+
fromBlock,
|
|
44
|
+
toBlock,
|
|
45
|
+
})
|
|
46
|
+
console.debug('Result getLogs >', logs.length)
|
|
47
|
+
expect(logs).toBeDefined()
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, 60_000)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { ethereum } from '@0xtorch/core'
|
|
2
|
+
import { mainnet } from 'viem/chains'
|
|
3
|
+
import type { Client } from '../../clients'
|
|
4
|
+
import { createViemClient } from '../../clients'
|
|
5
|
+
import type { Explorer } from '../../explorers'
|
|
6
|
+
import { createEtherscan } from '../../explorers'
|
|
7
|
+
import type { Chain, HttpRpc } from '../types'
|
|
8
|
+
import { defineChain } from './defineChain'
|
|
9
|
+
|
|
10
|
+
export const createEthereumChain = (etherscanApiKey: string): Chain =>
|
|
11
|
+
createEthereumChainCustom({
|
|
12
|
+
client: createViemClient({
|
|
13
|
+
chain: mainnet,
|
|
14
|
+
httpRpcs: ethereumHttpRpcs,
|
|
15
|
+
}),
|
|
16
|
+
explorer: createEtherscan({
|
|
17
|
+
name: 'Etherscan',
|
|
18
|
+
url: 'https://etherscan.io',
|
|
19
|
+
apiUrl: 'https://api.etherscan.io/api',
|
|
20
|
+
apiKey: etherscanApiKey,
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
type CreateEthereumChainParameters<
|
|
25
|
+
TClient extends Client,
|
|
26
|
+
TExplorer extends Explorer,
|
|
27
|
+
> = {
|
|
28
|
+
readonly client: TClient
|
|
29
|
+
readonly explorer: TExplorer
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const createEthereumChainCustom = <
|
|
33
|
+
const TClient extends Client,
|
|
34
|
+
const TExplorer extends Explorer,
|
|
35
|
+
>({
|
|
36
|
+
client,
|
|
37
|
+
explorer,
|
|
38
|
+
}: CreateEthereumChainParameters<TClient, TExplorer>) =>
|
|
39
|
+
defineChain({
|
|
40
|
+
id: 1,
|
|
41
|
+
network: 'ethereum',
|
|
42
|
+
name: 'Ethereum',
|
|
43
|
+
nativeToken: {
|
|
44
|
+
name: 'Ethereum',
|
|
45
|
+
symbol: 'ETH',
|
|
46
|
+
decimals: 18,
|
|
47
|
+
currency: ethereum,
|
|
48
|
+
},
|
|
49
|
+
explorer,
|
|
50
|
+
client,
|
|
51
|
+
blockTime: 12_000,
|
|
52
|
+
coingeckoId: 'ethereum',
|
|
53
|
+
defillamaId: 'ethereum',
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
export const ethereumHttpRpcs = [
|
|
57
|
+
{
|
|
58
|
+
url: 'https://endpoints.omniatech.io/v1/eth/mainnet/public',
|
|
59
|
+
isArchive: true,
|
|
60
|
+
getLogsIsUsable: true,
|
|
61
|
+
getLogsMaxBlockRange: 8000n,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
url: 'https://rpc.ankr.com/eth',
|
|
65
|
+
isArchive: true,
|
|
66
|
+
getLogsIsUsable: true,
|
|
67
|
+
getLogsMaxBlockRange: 3000n,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
url: 'https://go.getblock.io/d7dab8149ec04390aaa923ff2768f914',
|
|
71
|
+
isArchive: true,
|
|
72
|
+
getLogsIsUsable: true,
|
|
73
|
+
getLogsMaxBlockRange: 20_000n,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
url: 'https://eth-mainnet.nodereal.io/v1/1659dfb40aa24bbb8153a677b98064d7',
|
|
77
|
+
isArchive: true,
|
|
78
|
+
getLogsIsUsable: true,
|
|
79
|
+
getLogsMaxBlockRange: 50_000n,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
url: 'https://1rpc.io/eth',
|
|
83
|
+
isArchive: false,
|
|
84
|
+
getLogsIsUsable: false,
|
|
85
|
+
getLogsMaxBlockRange: 0n,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
url: 'https://rpc.mevblocker.io',
|
|
89
|
+
isArchive: true,
|
|
90
|
+
getLogsIsUsable: true,
|
|
91
|
+
getLogsMaxBlockRange: 10_000n,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
url: 'https://rpc.flashbots.net/',
|
|
95
|
+
isArchive: true,
|
|
96
|
+
getLogsIsUsable: true,
|
|
97
|
+
getLogsMaxBlockRange: 40_000n,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
url: 'https://eth-pokt.nodies.app',
|
|
101
|
+
isArchive: true,
|
|
102
|
+
getLogsIsUsable: true,
|
|
103
|
+
getLogsMaxBlockRange: 10_000n,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
url: 'https://ethereum.blockpi.network/v1/rpc/public',
|
|
107
|
+
isArchive: true,
|
|
108
|
+
getLogsIsUsable: true,
|
|
109
|
+
getLogsMaxBlockRange: 1024n,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
url: 'https://eth.api.onfinality.io/public',
|
|
113
|
+
isArchive: true,
|
|
114
|
+
getLogsIsUsable: true,
|
|
115
|
+
getLogsMaxBlockRange: 2000n,
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
url: 'https://core.gashawk.io/rpc',
|
|
119
|
+
isArchive: true,
|
|
120
|
+
getLogsIsUsable: true,
|
|
121
|
+
getLogsMaxBlockRange: 20_000n,
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
url: 'https://rpc.eth.gateway.fm',
|
|
125
|
+
isArchive: true,
|
|
126
|
+
getLogsIsUsable: true,
|
|
127
|
+
getLogsMaxBlockRange: 10_000n,
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
url: 'https://eth.drpc.org',
|
|
131
|
+
isArchive: true,
|
|
132
|
+
getLogsIsUsable: true,
|
|
133
|
+
getLogsMaxBlockRange: 10_000n,
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
url: 'https://mainnet.gateway.tenderly.co',
|
|
137
|
+
isArchive: true,
|
|
138
|
+
getLogsIsUsable: true,
|
|
139
|
+
getLogsMaxBlockRange: 20_000n,
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
url: 'https://gateway.tenderly.co/public/mainnet',
|
|
143
|
+
isArchive: true,
|
|
144
|
+
getLogsIsUsable: true,
|
|
145
|
+
getLogsMaxBlockRange: 20_000n,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
url: 'https://rpc.notadegen.com/eth',
|
|
149
|
+
isArchive: true,
|
|
150
|
+
getLogsIsUsable: true,
|
|
151
|
+
getLogsMaxBlockRange: 20_000n,
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
url: 'https://eth.merkle.io',
|
|
155
|
+
isArchive: true,
|
|
156
|
+
getLogsIsUsable: true,
|
|
157
|
+
getLogsMaxBlockRange: 10_000n,
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
url: 'https://eth.llamarpc.com',
|
|
161
|
+
isArchive: true,
|
|
162
|
+
getLogsIsUsable: true,
|
|
163
|
+
getLogsMaxBlockRange: 20_000n,
|
|
164
|
+
},
|
|
165
|
+
] as const satisfies readonly HttpRpc[]
|
|
166
|
+
|
|
167
|
+
export const ethereumWebsocketRpcUrls = [
|
|
168
|
+
'wss://ethereum.publicnode.com',
|
|
169
|
+
] as const
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { expect, it } from 'bun:test'
|
|
2
|
+
import { createPublicClient, http } from 'viem'
|
|
3
|
+
import { fantom } from 'viem/chains'
|
|
4
|
+
import { fantomHttpRpcs } from './fantom'
|
|
5
|
+
import { sendMsgEvent as sendMessageEvent } from './tests'
|
|
6
|
+
|
|
7
|
+
it('Should all fantomHttpRpcs be the rpc url of the archive node', async () => {
|
|
8
|
+
for (const rpc of fantomHttpRpcs) {
|
|
9
|
+
const { url, isArchive, getLogsIsUsable, getLogsMaxBlockRange } = rpc
|
|
10
|
+
console.debug('Checking >', url)
|
|
11
|
+
const client = createPublicClient({
|
|
12
|
+
chain: fantom,
|
|
13
|
+
transport: http(url),
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
// get latest block number
|
|
17
|
+
const blockNumber = await client.getBlockNumber()
|
|
18
|
+
console.debug('Result getBlockNumber >', blockNumber)
|
|
19
|
+
expect(blockNumber).toBeGreaterThan(0n)
|
|
20
|
+
|
|
21
|
+
// archive
|
|
22
|
+
// - getTransactionReceipt
|
|
23
|
+
// - getBlock
|
|
24
|
+
if (isArchive) {
|
|
25
|
+
const hash =
|
|
26
|
+
'0xe2c22056d5ee8bbdbe29e3794d04f3cf81767376759ccf4e0af2b2b461ca2328'
|
|
27
|
+
const blockNumber = 34_078_237n
|
|
28
|
+
const receipt = await client.getTransactionReceipt({ hash })
|
|
29
|
+
console.debug('Result getTransactionReceipt >', receipt.status)
|
|
30
|
+
const block = await client.getBlock({ blockNumber })
|
|
31
|
+
console.debug('Result getBlock >', block.timestamp)
|
|
32
|
+
expect(receipt.transactionHash).toEqual(hash)
|
|
33
|
+
expect(block.number).toEqual(blockNumber)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// getLogs
|
|
37
|
+
if (getLogsIsUsable) {
|
|
38
|
+
const toBlock = blockNumber - 5n
|
|
39
|
+
const fromBlock = toBlock - getLogsMaxBlockRange + 1n
|
|
40
|
+
const logs = await client.getLogs({
|
|
41
|
+
address: '0x45a01e4e04f14f7a4a6702c74187c5f6222033cd',
|
|
42
|
+
event: sendMessageEvent,
|
|
43
|
+
fromBlock,
|
|
44
|
+
toBlock,
|
|
45
|
+
})
|
|
46
|
+
console.debug('Result getLogs >', logs.length)
|
|
47
|
+
expect(logs).toBeDefined()
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, 60_000)
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { fantom } from '@0xtorch/core'
|
|
2
|
+
import { fantom as viemFantom } from 'viem/chains'
|
|
3
|
+
import type { Client } from '../../clients'
|
|
4
|
+
import { createViemClient } from '../../clients'
|
|
5
|
+
import type { Explorer } from '../../explorers'
|
|
6
|
+
import { createEtherscan } from '../../explorers'
|
|
7
|
+
import type { Chain, HttpRpc } from '../types'
|
|
8
|
+
import { defineChain } from './defineChain'
|
|
9
|
+
|
|
10
|
+
export const createFantomChain = (ftmscanApiKey: string): Chain =>
|
|
11
|
+
createFantomChainCustom({
|
|
12
|
+
client: createViemClient({
|
|
13
|
+
chain: viemFantom,
|
|
14
|
+
httpRpcs: fantomHttpRpcs,
|
|
15
|
+
}),
|
|
16
|
+
explorer: createEtherscan({
|
|
17
|
+
name: 'FTMScan',
|
|
18
|
+
url: 'https://ftmscan.com',
|
|
19
|
+
apiUrl: 'https://api.ftmscan.com/api',
|
|
20
|
+
apiKey: ftmscanApiKey,
|
|
21
|
+
}),
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
type CreateFantomChainParameters<
|
|
25
|
+
TClient extends Client,
|
|
26
|
+
TExplorer extends Explorer,
|
|
27
|
+
> = {
|
|
28
|
+
readonly client: TClient
|
|
29
|
+
readonly explorer: TExplorer
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export const createFantomChainCustom = <
|
|
33
|
+
const TClient extends Client,
|
|
34
|
+
const TExplorer extends Explorer,
|
|
35
|
+
>({
|
|
36
|
+
client,
|
|
37
|
+
explorer,
|
|
38
|
+
}: CreateFantomChainParameters<TClient, TExplorer>) =>
|
|
39
|
+
defineChain({
|
|
40
|
+
id: 250,
|
|
41
|
+
network: 'fantom',
|
|
42
|
+
name: 'Fantom',
|
|
43
|
+
nativeToken: {
|
|
44
|
+
name: 'Fantom',
|
|
45
|
+
symbol: 'FTM',
|
|
46
|
+
decimals: 18,
|
|
47
|
+
currency: fantom,
|
|
48
|
+
},
|
|
49
|
+
explorer,
|
|
50
|
+
client,
|
|
51
|
+
blockTime: undefined,
|
|
52
|
+
coingeckoId: 'fantom',
|
|
53
|
+
defillamaId: 'fantom',
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
export const fantomHttpRpcs = [
|
|
57
|
+
{
|
|
58
|
+
url: 'https://rpc.ankr.com/fantom/',
|
|
59
|
+
isArchive: true,
|
|
60
|
+
getLogsIsUsable: true,
|
|
61
|
+
getLogsMaxBlockRange: 3000n,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
url: 'https://rpcapi.fantom.network',
|
|
65
|
+
isArchive: true,
|
|
66
|
+
getLogsIsUsable: true,
|
|
67
|
+
getLogsMaxBlockRange: 20_000n,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
url: 'https://rpc.ftm.tools/',
|
|
71
|
+
isArchive: true,
|
|
72
|
+
getLogsIsUsable: true,
|
|
73
|
+
getLogsMaxBlockRange: 3000n,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
url: 'https://1rpc.io/ftm',
|
|
77
|
+
isArchive: true,
|
|
78
|
+
getLogsIsUsable: true,
|
|
79
|
+
getLogsMaxBlockRange: 10_000n,
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
url: 'https://fantom.publicnode.com/',
|
|
83
|
+
isArchive: true,
|
|
84
|
+
getLogsIsUsable: true,
|
|
85
|
+
getLogsMaxBlockRange: 40_000n,
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
url: 'https://fantom.blockpi.network/v1/rpc/public',
|
|
89
|
+
isArchive: true,
|
|
90
|
+
getLogsIsUsable: true,
|
|
91
|
+
getLogsMaxBlockRange: 1024n,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
url: 'https://fantom.drpc.org/',
|
|
95
|
+
isArchive: true,
|
|
96
|
+
getLogsIsUsable: true,
|
|
97
|
+
getLogsMaxBlockRange: 4000n,
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
url: 'https://endpoints.omniatech.io/v1/fantom/mainnet/public',
|
|
101
|
+
isArchive: true,
|
|
102
|
+
getLogsIsUsable: true,
|
|
103
|
+
getLogsMaxBlockRange: 3000n,
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
url: 'https://fantom.rpc.thirdweb.com/',
|
|
107
|
+
isArchive: true,
|
|
108
|
+
getLogsIsUsable: true,
|
|
109
|
+
getLogsMaxBlockRange: 50_000n,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
url: 'https://fantom-pokt.nodies.app',
|
|
113
|
+
isArchive: true,
|
|
114
|
+
getLogsIsUsable: true,
|
|
115
|
+
getLogsMaxBlockRange: 50_000n,
|
|
116
|
+
},
|
|
117
|
+
] as const satisfies readonly HttpRpc[]
|
|
118
|
+
|
|
119
|
+
export const fantomWebsocketRpcUrls = [
|
|
120
|
+
'wss://wsapi.fantom.network/',
|
|
121
|
+
'wss://fantom-mainnet.public.blastapi.io/',
|
|
122
|
+
'wss://fantom.publicnode.com',
|
|
123
|
+
] as const
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export {
|
|
2
|
+
arbitrumOneHttpRpcs,
|
|
3
|
+
arbitrumOneWebsocketRpcUrls,
|
|
4
|
+
createArbitrumOneChain,
|
|
5
|
+
createArbitrumOneChainCustom,
|
|
6
|
+
} from './arbitrumOne'
|
|
7
|
+
export {
|
|
8
|
+
astarHttpRpcs,
|
|
9
|
+
astarWebsocketRpcUrls,
|
|
10
|
+
createAstarChain,
|
|
11
|
+
createAstarChainCustom,
|
|
12
|
+
} from './astar'
|
|
13
|
+
export {
|
|
14
|
+
avalancheCHttpRpcs,
|
|
15
|
+
avalancheCWebsocketRpcUrls,
|
|
16
|
+
createAvalancheCChain,
|
|
17
|
+
createAvalancheCChainCustom,
|
|
18
|
+
} from './avalancheC'
|
|
19
|
+
export {
|
|
20
|
+
baseHttpRpcs,
|
|
21
|
+
baseWebsocketRpcUrls,
|
|
22
|
+
createBaseChain,
|
|
23
|
+
createBaseChainCustom,
|
|
24
|
+
} from './base'
|
|
25
|
+
export {
|
|
26
|
+
bscHttpRpcs,
|
|
27
|
+
bscWebsocketRpcUrls,
|
|
28
|
+
createBscChain,
|
|
29
|
+
createBscChainCustom,
|
|
30
|
+
} from './bsc'
|
|
31
|
+
export {
|
|
32
|
+
createEthereumChain,
|
|
33
|
+
createEthereumChainCustom,
|
|
34
|
+
ethereumHttpRpcs,
|
|
35
|
+
ethereumWebsocketRpcUrls,
|
|
36
|
+
} from './ethereum'
|
|
37
|
+
export {
|
|
38
|
+
createFantomChain,
|
|
39
|
+
createFantomChainCustom,
|
|
40
|
+
fantomHttpRpcs,
|
|
41
|
+
fantomWebsocketRpcUrls,
|
|
42
|
+
} from './fantom'
|
|
43
|
+
export {
|
|
44
|
+
createLineaChain,
|
|
45
|
+
createLineaChainCustom,
|
|
46
|
+
lineaHttpRpcs,
|
|
47
|
+
lineaWebsocketRpcUrls,
|
|
48
|
+
} from './linea'
|
|
49
|
+
export {
|
|
50
|
+
createMantleChainCustom,
|
|
51
|
+
mantleHttpRpcs,
|
|
52
|
+
mantleWebsocketRpcUrls,
|
|
53
|
+
} from './mantle'
|
|
54
|
+
export {
|
|
55
|
+
createMetisChainCustom,
|
|
56
|
+
metisHttpRpcs,
|
|
57
|
+
metisWebsocketRpcUrls,
|
|
58
|
+
} from './metis'
|
|
59
|
+
export {
|
|
60
|
+
createMoonbeamChain,
|
|
61
|
+
createMoonbeamChainCustom,
|
|
62
|
+
moonbeamHttpRpcs,
|
|
63
|
+
moonbeamWebsocketRpcUrls,
|
|
64
|
+
} from './moonbeam'
|
|
65
|
+
export {
|
|
66
|
+
createMoonriverChain,
|
|
67
|
+
createMoonriverChainCustom,
|
|
68
|
+
moonriverHttpRpcs,
|
|
69
|
+
moonriverWebsocketRpcUrls,
|
|
70
|
+
} from './moonriver'
|
|
71
|
+
export {
|
|
72
|
+
createOptimismChain,
|
|
73
|
+
createOptimismChainCustom,
|
|
74
|
+
optimismHttpRpcs,
|
|
75
|
+
optimismWebsocketRpcUrls,
|
|
76
|
+
} from './optimism'
|
|
77
|
+
export {
|
|
78
|
+
createPolygonPosChain,
|
|
79
|
+
createPolygonPosChainCustom,
|
|
80
|
+
polygonPosHttpRpcs,
|
|
81
|
+
polygonPosWebsocketRpcUrls,
|
|
82
|
+
} from './polygonPos'
|
|
83
|
+
export {
|
|
84
|
+
createRoninChain,
|
|
85
|
+
createRoninChainCustom,
|
|
86
|
+
roninHttpRpcs,
|
|
87
|
+
roninWebsocketRpcUrls,
|
|
88
|
+
} from './ronin'
|