viem 2.0.0-beta.2 → 2.0.0-beta.3
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/_cjs/errors/version.js +1 -1
- package/_esm/chains/celo/chainConfig.js +7 -0
- package/_esm/chains/celo/chainConfig.js.map +1 -0
- package/_esm/chains/celo/formatters.js +1 -1
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/index.js +4 -0
- package/_esm/chains/celo/index.js.map +1 -0
- package/_esm/chains/celo/parsers.js +3 -3
- package/_esm/chains/celo/parsers.js.map +1 -1
- package/_esm/chains/celo/serializers.js +5 -5
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/definitions/base.js +3 -2
- package/_esm/chains/definitions/base.js.map +1 -1
- package/_esm/chains/definitions/baseGoerli.js +4 -3
- package/_esm/chains/definitions/baseGoerli.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +4 -3
- package/_esm/chains/definitions/baseSepolia.js.map +1 -1
- package/_esm/chains/definitions/celo.js +2 -4
- package/_esm/chains/definitions/celo.js.map +1 -1
- package/_esm/chains/definitions/celoAlfajores.js +2 -4
- package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
- package/_esm/chains/definitions/celoCannoli.js +2 -4
- package/_esm/chains/definitions/celoCannoli.js.map +1 -1
- package/_esm/chains/definitions/optimism.js +3 -2
- package/_esm/chains/definitions/optimism.js.map +1 -1
- package/_esm/chains/definitions/optimismGoerli.js +3 -2
- package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
- package/_esm/chains/definitions/optimismSepolia.js +3 -2
- package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
- package/_esm/chains/definitions/zkSync.js +2 -4
- package/_esm/chains/definitions/zkSync.js.map +1 -1
- package/_esm/chains/definitions/zkSyncTestnet.js +2 -4
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zora.js +3 -2
- package/_esm/chains/definitions/zora.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +3 -2
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -1
- package/_esm/chains/definitions/zoraTestnet.js +3 -2
- package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
- package/_esm/chains/opStack/abis.js +74 -0
- package/_esm/chains/opStack/abis.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractL1Fee.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractL1Fee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractL1Gas.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractL1Gas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractTotalFee.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractTotalFee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateContractTotalGas.js +55 -0
- package/_esm/chains/opStack/actions/estimateContractTotalGas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateL1Fee.js +74 -0
- package/_esm/chains/opStack/actions/estimateL1Fee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateL1Gas.js +74 -0
- package/_esm/chains/opStack/actions/estimateL1Gas.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateTotalFee.js +38 -0
- package/_esm/chains/opStack/actions/estimateTotalFee.js.map +1 -0
- package/_esm/chains/opStack/actions/estimateTotalGas.js +36 -0
- package/_esm/chains/opStack/actions/estimateTotalGas.js.map +1 -0
- package/_esm/chains/opStack/chainConfig.js +7 -0
- package/_esm/chains/opStack/chainConfig.js.map +1 -0
- package/_esm/chains/opStack/contracts.js +13 -0
- package/_esm/chains/opStack/contracts.js.map +1 -0
- package/_esm/chains/opStack/decorators/public.js +23 -0
- package/_esm/chains/opStack/decorators/public.js.map +1 -0
- package/_esm/chains/{optimism → opStack}/formatters.js +1 -1
- package/_esm/chains/opStack/formatters.js.map +1 -0
- package/_esm/chains/opStack/index.js +20 -0
- package/_esm/chains/opStack/index.js.map +1 -0
- package/{_cjs/accounts → _esm/chains/opStack}/types.js.map +1 -1
- package/_esm/chains/utils.js +0 -5
- package/_esm/chains/utils.js.map +1 -1
- package/_esm/chains/zksync/chainConfig.js +7 -0
- package/_esm/chains/zksync/chainConfig.js.map +1 -0
- package/_esm/chains/zksync/formatters.js +2 -2
- package/_esm/chains/zksync/formatters.js.map +1 -1
- package/_esm/chains/zksync/index.js +3 -0
- package/_esm/chains/zksync/index.js.map +1 -0
- package/_esm/chains/zksync/serializers.js +7 -7
- package/_esm/chains/zksync/serializers.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/celo/chainConfig.d.ts +884 -0
- package/_types/chains/celo/chainConfig.d.ts.map +1 -0
- package/_types/chains/celo/formatters.d.ts +92 -92
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/index.d.ts +5 -0
- package/_types/chains/celo/index.d.ts.map +1 -0
- package/_types/chains/celo/parsers.d.ts +3 -3
- package/_types/chains/celo/parsers.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +2 -2
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +92 -74
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +92 -74
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +94 -82
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +97 -97
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +97 -97
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +97 -97
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +92 -74
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +92 -74
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +92 -74
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zkSync.d.ts +13 -13
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +13 -13
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +92 -74
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +92 -74
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +92 -74
- package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
- package/_types/chains/opStack/abis.d.ts +114 -0
- package/_types/chains/opStack/abis.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractL1Fee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractL1Gas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractTotalFee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts +39 -0
- package/_types/chains/opStack/actions/estimateContractTotalGas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts +43 -0
- package/_types/chains/opStack/actions/estimateL1Fee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts +43 -0
- package/_types/chains/opStack/actions/estimateL1Gas.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateTotalFee.d.ts +37 -0
- package/_types/chains/opStack/actions/estimateTotalFee.d.ts.map +1 -0
- package/_types/chains/opStack/actions/estimateTotalGas.d.ts +36 -0
- package/_types/chains/opStack/actions/estimateTotalGas.d.ts.map +1 -0
- package/_types/chains/opStack/chainConfig.d.ts +521 -0
- package/_types/chains/opStack/chainConfig.d.ts.map +1 -0
- package/_types/chains/opStack/contracts.d.ts +21 -0
- package/_types/chains/opStack/contracts.d.ts.map +1 -0
- package/_types/chains/opStack/decorators/public.d.ts +214 -0
- package/_types/chains/opStack/decorators/public.d.ts.map +1 -0
- package/_types/chains/{optimism → opStack}/formatters.d.ts +76 -76
- package/_types/chains/{optimism → opStack}/formatters.d.ts.map +1 -1
- package/_types/chains/opStack/index.d.ts +21 -0
- package/_types/chains/opStack/index.d.ts.map +1 -0
- package/_types/chains/opStack/types.d.ts +53 -0
- package/_types/chains/opStack/types.d.ts.map +1 -0
- package/_types/chains/utils.d.ts +0 -8
- package/_types/chains/utils.d.ts.map +1 -1
- package/_types/chains/zksync/chainConfig.d.ts +490 -0
- package/_types/chains/zksync/chainConfig.d.ts.map +1 -0
- package/_types/chains/zksync/formatters.d.ts +1 -1
- package/_types/chains/zksync/formatters.d.ts.map +1 -1
- package/_types/chains/zksync/index.d.ts +4 -0
- package/_types/chains/zksync/index.d.ts.map +1 -0
- package/_types/chains/zksync/serializers.d.ts +2 -2
- package/_types/chains/zksync/serializers.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/chains/celo/chainConfig.ts +7 -0
- package/chains/celo/formatters.ts +1 -1
- package/chains/celo/index.ts +35 -0
- package/chains/celo/package.json +6 -0
- package/chains/celo/parsers.ts +10 -12
- package/chains/celo/serializers.ts +5 -5
- package/chains/definitions/base.ts +3 -2
- package/chains/definitions/baseGoerli.ts +3 -2
- package/chains/definitions/baseSepolia.ts +3 -2
- package/chains/definitions/celo.ts +2 -4
- package/chains/definitions/celoAlfajores.ts +2 -4
- package/chains/definitions/celoCannoli.ts +2 -4
- package/chains/definitions/optimism.ts +3 -2
- package/chains/definitions/optimismGoerli.ts +3 -2
- package/chains/definitions/optimismSepolia.ts +3 -2
- package/chains/definitions/zkSync.ts +2 -4
- package/chains/definitions/zkSyncTestnet.ts +2 -4
- package/chains/definitions/zora.ts +3 -2
- package/chains/definitions/zoraSepolia.ts +3 -2
- package/chains/definitions/zoraTestnet.ts +3 -2
- package/chains/opStack/abis.ts +73 -0
- package/chains/opStack/actions/estimateContractL1Fee.ts +142 -0
- package/chains/opStack/actions/estimateContractL1Gas.ts +142 -0
- package/chains/opStack/actions/estimateContractTotalFee.ts +144 -0
- package/chains/opStack/actions/estimateContractTotalGas.ts +144 -0
- package/chains/opStack/actions/estimateL1Fee.ts +138 -0
- package/chains/opStack/actions/estimateL1Gas.ts +138 -0
- package/chains/opStack/actions/estimateTotalFee.ts +86 -0
- package/chains/opStack/actions/estimateTotalGas.ts +80 -0
- package/chains/opStack/chainConfig.ts +7 -0
- package/chains/opStack/contracts.ts +14 -0
- package/chains/opStack/decorators/public.ts +337 -0
- package/chains/{optimism → opStack}/formatters.ts +17 -17
- package/chains/opStack/index.ts +77 -0
- package/chains/opStack/package.json +6 -0
- package/chains/{optimism → opStack}/types.ts +20 -20
- package/chains/utils.ts +0 -83
- package/chains/zksync/chainConfig.ts +7 -0
- package/chains/zksync/formatters.ts +2 -2
- package/chains/zksync/index.ts +33 -0
- package/chains/zksync/package.json +6 -0
- package/chains/zksync/serializers.ts +7 -9
- package/errors/version.ts +1 -1
- package/package.json +26 -34
- package/_cjs/accounts/generateMnemonic.js +0 -9
- package/_cjs/accounts/generateMnemonic.js.map +0 -1
- package/_cjs/accounts/generatePrivateKey.js +0 -10
- package/_cjs/accounts/generatePrivateKey.js.map +0 -1
- package/_cjs/accounts/hdKeyToAccount.js +0 -16
- package/_cjs/accounts/hdKeyToAccount.js.map +0 -1
- package/_cjs/accounts/index.js +0 -52
- package/_cjs/accounts/index.js.map +0 -1
- package/_cjs/accounts/mnemonicToAccount.js +0 -12
- package/_cjs/accounts/mnemonicToAccount.js.map +0 -1
- package/_cjs/accounts/privateKeyToAccount.js +0 -33
- package/_cjs/accounts/privateKeyToAccount.js.map +0 -1
- package/_cjs/accounts/toAccount.js +0 -27
- package/_cjs/accounts/toAccount.js.map +0 -1
- package/_cjs/accounts/types.js +0 -3
- package/_cjs/accounts/utils/parseAccount.js +0 -10
- package/_cjs/accounts/utils/parseAccount.js.map +0 -1
- package/_cjs/accounts/utils/privateKeyToAddress.js +0 -12
- package/_cjs/accounts/utils/privateKeyToAddress.js.map +0 -1
- package/_cjs/accounts/utils/publicKeyToAddress.js +0 -11
- package/_cjs/accounts/utils/publicKeyToAddress.js.map +0 -1
- package/_cjs/accounts/utils/sign.js +0 -15
- package/_cjs/accounts/utils/sign.js.map +0 -1
- package/_cjs/accounts/utils/signMessage.js +0 -12
- package/_cjs/accounts/utils/signMessage.js.map +0 -1
- package/_cjs/accounts/utils/signTransaction.js +0 -15
- package/_cjs/accounts/utils/signTransaction.js.map +0 -1
- package/_cjs/accounts/utils/signTypedData.js +0 -16
- package/_cjs/accounts/utils/signTypedData.js.map +0 -1
- package/_cjs/actions/ens/getEnsAddress.js +0 -63
- package/_cjs/actions/ens/getEnsAddress.js.map +0 -1
- package/_cjs/actions/ens/getEnsAvatar.js +0 -25
- package/_cjs/actions/ens/getEnsAvatar.js.map +0 -1
- package/_cjs/actions/ens/getEnsName.js +0 -41
- package/_cjs/actions/ens/getEnsName.js.map +0 -1
- package/_cjs/actions/ens/getEnsResolver.js +0 -39
- package/_cjs/actions/ens/getEnsResolver.js.map +0 -1
- package/_cjs/actions/ens/getEnsText.js +0 -57
- package/_cjs/actions/ens/getEnsText.js.map +0 -1
- package/_cjs/actions/getContract.js +0 -184
- package/_cjs/actions/getContract.js.map +0 -1
- package/_cjs/actions/index.js +0 -167
- package/_cjs/actions/index.js.map +0 -1
- package/_cjs/actions/public/call.js +0 -156
- package/_cjs/actions/public/call.js.map +0 -1
- package/_cjs/actions/public/createBlockFilter.js +0 -15
- package/_cjs/actions/public/createBlockFilter.js.map +0 -1
- package/_cjs/actions/public/createContractEventFilter.js +0 -41
- package/_cjs/actions/public/createContractEventFilter.js.map +0 -1
- package/_cjs/actions/public/createEventFilter.js +0 -48
- package/_cjs/actions/public/createEventFilter.js.map +0 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js +0 -15
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +0 -1
- package/_cjs/actions/public/estimateContractGas.js +0 -37
- package/_cjs/actions/public/estimateContractGas.js.map +0 -1
- package/_cjs/actions/public/estimateFeesPerGas.js +0 -62
- package/_cjs/actions/public/estimateFeesPerGas.js.map +0 -1
- package/_cjs/actions/public/estimateGas.js +0 -56
- package/_cjs/actions/public/estimateGas.js.map +0 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +0 -45
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +0 -1
- package/_cjs/actions/public/getBalance.js +0 -14
- package/_cjs/actions/public/getBalance.js.map +0 -1
- package/_cjs/actions/public/getBlock.js +0 -30
- package/_cjs/actions/public/getBlock.js.map +0 -1
- package/_cjs/actions/public/getBlockNumber.js +0 -17
- package/_cjs/actions/public/getBlockNumber.js.map +0 -1
- package/_cjs/actions/public/getBlockTransactionCount.js +0 -24
- package/_cjs/actions/public/getBlockTransactionCount.js.map +0 -1
- package/_cjs/actions/public/getBytecode.js +0 -16
- package/_cjs/actions/public/getBytecode.js.map +0 -1
- package/_cjs/actions/public/getChainId.js +0 -12
- package/_cjs/actions/public/getChainId.js.map +0 -1
- package/_cjs/actions/public/getContractEvents.js +0 -27
- package/_cjs/actions/public/getContractEvents.js.map +0 -1
- package/_cjs/actions/public/getFeeHistory.js +0 -19
- package/_cjs/actions/public/getFeeHistory.js.map +0 -1
- package/_cjs/actions/public/getFilterChanges.js +0 -44
- package/_cjs/actions/public/getFilterChanges.js.map +0 -1
- package/_cjs/actions/public/getFilterLogs.js +0 -42
- package/_cjs/actions/public/getFilterLogs.js.map +0 -1
- package/_cjs/actions/public/getGasPrice.js +0 -11
- package/_cjs/actions/public/getGasPrice.js.map +0 -1
- package/_cjs/actions/public/getLogs.js +0 -73
- package/_cjs/actions/public/getLogs.js.map +0 -1
- package/_cjs/actions/public/getProof.js +0 -16
- package/_cjs/actions/public/getProof.js.map +0 -1
- package/_cjs/actions/public/getStorageAt.js +0 -14
- package/_cjs/actions/public/getStorageAt.js.map +0 -1
- package/_cjs/actions/public/getTransaction.js +0 -41
- package/_cjs/actions/public/getTransaction.js.map +0 -1
- package/_cjs/actions/public/getTransactionConfirmations.js +0 -18
- package/_cjs/actions/public/getTransactionConfirmations.js.map +0 -1
- package/_cjs/actions/public/getTransactionCount.js +0 -14
- package/_cjs/actions/public/getTransactionCount.js.map +0 -1
- package/_cjs/actions/public/getTransactionReceipt.js +0 -18
- package/_cjs/actions/public/getTransactionReceipt.js.map +0 -1
- package/_cjs/actions/public/multicall.js +0 -135
- package/_cjs/actions/public/multicall.js.map +0 -1
- package/_cjs/actions/public/readContract.js +0 -40
- package/_cjs/actions/public/readContract.js.map +0 -1
- package/_cjs/actions/public/simulateContract.js +0 -56
- package/_cjs/actions/public/simulateContract.js.map +0 -1
- package/_cjs/actions/public/uninstallFilter.js +0 -11
- package/_cjs/actions/public/uninstallFilter.js.map +0 -1
- package/_cjs/actions/public/verifyHash.js +0 -32
- package/_cjs/actions/public/verifyHash.js.map +0 -1
- package/_cjs/actions/public/verifyMessage.js +0 -16
- package/_cjs/actions/public/verifyMessage.js.map +0 -1
- package/_cjs/actions/public/verifyTypedData.js +0 -16
- package/_cjs/actions/public/verifyTypedData.js.map +0 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js +0 -119
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +0 -1
- package/_cjs/actions/public/watchBlockNumber.js +0 -78
- package/_cjs/actions/public/watchBlockNumber.js.map +0 -1
- package/_cjs/actions/public/watchBlocks.js +0 -90
- package/_cjs/actions/public/watchBlocks.js.map +0 -1
- package/_cjs/actions/public/watchContractEvent.js +0 -162
- package/_cjs/actions/public/watchContractEvent.js.map +0 -1
- package/_cjs/actions/public/watchEvent.js +0 -161
- package/_cjs/actions/public/watchEvent.js.map +0 -1
- package/_cjs/actions/public/watchPendingTransactions.js +0 -88
- package/_cjs/actions/public/watchPendingTransactions.js.map +0 -1
- package/_cjs/actions/test/dropTransaction.js +0 -11
- package/_cjs/actions/test/dropTransaction.js.map +0 -1
- package/_cjs/actions/test/getAutomine.js +0 -14
- package/_cjs/actions/test/getAutomine.js.map +0 -1
- package/_cjs/actions/test/getTxpoolContent.js +0 -10
- package/_cjs/actions/test/getTxpoolContent.js.map +0 -1
- package/_cjs/actions/test/getTxpoolStatus.js +0 -15
- package/_cjs/actions/test/getTxpoolStatus.js.map +0 -1
- package/_cjs/actions/test/impersonateAccount.js +0 -11
- package/_cjs/actions/test/impersonateAccount.js.map +0 -1
- package/_cjs/actions/test/increaseTime.js +0 -12
- package/_cjs/actions/test/increaseTime.js.map +0 -1
- package/_cjs/actions/test/inspectTxpool.js +0 -10
- package/_cjs/actions/test/inspectTxpool.js.map +0 -1
- package/_cjs/actions/test/mine.js +0 -18
- package/_cjs/actions/test/mine.js.map +0 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js +0 -10
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +0 -1
- package/_cjs/actions/test/reset.js +0 -11
- package/_cjs/actions/test/reset.js.map +0 -1
- package/_cjs/actions/test/revert.js +0 -11
- package/_cjs/actions/test/revert.js.map +0 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js +0 -30
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +0 -1
- package/_cjs/actions/test/setAutomine.js +0 -18
- package/_cjs/actions/test/setAutomine.js.map +0 -1
- package/_cjs/actions/test/setBalance.js +0 -18
- package/_cjs/actions/test/setBalance.js.map +0 -1
- package/_cjs/actions/test/setBlockGasLimit.js +0 -12
- package/_cjs/actions/test/setBlockGasLimit.js.map +0 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js +0 -16
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +0 -1
- package/_cjs/actions/test/setCode.js +0 -11
- package/_cjs/actions/test/setCode.js.map +0 -1
- package/_cjs/actions/test/setCoinbase.js +0 -11
- package/_cjs/actions/test/setCoinbase.js.map +0 -1
- package/_cjs/actions/test/setIntervalMining.js +0 -16
- package/_cjs/actions/test/setIntervalMining.js.map +0 -1
- package/_cjs/actions/test/setLoggingEnabled.js +0 -11
- package/_cjs/actions/test/setLoggingEnabled.js.map +0 -1
- package/_cjs/actions/test/setMinGasPrice.js +0 -12
- package/_cjs/actions/test/setMinGasPrice.js.map +0 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js +0 -12
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +0 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js +0 -12
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +0 -1
- package/_cjs/actions/test/setNonce.js +0 -12
- package/_cjs/actions/test/setNonce.js.map +0 -1
- package/_cjs/actions/test/setRpcUrl.js +0 -11
- package/_cjs/actions/test/setRpcUrl.js.map +0 -1
- package/_cjs/actions/test/setStorageAt.js +0 -16
- package/_cjs/actions/test/setStorageAt.js.map +0 -1
- package/_cjs/actions/test/snapshot.js +0 -10
- package/_cjs/actions/test/snapshot.js.map +0 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js +0 -11
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +0 -1
- package/_cjs/actions/wallet/addChain.js +0 -23
- package/_cjs/actions/wallet/addChain.js.map +0 -1
- package/_cjs/actions/wallet/deployContract.js +0 -15
- package/_cjs/actions/wallet/deployContract.js.map +0 -1
- package/_cjs/actions/wallet/getAddresses.js +0 -12
- package/_cjs/actions/wallet/getAddresses.js.map +0 -1
- package/_cjs/actions/wallet/getPermissions.js +0 -9
- package/_cjs/actions/wallet/getPermissions.js.map +0 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +0 -71
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +0 -1
- package/_cjs/actions/wallet/requestAddresses.js +0 -10
- package/_cjs/actions/wallet/requestAddresses.js.map +0 -1
- package/_cjs/actions/wallet/requestPermissions.js +0 -11
- package/_cjs/actions/wallet/requestPermissions.js.map +0 -1
- package/_cjs/actions/wallet/sendRawTransaction.js +0 -11
- package/_cjs/actions/wallet/sendRawTransaction.js.map +0 -1
- package/_cjs/actions/wallet/sendTransaction.js +0 -87
- package/_cjs/actions/wallet/sendTransaction.js.map +0 -1
- package/_cjs/actions/wallet/signMessage.js +0 -28
- package/_cjs/actions/wallet/signMessage.js.map +0 -1
- package/_cjs/actions/wallet/signTransaction.js +0 -48
- package/_cjs/actions/wallet/signTransaction.js.map +0 -1
- package/_cjs/actions/wallet/signTypedData.js +0 -30
- package/_cjs/actions/wallet/signTypedData.js.map +0 -1
- package/_cjs/actions/wallet/switchChain.js +0 -16
- package/_cjs/actions/wallet/switchChain.js.map +0 -1
- package/_cjs/actions/wallet/watchAsset.js +0 -12
- package/_cjs/actions/wallet/watchAsset.js.map +0 -1
- package/_cjs/actions/wallet/writeContract.js +0 -18
- package/_cjs/actions/wallet/writeContract.js.map +0 -1
- package/_cjs/chains/celo/formatters.js +0 -82
- package/_cjs/chains/celo/formatters.js.map +0 -1
- package/_cjs/chains/celo/parsers.js +0 -131
- package/_cjs/chains/celo/parsers.js.map +0 -1
- package/_cjs/chains/celo/serializers.js +0 -131
- package/_cjs/chains/celo/serializers.js.map +0 -1
- package/_cjs/chains/celo/types.js +0 -3
- package/_cjs/chains/celo/types.js.map +0 -1
- package/_cjs/chains/celo/utils.js +0 -44
- package/_cjs/chains/celo/utils.js.map +0 -1
- package/_cjs/chains/definitions/arbitrum.js +0 -24
- package/_cjs/chains/definitions/arbitrum.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumGoerli.js +0 -30
- package/_cjs/chains/definitions/arbitrumGoerli.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumNova.js +0 -24
- package/_cjs/chains/definitions/arbitrumNova.js.map +0 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +0 -32
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +0 -1
- package/_cjs/chains/definitions/astar.js +0 -29
- package/_cjs/chains/definitions/astar.js.map +0 -1
- package/_cjs/chains/definitions/astarZkatana.js +0 -42
- package/_cjs/chains/definitions/astarZkatana.js.map +0 -1
- package/_cjs/chains/definitions/aurora.js +0 -20
- package/_cjs/chains/definitions/aurora.js.map +0 -1
- package/_cjs/chains/definitions/auroraTestnet.js +0 -21
- package/_cjs/chains/definitions/auroraTestnet.js.map +0 -1
- package/_cjs/chains/definitions/avalanche.js +0 -26
- package/_cjs/chains/definitions/avalanche.js.map +0 -1
- package/_cjs/chains/definitions/avalancheFuji.js +0 -27
- package/_cjs/chains/definitions/avalancheFuji.js.map +0 -1
- package/_cjs/chains/definitions/base.js +0 -29
- package/_cjs/chains/definitions/base.js.map +0 -1
- package/_cjs/chains/definitions/baseGoerli.js +0 -29
- package/_cjs/chains/definitions/baseGoerli.js.map +0 -1
- package/_cjs/chains/definitions/baseSepolia.js +0 -33
- package/_cjs/chains/definitions/baseSepolia.js.map +0 -1
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js +0 -20
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +0 -1
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js +0 -24
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +0 -1
- package/_cjs/chains/definitions/boba.js +0 -26
- package/_cjs/chains/definitions/boba.js.map +0 -1
- package/_cjs/chains/definitions/bronos.js +0 -20
- package/_cjs/chains/definitions/bronos.js.map +0 -1
- package/_cjs/chains/definitions/bronosTestnet.js +0 -21
- package/_cjs/chains/definitions/bronosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/bsc.js +0 -26
- package/_cjs/chains/definitions/bsc.js.map +0 -1
- package/_cjs/chains/definitions/bscTestnet.js +0 -27
- package/_cjs/chains/definitions/bscTestnet.js.map +0 -1
- package/_cjs/chains/definitions/bxn.js +0 -21
- package/_cjs/chains/definitions/bxn.js.map +0 -1
- package/_cjs/chains/definitions/bxnTestnet.js +0 -25
- package/_cjs/chains/definitions/bxnTestnet.js.map +0 -1
- package/_cjs/chains/definitions/canto.js +0 -29
- package/_cjs/chains/definitions/canto.js.map +0 -1
- package/_cjs/chains/definitions/celo.js +0 -34
- package/_cjs/chains/definitions/celo.js.map +0 -1
- package/_cjs/chains/definitions/celoAlfajores.js +0 -36
- package/_cjs/chains/definitions/celoAlfajores.js.map +0 -1
- package/_cjs/chains/definitions/celoCannoli.js +0 -36
- package/_cjs/chains/definitions/celoCannoli.js.map +0 -1
- package/_cjs/chains/definitions/classic.js +0 -23
- package/_cjs/chains/definitions/classic.js.map +0 -1
- package/_cjs/chains/definitions/confluxESpace.js +0 -27
- package/_cjs/chains/definitions/confluxESpace.js.map +0 -1
- package/_cjs/chains/definitions/coreDao.js +0 -27
- package/_cjs/chains/definitions/coreDao.js.map +0 -1
- package/_cjs/chains/definitions/cronos.js +0 -26
- package/_cjs/chains/definitions/cronos.js.map +0 -1
- package/_cjs/chains/definitions/cronosTestnet.js +0 -30
- package/_cjs/chains/definitions/cronosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/crossbell.js +0 -28
- package/_cjs/chains/definitions/crossbell.js.map +0 -1
- package/_cjs/chains/definitions/dfk.js +0 -25
- package/_cjs/chains/definitions/dfk.js.map +0 -1
- package/_cjs/chains/definitions/dogechain.js +0 -23
- package/_cjs/chains/definitions/dogechain.js.map +0 -1
- package/_cjs/chains/definitions/edgeware.js +0 -26
- package/_cjs/chains/definitions/edgeware.js.map +0 -1
- package/_cjs/chains/definitions/edgewareTestnet.js +0 -23
- package/_cjs/chains/definitions/edgewareTestnet.js.map +0 -1
- package/_cjs/chains/definitions/ekta.js +0 -20
- package/_cjs/chains/definitions/ekta.js.map +0 -1
- package/_cjs/chains/definitions/ektaTestnet.js +0 -21
- package/_cjs/chains/definitions/ektaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/eon.js +0 -24
- package/_cjs/chains/definitions/eon.js.map +0 -1
- package/_cjs/chains/definitions/eos.js +0 -29
- package/_cjs/chains/definitions/eos.js.map +0 -1
- package/_cjs/chains/definitions/eosTestnet.js +0 -30
- package/_cjs/chains/definitions/eosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/evmos.js +0 -20
- package/_cjs/chains/definitions/evmos.js.map +0 -1
- package/_cjs/chains/definitions/evmosTestnet.js +0 -23
- package/_cjs/chains/definitions/evmosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/fantom.js +0 -26
- package/_cjs/chains/definitions/fantom.js.map +0 -1
- package/_cjs/chains/definitions/fantomTestnet.js +0 -26
- package/_cjs/chains/definitions/fantomTestnet.js.map +0 -1
- package/_cjs/chains/definitions/fibo.js +0 -20
- package/_cjs/chains/definitions/fibo.js.map +0 -1
- package/_cjs/chains/definitions/filecoin.js +0 -20
- package/_cjs/chains/definitions/filecoin.js.map +0 -1
- package/_cjs/chains/definitions/filecoinCalibration.js +0 -20
- package/_cjs/chains/definitions/filecoinCalibration.js.map +0 -1
- package/_cjs/chains/definitions/filecoinHyperspace.js +0 -20
- package/_cjs/chains/definitions/filecoinHyperspace.js.map +0 -1
- package/_cjs/chains/definitions/flare.js +0 -23
- package/_cjs/chains/definitions/flare.js.map +0 -1
- package/_cjs/chains/definitions/flareTestnet.js +0 -24
- package/_cjs/chains/definitions/flareTestnet.js.map +0 -1
- package/_cjs/chains/definitions/foundry.js +0 -20
- package/_cjs/chains/definitions/foundry.js.map +0 -1
- package/_cjs/chains/definitions/fuse.js +0 -22
- package/_cjs/chains/definitions/fuse.js.map +0 -1
- package/_cjs/chains/definitions/fuseSparknet.js +0 -19
- package/_cjs/chains/definitions/fuseSparknet.js.map +0 -1
- package/_cjs/chains/definitions/gnosis.js +0 -32
- package/_cjs/chains/definitions/gnosis.js.map +0 -1
- package/_cjs/chains/definitions/gnosisChiado.js +0 -33
- package/_cjs/chains/definitions/gnosisChiado.js.map +0 -1
- package/_cjs/chains/definitions/gobi.js +0 -22
- package/_cjs/chains/definitions/gobi.js.map +0 -1
- package/_cjs/chains/definitions/goerli.js +0 -35
- package/_cjs/chains/definitions/goerli.js.map +0 -1
- package/_cjs/chains/definitions/haqqMainnet.js +0 -25
- package/_cjs/chains/definitions/haqqMainnet.js.map +0 -1
- package/_cjs/chains/definitions/haqqTestedge2.js +0 -25
- package/_cjs/chains/definitions/haqqTestedge2.js.map +0 -1
- package/_cjs/chains/definitions/hardhat.js +0 -17
- package/_cjs/chains/definitions/hardhat.js.map +0 -1
- package/_cjs/chains/definitions/harmonyOne.js +0 -26
- package/_cjs/chains/definitions/harmonyOne.js.map +0 -1
- package/_cjs/chains/definitions/holesky.js +0 -22
- package/_cjs/chains/definitions/holesky.js.map +0 -1
- package/_cjs/chains/definitions/iotex.js +0 -23
- package/_cjs/chains/definitions/iotex.js.map +0 -1
- package/_cjs/chains/definitions/iotexTestnet.js +0 -23
- package/_cjs/chains/definitions/iotexTestnet.js.map +0 -1
- package/_cjs/chains/definitions/kava.js +0 -29
- package/_cjs/chains/definitions/kava.js.map +0 -1
- package/_cjs/chains/definitions/kavaTestnet.js +0 -32
- package/_cjs/chains/definitions/kavaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/klaytn.js +0 -20
- package/_cjs/chains/definitions/klaytn.js.map +0 -1
- package/_cjs/chains/definitions/kroma.js +0 -22
- package/_cjs/chains/definitions/kroma.js.map +0 -1
- package/_cjs/chains/definitions/kromaSepolia.js +0 -22
- package/_cjs/chains/definitions/kromaSepolia.js.map +0 -1
- package/_cjs/chains/definitions/linea.js +0 -29
- package/_cjs/chains/definitions/linea.js.map +0 -1
- package/_cjs/chains/definitions/lineaTestnet.js +0 -29
- package/_cjs/chains/definitions/lineaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/localhost.js +0 -17
- package/_cjs/chains/definitions/localhost.js.map +0 -1
- package/_cjs/chains/definitions/mainnet.js +0 -34
- package/_cjs/chains/definitions/mainnet.js.map +0 -1
- package/_cjs/chains/definitions/manta.js +0 -35
- package/_cjs/chains/definitions/manta.js.map +0 -1
- package/_cjs/chains/definitions/mantaTestnet.js +0 -36
- package/_cjs/chains/definitions/mantaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/mantle.js +0 -29
- package/_cjs/chains/definitions/mantle.js.map +0 -1
- package/_cjs/chains/definitions/mantleTestnet.js +0 -24
- package/_cjs/chains/definitions/mantleTestnet.js.map +0 -1
- package/_cjs/chains/definitions/meter.js +0 -20
- package/_cjs/chains/definitions/meter.js.map +0 -1
- package/_cjs/chains/definitions/meterTestnet.js +0 -23
- package/_cjs/chains/definitions/meterTestnet.js.map +0 -1
- package/_cjs/chains/definitions/metis.js +0 -29
- package/_cjs/chains/definitions/metis.js.map +0 -1
- package/_cjs/chains/definitions/metisGoerli.js +0 -29
- package/_cjs/chains/definitions/metisGoerli.js.map +0 -1
- package/_cjs/chains/definitions/mev.js +0 -31
- package/_cjs/chains/definitions/mev.js.map +0 -1
- package/_cjs/chains/definitions/mevTestnet.js +0 -32
- package/_cjs/chains/definitions/mevTestnet.js.map +0 -1
- package/_cjs/chains/definitions/modeTestnet.js +0 -28
- package/_cjs/chains/definitions/modeTestnet.js.map +0 -1
- package/_cjs/chains/definitions/moonbaseAlpha.js +0 -33
- package/_cjs/chains/definitions/moonbaseAlpha.js.map +0 -1
- package/_cjs/chains/definitions/moonbeam.js +0 -33
- package/_cjs/chains/definitions/moonbeam.js.map +0 -1
- package/_cjs/chains/definitions/moonbeamDev.js +0 -20
- package/_cjs/chains/definitions/moonbeamDev.js.map +0 -1
- package/_cjs/chains/definitions/moonriver.js +0 -33
- package/_cjs/chains/definitions/moonriver.js.map +0 -1
- package/_cjs/chains/definitions/neonDevnet.js +0 -28
- package/_cjs/chains/definitions/neonDevnet.js.map +0 -1
- package/_cjs/chains/definitions/neonMainnet.js +0 -27
- package/_cjs/chains/definitions/neonMainnet.js.map +0 -1
- package/_cjs/chains/definitions/nexi.js +0 -27
- package/_cjs/chains/definitions/nexi.js.map +0 -1
- package/_cjs/chains/definitions/nexilix.js +0 -26
- package/_cjs/chains/definitions/nexilix.js.map +0 -1
- package/_cjs/chains/definitions/oasys.js +0 -21
- package/_cjs/chains/definitions/oasys.js.map +0 -1
- package/_cjs/chains/definitions/okc.js +0 -26
- package/_cjs/chains/definitions/okc.js.map +0 -1
- package/_cjs/chains/definitions/opBNB.js +0 -26
- package/_cjs/chains/definitions/opBNB.js.map +0 -1
- package/_cjs/chains/definitions/opBNBTestnet.js +0 -27
- package/_cjs/chains/definitions/opBNBTestnet.js.map +0 -1
- package/_cjs/chains/definitions/optimism.js +0 -29
- package/_cjs/chains/definitions/optimism.js.map +0 -1
- package/_cjs/chains/definitions/optimismGoerli.js +0 -30
- package/_cjs/chains/definitions/optimismGoerli.js.map +0 -1
- package/_cjs/chains/definitions/optimismSepolia.js +0 -30
- package/_cjs/chains/definitions/optimismSepolia.js.map +0 -1
- package/_cjs/chains/definitions/plinga.js +0 -27
- package/_cjs/chains/definitions/plinga.js.map +0 -1
- package/_cjs/chains/definitions/polygon.js +0 -27
- package/_cjs/chains/definitions/polygon.js.map +0 -1
- package/_cjs/chains/definitions/polygonMumbai.js +0 -28
- package/_cjs/chains/definitions/polygonMumbai.js.map +0 -1
- package/_cjs/chains/definitions/polygonZkEvm.js +0 -27
- package/_cjs/chains/definitions/polygonZkEvm.js.map +0 -1
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js +0 -28
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +0 -1
- package/_cjs/chains/definitions/pulsechain.js +0 -32
- package/_cjs/chains/definitions/pulsechain.js.map +0 -1
- package/_cjs/chains/definitions/pulsechainV4.js +0 -32
- package/_cjs/chains/definitions/pulsechainV4.js.map +0 -1
- package/_cjs/chains/definitions/qMainnet.js +0 -23
- package/_cjs/chains/definitions/qMainnet.js.map +0 -1
- package/_cjs/chains/definitions/qTestnet.js +0 -24
- package/_cjs/chains/definitions/qTestnet.js.map +0 -1
- package/_cjs/chains/definitions/rollux.js +0 -29
- package/_cjs/chains/definitions/rollux.js.map +0 -1
- package/_cjs/chains/definitions/rolluxTestnet.js +0 -32
- package/_cjs/chains/definitions/rolluxTestnet.js.map +0 -1
- package/_cjs/chains/definitions/ronin.js +0 -24
- package/_cjs/chains/definitions/ronin.js.map +0 -1
- package/_cjs/chains/definitions/saigon.js +0 -28
- package/_cjs/chains/definitions/saigon.js.map +0 -1
- package/_cjs/chains/definitions/scroll.js +0 -29
- package/_cjs/chains/definitions/scroll.js.map +0 -1
- package/_cjs/chains/definitions/scrollSepolia.js +0 -28
- package/_cjs/chains/definitions/scrollSepolia.js.map +0 -1
- package/_cjs/chains/definitions/scrollTestnet.js +0 -23
- package/_cjs/chains/definitions/scrollTestnet.js.map +0 -1
- package/_cjs/chains/definitions/sepolia.js +0 -33
- package/_cjs/chains/definitions/sepolia.js.map +0 -1
- package/_cjs/chains/definitions/shardeumSphinx.js +0 -22
- package/_cjs/chains/definitions/shardeumSphinx.js.map +0 -1
- package/_cjs/chains/definitions/skale/brawl.js +0 -23
- package/_cjs/chains/definitions/skale/brawl.js.map +0 -1
- package/_cjs/chains/definitions/skale/calypso.js +0 -30
- package/_cjs/chains/definitions/skale/calypso.js.map +0 -1
- package/_cjs/chains/definitions/skale/calypsoTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/chaosTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/chaosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/cryptoBlades.js +0 -25
- package/_cjs/chains/definitions/skale/cryptoBlades.js.map +0 -1
- package/_cjs/chains/definitions/skale/cryptoColosseum.js +0 -23
- package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +0 -1
- package/_cjs/chains/definitions/skale/europa.js +0 -28
- package/_cjs/chains/definitions/skale/europa.js.map +0 -1
- package/_cjs/chains/definitions/skale/europaTestnet.js +0 -31
- package/_cjs/chains/definitions/skale/europaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/exorde.js +0 -23
- package/_cjs/chains/definitions/skale/exorde.js.map +0 -1
- package/_cjs/chains/definitions/skale/humanProtocol.js +0 -23
- package/_cjs/chains/definitions/skale/humanProtocol.js.map +0 -1
- package/_cjs/chains/definitions/skale/nebula.js +0 -28
- package/_cjs/chains/definitions/skale/nebula.js.map +0 -1
- package/_cjs/chains/definitions/skale/nebulaTestnet.js +0 -31
- package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/skale/razor.js +0 -23
- package/_cjs/chains/definitions/skale/razor.js.map +0 -1
- package/_cjs/chains/definitions/skale/titan.js +0 -28
- package/_cjs/chains/definitions/skale/titan.js.map +0 -1
- package/_cjs/chains/definitions/skale/titanTestnet.js +0 -33
- package/_cjs/chains/definitions/skale/titanTestnet.js.map +0 -1
- package/_cjs/chains/definitions/songbird.js +0 -23
- package/_cjs/chains/definitions/songbird.js.map +0 -1
- package/_cjs/chains/definitions/songbirdTestnet.js +0 -24
- package/_cjs/chains/definitions/songbirdTestnet.js.map +0 -1
- package/_cjs/chains/definitions/syscoin.js +0 -29
- package/_cjs/chains/definitions/syscoin.js.map +0 -1
- package/_cjs/chains/definitions/syscoinTestnet.js +0 -29
- package/_cjs/chains/definitions/syscoinTestnet.js.map +0 -1
- package/_cjs/chains/definitions/taikoJolnir.js +0 -21
- package/_cjs/chains/definitions/taikoJolnir.js.map +0 -1
- package/_cjs/chains/definitions/taikoTestnetSepolia.js +0 -21
- package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +0 -1
- package/_cjs/chains/definitions/taraxa.js +0 -21
- package/_cjs/chains/definitions/taraxa.js.map +0 -1
- package/_cjs/chains/definitions/taraxaTestnet.js +0 -22
- package/_cjs/chains/definitions/taraxaTestnet.js.map +0 -1
- package/_cjs/chains/definitions/telos.js +0 -29
- package/_cjs/chains/definitions/telos.js.map +0 -1
- package/_cjs/chains/definitions/telosTestnet.js +0 -24
- package/_cjs/chains/definitions/telosTestnet.js.map +0 -1
- package/_cjs/chains/definitions/tenet.js +0 -23
- package/_cjs/chains/definitions/tenet.js.map +0 -1
- package/_cjs/chains/definitions/thunderTestnet.js +0 -22
- package/_cjs/chains/definitions/thunderTestnet.js.map +0 -1
- package/_cjs/chains/definitions/vechain.js +0 -25
- package/_cjs/chains/definitions/vechain.js.map +0 -1
- package/_cjs/chains/definitions/wanchain.js +0 -30
- package/_cjs/chains/definitions/wanchain.js.map +0 -1
- package/_cjs/chains/definitions/wanchainTestnet.js +0 -28
- package/_cjs/chains/definitions/wanchainTestnet.js.map +0 -1
- package/_cjs/chains/definitions/xdc.js +0 -21
- package/_cjs/chains/definitions/xdc.js.map +0 -1
- package/_cjs/chains/definitions/xdcTestnet.js +0 -21
- package/_cjs/chains/definitions/xdcTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zetachainAthensTestnet.js +0 -26
- package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zhejiang.js +0 -22
- package/_cjs/chains/definitions/zhejiang.js.map +0 -1
- package/_cjs/chains/definitions/zkSync.js +0 -36
- package/_cjs/chains/definitions/zkSync.js.map +0 -1
- package/_cjs/chains/definitions/zkSyncTestnet.js +0 -33
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +0 -1
- package/_cjs/chains/definitions/zora.js +0 -31
- package/_cjs/chains/definitions/zora.js.map +0 -1
- package/_cjs/chains/definitions/zoraSepolia.js +0 -40
- package/_cjs/chains/definitions/zoraSepolia.js.map +0 -1
- package/_cjs/chains/definitions/zoraTestnet.js +0 -35
- package/_cjs/chains/definitions/zoraTestnet.js.map +0 -1
- package/_cjs/chains/index.js +0 -319
- package/_cjs/chains/index.js.map +0 -1
- package/_cjs/chains/optimism/formatters.js +0 -54
- package/_cjs/chains/optimism/formatters.js.map +0 -1
- package/_cjs/chains/optimism/types.js +0 -3
- package/_cjs/chains/optimism/types.js.map +0 -1
- package/_cjs/chains/utils.js +0 -23
- package/_cjs/chains/utils.js.map +0 -1
- package/_cjs/chains/zksync/formatters.js +0 -128
- package/_cjs/chains/zksync/formatters.js.map +0 -1
- package/_cjs/chains/zksync/serializers.js +0 -74
- package/_cjs/chains/zksync/serializers.js.map +0 -1
- package/_cjs/chains/zksync/types.js +0 -3
- package/_cjs/chains/zksync/types.js.map +0 -1
- package/_cjs/clients/createClient.js +0 -42
- package/_cjs/clients/createClient.js.map +0 -1
- package/_cjs/clients/createPublicClient.js +0 -17
- package/_cjs/clients/createPublicClient.js.map +0 -1
- package/_cjs/clients/createTestClient.js +0 -20
- package/_cjs/clients/createTestClient.js.map +0 -1
- package/_cjs/clients/createWalletClient.js +0 -18
- package/_cjs/clients/createWalletClient.js.map +0 -1
- package/_cjs/clients/decorators/public.js +0 -101
- package/_cjs/clients/decorators/public.js.map +0 -1
- package/_cjs/clients/decorators/test.js +0 -70
- package/_cjs/clients/decorators/test.js.map +0 -1
- package/_cjs/clients/decorators/wallet.js +0 -41
- package/_cjs/clients/decorators/wallet.js.map +0 -1
- package/_cjs/clients/transports/createTransport.js +0 -13
- package/_cjs/clients/transports/createTransport.js.map +0 -1
- package/_cjs/clients/transports/custom.js +0 -17
- package/_cjs/clients/transports/custom.js.map +0 -1
- package/_cjs/clients/transports/fallback.js +0 -122
- package/_cjs/clients/transports/fallback.js.map +0 -1
- package/_cjs/clients/transports/http.js +0 -59
- package/_cjs/clients/transports/http.js.map +0 -1
- package/_cjs/clients/transports/webSocket.js +0 -81
- package/_cjs/clients/transports/webSocket.js.map +0 -1
- package/_cjs/constants/abis.js +0 -1350
- package/_cjs/constants/abis.js.map +0 -1
- package/_cjs/constants/address.js +0 -5
- package/_cjs/constants/address.js.map +0 -1
- package/_cjs/constants/contract.js +0 -5
- package/_cjs/constants/contract.js.map +0 -1
- package/_cjs/constants/contracts.js +0 -5
- package/_cjs/constants/contracts.js.map +0 -1
- package/_cjs/constants/number.js +0 -101
- package/_cjs/constants/number.js.map +0 -1
- package/_cjs/constants/solidity.js +0 -35
- package/_cjs/constants/solidity.js.map +0 -1
- package/_cjs/constants/unit.js +0 -16
- package/_cjs/constants/unit.js.map +0 -1
- package/_cjs/ens/index.js +0 -20
- package/_cjs/ens/index.js.map +0 -1
- package/_cjs/errors/abi.js +0 -461
- package/_cjs/errors/abi.js.map +0 -1
- package/_cjs/errors/account.js +0 -23
- package/_cjs/errors/account.js.map +0 -1
- package/_cjs/errors/address.js +0 -17
- package/_cjs/errors/address.js.map +0 -1
- package/_cjs/errors/base.js +0 -83
- package/_cjs/errors/base.js.map +0 -1
- package/_cjs/errors/block.js +0 -22
- package/_cjs/errors/block.js.map +0 -1
- package/_cjs/errors/ccip.js +0 -69
- package/_cjs/errors/ccip.js.map +0 -1
- package/_cjs/errors/chain.js +0 -86
- package/_cjs/errors/chain.js.map +0 -1
- package/_cjs/errors/contract.js +0 -286
- package/_cjs/errors/contract.js.map +0 -1
- package/_cjs/errors/cursor.js +0 -29
- package/_cjs/errors/cursor.js.map +0 -1
- package/_cjs/errors/data.js +0 -31
- package/_cjs/errors/data.js.map +0 -1
- package/_cjs/errors/encoding.js +0 -65
- package/_cjs/errors/encoding.js.map +0 -1
- package/_cjs/errors/ens.js +0 -59
- package/_cjs/errors/ens.js.map +0 -1
- package/_cjs/errors/estimateGas.js +0 -49
- package/_cjs/errors/estimateGas.js.map +0 -1
- package/_cjs/errors/fee.js +0 -42
- package/_cjs/errors/fee.js.map +0 -1
- package/_cjs/errors/log.js +0 -17
- package/_cjs/errors/log.js.map +0 -1
- package/_cjs/errors/node.js +0 -262
- package/_cjs/errors/node.js.map +0 -1
- package/_cjs/errors/request.js +0 -107
- package/_cjs/errors/request.js.map +0 -1
- package/_cjs/errors/rpc.js +0 -448
- package/_cjs/errors/rpc.js.map +0 -1
- package/_cjs/errors/transaction.js +0 -225
- package/_cjs/errors/transaction.js.map +0 -1
- package/_cjs/errors/transport.js +0 -13
- package/_cjs/errors/transport.js.map +0 -1
- package/_cjs/index.js +0 -482
- package/_cjs/index.js.map +0 -1
- package/_cjs/types/account.js +0 -3
- package/_cjs/types/account.js.map +0 -1
- package/_cjs/types/block.js +0 -3
- package/_cjs/types/block.js.map +0 -1
- package/_cjs/types/chain.js +0 -3
- package/_cjs/types/chain.js.map +0 -1
- package/_cjs/types/contract.js +0 -3
- package/_cjs/types/contract.js.map +0 -1
- package/_cjs/types/eip1193.js +0 -24
- package/_cjs/types/eip1193.js.map +0 -1
- package/_cjs/types/ens.js +0 -3
- package/_cjs/types/ens.js.map +0 -1
- package/_cjs/types/fee.js +0 -3
- package/_cjs/types/fee.js.map +0 -1
- package/_cjs/types/filter.js +0 -3
- package/_cjs/types/filter.js.map +0 -1
- package/_cjs/types/log.js +0 -3
- package/_cjs/types/log.js.map +0 -1
- package/_cjs/types/misc.js +0 -3
- package/_cjs/types/misc.js.map +0 -1
- package/_cjs/types/multicall.js +0 -3
- package/_cjs/types/multicall.js.map +0 -1
- package/_cjs/types/proof.js +0 -3
- package/_cjs/types/proof.js.map +0 -1
- package/_cjs/types/rpc.js +0 -3
- package/_cjs/types/rpc.js.map +0 -1
- package/_cjs/types/transaction.js +0 -3
- package/_cjs/types/transaction.js.map +0 -1
- package/_cjs/types/transport.js +0 -3
- package/_cjs/types/transport.js.map +0 -1
- package/_cjs/types/typedData.js +0 -3
- package/_cjs/types/typedData.js.map +0 -1
- package/_cjs/types/utils.js +0 -3
- package/_cjs/types/utils.js.map +0 -1
- package/_cjs/types/window.js +0 -3
- package/_cjs/types/window.js.map +0 -1
- package/_cjs/types/withdrawal.js +0 -3
- package/_cjs/types/withdrawal.js.map +0 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +0 -210
- package/_cjs/utils/abi/decodeAbiParameters.js.map +0 -1
- package/_cjs/utils/abi/decodeDeployData.js +0 -22
- package/_cjs/utils/abi/decodeDeployData.js.map +0 -1
- package/_cjs/utils/abi/decodeErrorResult.js +0 -30
- package/_cjs/utils/abi/decodeErrorResult.js.map +0 -1
- package/_cjs/utils/abi/decodeEventLog.js +0 -85
- package/_cjs/utils/abi/decodeEventLog.js.map +0 -1
- package/_cjs/utils/abi/decodeFunctionData.js +0 -28
- package/_cjs/utils/abi/decodeFunctionData.js.map +0 -1
- package/_cjs/utils/abi/decodeFunctionResult.js +0 -29
- package/_cjs/utils/abi/decodeFunctionResult.js.map +0 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +0 -211
- package/_cjs/utils/abi/encodeAbiParameters.js.map +0 -1
- package/_cjs/utils/abi/encodeDeployData.js +0 -23
- package/_cjs/utils/abi/encodeDeployData.js.map +0 -1
- package/_cjs/utils/abi/encodeErrorResult.js +0 -33
- package/_cjs/utils/abi/encodeErrorResult.js.map +0 -1
- package/_cjs/utils/abi/encodeEventTopics.js +0 -53
- package/_cjs/utils/abi/encodeEventTopics.js.map +0 -1
- package/_cjs/utils/abi/encodeFunctionData.js +0 -34
- package/_cjs/utils/abi/encodeFunctionData.js.map +0 -1
- package/_cjs/utils/abi/encodeFunctionResult.js +0 -27
- package/_cjs/utils/abi/encodeFunctionResult.js.map +0 -1
- package/_cjs/utils/abi/encodePacked.js +0 -73
- package/_cjs/utils/abi/encodePacked.js.map +0 -1
- package/_cjs/utils/abi/formatAbiItem.js +0 -27
- package/_cjs/utils/abi/formatAbiItem.js.map +0 -1
- package/_cjs/utils/abi/formatAbiItemWithArgs.js +0 -17
- package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +0 -1
- package/_cjs/utils/abi/getAbiItem.js +0 -84
- package/_cjs/utils/abi/getAbiItem.js.map +0 -1
- package/_cjs/utils/accounts.js +0 -8
- package/_cjs/utils/accounts.js.map +0 -1
- package/_cjs/utils/address/getAddress.js +0 -31
- package/_cjs/utils/address/getAddress.js.map +0 -1
- package/_cjs/utils/address/getContractAddress.js +0 -42
- package/_cjs/utils/address/getContractAddress.js.map +0 -1
- package/_cjs/utils/address/isAddress.js +0 -9
- package/_cjs/utils/address/isAddress.js.map +0 -1
- package/_cjs/utils/address/isAddressEqual.js +0 -14
- package/_cjs/utils/address/isAddressEqual.js.map +0 -1
- package/_cjs/utils/buildRequest.js +0 -93
- package/_cjs/utils/buildRequest.js.map +0 -1
- package/_cjs/utils/ccip.js +0 -121
- package/_cjs/utils/ccip.js.map +0 -1
- package/_cjs/utils/chain/assertCurrentChain.js +0 -12
- package/_cjs/utils/chain/assertCurrentChain.js.map +0 -1
- package/_cjs/utils/chain/defineChain.js +0 -13
- package/_cjs/utils/chain/defineChain.js.map +0 -1
- package/_cjs/utils/chain/extractChain.js +0 -8
- package/_cjs/utils/chain/extractChain.js.map +0 -1
- package/_cjs/utils/chain/getChainContractAddress.js +0 -26
- package/_cjs/utils/chain/getChainContractAddress.js.map +0 -1
- package/_cjs/utils/cursor.js +0 -134
- package/_cjs/utils/cursor.js.map +0 -1
- package/_cjs/utils/data/concat.js +0 -28
- package/_cjs/utils/data/concat.js.map +0 -1
- package/_cjs/utils/data/isBytes.js +0 -14
- package/_cjs/utils/data/isBytes.js.map +0 -1
- package/_cjs/utils/data/isBytesEqual.js +0 -13
- package/_cjs/utils/data/isBytesEqual.js.map +0 -1
- package/_cjs/utils/data/isHex.js +0 -12
- package/_cjs/utils/data/isHex.js.map +0 -1
- package/_cjs/utils/data/pad.js +0 -42
- package/_cjs/utils/data/pad.js.map +0 -1
- package/_cjs/utils/data/size.js +0 -11
- package/_cjs/utils/data/size.js.map +0 -1
- package/_cjs/utils/data/slice.js +0 -54
- package/_cjs/utils/data/slice.js.map +0 -1
- package/_cjs/utils/data/trim.js +0 -25
- package/_cjs/utils/data/trim.js.map +0 -1
- package/_cjs/utils/encoding/fromBytes.js +0 -56
- package/_cjs/utils/encoding/fromBytes.js.map +0 -1
- package/_cjs/utils/encoding/fromHex.js +0 -70
- package/_cjs/utils/encoding/fromHex.js.map +0 -1
- package/_cjs/utils/encoding/fromRlp.js +0 -67
- package/_cjs/utils/encoding/fromRlp.js.map +0 -1
- package/_cjs/utils/encoding/toBytes.js +0 -83
- package/_cjs/utils/encoding/toBytes.js.map +0 -1
- package/_cjs/utils/encoding/toHex.js +0 -79
- package/_cjs/utils/encoding/toHex.js.map +0 -1
- package/_cjs/utils/encoding/toRlp.js +0 -105
- package/_cjs/utils/encoding/toRlp.js.map +0 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js +0 -34
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +0 -1
- package/_cjs/utils/ens/avatar/utils.js +0 -186
- package/_cjs/utils/ens/avatar/utils.js.map +0 -1
- package/_cjs/utils/ens/encodeLabelhash.js +0 -8
- package/_cjs/utils/ens/encodeLabelhash.js.map +0 -1
- package/_cjs/utils/ens/encodedLabelToLabelhash.js +0 -18
- package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +0 -1
- package/_cjs/utils/ens/errors.js +0 -24
- package/_cjs/utils/ens/errors.js.map +0 -1
- package/_cjs/utils/ens/labelhash.js +0 -15
- package/_cjs/utils/ens/labelhash.js.map +0 -1
- package/_cjs/utils/ens/namehash.js +0 -24
- package/_cjs/utils/ens/namehash.js.map +0 -1
- package/_cjs/utils/ens/normalize.js +0 -9
- package/_cjs/utils/ens/normalize.js.map +0 -1
- package/_cjs/utils/ens/packetToBytes.js +0 -27
- package/_cjs/utils/ens/packetToBytes.js.map +0 -1
- package/_cjs/utils/errors/getCallError.js +0 -20
- package/_cjs/utils/errors/getCallError.js.map +0 -1
- package/_cjs/utils/errors/getContractError.js +0 -39
- package/_cjs/utils/errors/getContractError.js.map +0 -1
- package/_cjs/utils/errors/getEstimateGasError.js +0 -20
- package/_cjs/utils/errors/getEstimateGasError.js.map +0 -1
- package/_cjs/utils/errors/getNodeError.js +0 -65
- package/_cjs/utils/errors/getNodeError.js.map +0 -1
- package/_cjs/utils/errors/getTransactionError.js +0 -20
- package/_cjs/utils/errors/getTransactionError.js.map +0 -1
- package/_cjs/utils/filters/createFilterRequestScope.js +0 -14
- package/_cjs/utils/filters/createFilterRequestScope.js.map +0 -1
- package/_cjs/utils/formatters/block.js +0 -32
- package/_cjs/utils/formatters/block.js.map +0 -1
- package/_cjs/utils/formatters/extract.js +0 -24
- package/_cjs/utils/formatters/extract.js.map +0 -1
- package/_cjs/utils/formatters/feeHistory.js +0 -13
- package/_cjs/utils/formatters/feeHistory.js.map +0 -1
- package/_cjs/utils/formatters/formatter.js +0 -25
- package/_cjs/utils/formatters/formatter.js.map +0 -1
- package/_cjs/utils/formatters/log.js +0 -18
- package/_cjs/utils/formatters/log.js.map +0 -1
- package/_cjs/utils/formatters/proof.js +0 -22
- package/_cjs/utils/formatters/proof.js.map +0 -1
- package/_cjs/utils/formatters/transaction.js +0 -50
- package/_cjs/utils/formatters/transaction.js.map +0 -1
- package/_cjs/utils/formatters/transactionReceipt.js +0 -47
- package/_cjs/utils/formatters/transactionReceipt.js.map +0 -1
- package/_cjs/utils/formatters/transactionRequest.js +0 -39
- package/_cjs/utils/formatters/transactionRequest.js.map +0 -1
- package/_cjs/utils/getAction.js +0 -8
- package/_cjs/utils/getAction.js.map +0 -1
- package/_cjs/utils/hash/getEventSelector.js +0 -10
- package/_cjs/utils/hash/getEventSelector.js.map +0 -1
- package/_cjs/utils/hash/getEventSignature.js +0 -9
- package/_cjs/utils/hash/getEventSignature.js.map +0 -1
- package/_cjs/utils/hash/getFunctionSelector.js +0 -11
- package/_cjs/utils/hash/getFunctionSelector.js.map +0 -1
- package/_cjs/utils/hash/getFunctionSignature.js +0 -15
- package/_cjs/utils/hash/getFunctionSignature.js.map +0 -1
- package/_cjs/utils/hash/hashFunction.js +0 -17
- package/_cjs/utils/hash/hashFunction.js.map +0 -1
- package/_cjs/utils/hash/isHash.js +0 -10
- package/_cjs/utils/hash/isHash.js.map +0 -1
- package/_cjs/utils/hash/keccak256.js +0 -16
- package/_cjs/utils/hash/keccak256.js.map +0 -1
- package/_cjs/utils/hash/normalizeSignature.js +0 -48
- package/_cjs/utils/hash/normalizeSignature.js.map +0 -1
- package/_cjs/utils/index.js +0 -213
- package/_cjs/utils/index.js.map +0 -1
- package/_cjs/utils/observe.js +0 -42
- package/_cjs/utils/observe.js.map +0 -1
- package/_cjs/utils/poll.js +0 -27
- package/_cjs/utils/poll.js.map +0 -1
- package/_cjs/utils/promise/createBatchScheduler.js +0 -49
- package/_cjs/utils/promise/createBatchScheduler.js.map +0 -1
- package/_cjs/utils/promise/withCache.js +0 -47
- package/_cjs/utils/promise/withCache.js.map +0 -1
- package/_cjs/utils/promise/withRetry.js +0 -29
- package/_cjs/utils/promise/withRetry.js.map +0 -1
- package/_cjs/utils/promise/withTimeout.js +0 -35
- package/_cjs/utils/promise/withTimeout.js.map +0 -1
- package/_cjs/utils/regex.js +0 -7
- package/_cjs/utils/regex.js.map +0 -1
- package/_cjs/utils/rpc.js +0 -154
- package/_cjs/utils/rpc.js.map +0 -1
- package/_cjs/utils/signature/compactSignatureToHex.js +0 -10
- package/_cjs/utils/signature/compactSignatureToHex.js.map +0 -1
- package/_cjs/utils/signature/compactSignatureToSignature.js +0 -15
- package/_cjs/utils/signature/compactSignatureToSignature.js.map +0 -1
- package/_cjs/utils/signature/hashMessage.js +0 -19
- package/_cjs/utils/signature/hashMessage.js.map +0 -1
- package/_cjs/utils/signature/hashTypedData.js +0 -124
- package/_cjs/utils/signature/hashTypedData.js.map +0 -1
- package/_cjs/utils/signature/hexToCompactSignature.js +0 -14
- package/_cjs/utils/signature/hexToCompactSignature.js.map +0 -1
- package/_cjs/utils/signature/hexToSignature.js +0 -12
- package/_cjs/utils/signature/hexToSignature.js.map +0 -1
- package/_cjs/utils/signature/recoverAddress.js +0 -10
- package/_cjs/utils/signature/recoverAddress.js.map +0 -1
- package/_cjs/utils/signature/recoverMessageAddress.js +0 -10
- package/_cjs/utils/signature/recoverMessageAddress.js.map +0 -1
- package/_cjs/utils/signature/recoverPublicKey.js +0 -21
- package/_cjs/utils/signature/recoverPublicKey.js.map +0 -1
- package/_cjs/utils/signature/recoverTypedDataAddress.js +0 -19
- package/_cjs/utils/signature/recoverTypedDataAddress.js.map +0 -1
- package/_cjs/utils/signature/signatureToCompactSignature.js +0 -17
- package/_cjs/utils/signature/signatureToCompactSignature.js.map +0 -1
- package/_cjs/utils/signature/signatureToHex.js +0 -11
- package/_cjs/utils/signature/signatureToHex.js.map +0 -1
- package/_cjs/utils/signature/verifyMessage.js +0 -11
- package/_cjs/utils/signature/verifyMessage.js.map +0 -1
- package/_cjs/utils/signature/verifyTypedData.js +0 -18
- package/_cjs/utils/signature/verifyTypedData.js.map +0 -1
- package/_cjs/utils/stringify.js +0 -9
- package/_cjs/utils/stringify.js.map +0 -1
- package/_cjs/utils/transaction/assertRequest.js +0 -28
- package/_cjs/utils/transaction/assertRequest.js.map +0 -1
- package/_cjs/utils/transaction/assertTransaction.js +0 -51
- package/_cjs/utils/transaction/assertTransaction.js.map +0 -1
- package/_cjs/utils/transaction/getSerializedTransactionType.js +0 -18
- package/_cjs/utils/transaction/getSerializedTransactionType.js.map +0 -1
- package/_cjs/utils/transaction/getTransactionType.js +0 -19
- package/_cjs/utils/transaction/getTransactionType.js.map +0 -1
- package/_cjs/utils/transaction/parseTransaction.js +0 -213
- package/_cjs/utils/transaction/parseTransaction.js.map +0 -1
- package/_cjs/utils/transaction/serializeAccessList.js +0 -26
- package/_cjs/utils/transaction/serializeAccessList.js.map +0 -1
- package/_cjs/utils/transaction/serializeTransaction.js +0 -107
- package/_cjs/utils/transaction/serializeTransaction.js.map +0 -1
- package/_cjs/utils/typedData.js +0 -75
- package/_cjs/utils/typedData.js.map +0 -1
- package/_cjs/utils/uid.js +0 -18
- package/_cjs/utils/uid.js.map +0 -1
- package/_cjs/utils/unit/formatEther.js +0 -10
- package/_cjs/utils/unit/formatEther.js.map +0 -1
- package/_cjs/utils/unit/formatGwei.js +0 -10
- package/_cjs/utils/unit/formatGwei.js.map +0 -1
- package/_cjs/utils/unit/formatUnits.js +0 -18
- package/_cjs/utils/unit/formatUnits.js.map +0 -1
- package/_cjs/utils/unit/parseEther.js +0 -10
- package/_cjs/utils/unit/parseEther.js.map +0 -1
- package/_cjs/utils/unit/parseGwei.js +0 -10
- package/_cjs/utils/unit/parseGwei.js.map +0 -1
- package/_cjs/utils/unit/parseUnits.js +0 -38
- package/_cjs/utils/unit/parseUnits.js.map +0 -1
- package/_cjs/utils/wait.js +0 -8
- package/_cjs/utils/wait.js.map +0 -1
- package/_cjs/window/index.js +0 -4
- package/_cjs/window/index.js.map +0 -1
- package/_esm/chains/optimism/formatters.js.map +0 -1
- package/_esm/chains/optimism/types.js.map +0 -1
- package/_types/chains/optimism/types.d.ts +0 -53
- package/_types/chains/optimism/types.d.ts.map +0 -1
- /package/_esm/chains/{optimism → opStack}/types.js +0 -0
@@ -1,131 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.parseTransactionCelo = void 0;
|
4
|
-
const transaction_js_1 = require("../../errors/transaction.js");
|
5
|
-
const isHex_js_1 = require("../../utils/data/isHex.js");
|
6
|
-
const slice_js_1 = require("../../utils/data/slice.js");
|
7
|
-
const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
|
8
|
-
const parseTransaction_js_1 = require("../../utils/transaction/parseTransaction.js");
|
9
|
-
const serializers_js_1 = require("./serializers.js");
|
10
|
-
function parseTransactionCelo(serializedTransaction) {
|
11
|
-
const serializedType = (0, slice_js_1.sliceHex)(serializedTransaction, 0, 1);
|
12
|
-
if (serializedType === '0x7c')
|
13
|
-
return parseTransactionCIP42(serializedTransaction);
|
14
|
-
if (serializedType === '0x7b')
|
15
|
-
return parseTransactionCIP64(serializedTransaction);
|
16
|
-
return (0, parseTransaction_js_1.parseTransaction)(serializedTransaction);
|
17
|
-
}
|
18
|
-
exports.parseTransactionCelo = parseTransactionCelo;
|
19
|
-
function parseTransactionCIP42(serializedTransaction) {
|
20
|
-
const transactionArray = (0, parseTransaction_js_1.toTransactionArray)(serializedTransaction);
|
21
|
-
const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, feeCurrency, gatewayFeeRecipient, gatewayFee, to, value, data, accessList, v, r, s,] = transactionArray;
|
22
|
-
if (transactionArray.length !== 15 && transactionArray.length !== 12) {
|
23
|
-
throw new transaction_js_1.InvalidSerializedTransactionError({
|
24
|
-
attributes: {
|
25
|
-
chainId,
|
26
|
-
nonce,
|
27
|
-
maxPriorityFeePerGas,
|
28
|
-
maxFeePerGas,
|
29
|
-
gas,
|
30
|
-
feeCurrency,
|
31
|
-
to,
|
32
|
-
gatewayFeeRecipient,
|
33
|
-
gatewayFee,
|
34
|
-
value,
|
35
|
-
data,
|
36
|
-
accessList,
|
37
|
-
...(transactionArray.length > 12
|
38
|
-
? {
|
39
|
-
v,
|
40
|
-
r,
|
41
|
-
s,
|
42
|
-
}
|
43
|
-
: {}),
|
44
|
-
},
|
45
|
-
serializedTransaction,
|
46
|
-
type: 'cip42',
|
47
|
-
});
|
48
|
-
}
|
49
|
-
const transaction = {
|
50
|
-
chainId: (0, fromHex_js_1.hexToNumber)(chainId),
|
51
|
-
type: 'cip42',
|
52
|
-
};
|
53
|
-
if ((0, isHex_js_1.isHex)(to) && to !== '0x')
|
54
|
-
transaction.to = to;
|
55
|
-
if ((0, isHex_js_1.isHex)(gas) && gas !== '0x')
|
56
|
-
transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
|
57
|
-
if ((0, isHex_js_1.isHex)(data) && data !== '0x')
|
58
|
-
transaction.data = data;
|
59
|
-
if ((0, isHex_js_1.isHex)(nonce) && nonce !== '0x')
|
60
|
-
transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
|
61
|
-
if ((0, isHex_js_1.isHex)(value) && value !== '0x')
|
62
|
-
transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
|
63
|
-
if ((0, isHex_js_1.isHex)(feeCurrency) && feeCurrency !== '0x')
|
64
|
-
transaction.feeCurrency = feeCurrency;
|
65
|
-
if ((0, isHex_js_1.isHex)(gatewayFeeRecipient) && gatewayFeeRecipient !== '0x')
|
66
|
-
transaction.gatewayFeeRecipient = gatewayFeeRecipient;
|
67
|
-
if ((0, isHex_js_1.isHex)(gatewayFee) && gatewayFee !== '0x')
|
68
|
-
transaction.gatewayFee = (0, fromHex_js_1.hexToBigInt)(gatewayFee);
|
69
|
-
if ((0, isHex_js_1.isHex)(maxFeePerGas) && maxFeePerGas !== '0x')
|
70
|
-
transaction.maxFeePerGas = (0, fromHex_js_1.hexToBigInt)(maxFeePerGas);
|
71
|
-
if ((0, isHex_js_1.isHex)(maxPriorityFeePerGas) && maxPriorityFeePerGas !== '0x')
|
72
|
-
transaction.maxPriorityFeePerGas = (0, fromHex_js_1.hexToBigInt)(maxPriorityFeePerGas);
|
73
|
-
if (accessList.length !== 0 && accessList !== '0x')
|
74
|
-
transaction.accessList = (0, parseTransaction_js_1.parseAccessList)(accessList);
|
75
|
-
(0, serializers_js_1.assertTransactionCIP42)(transaction);
|
76
|
-
return transaction;
|
77
|
-
}
|
78
|
-
function parseTransactionCIP64(serializedTransaction) {
|
79
|
-
const transactionArray = (0, parseTransaction_js_1.toTransactionArray)(serializedTransaction);
|
80
|
-
const [chainId, nonce, maxPriorityFeePerGas, maxFeePerGas, gas, to, value, data, accessList, feeCurrency, v, r, s,] = transactionArray;
|
81
|
-
if (transactionArray.length !== 13 && transactionArray.length !== 10) {
|
82
|
-
throw new transaction_js_1.InvalidSerializedTransactionError({
|
83
|
-
attributes: {
|
84
|
-
chainId,
|
85
|
-
nonce,
|
86
|
-
maxPriorityFeePerGas,
|
87
|
-
maxFeePerGas,
|
88
|
-
gas,
|
89
|
-
to,
|
90
|
-
value,
|
91
|
-
data,
|
92
|
-
accessList,
|
93
|
-
feeCurrency,
|
94
|
-
...(transactionArray.length > 10
|
95
|
-
? {
|
96
|
-
v,
|
97
|
-
r,
|
98
|
-
s,
|
99
|
-
}
|
100
|
-
: {}),
|
101
|
-
},
|
102
|
-
serializedTransaction,
|
103
|
-
type: 'cip64',
|
104
|
-
});
|
105
|
-
}
|
106
|
-
const transaction = {
|
107
|
-
chainId: (0, fromHex_js_1.hexToNumber)(chainId),
|
108
|
-
type: 'cip64',
|
109
|
-
};
|
110
|
-
if ((0, isHex_js_1.isHex)(to) && to !== '0x')
|
111
|
-
transaction.to = to;
|
112
|
-
if ((0, isHex_js_1.isHex)(gas) && gas !== '0x')
|
113
|
-
transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
|
114
|
-
if ((0, isHex_js_1.isHex)(data) && data !== '0x')
|
115
|
-
transaction.data = data;
|
116
|
-
if ((0, isHex_js_1.isHex)(nonce) && nonce !== '0x')
|
117
|
-
transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
|
118
|
-
if ((0, isHex_js_1.isHex)(value) && value !== '0x')
|
119
|
-
transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
|
120
|
-
if ((0, isHex_js_1.isHex)(feeCurrency) && feeCurrency !== '0x')
|
121
|
-
transaction.feeCurrency = feeCurrency;
|
122
|
-
if ((0, isHex_js_1.isHex)(maxFeePerGas) && maxFeePerGas !== '0x')
|
123
|
-
transaction.maxFeePerGas = (0, fromHex_js_1.hexToBigInt)(maxFeePerGas);
|
124
|
-
if ((0, isHex_js_1.isHex)(maxPriorityFeePerGas) && maxPriorityFeePerGas !== '0x')
|
125
|
-
transaction.maxPriorityFeePerGas = (0, fromHex_js_1.hexToBigInt)(maxPriorityFeePerGas);
|
126
|
-
if (accessList.length !== 0 && accessList !== '0x')
|
127
|
-
transaction.accessList = (0, parseTransaction_js_1.parseAccessList)(accessList);
|
128
|
-
(0, serializers_js_1.assertTransactionCIP64)(transaction);
|
129
|
-
return transaction;
|
130
|
-
}
|
131
|
-
//# sourceMappingURL=parsers.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"parsers.js","sourceRoot":"","sources":["../../../chains/celo/parsers.ts"],"names":[],"mappings":";;;AAAA,gEAA+E;AAE/E,wDAAiD;AACjD,wDAAoD;AACpD,gEAA0E;AAG1E,qFAKoD;AACpD,qDAGyB;AAiBzB,SAAgB,oBAAoB,CA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ty(exports, "__esModule", { value: true });
|
3
|
-
exports.assertTransactionCIP64 = exports.assertTransactionCIP42 = exports.serializersCelo = exports.serializeTransactionCelo = void 0;
|
4
|
-
const address_js_1 = require("../../errors/address.js");
|
5
|
-
const base_js_1 = require("../../errors/base.js");
|
6
|
-
const chain_js_1 = require("../../errors/chain.js");
|
7
|
-
const node_js_1 = require("../../errors/node.js");
|
8
|
-
const isAddress_js_1 = require("../../utils/address/isAddress.js");
|
9
|
-
const concat_js_1 = require("../../utils/data/concat.js");
|
10
|
-
const trim_js_1 = require("../../utils/data/trim.js");
|
11
|
-
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
12
|
-
const toRlp_js_1 = require("../../utils/encoding/toRlp.js");
|
13
|
-
const serializeAccessList_js_1 = require("../../utils/transaction/serializeAccessList.js");
|
14
|
-
const serializeTransaction_js_1 = require("../../utils/transaction/serializeTransaction.js");
|
15
|
-
const utils_js_1 = require("./utils.js");
|
16
|
-
const serializeTransactionCelo = (tx, signature) => {
|
17
|
-
if ((0, utils_js_1.isCIP64)(tx)) {
|
18
|
-
return serializeTransactionCIP64(tx, signature);
|
19
|
-
}
|
20
|
-
else if ((0, utils_js_1.isCIP42)(tx)) {
|
21
|
-
return serializeTransactionCIP42(tx, signature);
|
22
|
-
}
|
23
|
-
else {
|
24
|
-
return (0, serializeTransaction_js_1.serializeTransaction)(tx, signature);
|
25
|
-
}
|
26
|
-
};
|
27
|
-
exports.serializeTransactionCelo = serializeTransactionCelo;
|
28
|
-
exports.serializersCelo = {
|
29
|
-
transaction: exports.serializeTransactionCelo,
|
30
|
-
};
|
31
|
-
function serializeTransactionCIP42(transaction, signature) {
|
32
|
-
assertTransactionCIP42(transaction);
|
33
|
-
const { chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, feeCurrency, gatewayFeeRecipient, gatewayFee, data, } = transaction;
|
34
|
-
const serializedTransaction = [
|
35
|
-
(0, toHex_js_1.toHex)(chainId),
|
36
|
-
nonce ? (0, toHex_js_1.toHex)(nonce) : '0x',
|
37
|
-
maxPriorityFeePerGas ? (0, toHex_js_1.toHex)(maxPriorityFeePerGas) : '0x',
|
38
|
-
maxFeePerGas ? (0, toHex_js_1.toHex)(maxFeePerGas) : '0x',
|
39
|
-
gas ? (0, toHex_js_1.toHex)(gas) : '0x',
|
40
|
-
feeCurrency ?? '0x',
|
41
|
-
gatewayFeeRecipient ?? '0x',
|
42
|
-
gatewayFee ? (0, toHex_js_1.toHex)(gatewayFee) : '0x',
|
43
|
-
to ?? '0x',
|
44
|
-
value ? (0, toHex_js_1.toHex)(value) : '0x',
|
45
|
-
data ?? '0x',
|
46
|
-
(0, serializeAccessList_js_1.serializeAccessList)(accessList),
|
47
|
-
];
|
48
|
-
if (signature) {
|
49
|
-
serializedTransaction.push(signature.v === 27n ? '0x' : (0, toHex_js_1.toHex)(1), (0, trim_js_1.trim)(signature.r), (0, trim_js_1.trim)(signature.s));
|
50
|
-
}
|
51
|
-
return (0, concat_js_1.concatHex)([
|
52
|
-
'0x7c',
|
53
|
-
(0, toRlp_js_1.toRlp)(serializedTransaction),
|
54
|
-
]);
|
55
|
-
}
|
56
|
-
function serializeTransactionCIP64(transaction, signature) {
|
57
|
-
assertTransactionCIP64(transaction);
|
58
|
-
const { chainId, gas, nonce, to, value, maxFeePerGas, maxPriorityFeePerGas, accessList, feeCurrency, data, } = transaction;
|
59
|
-
const serializedTransaction = [
|
60
|
-
(0, toHex_js_1.toHex)(chainId),
|
61
|
-
nonce ? (0, toHex_js_1.toHex)(nonce) : '0x',
|
62
|
-
maxPriorityFeePerGas ? (0, toHex_js_1.toHex)(maxPriorityFeePerGas) : '0x',
|
63
|
-
maxFeePerGas ? (0, toHex_js_1.toHex)(maxFeePerGas) : '0x',
|
64
|
-
gas ? (0, toHex_js_1.toHex)(gas) : '0x',
|
65
|
-
to ?? '0x',
|
66
|
-
value ? (0, toHex_js_1.toHex)(value) : '0x',
|
67
|
-
data ?? '0x',
|
68
|
-
(0, serializeAccessList_js_1.serializeAccessList)(accessList),
|
69
|
-
feeCurrency,
|
70
|
-
];
|
71
|
-
if (signature) {
|
72
|
-
serializedTransaction.push(signature.v === 27n ? '0x' : (0, toHex_js_1.toHex)(1), (0, trim_js_1.trim)(signature.r), (0, trim_js_1.trim)(signature.s));
|
73
|
-
}
|
74
|
-
return (0, concat_js_1.concatHex)([
|
75
|
-
'0x7b',
|
76
|
-
(0, toRlp_js_1.toRlp)(serializedTransaction),
|
77
|
-
]);
|
78
|
-
}
|
79
|
-
const MAX_MAX_FEE_PER_GAS = 2n ** 256n - 1n;
|
80
|
-
function assertTransactionCIP42(transaction) {
|
81
|
-
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to, feeCurrency, gatewayFee, gatewayFeeRecipient, } = transaction;
|
82
|
-
if (chainId <= 0)
|
83
|
-
throw new chain_js_1.InvalidChainIdError({ chainId });
|
84
|
-
if (to && !(0, isAddress_js_1.isAddress)(to))
|
85
|
-
throw new address_js_1.InvalidAddressError({ address: to });
|
86
|
-
if (gasPrice)
|
87
|
-
throw new base_js_1.BaseError('`gasPrice` is not a valid CIP-42 Transaction attribute.');
|
88
|
-
if ((0, utils_js_1.isPresent)(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
89
|
-
throw new node_js_1.FeeCapTooHighError({ maxFeePerGas });
|
90
|
-
if ((0, utils_js_1.isPresent)(maxPriorityFeePerGas) &&
|
91
|
-
(0, utils_js_1.isPresent)(maxFeePerGas) &&
|
92
|
-
maxPriorityFeePerGas > maxFeePerGas)
|
93
|
-
throw new node_js_1.TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
94
|
-
if (((0, utils_js_1.isPresent)(gatewayFee) && (0, utils_js_1.isEmpty)(gatewayFeeRecipient)) ||
|
95
|
-
((0, utils_js_1.isPresent)(gatewayFeeRecipient) && (0, utils_js_1.isEmpty)(gatewayFee))) {
|
96
|
-
throw new base_js_1.BaseError('`gatewayFee` and `gatewayFeeRecipient` must be provided together.');
|
97
|
-
}
|
98
|
-
if ((0, utils_js_1.isPresent)(feeCurrency) && !(0, isAddress_js_1.isAddress)(feeCurrency)) {
|
99
|
-
throw new base_js_1.BaseError('`feeCurrency` MUST be a token address for CIP-42 transactions.');
|
100
|
-
}
|
101
|
-
if ((0, utils_js_1.isPresent)(gatewayFeeRecipient) && !(0, isAddress_js_1.isAddress)(gatewayFeeRecipient)) {
|
102
|
-
throw new address_js_1.InvalidAddressError(gatewayFeeRecipient);
|
103
|
-
}
|
104
|
-
if ((0, utils_js_1.isEmpty)(feeCurrency) && (0, utils_js_1.isEmpty)(gatewayFeeRecipient)) {
|
105
|
-
throw new base_js_1.BaseError('Either `feeCurrency` or `gatewayFeeRecipient` must be provided for CIP-42 transactions.');
|
106
|
-
}
|
107
|
-
}
|
108
|
-
exports.assertTransactionCIP42 = assertTransactionCIP42;
|
109
|
-
function assertTransactionCIP64(transaction) {
|
110
|
-
const { chainId, maxPriorityFeePerGas, gasPrice, maxFeePerGas, to, feeCurrency, } = transaction;
|
111
|
-
if (chainId <= 0)
|
112
|
-
throw new chain_js_1.InvalidChainIdError({ chainId });
|
113
|
-
if (to && !(0, isAddress_js_1.isAddress)(to))
|
114
|
-
throw new address_js_1.InvalidAddressError({ address: to });
|
115
|
-
if (gasPrice)
|
116
|
-
throw new base_js_1.BaseError('`gasPrice` is not a valid CIP-64 Transaction attribute.');
|
117
|
-
if ((0, utils_js_1.isPresent)(maxFeePerGas) && maxFeePerGas > MAX_MAX_FEE_PER_GAS)
|
118
|
-
throw new node_js_1.FeeCapTooHighError({ maxFeePerGas });
|
119
|
-
if ((0, utils_js_1.isPresent)(maxPriorityFeePerGas) &&
|
120
|
-
(0, utils_js_1.isPresent)(maxFeePerGas) &&
|
121
|
-
maxPriorityFeePerGas > maxFeePerGas)
|
122
|
-
throw new node_js_1.TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
|
123
|
-
if ((0, utils_js_1.isPresent)(feeCurrency) && !feeCurrency?.startsWith('0x')) {
|
124
|
-
throw new base_js_1.BaseError('`feeCurrency` MUST be a token address for CIP-64 transactions.');
|
125
|
-
}
|
126
|
-
if ((0, utils_js_1.isEmpty)(feeCurrency)) {
|
127
|
-
throw new base_js_1.BaseError('`feeCurrency` must be provided for CIP-64 transactions.');
|
128
|
-
}
|
129
|
-
}
|
130
|
-
exports.assertTransactionCIP64 = assertTransactionCIP64;
|
131
|
-
//# sourceMappingURL=serializers.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../../chains/celo/serializers.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,kDAAgD;AAChD,oDAA2D;AAC3D,kDAA8E;AAI9E,mEAA4D;AAC5D,0DAAsD;AACtD,sDAA+C;AAC/C,4DAAqD;AACrD,4DAAqD;AACrD,2FAAoF;AACpF,6FAGwD;AAQxD,yCAAiE;AAE1D,MAAM,wBAAwB,GAEjC,CAAC,EAAE,EAAE,SAAS,EAAE,EAAE;IACpB,IAAI,IAAA,kBAAO,EAAC,EAAE,CAAC,EAAE;QACf,OAAO,yBAAyB,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;KAChD;SAAM,IAAI,IAAA,kBAAO,EAAC,EAAE,CAAC,EAAE;QACtB,OAAO,yBAAyB,CAAC,EAAE,EAAE,SAAS,CAAC,CAAA;KAChD;SAAM;QACL,OAAO,IAAA,8CAAoB,EAAC,EAA6B,EAAE,SAAS,CAAC,CAAA;KACtE;AACH,CAAC,CAAA;AAVY,QAAA,wBAAwB,4BAUpC;AAEY,QAAA,eAAe,GAAG;IAC7B,WAAW,EAAE,gCAAwB;CACF,CAAA;AAWrC,SAAS,yBAAyB,CAChC,WAAyC,EACzC,SAAqB;IAErB,sBAAsB,CAAC,WAAW,CAAC,CAAA;IACnC,MAAM,EACJ,OAAO,EACP,GAAG,EACH,KAAK,EACL,EAAE,EACF,KAAK,EACL,YAAY,EACZ,oBAAoB,E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,IAAA,kBAAO,EAAC,WAAW,CAAC,EAAE;QACxB,MAAM,IAAI,mBAAS,CACjB,yDAAyD,CAC1D,CAAA;KACF;AACH,CAAC;AAxCD,wDAwCC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../chains/celo/types.ts"],"names":[],"mappings":""}
|
@@ -1,44 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isCIP64 = exports.isCIP42 = exports.isEIP1559 = exports.isPresent = exports.isEmpty = void 0;
|
4
|
-
const trim_js_1 = require("../../utils/data/trim.js");
|
5
|
-
function isEmpty(value) {
|
6
|
-
return (value === 0 ||
|
7
|
-
value === 0n ||
|
8
|
-
value === undefined ||
|
9
|
-
value === null ||
|
10
|
-
value === '0' ||
|
11
|
-
value === '' ||
|
12
|
-
(typeof value === 'string' &&
|
13
|
-
((0, trim_js_1.trim)(value).toLowerCase() === '0x' ||
|
14
|
-
(0, trim_js_1.trim)(value).toLowerCase() === '0x00')));
|
15
|
-
}
|
16
|
-
exports.isEmpty = isEmpty;
|
17
|
-
function isPresent(value) {
|
18
|
-
return !isEmpty(value);
|
19
|
-
}
|
20
|
-
exports.isPresent = isPresent;
|
21
|
-
function isEIP1559(transaction) {
|
22
|
-
return (isPresent(transaction.maxFeePerGas) &&
|
23
|
-
isPresent(transaction.maxPriorityFeePerGas));
|
24
|
-
}
|
25
|
-
exports.isEIP1559 = isEIP1559;
|
26
|
-
function isCIP42(transaction) {
|
27
|
-
if (transaction.type)
|
28
|
-
return transaction.type === 'cip42';
|
29
|
-
return (isEIP1559(transaction) &&
|
30
|
-
(isPresent(transaction.feeCurrency) ||
|
31
|
-
isPresent(transaction.gatewayFeeRecipient) ||
|
32
|
-
isPresent(transaction.gatewayFee)));
|
33
|
-
}
|
34
|
-
exports.isCIP42 = isCIP42;
|
35
|
-
function isCIP64(transaction) {
|
36
|
-
if (transaction.type)
|
37
|
-
return transaction.type === 'cip64';
|
38
|
-
return (isEIP1559(transaction) &&
|
39
|
-
isPresent(transaction.feeCurrency) &&
|
40
|
-
isEmpty(transaction.gatewayFee) &&
|
41
|
-
isEmpty(transaction.gatewayFeeRecipient));
|
42
|
-
}
|
43
|
-
exports.isCIP64 = isCIP64;
|
44
|
-
//# sourceMappingURL=utils.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../chains/celo/utils.ts"],"names":[],"mappings":";;;AACA,sDAA+C;AAQ/C,SAAgB,OAAO,CACrB,KAA2C;IAE3C,OAAO,CACL,KAAK,KAAK,CAAC;QACX,KAAK,KAAK,EAAE;QACZ,KAAK,KAAK,SAAS;QACnB,KAAK,KAAK,IAAI;QACd,KAAK,KAAK,GAAG;QACb,KAAK,KAAK,EAAE;QACZ,CAAC,OAAO,KAAK,KAAK,QAAQ;YACxB,CAAC,IAAA,cAAI,EAAC,KAAgB,CAAC,CAAC,WAAW,EAAE,KAAK,IAAI;gBAC5C,IAAA,cAAI,EAAC,KAAgB,CAAC,CAAC,WAAW,EAAE,KAAK,MAAM,CAAC,CAAC,CACtD,CAAA;AACH,CAAC;AAdD,0BAcC;AAED,SAAgB,SAAS,CACvB,KAA2C;IAE3C,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAA;AACxB,CAAC;AAJD,8BAIC;AAED,SAAgB,SAAS,CACvB,WAAiE;IAEjE,OAAO,CACL,SAAS,CAAC,WAAW,CAAC,YAAY,CAAC;QACnC,SAAS,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAC5C,CAAA;AACH,CAAC;AAPD,8BAOC;AAGD,SAAgB,OAAO,CACrB,WAAiE;IAGjE,IAAI,WAAW,CAAC,IAAI;QAAE,OAAO,WAAW,CAAC,IAAI,KAAK,OAAO,CAAA;IAEzD,OAAO,CACL,SAAS,CAAC,WAAW,CAAC;QACtB,CAAC,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC;YACjC,SAAS,CAAC,WAAW,CAAC,mBAAmB,CAAC;YAC1C,SAAS,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CACrC,CAAA;AACH,CAAC;AAZD,0BAYC;AAED,SAAgB,OAAO,CACrB,WAAiE;IAGjE,IAAI,WAAW,CAAC,IAAI;QAAE,OAAO,WAAW,CAAC,IAAI,KAAK,OAAO,CAAA;IAEzD,OAAO,CACL,SAAS,CAAC,WAAW,CAAC;QACtB,SAAS,CAAC,WAAW,CAAC,WAAW,CAAC;QAClC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;QAC/B,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CACzC,CAAA;AACH,CAAC;AAZD,0BAYC"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.arbitrum = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.arbitrum = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 42161,
|
7
|
-
name: 'Arbitrum One',
|
8
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
9
|
-
rpcUrls: {
|
10
|
-
default: {
|
11
|
-
http: ['https://arb1.arbitrum.io/rpc'],
|
12
|
-
},
|
13
|
-
},
|
14
|
-
blockExplorers: {
|
15
|
-
default: { name: 'Arbiscan', url: 'https://arbiscan.io' },
|
16
|
-
},
|
17
|
-
contracts: {
|
18
|
-
multicall3: {
|
19
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
20
|
-
blockCreated: 7654707,
|
21
|
-
},
|
22
|
-
},
|
23
|
-
});
|
24
|
-
//# sourceMappingURL=arbitrum.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"arbitrum.js","sourceRoot":"","sources":["../../../chains/definitions/arbitrum.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,QAAQ,GAAiB,IAAA,4BAAW,EAAC;IAChD,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,8BAA8B,CAAC;SACvC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,qBAAqB,EAAE;KAC1D;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;CACF,CAAC,CAAA"}
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.arbitrumGoerli = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.arbitrumGoerli = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 421613,
|
7
|
-
name: 'Arbitrum Goerli',
|
8
|
-
nativeCurrency: {
|
9
|
-
name: 'Arbitrum Goerli Ether',
|
10
|
-
symbol: 'ETH',
|
11
|
-
decimals: 18,
|
12
|
-
},
|
13
|
-
rpcUrls: {
|
14
|
-
default: {
|
15
|
-
http: ['https://goerli-rollup.arbitrum.io/rpc'],
|
16
|
-
},
|
17
|
-
},
|
18
|
-
blockExplorers: {
|
19
|
-
etherscan: { name: 'Arbiscan', url: 'https://goerli.arbiscan.io' },
|
20
|
-
default: { name: 'Arbiscan', url: 'https://goerli.arbiscan.io' },
|
21
|
-
},
|
22
|
-
contracts: {
|
23
|
-
multicall3: {
|
24
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
25
|
-
blockCreated: 88114,
|
26
|
-
},
|
27
|
-
},
|
28
|
-
testnet: true,
|
29
|
-
});
|
30
|
-
//# sourceMappingURL=arbitrumGoerli.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"arbitrumGoerli.js","sourceRoot":"","sources":["../../../chains/definitions/arbitrumGoerli.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,cAAc,GAAiB,IAAA,4BAAW,EAAC;IACtD,EAAE,EAAE,MAAO;IACX,IAAI,EAAE,iBAAiB;IACvB,cAAc,EAAE;QACd,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,uCAAuC,CAAC;SAChD;KACF;IACD,cAAc,EAAE;QACd,SAAS,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,4BAA4B,EAAE;QAClE,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,4BAA4B,EAAE;KACjE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,KAAK;SACpB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.arbitrumNova = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.arbitrumNova = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 42170,
|
7
|
-
name: 'Arbitrum Nova',
|
8
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
9
|
-
rpcUrls: {
|
10
|
-
default: {
|
11
|
-
http: ['https://nova.arbitrum.io/rpc'],
|
12
|
-
},
|
13
|
-
},
|
14
|
-
blockExplorers: {
|
15
|
-
default: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' },
|
16
|
-
},
|
17
|
-
contracts: {
|
18
|
-
multicall3: {
|
19
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
20
|
-
blockCreated: 1746963,
|
21
|
-
},
|
22
|
-
},
|
23
|
-
});
|
24
|
-
//# sourceMappingURL=arbitrumNova.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"arbitrumNova.js","sourceRoot":"","sources":["../../../chains/definitions/arbitrumNova.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,YAAY,GAAiB,IAAA,4BAAW,EAAC;IACpD,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,eAAe;IACrB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,8BAA8B,CAAC;SACvC;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,0BAA0B,EAAE;KAC/D;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,OAAO;SACtB;KACF;CACF,CAAC,CAAA"}
|
@@ -1,32 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.arbitrumSepolia = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.arbitrumSepolia = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 421614,
|
7
|
-
name: 'Arbitrum Sepolia',
|
8
|
-
nativeCurrency: {
|
9
|
-
name: 'Arbitrum Sepolia Ether',
|
10
|
-
symbol: 'ETH',
|
11
|
-
decimals: 18,
|
12
|
-
},
|
13
|
-
rpcUrls: {
|
14
|
-
default: {
|
15
|
-
http: ['https://sepolia-rollup.arbitrum.io/rpc'],
|
16
|
-
},
|
17
|
-
},
|
18
|
-
blockExplorers: {
|
19
|
-
default: {
|
20
|
-
name: 'Blockscout',
|
21
|
-
url: 'https://sepolia-explorer.arbitrum.io',
|
22
|
-
},
|
23
|
-
},
|
24
|
-
contracts: {
|
25
|
-
multicall3: {
|
26
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
27
|
-
blockCreated: 81930,
|
28
|
-
},
|
29
|
-
},
|
30
|
-
testnet: true,
|
31
|
-
});
|
32
|
-
//# sourceMappingURL=arbitrumSepolia.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"arbitrumSepolia.js","sourceRoot":"","sources":["../../../chains/definitions/arbitrumSepolia.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,eAAe,GAAiB,IAAA,4BAAW,EAAC;IACvD,EAAE,EAAE,MAAO;IACX,IAAI,EAAE,kBAAkB;IACxB,cAAc,EAAE;QACd,IAAI,EAAE,wBAAwB;QAC9B,MAAM,EAAE,KAAK;QACb,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE,CAAC,wCAAwC,CAAC;SACjD;KACF;IACD,cAAc,EAAE;QACd,OAAO,EAAE;YACP,IAAI,EAAE,YAAY;YAClB,GAAG,EAAE,sCAAsC;SAC5C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,KAAK;SACpB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.astar = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.astar = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 592,
|
7
|
-
name: 'Astar',
|
8
|
-
network: 'astar-mainnet',
|
9
|
-
nativeCurrency: {
|
10
|
-
name: 'Astar',
|
11
|
-
symbol: 'ASTR',
|
12
|
-
decimals: 18,
|
13
|
-
},
|
14
|
-
rpcUrls: {
|
15
|
-
public: { http: ['https://astar.api.onfinality.io/public'] },
|
16
|
-
default: { http: ['https://astar.api.onfinality.io/public'] },
|
17
|
-
},
|
18
|
-
blockExplorers: {
|
19
|
-
default: { name: 'Astar Subscan', url: 'https://astar.subscan.io' },
|
20
|
-
},
|
21
|
-
contracts: {
|
22
|
-
multicall3: {
|
23
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
24
|
-
blockCreated: 761794,
|
25
|
-
},
|
26
|
-
},
|
27
|
-
testnet: false,
|
28
|
-
});
|
29
|
-
//# sourceMappingURL=astar.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"astar.js","sourceRoot":"","sources":["../../../chains/definitions/astar.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,KAAK,GAAiB,IAAA,4BAAW,EAAC;IAC7C,EAAE,EAAE,GAAG;IACP,IAAI,EAAE,OAAO;IACb,OAAO,EAAE,eAAe;IACxB,cAAc,EAAE;QACd,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,MAAM;QACd,QAAQ,EAAE,EAAE;KACb;IACD,OAAO,EAAE;QACP,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,wCAAwC,CAAC,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,wCAAwC,CAAC,EAAE;KAC9D;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,EAAE,0BAA0B,EAAE;KACpE;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,MAAM;SACrB;KACF;IACD,OAAO,EAAE,KAAK;CACf,CAAC,CAAA"}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.astarZkatana = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.astarZkatana = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 1261120,
|
7
|
-
name: 'Astar zkEVM Testnet zKatana',
|
8
|
-
network: 'zKatana',
|
9
|
-
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
|
10
|
-
rpcUrls: {
|
11
|
-
default: {
|
12
|
-
http: [
|
13
|
-
'https://rpc.zkatana.gelato.digital',
|
14
|
-
'https://rpc.startale.com/zkatana',
|
15
|
-
],
|
16
|
-
},
|
17
|
-
public: {
|
18
|
-
http: [
|
19
|
-
'https://rpc.zkatana.gelato.digital',
|
20
|
-
'https://rpc.startale.com/zkatana',
|
21
|
-
],
|
22
|
-
},
|
23
|
-
},
|
24
|
-
blockExplorers: {
|
25
|
-
blockscout: {
|
26
|
-
name: 'Blockscout zKatana chain explorer',
|
27
|
-
url: 'https://zkatana.blockscout.com',
|
28
|
-
},
|
29
|
-
default: {
|
30
|
-
name: 'zKatana Explorer',
|
31
|
-
url: 'https://zkatana.explorer.startale.com',
|
32
|
-
},
|
33
|
-
},
|
34
|
-
contracts: {
|
35
|
-
multicall3: {
|
36
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
37
|
-
blockCreated: 31317,
|
38
|
-
},
|
39
|
-
},
|
40
|
-
testnet: true,
|
41
|
-
});
|
42
|
-
//# sourceMappingURL=astarZkatana.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"astarZkatana.js","sourceRoot":"","sources":["../../../chains/definitions/astarZkatana.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,YAAY,GAAiB,IAAA,4BAAW,EAAC;IACpD,EAAE,EAAE,OAAS;IACb,IAAI,EAAE,6BAA6B;IACnC,OAAO,EAAE,SAAS;IAClB,cAAc,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE;IAC9D,OAAO,EAAE;QACP,OAAO,EAAE;YACP,IAAI,EAAE;gBACJ,oCAAoC;gBACpC,kCAAkC;aACnC;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,oCAAoC;gBACpC,kCAAkC;aACnC;SACF;KACF;IACD,cAAc,EAAE;QACd,UAAU,EAAE;YACV,IAAI,EAAE,mCAAmC;YACzC,GAAG,EAAE,gCAAgC;SACtC;QACD,OAAO,EAAE;YACP,IAAI,EAAE,kBAAkB;YACxB,GAAG,EAAE,uCAAuC;SAC7C;KACF;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,KAAK;SACpB;KACF;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -1,20 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.aurora = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.aurora = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 1313161554,
|
7
|
-
name: 'Aurora',
|
8
|
-
nativeCurrency: {
|
9
|
-
decimals: 18,
|
10
|
-
name: 'Ether',
|
11
|
-
symbol: 'ETH',
|
12
|
-
},
|
13
|
-
rpcUrls: {
|
14
|
-
default: { http: ['https://mainnet.aurora.dev'] },
|
15
|
-
},
|
16
|
-
blockExplorers: {
|
17
|
-
default: { name: 'Aurorascan', url: 'https://aurorascan.dev' },
|
18
|
-
},
|
19
|
-
});
|
20
|
-
//# sourceMappingURL=aurora.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"aurora.js","sourceRoot":"","sources":["../../../chains/definitions/aurora.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,MAAM,GAAiB,IAAA,4BAAW,EAAC;IAC9C,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,4BAA4B,CAAC,EAAE;KAClD;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,wBAAwB,EAAE;KAC/D;CACF,CAAC,CAAA"}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.auroraTestnet = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.auroraTestnet = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 1313161555,
|
7
|
-
name: 'Aurora Testnet',
|
8
|
-
nativeCurrency: {
|
9
|
-
decimals: 18,
|
10
|
-
name: 'Ether',
|
11
|
-
symbol: 'ETH',
|
12
|
-
},
|
13
|
-
rpcUrls: {
|
14
|
-
default: { http: ['https://testnet.aurora.dev'] },
|
15
|
-
},
|
16
|
-
blockExplorers: {
|
17
|
-
default: { name: 'Aurorascan', url: 'https://testnet.aurorascan.dev' },
|
18
|
-
},
|
19
|
-
testnet: true,
|
20
|
-
});
|
21
|
-
//# sourceMappingURL=auroraTestnet.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"auroraTestnet.js","sourceRoot":"","sources":["../../../chains/definitions/auroraTestnet.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,aAAa,GAAiB,IAAA,4BAAW,EAAC;IACrD,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,gBAAgB;IACtB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,KAAK;KACd;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,4BAA4B,CAAC,EAAE;KAClD;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,gCAAgC,EAAE;KACvE;IACD,OAAO,EAAE,IAAI;CACd,CAAC,CAAA"}
|
@@ -1,26 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.avalanche = void 0;
|
4
|
-
const defineChain_js_1 = require("../../utils/chain/defineChain.js");
|
5
|
-
exports.avalanche = (0, defineChain_js_1.defineChain)({
|
6
|
-
id: 43114,
|
7
|
-
name: 'Avalanche',
|
8
|
-
nativeCurrency: {
|
9
|
-
decimals: 18,
|
10
|
-
name: 'Avalanche',
|
11
|
-
symbol: 'AVAX',
|
12
|
-
},
|
13
|
-
rpcUrls: {
|
14
|
-
default: { http: ['https://api.avax.network/ext/bc/C/rpc'] },
|
15
|
-
},
|
16
|
-
blockExplorers: {
|
17
|
-
default: { name: 'SnowTrace', url: 'https://snowtrace.io' },
|
18
|
-
},
|
19
|
-
contracts: {
|
20
|
-
multicall3: {
|
21
|
-
address: '0xca11bde05977b3631167028862be2a173976ca11',
|
22
|
-
blockCreated: 11907934,
|
23
|
-
},
|
24
|
-
},
|
25
|
-
});
|
26
|
-
//# sourceMappingURL=avalanche.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"avalanche.js","sourceRoot":"","sources":["../../../chains/definitions/avalanche.ts"],"names":[],"mappings":";;;AAAA,qEAA8D;AAEjD,QAAA,SAAS,GAAiB,IAAA,4BAAW,EAAC;IACjD,EAAE,EAAE,KAAM;IACV,IAAI,EAAE,WAAW;IACjB,cAAc,EAAE;QACd,QAAQ,EAAE,EAAE;QACZ,IAAI,EAAE,WAAW;QACjB,MAAM,EAAE,MAAM;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,EAAE,IAAI,EAAE,CAAC,uCAAuC,CAAC,EAAE;KAC7D;IACD,cAAc,EAAE;QACd,OAAO,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,GAAG,EAAE,sBAAsB,EAAE;KAC5D;IACD,SAAS,EAAE;QACT,UAAU,EAAE;YACV,OAAO,EAAE,4CAA4C;YACrD,YAAY,EAAE,QAAQ;SACvB;KACF;CACF,CAAC,CAAA"}
|