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,48 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.normalizeSignature = void 0;
|
4
|
-
const base_js_1 = require("../../errors/base.js");
|
5
|
-
function normalizeSignature(signature) {
|
6
|
-
let active = true;
|
7
|
-
let current = '';
|
8
|
-
let level = 0;
|
9
|
-
let result = '';
|
10
|
-
let valid = false;
|
11
|
-
for (let i = 0; i < signature.length; i++) {
|
12
|
-
const char = signature[i];
|
13
|
-
if (['(', ')', ','].includes(char))
|
14
|
-
active = true;
|
15
|
-
if (char === '(')
|
16
|
-
level++;
|
17
|
-
if (char === ')')
|
18
|
-
level--;
|
19
|
-
if (!active)
|
20
|
-
continue;
|
21
|
-
if (level === 0) {
|
22
|
-
if (char === ' ' && ['event', 'function', ''].includes(result))
|
23
|
-
result = '';
|
24
|
-
else {
|
25
|
-
result += char;
|
26
|
-
if (char === ')') {
|
27
|
-
valid = true;
|
28
|
-
break;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
continue;
|
32
|
-
}
|
33
|
-
if (char === ' ') {
|
34
|
-
if (signature[i - 1] !== ',' && current !== ',' && current !== ',(') {
|
35
|
-
current = '';
|
36
|
-
active = false;
|
37
|
-
}
|
38
|
-
continue;
|
39
|
-
}
|
40
|
-
result += char;
|
41
|
-
current += char;
|
42
|
-
}
|
43
|
-
if (!valid)
|
44
|
-
throw new base_js_1.BaseError('Unable to normalize signature.');
|
45
|
-
return result;
|
46
|
-
}
|
47
|
-
exports.normalizeSignature = normalizeSignature;
|
48
|
-
//# sourceMappingURL=normalizeSignature.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"normalizeSignature.js","sourceRoot":"","sources":["../../../utils/hash/normalizeSignature.ts"],"names":[],"mappings":";;;AAAA,kDAAgD;AAOhD,SAAgB,kBAAkB,CAChC,SAAuC;IAEvC,IAAI,MAAM,GAAG,IAAI,CAAA;IACjB,IAAI,OAAO,GAAG,EAAE,CAAA;IAChB,IAAI,KAAK,GAAG,CAAC,CAAA;IACb,IAAI,MAAM,GAAG,EAAE,CAAA;IACf,IAAI,KAAK,GAAG,KAAK,CAAA;IAEjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACzC,MAAM,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAA;QAGzB,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YAAE,MAAM,GAAG,IAAI,CAAA;QAGjD,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QACzB,IAAI,IAAI,KAAK,GAAG;YAAE,KAAK,EAAE,CAAA;QAGzB,IAAI,CAAC,MAAM;YAAE,SAAQ;QAGrB,IAAI,KAAK,KAAK,CAAC,EAAE;YACf,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;gBAC5D,MAAM,GAAG,EAAE,CAAA;iBACR;gBACH,MAAM,IAAI,IAAI,CAAA;gBAGd,IAAI,IAAI,KAAK,GAAG,EAAE;oBAChB,KAAK,GAAG,IAAI,CAAA;oBACZ,MAAK;iBACN;aACF;YAED,SAAQ;SACT;QAGD,IAAI,IAAI,KAAK,GAAG,EAAE;YAEhB,IAAI,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,IAAI,OAAO,KAAK,GAAG,IAAI,OAAO,KAAK,IAAI,EAAE;gBACnE,OAAO,GAAG,EAAE,CAAA;gBACZ,MAAM,GAAG,KAAK,CAAA;aACf;YACD,SAAQ;SACT;QAED,MAAM,IAAI,IAAI,CAAA;QACd,OAAO,IAAI,IAAI,CAAA;KAChB;IAED,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,mBAAS,CAAC,gCAAgC,CAAC,CAAA;IAEjE,OAAO,MAAM,CAAA;AACf,CAAC;AAxDD,gDAwDC"}
|
package/_cjs/utils/index.js
DELETED
@@ -1,213 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.isHex = exports.isBytes = exports.concatHex = exports.concatBytes = exports.concat = exports.isAddressEqual = exports.isAddress = exports.getAddress = exports.getCreate2Address = exports.getCreateAddress = exports.getContractAddress = exports.publicKeyToAddress = exports.parseAccount = exports.formatAbiParams = exports.formatAbiItem = exports.formatAbiItemWithArgs = exports.encodePacked = exports.parseAbiParameters = exports.parseAbiParameter = exports.parseAbiItem = exports.parseAbi = exports.getAbiItem = exports.encodeFunctionResult = exports.encodeFunctionData = exports.encodeEventTopics = exports.encodeErrorResult = exports.encodeDeployData = exports.encodeAbiParameters = exports.decodeFunctionResult = exports.decodeFunctionData = exports.decodeEventLog = exports.decodeErrorResult = exports.decodeAbiParameters = exports.validateTypedData = exports.stringify = exports.rpc = exports.getSocket = exports.integerRegex = exports.bytesRegex = exports.arrayRegex = exports.getChainContractAddress = exports.extractChain = exports.defineChain = exports.assertCurrentChain = exports.offchainLookupSignature = exports.offchainLookupAbiItem = exports.offchainLookup = exports.ccipFetch = exports.buildRequest = exports.isDeterministicError = void 0;
|
4
|
-
exports.getFunctionSelector = exports.getEventSelector = exports.defineFormatter = exports.getTransactionError = exports.getEstimateGasError = exports.getContractError = exports.getCallError = exports.getNodeError = exports.containsNodeError = exports.fromRlp = exports.hexToString = exports.hexToNumber = exports.hexToBigInt = exports.hexToBool = exports.fromHex = exports.fromBytes = exports.bytesToString = exports.bytesToNumber = exports.bytesToBool = exports.bytesToBigint = exports.bytesToBigInt = exports.stringToHex = exports.numberToHex = exports.toHex = exports.bytesToHex = exports.boolToHex = exports.stringToBytes = exports.numberToBytes = exports.hexToBytes = exports.toBytes = exports.boolToBytes = exports.toRlp = exports.extract = exports.formatTransactionRequest = exports.defineTransactionRequest = exports.defineTransactionReceipt = exports.formatLog = exports.transactionType = exports.formatTransaction = exports.defineTransaction = exports.formatBlock = exports.defineBlock = exports.trim = exports.sliceHex = exports.sliceBytes = exports.slice = exports.size = exports.padHex = exports.padBytes = exports.pad = void 0;
|
5
|
-
exports.parseGwei = exports.parseEther = exports.parseUnits = exports.formatUnits = exports.formatGwei = exports.formatEther = exports.serializeAccessList = exports.serializeTransaction = exports.parseTransaction = exports.assertTransactionLegacy = exports.assertTransactionEIP2930 = exports.assertTransactionEIP1559 = exports.assertRequest = exports.getTransactionType = exports.getSerializedTransactionType = exports.hashMessage = exports.verifyTypedData = exports.verifyMessage = exports.recoverTypedDataAddress = exports.recoverPublicKey = exports.recoverMessageAddress = exports.recoverAddress = exports.hashTypedData = exports.keccak256 = exports.isHash = void 0;
|
6
|
-
var buildRequest_js_1 = require("./buildRequest.js");
|
7
|
-
Object.defineProperty(exports, "isDeterministicError", { enumerable: true, get: function () { return buildRequest_js_1.isDeterministicError; } });
|
8
|
-
Object.defineProperty(exports, "buildRequest", { enumerable: true, get: function () { return buildRequest_js_1.buildRequest; } });
|
9
|
-
var ccip_js_1 = require("./ccip.js");
|
10
|
-
Object.defineProperty(exports, "ccipFetch", { enumerable: true, get: function () { return ccip_js_1.ccipFetch; } });
|
11
|
-
Object.defineProperty(exports, "offchainLookup", { enumerable: true, get: function () { return ccip_js_1.offchainLookup; } });
|
12
|
-
Object.defineProperty(exports, "offchainLookupAbiItem", { enumerable: true, get: function () { return ccip_js_1.offchainLookupAbiItem; } });
|
13
|
-
Object.defineProperty(exports, "offchainLookupSignature", { enumerable: true, get: function () { return ccip_js_1.offchainLookupSignature; } });
|
14
|
-
var assertCurrentChain_js_1 = require("./chain/assertCurrentChain.js");
|
15
|
-
Object.defineProperty(exports, "assertCurrentChain", { enumerable: true, get: function () { return assertCurrentChain_js_1.assertCurrentChain; } });
|
16
|
-
var defineChain_js_1 = require("./chain/defineChain.js");
|
17
|
-
Object.defineProperty(exports, "defineChain", { enumerable: true, get: function () { return defineChain_js_1.defineChain; } });
|
18
|
-
var extractChain_js_1 = require("./chain/extractChain.js");
|
19
|
-
Object.defineProperty(exports, "extractChain", { enumerable: true, get: function () { return extractChain_js_1.extractChain; } });
|
20
|
-
var getChainContractAddress_js_1 = require("./chain/getChainContractAddress.js");
|
21
|
-
Object.defineProperty(exports, "getChainContractAddress", { enumerable: true, get: function () { return getChainContractAddress_js_1.getChainContractAddress; } });
|
22
|
-
var regex_js_1 = require("./regex.js");
|
23
|
-
Object.defineProperty(exports, "arrayRegex", { enumerable: true, get: function () { return regex_js_1.arrayRegex; } });
|
24
|
-
Object.defineProperty(exports, "bytesRegex", { enumerable: true, get: function () { return regex_js_1.bytesRegex; } });
|
25
|
-
Object.defineProperty(exports, "integerRegex", { enumerable: true, get: function () { return regex_js_1.integerRegex; } });
|
26
|
-
var rpc_js_1 = require("./rpc.js");
|
27
|
-
Object.defineProperty(exports, "getSocket", { enumerable: true, get: function () { return rpc_js_1.getSocket; } });
|
28
|
-
Object.defineProperty(exports, "rpc", { enumerable: true, get: function () { return rpc_js_1.rpc; } });
|
29
|
-
var stringify_js_1 = require("./stringify.js");
|
30
|
-
Object.defineProperty(exports, "stringify", { enumerable: true, get: function () { return stringify_js_1.stringify; } });
|
31
|
-
var typedData_js_1 = require("./typedData.js");
|
32
|
-
Object.defineProperty(exports, "validateTypedData", { enumerable: true, get: function () { return typedData_js_1.validateTypedData; } });
|
33
|
-
var decodeAbiParameters_js_1 = require("./abi/decodeAbiParameters.js");
|
34
|
-
Object.defineProperty(exports, "decodeAbiParameters", { enumerable: true, get: function () { return decodeAbiParameters_js_1.decodeAbiParameters; } });
|
35
|
-
var decodeErrorResult_js_1 = require("./abi/decodeErrorResult.js");
|
36
|
-
Object.defineProperty(exports, "decodeErrorResult", { enumerable: true, get: function () { return decodeErrorResult_js_1.decodeErrorResult; } });
|
37
|
-
var decodeEventLog_js_1 = require("./abi/decodeEventLog.js");
|
38
|
-
Object.defineProperty(exports, "decodeEventLog", { enumerable: true, get: function () { return decodeEventLog_js_1.decodeEventLog; } });
|
39
|
-
var decodeFunctionData_js_1 = require("./abi/decodeFunctionData.js");
|
40
|
-
Object.defineProperty(exports, "decodeFunctionData", { enumerable: true, get: function () { return decodeFunctionData_js_1.decodeFunctionData; } });
|
41
|
-
var decodeFunctionResult_js_1 = require("./abi/decodeFunctionResult.js");
|
42
|
-
Object.defineProperty(exports, "decodeFunctionResult", { enumerable: true, get: function () { return decodeFunctionResult_js_1.decodeFunctionResult; } });
|
43
|
-
var encodeAbiParameters_js_1 = require("./abi/encodeAbiParameters.js");
|
44
|
-
Object.defineProperty(exports, "encodeAbiParameters", { enumerable: true, get: function () { return encodeAbiParameters_js_1.encodeAbiParameters; } });
|
45
|
-
var encodeDeployData_js_1 = require("./abi/encodeDeployData.js");
|
46
|
-
Object.defineProperty(exports, "encodeDeployData", { enumerable: true, get: function () { return encodeDeployData_js_1.encodeDeployData; } });
|
47
|
-
var encodeErrorResult_js_1 = require("./abi/encodeErrorResult.js");
|
48
|
-
Object.defineProperty(exports, "encodeErrorResult", { enumerable: true, get: function () { return encodeErrorResult_js_1.encodeErrorResult; } });
|
49
|
-
var encodeEventTopics_js_1 = require("./abi/encodeEventTopics.js");
|
50
|
-
Object.defineProperty(exports, "encodeEventTopics", { enumerable: true, get: function () { return encodeEventTopics_js_1.encodeEventTopics; } });
|
51
|
-
var encodeFunctionData_js_1 = require("./abi/encodeFunctionData.js");
|
52
|
-
Object.defineProperty(exports, "encodeFunctionData", { enumerable: true, get: function () { return encodeFunctionData_js_1.encodeFunctionData; } });
|
53
|
-
var encodeFunctionResult_js_1 = require("./abi/encodeFunctionResult.js");
|
54
|
-
Object.defineProperty(exports, "encodeFunctionResult", { enumerable: true, get: function () { return encodeFunctionResult_js_1.encodeFunctionResult; } });
|
55
|
-
var getAbiItem_js_1 = require("./abi/getAbiItem.js");
|
56
|
-
Object.defineProperty(exports, "getAbiItem", { enumerable: true, get: function () { return getAbiItem_js_1.getAbiItem; } });
|
57
|
-
var abitype_1 = require("abitype");
|
58
|
-
Object.defineProperty(exports, "parseAbi", { enumerable: true, get: function () { return abitype_1.parseAbi; } });
|
59
|
-
Object.defineProperty(exports, "parseAbiItem", { enumerable: true, get: function () { return abitype_1.parseAbiItem; } });
|
60
|
-
Object.defineProperty(exports, "parseAbiParameter", { enumerable: true, get: function () { return abitype_1.parseAbiParameter; } });
|
61
|
-
Object.defineProperty(exports, "parseAbiParameters", { enumerable: true, get: function () { return abitype_1.parseAbiParameters; } });
|
62
|
-
var encodePacked_js_1 = require("./abi/encodePacked.js");
|
63
|
-
Object.defineProperty(exports, "encodePacked", { enumerable: true, get: function () { return encodePacked_js_1.encodePacked; } });
|
64
|
-
var formatAbiItemWithArgs_js_1 = require("./abi/formatAbiItemWithArgs.js");
|
65
|
-
Object.defineProperty(exports, "formatAbiItemWithArgs", { enumerable: true, get: function () { return formatAbiItemWithArgs_js_1.formatAbiItemWithArgs; } });
|
66
|
-
var formatAbiItem_js_1 = require("./abi/formatAbiItem.js");
|
67
|
-
Object.defineProperty(exports, "formatAbiItem", { enumerable: true, get: function () { return formatAbiItem_js_1.formatAbiItem; } });
|
68
|
-
Object.defineProperty(exports, "formatAbiParams", { enumerable: true, get: function () { return formatAbiItem_js_1.formatAbiParams; } });
|
69
|
-
var parseAccount_js_1 = require("../accounts/utils/parseAccount.js");
|
70
|
-
Object.defineProperty(exports, "parseAccount", { enumerable: true, get: function () { return parseAccount_js_1.parseAccount; } });
|
71
|
-
var publicKeyToAddress_js_1 = require("../accounts/utils/publicKeyToAddress.js");
|
72
|
-
Object.defineProperty(exports, "publicKeyToAddress", { enumerable: true, get: function () { return publicKeyToAddress_js_1.publicKeyToAddress; } });
|
73
|
-
var getContractAddress_js_1 = require("./address/getContractAddress.js");
|
74
|
-
Object.defineProperty(exports, "getContractAddress", { enumerable: true, get: function () { return getContractAddress_js_1.getContractAddress; } });
|
75
|
-
Object.defineProperty(exports, "getCreateAddress", { enumerable: true, get: function () { return getContractAddress_js_1.getCreateAddress; } });
|
76
|
-
Object.defineProperty(exports, "getCreate2Address", { enumerable: true, get: function () { return getContractAddress_js_1.getCreate2Address; } });
|
77
|
-
var getAddress_js_1 = require("./address/getAddress.js");
|
78
|
-
Object.defineProperty(exports, "getAddress", { enumerable: true, get: function () { return getAddress_js_1.getAddress; } });
|
79
|
-
var isAddress_js_1 = require("./address/isAddress.js");
|
80
|
-
Object.defineProperty(exports, "isAddress", { enumerable: true, get: function () { return isAddress_js_1.isAddress; } });
|
81
|
-
var isAddressEqual_js_1 = require("./address/isAddressEqual.js");
|
82
|
-
Object.defineProperty(exports, "isAddressEqual", { enumerable: true, get: function () { return isAddressEqual_js_1.isAddressEqual; } });
|
83
|
-
var concat_js_1 = require("./data/concat.js");
|
84
|
-
Object.defineProperty(exports, "concat", { enumerable: true, get: function () { return concat_js_1.concat; } });
|
85
|
-
Object.defineProperty(exports, "concatBytes", { enumerable: true, get: function () { return concat_js_1.concatBytes; } });
|
86
|
-
Object.defineProperty(exports, "concatHex", { enumerable: true, get: function () { return concat_js_1.concatHex; } });
|
87
|
-
var isBytes_js_1 = require("./data/isBytes.js");
|
88
|
-
Object.defineProperty(exports, "isBytes", { enumerable: true, get: function () { return isBytes_js_1.isBytes; } });
|
89
|
-
var isHex_js_1 = require("./data/isHex.js");
|
90
|
-
Object.defineProperty(exports, "isHex", { enumerable: true, get: function () { return isHex_js_1.isHex; } });
|
91
|
-
var pad_js_1 = require("./data/pad.js");
|
92
|
-
Object.defineProperty(exports, "pad", { enumerable: true, get: function () { return pad_js_1.pad; } });
|
93
|
-
Object.defineProperty(exports, "padBytes", { enumerable: true, get: function () { return pad_js_1.padBytes; } });
|
94
|
-
Object.defineProperty(exports, "padHex", { enumerable: true, get: function () { return pad_js_1.padHex; } });
|
95
|
-
var size_js_1 = require("./data/size.js");
|
96
|
-
Object.defineProperty(exports, "size", { enumerable: true, get: function () { return size_js_1.size; } });
|
97
|
-
var slice_js_1 = require("./data/slice.js");
|
98
|
-
Object.defineProperty(exports, "slice", { enumerable: true, get: function () { return slice_js_1.slice; } });
|
99
|
-
Object.defineProperty(exports, "sliceBytes", { enumerable: true, get: function () { return slice_js_1.sliceBytes; } });
|
100
|
-
Object.defineProperty(exports, "sliceHex", { enumerable: true, get: function () { return slice_js_1.sliceHex; } });
|
101
|
-
var trim_js_1 = require("./data/trim.js");
|
102
|
-
Object.defineProperty(exports, "trim", { enumerable: true, get: function () { return trim_js_1.trim; } });
|
103
|
-
var block_js_1 = require("./formatters/block.js");
|
104
|
-
Object.defineProperty(exports, "defineBlock", { enumerable: true, get: function () { return block_js_1.defineBlock; } });
|
105
|
-
Object.defineProperty(exports, "formatBlock", { enumerable: true, get: function () { return block_js_1.formatBlock; } });
|
106
|
-
var transaction_js_1 = require("./formatters/transaction.js");
|
107
|
-
Object.defineProperty(exports, "defineTransaction", { enumerable: true, get: function () { return transaction_js_1.defineTransaction; } });
|
108
|
-
Object.defineProperty(exports, "formatTransaction", { enumerable: true, get: function () { return transaction_js_1.formatTransaction; } });
|
109
|
-
Object.defineProperty(exports, "transactionType", { enumerable: true, get: function () { return transaction_js_1.transactionType; } });
|
110
|
-
var log_js_1 = require("./formatters/log.js");
|
111
|
-
Object.defineProperty(exports, "formatLog", { enumerable: true, get: function () { return log_js_1.formatLog; } });
|
112
|
-
var transactionReceipt_js_1 = require("./formatters/transactionReceipt.js");
|
113
|
-
Object.defineProperty(exports, "defineTransactionReceipt", { enumerable: true, get: function () { return transactionReceipt_js_1.defineTransactionReceipt; } });
|
114
|
-
var transactionRequest_js_1 = require("./formatters/transactionRequest.js");
|
115
|
-
Object.defineProperty(exports, "defineTransactionRequest", { enumerable: true, get: function () { return transactionRequest_js_1.defineTransactionRequest; } });
|
116
|
-
Object.defineProperty(exports, "formatTransactionRequest", { enumerable: true, get: function () { return transactionRequest_js_1.formatTransactionRequest; } });
|
117
|
-
var extract_js_1 = require("./formatters/extract.js");
|
118
|
-
Object.defineProperty(exports, "extract", { enumerable: true, get: function () { return extract_js_1.extract; } });
|
119
|
-
var toRlp_js_1 = require("./encoding/toRlp.js");
|
120
|
-
Object.defineProperty(exports, "toRlp", { enumerable: true, get: function () { return toRlp_js_1.toRlp; } });
|
121
|
-
var toBytes_js_1 = require("./encoding/toBytes.js");
|
122
|
-
Object.defineProperty(exports, "boolToBytes", { enumerable: true, get: function () { return toBytes_js_1.boolToBytes; } });
|
123
|
-
Object.defineProperty(exports, "toBytes", { enumerable: true, get: function () { return toBytes_js_1.toBytes; } });
|
124
|
-
Object.defineProperty(exports, "hexToBytes", { enumerable: true, get: function () { return toBytes_js_1.hexToBytes; } });
|
125
|
-
Object.defineProperty(exports, "numberToBytes", { enumerable: true, get: function () { return toBytes_js_1.numberToBytes; } });
|
126
|
-
Object.defineProperty(exports, "stringToBytes", { enumerable: true, get: function () { return toBytes_js_1.stringToBytes; } });
|
127
|
-
var toHex_js_1 = require("./encoding/toHex.js");
|
128
|
-
Object.defineProperty(exports, "boolToHex", { enumerable: true, get: function () { return toHex_js_1.boolToHex; } });
|
129
|
-
Object.defineProperty(exports, "bytesToHex", { enumerable: true, get: function () { return toHex_js_1.bytesToHex; } });
|
130
|
-
Object.defineProperty(exports, "toHex", { enumerable: true, get: function () { return toHex_js_1.toHex; } });
|
131
|
-
Object.defineProperty(exports, "numberToHex", { enumerable: true, get: function () { return toHex_js_1.numberToHex; } });
|
132
|
-
Object.defineProperty(exports, "stringToHex", { enumerable: true, get: function () { return toHex_js_1.stringToHex; } });
|
133
|
-
var fromBytes_js_1 = require("./encoding/fromBytes.js");
|
134
|
-
Object.defineProperty(exports, "bytesToBigInt", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBigInt; } });
|
135
|
-
Object.defineProperty(exports, "bytesToBigint", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBigInt; } });
|
136
|
-
Object.defineProperty(exports, "bytesToBool", { enumerable: true, get: function () { return fromBytes_js_1.bytesToBool; } });
|
137
|
-
Object.defineProperty(exports, "bytesToNumber", { enumerable: true, get: function () { return fromBytes_js_1.bytesToNumber; } });
|
138
|
-
Object.defineProperty(exports, "bytesToString", { enumerable: true, get: function () { return fromBytes_js_1.bytesToString; } });
|
139
|
-
Object.defineProperty(exports, "fromBytes", { enumerable: true, get: function () { return fromBytes_js_1.fromBytes; } });
|
140
|
-
var fromHex_js_1 = require("./encoding/fromHex.js");
|
141
|
-
Object.defineProperty(exports, "fromHex", { enumerable: true, get: function () { return fromHex_js_1.fromHex; } });
|
142
|
-
Object.defineProperty(exports, "hexToBool", { enumerable: true, get: function () { return fromHex_js_1.hexToBool; } });
|
143
|
-
Object.defineProperty(exports, "hexToBigInt", { enumerable: true, get: function () { return fromHex_js_1.hexToBigInt; } });
|
144
|
-
Object.defineProperty(exports, "hexToNumber", { enumerable: true, get: function () { return fromHex_js_1.hexToNumber; } });
|
145
|
-
Object.defineProperty(exports, "hexToString", { enumerable: true, get: function () { return fromHex_js_1.hexToString; } });
|
146
|
-
var fromRlp_js_1 = require("./encoding/fromRlp.js");
|
147
|
-
Object.defineProperty(exports, "fromRlp", { enumerable: true, get: function () { return fromRlp_js_1.fromRlp; } });
|
148
|
-
var getNodeError_js_1 = require("./errors/getNodeError.js");
|
149
|
-
Object.defineProperty(exports, "containsNodeError", { enumerable: true, get: function () { return getNodeError_js_1.containsNodeError; } });
|
150
|
-
Object.defineProperty(exports, "getNodeError", { enumerable: true, get: function () { return getNodeError_js_1.getNodeError; } });
|
151
|
-
var getCallError_js_1 = require("./errors/getCallError.js");
|
152
|
-
Object.defineProperty(exports, "getCallError", { enumerable: true, get: function () { return getCallError_js_1.getCallError; } });
|
153
|
-
var getContractError_js_1 = require("./errors/getContractError.js");
|
154
|
-
Object.defineProperty(exports, "getContractError", { enumerable: true, get: function () { return getContractError_js_1.getContractError; } });
|
155
|
-
var getEstimateGasError_js_1 = require("./errors/getEstimateGasError.js");
|
156
|
-
Object.defineProperty(exports, "getEstimateGasError", { enumerable: true, get: function () { return getEstimateGasError_js_1.getEstimateGasError; } });
|
157
|
-
var getTransactionError_js_1 = require("./errors/getTransactionError.js");
|
158
|
-
Object.defineProperty(exports, "getTransactionError", { enumerable: true, get: function () { return getTransactionError_js_1.getTransactionError; } });
|
159
|
-
var formatter_js_1 = require("./formatters/formatter.js");
|
160
|
-
Object.defineProperty(exports, "defineFormatter", { enumerable: true, get: function () { return formatter_js_1.defineFormatter; } });
|
161
|
-
var getEventSelector_js_1 = require("./hash/getEventSelector.js");
|
162
|
-
Object.defineProperty(exports, "getEventSelector", { enumerable: true, get: function () { return getEventSelector_js_1.getEventSelector; } });
|
163
|
-
var getFunctionSelector_js_1 = require("./hash/getFunctionSelector.js");
|
164
|
-
Object.defineProperty(exports, "getFunctionSelector", { enumerable: true, get: function () { return getFunctionSelector_js_1.getFunctionSelector; } });
|
165
|
-
var isHash_js_1 = require("./hash/isHash.js");
|
166
|
-
Object.defineProperty(exports, "isHash", { enumerable: true, get: function () { return isHash_js_1.isHash; } });
|
167
|
-
var keccak256_js_1 = require("./hash/keccak256.js");
|
168
|
-
Object.defineProperty(exports, "keccak256", { enumerable: true, get: function () { return keccak256_js_1.keccak256; } });
|
169
|
-
var hashTypedData_js_1 = require("./signature/hashTypedData.js");
|
170
|
-
Object.defineProperty(exports, "hashTypedData", { enumerable: true, get: function () { return hashTypedData_js_1.hashTypedData; } });
|
171
|
-
var recoverAddress_js_1 = require("./signature/recoverAddress.js");
|
172
|
-
Object.defineProperty(exports, "recoverAddress", { enumerable: true, get: function () { return recoverAddress_js_1.recoverAddress; } });
|
173
|
-
var recoverMessageAddress_js_1 = require("./signature/recoverMessageAddress.js");
|
174
|
-
Object.defineProperty(exports, "recoverMessageAddress", { enumerable: true, get: function () { return recoverMessageAddress_js_1.recoverMessageAddress; } });
|
175
|
-
var recoverPublicKey_js_1 = require("./signature/recoverPublicKey.js");
|
176
|
-
Object.defineProperty(exports, "recoverPublicKey", { enumerable: true, get: function () { return recoverPublicKey_js_1.recoverPublicKey; } });
|
177
|
-
var recoverTypedDataAddress_js_1 = require("./signature/recoverTypedDataAddress.js");
|
178
|
-
Object.defineProperty(exports, "recoverTypedDataAddress", { enumerable: true, get: function () { return recoverTypedDataAddress_js_1.recoverTypedDataAddress; } });
|
179
|
-
var verifyMessage_js_1 = require("./signature/verifyMessage.js");
|
180
|
-
Object.defineProperty(exports, "verifyMessage", { enumerable: true, get: function () { return verifyMessage_js_1.verifyMessage; } });
|
181
|
-
var verifyTypedData_js_1 = require("./signature/verifyTypedData.js");
|
182
|
-
Object.defineProperty(exports, "verifyTypedData", { enumerable: true, get: function () { return verifyTypedData_js_1.verifyTypedData; } });
|
183
|
-
var hashMessage_js_1 = require("./signature/hashMessage.js");
|
184
|
-
Object.defineProperty(exports, "hashMessage", { enumerable: true, get: function () { return hashMessage_js_1.hashMessage; } });
|
185
|
-
var getSerializedTransactionType_js_1 = require("./transaction/getSerializedTransactionType.js");
|
186
|
-
Object.defineProperty(exports, "getSerializedTransactionType", { enumerable: true, get: function () { return getSerializedTransactionType_js_1.getSerializedTransactionType; } });
|
187
|
-
var getTransactionType_js_1 = require("./transaction/getTransactionType.js");
|
188
|
-
Object.defineProperty(exports, "getTransactionType", { enumerable: true, get: function () { return getTransactionType_js_1.getTransactionType; } });
|
189
|
-
var assertRequest_js_1 = require("./transaction/assertRequest.js");
|
190
|
-
Object.defineProperty(exports, "assertRequest", { enumerable: true, get: function () { return assertRequest_js_1.assertRequest; } });
|
191
|
-
var assertTransaction_js_1 = require("./transaction/assertTransaction.js");
|
192
|
-
Object.defineProperty(exports, "assertTransactionEIP1559", { enumerable: true, get: function () { return assertTransaction_js_1.assertTransactionEIP1559; } });
|
193
|
-
Object.defineProperty(exports, "assertTransactionEIP2930", { enumerable: true, get: function () { return assertTransaction_js_1.assertTransactionEIP2930; } });
|
194
|
-
Object.defineProperty(exports, "assertTransactionLegacy", { enumerable: true, get: function () { return assertTransaction_js_1.assertTransactionLegacy; } });
|
195
|
-
var parseTransaction_js_1 = require("./transaction/parseTransaction.js");
|
196
|
-
Object.defineProperty(exports, "parseTransaction", { enumerable: true, get: function () { return parseTransaction_js_1.parseTransaction; } });
|
197
|
-
var serializeTransaction_js_1 = require("./transaction/serializeTransaction.js");
|
198
|
-
Object.defineProperty(exports, "serializeTransaction", { enumerable: true, get: function () { return serializeTransaction_js_1.serializeTransaction; } });
|
199
|
-
var serializeAccessList_js_1 = require("./transaction/serializeAccessList.js");
|
200
|
-
Object.defineProperty(exports, "serializeAccessList", { enumerable: true, get: function () { return serializeAccessList_js_1.serializeAccessList; } });
|
201
|
-
var formatEther_js_1 = require("./unit/formatEther.js");
|
202
|
-
Object.defineProperty(exports, "formatEther", { enumerable: true, get: function () { return formatEther_js_1.formatEther; } });
|
203
|
-
var formatGwei_js_1 = require("./unit/formatGwei.js");
|
204
|
-
Object.defineProperty(exports, "formatGwei", { enumerable: true, get: function () { return formatGwei_js_1.formatGwei; } });
|
205
|
-
var formatUnits_js_1 = require("./unit/formatUnits.js");
|
206
|
-
Object.defineProperty(exports, "formatUnits", { enumerable: true, get: function () { return formatUnits_js_1.formatUnits; } });
|
207
|
-
var parseUnits_js_1 = require("./unit/parseUnits.js");
|
208
|
-
Object.defineProperty(exports, "parseUnits", { enumerable: true, get: function () { return parseUnits_js_1.parseUnits; } });
|
209
|
-
var parseEther_js_1 = require("./unit/parseEther.js");
|
210
|
-
Object.defineProperty(exports, "parseEther", { enumerable: true, get: function () { return parseEther_js_1.parseEther; } });
|
211
|
-
var parseGwei_js_1 = require("./unit/parseGwei.js");
|
212
|
-
Object.defineProperty(exports, "parseGwei", { enumerable: true, get: function () { return parseGwei_js_1.parseGwei; } });
|
213
|
-
//# sourceMappingURL=index.js.map
|
package/_cjs/utils/index.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../utils/index.ts"],"names":[],"mappings":";;;;;AAAA,qDAK0B;AAFxB,uHAAA,oBAAoB,OAAA;AACpB,+GAAA,YAAY,OAAA;AAGd,qCAOkB;AAJhB,oGAAA,SAAS,OAAA;AACT,yGAAA,cAAc,OAAA;AACd,gHAAA,qBAAqB,OAAA;AACrB,kHAAA,uBAAuB,OAAA;AAGzB,uEAIsC;AADpC,2HAAA,kBAAkB,OAAA;AAEpB,yDAAoD;AAA3C,6GAAA,WAAW,OAAA;AACpB,2DAKgC;AAD9B,+GAAA,YAAY,OAAA;AAEd,iFAG2C;AADzC,qIAAA,uBAAuB,OAAA;AAGzB,uCAAiE;AAAxD,sGAAA,UAAU,OAAA;AAAE,sGAAA,UAAU,OAAA;AAAE,wGAAA,YAAY,OAAA;AAE7C,mCAgBiB;AAFf,mGAAA,SAAS,OAAA;AACT,6FAAA,GAAG,OAAA;AAEL,+CAAmE;AAAjC,yGAAA,SAAS,OAAA;AAC3C,+CAGuB;AADrB,iHAAA,iBAAiB,OAAA;AAEnB,uEAIqC;AADnC,6HAAA,mBAAmB,OAAA;AAErB,mEAKmC;AADjC,yHAAA,iBAAiB,OAAA;AAEnB,6DAKgC;AAD9B,mHAAA,cAAc,OAAA;AAEhB,qEAIoC;AADlC,2HAAA,kBAAkB,OAAA;AAEpB,yEAKsC;AADpC,+HAAA,oBAAoB,OAAA;AAEtB,uEAIqC;AADnC,6HAAA,mBAAmB,OAAA;AAErB,iEAIkC;AADhC,uHAAA,gBAAgB,OAAA;AAElB,mEAImC;AADjC,yHAAA,iBAAiB,OAAA;AAEnB,mEAImC;AADjC,yHAAA,iBAAiB,OAAA;AAEnB,qEAIoC;AADlC,2HAAA,kBAAkB,OAAA;AAEpB,yEAIsC;AADpC,+HAAA,oBAAoB,OAAA;AAEtB,qDAI4B;AAD1B,2GAAA,UAAU,OAAA;AAEZ,mCASgB;AAJd,mGAAA,QAAQ,OAAA;AACR,uGAAA,YAAY,OAAA;AACZ,4GAAA,iBAAiB,OAAA;AACjB,6GAAA,kBAAkB,OAAA;AAEpB,yDAAgF;AAA3C,+GAAA,YAAY,OAAA;AACjD,2EAGuC;AADrC,iIAAA,qBAAqB,OAAA;AAEvB,2DAM+B;AAF7B,iHAAA,aAAa,OAAA;AACb,mHAAA,eAAe,OAAA;AAEjB,qEAG0C;AADxC,+GAAA,YAAY,OAAA;AAEd,iFAGgD;AAD9C,2HAAA,kBAAkB,OAAA;AAEpB,yEASwC;AAHtC,2HAAA,kBAAkB,OAAA;AAClB,yHAAA,gBAAgB,OAAA;AAChB,0HAAA,iBAAiB,OAAA;AAEnB,yDAGgC;AAD9B,2GAAA,UAAU,OAAA;AAEZ,uDAA2E;AAAzC,yGAAA,SAAS,OAAA;AAC3C,iEAGoC;AADlC,mHAAA,cAAc,OAAA;AAEhB,8CAOyB;AAHvB,mGAAA,MAAM,OAAA;AACN,wGAAA,WAAW,OAAA;AACX,sGAAA,SAAS,OAAA;AAEX,gDAAkE;AAAlC,qGAAA,OAAO,OAAA;AACvC,4CAA4D;AAA9B,iGAAA,KAAK,OAAA;AACnC,wCAOsB;AAHpB,6FAAA,GAAG,OAAA;AACH,kGAAA,QAAQ,OAAA;AACR,gGAAA,MAAM,OAAA;AAER,0CAAyD;AAA5B,+FAAA,IAAI,OAAA;AACjC,4CAUwB;AAHtB,iGAAA,KAAK,OAAA;AACL,sGAAA,UAAU,OAAA;AACV,oGAAA,QAAQ,OAAA;AAEV,0CAA8E;AAA5B,+FAAA,IAAI,OAAA;AACtD,kDAM8B;AAF5B,uGAAA,WAAW,OAAA;AACX,uGAAA,WAAW,OAAA;AAEb,8DAOoC;AAHlC,mHAAA,iBAAiB,OAAA;AACjB,mHAAA,iBAAiB,OAAA;AACjB,iHAAA,eAAe,OAAA;AAEjB,8CAAwE;AAAtC,mGAAA,SAAS,OAAA;AAC3C,4EAK2C;AADzC,iIAAA,wBAAwB,OAAA;AAE1B,4EAM2C;AAFzC,iIAAA,wBAAwB,OAAA;AACxB,iIAAA,wBAAwB,OAAA;AAE1B,sDAAwE;AAAxC,qGAAA,OAAO,OAAA;AACvC,gDAM4B;AAD1B,iGAAA,KAAK,OAAA;AAEP,oDAe8B;AAL5B,yGAAA,WAAW,OAAA;AACX,qGAAA,OAAO,OAAA;AACP,wGAAA,UAAU,OAAA;AACV,2GAAA,aAAa,OAAA;AACb,2GAAA,aAAa,OAAA;AAEf,gDAgB4B;AAL1B,qGAAA,SAAS,OAAA;AACT,sGAAA,UAAU,OAAA;AACV,iGAAA,KAAK,OAAA;AACL,uGAAA,WAAW,OAAA;AACX,uGAAA,WAAW,OAAA;AAEb,wDAkBgC;AAN9B,6GAAA,aAAa,OAAA;AACb,6GAAA,aAAa,OAAiB;AAC9B,2GAAA,WAAW,OAAA;AACX,6GAAA,aAAa,OAAA;AACb,6GAAA,aAAa,OAAA;AACb,yGAAA,SAAS,OAAA;AAEX,oDAkB8B;AAL5B,qGAAA,OAAO,OAAA;AACP,uGAAA,SAAS,OAAA;AACT,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AACX,yGAAA,WAAW,OAAA;AAEb,oDAG8B;AAD5B,qGAAA,OAAO,OAAA;AAET,4DAKiC;AAF/B,oHAAA,iBAAiB,OAAA;AACjB,+GAAA,YAAY,OAAA;AAEd,4DAGiC;AAD/B,+GAAA,YAAY,OAAA;AAEd,oEAGqC;AADnC,uHAAA,gBAAgB,OAAA;AAElB,0EAGwC;AADtC,6HAAA,mBAAmB,OAAA;AAErB,0EAIwC;AADtC,6HAAA,mBAAmB,OAAA;AAErB,0DAGkC;AADhC,+GAAA,eAAe,OAAA;AAEjB,kEAGmC;AADjC,uHAAA,gBAAgB,OAAA;AAElB,wEAGsC;AADpC,6HAAA,mBAAmB,OAAA;AAErB,8CAA+D;AAAhC,mGAAA,MAAM,OAAA;AACrC,oDAAwE;AAAtC,yGAAA,SAAS,OAAA;AAC3C,iEAKqC;AADnC,iHAAA,aAAa,OAAA;AAEf,mEAKsC;AADpC,mHAAA,cAAc,OAAA;AAEhB,iFAK6C;AAD3C,iIAAA,qBAAqB,OAAA;AAEvB,uEAKwC;AADtC,uHAAA,gBAAgB,OAAA;AAElB,qFAK+C;AAD7C,qIAAA,uBAAuB,OAAA;AAEzB,iEAKqC;AADnC,iHAAA,aAAa,OAAA;AAEf,qEAKuC;AADrC,qHAAA,eAAe,OAAA;AAEjB,6DAImC;AADjC,6GAAA,WAAW,OAAA;AAEb,iGAIsD;AADpD,+IAAA,4BAA4B,OAAA;AAE9B,6EAI4C;AAD1C,2HAAA,kBAAkB,OAAA;AAEpB,mEAGuC;AADrC,iHAAA,aAAa,OAAA;AAEf,2EAO2C;AAHzC,gIAAA,wBAAwB,OAAA;AACxB,gIAAA,wBAAwB,OAAA;AACxB,+HAAA,uBAAuB,OAAA;AAEzB,yEAG0C;AADxC,uHAAA,gBAAgB,OAAA;AAElB,iFAI8C;AAH5C,+HAAA,oBAAoB,OAAA;AAItB,+EAG6C;AAD3C,6HAAA,mBAAmB,OAAA;AAErB,wDAA8E;AAA1C,6GAAA,WAAW,OAAA;AAC/C,sDAA2E;AAAxC,2GAAA,UAAU,OAAA;AAC7C,wDAA8E;AAA1C,6GAAA,WAAW,OAAA;AAC/C,sDAA2E;AAAxC,2GAAA,UAAU,OAAA;AAC7C,sDAA2E;AAAxC,2GAAA,UAAU,OAAA;AAC7C,oDAAwE;AAAtC,yGAAA,SAAS,OAAA"}
|
package/_cjs/utils/observe.js
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.observe = exports.cleanupCache = exports.listenersCache = void 0;
|
4
|
-
exports.listenersCache = new Map();
|
5
|
-
exports.cleanupCache = new Map();
|
6
|
-
let callbackCount = 0;
|
7
|
-
function observe(observerId, callbacks, fn) {
|
8
|
-
const callbackId = ++callbackCount;
|
9
|
-
const getListeners = () => exports.listenersCache.get(observerId) || [];
|
10
|
-
const unsubscribe = () => {
|
11
|
-
const listeners = getListeners();
|
12
|
-
exports.listenersCache.set(observerId, listeners.filter((cb) => cb.id !== callbackId));
|
13
|
-
};
|
14
|
-
const unwatch = () => {
|
15
|
-
const cleanup = exports.cleanupCache.get(observerId);
|
16
|
-
if (getListeners().length === 1 && cleanup)
|
17
|
-
cleanup();
|
18
|
-
unsubscribe();
|
19
|
-
};
|
20
|
-
const listeners = getListeners();
|
21
|
-
exports.listenersCache.set(observerId, [
|
22
|
-
...listeners,
|
23
|
-
{ id: callbackId, fns: callbacks },
|
24
|
-
]);
|
25
|
-
if (listeners && listeners.length > 0)
|
26
|
-
return unwatch;
|
27
|
-
const emit = {};
|
28
|
-
for (const key in callbacks) {
|
29
|
-
emit[key] = ((...args) => {
|
30
|
-
const listeners = getListeners();
|
31
|
-
if (listeners.length === 0)
|
32
|
-
return;
|
33
|
-
listeners.forEach((listener) => listener.fns[key]?.(...args));
|
34
|
-
});
|
35
|
-
}
|
36
|
-
const cleanup = fn(emit);
|
37
|
-
if (typeof cleanup === 'function')
|
38
|
-
exports.cleanupCache.set(observerId, cleanup);
|
39
|
-
return unwatch;
|
40
|
-
}
|
41
|
-
exports.observe = observe;
|
42
|
-
//# sourceMappingURL=observe.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"observe.js","sourceRoot":"","sources":["../../utils/observe.ts"],"names":[],"mappings":";;;AAQa,QAAA,cAAc,GAAiB,IAAI,GAAG,EAGhD,CAAA;AACU,QAAA,YAAY,GAAiB,IAAI,GAAG,EAAsB,CAAA;AAMvE,IAAI,aAAa,GAAG,CAAC,CAAA;AAOrB,SAAgB,OAAO,CACrB,UAAkB,EAClB,SAAqB,EACrB,EAA4B;IAE5B,MAAM,UAAU,GAAG,EAAE,aAAa,CAAA;IAElC,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,sBAAc,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA;IAE/D,MAAM,WAAW,GAAG,GAAG,EAAE;QACvB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;QAChC,sBAAc,CAAC,GAAG,CAChB,UAAU,EACV,SAAS,CAAC,MAAM,CAAC,CAAC,EAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,UAAU,CAAC,CACpD,CAAA;IACH,CAAC,CAAA;IAED,MAAM,OAAO,GAAG,GAAG,EAAE;QACnB,MAAM,OAAO,GAAG,oBAAY,CAAC,GAAG,CAAC,UAAU,CAAC,CAAA;QAC5C,IAAI,YAAY,EAAE,CAAC,MAAM,KAAK,CAAC,IAAI,OAAO;YAAE,OAAO,EAAE,CAAA;QACrD,WAAW,EAAE,CAAA;IACf,CAAC,CAAA;IAED,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;IAChC,sBAAc,CAAC,GAAG,CAAC,UAAU,EAAE;QAC7B,GAAG,SAAS;QACZ,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,SAAS,EAAE;KACnC,CAAC,CAAA;IAEF,IAAI,SAAS,IAAI,SAAS,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,OAAO,CAAA;IAErD,MAAM,IAAI,GAAe,EAAgB,CAAA;IACzC,KAAK,MAAM,GAAG,IAAI,SAAS,EAAE;QAC3B,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CACX,GAAG,IAA2D,EAC9D,EAAE;YACF,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;YAChC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;gBAAE,OAAM;YAClC,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC,CAAA;QAC/D,CAAC,CAAkD,CAAA;KACpD;IAED,MAAM,OAAO,GAAG,EAAE,CAAC,IAAI,CAAC,CAAA;IACxB,IAAI,OAAO,OAAO,KAAK,UAAU;QAAE,oBAAY,CAAC,GAAG,CAAC,UAAU,EAAE,OAAO,CAAC,CAAA;IAExE,OAAO,OAAO,CAAA;AAChB,CAAC;AA9CD,0BA8CC"}
|
package/_cjs/utils/poll.js
DELETED
@@ -1,27 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.poll = void 0;
|
4
|
-
const wait_js_1 = require("./wait.js");
|
5
|
-
function poll(fn, { emitOnBegin, initialWaitTime, interval }) {
|
6
|
-
let active = true;
|
7
|
-
const unwatch = () => (active = false);
|
8
|
-
const watch = async () => {
|
9
|
-
let data = undefined;
|
10
|
-
if (emitOnBegin)
|
11
|
-
data = await fn({ unpoll: unwatch });
|
12
|
-
const initialWait = (await initialWaitTime?.(data)) ?? interval;
|
13
|
-
await (0, wait_js_1.wait)(initialWait);
|
14
|
-
const poll = async () => {
|
15
|
-
if (!active)
|
16
|
-
return;
|
17
|
-
await fn({ unpoll: unwatch });
|
18
|
-
await (0, wait_js_1.wait)(interval);
|
19
|
-
poll();
|
20
|
-
};
|
21
|
-
poll();
|
22
|
-
};
|
23
|
-
watch();
|
24
|
-
return unwatch;
|
25
|
-
}
|
26
|
-
exports.poll = poll;
|
27
|
-
//# sourceMappingURL=poll.js.map
|
package/_cjs/utils/poll.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"poll.js","sourceRoot":"","sources":["../../utils/poll.ts"],"names":[],"mappings":";;;AACA,uCAAgC;AAgBhC,SAAgB,IAAI,CAClB,EAAiE,EACjE,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAsB;IAE9D,IAAI,MAAM,GAAG,IAAI,CAAA;IAEjB,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,CAAC,MAAM,GAAG,KAAK,CAAC,CAAA;IAEtC,MAAM,KAAK,GAAG,KAAK,IAAI,EAAE;QACvB,IAAI,IAAI,GAAiB,SAAS,CAAA;QAClC,IAAI,WAAW;YAAE,IAAI,GAAG,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;QAErD,MAAM,WAAW,GAAG,CAAC,MAAM,eAAe,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,QAAQ,CAAA;QAC/D,MAAM,IAAA,cAAI,EAAC,WAAW,CAAC,CAAA;QAEvB,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;YACtB,IAAI,CAAC,MAAM;gBAAE,OAAM;YACnB,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAA;YAC7B,MAAM,IAAA,cAAI,EAAC,QAAQ,CAAC,CAAA;YACpB,IAAI,EAAE,CAAA;QACR,CAAC,CAAA;QAED,IAAI,EAAE,CAAA;IACR,CAAC,CAAA;IACD,KAAK,EAAE,CAAA;IAEP,OAAO,OAAO,CAAA;AAChB,CAAC;AA3BD,oBA2BC"}
|
@@ -1,49 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createBatchScheduler = void 0;
|
4
|
-
const schedulerCache = new Map();
|
5
|
-
function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort, }) {
|
6
|
-
const exec = async () => {
|
7
|
-
const scheduler = getScheduler();
|
8
|
-
flush();
|
9
|
-
const args = scheduler.map(({ args }) => args);
|
10
|
-
if (args.length === 0)
|
11
|
-
return;
|
12
|
-
fn(args)
|
13
|
-
.then((data) => {
|
14
|
-
if (sort && Array.isArray(data))
|
15
|
-
data.sort(sort);
|
16
|
-
scheduler.forEach(({ pendingPromise }, i) => pendingPromise.resolve?.([data[i], data]));
|
17
|
-
})
|
18
|
-
.catch((err) => {
|
19
|
-
scheduler.forEach(({ pendingPromise }) => pendingPromise.reject?.(err));
|
20
|
-
});
|
21
|
-
};
|
22
|
-
const flush = () => schedulerCache.delete(id);
|
23
|
-
const getBatchedArgs = () => getScheduler().map(({ args }) => args);
|
24
|
-
const getScheduler = () => schedulerCache.get(id) || [];
|
25
|
-
const setScheduler = (item) => schedulerCache.set(id, [...getScheduler(), item]);
|
26
|
-
return {
|
27
|
-
flush,
|
28
|
-
async schedule(args) {
|
29
|
-
const pendingPromise = {};
|
30
|
-
const promise = new Promise((resolve, reject) => {
|
31
|
-
pendingPromise.resolve = resolve;
|
32
|
-
pendingPromise.reject = reject;
|
33
|
-
});
|
34
|
-
const split = shouldSplitBatch?.([...getBatchedArgs(), args]);
|
35
|
-
if (split)
|
36
|
-
exec();
|
37
|
-
const hasActiveScheduler = getScheduler().length > 0;
|
38
|
-
if (hasActiveScheduler) {
|
39
|
-
setScheduler({ args, pendingPromise });
|
40
|
-
return promise;
|
41
|
-
}
|
42
|
-
setScheduler({ args, pendingPromise });
|
43
|
-
setTimeout(exec, wait);
|
44
|
-
return promise;
|
45
|
-
},
|
46
|
-
};
|
47
|
-
}
|
48
|
-
exports.createBatchScheduler = createBatchScheduler;
|
49
|
-
//# sourceMappingURL=createBatchScheduler.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"createBatchScheduler.js","sourceRoot":"","sources":["../../../utils/promise/createBatchScheduler.ts"],"names":[],"mappings":";;;AA0CA,MAAM,cAAc,GAAiB,IAAI,GAAG,EAAoC,CAAA;AAEhF,SAAgB,oBAAoB,CAGlC,EACA,EAAE,EACF,EAAE,EACF,gBAAgB,EAChB,IAAI,GAAG,CAAC,EACR,IAAI,GAIL;IACC,MAAM,IAAI,GAAG,KAAK,IAAI,EAAE;QACtB,MAAM,SAAS,GAAG,YAAY,EAAE,CAAA;QAChC,KAAK,EAAE,CAAA;QAEP,MAAM,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,CAAA;QAE9C,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,OAAM;QAE7B,EAAE,CAAC,IAAqB,CAAC;aACtB,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;YACb,IAAI,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;gBAAE,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAChD,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC,EAAE,EAAE,CAC1C,cAAc,CAAC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAC1C,CAAA;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,GAAG,EAAE,EAAE;YACb,SAAS,CAAC,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAA;QACzE,CAAC,CAAC,CAAA;IACN,CAAC,CAAA;IAED,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;IAE7C,MAAM,cAAc,GAAG,GAAG,EAAE,CAC1B,YAAY,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAkB,CAAA;IAEzD,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAA;IAEvD,MAAM,YAAY,GAAG,CAAC,IAAmB,EAAE,EAAE,CAC3C,cAAc,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,YAAY,EAAE,EAAE,IAAI,CAAC,CAAC,CAAA;IAEnD,OAAO;QACL,KAAK;QACL,KAAK,CAAC,QAAQ,CAAC,IAAiB;YAC9B,MAAM,cAAc,GAAgC,EAAE,CAAA;YACtD,MAAM,OAAO,GAAG,IAAI,OAAO,CAAwB,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;gBACrE,cAAc,CAAC,OAAO,GAAG,OAAO,CAAA;gBAChC,cAAc,CAAC,MAAM,GAAG,MAAM,CAAA;YAChC,CAAC,CAAC,CAAA;YAEF,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC,CAAC,GAAG,cAAc,EAAE,EAAE,IAAI,CAAC,CAAC,CAAA;YAE7D,IAAI,KAAK;gBAAE,IAAI,EAAE,CAAA;YAEjB,MAAM,kBAAkB,GAAG,YAAY,EAAE,CAAC,MAAM,GAAG,CAAC,CAAA;YACpD,IAAI,kBAAkB,EAAE;gBACtB,YAAY,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAA;gBACtC,OAAO,OAAO,CAAA;aACf;YAED,YAAY,CAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC,CAAA;YACtC,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;YACtB,OAAO,OAAO,CAAA;QAChB,CAAC;KACqE,CAAA;AAC1E,CAAC;AAnED,oDAmEC"}
|
@@ -1,47 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withCache = exports.getCache = exports.responseCache = exports.promiseCache = void 0;
|
4
|
-
exports.promiseCache = new Map();
|
5
|
-
exports.responseCache = new Map();
|
6
|
-
function getCache(cacheKey) {
|
7
|
-
const buildCache = (cacheKey, cache) => ({
|
8
|
-
clear: () => cache.delete(cacheKey),
|
9
|
-
get: () => cache.get(cacheKey),
|
10
|
-
set: (data) => cache.set(cacheKey, data),
|
11
|
-
});
|
12
|
-
const promise = buildCache(cacheKey, exports.promiseCache);
|
13
|
-
const response = buildCache(cacheKey, exports.responseCache);
|
14
|
-
return {
|
15
|
-
clear: () => {
|
16
|
-
promise.clear();
|
17
|
-
response.clear();
|
18
|
-
},
|
19
|
-
promise,
|
20
|
-
response,
|
21
|
-
};
|
22
|
-
}
|
23
|
-
exports.getCache = getCache;
|
24
|
-
async function withCache(fn, { cacheKey, cacheTime = Infinity }) {
|
25
|
-
const cache = getCache(cacheKey);
|
26
|
-
const response = cache.response.get();
|
27
|
-
if (response && cacheTime > 0) {
|
28
|
-
const age = new Date().getTime() - response.created.getTime();
|
29
|
-
if (age < cacheTime)
|
30
|
-
return response.data;
|
31
|
-
}
|
32
|
-
let promise = cache.promise.get();
|
33
|
-
if (!promise) {
|
34
|
-
promise = fn();
|
35
|
-
cache.promise.set(promise);
|
36
|
-
}
|
37
|
-
try {
|
38
|
-
const data = await promise;
|
39
|
-
cache.response.set({ created: new Date(), data });
|
40
|
-
return data;
|
41
|
-
}
|
42
|
-
finally {
|
43
|
-
cache.promise.clear();
|
44
|
-
}
|
45
|
-
}
|
46
|
-
exports.withCache = withCache;
|
47
|
-
//# sourceMappingURL=withCache.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"withCache.js","sourceRoot":"","sources":["../../../utils/promise/withCache.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAiB,IAAI,GAAG,EAAE,CAAA;AACtC,QAAA,aAAa,GAAiB,IAAI,GAAG,EAAE,CAAA;AAIpD,SAAgB,QAAQ,CAAQ,QAAgB;IAC9C,MAAM,UAAU,GAAG,CAAQ,QAAgB,EAAE,KAAyB,EAAE,EAAE,CAAC,CAAC;QAC1E,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC;QACnC,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC9B,GAAG,EAAE,CAAC,IAAW,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC;KAChD,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG,UAAU,CAAiB,QAAQ,EAAE,oBAAY,CAAC,CAAA;IAClE,MAAM,QAAQ,GAAG,UAAU,CACzB,QAAQ,EACR,qBAAa,CACd,CAAA;IAED,OAAO;QACL,KAAK,EAAE,GAAG,EAAE;YACV,OAAO,CAAC,KAAK,EAAE,CAAA;YACf,QAAQ,CAAC,KAAK,EAAE,CAAA;QAClB,CAAC;QACD,OAAO;QACP,QAAQ;KACT,CAAA;AACH,CAAC;AArBD,4BAqBC;AAaM,KAAK,UAAU,SAAS,CAC7B,EAAwB,EACxB,EAAE,QAAQ,EAAE,SAAS,GAAG,QAAQ,EAAuB;IAEvD,MAAM,KAAK,GAAG,QAAQ,CAAQ,QAAQ,CAAC,CAAA;IAKvC,MAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAA;IACrC,IAAI,QAAQ,IAAI,SAAS,GAAG,CAAC,EAAE;QAC7B,MAAM,GAAG,GAAG,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC,OAAO,EAAE,CAAA;QAC7D,IAAI,GAAG,GAAG,SAAS;YAAE,OAAO,QAAQ,CAAC,IAAI,CAAA;KAC1C;IAED,IAAI,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE,CAAA;IACjC,IAAI,CAAC,OAAO,EAAE;QACZ,OAAO,GAAG,EAAE,EAAE,CAAA;QAId,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAA;KAC3B;IAED,IAAI;QACF,MAAM,IAAI,GAAG,MAAM,OAAO,CAAA;QAI1B,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,OAAO,EAAE,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC,CAAA;QAEjD,OAAO,IAAI,CAAA;KACZ;YAAS;QAGR,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,CAAA;KACtB;AACH,CAAC;AArCD,8BAqCC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withRetry = void 0;
|
4
|
-
const wait_js_1 = require("../wait.js");
|
5
|
-
function withRetry(fn, { delay: delay_ = 100, retryCount = 2, shouldRetry = () => true, } = {}) {
|
6
|
-
return new Promise((resolve, reject) => {
|
7
|
-
const attemptRetry = async ({ count = 0 } = {}) => {
|
8
|
-
const retry = async ({ error }) => {
|
9
|
-
const delay = typeof delay_ === 'function' ? delay_({ count, error }) : delay_;
|
10
|
-
if (delay)
|
11
|
-
await (0, wait_js_1.wait)(delay);
|
12
|
-
attemptRetry({ count: count + 1 });
|
13
|
-
};
|
14
|
-
try {
|
15
|
-
const data = await fn();
|
16
|
-
resolve(data);
|
17
|
-
}
|
18
|
-
catch (err) {
|
19
|
-
if (count < retryCount &&
|
20
|
-
(await shouldRetry({ count, error: err })))
|
21
|
-
return retry({ error: err });
|
22
|
-
reject(err);
|
23
|
-
}
|
24
|
-
};
|
25
|
-
attemptRetry();
|
26
|
-
});
|
27
|
-
}
|
28
|
-
exports.withRetry = withRetry;
|
29
|
-
//# sourceMappingURL=withRetry.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"withRetry.js","sourceRoot":"","sources":["../../../utils/promise/withRetry.ts"],"names":[],"mappings":";;;AACA,wCAAiC;AAIjC,SAAgB,SAAS,CACvB,EAAwB,EACxB,EACE,KAAK,EAAE,MAAM,GAAG,GAAG,EACnB,UAAU,GAAG,CAAC,EACd,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,MActB,EAAE;IAEN,OAAO,IAAI,OAAO,CAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC5C,MAAM,YAAY,GAAG,KAAK,EAAE,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE;YAChD,MAAM,KAAK,GAAG,KAAK,EAAE,EAAE,KAAK,EAAoB,EAAE,EAAE;gBAClD,MAAM,KAAK,GACT,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAA;gBAClE,IAAI,KAAK;oBAAE,MAAM,IAAA,cAAI,EAAC,KAAK,CAAC,CAAA;gBAC5B,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CAAA;YACpC,CAAC,CAAA;YAED,IAAI;gBACF,MAAM,IAAI,GAAG,MAAM,EAAE,EAAE,CAAA;gBACvB,OAAO,CAAC,IAAI,CAAC,CAAA;aACd;YAAC,OAAO,GAAG,EAAE;gBACZ,IACE,KAAK,GAAG,UAAU;oBAClB,CAAC,MAAM,WAAW,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAY,EAAE,CAAC,CAAC;oBAEnD,OAAO,KAAK,CAAC,EAAE,KAAK,EAAE,GAAY,EAAE,CAAC,CAAA;gBACvC,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;QACH,CAAC,CAAA;QACD,YAAY,EAAE,CAAA;IAChB,CAAC,CAAC,CAAA;AACJ,CAAC;AA5CD,8BA4CC"}
|
@@ -1,35 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.withTimeout = void 0;
|
4
|
-
function withTimeout(fn, { errorInstance = new Error('timed out'), timeout, signal, }) {
|
5
|
-
return new Promise((resolve, reject) => {
|
6
|
-
;
|
7
|
-
(async () => {
|
8
|
-
let timeoutId;
|
9
|
-
try {
|
10
|
-
const controller = new AbortController();
|
11
|
-
if (timeout > 0) {
|
12
|
-
timeoutId = setTimeout(() => {
|
13
|
-
if (signal) {
|
14
|
-
controller.abort();
|
15
|
-
}
|
16
|
-
else {
|
17
|
-
reject(errorInstance);
|
18
|
-
}
|
19
|
-
}, timeout);
|
20
|
-
}
|
21
|
-
resolve(await fn({ signal: controller?.signal }));
|
22
|
-
}
|
23
|
-
catch (err) {
|
24
|
-
if (err.name === 'AbortError')
|
25
|
-
reject(errorInstance);
|
26
|
-
reject(err);
|
27
|
-
}
|
28
|
-
finally {
|
29
|
-
clearTimeout(timeoutId);
|
30
|
-
}
|
31
|
-
})();
|
32
|
-
});
|
33
|
-
}
|
34
|
-
exports.withTimeout = withTimeout;
|
35
|
-
//# sourceMappingURL=withTimeout.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"withTimeout.js","sourceRoot":"","sources":["../../../utils/promise/withTimeout.ts"],"names":[],"mappings":";;;AAIA,SAAgB,WAAW,CACzB,EAA0E,EAC1E,EACE,aAAa,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,EACtC,OAAO,EACP,MAAM,GAQP;IAED,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,CAAC;QAAA,CAAC,KAAK,IAAI,EAAE;YACX,IAAI,SAA0B,CAAA;YAC9B,IAAI;gBACF,MAAM,UAAU,GAAG,IAAI,eAAe,EAAE,CAAA;gBACxC,IAAI,OAAO,GAAG,CAAC,EAAE;oBACf,SAAS,GAAG,UAAU,CAAC,GAAG,EAAE;wBAC1B,IAAI,MAAM,EAAE;4BACV,UAAU,CAAC,KAAK,EAAE,CAAA;yBACnB;6BAAM;4BACL,MAAM,CAAC,aAAa,CAAC,CAAA;yBACtB;oBACH,CAAC,EAAE,OAAO,CAAC,CAAA;iBACZ;gBACD,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,CAAC,CAAC,CAAA;aAClD;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAK,GAAa,CAAC,IAAI,KAAK,YAAY;oBAAE,MAAM,CAAC,aAAa,CAAC,CAAA;gBAC/D,MAAM,CAAC,GAAG,CAAC,CAAA;aACZ;oBAAS;gBACR,YAAY,CAAC,SAAS,CAAC,CAAA;aACxB;QACH,CAAC,CAAC,EAAE,CAAA;IACN,CAAC,CAAC,CAAA;AACJ,CAAC;AAtCD,kCAsCC"}
|
package/_cjs/utils/regex.js
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.integerRegex = exports.bytesRegex = exports.arrayRegex = void 0;
|
4
|
-
exports.arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
5
|
-
exports.bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
6
|
-
exports.integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
7
|
-
//# sourceMappingURL=regex.js.map
|
package/_cjs/utils/regex.js.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"regex.js","sourceRoot":"","sources":["../../utils/regex.ts"],"names":[],"mappings":";;;AAAa,QAAA,UAAU,GAAG,oBAAoB,CAAA;AAIjC,QAAA,UAAU,GAAG,sCAAsC,CAAA;AAInD,QAAA,YAAY,GACvB,gIAAgI,CAAA"}
|