viem 2.0.0-beta.12 → 2.0.0-beta.14
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/accounts/toAccount.js.map +1 -1
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createEventFilter.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/getBlock.js.map +1 -1
- package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/getTransaction.js.map +1 -1
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/test/setAutomine.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/celo/parsers.js.map +1 -1
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/celo/utils.js.map +1 -1
- package/_cjs/chains/opStack/actions/estimateContractL1Fee.js.map +1 -1
- package/_cjs/chains/opStack/actions/estimateContractL1Gas.js.map +1 -1
- package/_cjs/chains/opStack/actions/estimateContractTotalFee.js.map +1 -1
- package/_cjs/chains/opStack/actions/estimateContractTotalGas.js.map +1 -1
- package/_cjs/chains/opStack/formatters.js.map +1 -1
- package/_cjs/chains/zksync/serializers.js.map +1 -1
- package/_cjs/clients/transports/custom.js +14 -8
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/clients/transports/webSocket.js.map +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/node.js +11 -11
- package/_cjs/errors/node.js.map +1 -1
- package/_cjs/errors/rpc.js +18 -18
- package/_cjs/errors/rpc.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/package.json +1 -0
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
- package/_cjs/utils/address/getAddress.js.map +1 -1
- package/_cjs/utils/address/getContractAddress.js.map +1 -1
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/data/trim.js.map +1 -1
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/encoding/fromRlp.js.map +1 -1
- package/_cjs/utils/encoding/toBytes.js.map +1 -1
- package/_cjs/utils/encoding/toHex.js.map +1 -1
- package/_cjs/utils/encoding/toRlp.js.map +1 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/ens/namehash.js.map +1 -1
- package/_cjs/utils/ens/packetToBytes.js.map +1 -1
- package/_cjs/utils/errors/getContractError.js.map +1 -1
- package/_cjs/utils/errors/getNodeError.js.map +1 -1
- package/_cjs/utils/formatters/extract.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/formatters/transaction.js.map +1 -1
- package/_cjs/utils/hash/normalizeSignature.js.map +1 -1
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/rpc.js.map +1 -1
- package/_cjs/utils/signature/hashTypedData.js.map +1 -1
- package/_cjs/utils/signature/signatureToCompactSignature.js.map +1 -1
- package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_cjs/utils/typedData.js.map +1 -1
- package/_cjs/utils/uid.js.map +1 -1
- package/_cjs/utils/unit/parseUnits.js.map +1 -1
- package/_esm/accounts/generateMnemonic.js +12 -0
- package/_esm/accounts/generateMnemonic.js.map +1 -0
- package/_esm/accounts/generatePrivateKey.js +11 -0
- package/_esm/accounts/generatePrivateKey.js.map +1 -0
- package/_esm/accounts/hdKeyToAccount.js +17 -0
- package/_esm/accounts/hdKeyToAccount.js.map +1 -0
- package/_esm/accounts/index.js +25 -0
- package/_esm/accounts/index.js.map +1 -0
- package/_esm/accounts/mnemonicToAccount.js +13 -0
- package/_esm/accounts/mnemonicToAccount.js.map +1 -0
- package/_esm/accounts/privateKeyToAccount.js +34 -0
- package/_esm/accounts/privateKeyToAccount.js.map +1 -0
- package/_esm/accounts/toAccount.js +28 -0
- package/_esm/accounts/toAccount.js.map +1 -0
- package/_esm/accounts/types.js +2 -0
- package/_esm/accounts/types.js.map +1 -0
- package/_esm/accounts/utils/parseAccount.js +6 -0
- package/_esm/accounts/utils/parseAccount.js.map +1 -0
- package/_esm/accounts/utils/privateKeyToAddress.js +15 -0
- package/_esm/accounts/utils/privateKeyToAddress.js.map +1 -0
- package/_esm/accounts/utils/publicKeyToAddress.js +14 -0
- package/_esm/accounts/utils/publicKeyToAddress.js.map +1 -0
- package/_esm/accounts/utils/sign.js +19 -0
- package/_esm/accounts/utils/sign.js.map +1 -0
- package/_esm/accounts/utils/signMessage.js +14 -0
- package/_esm/accounts/utils/signMessage.js.map +1 -0
- package/_esm/accounts/utils/signTransaction.js +11 -0
- package/_esm/accounts/utils/signTransaction.js.map +1 -0
- package/_esm/accounts/utils/signTypedData.js +18 -0
- package/_esm/accounts/utils/signTypedData.js.map +1 -0
- package/_esm/actions/ens/getEnsAddress.js +87 -0
- package/_esm/actions/ens/getEnsAddress.js.map +1 -0
- package/_esm/actions/ens/getEnsAvatar.js +49 -0
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -0
- package/_esm/actions/ens/getEnsName.js +63 -0
- package/_esm/actions/ens/getEnsName.js.map +1 -0
- package/_esm/actions/ens/getEnsResolver.js +63 -0
- package/_esm/actions/ens/getEnsResolver.js.map +1 -0
- package/_esm/actions/ens/getEnsText.js +82 -0
- package/_esm/actions/ens/getEnsText.js.map +1 -0
- package/_esm/actions/getContract.js +214 -0
- package/_esm/actions/getContract.js.map +1 -0
- package/_esm/actions/index.js +82 -0
- package/_esm/actions/index.js.map +1 -0
- package/_esm/actions/public/call.js +182 -0
- package/_esm/actions/public/call.js.map +1 -0
- package/_esm/actions/public/createBlockFilter.js +32 -0
- package/_esm/actions/public/createBlockFilter.js.map +1 -0
- package/_esm/actions/public/createContractEventFilter.js +59 -0
- package/_esm/actions/public/createContractEventFilter.js.map +1 -0
- package/_esm/actions/public/createEventFilter.js +67 -0
- package/_esm/actions/public/createEventFilter.js.map +1 -0
- package/_esm/actions/public/createPendingTransactionFilter.js +32 -0
- package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -0
- package/_esm/actions/public/estimateContractGas.js +60 -0
- package/_esm/actions/public/estimateContractGas.js.map +1 -0
- package/_esm/actions/public/estimateFeesPerGas.js +83 -0
- package/_esm/actions/public/estimateFeesPerGas.js.map +1 -0
- package/_esm/actions/public/estimateGas.js +73 -0
- package/_esm/actions/public/estimateGas.js.map +1 -0
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +67 -0
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
- package/_esm/actions/public/getBalance.js +45 -0
- package/_esm/actions/public/getBalance.js.map +1 -0
- package/_esm/actions/public/getBlock.js +50 -0
- package/_esm/actions/public/getBlock.js.map +1 -0
- package/_esm/actions/public/getBlockNumber.js +35 -0
- package/_esm/actions/public/getBlockNumber.js.map +1 -0
- package/_esm/actions/public/getBlockTransactionCount.js +43 -0
- package/_esm/actions/public/getBlockTransactionCount.js.map +1 -0
- package/_esm/actions/public/getBytecode.js +35 -0
- package/_esm/actions/public/getBytecode.js.map +1 -0
- package/_esm/actions/public/getChainId.js +29 -0
- package/_esm/actions/public/getChainId.js.map +1 -0
- package/_esm/actions/public/getContractEvents.js +49 -0
- package/_esm/actions/public/getContractEvents.js.map +1 -0
- package/_esm/actions/public/getFeeHistory.js +39 -0
- package/_esm/actions/public/getFeeHistory.js.map +1 -0
- package/_esm/actions/public/getFilterChanges.js +102 -0
- package/_esm/actions/public/getFilterChanges.js.map +1 -0
- package/_esm/actions/public/getFilterLogs.js +45 -0
- package/_esm/actions/public/getFilterLogs.js.map +1 -0
- package/_esm/actions/public/getGasPrice.js +27 -0
- package/_esm/actions/public/getGasPrice.js.map +1 -0
- package/_esm/actions/public/getLogs.js +71 -0
- package/_esm/actions/public/getLogs.js.map +1 -0
- package/_esm/actions/public/getProof.js +37 -0
- package/_esm/actions/public/getProof.js.map +1 -0
- package/_esm/actions/public/getStorageAt.js +34 -0
- package/_esm/actions/public/getStorageAt.js.map +1 -0
- package/_esm/actions/public/getTransaction.js +61 -0
- package/_esm/actions/public/getTransaction.js.map +1 -0
- package/_esm/actions/public/getTransactionConfirmations.js +40 -0
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -0
- package/_esm/actions/public/getTransactionCount.js +33 -0
- package/_esm/actions/public/getTransactionCount.js.map +1 -0
- package/_esm/actions/public/getTransactionReceipt.js +38 -0
- package/_esm/actions/public/getTransactionReceipt.js.map +1 -0
- package/_esm/actions/public/multicall.js +182 -0
- package/_esm/actions/public/multicall.js.map +1 -0
- package/_esm/actions/public/readContract.js +67 -0
- package/_esm/actions/public/readContract.js.map +1 -0
- package/_esm/actions/public/simulateContract.js +83 -0
- package/_esm/actions/public/simulateContract.js.map +1 -0
- package/_esm/actions/public/uninstallFilter.js +31 -0
- package/_esm/actions/public/uninstallFilter.js.map +1 -0
- package/_esm/actions/public/verifyHash.js +38 -0
- package/_esm/actions/public/verifyHash.js.map +1 -0
- package/_esm/actions/public/verifyMessage.js +23 -0
- package/_esm/actions/public/verifyMessage.js.map +1 -0
- package/_esm/actions/public/verifyTypedData.js +21 -0
- package/_esm/actions/public/verifyTypedData.js.map +1 -0
- package/_esm/actions/public/waitForTransactionReceipt.js +180 -0
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -0
- package/_esm/actions/public/watchBlockNumber.js +105 -0
- package/_esm/actions/public/watchBlockNumber.js.map +1 -0
- package/_esm/actions/public/watchBlocks.js +120 -0
- package/_esm/actions/public/watchBlocks.js.map +1 -0
- package/_esm/actions/public/watchContractEvent.js +199 -0
- package/_esm/actions/public/watchContractEvent.js.map +1 -0
- package/_esm/actions/public/watchEvent.js +200 -0
- package/_esm/actions/public/watchEvent.js.map +1 -0
- package/_esm/actions/public/watchPendingTransactions.js +114 -0
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -0
- package/_esm/actions/test/dropTransaction.js +29 -0
- package/_esm/actions/test/dropTransaction.js.map +1 -0
- package/_esm/actions/test/dumpState.js +26 -0
- package/_esm/actions/test/dumpState.js.map +1 -0
- package/_esm/actions/test/getAutomine.js +30 -0
- package/_esm/actions/test/getAutomine.js.map +1 -0
- package/_esm/actions/test/getTxpoolContent.js +26 -0
- package/_esm/actions/test/getTxpoolContent.js.map +1 -0
- package/_esm/actions/test/getTxpoolStatus.js +31 -0
- package/_esm/actions/test/getTxpoolStatus.js.map +1 -0
- package/_esm/actions/test/impersonateAccount.js +29 -0
- package/_esm/actions/test/impersonateAccount.js.map +1 -0
- package/_esm/actions/test/increaseTime.js +30 -0
- package/_esm/actions/test/increaseTime.js.map +1 -0
- package/_esm/actions/test/inspectTxpool.js +26 -0
- package/_esm/actions/test/inspectTxpool.js.map +1 -0
- package/_esm/actions/test/loadState.js +27 -0
- package/_esm/actions/test/loadState.js.map +1 -0
- package/_esm/actions/test/mine.js +34 -0
- package/_esm/actions/test/mine.js.map +1 -0
- package/_esm/actions/test/removeBlockTimestampInterval.js +25 -0
- package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -0
- package/_esm/actions/test/reset.js +27 -0
- package/_esm/actions/test/reset.js.map +1 -0
- package/_esm/actions/test/revert.js +27 -0
- package/_esm/actions/test/revert.js.map +1 -0
- package/_esm/actions/test/sendUnsignedTransaction.js +52 -0
- package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -0
- package/_esm/actions/test/setAutomine.js +33 -0
- package/_esm/actions/test/setAutomine.js.map +1 -0
- package/_esm/actions/test/setBalance.js +37 -0
- package/_esm/actions/test/setBalance.js.map +1 -0
- package/_esm/actions/test/setBlockGasLimit.js +28 -0
- package/_esm/actions/test/setBlockGasLimit.js.map +1 -0
- package/_esm/actions/test/setBlockTimestampInterval.js +32 -0
- package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -0
- package/_esm/actions/test/setCode.js +30 -0
- package/_esm/actions/test/setCode.js.map +1 -0
- package/_esm/actions/test/setCoinbase.js +29 -0
- package/_esm/actions/test/setCoinbase.js.map +1 -0
- package/_esm/actions/test/setIntervalMining.js +32 -0
- package/_esm/actions/test/setIntervalMining.js.map +1 -0
- package/_esm/actions/test/setLoggingEnabled.js +26 -0
- package/_esm/actions/test/setLoggingEnabled.js.map +1 -0
- package/_esm/actions/test/setMinGasPrice.js +32 -0
- package/_esm/actions/test/setMinGasPrice.js.map +1 -0
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js +30 -0
- package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -0
- package/_esm/actions/test/setNextBlockTimestamp.js +28 -0
- package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -0
- package/_esm/actions/test/setNonce.js +31 -0
- package/_esm/actions/test/setNonce.js.map +1 -0
- package/_esm/actions/test/setRpcUrl.js +27 -0
- package/_esm/actions/test/setRpcUrl.js.map +1 -0
- package/_esm/actions/test/setStorageAt.js +36 -0
- package/_esm/actions/test/setStorageAt.js.map +1 -0
- package/_esm/actions/test/snapshot.js +25 -0
- package/_esm/actions/test/snapshot.js.map +1 -0
- package/_esm/actions/test/stopImpersonatingAccount.js +29 -0
- package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -0
- package/_esm/actions/wallet/addChain.js +38 -0
- package/_esm/actions/wallet/addChain.js.map +1 -0
- package/_esm/actions/wallet/deployContract.js +38 -0
- package/_esm/actions/wallet/deployContract.js.map +1 -0
- package/_esm/actions/wallet/getAddresses.js +28 -0
- package/_esm/actions/wallet/getAddresses.js.map +1 -0
- package/_esm/actions/wallet/getPermissions.js +25 -0
- package/_esm/actions/wallet/getPermissions.js.map +1 -0
- package/_esm/actions/wallet/prepareTransactionRequest.js +114 -0
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -0
- package/_esm/actions/wallet/requestAddresses.js +30 -0
- package/_esm/actions/wallet/requestAddresses.js.map +1 -0
- package/_esm/actions/wallet/requestPermissions.js +30 -0
- package/_esm/actions/wallet/requestPermissions.js.map +1 -0
- package/_esm/actions/wallet/sendRawTransaction.js +31 -0
- package/_esm/actions/wallet/sendRawTransaction.js.map +1 -0
- package/_esm/actions/wallet/sendTransaction.js +130 -0
- package/_esm/actions/wallet/sendTransaction.js.map +1 -0
- package/_esm/actions/wallet/signMessage.js +70 -0
- package/_esm/actions/wallet/signMessage.js.map +1 -0
- package/_esm/actions/wallet/signTransaction.js +88 -0
- package/_esm/actions/wallet/signTransaction.js.map +1 -0
- package/_esm/actions/wallet/signTypedData.js +126 -0
- package/_esm/actions/wallet/signTypedData.js.map +1 -0
- package/_esm/actions/wallet/switchChain.js +32 -0
- package/_esm/actions/wallet/switchChain.js.map +1 -0
- package/_esm/actions/wallet/watchAsset.js +36 -0
- package/_esm/actions/wallet/watchAsset.js.map +1 -0
- package/_esm/actions/wallet/writeContract.js +67 -0
- package/_esm/actions/wallet/writeContract.js.map +1 -0
- package/_esm/chains/celo/chainConfig.js +7 -0
- package/_esm/chains/celo/chainConfig.js.map +1 -0
- package/_esm/chains/celo/formatters.js +80 -0
- package/_esm/chains/celo/formatters.js.map +1 -0
- package/_esm/chains/celo/index.js +4 -0
- package/_esm/chains/celo/index.js.map +1 -0
- package/_esm/chains/celo/parsers.js +127 -0
- package/_esm/chains/celo/parsers.js.map +1 -0
- package/_esm/chains/celo/serializers.js +127 -0
- package/_esm/chains/celo/serializers.js.map +1 -0
- package/_esm/chains/celo/types.js +2 -0
- package/_esm/chains/celo/types.js.map +1 -0
- package/_esm/chains/celo/utils.js +50 -0
- package/_esm/chains/celo/utils.js.map +1 -0
- package/_esm/chains/definitions/arbitrum.js +21 -0
- package/_esm/chains/definitions/arbitrum.js.map +1 -0
- package/_esm/chains/definitions/arbitrumGoerli.js +27 -0
- package/_esm/chains/definitions/arbitrumGoerli.js.map +1 -0
- package/_esm/chains/definitions/arbitrumNova.js +21 -0
- package/_esm/chains/definitions/arbitrumNova.js.map +1 -0
- package/_esm/chains/definitions/arbitrumSepolia.js +29 -0
- package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -0
- package/_esm/chains/definitions/astar.js +26 -0
- package/_esm/chains/definitions/astar.js.map +1 -0
- package/_esm/chains/definitions/astarZkatana.js +39 -0
- package/_esm/chains/definitions/astarZkatana.js.map +1 -0
- package/_esm/chains/definitions/aurora.js +23 -0
- package/_esm/chains/definitions/aurora.js.map +1 -0
- package/_esm/chains/definitions/auroraTestnet.js +18 -0
- package/_esm/chains/definitions/auroraTestnet.js.map +1 -0
- package/_esm/chains/definitions/avalanche.js +23 -0
- package/_esm/chains/definitions/avalanche.js.map +1 -0
- package/_esm/chains/definitions/avalancheFuji.js +24 -0
- package/_esm/chains/definitions/avalancheFuji.js.map +1 -0
- package/_esm/chains/definitions/base.js +35 -0
- package/_esm/chains/definitions/base.js.map +1 -0
- package/_esm/chains/definitions/baseGoerli.js +33 -0
- package/_esm/chains/definitions/baseGoerli.js.map +1 -0
- package/_esm/chains/definitions/baseSepolia.js +40 -0
- package/_esm/chains/definitions/baseSepolia.js.map +1 -0
- package/_esm/chains/definitions/bearNetworkChainMainnet.js +17 -0
- package/_esm/chains/definitions/bearNetworkChainMainnet.js.map +1 -0
- package/_esm/chains/definitions/bearNetworkChainTestnet.js +21 -0
- package/_esm/chains/definitions/bearNetworkChainTestnet.js.map +1 -0
- package/_esm/chains/definitions/boba.js +23 -0
- package/_esm/chains/definitions/boba.js.map +1 -0
- package/_esm/chains/definitions/bronos.js +17 -0
- package/_esm/chains/definitions/bronos.js.map +1 -0
- package/_esm/chains/definitions/bronosTestnet.js +18 -0
- package/_esm/chains/definitions/bronosTestnet.js.map +1 -0
- package/_esm/chains/definitions/bsc.js +23 -0
- package/_esm/chains/definitions/bsc.js.map +1 -0
- package/_esm/chains/definitions/bscTestnet.js +25 -0
- package/_esm/chains/definitions/bscTestnet.js.map +1 -0
- package/_esm/chains/definitions/bxn.js +18 -0
- package/_esm/chains/definitions/bxn.js.map +1 -0
- package/_esm/chains/definitions/bxnTestnet.js +22 -0
- package/_esm/chains/definitions/bxnTestnet.js.map +1 -0
- package/_esm/chains/definitions/canto.js +26 -0
- package/_esm/chains/definitions/canto.js.map +1 -0
- package/_esm/chains/definitions/celo.js +29 -0
- package/_esm/chains/definitions/celo.js.map +1 -0
- package/_esm/chains/definitions/celoAlfajores.js +31 -0
- package/_esm/chains/definitions/celoAlfajores.js.map +1 -0
- package/_esm/chains/definitions/celoCannoli.js +31 -0
- package/_esm/chains/definitions/celoCannoli.js.map +1 -0
- package/_esm/chains/definitions/chiliz.js +23 -0
- package/_esm/chains/definitions/chiliz.js.map +1 -0
- package/_esm/chains/definitions/classic.js +20 -0
- package/_esm/chains/definitions/classic.js.map +1 -0
- package/_esm/chains/definitions/confluxESpace.js +25 -0
- package/_esm/chains/definitions/confluxESpace.js.map +1 -0
- package/_esm/chains/definitions/confluxESpaceTestnet.js +31 -0
- package/_esm/chains/definitions/confluxESpaceTestnet.js.map +1 -0
- package/_esm/chains/definitions/coreDao.js +24 -0
- package/_esm/chains/definitions/coreDao.js.map +1 -0
- package/_esm/chains/definitions/cronos.js +23 -0
- package/_esm/chains/definitions/cronos.js.map +1 -0
- package/_esm/chains/definitions/cronosTestnet.js +27 -0
- package/_esm/chains/definitions/cronosTestnet.js.map +1 -0
- package/_esm/chains/definitions/crossbell.js +25 -0
- package/_esm/chains/definitions/crossbell.js.map +1 -0
- package/_esm/chains/definitions/dfk.js +22 -0
- package/_esm/chains/definitions/dfk.js.map +1 -0
- package/_esm/chains/definitions/dogechain.js +20 -0
- package/_esm/chains/definitions/dogechain.js.map +1 -0
- package/_esm/chains/definitions/edgeware.js +23 -0
- package/_esm/chains/definitions/edgeware.js.map +1 -0
- package/_esm/chains/definitions/edgewareTestnet.js +20 -0
- package/_esm/chains/definitions/edgewareTestnet.js.map +1 -0
- package/_esm/chains/definitions/ekta.js +17 -0
- package/_esm/chains/definitions/ekta.js.map +1 -0
- package/_esm/chains/definitions/ektaTestnet.js +18 -0
- package/_esm/chains/definitions/ektaTestnet.js.map +1 -0
- package/_esm/chains/definitions/eon.js +21 -0
- package/_esm/chains/definitions/eon.js.map +1 -0
- package/_esm/chains/definitions/eos.js +26 -0
- package/_esm/chains/definitions/eos.js.map +1 -0
- package/_esm/chains/definitions/eosTestnet.js +27 -0
- package/_esm/chains/definitions/eosTestnet.js.map +1 -0
- package/_esm/chains/definitions/evmos.js +17 -0
- package/_esm/chains/definitions/evmos.js.map +1 -0
- package/_esm/chains/definitions/evmosTestnet.js +20 -0
- package/_esm/chains/definitions/evmosTestnet.js.map +1 -0
- package/_esm/chains/definitions/fantom.js +23 -0
- package/_esm/chains/definitions/fantom.js.map +1 -0
- package/_esm/chains/definitions/fantomTestnet.js +23 -0
- package/_esm/chains/definitions/fantomTestnet.js.map +1 -0
- package/_esm/chains/definitions/fibo.js +17 -0
- package/_esm/chains/definitions/fibo.js.map +1 -0
- package/_esm/chains/definitions/filecoin.js +23 -0
- package/_esm/chains/definitions/filecoin.js.map +1 -0
- package/_esm/chains/definitions/filecoinCalibration.js +17 -0
- package/_esm/chains/definitions/filecoinCalibration.js.map +1 -0
- package/_esm/chains/definitions/filecoinHyperspace.js +17 -0
- package/_esm/chains/definitions/filecoinHyperspace.js.map +1 -0
- package/_esm/chains/definitions/flare.js +20 -0
- package/_esm/chains/definitions/flare.js.map +1 -0
- package/_esm/chains/definitions/flareTestnet.js +21 -0
- package/_esm/chains/definitions/flareTestnet.js.map +1 -0
- package/_esm/chains/definitions/foundry.js +17 -0
- package/_esm/chains/definitions/foundry.js.map +1 -0
- package/_esm/chains/definitions/fuse.js +19 -0
- package/_esm/chains/definitions/fuse.js.map +1 -0
- package/_esm/chains/definitions/fuseSparknet.js +16 -0
- package/_esm/chains/definitions/fuseSparknet.js.map +1 -0
- package/_esm/chains/definitions/gnosis.js +29 -0
- package/_esm/chains/definitions/gnosis.js.map +1 -0
- package/_esm/chains/definitions/gnosisChiado.js +30 -0
- package/_esm/chains/definitions/gnosisChiado.js.map +1 -0
- package/_esm/chains/definitions/gobi.js +19 -0
- package/_esm/chains/definitions/gobi.js.map +1 -0
- package/_esm/chains/definitions/goerli.js +32 -0
- package/_esm/chains/definitions/goerli.js.map +1 -0
- package/_esm/chains/definitions/haqqMainnet.js +22 -0
- package/_esm/chains/definitions/haqqMainnet.js.map +1 -0
- package/_esm/chains/definitions/haqqTestedge2.js +22 -0
- package/_esm/chains/definitions/haqqTestedge2.js.map +1 -0
- package/_esm/chains/definitions/hardhat.js +14 -0
- package/_esm/chains/definitions/hardhat.js.map +1 -0
- package/_esm/chains/definitions/harmonyOne.js +23 -0
- package/_esm/chains/definitions/harmonyOne.js.map +1 -0
- package/_esm/chains/definitions/holesky.js +19 -0
- package/_esm/chains/definitions/holesky.js.map +1 -0
- package/_esm/chains/definitions/iotex.js +20 -0
- package/_esm/chains/definitions/iotex.js.map +1 -0
- package/_esm/chains/definitions/iotexTestnet.js +20 -0
- package/_esm/chains/definitions/iotexTestnet.js.map +1 -0
- package/_esm/chains/definitions/kava.js +26 -0
- package/_esm/chains/definitions/kava.js.map +1 -0
- package/_esm/chains/definitions/kavaTestnet.js +29 -0
- package/_esm/chains/definitions/kavaTestnet.js.map +1 -0
- package/_esm/chains/definitions/klaytn.js +23 -0
- package/_esm/chains/definitions/klaytn.js.map +1 -0
- package/_esm/chains/definitions/klaytnBaobab.js +27 -0
- package/_esm/chains/definitions/klaytnBaobab.js.map +1 -0
- package/_esm/chains/definitions/kroma.js +19 -0
- package/_esm/chains/definitions/kroma.js.map +1 -0
- package/_esm/chains/definitions/kromaSepolia.js +19 -0
- package/_esm/chains/definitions/kromaSepolia.js.map +1 -0
- package/_esm/chains/definitions/linea.js +26 -0
- package/_esm/chains/definitions/linea.js.map +1 -0
- package/_esm/chains/definitions/lineaTestnet.js +26 -0
- package/_esm/chains/definitions/lineaTestnet.js.map +1 -0
- package/_esm/chains/definitions/localhost.js +14 -0
- package/_esm/chains/definitions/localhost.js.map +1 -0
- package/_esm/chains/definitions/lukso.js +28 -0
- package/_esm/chains/definitions/lukso.js.map +1 -0
- package/_esm/chains/definitions/mainnet.js +31 -0
- package/_esm/chains/definitions/mainnet.js.map +1 -0
- package/_esm/chains/definitions/manta.js +32 -0
- package/_esm/chains/definitions/manta.js.map +1 -0
- package/_esm/chains/definitions/mantaTestnet.js +33 -0
- package/_esm/chains/definitions/mantaTestnet.js.map +1 -0
- package/_esm/chains/definitions/mantle.js +26 -0
- package/_esm/chains/definitions/mantle.js.map +1 -0
- package/_esm/chains/definitions/mantleTestnet.js +21 -0
- package/_esm/chains/definitions/mantleTestnet.js.map +1 -0
- package/_esm/chains/definitions/meter.js +17 -0
- package/_esm/chains/definitions/meter.js.map +1 -0
- package/_esm/chains/definitions/meterTestnet.js +20 -0
- package/_esm/chains/definitions/meterTestnet.js.map +1 -0
- package/_esm/chains/definitions/metis.js +26 -0
- package/_esm/chains/definitions/metis.js.map +1 -0
- package/_esm/chains/definitions/metisGoerli.js +26 -0
- package/_esm/chains/definitions/metisGoerli.js.map +1 -0
- package/_esm/chains/definitions/mev.js +28 -0
- package/_esm/chains/definitions/mev.js.map +1 -0
- package/_esm/chains/definitions/mevTestnet.js +29 -0
- package/_esm/chains/definitions/mevTestnet.js.map +1 -0
- package/_esm/chains/definitions/modeTestnet.js +25 -0
- package/_esm/chains/definitions/modeTestnet.js.map +1 -0
- package/_esm/chains/definitions/moonbaseAlpha.js +30 -0
- package/_esm/chains/definitions/moonbaseAlpha.js.map +1 -0
- package/_esm/chains/definitions/moonbeam.js +30 -0
- package/_esm/chains/definitions/moonbeam.js.map +1 -0
- package/_esm/chains/definitions/moonbeamDev.js +17 -0
- package/_esm/chains/definitions/moonbeamDev.js.map +1 -0
- package/_esm/chains/definitions/moonriver.js +30 -0
- package/_esm/chains/definitions/moonriver.js.map +1 -0
- package/_esm/chains/definitions/neonDevnet.js +25 -0
- package/_esm/chains/definitions/neonDevnet.js.map +1 -0
- package/_esm/chains/definitions/neonMainnet.js +24 -0
- package/_esm/chains/definitions/neonMainnet.js.map +1 -0
- package/_esm/chains/definitions/nexi.js +24 -0
- package/_esm/chains/definitions/nexi.js.map +1 -0
- package/_esm/chains/definitions/nexilix.js +23 -0
- package/_esm/chains/definitions/nexilix.js.map +1 -0
- package/_esm/chains/definitions/oasys.js +18 -0
- package/_esm/chains/definitions/oasys.js.map +1 -0
- package/_esm/chains/definitions/okc.js +23 -0
- package/_esm/chains/definitions/okc.js.map +1 -0
- package/_esm/chains/definitions/opBNB.js +23 -0
- package/_esm/chains/definitions/opBNB.js.map +1 -0
- package/_esm/chains/definitions/opBNBTestnet.js +24 -0
- package/_esm/chains/definitions/opBNBTestnet.js.map +1 -0
- package/_esm/chains/definitions/optimism.js +34 -0
- package/_esm/chains/definitions/optimism.js.map +1 -0
- package/_esm/chains/definitions/optimismGoerli.js +35 -0
- package/_esm/chains/definitions/optimismGoerli.js.map +1 -0
- package/_esm/chains/definitions/optimismSepolia.js +35 -0
- package/_esm/chains/definitions/optimismSepolia.js.map +1 -0
- package/_esm/chains/definitions/pgn.js +34 -0
- package/_esm/chains/definitions/pgn.js.map +1 -0
- package/_esm/chains/definitions/pgnTestnet.js +35 -0
- package/_esm/chains/definitions/pgnTestnet.js.map +1 -0
- package/_esm/chains/definitions/plinga.js +24 -0
- package/_esm/chains/definitions/plinga.js.map +1 -0
- package/_esm/chains/definitions/polygon.js +24 -0
- package/_esm/chains/definitions/polygon.js.map +1 -0
- package/_esm/chains/definitions/polygonMumbai.js +25 -0
- package/_esm/chains/definitions/polygonMumbai.js.map +1 -0
- package/_esm/chains/definitions/polygonZkEvm.js +24 -0
- package/_esm/chains/definitions/polygonZkEvm.js.map +1 -0
- package/_esm/chains/definitions/polygonZkEvmTestnet.js +25 -0
- package/_esm/chains/definitions/polygonZkEvmTestnet.js.map +1 -0
- package/_esm/chains/definitions/pulsechain.js +29 -0
- package/_esm/chains/definitions/pulsechain.js.map +1 -0
- package/_esm/chains/definitions/pulsechainV4.js +29 -0
- package/_esm/chains/definitions/pulsechainV4.js.map +1 -0
- package/_esm/chains/definitions/qMainnet.js +20 -0
- package/_esm/chains/definitions/qMainnet.js.map +1 -0
- package/_esm/chains/definitions/qTestnet.js +21 -0
- package/_esm/chains/definitions/qTestnet.js.map +1 -0
- package/_esm/chains/definitions/rollux.js +26 -0
- package/_esm/chains/definitions/rollux.js.map +1 -0
- package/_esm/chains/definitions/rolluxTestnet.js +29 -0
- package/_esm/chains/definitions/rolluxTestnet.js.map +1 -0
- package/_esm/chains/definitions/ronin.js +21 -0
- package/_esm/chains/definitions/ronin.js.map +1 -0
- package/_esm/chains/definitions/rootstock.js +26 -0
- package/_esm/chains/definitions/rootstock.js.map +1 -0
- package/_esm/chains/definitions/saigon.js +25 -0
- package/_esm/chains/definitions/saigon.js.map +1 -0
- package/_esm/chains/definitions/sapphire.js +30 -0
- package/_esm/chains/definitions/sapphire.js.map +1 -0
- package/_esm/chains/definitions/sapphireTestnet.js +25 -0
- package/_esm/chains/definitions/sapphireTestnet.js.map +1 -0
- package/_esm/chains/definitions/scroll.js +26 -0
- package/_esm/chains/definitions/scroll.js.map +1 -0
- package/_esm/chains/definitions/scrollSepolia.js +25 -0
- package/_esm/chains/definitions/scrollSepolia.js.map +1 -0
- package/_esm/chains/definitions/scrollTestnet.js +20 -0
- package/_esm/chains/definitions/scrollTestnet.js.map +1 -0
- package/_esm/chains/definitions/sepolia.js +30 -0
- package/_esm/chains/definitions/sepolia.js.map +1 -0
- package/_esm/chains/definitions/shardeumSphinx.js +19 -0
- package/_esm/chains/definitions/shardeumSphinx.js.map +1 -0
- package/_esm/chains/definitions/shibarium.js +32 -0
- package/_esm/chains/definitions/shibarium.js.map +1 -0
- package/_esm/chains/definitions/shimmer.js +26 -0
- package/_esm/chains/definitions/shimmer.js.map +1 -0
- package/_esm/chains/definitions/shimmerTestnet.js +27 -0
- package/_esm/chains/definitions/shimmerTestnet.js.map +1 -0
- package/_esm/chains/definitions/skale/brawl.js +20 -0
- package/_esm/chains/definitions/skale/brawl.js.map +1 -0
- package/_esm/chains/definitions/skale/calypso.js +27 -0
- package/_esm/chains/definitions/skale/calypso.js.map +1 -0
- package/_esm/chains/definitions/skale/calypsoTestnet.js +30 -0
- package/_esm/chains/definitions/skale/calypsoTestnet.js.map +1 -0
- package/_esm/chains/definitions/skale/chaosTestnet.js +30 -0
- package/_esm/chains/definitions/skale/chaosTestnet.js.map +1 -0
- package/_esm/chains/definitions/skale/cryptoBlades.js +22 -0
- package/_esm/chains/definitions/skale/cryptoBlades.js.map +1 -0
- package/_esm/chains/definitions/skale/cryptoColosseum.js +20 -0
- package/_esm/chains/definitions/skale/cryptoColosseum.js.map +1 -0
- package/_esm/chains/definitions/skale/europa.js +25 -0
- package/_esm/chains/definitions/skale/europa.js.map +1 -0
- package/_esm/chains/definitions/skale/europaTestnet.js +28 -0
- package/_esm/chains/definitions/skale/europaTestnet.js.map +1 -0
- package/_esm/chains/definitions/skale/exorde.js +20 -0
- package/_esm/chains/definitions/skale/exorde.js.map +1 -0
- package/_esm/chains/definitions/skale/humanProtocol.js +20 -0
- package/_esm/chains/definitions/skale/humanProtocol.js.map +1 -0
- package/_esm/chains/definitions/skale/nebula.js +25 -0
- package/_esm/chains/definitions/skale/nebula.js.map +1 -0
- package/_esm/chains/definitions/skale/nebulaTestnet.js +28 -0
- package/_esm/chains/definitions/skale/nebulaTestnet.js.map +1 -0
- package/_esm/chains/definitions/skale/razor.js +20 -0
- package/_esm/chains/definitions/skale/razor.js.map +1 -0
- package/_esm/chains/definitions/skale/titan.js +25 -0
- package/_esm/chains/definitions/skale/titan.js.map +1 -0
- package/_esm/chains/definitions/skale/titanTestnet.js +30 -0
- package/_esm/chains/definitions/skale/titanTestnet.js.map +1 -0
- package/_esm/chains/definitions/songbird.js +20 -0
- package/_esm/chains/definitions/songbird.js.map +1 -0
- package/_esm/chains/definitions/songbirdTestnet.js +21 -0
- package/_esm/chains/definitions/songbirdTestnet.js.map +1 -0
- package/_esm/chains/definitions/spicy.js +31 -0
- package/_esm/chains/definitions/spicy.js.map +1 -0
- package/_esm/chains/definitions/syscoin.js +26 -0
- package/_esm/chains/definitions/syscoin.js.map +1 -0
- package/_esm/chains/definitions/syscoinTestnet.js +26 -0
- package/_esm/chains/definitions/syscoinTestnet.js.map +1 -0
- package/_esm/chains/definitions/taikoJolnir.js +18 -0
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -0
- package/_esm/chains/definitions/taikoTestnetSepolia.js +18 -0
- package/_esm/chains/definitions/taikoTestnetSepolia.js.map +1 -0
- package/_esm/chains/definitions/taraxa.js +18 -0
- package/_esm/chains/definitions/taraxa.js.map +1 -0
- package/_esm/chains/definitions/taraxaTestnet.js +19 -0
- package/_esm/chains/definitions/taraxaTestnet.js.map +1 -0
- package/_esm/chains/definitions/telos.js +26 -0
- package/_esm/chains/definitions/telos.js.map +1 -0
- package/_esm/chains/definitions/telosTestnet.js +21 -0
- package/_esm/chains/definitions/telosTestnet.js.map +1 -0
- package/_esm/chains/definitions/tenet.js +20 -0
- package/_esm/chains/definitions/tenet.js.map +1 -0
- package/_esm/chains/definitions/thunderTestnet.js +19 -0
- package/_esm/chains/definitions/thunderTestnet.js.map +1 -0
- package/_esm/chains/definitions/vechain.js +22 -0
- package/_esm/chains/definitions/vechain.js.map +1 -0
- package/_esm/chains/definitions/wanchain.js +27 -0
- package/_esm/chains/definitions/wanchain.js.map +1 -0
- package/_esm/chains/definitions/wanchainTestnet.js +25 -0
- package/_esm/chains/definitions/wanchainTestnet.js.map +1 -0
- package/_esm/chains/definitions/xdc.js +18 -0
- package/_esm/chains/definitions/xdc.js.map +1 -0
- package/_esm/chains/definitions/xdcTestnet.js +18 -0
- package/_esm/chains/definitions/xdcTestnet.js.map +1 -0
- package/_esm/chains/definitions/zetachainAthensTestnet.js +23 -0
- package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -0
- package/_esm/chains/definitions/zhejiang.js +19 -0
- package/_esm/chains/definitions/zhejiang.js.map +1 -0
- package/_esm/chains/definitions/zkSync.js +31 -0
- package/_esm/chains/definitions/zkSync.js.map +1 -0
- package/_esm/chains/definitions/zkSyncTestnet.js +28 -0
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -0
- package/_esm/chains/definitions/zora.js +36 -0
- package/_esm/chains/definitions/zora.js.map +1 -0
- package/_esm/chains/definitions/zoraSepolia.js +45 -0
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -0
- package/_esm/chains/definitions/zoraTestnet.js +40 -0
- package/_esm/chains/definitions/zoraTestnet.js.map +1 -0
- package/_esm/chains/index.js +170 -0
- package/_esm/chains/index.js.map +1 -0
- package/_esm/chains/opStack/abis.js +391 -0
- package/_esm/chains/opStack/abis.js.map +1 -0
- package/_esm/chains/opStack/actions/buildDepositTransaction.js +54 -0
- package/_esm/chains/opStack/actions/buildDepositTransaction.js.map +1 -0
- package/_esm/chains/opStack/actions/depositTransaction.js +88 -0
- package/_esm/chains/opStack/actions/depositTransaction.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 +9 -0
- package/_esm/chains/opStack/chainConfig.js.map +1 -0
- package/_esm/chains/opStack/chains.js +10 -0
- package/_esm/chains/opStack/chains.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/publicL2.js +25 -0
- package/_esm/chains/opStack/decorators/publicL2.js.map +1 -0
- package/_esm/chains/opStack/decorators/walletL1.js +9 -0
- package/_esm/chains/opStack/decorators/walletL1.js.map +1 -0
- package/_esm/chains/opStack/formatters.js +53 -0
- package/_esm/chains/opStack/formatters.js.map +1 -0
- package/_esm/chains/opStack/index.js +22 -0
- package/_esm/chains/opStack/index.js.map +1 -0
- package/_esm/chains/opStack/parsers.js +51 -0
- package/_esm/chains/opStack/parsers.js.map +1 -0
- package/_esm/chains/opStack/serializers.js +47 -0
- package/_esm/chains/opStack/serializers.js.map +1 -0
- package/_esm/chains/opStack/types/block.js +2 -0
- package/_esm/chains/opStack/types/block.js.map +1 -0
- package/_esm/chains/opStack/types/chain.js +2 -0
- package/_esm/chains/opStack/types/chain.js.map +1 -0
- package/_esm/chains/opStack/types/contract.js +2 -0
- package/_esm/chains/opStack/types/contract.js.map +1 -0
- package/_esm/chains/opStack/types/transaction.js +2 -0
- package/_esm/chains/opStack/types/transaction.js.map +1 -0
- package/_esm/chains/opStack/utils/extractTransactionDepositedLogs.js +10 -0
- package/_esm/chains/opStack/utils/extractTransactionDepositedLogs.js.map +1 -0
- package/_esm/chains/opStack/utils/fromOpaqueData.js +25 -0
- package/_esm/chains/opStack/utils/fromOpaqueData.js.map +1 -0
- package/_esm/chains/opStack/utils/getL2TransactionHash.js +25 -0
- package/_esm/chains/opStack/utils/getL2TransactionHash.js.map +1 -0
- package/_esm/chains/opStack/utils/getL2TransactionHashes.js +7 -0
- package/_esm/chains/opStack/utils/getL2TransactionHashes.js.map +1 -0
- package/_esm/chains/opStack/utils/getSourceHash.js +18 -0
- package/_esm/chains/opStack/utils/getSourceHash.js.map +1 -0
- package/_esm/chains/utils.js +5 -0
- package/_esm/chains/utils.js.map +1 -0
- package/_esm/chains/zksync/chainConfig.js +7 -0
- package/_esm/chains/zksync/chainConfig.js.map +1 -0
- package/_esm/chains/zksync/formatters.js +126 -0
- package/_esm/chains/zksync/formatters.js.map +1 -0
- package/_esm/chains/zksync/index.js +3 -0
- package/_esm/chains/zksync/index.js.map +1 -0
- package/_esm/chains/zksync/serializers.js +71 -0
- package/_esm/chains/zksync/serializers.js.map +1 -0
- package/_esm/chains/zksync/types.js +2 -0
- package/_esm/chains/zksync/types.js.map +1 -0
- package/_esm/clients/createClient.js +38 -0
- package/_esm/clients/createClient.js.map +1 -0
- package/_esm/clients/createPublicClient.js +13 -0
- package/_esm/clients/createPublicClient.js.map +1 -0
- package/_esm/clients/createTestClient.js +16 -0
- package/_esm/clients/createTestClient.js.map +1 -0
- package/_esm/clients/createWalletClient.js +14 -0
- package/_esm/clients/createWalletClient.js.map +1 -0
- package/_esm/clients/decorators/public.js +97 -0
- package/_esm/clients/decorators/public.js.map +1 -0
- package/_esm/clients/decorators/test.js +70 -0
- package/_esm/clients/decorators/test.js.map +1 -0
- package/_esm/clients/decorators/wallet.js +38 -0
- package/_esm/clients/decorators/wallet.js.map +1 -0
- package/_esm/clients/transports/createTransport.js +12 -0
- package/_esm/clients/transports/createTransport.js.map +1 -0
- package/_esm/clients/transports/custom.js +22 -0
- package/_esm/clients/transports/custom.js.map +1 -0
- package/_esm/clients/transports/fallback.js +141 -0
- package/_esm/clients/transports/fallback.js.map +1 -0
- package/_esm/clients/transports/http.js +60 -0
- package/_esm/clients/transports/http.js.map +1 -0
- package/_esm/clients/transports/webSocket.js +82 -0
- package/_esm/clients/transports/webSocket.js.map +1 -0
- package/_esm/constants/abis.js +1360 -0
- package/_esm/constants/abis.js.map +1 -0
- package/_esm/constants/address.js +2 -0
- package/_esm/constants/address.js.map +1 -0
- package/_esm/constants/bytes.js +2 -0
- package/_esm/constants/bytes.js.map +1 -0
- package/_esm/constants/contract.js +2 -0
- package/_esm/constants/contract.js.map +1 -0
- package/_esm/constants/contracts.js +2 -0
- package/_esm/constants/contracts.js.map +1 -0
- package/_esm/constants/number.js +97 -0
- package/_esm/constants/number.js.map +1 -0
- package/_esm/constants/solidity.js +33 -0
- package/_esm/constants/solidity.js.map +1 -0
- package/_esm/constants/strings.js +2 -0
- package/_esm/constants/strings.js.map +1 -0
- package/_esm/constants/unit.js +13 -0
- package/_esm/constants/unit.js.map +1 -0
- package/_esm/ens/index.js +9 -0
- package/_esm/ens/index.js.map +1 -0
- package/_esm/errors/abi.js +433 -0
- package/_esm/errors/abi.js.map +1 -0
- package/_esm/errors/account.js +19 -0
- package/_esm/errors/account.js.map +1 -0
- package/_esm/errors/address.js +13 -0
- package/_esm/errors/address.js.map +1 -0
- package/_esm/errors/base.js +79 -0
- package/_esm/errors/base.js.map +1 -0
- package/_esm/errors/block.js +18 -0
- package/_esm/errors/block.js.map +1 -0
- package/_esm/errors/ccip.js +63 -0
- package/_esm/errors/ccip.js.map +1 -0
- package/_esm/errors/chain.js +78 -0
- package/_esm/errors/chain.js.map +1 -0
- package/_esm/errors/contract.js +278 -0
- package/_esm/errors/contract.js.map +1 -0
- package/_esm/errors/cursor.js +24 -0
- package/_esm/errors/cursor.js.map +1 -0
- package/_esm/errors/data.js +26 -0
- package/_esm/errors/data.js.map +1 -0
- package/_esm/errors/encoding.js +57 -0
- package/_esm/errors/encoding.js.map +1 -0
- package/_esm/errors/ens.js +52 -0
- package/_esm/errors/ens.js.map +1 -0
- package/_esm/errors/estimateGas.js +45 -0
- package/_esm/errors/estimateGas.js.map +1 -0
- package/_esm/errors/fee.js +36 -0
- package/_esm/errors/fee.js.map +1 -0
- package/_esm/errors/log.js +13 -0
- package/_esm/errors/log.js.map +1 -0
- package/_esm/errors/node.js +247 -0
- package/_esm/errors/node.js.map +1 -0
- package/_esm/errors/request.js +100 -0
- package/_esm/errors/request.js.map +1 -0
- package/_esm/errors/rpc.js +424 -0
- package/_esm/errors/rpc.js.map +1 -0
- package/_esm/errors/transaction.js +211 -0
- package/_esm/errors/transaction.js.map +1 -0
- package/_esm/errors/transport.js +9 -0
- package/_esm/errors/transport.js.map +1 -0
- package/_esm/errors/utils.js +5 -0
- package/_esm/errors/utils.js.map +1 -0
- package/_esm/errors/version.js +2 -0
- package/_esm/errors/version.js.map +1 -0
- package/_esm/index.js +121 -0
- package/_esm/index.js.map +1 -0
- package/_esm/package.json +1 -0
- package/_esm/types/account.js +2 -0
- package/_esm/types/account.js.map +1 -0
- package/_esm/types/block.js +2 -0
- package/_esm/types/block.js.map +1 -0
- package/_esm/types/chain.js +2 -0
- package/_esm/types/chain.js.map +1 -0
- package/_esm/types/contract.js +2 -0
- package/_esm/types/contract.js.map +1 -0
- package/_esm/types/eip1193.js +20 -0
- package/_esm/types/eip1193.js.map +1 -0
- package/_esm/types/ens.js +2 -0
- package/_esm/types/ens.js.map +1 -0
- package/_esm/types/fee.js +2 -0
- package/_esm/types/fee.js.map +1 -0
- package/_esm/types/filter.js +2 -0
- package/_esm/types/filter.js.map +1 -0
- package/_esm/types/log.js +2 -0
- package/_esm/types/log.js.map +1 -0
- package/_esm/types/misc.js +2 -0
- package/_esm/types/misc.js.map +1 -0
- package/_esm/types/multicall.js +2 -0
- package/_esm/types/multicall.js.map +1 -0
- package/_esm/types/proof.js +2 -0
- package/_esm/types/proof.js.map +1 -0
- package/_esm/types/rpc.js +2 -0
- package/_esm/types/rpc.js.map +1 -0
- package/_esm/types/transaction.js +2 -0
- package/_esm/types/transaction.js.map +1 -0
- package/_esm/types/transport.js +2 -0
- package/_esm/types/transport.js.map +1 -0
- package/_esm/types/typedData.js +2 -0
- package/_esm/types/typedData.js.map +1 -0
- package/_esm/types/utils.js +2 -0
- package/_esm/types/utils.js.map +1 -0
- package/_esm/types/window.js +2 -0
- package/_esm/types/window.js.map +1 -0
- package/_esm/types/withdrawal.js +2 -0
- package/_esm/types/withdrawal.js.map +1 -0
- package/_esm/utils/abi/decodeAbiParameters.js +234 -0
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -0
- package/_esm/utils/abi/decodeDeployData.js +18 -0
- package/_esm/utils/abi/decodeDeployData.js.map +1 -0
- package/_esm/utils/abi/decodeErrorResult.js +26 -0
- package/_esm/utils/abi/decodeErrorResult.js.map +1 -0
- package/_esm/utils/abi/decodeEventLog.js +83 -0
- package/_esm/utils/abi/decodeEventLog.js.map +1 -0
- package/_esm/utils/abi/decodeFunctionData.js +24 -0
- package/_esm/utils/abi/decodeFunctionData.js.map +1 -0
- package/_esm/utils/abi/decodeFunctionResult.js +25 -0
- package/_esm/utils/abi/decodeFunctionResult.js.map +1 -0
- package/_esm/utils/abi/encodeAbiParameters.js +215 -0
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -0
- package/_esm/utils/abi/encodeDeployData.js +19 -0
- package/_esm/utils/abi/encodeDeployData.js.map +1 -0
- package/_esm/utils/abi/encodeErrorResult.js +29 -0
- package/_esm/utils/abi/encodeErrorResult.js.map +1 -0
- package/_esm/utils/abi/encodeEventTopics.js +49 -0
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -0
- package/_esm/utils/abi/encodeFunctionData.js +30 -0
- package/_esm/utils/abi/encodeFunctionData.js.map +1 -0
- package/_esm/utils/abi/encodeFunctionResult.js +23 -0
- package/_esm/utils/abi/encodeFunctionResult.js.map +1 -0
- package/_esm/utils/abi/encodePacked.js +69 -0
- package/_esm/utils/abi/encodePacked.js.map +1 -0
- package/_esm/utils/abi/formatAbiItem.js +22 -0
- package/_esm/utils/abi/formatAbiItem.js.map +1 -0
- package/_esm/utils/abi/formatAbiItemWithArgs.js +13 -0
- package/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -0
- package/_esm/utils/abi/getAbiItem.js +86 -0
- package/_esm/utils/abi/getAbiItem.js.map +1 -0
- package/_esm/utils/abi/parseEventLogs.js +59 -0
- package/_esm/utils/abi/parseEventLogs.js.map +1 -0
- package/_esm/utils/accounts.js +6 -0
- package/_esm/utils/accounts.js.map +1 -0
- package/_esm/utils/address/getAddress.js +26 -0
- package/_esm/utils/address/getAddress.js.map +1 -0
- package/_esm/utils/address/getContractAddress.js +36 -0
- package/_esm/utils/address/getContractAddress.js.map +1 -0
- package/_esm/utils/address/isAddress.js +5 -0
- package/_esm/utils/address/isAddress.js.map +1 -0
- package/_esm/utils/address/isAddressEqual.js +10 -0
- package/_esm/utils/address/isAddressEqual.js.map +1 -0
- package/_esm/utils/buildRequest.js +137 -0
- package/_esm/utils/buildRequest.js.map +1 -0
- package/_esm/utils/ccip.js +119 -0
- package/_esm/utils/ccip.js.map +1 -0
- package/_esm/utils/chain/assertCurrentChain.js +8 -0
- package/_esm/utils/chain/assertCurrentChain.js.map +1 -0
- package/_esm/utils/chain/defineChain.js +9 -0
- package/_esm/utils/chain/defineChain.js.map +1 -0
- package/_esm/utils/chain/extractChain.js +4 -0
- package/_esm/utils/chain/extractChain.js.map +1 -0
- package/_esm/utils/chain/getChainContractAddress.js +22 -0
- package/_esm/utils/chain/getChainContractAddress.js.map +1 -0
- package/_esm/utils/cursor.js +130 -0
- package/_esm/utils/cursor.js.map +1 -0
- package/_esm/utils/data/concat.js +22 -0
- package/_esm/utils/data/concat.js.map +1 -0
- package/_esm/utils/data/isBytes.js +10 -0
- package/_esm/utils/data/isBytes.js.map +1 -0
- package/_esm/utils/data/isBytesEqual.js +9 -0
- package/_esm/utils/data/isBytesEqual.js.map +1 -0
- package/_esm/utils/data/isHex.js +8 -0
- package/_esm/utils/data/isHex.js.map +1 -0
- package/_esm/utils/data/pad.js +36 -0
- package/_esm/utils/data/pad.js.map +1 -0
- package/_esm/utils/data/size.js +13 -0
- package/_esm/utils/data/size.js.map +1 -0
- package/_esm/utils/data/slice.js +69 -0
- package/_esm/utils/data/slice.js.map +1 -0
- package/_esm/utils/data/trim.js +21 -0
- package/_esm/utils/data/trim.js.map +1 -0
- package/_esm/utils/encoding/fromBytes.js +127 -0
- package/_esm/utils/encoding/fromBytes.js.map +1 -0
- package/_esm/utils/encoding/fromHex.js +167 -0
- package/_esm/utils/encoding/fromHex.js.map +1 -0
- package/_esm/utils/encoding/fromRlp.js +63 -0
- package/_esm/utils/encoding/fromRlp.js.map +1 -0
- package/_esm/utils/encoding/toBytes.js +177 -0
- package/_esm/utils/encoding/toBytes.js.map +1 -0
- package/_esm/utils/encoding/toHex.js +177 -0
- package/_esm/utils/encoding/toHex.js.map +1 -0
- package/_esm/utils/encoding/toRlp.js +101 -0
- package/_esm/utils/encoding/toRlp.js.map +1 -0
- package/_esm/utils/ens/avatar/parseAvatarRecord.js +34 -0
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -0
- package/_esm/utils/ens/avatar/utils.js +186 -0
- package/_esm/utils/ens/avatar/utils.js.map +1 -0
- package/_esm/utils/ens/encodeLabelhash.js +4 -0
- package/_esm/utils/ens/encodeLabelhash.js.map +1 -0
- package/_esm/utils/ens/encodedLabelToLabelhash.js +14 -0
- package/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -0
- package/_esm/utils/ens/errors.js +25 -0
- package/_esm/utils/ens/errors.js.map +1 -0
- package/_esm/utils/ens/labelhash.js +20 -0
- package/_esm/utils/ens/labelhash.js.map +1 -0
- package/_esm/utils/ens/namehash.js +32 -0
- package/_esm/utils/ens/namehash.js.map +1 -0
- package/_esm/utils/ens/normalize.js +15 -0
- package/_esm/utils/ens/normalize.js.map +1 -0
- package/_esm/utils/ens/packetToBytes.js +29 -0
- package/_esm/utils/ens/packetToBytes.js.map +1 -0
- package/_esm/utils/errors/getCallError.js +16 -0
- package/_esm/utils/errors/getCallError.js.map +1 -0
- package/_esm/utils/errors/getContractError.js +35 -0
- package/_esm/utils/errors/getContractError.js.map +1 -0
- package/_esm/utils/errors/getEstimateGasError.js +16 -0
- package/_esm/utils/errors/getEstimateGasError.js.map +1 -0
- package/_esm/utils/errors/getNodeError.js +60 -0
- package/_esm/utils/errors/getNodeError.js.map +1 -0
- package/_esm/utils/errors/getTransactionError.js +16 -0
- package/_esm/utils/errors/getTransactionError.js.map +1 -0
- package/_esm/utils/filters/createFilterRequestScope.js +15 -0
- package/_esm/utils/filters/createFilterRequestScope.js.map +1 -0
- package/_esm/utils/formatters/block.js +28 -0
- package/_esm/utils/formatters/block.js.map +1 -0
- package/_esm/utils/formatters/extract.js +23 -0
- package/_esm/utils/formatters/extract.js.map +1 -0
- package/_esm/utils/formatters/feeHistory.js +9 -0
- package/_esm/utils/formatters/feeHistory.js.map +1 -0
- package/_esm/utils/formatters/formatter.js +21 -0
- package/_esm/utils/formatters/formatter.js.map +1 -0
- package/_esm/utils/formatters/log.js +14 -0
- package/_esm/utils/formatters/log.js.map +1 -0
- package/_esm/utils/formatters/proof.js +18 -0
- package/_esm/utils/formatters/proof.js.map +1 -0
- package/_esm/utils/formatters/transaction.js +64 -0
- package/_esm/utils/formatters/transaction.js.map +1 -0
- package/_esm/utils/formatters/transactionReceipt.js +43 -0
- package/_esm/utils/formatters/transactionReceipt.js.map +1 -0
- package/_esm/utils/formatters/transactionRequest.js +35 -0
- package/_esm/utils/formatters/transactionRequest.js.map +1 -0
- package/_esm/utils/getAction.js +14 -0
- package/_esm/utils/getAction.js.map +1 -0
- package/_esm/utils/hash/getEventSelector.js +6 -0
- package/_esm/utils/hash/getEventSelector.js.map +1 -0
- package/_esm/utils/hash/getEventSignature.js +5 -0
- package/_esm/utils/hash/getEventSignature.js.map +1 -0
- package/_esm/utils/hash/getFunctionSelector.js +7 -0
- package/_esm/utils/hash/getFunctionSelector.js.map +1 -0
- package/_esm/utils/hash/getFunctionSignature.js +11 -0
- package/_esm/utils/hash/getFunctionSignature.js.map +1 -0
- package/_esm/utils/hash/hashFunction.js +12 -0
- package/_esm/utils/hash/hashFunction.js.map +1 -0
- package/_esm/utils/hash/isHash.js +6 -0
- package/_esm/utils/hash/isHash.js.map +1 -0
- package/_esm/utils/hash/keccak256.js +12 -0
- package/_esm/utils/hash/keccak256.js.map +1 -0
- package/_esm/utils/hash/normalizeSignature.js +51 -0
- package/_esm/utils/hash/normalizeSignature.js.map +1 -0
- package/_esm/utils/index.js +84 -0
- package/_esm/utils/index.js.map +1 -0
- package/_esm/utils/observe.js +44 -0
- package/_esm/utils/observe.js.map +1 -0
- package/_esm/utils/poll.js +26 -0
- package/_esm/utils/poll.js.map +1 -0
- package/_esm/utils/promise/createBatchScheduler.js +51 -0
- package/_esm/utils/promise/createBatchScheduler.js.map +1 -0
- package/_esm/utils/promise/withCache.js +55 -0
- package/_esm/utils/promise/withCache.js.map +1 -0
- package/_esm/utils/promise/withRetry.js +25 -0
- package/_esm/utils/promise/withRetry.js.map +1 -0
- package/_esm/utils/promise/withTimeout.js +31 -0
- package/_esm/utils/promise/withTimeout.js.map +1 -0
- package/_esm/utils/regex.js +8 -0
- package/_esm/utils/regex.js.map +1 -0
- package/_esm/utils/rpc.js +160 -0
- package/_esm/utils/rpc.js.map +1 -0
- package/_esm/utils/signature/compactSignatureToHex.js +19 -0
- package/_esm/utils/signature/compactSignatureToHex.js.map +1 -0
- package/_esm/utils/signature/compactSignatureToSignature.js +28 -0
- package/_esm/utils/signature/compactSignatureToSignature.js.map +1 -0
- package/_esm/utils/signature/hashMessage.js +16 -0
- package/_esm/utils/signature/hashMessage.js.map +1 -0
- package/_esm/utils/signature/hashTypedData.js +122 -0
- package/_esm/utils/signature/hashTypedData.js.map +1 -0
- package/_esm/utils/signature/hexToCompactSignature.js +20 -0
- package/_esm/utils/signature/hexToCompactSignature.js.map +1 -0
- package/_esm/utils/signature/hexToSignature.js +18 -0
- package/_esm/utils/signature/hexToSignature.js.map +1 -0
- package/_esm/utils/signature/recoverAddress.js +6 -0
- package/_esm/utils/signature/recoverAddress.js.map +1 -0
- package/_esm/utils/signature/recoverMessageAddress.js +6 -0
- package/_esm/utils/signature/recoverMessageAddress.js.map +1 -0
- package/_esm/utils/signature/recoverPublicKey.js +19 -0
- package/_esm/utils/signature/recoverPublicKey.js.map +1 -0
- package/_esm/utils/signature/recoverTypedDataAddress.js +15 -0
- package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -0
- package/_esm/utils/signature/signatureToCompactSignature.js +30 -0
- package/_esm/utils/signature/signatureToCompactSignature.js.map +1 -0
- package/_esm/utils/signature/signatureToHex.js +21 -0
- package/_esm/utils/signature/signatureToHex.js.map +1 -0
- package/_esm/utils/signature/verifyMessage.js +19 -0
- package/_esm/utils/signature/verifyMessage.js.map +1 -0
- package/_esm/utils/signature/verifyTypedData.js +26 -0
- package/_esm/utils/signature/verifyTypedData.js.map +1 -0
- package/_esm/utils/stringify.js +5 -0
- package/_esm/utils/stringify.js.map +1 -0
- package/_esm/utils/transaction/assertRequest.js +24 -0
- package/_esm/utils/transaction/assertRequest.js.map +1 -0
- package/_esm/utils/transaction/assertTransaction.js +45 -0
- package/_esm/utils/transaction/assertTransaction.js.map +1 -0
- package/_esm/utils/transaction/getSerializedTransactionType.js +14 -0
- package/_esm/utils/transaction/getSerializedTransactionType.js.map +1 -0
- package/_esm/utils/transaction/getTransactionType.js +15 -0
- package/_esm/utils/transaction/getTransactionType.js.map +1 -0
- package/_esm/utils/transaction/parseTransaction.js +207 -0
- package/_esm/utils/transaction/parseTransaction.js.map +1 -0
- package/_esm/utils/transaction/serializeAccessList.js +32 -0
- package/_esm/utils/transaction/serializeAccessList.js.map +1 -0
- package/_esm/utils/transaction/serializeTransaction.js +122 -0
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -0
- package/_esm/utils/typedData.js +73 -0
- package/_esm/utils/typedData.js.map +1 -0
- package/_esm/utils/uid.js +14 -0
- package/_esm/utils/uid.js.map +1 -0
- package/_esm/utils/unit/formatEther.js +17 -0
- package/_esm/utils/unit/formatEther.js.map +1 -0
- package/_esm/utils/unit/formatGwei.js +17 -0
- package/_esm/utils/unit/formatGwei.js.map +1 -0
- package/_esm/utils/unit/formatUnits.js +25 -0
- package/_esm/utils/unit/formatUnits.js.map +1 -0
- package/_esm/utils/unit/parseEther.js +17 -0
- package/_esm/utils/unit/parseEther.js.map +1 -0
- package/_esm/utils/unit/parseGwei.js +17 -0
- package/_esm/utils/unit/parseGwei.js.map +1 -0
- package/_esm/utils/unit/parseUnits.js +47 -0
- package/_esm/utils/unit/parseUnits.js.map +1 -0
- package/_esm/utils/wait.js +4 -0
- package/_esm/utils/wait.js.map +1 -0
- package/_esm/window/index.js +2 -0
- package/_esm/window/index.js.map +1 -0
- package/_types/accounts/generateMnemonic.d.ts +11 -0
- package/_types/accounts/generateMnemonic.d.ts.map +1 -0
- package/_types/accounts/generatePrivateKey.d.ts +11 -0
- package/_types/accounts/generatePrivateKey.d.ts.map +1 -0
- package/_types/accounts/hdKeyToAccount.d.ts +13 -0
- package/_types/accounts/hdKeyToAccount.d.ts.map +1 -0
- package/_types/accounts/index.d.ts +27 -0
- package/_types/accounts/index.d.ts.map +1 -0
- package/_types/accounts/mnemonicToAccount.d.ts +11 -0
- package/_types/accounts/mnemonicToAccount.d.ts.map +1 -0
- package/_types/accounts/privateKeyToAccount.d.ts +17 -0
- package/_types/accounts/privateKeyToAccount.d.ts.map +1 -0
- package/_types/accounts/toAccount.d.ts +15 -0
- package/_types/accounts/toAccount.d.ts.map +1 -0
- package/_types/accounts/types.d.ts +50 -0
- package/_types/accounts/types.d.ts.map +1 -0
- package/_types/accounts/utils/parseAccount.d.ts +6 -0
- package/_types/accounts/utils/parseAccount.d.ts.map +1 -0
- package/_types/accounts/utils/privateKeyToAddress.d.ts +15 -0
- package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -0
- package/_types/accounts/utils/publicKeyToAddress.d.ts +15 -0
- package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -0
- package/_types/accounts/utils/sign.d.ts +19 -0
- package/_types/accounts/utils/sign.d.ts.map +1 -0
- package/_types/accounts/utils/signMessage.d.ts +21 -0
- package/_types/accounts/utils/signMessage.d.ts.map +1 -0
- package/_types/accounts/utils/signTransaction.d.ts +16 -0
- package/_types/accounts/utils/signTransaction.d.ts.map +1 -0
- package/_types/accounts/utils/signTypedData.d.ts +21 -0
- package/_types/accounts/utils/signTypedData.d.ts.map +1 -0
- package/_types/actions/ens/getEnsAddress.d.ts +54 -0
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -0
- package/_types/actions/ens/getEnsAvatar.d.ts +44 -0
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -0
- package/_types/actions/ens/getEnsName.d.ts +46 -0
- package/_types/actions/ens/getEnsName.d.ts.map +1 -0
- package/_types/actions/ens/getEnsResolver.d.ts +48 -0
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -0
- package/_types/actions/ens/getEnsText.d.ts +53 -0
- package/_types/actions/ens/getEnsText.d.ts.map +1 -0
- package/_types/actions/getContract.d.ts +357 -0
- package/_types/actions/getContract.d.ts.map +1 -0
- package/_types/actions/index.d.ts +82 -0
- package/_types/actions/index.d.ts.map +1 -0
- package/_types/actions/public/call.d.ts +70 -0
- package/_types/actions/public/call.d.ts.map +1 -0
- package/_types/actions/public/createBlockFilter.d.ts +31 -0
- package/_types/actions/public/createBlockFilter.d.ts.map +1 -0
- package/_types/actions/public/createContractEventFilter.d.ts +55 -0
- package/_types/actions/public/createContractEventFilter.d.ts.map +1 -0
- package/_types/actions/public/createEventFilter.d.ts +81 -0
- package/_types/actions/public/createEventFilter.d.ts.map +1 -0
- package/_types/actions/public/createPendingTransactionFilter.d.ts +31 -0
- package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -0
- package/_types/actions/public/estimateContractGas.d.ts +43 -0
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -0
- package/_types/actions/public/estimateFeesPerGas.d.ts +53 -0
- package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -0
- package/_types/actions/public/estimateGas.d.ts +57 -0
- package/_types/actions/public/estimateGas.d.ts.map +1 -0
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +44 -0
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
- package/_types/actions/public/getBalance.d.ts +59 -0
- package/_types/actions/public/getBalance.d.ts.map +1 -0
- package/_types/actions/public/getBlock.d.ts +61 -0
- package/_types/actions/public/getBlock.d.ts.map +1 -0
- package/_types/actions/public/getBlockNumber.d.ts +58 -0
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -0
- package/_types/actions/public/getBlockTransactionCount.d.ts +52 -0
- package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -0
- package/_types/actions/public/getBytecode.d.ts +45 -0
- package/_types/actions/public/getBytecode.d.ts.map +1 -0
- package/_types/actions/public/getChainId.d.ts +32 -0
- package/_types/actions/public/getChainId.d.ts.map +1 -0
- package/_types/actions/public/getContractEvents.d.ts +66 -0
- package/_types/actions/public/getContractEvents.d.ts.map +1 -0
- package/_types/actions/public/getFeeHistory.d.ts +57 -0
- package/_types/actions/public/getFeeHistory.d.ts.map +1 -0
- package/_types/actions/public/getFilterChanges.d.ts +101 -0
- package/_types/actions/public/getFilterChanges.d.ts.map +1 -0
- package/_types/actions/public/getFilterLogs.d.ts +45 -0
- package/_types/actions/public/getFilterLogs.d.ts.map +1 -0
- package/_types/actions/public/getGasPrice.d.ts +30 -0
- package/_types/actions/public/getGasPrice.d.ts.map +1 -0
- package/_types/actions/public/getLogs.d.ts +78 -0
- package/_types/actions/public/getLogs.d.ts.map +1 -0
- package/_types/actions/public/getProof.d.ts +57 -0
- package/_types/actions/public/getProof.d.ts.map +1 -0
- package/_types/actions/public/getStorageAt.d.ts +47 -0
- package/_types/actions/public/getStorageAt.d.ts.map +1 -0
- package/_types/actions/public/getTransaction.d.ts +69 -0
- package/_types/actions/public/getTransaction.d.ts.map +1 -0
- package/_types/actions/public/getTransactionConfirmations.d.ts +45 -0
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -0
- package/_types/actions/public/getTransactionCount.d.ts +49 -0
- package/_types/actions/public/getTransactionCount.d.ts.map +1 -0
- package/_types/actions/public/getTransactionReceipt.d.ts +40 -0
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -0
- package/_types/actions/public/multicall.d.ts +73 -0
- package/_types/actions/public/multicall.d.ts.map +1 -0
- package/_types/actions/public/readContract.d.ts +46 -0
- package/_types/actions/public/readContract.d.ts.map +1 -0
- package/_types/actions/public/simulateContract.d.ts +67 -0
- package/_types/actions/public/simulateContract.d.ts.map +1 -0
- package/_types/actions/public/uninstallFilter.d.ts +37 -0
- package/_types/actions/public/uninstallFilter.d.ts.map +1 -0
- package/_types/actions/public/verifyHash.d.ts +30 -0
- package/_types/actions/public/verifyHash.d.ts.map +1 -0
- package/_types/actions/public/verifyMessage.d.ts +31 -0
- package/_types/actions/public/verifyMessage.d.ts.map +1 -0
- package/_types/actions/public/verifyTypedData.d.ts +30 -0
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -0
- package/_types/actions/public/waitForTransactionReceipt.d.ts +78 -0
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -0
- package/_types/actions/public/watchBlockNumber.d.ts +58 -0
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -0
- package/_types/actions/public/watchBlocks.d.ts +66 -0
- package/_types/actions/public/watchBlocks.d.ts.map +1 -0
- package/_types/actions/public/watchContractEvent.d.ts +64 -0
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -0
- package/_types/actions/public/watchEvent.d.ts +79 -0
- package/_types/actions/public/watchEvent.d.ts.map +1 -0
- package/_types/actions/public/watchPendingTransactions.d.ts +49 -0
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -0
- package/_types/actions/test/dropTransaction.d.ts +36 -0
- package/_types/actions/test/dropTransaction.d.ts.map +1 -0
- package/_types/actions/test/dumpState.d.ts +31 -0
- package/_types/actions/test/dumpState.d.ts.map +1 -0
- package/_types/actions/test/getAutomine.d.ts +30 -0
- package/_types/actions/test/getAutomine.d.ts.map +1 -0
- package/_types/actions/test/getTxpoolContent.d.ts +37 -0
- package/_types/actions/test/getTxpoolContent.d.ts.map +1 -0
- package/_types/actions/test/getTxpoolStatus.d.ts +33 -0
- package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -0
- package/_types/actions/test/impersonateAccount.d.ts +36 -0
- package/_types/actions/test/impersonateAccount.d.ts.map +1 -0
- package/_types/actions/test/increaseTime.d.ts +35 -0
- package/_types/actions/test/increaseTime.d.ts.map +1 -0
- package/_types/actions/test/inspectTxpool.d.ts +34 -0
- package/_types/actions/test/inspectTxpool.d.ts.map +1 -0
- package/_types/actions/test/loadState.d.ts +34 -0
- package/_types/actions/test/loadState.d.ts.map +1 -0
- package/_types/actions/test/mine.d.ts +35 -0
- package/_types/actions/test/mine.d.ts.map +1 -0
- package/_types/actions/test/removeBlockTimestampInterval.d.ts +28 -0
- package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -0
- package/_types/actions/test/reset.d.ts +35 -0
- package/_types/actions/test/reset.d.ts.map +1 -0
- package/_types/actions/test/revert.d.ts +34 -0
- package/_types/actions/test/revert.d.ts.map +1 -0
- package/_types/actions/test/sendUnsignedTransaction.d.ts +38 -0
- package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -0
- package/_types/actions/test/setAutomine.d.ts +28 -0
- package/_types/actions/test/setAutomine.d.ts.map +1 -0
- package/_types/actions/test/setBalance.d.ts +39 -0
- package/_types/actions/test/setBalance.d.ts.map +1 -0
- package/_types/actions/test/setBlockGasLimit.d.ts +33 -0
- package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -0
- package/_types/actions/test/setBlockTimestampInterval.d.ts +33 -0
- package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -0
- package/_types/actions/test/setCode.d.ts +40 -0
- package/_types/actions/test/setCode.d.ts.map +1 -0
- package/_types/actions/test/setCoinbase.d.ts +36 -0
- package/_types/actions/test/setCoinbase.d.ts.map +1 -0
- package/_types/actions/test/setIntervalMining.d.ts +33 -0
- package/_types/actions/test/setIntervalMining.d.ts.map +1 -0
- package/_types/actions/test/setLoggingEnabled.d.ts +28 -0
- package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -0
- package/_types/actions/test/setMinGasPrice.d.ts +37 -0
- package/_types/actions/test/setMinGasPrice.d.ts.map +1 -0
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +35 -0
- package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -0
- package/_types/actions/test/setNextBlockTimestamp.d.ts +33 -0
- package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -0
- package/_types/actions/test/setNonce.d.ts +39 -0
- package/_types/actions/test/setNonce.d.ts.map +1 -0
- package/_types/actions/test/setRpcUrl.d.ts +29 -0
- package/_types/actions/test/setRpcUrl.d.ts.map +1 -0
- package/_types/actions/test/setStorageAt.d.ts +43 -0
- package/_types/actions/test/setStorageAt.d.ts.map +1 -0
- package/_types/actions/test/snapshot.d.ts +28 -0
- package/_types/actions/test/snapshot.d.ts.map +1 -0
- package/_types/actions/test/stopImpersonatingAccount.d.ts +36 -0
- package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -0
- package/_types/actions/wallet/addChain.d.ts +33 -0
- package/_types/actions/wallet/addChain.d.ts.map +1 -0
- package/_types/actions/wallet/deployContract.d.ts +50 -0
- package/_types/actions/wallet/deployContract.d.ts.map +1 -0
- package/_types/actions/wallet/getAddresses.d.ts +32 -0
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -0
- package/_types/actions/wallet/getPermissions.d.ts +31 -0
- package/_types/actions/wallet/getPermissions.d.ts.map +1 -0
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +72 -0
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -0
- package/_types/actions/wallet/requestAddresses.d.ts +35 -0
- package/_types/actions/wallet/requestAddresses.d.ts.map +1 -0
- package/_types/actions/wallet/requestPermissions.d.ts +40 -0
- package/_types/actions/wallet/requestPermissions.d.ts.map +1 -0
- package/_types/actions/wallet/sendRawTransaction.d.ts +41 -0
- package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -0
- package/_types/actions/wallet/sendTransaction.d.ts +69 -0
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -0
- package/_types/actions/wallet/signMessage.d.ts +64 -0
- package/_types/actions/wallet/signMessage.d.ts.map +1 -0
- package/_types/actions/wallet/signTransaction.d.ts +64 -0
- package/_types/actions/wallet/signTransaction.d.ts.map +1 -0
- package/_types/actions/wallet/signTypedData.d.ts +119 -0
- package/_types/actions/wallet/signTypedData.d.ts.map +1 -0
- package/_types/actions/wallet/switchChain.d.ts +34 -0
- package/_types/actions/wallet/switchChain.d.ts.map +1 -0
- package/_types/actions/wallet/watchAsset.d.ts +40 -0
- package/_types/actions/wallet/watchAsset.d.ts.map +1 -0
- package/_types/actions/wallet/writeContract.d.ts +71 -0
- package/_types/actions/wallet/writeContract.d.ts.map +1 -0
- package/_types/chains/celo/chainConfig.d.ts +914 -0
- package/_types/chains/celo/chainConfig.d.ts.map +1 -0
- package/_types/chains/celo/formatters.d.ts +911 -0
- package/_types/chains/celo/formatters.d.ts.map +1 -0
- 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 +6 -0
- package/_types/chains/celo/parsers.d.ts.map +1 -0
- package/_types/chains/celo/serializers.d.ts +12 -0
- package/_types/chains/celo/serializers.d.ts.map +1 -0
- package/_types/chains/celo/types.d.ts +138 -0
- package/_types/chains/celo/types.d.ts.map +1 -0
- package/_types/chains/celo/utils.d.ts +7 -0
- package/_types/chains/celo/utils.d.ts.map +1 -0
- package/_types/chains/definitions/arbitrum.d.ts +32 -0
- package/_types/chains/definitions/arbitrum.d.ts.map +1 -0
- package/_types/chains/definitions/arbitrumGoerli.d.ts +36 -0
- package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -0
- package/_types/chains/definitions/arbitrumNova.d.ts +32 -0
- package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -0
- package/_types/chains/definitions/arbitrumSepolia.d.ts +32 -0
- package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/astar.d.ts +36 -0
- package/_types/chains/definitions/astar.d.ts.map +1 -0
- package/_types/chains/definitions/astarZkatana.d.ts +40 -0
- package/_types/chains/definitions/astarZkatana.d.ts.map +1 -0
- package/_types/chains/definitions/aurora.d.ts +32 -0
- package/_types/chains/definitions/aurora.d.ts.map +1 -0
- package/_types/chains/definitions/auroraTestnet.d.ts +34 -0
- package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/avalanche.d.ts +32 -0
- package/_types/chains/definitions/avalanche.d.ts.map +1 -0
- package/_types/chains/definitions/avalancheFuji.d.ts +32 -0
- package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -0
- package/_types/chains/definitions/base.d.ts +573 -0
- package/_types/chains/definitions/base.d.ts.map +1 -0
- package/_types/chains/definitions/baseGoerli.d.ts +572 -0
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -0
- package/_types/chains/definitions/baseSepolia.d.ts +577 -0
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +34 -0
- package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +34 -0
- package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/boba.d.ts +32 -0
- package/_types/chains/definitions/boba.d.ts.map +1 -0
- package/_types/chains/definitions/bronos.d.ts +34 -0
- package/_types/chains/definitions/bronos.d.ts.map +1 -0
- package/_types/chains/definitions/bronosTestnet.d.ts +34 -0
- package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/bsc.d.ts +32 -0
- package/_types/chains/definitions/bsc.d.ts.map +1 -0
- package/_types/chains/definitions/bscTestnet.d.ts +35 -0
- package/_types/chains/definitions/bscTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/bxn.d.ts +34 -0
- package/_types/chains/definitions/bxn.d.ts.map +1 -0
- package/_types/chains/definitions/bxnTestnet.d.ts +34 -0
- package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/canto.d.ts +32 -0
- package/_types/chains/definitions/canto.d.ts.map +1 -0
- package/_types/chains/definitions/celo.d.ts +941 -0
- package/_types/chains/definitions/celo.d.ts.map +1 -0
- package/_types/chains/definitions/celoAlfajores.d.ts +941 -0
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -0
- package/_types/chains/definitions/celoCannoli.d.ts +941 -0
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -0
- package/_types/chains/definitions/chiliz.d.ts +35 -0
- package/_types/chains/definitions/chiliz.d.ts.map +1 -0
- package/_types/chains/definitions/classic.d.ts +34 -0
- package/_types/chains/definitions/classic.d.ts.map +1 -0
- package/_types/chains/definitions/confluxESpace.d.ts +33 -0
- package/_types/chains/definitions/confluxESpace.d.ts.map +1 -0
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +38 -0
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/coreDao.d.ts +32 -0
- package/_types/chains/definitions/coreDao.d.ts.map +1 -0
- package/_types/chains/definitions/cronos.d.ts +32 -0
- package/_types/chains/definitions/cronos.d.ts.map +1 -0
- package/_types/chains/definitions/cronosTestnet.d.ts +32 -0
- package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/crossbell.d.ts +32 -0
- package/_types/chains/definitions/crossbell.d.ts.map +1 -0
- package/_types/chains/definitions/dfk.d.ts +34 -0
- package/_types/chains/definitions/dfk.d.ts.map +1 -0
- package/_types/chains/definitions/dogechain.d.ts +34 -0
- package/_types/chains/definitions/dogechain.d.ts.map +1 -0
- package/_types/chains/definitions/edgeware.d.ts +32 -0
- package/_types/chains/definitions/edgeware.d.ts.map +1 -0
- package/_types/chains/definitions/edgewareTestnet.d.ts +34 -0
- package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/ekta.d.ts +34 -0
- package/_types/chains/definitions/ekta.d.ts.map +1 -0
- package/_types/chains/definitions/ektaTestnet.d.ts +34 -0
- package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/eon.d.ts +27 -0
- package/_types/chains/definitions/eon.d.ts.map +1 -0
- package/_types/chains/definitions/eos.d.ts +32 -0
- package/_types/chains/definitions/eos.d.ts.map +1 -0
- package/_types/chains/definitions/eosTestnet.d.ts +32 -0
- package/_types/chains/definitions/eosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/evmos.d.ts +34 -0
- package/_types/chains/definitions/evmos.d.ts.map +1 -0
- package/_types/chains/definitions/evmosTestnet.d.ts +34 -0
- package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/fantom.d.ts +32 -0
- package/_types/chains/definitions/fantom.d.ts.map +1 -0
- package/_types/chains/definitions/fantomTestnet.d.ts +32 -0
- package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/fibo.d.ts +34 -0
- package/_types/chains/definitions/fibo.d.ts.map +1 -0
- package/_types/chains/definitions/filecoin.d.ts +32 -0
- package/_types/chains/definitions/filecoin.d.ts.map +1 -0
- package/_types/chains/definitions/filecoinCalibration.d.ts +34 -0
- package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -0
- package/_types/chains/definitions/filecoinHyperspace.d.ts +34 -0
- package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -0
- package/_types/chains/definitions/flare.d.ts +34 -0
- package/_types/chains/definitions/flare.d.ts.map +1 -0
- package/_types/chains/definitions/flareTestnet.d.ts +34 -0
- package/_types/chains/definitions/flareTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/foundry.d.ts +39 -0
- package/_types/chains/definitions/foundry.d.ts.map +1 -0
- package/_types/chains/definitions/fuse.d.ts +32 -0
- package/_types/chains/definitions/fuse.d.ts.map +1 -0
- package/_types/chains/definitions/fuseSparknet.d.ts +34 -0
- package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -0
- package/_types/chains/definitions/gnosis.d.ts +33 -0
- package/_types/chains/definitions/gnosis.d.ts.map +1 -0
- package/_types/chains/definitions/gnosisChiado.d.ts +33 -0
- package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -0
- package/_types/chains/definitions/gobi.d.ts +27 -0
- package/_types/chains/definitions/gobi.d.ts.map +1 -0
- package/_types/chains/definitions/goerli.d.ts +39 -0
- package/_types/chains/definitions/goerli.d.ts.map +1 -0
- package/_types/chains/definitions/haqqMainnet.d.ts +34 -0
- package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/haqqTestedge2.d.ts +34 -0
- package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -0
- package/_types/chains/definitions/hardhat.d.ts +38 -0
- package/_types/chains/definitions/hardhat.d.ts.map +1 -0
- package/_types/chains/definitions/harmonyOne.d.ts +32 -0
- package/_types/chains/definitions/harmonyOne.d.ts.map +1 -0
- package/_types/chains/definitions/holesky.d.ts +36 -0
- package/_types/chains/definitions/holesky.d.ts.map +1 -0
- package/_types/chains/definitions/iotex.d.ts +35 -0
- package/_types/chains/definitions/iotex.d.ts.map +1 -0
- package/_types/chains/definitions/iotexTestnet.d.ts +35 -0
- package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/kava.d.ts +36 -0
- package/_types/chains/definitions/kava.d.ts.map +1 -0
- package/_types/chains/definitions/kavaTestnet.d.ts +36 -0
- package/_types/chains/definitions/kavaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/klaytn.d.ts +32 -0
- package/_types/chains/definitions/klaytn.d.ts.map +1 -0
- package/_types/chains/definitions/klaytnBaobab.d.ts +40 -0
- package/_types/chains/definitions/klaytnBaobab.d.ts.map +1 -0
- package/_types/chains/definitions/kroma.d.ts +34 -0
- package/_types/chains/definitions/kroma.d.ts.map +1 -0
- package/_types/chains/definitions/kromaSepolia.d.ts +34 -0
- package/_types/chains/definitions/kromaSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/linea.d.ts +33 -0
- package/_types/chains/definitions/linea.d.ts.map +1 -0
- package/_types/chains/definitions/lineaTestnet.d.ts +33 -0
- package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/localhost.d.ts +38 -0
- package/_types/chains/definitions/localhost.d.ts.map +1 -0
- package/_types/chains/definitions/lukso.d.ts +40 -0
- package/_types/chains/definitions/lukso.d.ts.map +1 -0
- package/_types/chains/definitions/mainnet.d.ts +39 -0
- package/_types/chains/definitions/mainnet.d.ts.map +1 -0
- package/_types/chains/definitions/manta.d.ts +40 -0
- package/_types/chains/definitions/manta.d.ts.map +1 -0
- package/_types/chains/definitions/mantaTestnet.d.ts +40 -0
- package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/mantle.d.ts +32 -0
- package/_types/chains/definitions/mantle.d.ts.map +1 -0
- package/_types/chains/definitions/mantleTestnet.d.ts +34 -0
- package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/meter.d.ts +34 -0
- package/_types/chains/definitions/meter.d.ts.map +1 -0
- package/_types/chains/definitions/meterTestnet.d.ts +34 -0
- package/_types/chains/definitions/meterTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/metis.d.ts +32 -0
- package/_types/chains/definitions/metis.d.ts.map +1 -0
- package/_types/chains/definitions/metisGoerli.d.ts +32 -0
- package/_types/chains/definitions/metisGoerli.d.ts.map +1 -0
- package/_types/chains/definitions/mev.d.ts +32 -0
- package/_types/chains/definitions/mev.d.ts.map +1 -0
- package/_types/chains/definitions/mevTestnet.d.ts +32 -0
- package/_types/chains/definitions/mevTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/modeTestnet.d.ts +32 -0
- package/_types/chains/definitions/modeTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/moonbaseAlpha.d.ts +33 -0
- package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -0
- package/_types/chains/definitions/moonbeam.d.ts +33 -0
- package/_types/chains/definitions/moonbeam.d.ts.map +1 -0
- package/_types/chains/definitions/moonbeamDev.d.ts +39 -0
- package/_types/chains/definitions/moonbeamDev.d.ts.map +1 -0
- package/_types/chains/definitions/moonriver.d.ts +33 -0
- package/_types/chains/definitions/moonriver.d.ts.map +1 -0
- package/_types/chains/definitions/neonDevnet.d.ts +32 -0
- package/_types/chains/definitions/neonDevnet.d.ts.map +1 -0
- package/_types/chains/definitions/neonMainnet.d.ts +31 -0
- package/_types/chains/definitions/neonMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/nexi.d.ts +32 -0
- package/_types/chains/definitions/nexi.d.ts.map +1 -0
- package/_types/chains/definitions/nexilix.d.ts +32 -0
- package/_types/chains/definitions/nexilix.d.ts.map +1 -0
- package/_types/chains/definitions/oasys.d.ts +34 -0
- package/_types/chains/definitions/oasys.d.ts.map +1 -0
- package/_types/chains/definitions/okc.d.ts +32 -0
- package/_types/chains/definitions/okc.d.ts.map +1 -0
- package/_types/chains/definitions/opBNB.d.ts +32 -0
- package/_types/chains/definitions/opBNB.d.ts.map +1 -0
- package/_types/chains/definitions/opBNBTestnet.d.ts +32 -0
- package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/optimism.d.ts +572 -0
- package/_types/chains/definitions/optimism.d.ts.map +1 -0
- package/_types/chains/definitions/optimismGoerli.d.ts +572 -0
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -0
- package/_types/chains/definitions/optimismSepolia.d.ts +572 -0
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/pgn.d.ts +555 -0
- package/_types/chains/definitions/pgn.d.ts.map +1 -0
- package/_types/chains/definitions/pgnTestnet.d.ts +555 -0
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/plinga.d.ts +32 -0
- package/_types/chains/definitions/plinga.d.ts.map +1 -0
- package/_types/chains/definitions/polygon.d.ts +32 -0
- package/_types/chains/definitions/polygon.d.ts.map +1 -0
- package/_types/chains/definitions/polygonMumbai.d.ts +32 -0
- package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -0
- package/_types/chains/definitions/polygonZkEvm.d.ts +32 -0
- package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -0
- package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +32 -0
- package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/pulsechain.d.ts +36 -0
- package/_types/chains/definitions/pulsechain.d.ts.map +1 -0
- package/_types/chains/definitions/pulsechainV4.d.ts +36 -0
- package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -0
- package/_types/chains/definitions/qMainnet.d.ts +34 -0
- package/_types/chains/definitions/qMainnet.d.ts.map +1 -0
- package/_types/chains/definitions/qTestnet.d.ts +34 -0
- package/_types/chains/definitions/qTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/rollux.d.ts +33 -0
- package/_types/chains/definitions/rollux.d.ts.map +1 -0
- package/_types/chains/definitions/rolluxTestnet.d.ts +33 -0
- package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/ronin.d.ts +32 -0
- package/_types/chains/definitions/ronin.d.ts.map +1 -0
- package/_types/chains/definitions/rootstock.d.ts +40 -0
- package/_types/chains/definitions/rootstock.d.ts.map +1 -0
- package/_types/chains/definitions/saigon.d.ts +32 -0
- package/_types/chains/definitions/saigon.d.ts.map +1 -0
- package/_types/chains/definitions/sapphire.d.ts +38 -0
- package/_types/chains/definitions/sapphire.d.ts.map +1 -0
- package/_types/chains/definitions/sapphireTestnet.d.ts +40 -0
- package/_types/chains/definitions/sapphireTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/scroll.d.ts +33 -0
- package/_types/chains/definitions/scroll.d.ts.map +1 -0
- package/_types/chains/definitions/scrollSepolia.d.ts +32 -0
- package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/scrollTestnet.d.ts +35 -0
- package/_types/chains/definitions/scrollTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/sepolia.d.ts +39 -0
- package/_types/chains/definitions/sepolia.d.ts.map +1 -0
- package/_types/chains/definitions/shardeumSphinx.d.ts +34 -0
- package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -0
- package/_types/chains/definitions/shibarium.d.ts +40 -0
- package/_types/chains/definitions/shibarium.d.ts.map +1 -0
- package/_types/chains/definitions/shimmer.d.ts +38 -0
- package/_types/chains/definitions/shimmer.d.ts.map +1 -0
- package/_types/chains/definitions/shimmerTestnet.d.ts +38 -0
- package/_types/chains/definitions/shimmerTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/skale/brawl.d.ts +28 -0
- package/_types/chains/definitions/skale/brawl.d.ts.map +1 -0
- package/_types/chains/definitions/skale/calypso.d.ts +33 -0
- package/_types/chains/definitions/skale/calypso.d.ts.map +1 -0
- package/_types/chains/definitions/skale/calypsoTestnet.d.ts +33 -0
- package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/skale/chaosTestnet.d.ts +33 -0
- package/_types/chains/definitions/skale/chaosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/skale/cryptoBlades.d.ts +28 -0
- package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -0
- package/_types/chains/definitions/skale/cryptoColosseum.d.ts +28 -0
- package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -0
- package/_types/chains/definitions/skale/europa.d.ts +33 -0
- package/_types/chains/definitions/skale/europa.d.ts.map +1 -0
- package/_types/chains/definitions/skale/europaTestnet.d.ts +33 -0
- package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/skale/exorde.d.ts +28 -0
- package/_types/chains/definitions/skale/exorde.d.ts.map +1 -0
- package/_types/chains/definitions/skale/humanProtocol.d.ts +28 -0
- package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -0
- package/_types/chains/definitions/skale/nebula.d.ts +33 -0
- package/_types/chains/definitions/skale/nebula.d.ts.map +1 -0
- package/_types/chains/definitions/skale/nebulaTestnet.d.ts +33 -0
- package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/skale/razor.d.ts +28 -0
- package/_types/chains/definitions/skale/razor.d.ts.map +1 -0
- package/_types/chains/definitions/skale/titan.d.ts +33 -0
- package/_types/chains/definitions/skale/titan.d.ts.map +1 -0
- package/_types/chains/definitions/skale/titanTestnet.d.ts +33 -0
- package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/songbird.d.ts +34 -0
- package/_types/chains/definitions/songbird.d.ts.map +1 -0
- package/_types/chains/definitions/songbirdTestnet.d.ts +34 -0
- package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/spicy.d.ts +36 -0
- package/_types/chains/definitions/spicy.d.ts.map +1 -0
- package/_types/chains/definitions/syscoin.d.ts +33 -0
- package/_types/chains/definitions/syscoin.d.ts.map +1 -0
- package/_types/chains/definitions/syscoinTestnet.d.ts +33 -0
- package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/taikoJolnir.d.ts +34 -0
- package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -0
- package/_types/chains/definitions/taikoTestnetSepolia.d.ts +34 -0
- package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/taraxa.d.ts +34 -0
- package/_types/chains/definitions/taraxa.d.ts.map +1 -0
- package/_types/chains/definitions/taraxaTestnet.d.ts +34 -0
- package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/telos.d.ts +32 -0
- package/_types/chains/definitions/telos.d.ts.map +1 -0
- package/_types/chains/definitions/telosTestnet.d.ts +34 -0
- package/_types/chains/definitions/telosTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/tenet.d.ts +38 -0
- package/_types/chains/definitions/tenet.d.ts.map +1 -0
- package/_types/chains/definitions/thunderTestnet.d.ts +34 -0
- package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/vechain.d.ts +38 -0
- package/_types/chains/definitions/vechain.d.ts.map +1 -0
- package/_types/chains/definitions/wanchain.d.ts +32 -0
- package/_types/chains/definitions/wanchain.d.ts.map +1 -0
- package/_types/chains/definitions/wanchainTestnet.d.ts +32 -0
- package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/xdc.d.ts +38 -0
- package/_types/chains/definitions/xdc.d.ts.map +1 -0
- package/_types/chains/definitions/xdcTestnet.d.ts +38 -0
- package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts +34 -0
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zhejiang.d.ts +34 -0
- package/_types/chains/definitions/zhejiang.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +529 -0
- package/_types/chains/definitions/zkSync.d.ts.map +1 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts +529 -0
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zora.d.ts +573 -0
- package/_types/chains/definitions/zora.d.ts.map +1 -0
- package/_types/chains/definitions/zoraSepolia.d.ts +578 -0
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/zoraTestnet.d.ts +573 -0
- package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -0
- package/_types/chains/index.d.ts +174 -0
- package/_types/chains/index.d.ts.map +1 -0
- package/_types/chains/opStack/abis.d.ts +549 -0
- package/_types/chains/opStack/abis.d.ts.map +1 -0
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +63 -0
- package/_types/chains/opStack/actions/buildDepositTransaction.d.ts.map +1 -0
- package/_types/chains/opStack/actions/depositTransaction.d.ts +96 -0
- package/_types/chains/opStack/actions/depositTransaction.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 +542 -0
- package/_types/chains/opStack/chainConfig.d.ts.map +1 -0
- package/_types/chains/opStack/chains.d.ts +10 -0
- package/_types/chains/opStack/chains.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/publicL2.d.ts +241 -0
- package/_types/chains/opStack/decorators/publicL2.d.ts.map +1 -0
- package/_types/chains/opStack/decorators/walletL1.d.ts +64 -0
- package/_types/chains/opStack/decorators/walletL1.d.ts.map +1 -0
- package/_types/chains/opStack/formatters.d.ts +520 -0
- package/_types/chains/opStack/formatters.d.ts.map +1 -0
- package/_types/chains/opStack/index.d.ts +24 -0
- package/_types/chains/opStack/index.d.ts.map +1 -0
- package/_types/chains/opStack/parsers.d.ts +8 -0
- package/_types/chains/opStack/parsers.d.ts.map +1 -0
- package/_types/chains/opStack/serializers.d.ts +12 -0
- package/_types/chains/opStack/serializers.d.ts.map +1 -0
- package/_types/chains/opStack/types/block.d.ts +13 -0
- package/_types/chains/opStack/types/block.d.ts.map +1 -0
- package/_types/chains/opStack/types/chain.d.ts +9 -0
- package/_types/chains/opStack/types/chain.d.ts.map +1 -0
- package/_types/chains/opStack/types/contract.d.ts +13 -0
- package/_types/chains/opStack/types/contract.d.ts.map +1 -0
- package/_types/chains/opStack/types/transaction.d.ts +60 -0
- package/_types/chains/opStack/types/transaction.d.ts.map +1 -0
- package/_types/chains/opStack/utils/extractTransactionDepositedLogs.d.ts +446 -0
- package/_types/chains/opStack/utils/extractTransactionDepositedLogs.d.ts.map +1 -0
- package/_types/chains/opStack/utils/fromOpaqueData.d.ts +15 -0
- package/_types/chains/opStack/utils/fromOpaqueData.d.ts.map +1 -0
- package/_types/chains/opStack/utils/getL2TransactionHash.d.ts +12 -0
- package/_types/chains/opStack/utils/getL2TransactionHash.d.ts.map +1 -0
- package/_types/chains/opStack/utils/getL2TransactionHashes.d.ts +11 -0
- package/_types/chains/opStack/utils/getL2TransactionHashes.d.ts.map +1 -0
- package/_types/chains/opStack/utils/getSourceHash.d.ts +28 -0
- package/_types/chains/opStack/utils/getSourceHash.d.ts.map +1 -0
- package/_types/chains/utils.d.ts +5 -0
- package/_types/chains/utils.d.ts.map +1 -0
- package/_types/chains/zksync/chainConfig.d.ts +501 -0
- package/_types/chains/zksync/chainConfig.d.ts.map +1 -0
- package/_types/chains/zksync/formatters.d.ts +498 -0
- package/_types/chains/zksync/formatters.d.ts.map +1 -0
- 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 +9 -0
- package/_types/chains/zksync/serializers.d.ts.map +1 -0
- package/_types/chains/zksync/types.d.ts +158 -0
- package/_types/chains/zksync/types.d.ts.map +1 -0
- package/_types/clients/createClient.d.ts +86 -0
- package/_types/clients/createClient.d.ts.map +1 -0
- package/_types/clients/createPublicClient.d.ts +31 -0
- package/_types/clients/createPublicClient.d.ts.map +1 -0
- package/_types/clients/createTestClient.d.ts +45 -0
- package/_types/clients/createTestClient.d.ts.map +1 -0
- package/_types/clients/createWalletClient.d.ts +51 -0
- package/_types/clients/createWalletClient.d.ts.map +1 -0
- package/_types/clients/decorators/public.d.ts +1252 -0
- package/_types/clients/decorators/public.d.ts.map +1 -0
- package/_types/clients/decorators/test.d.ts +640 -0
- package/_types/clients/decorators/test.d.ts.map +1 -0
- package/_types/clients/decorators/wallet.d.ts +561 -0
- package/_types/clients/decorators/wallet.d.ts.map +1 -0
- package/_types/clients/transports/createTransport.d.ts +36 -0
- package/_types/clients/transports/createTransport.d.ts.map +1 -0
- package/_types/clients/transports/custom.d.ts +25 -0
- package/_types/clients/transports/custom.d.ts.map +1 -0
- package/_types/clients/transports/fallback.d.ts +77 -0
- package/_types/clients/transports/fallback.d.ts.map +1 -0
- package/_types/clients/transports/http.d.ts +44 -0
- package/_types/clients/transports/http.d.ts.map +1 -0
- package/_types/clients/transports/webSocket.d.ts +47 -0
- package/_types/clients/transports/webSocket.d.ts.map +1 -0
- package/_types/constants/abis.d.ts +1035 -0
- package/_types/constants/abis.d.ts.map +1 -0
- package/_types/constants/address.d.ts +2 -0
- package/_types/constants/address.d.ts.map +1 -0
- package/_types/constants/bytes.d.ts +2 -0
- package/_types/constants/bytes.d.ts.map +1 -0
- package/_types/constants/contract.d.ts +2 -0
- package/_types/constants/contract.d.ts.map +1 -0
- package/_types/constants/contracts.d.ts +2 -0
- package/_types/constants/contracts.d.ts.map +1 -0
- package/_types/constants/number.d.ts +97 -0
- package/_types/constants/number.d.ts.map +1 -0
- package/_types/constants/solidity.d.ts +15 -0
- package/_types/constants/solidity.d.ts.map +1 -0
- package/_types/constants/strings.d.ts +2 -0
- package/_types/constants/strings.d.ts.map +1 -0
- package/_types/constants/unit.d.ts +13 -0
- package/_types/constants/unit.d.ts.map +1 -0
- package/_types/ens/index.d.ts +9 -0
- package/_types/ens/index.d.ts.map +1 -0
- package/_types/errors/abi.d.ts +244 -0
- package/_types/errors/abi.d.ts.map +1 -0
- package/_types/errors/account.d.ts +11 -0
- package/_types/errors/account.d.ts.map +1 -0
- package/_types/errors/address.d.ts +11 -0
- package/_types/errors/address.d.ts.map +1 -0
- package/_types/errors/base.d.ts +27 -0
- package/_types/errors/base.d.ts.map +1 -0
- package/_types/errors/block.d.ts +13 -0
- package/_types/errors/block.d.ts.map +1 -0
- package/_types/errors/ccip.d.ts +38 -0
- package/_types/errors/ccip.d.ts.map +1 -0
- package/_types/errors/chain.d.ts +50 -0
- package/_types/errors/chain.d.ts.map +1 -0
- package/_types/errors/contract.d.ts +79 -0
- package/_types/errors/contract.d.ts.map +1 -0
- package/_types/errors/cursor.d.ts +21 -0
- package/_types/errors/cursor.d.ts.map +1 -0
- package/_types/errors/data.d.ts +24 -0
- package/_types/errors/data.d.ts.map +1 -0
- package/_types/errors/encoding.d.ts +47 -0
- package/_types/errors/encoding.d.ts.map +1 -0
- package/_types/errors/ens.d.ts +38 -0
- package/_types/errors/ens.d.ts.map +1 -0
- package/_types/errors/estimateGas.d.ts +17 -0
- package/_types/errors/estimateGas.d.ts.map +1 -0
- package/_types/errors/fee.d.ts +25 -0
- package/_types/errors/fee.d.ts.map +1 -0
- package/_types/errors/log.d.ts +9 -0
- package/_types/errors/log.d.ts.map +1 -0
- package/_types/errors/node.d.ts +142 -0
- package/_types/errors/node.d.ts.map +1 -0
- package/_types/errors/request.d.ts +73 -0
- package/_types/errors/request.d.ts.map +1 -0
- package/_types/errors/rpc.d.ts +302 -0
- package/_types/errors/rpc.d.ts.map +1 -0
- package/_types/errors/transaction.d.ts +109 -0
- package/_types/errors/transaction.d.ts.map +1 -0
- package/_types/errors/transport.d.ts +8 -0
- package/_types/errors/transport.d.ts.map +1 -0
- package/_types/errors/utils.d.ts +8 -0
- package/_types/errors/utils.d.ts.map +1 -0
- package/_types/errors/version.d.ts +2 -0
- package/_types/errors/version.d.ts.map +1 -0
- package/_types/index.d.ts +212 -0
- package/_types/index.d.ts.map +1 -0
- package/_types/types/account.d.ts +15 -0
- package/_types/types/account.d.ts.map +1 -0
- package/_types/types/block.d.ts +67 -0
- package/_types/types/block.d.ts.map +1 -0
- package/_types/types/chain.d.ts +159 -0
- package/_types/types/chain.d.ts.map +1 -0
- package/_types/types/contract.d.ts +118 -0
- package/_types/types/contract.d.ts.map +1 -0
- package/_types/types/eip1193.d.ts +1271 -0
- package/_types/types/eip1193.d.ts.map +1 -0
- package/_types/types/ens.d.ts +5 -0
- package/_types/types/ens.d.ts.map +1 -0
- package/_types/types/fee.d.ts +30 -0
- package/_types/types/fee.d.ts.map +1 -0
- package/_types/types/filter.d.ts +40 -0
- package/_types/types/filter.d.ts.map +1 -0
- package/_types/types/log.d.ts +55 -0
- package/_types/types/log.d.ts.map +1 -0
- package/_types/types/misc.d.ts +18 -0
- package/_types/types/misc.d.ts.map +1 -0
- package/_types/types/multicall.d.ts +58 -0
- package/_types/types/multicall.d.ts.map +1 -0
- package/_types/types/proof.d.ts +18 -0
- package/_types/types/proof.d.ts.map +1 -0
- package/_types/types/rpc.d.ts +22 -0
- package/_types/types/rpc.d.ts.map +1 -0
- package/_types/types/transaction.d.ts +156 -0
- package/_types/types/transaction.d.ts.map +1 -0
- package/_types/types/transport.d.ts +24 -0
- package/_types/types/transport.d.ts.map +1 -0
- package/_types/types/typedData.d.ts +25 -0
- package/_types/types/typedData.d.ts.map +1 -0
- package/_types/types/utils.d.ts +171 -0
- package/_types/types/utils.d.ts.map +1 -0
- package/_types/types/window.d.ts +7 -0
- package/_types/types/window.d.ts.map +1 -0
- package/_types/types/withdrawal.d.ts +8 -0
- package/_types/types/withdrawal.d.ts.map +1 -0
- package/_types/utils/abi/decodeAbiParameters.d.ts +25 -0
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -0
- package/_types/utils/abi/decodeDeployData.d.ts +18 -0
- package/_types/utils/abi/decodeDeployData.d.ts.map +1 -0
- package/_types/utils/abi/decodeErrorResult.d.ts +27 -0
- package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -0
- package/_types/utils/abi/decodeEventLog.d.ts +33 -0
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -0
- package/_types/utils/abi/decodeFunctionData.d.ts +26 -0
- package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -0
- package/_types/utils/abi/decodeFunctionResult.d.ts +26 -0
- package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -0
- package/_types/utils/abi/encodeAbiParameters.d.ts +30 -0
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -0
- package/_types/utils/abi/encodeDeployData.d.ts +22 -0
- package/_types/utils/abi/encodeDeployData.d.ts.map +1 -0
- package/_types/utils/abi/encodeErrorResult.d.ts +24 -0
- package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -0
- package/_types/utils/abi/encodeEventTopics.d.ts +26 -0
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -0
- package/_types/utils/abi/encodeFunctionData.d.ts +28 -0
- package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -0
- package/_types/utils/abi/encodeFunctionResult.d.ts +22 -0
- package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -0
- package/_types/utils/abi/encodePacked.d.ts +20 -0
- package/_types/utils/abi/encodePacked.d.ts.map +1 -0
- package/_types/utils/abi/formatAbiItem.d.ts +14 -0
- package/_types/utils/abi/formatAbiItem.d.ts.map +1 -0
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts +10 -0
- package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -0
- package/_types/utils/abi/getAbiItem.d.ts +22 -0
- package/_types/utils/abi/getAbiItem.d.ts.map +1 -0
- package/_types/utils/abi/parseEventLogs.d.ts +43 -0
- package/_types/utils/abi/parseEventLogs.d.ts.map +1 -0
- package/_types/utils/accounts.d.ts +3 -0
- package/_types/utils/accounts.d.ts.map +1 -0
- package/_types/utils/address/getAddress.d.ts +10 -0
- package/_types/utils/address/getAddress.d.ts.map +1 -0
- package/_types/utils/address/getContractAddress.d.ts +35 -0
- package/_types/utils/address/getContractAddress.d.ts.map +1 -0
- package/_types/utils/address/isAddress.d.ts +5 -0
- package/_types/utils/address/isAddress.d.ts.map +1 -0
- package/_types/utils/address/isAddressEqual.d.ts +7 -0
- package/_types/utils/address/isAddressEqual.d.ts.map +1 -0
- package/_types/utils/buildRequest.d.ts +11 -0
- package/_types/utils/buildRequest.d.ts.map +1 -0
- package/_types/utils/ccip.d.ts +40 -0
- package/_types/utils/ccip.d.ts.map +1 -0
- package/_types/utils/chain/assertCurrentChain.d.ts +10 -0
- package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -0
- package/_types/utils/chain/defineChain.d.ts +4 -0
- package/_types/utils/chain/defineChain.d.ts.map +1 -0
- package/_types/utils/chain/extractChain.d.ts +10 -0
- package/_types/utils/chain/extractChain.d.ts.map +1 -0
- package/_types/utils/chain/getChainContractAddress.d.ts +9 -0
- package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -0
- package/_types/utils/cursor.d.ts +37 -0
- package/_types/utils/cursor.d.ts.map +1 -0
- package/_types/utils/data/concat.d.ts +10 -0
- package/_types/utils/data/concat.d.ts.map +1 -0
- package/_types/utils/data/isBytes.d.ts +5 -0
- package/_types/utils/data/isBytes.d.ts.map +1 -0
- package/_types/utils/data/isBytesEqual.d.ts +7 -0
- package/_types/utils/data/isBytesEqual.d.ts.map +1 -0
- package/_types/utils/data/isHex.d.ts +7 -0
- package/_types/utils/data/isHex.d.ts.map +1 -0
- package/_types/utils/data/pad.d.ts +16 -0
- package/_types/utils/data/pad.d.ts.map +1 -0
- package/_types/utils/data/size.d.ts +12 -0
- package/_types/utils/data/size.d.ts.map +1 -0
- package/_types/utils/data/slice.d.ts +42 -0
- package/_types/utils/data/slice.d.ts.map +1 -0
- package/_types/utils/data/trim.d.ts +10 -0
- package/_types/utils/data/trim.d.ts.map +1 -0
- package/_types/utils/encoding/fromBytes.d.ts +117 -0
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -0
- package/_types/utils/encoding/fromHex.d.ts +149 -0
- package/_types/utils/encoding/fromHex.d.ts.map +1 -0
- package/_types/utils/encoding/fromRlp.d.ts +21 -0
- package/_types/utils/encoding/fromRlp.d.ts.map +1 -0
- package/_types/utils/encoding/toBytes.d.ts +134 -0
- package/_types/utils/encoding/toBytes.d.ts.map +1 -0
- package/_types/utils/encoding/toHex.d.ts +148 -0
- package/_types/utils/encoding/toHex.d.ts.map +1 -0
- package/_types/utils/encoding/toRlp.d.ts +16 -0
- package/_types/utils/encoding/toRlp.d.ts.map +1 -0
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +13 -0
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -0
- package/_types/utils/ens/avatar/utils.d.ts +48 -0
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -0
- package/_types/utils/ens/encodeLabelhash.d.ts +5 -0
- package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -0
- package/_types/utils/ens/encodedLabelToLabelhash.d.ts +6 -0
- package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -0
- package/_types/utils/ens/errors.d.ts +4 -0
- package/_types/utils/ens/errors.d.ts.map +1 -0
- package/_types/utils/ens/labelhash.d.ts +17 -0
- package/_types/utils/ens/labelhash.d.ts.map +1 -0
- package/_types/utils/ens/namehash.d.ts +20 -0
- package/_types/utils/ens/namehash.d.ts.map +1 -0
- package/_types/utils/ens/normalize.d.ts +14 -0
- package/_types/utils/ens/normalize.d.ts.map +1 -0
- package/_types/utils/ens/packetToBytes.d.ts +8 -0
- package/_types/utils/ens/packetToBytes.d.ts.map +1 -0
- package/_types/utils/errors/getCallError.d.ts +13 -0
- package/_types/utils/errors/getCallError.d.ts.map +1 -0
- package/_types/utils/errors/getContractError.d.ts +15 -0
- package/_types/utils/errors/getContractError.d.ts.map +1 -0
- package/_types/utils/errors/getEstimateGasError.d.ts +15 -0
- package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -0
- package/_types/utils/errors/getNodeError.d.ts +8 -0
- package/_types/utils/errors/getNodeError.d.ts.map +1 -0
- package/_types/utils/errors/getTransactionError.d.ts +16 -0
- package/_types/utils/errors/getTransactionError.d.ts.map +1 -0
- package/_types/utils/filters/createFilterRequestScope.d.ts +22 -0
- package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -0
- package/_types/utils/formatters/block.d.ts +28 -0
- package/_types/utils/formatters/block.d.ts.map +1 -0
- package/_types/utils/formatters/extract.d.ts +10 -0
- package/_types/utils/formatters/extract.d.ts.map +1 -0
- package/_types/utils/formatters/feeHistory.d.ts +6 -0
- package/_types/utils/formatters/feeHistory.d.ts.map +1 -0
- package/_types/utils/formatters/formatter.d.ts +12 -0
- package/_types/utils/formatters/formatter.d.ts.map +1 -0
- package/_types/utils/formatters/log.d.ts +9 -0
- package/_types/utils/formatters/log.d.ts.map +1 -0
- package/_types/utils/formatters/proof.d.ts +6 -0
- package/_types/utils/formatters/proof.d.ts.map +1 -0
- package/_types/utils/formatters/transaction.d.ts +30 -0
- package/_types/utils/formatters/transaction.d.ts.map +1 -0
- package/_types/utils/formatters/transactionReceipt.d.ts +18 -0
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -0
- package/_types/utils/formatters/transactionRequest.d.ts +23 -0
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -0
- package/_types/utils/getAction.d.ts +10 -0
- package/_types/utils/getAction.d.ts.map +1 -0
- package/_types/utils/hash/getEventSelector.d.ts +7 -0
- package/_types/utils/hash/getEventSelector.d.ts.map +1 -0
- package/_types/utils/hash/getEventSignature.d.ts +6 -0
- package/_types/utils/hash/getEventSignature.d.ts.map +1 -0
- package/_types/utils/hash/getFunctionSelector.d.ts +9 -0
- package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -0
- package/_types/utils/hash/getFunctionSignature.d.ts +6 -0
- package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -0
- package/_types/utils/hash/hashFunction.d.ts +11 -0
- package/_types/utils/hash/hashFunction.d.ts.map +1 -0
- package/_types/utils/hash/isHash.d.ts +7 -0
- package/_types/utils/hash/isHash.d.ts.map +1 -0
- package/_types/utils/hash/keccak256.d.ts +11 -0
- package/_types/utils/hash/keccak256.d.ts.map +1 -0
- package/_types/utils/hash/normalizeSignature.d.ts +6 -0
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -0
- package/_types/utils/index.d.ts +84 -0
- package/_types/utils/index.d.ts.map +1 -0
- package/_types/utils/observe.d.ts +19 -0
- package/_types/utils/observe.d.ts.map +1 -0
- package/_types/utils/poll.d.ts +15 -0
- package/_types/utils/poll.d.ts.map +1 -0
- package/_types/utils/promise/createBatchScheduler.d.ts +21 -0
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -0
- package/_types/utils/promise/withCache.d.ts +38 -0
- package/_types/utils/promise/withCache.d.ts.map +1 -0
- package/_types/utils/promise/withRetry.d.ts +14 -0
- package/_types/utils/promise/withRetry.d.ts.map +1 -0
- package/_types/utils/promise/withTimeout.d.ts +10 -0
- package/_types/utils/promise/withTimeout.d.ts.map +1 -0
- package/_types/utils/regex.d.ts +4 -0
- package/_types/utils/regex.d.ts.map +1 -0
- package/_types/utils/rpc.d.ts +80 -0
- package/_types/utils/rpc.d.ts.map +1 -0
- package/_types/utils/signature/compactSignatureToHex.d.ts +19 -0
- package/_types/utils/signature/compactSignatureToHex.d.ts.map +1 -0
- package/_types/utils/signature/compactSignatureToSignature.d.ts +24 -0
- package/_types/utils/signature/compactSignatureToSignature.d.ts.map +1 -0
- package/_types/utils/signature/hashMessage.d.ts +11 -0
- package/_types/utils/signature/hashMessage.d.ts.map +1 -0
- package/_types/utils/signature/hashTypedData.d.ts +29 -0
- package/_types/utils/signature/hashTypedData.d.ts.map +1 -0
- package/_types/utils/signature/hexToCompactSignature.d.ts +16 -0
- package/_types/utils/signature/hexToCompactSignature.d.ts.map +1 -0
- package/_types/utils/signature/hexToSignature.d.ts +16 -0
- package/_types/utils/signature/hexToSignature.d.ts.map +1 -0
- package/_types/utils/signature/recoverAddress.d.ts +11 -0
- package/_types/utils/signature/recoverAddress.d.ts.map +1 -0
- package/_types/utils/signature/recoverMessageAddress.d.ts +13 -0
- package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -0
- package/_types/utils/signature/recoverPublicKey.d.ts +12 -0
- package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -0
- package/_types/utils/signature/recoverTypedDataAddress.d.ts +13 -0
- package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -0
- package/_types/utils/signature/signatureToCompactSignature.d.ts +23 -0
- package/_types/utils/signature/signatureToCompactSignature.d.ts.map +1 -0
- package/_types/utils/signature/signatureToHex.d.ts +21 -0
- package/_types/utils/signature/signatureToHex.d.ts.map +1 -0
- package/_types/utils/signature/verifyMessage.d.ts +30 -0
- package/_types/utils/signature/verifyMessage.d.ts.map +1 -0
- package/_types/utils/signature/verifyTypedData.d.ts +29 -0
- package/_types/utils/signature/verifyTypedData.d.ts.map +1 -0
- package/_types/utils/stringify.d.ts +4 -0
- package/_types/utils/stringify.d.ts.map +1 -0
- package/_types/utils/transaction/assertRequest.d.ts +11 -0
- package/_types/utils/transaction/assertRequest.d.ts.map +1 -0
- package/_types/utils/transaction/assertTransaction.d.ts +14 -0
- package/_types/utils/transaction/assertTransaction.d.ts.map +1 -0
- package/_types/utils/transaction/getSerializedTransactionType.d.ts +9 -0
- package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -0
- package/_types/utils/transaction/getTransactionType.d.ts +7 -0
- package/_types/utils/transaction/getTransactionType.d.ts.map +1 -0
- package/_types/utils/transaction/parseTransaction.d.ts +26 -0
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -0
- package/_types/utils/transaction/serializeAccessList.d.ts +10 -0
- package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -0
- package/_types/utils/transaction/serializeTransaction.d.ts +19 -0
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -0
- package/_types/utils/typedData.d.ts +19 -0
- package/_types/utils/typedData.d.ts.map +1 -0
- package/_types/utils/uid.d.ts +2 -0
- package/_types/utils/uid.d.ts.map +1 -0
- package/_types/utils/unit/formatEther.d.ts +15 -0
- package/_types/utils/unit/formatEther.d.ts.map +1 -0
- package/_types/utils/unit/formatGwei.d.ts +15 -0
- package/_types/utils/unit/formatGwei.d.ts.map +1 -0
- package/_types/utils/unit/formatUnits.d.ts +15 -0
- package/_types/utils/unit/formatUnits.d.ts.map +1 -0
- package/_types/utils/unit/parseEther.d.ts +16 -0
- package/_types/utils/unit/parseEther.d.ts.map +1 -0
- package/_types/utils/unit/parseGwei.d.ts +16 -0
- package/_types/utils/unit/parseGwei.d.ts.map +1 -0
- package/_types/utils/unit/parseUnits.d.ts +15 -0
- package/_types/utils/unit/parseUnits.d.ts.map +1 -0
- package/_types/utils/wait.d.ts +2 -0
- package/_types/utils/wait.d.ts.map +1 -0
- package/_types/window/index.d.ts +2 -0
- package/_types/window/index.d.ts.map +1 -0
- package/clients/transports/custom.ts +11 -3
- package/errors/version.ts +1 -1
- package/package.json +1 -1
@@ -0,0 +1,101 @@
|
|
1
|
+
import { BaseError } from '../../index.js';
|
2
|
+
import { createCursor, } from '../cursor.js';
|
3
|
+
import { hexToBytes } from './toBytes.js';
|
4
|
+
import { bytesToHex } from './toHex.js';
|
5
|
+
export function toRlp(bytes, to = 'hex') {
|
6
|
+
const encodable = getEncodable(bytes);
|
7
|
+
const cursor = createCursor(new Uint8Array(encodable.length));
|
8
|
+
encodable.encode(cursor);
|
9
|
+
if (to === 'hex')
|
10
|
+
return bytesToHex(cursor.bytes);
|
11
|
+
return cursor.bytes;
|
12
|
+
}
|
13
|
+
export function bytesToRlp(bytes, to = 'bytes') {
|
14
|
+
return toRlp(bytes, to);
|
15
|
+
}
|
16
|
+
export function hexToRlp(hex, to = 'hex') {
|
17
|
+
return toRlp(hex, to);
|
18
|
+
}
|
19
|
+
function getEncodable(bytes) {
|
20
|
+
if (Array.isArray(bytes))
|
21
|
+
return getEncodableList(bytes.map((x) => getEncodable(x)));
|
22
|
+
return getEncodableBytes(bytes);
|
23
|
+
}
|
24
|
+
function getEncodableList(list) {
|
25
|
+
const bodyLength = list.reduce((acc, x) => acc + x.length, 0);
|
26
|
+
const sizeOfBodyLength = getSizeOfLength(bodyLength);
|
27
|
+
const length = (() => {
|
28
|
+
if (bodyLength <= 55)
|
29
|
+
return 1 + bodyLength;
|
30
|
+
return 1 + sizeOfBodyLength + bodyLength;
|
31
|
+
})();
|
32
|
+
return {
|
33
|
+
length,
|
34
|
+
encode(cursor) {
|
35
|
+
if (bodyLength <= 55) {
|
36
|
+
cursor.pushByte(0xc0 + bodyLength);
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
cursor.pushByte(0xc0 + 55 + sizeOfBodyLength);
|
40
|
+
if (sizeOfBodyLength === 1)
|
41
|
+
cursor.pushUint8(bodyLength);
|
42
|
+
else if (sizeOfBodyLength === 2)
|
43
|
+
cursor.pushUint16(bodyLength);
|
44
|
+
else if (sizeOfBodyLength === 3)
|
45
|
+
cursor.pushUint24(bodyLength);
|
46
|
+
else
|
47
|
+
cursor.pushUint32(bodyLength);
|
48
|
+
}
|
49
|
+
for (const { encode } of list) {
|
50
|
+
encode(cursor);
|
51
|
+
}
|
52
|
+
},
|
53
|
+
};
|
54
|
+
}
|
55
|
+
function getEncodableBytes(bytesOrHex) {
|
56
|
+
const bytes = typeof bytesOrHex === 'string' ? hexToBytes(bytesOrHex) : bytesOrHex;
|
57
|
+
const sizeOfBytesLength = getSizeOfLength(bytes.length);
|
58
|
+
const length = (() => {
|
59
|
+
if (bytes.length === 1 && bytes[0] < 0x80)
|
60
|
+
return 1;
|
61
|
+
if (bytes.length <= 55)
|
62
|
+
return 1 + bytes.length;
|
63
|
+
return 1 + sizeOfBytesLength + bytes.length;
|
64
|
+
})();
|
65
|
+
return {
|
66
|
+
length,
|
67
|
+
encode(cursor) {
|
68
|
+
if (bytes.length === 1 && bytes[0] < 0x80) {
|
69
|
+
cursor.pushBytes(bytes);
|
70
|
+
}
|
71
|
+
else if (bytes.length <= 55) {
|
72
|
+
cursor.pushByte(0x80 + bytes.length);
|
73
|
+
cursor.pushBytes(bytes);
|
74
|
+
}
|
75
|
+
else {
|
76
|
+
cursor.pushByte(0x80 + 55 + sizeOfBytesLength);
|
77
|
+
if (sizeOfBytesLength === 1)
|
78
|
+
cursor.pushUint8(bytes.length);
|
79
|
+
else if (sizeOfBytesLength === 2)
|
80
|
+
cursor.pushUint16(bytes.length);
|
81
|
+
else if (sizeOfBytesLength === 3)
|
82
|
+
cursor.pushUint24(bytes.length);
|
83
|
+
else
|
84
|
+
cursor.pushUint32(bytes.length);
|
85
|
+
cursor.pushBytes(bytes);
|
86
|
+
}
|
87
|
+
},
|
88
|
+
};
|
89
|
+
}
|
90
|
+
function getSizeOfLength(length) {
|
91
|
+
if (length < 2 ** 8)
|
92
|
+
return 1;
|
93
|
+
if (length < 2 ** 16)
|
94
|
+
return 2;
|
95
|
+
if (length < 2 ** 24)
|
96
|
+
return 3;
|
97
|
+
if (length < 2 ** 32)
|
98
|
+
return 4;
|
99
|
+
throw new BaseError('Length is too large.');
|
100
|
+
}
|
101
|
+
//# sourceMappingURL=toRlp.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"toRlp.js","sourceRoot":"","sources":["../../../utils/encoding/toRlp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAGL,YAAY,GACb,MAAM,cAAc,CAAA;AAErB,OAAO,EAA4B,UAAU,EAAE,MAAM,cAAc,CAAA;AACnE,OAAO,EAA4B,UAAU,EAAE,MAAM,YAAY,CAAA;AAqBjE,MAAM,UAAU,KAAK,CACnB,KAAsD,EACtD,KAA0B,KAAK;IAE/B,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAA;IACrC,MAAM,MAAM,GAAG,YAAY,CAAC,IAAI,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;IAC7D,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAA;IAExB,IAAI,EAAE,KAAK,KAAK;QAAE,OAAO,UAAU,CAAC,MAAM,CAAC,KAAK,CAAwB,CAAA;IACxE,OAAO,MAAM,CAAC,KAA4B,CAAA;AAC5C,CAAC;AAID,MAAM,UAAU,UAAU,CACxB,KAAgC,EAChC,KAA0B,OAAO;IAEjC,OAAO,KAAK,CAAC,KAAK,EAAE,EAAE,CAAC,CAAA;AACzB,CAAC;AAID,MAAM,UAAU,QAAQ,CACtB,GAAwB,EACxB,KAA0B,KAAK;IAE/B,OAAO,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAA;AACvB,CAAC;AAED,SAAS,YAAY,CACnB,KAAsD;IAEtD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QACtB,OAAO,gBAAgB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5D,OAAO,iBAAiB,CAAC,KAAK,CAAC,CAAA;AACjC,CAAC;AAED,SAAS,gBAAgB,CAAC,IAAiB;IACzC,MAAM,UAAU,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAA;IAE7D,MAAM,gBAAgB,GAAG,eAAe,CAAC,UAAU,CAAC,CAAA;IACpD,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE;QACnB,IAAI,UAAU,IAAI,EAAE;YAAE,OAAO,CAAC,GAAG,UAAU,CAAA;QAC3C,OAAO,CAAC,GAAG,gBAAgB,GAAG,UAAU,CAAA;IAC1C,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO;QACL,MAAM;QACN,MAAM,CAAC,MAAc;YACnB,IAAI,UAAU,IAAI,EAAE,EAAE,CAAC;gBACrB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,UAAU,CAAC,CAAA;YACpC,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,GAAG,gBAAgB,CAAC,CAAA;gBAC7C,IAAI,gBAAgB,KAAK,CAAC;oBAAE,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,CAAA;qBACnD,IAAI,gBAAgB,KAAK,CAAC;oBAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;qBACzD,IAAI,gBAAgB,KAAK,CAAC;oBAAE,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;;oBACzD,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAA;YACpC,CAAC;YACD,KAAK,MAAM,EAAE,MAAM,EAAE,IAAI,IAAI,EAAE,CAAC;gBAC9B,MAAM,CAAC,MAAM,CAAC,CAAA;YAChB,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,UAA2B;IACpD,MAAM,KAAK,GACT,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,UAAU,CAAA;IAEtE,MAAM,iBAAiB,GAAG,eAAe,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IACvD,MAAM,MAAM,GAAG,CAAC,GAAG,EAAE;QACnB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI;YAAE,OAAO,CAAC,CAAA;QACnD,IAAI,KAAK,CAAC,MAAM,IAAI,EAAE;YAAE,OAAO,CAAC,GAAG,KAAK,CAAC,MAAM,CAAA;QAC/C,OAAO,CAAC,GAAG,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAA;IAC7C,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO;QACL,MAAM;QACN,MAAM,CAAC,MAAc;YACnB,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,EAAE,CAAC;gBAC1C,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YACzB,CAAC;iBAAM,IAAI,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;gBAC9B,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,CAAA;gBACpC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YACzB,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,GAAG,iBAAiB,CAAC,CAAA;gBAC9C,IAAI,iBAAiB,KAAK,CAAC;oBAAE,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;qBACtD,IAAI,iBAAiB,KAAK,CAAC;oBAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;qBAC5D,IAAI,iBAAiB,KAAK,CAAC;oBAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;;oBAC5D,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;gBACpC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAA;YACzB,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,SAAS,eAAe,CAAC,MAAc;IACrC,IAAI,MAAM,GAAG,CAAC,IAAI,CAAC;QAAE,OAAO,CAAC,CAAA;IAC7B,IAAI,MAAM,GAAG,CAAC,IAAI,EAAE;QAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,MAAM,GAAG,CAAC,IAAI,EAAE;QAAE,OAAO,CAAC,CAAA;IAC9B,IAAI,MAAM,GAAG,CAAC,IAAI,EAAE;QAAE,OAAO,CAAC,CAAA;IAC9B,MAAM,IAAI,SAAS,CAAC,sBAAsB,CAAC,CAAA;AAC7C,CAAC"}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { getJsonImage, getMetadataAvatarUri, getNftTokenUri, parseAvatarUri, parseNftUri, resolveAvatarUri, } from './utils.js';
|
2
|
+
export async function parseAvatarRecord(client, { gatewayUrls, record, }) {
|
3
|
+
if (/eip155:/i.test(record))
|
4
|
+
return parseNftAvatarUri(client, { gatewayUrls, record });
|
5
|
+
return parseAvatarUri({ uri: record, gatewayUrls });
|
6
|
+
}
|
7
|
+
async function parseNftAvatarUri(client, { gatewayUrls, record, }) {
|
8
|
+
// parse NFT URI into properties
|
9
|
+
const nft = parseNftUri(record);
|
10
|
+
// fetch tokenURI from the NFT contract
|
11
|
+
const nftUri = await getNftTokenUri(client, { nft });
|
12
|
+
// resolve the URI from the fetched tokenURI
|
13
|
+
const { uri: resolvedNftUri, isOnChain, isEncoded, } = resolveAvatarUri({ uri: nftUri, gatewayUrls });
|
14
|
+
// if the resolved URI is on chain, return the data
|
15
|
+
if (isOnChain &&
|
16
|
+
(resolvedNftUri.includes('data:application/json;base64,') ||
|
17
|
+
resolvedNftUri.startsWith('{'))) {
|
18
|
+
const encodedJson = isEncoded
|
19
|
+
? // if it is encoded, decode it
|
20
|
+
atob(resolvedNftUri.replace('data:application/json;base64,', ''))
|
21
|
+
: // if it isn't encoded assume it is a JSON string, but it could be anything (it will error if it is)
|
22
|
+
resolvedNftUri;
|
23
|
+
const decoded = JSON.parse(encodedJson);
|
24
|
+
return parseAvatarUri({ uri: getJsonImage(decoded), gatewayUrls });
|
25
|
+
}
|
26
|
+
let uriTokenId = nft.tokenID;
|
27
|
+
if (nft.namespace === 'erc1155')
|
28
|
+
uriTokenId = uriTokenId.replace('0x', '').padStart(64, '0');
|
29
|
+
return getMetadataAvatarUri({
|
30
|
+
gatewayUrls,
|
31
|
+
uri: resolvedNftUri.replace(/(?:0x)?{id}/, uriTokenId),
|
32
|
+
});
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=parseAvatarRecord.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"parseAvatarRecord.js","sourceRoot":"","sources":["../../../../utils/ens/avatar/parseAvatarRecord.ts"],"names":[],"mappings":"AAMA,OAAO,EAOL,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,WAAW,EACX,gBAAgB,GACjB,MAAM,YAAY,CAAA;AAOnB,MAAM,CAAC,KAAK,UAAU,iBAAiB,CACrC,MAAiC,EACjC,EACE,WAAW,EACX,MAAM,GAIP;IAED,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC;QACzB,OAAO,iBAAiB,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,CAAA;IAC3D,OAAO,cAAc,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;AACrD,CAAC;AAWD,KAAK,UAAU,iBAAiB,CAC9B,MAAiC,EACjC,EACE,WAAW,EACX,MAAM,GAIP;IAED,gCAAgC;IAChC,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,CAAA;IAC/B,uCAAuC;IACvC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,CAAC,CAAA;IACpD,4CAA4C;IAC5C,MAAM,EACJ,GAAG,EAAE,cAAc,EACnB,SAAS,EACT,SAAS,GACV,GAAG,gBAAgB,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;IAElD,mDAAmD;IACnD,IACE,SAAS;QACT,CAAC,cAAc,CAAC,QAAQ,CAAC,+BAA+B,CAAC;YACvD,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,EACjC,CAAC;QACD,MAAM,WAAW,GAAG,SAAS;YAC3B,CAAC,CAAC,8BAA8B;gBAC9B,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,+BAA+B,EAAE,EAAE,CAAC,CAAC;YACnE,CAAC,CAAC,oGAAoG;gBACpG,cAAc,CAAA;QAElB,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,CAAA;QACvC,OAAO,cAAc,CAAC,EAAE,GAAG,EAAE,YAAY,CAAC,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC,CAAA;IACpE,CAAC;IAED,IAAI,UAAU,GAAG,GAAG,CAAC,OAAO,CAAA;IAC5B,IAAI,GAAG,CAAC,SAAS,KAAK,SAAS;QAC7B,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAA;IAE7D,OAAO,oBAAoB,CAAC;QAC1B,WAAW;QACX,GAAG,EAAE,cAAc,CAAC,OAAO,CAAC,aAAa,EAAE,UAAU,CAAC;KACvD,CAAC,CAAA;AACJ,CAAC"}
|
@@ -0,0 +1,186 @@
|
|
1
|
+
import { readContract, } from '../../../actions/public/readContract.js';
|
2
|
+
import { EnsAvatarInvalidMetadataError, EnsAvatarInvalidNftUriError, EnsAvatarUnsupportedNamespaceError, EnsAvatarUriResolutionError, } from '../../../errors/ens.js';
|
3
|
+
const networkRegex = /(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/;
|
4
|
+
const ipfsHashRegex = /^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/;
|
5
|
+
const base64Regex = /^data:([a-zA-Z\-/+]*);base64,([^"].*)/;
|
6
|
+
const dataURIRegex = /^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;
|
7
|
+
export async function isImageUri(uri) {
|
8
|
+
try {
|
9
|
+
const res = await fetch(uri, { method: 'HEAD' });
|
10
|
+
// retrieve content type header to check if content is image
|
11
|
+
if (res.status === 200) {
|
12
|
+
const contentType = res.headers.get('content-type');
|
13
|
+
return contentType?.startsWith('image/');
|
14
|
+
}
|
15
|
+
return false;
|
16
|
+
}
|
17
|
+
catch (error) {
|
18
|
+
// if error is not cors related then fail
|
19
|
+
if (typeof error === 'object' && typeof error.response !== 'undefined') {
|
20
|
+
return false;
|
21
|
+
}
|
22
|
+
// fail in NodeJS, since the error is not cors but any other network issue
|
23
|
+
// biome-ignore lint/suspicious/noPrototypeBuiltins:
|
24
|
+
if (!globalThis.hasOwnProperty('Image'))
|
25
|
+
return false;
|
26
|
+
// in case of cors, use image api to validate if given url is an actual image
|
27
|
+
return new Promise((resolve) => {
|
28
|
+
const img = new Image();
|
29
|
+
img.onload = () => {
|
30
|
+
resolve(true);
|
31
|
+
};
|
32
|
+
img.onerror = () => {
|
33
|
+
resolve(false);
|
34
|
+
};
|
35
|
+
img.src = uri;
|
36
|
+
});
|
37
|
+
}
|
38
|
+
}
|
39
|
+
export function getGateway(custom, defaultGateway) {
|
40
|
+
if (!custom)
|
41
|
+
return defaultGateway;
|
42
|
+
if (custom.endsWith('/'))
|
43
|
+
return custom.slice(0, -1);
|
44
|
+
return custom;
|
45
|
+
}
|
46
|
+
export function resolveAvatarUri({ uri, gatewayUrls, }) {
|
47
|
+
const isEncoded = base64Regex.test(uri);
|
48
|
+
if (isEncoded)
|
49
|
+
return { uri, isOnChain: true, isEncoded };
|
50
|
+
const ipfsGateway = getGateway(gatewayUrls?.ipfs, 'https://ipfs.io');
|
51
|
+
const arweaveGateway = getGateway(gatewayUrls?.arweave, 'https://arweave.net');
|
52
|
+
const networkRegexMatch = uri.match(networkRegex);
|
53
|
+
const { protocol, subpath, target, subtarget = '', } = networkRegexMatch?.groups || {};
|
54
|
+
const isIPNS = protocol === 'ipns:/' || subpath === 'ipns/';
|
55
|
+
const isIPFS = protocol === 'ipfs:/' || subpath === 'ipfs/' || ipfsHashRegex.test(uri);
|
56
|
+
if (uri.startsWith('http') && !isIPNS && !isIPFS) {
|
57
|
+
let replacedUri = uri;
|
58
|
+
if (gatewayUrls?.arweave)
|
59
|
+
replacedUri = uri.replace(/https:\/\/arweave.net/g, gatewayUrls?.arweave);
|
60
|
+
return { uri: replacedUri, isOnChain: false, isEncoded: false };
|
61
|
+
}
|
62
|
+
if ((isIPNS || isIPFS) && target) {
|
63
|
+
return {
|
64
|
+
uri: `${ipfsGateway}/${isIPNS ? 'ipns' : 'ipfs'}/${target}${subtarget}`,
|
65
|
+
isOnChain: false,
|
66
|
+
isEncoded: false,
|
67
|
+
};
|
68
|
+
}
|
69
|
+
if (protocol === 'ar:/' && target) {
|
70
|
+
return {
|
71
|
+
uri: `${arweaveGateway}/${target}${subtarget || ''}`,
|
72
|
+
isOnChain: false,
|
73
|
+
isEncoded: false,
|
74
|
+
};
|
75
|
+
}
|
76
|
+
let parsedUri = uri.replace(dataURIRegex, '');
|
77
|
+
if (parsedUri.startsWith('<svg')) {
|
78
|
+
// if svg, base64 encode
|
79
|
+
parsedUri = `data:image/svg+xml;base64,${btoa(parsedUri)}`;
|
80
|
+
}
|
81
|
+
if (parsedUri.startsWith('data:') || parsedUri.startsWith('{')) {
|
82
|
+
return {
|
83
|
+
uri: parsedUri,
|
84
|
+
isOnChain: true,
|
85
|
+
isEncoded: false,
|
86
|
+
};
|
87
|
+
}
|
88
|
+
throw new EnsAvatarUriResolutionError({ uri });
|
89
|
+
}
|
90
|
+
export function getJsonImage(data) {
|
91
|
+
// validation check for json data, must include one of theses properties
|
92
|
+
if (typeof data !== 'object' ||
|
93
|
+
(!('image' in data) && !('image_url' in data) && !('image_data' in data))) {
|
94
|
+
throw new EnsAvatarInvalidMetadataError({ data });
|
95
|
+
}
|
96
|
+
return data.image || data.image_url || data.image_data;
|
97
|
+
}
|
98
|
+
export async function getMetadataAvatarUri({ gatewayUrls, uri, }) {
|
99
|
+
try {
|
100
|
+
const res = await fetch(uri).then((res) => res.json());
|
101
|
+
const image = await parseAvatarUri({
|
102
|
+
gatewayUrls,
|
103
|
+
uri: getJsonImage(res),
|
104
|
+
});
|
105
|
+
return image;
|
106
|
+
}
|
107
|
+
catch {
|
108
|
+
throw new EnsAvatarUriResolutionError({ uri });
|
109
|
+
}
|
110
|
+
}
|
111
|
+
export async function parseAvatarUri({ gatewayUrls, uri, }) {
|
112
|
+
const { uri: resolvedURI, isOnChain } = resolveAvatarUri({ uri, gatewayUrls });
|
113
|
+
if (isOnChain)
|
114
|
+
return resolvedURI;
|
115
|
+
// check if resolvedURI is an image, if it is return the url
|
116
|
+
const isImage = await isImageUri(resolvedURI);
|
117
|
+
if (isImage)
|
118
|
+
return resolvedURI;
|
119
|
+
throw new EnsAvatarUriResolutionError({ uri });
|
120
|
+
}
|
121
|
+
export function parseNftUri(uri_) {
|
122
|
+
let uri = uri_;
|
123
|
+
// parse valid nft spec (CAIP-22/CAIP-29)
|
124
|
+
// @see: https://github.com/ChainAgnostic/CAIPs/tree/master/CAIPs
|
125
|
+
if (uri.startsWith('did:nft:')) {
|
126
|
+
// convert DID to CAIP
|
127
|
+
uri = uri.replace('did:nft:', '').replace(/_/g, '/');
|
128
|
+
}
|
129
|
+
const [reference, asset_namespace, tokenID] = uri.split('/');
|
130
|
+
const [eip_namespace, chainID] = reference.split(':');
|
131
|
+
const [erc_namespace, contractAddress] = asset_namespace.split(':');
|
132
|
+
if (!eip_namespace || eip_namespace.toLowerCase() !== 'eip155')
|
133
|
+
throw new EnsAvatarInvalidNftUriError({ reason: 'Only EIP-155 supported' });
|
134
|
+
if (!chainID)
|
135
|
+
throw new EnsAvatarInvalidNftUriError({ reason: 'Chain ID not found' });
|
136
|
+
if (!contractAddress)
|
137
|
+
throw new EnsAvatarInvalidNftUriError({
|
138
|
+
reason: 'Contract address not found',
|
139
|
+
});
|
140
|
+
if (!tokenID)
|
141
|
+
throw new EnsAvatarInvalidNftUriError({ reason: 'Token ID not found' });
|
142
|
+
if (!erc_namespace)
|
143
|
+
throw new EnsAvatarInvalidNftUriError({ reason: 'ERC namespace not found' });
|
144
|
+
return {
|
145
|
+
chainID: parseInt(chainID),
|
146
|
+
namespace: erc_namespace.toLowerCase(),
|
147
|
+
contractAddress: contractAddress,
|
148
|
+
tokenID,
|
149
|
+
};
|
150
|
+
}
|
151
|
+
export async function getNftTokenUri(client, { nft }) {
|
152
|
+
if (nft.namespace === 'erc721') {
|
153
|
+
return readContract(client, {
|
154
|
+
address: nft.contractAddress,
|
155
|
+
abi: [
|
156
|
+
{
|
157
|
+
name: 'tokenURI',
|
158
|
+
type: 'function',
|
159
|
+
stateMutability: 'view',
|
160
|
+
inputs: [{ name: 'tokenId', type: 'uint256' }],
|
161
|
+
outputs: [{ name: '', type: 'string' }],
|
162
|
+
},
|
163
|
+
],
|
164
|
+
functionName: 'tokenURI',
|
165
|
+
args: [BigInt(nft.tokenID)],
|
166
|
+
});
|
167
|
+
}
|
168
|
+
if (nft.namespace === 'erc1155') {
|
169
|
+
return readContract(client, {
|
170
|
+
address: nft.contractAddress,
|
171
|
+
abi: [
|
172
|
+
{
|
173
|
+
name: 'uri',
|
174
|
+
type: 'function',
|
175
|
+
stateMutability: 'view',
|
176
|
+
inputs: [{ name: '_id', type: 'uint256' }],
|
177
|
+
outputs: [{ name: '', type: 'string' }],
|
178
|
+
},
|
179
|
+
],
|
180
|
+
functionName: 'uri',
|
181
|
+
args: [BigInt(nft.tokenID)],
|
182
|
+
});
|
183
|
+
}
|
184
|
+
throw new EnsAvatarUnsupportedNamespaceError({ namespace: nft.namespace });
|
185
|
+
}
|
186
|
+
//# sourceMappingURL=utils.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../utils/ens/avatar/utils.ts"],"names":[],"mappings":"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"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"encodeLabelhash.js","sourceRoot":"","sources":["../../../utils/ens/encodeLabelhash.ts"],"names":[],"mappings":"AAKA,MAAM,UAAU,eAAe,CAAC,IAAS;IACvC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAA;AAC7B,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { isHex } from '../data/isHex.js';
|
2
|
+
export function encodedLabelToLabelhash(label) {
|
3
|
+
if (label.length !== 66)
|
4
|
+
return null;
|
5
|
+
if (label.indexOf('[') !== 0)
|
6
|
+
return null;
|
7
|
+
if (label.indexOf(']') !== 65)
|
8
|
+
return null;
|
9
|
+
const hash = `0x${label.slice(1, 65)}`;
|
10
|
+
if (!isHex(hash))
|
11
|
+
return null;
|
12
|
+
return hash;
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=encodedLabelToLabelhash.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"encodedLabelToLabelhash.js","sourceRoot":"","sources":["../../../utils/ens/encodedLabelToLabelhash.ts"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAI7D,MAAM,UAAU,uBAAuB,CAAC,KAAa;IACnD,IAAI,KAAK,CAAC,MAAM,KAAK,EAAE;QAAE,OAAO,IAAI,CAAA;IACpC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAA;IACzC,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE;QAAE,OAAO,IAAI,CAAA;IAC1C,MAAM,IAAI,GAAG,KAAK,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,CAAA;IACtC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAA;IAC7B,OAAO,IAAI,CAAA;AACb,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { panicReasons } from '../../constants/solidity.js';
|
2
|
+
import { BaseError } from '../../errors/base.js';
|
3
|
+
import { ContractFunctionRevertedError } from '../../errors/contract.js';
|
4
|
+
/*
|
5
|
+
* @description Checks if error is a valid null result UniversalResolver error
|
6
|
+
*/
|
7
|
+
export function isNullUniversalResolverError(err, callType) {
|
8
|
+
if (!(err instanceof BaseError))
|
9
|
+
return false;
|
10
|
+
const cause = err.walk((e) => e instanceof ContractFunctionRevertedError);
|
11
|
+
if (!(cause instanceof ContractFunctionRevertedError))
|
12
|
+
return false;
|
13
|
+
if (cause.data?.errorName === 'ResolverNotFound')
|
14
|
+
return true;
|
15
|
+
if (cause.data?.errorName === 'ResolverWildcardNotSupported')
|
16
|
+
return true;
|
17
|
+
// Backwards compatibility for older UniversalResolver contracts
|
18
|
+
if (cause.reason?.includes('Wildcard on non-extended resolvers is not supported'))
|
19
|
+
return true;
|
20
|
+
// No primary name set for address.
|
21
|
+
if (callType === 'reverse' && cause.reason === panicReasons[50])
|
22
|
+
return true;
|
23
|
+
return false;
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=errors.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../utils/ens/errors.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AAKxE;;GAEG;AACH,MAAM,UAAU,4BAA4B,CAC1C,GAAY,EACZ,QAA+B;IAE/B,IAAI,CAAC,CAAC,GAAG,YAAY,SAAS,CAAC;QAAE,OAAO,KAAK,CAAA;IAC7C,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,YAAY,6BAA6B,CAAC,CAAA;IACzE,IAAI,CAAC,CAAC,KAAK,YAAY,6BAA6B,CAAC;QAAE,OAAO,KAAK,CAAA;IACnE,IAAI,KAAK,CAAC,IAAI,EAAE,SAAS,KAAK,kBAAkB;QAAE,OAAO,IAAI,CAAA;IAC7D,IAAI,KAAK,CAAC,IAAI,EAAE,SAAS,KAAK,8BAA8B;QAAE,OAAO,IAAI,CAAA;IACzE,gEAAgE;IAChE,IACE,KAAK,CAAC,MAAM,EAAE,QAAQ,CACpB,qDAAqD,CACtD;QAED,OAAO,IAAI,CAAA;IACb,mCAAmC;IACnC,IAAI,QAAQ,KAAK,SAAS,IAAI,KAAK,CAAC,MAAM,KAAK,YAAY,CAAC,EAAE,CAAC;QAAE,OAAO,IAAI,CAAA;IAC5E,OAAO,KAAK,CAAA;AACd,CAAC"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { stringToBytes, } from '../encoding/toBytes.js';
|
2
|
+
import { bytesToHex } from '../encoding/toHex.js';
|
3
|
+
import { keccak256 } from '../hash/keccak256.js';
|
4
|
+
import { encodedLabelToLabelhash, } from './encodedLabelToLabelhash.js';
|
5
|
+
/**
|
6
|
+
* @description Hashes ENS label
|
7
|
+
*
|
8
|
+
* - Since ENS labels prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS labels](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `labelhash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
|
9
|
+
*
|
10
|
+
* @example
|
11
|
+
* labelhash('eth')
|
12
|
+
* '0x4f5b812789fc606be1b3b16908db13fc7a9adf7ca72641f84d75b47069d3d7f0'
|
13
|
+
*/
|
14
|
+
export function labelhash(label) {
|
15
|
+
const result = new Uint8Array(32).fill(0);
|
16
|
+
if (!label)
|
17
|
+
return bytesToHex(result);
|
18
|
+
return encodedLabelToLabelhash(label) || keccak256(stringToBytes(label));
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=labelhash.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"labelhash.js","sourceRoot":"","sources":["../../../utils/ens/labelhash.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAA4B,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAA2B,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAEL,uBAAuB,GACxB,MAAM,8BAA8B,CAAA;AASrC;;;;;;;;GAQG;AACH,MAAM,UAAU,SAAS,CAAC,KAAa;IACrC,MAAM,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACzC,IAAI,CAAC,KAAK;QAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IACrC,OAAO,uBAAuB,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAA;AAC1E,CAAC"}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { concat } from '../data/concat.js';
|
2
|
+
import { stringToBytes, toBytes, } from '../encoding/toBytes.js';
|
3
|
+
import { bytesToHex } from '../encoding/toHex.js';
|
4
|
+
import { keccak256 } from '../hash/keccak256.js';
|
5
|
+
import { encodedLabelToLabelhash, } from './encodedLabelToLabelhash.js';
|
6
|
+
/**
|
7
|
+
* @description Hashes ENS name
|
8
|
+
*
|
9
|
+
* - Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `namehash`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
|
10
|
+
*
|
11
|
+
* @example
|
12
|
+
* namehash('wevm.eth')
|
13
|
+
* '0xf246651c1b9a6b141d19c2604e9a58f567973833990f830d882534a747801359'
|
14
|
+
*
|
15
|
+
* @link https://eips.ethereum.org/EIPS/eip-137
|
16
|
+
*/
|
17
|
+
export function namehash(name) {
|
18
|
+
let result = new Uint8Array(32).fill(0);
|
19
|
+
if (!name)
|
20
|
+
return bytesToHex(result);
|
21
|
+
const labels = name.split('.');
|
22
|
+
// Iterate in reverse order building up hash
|
23
|
+
for (let i = labels.length - 1; i >= 0; i -= 1) {
|
24
|
+
const hashFromEncodedLabel = encodedLabelToLabelhash(labels[i]);
|
25
|
+
const hashed = hashFromEncodedLabel
|
26
|
+
? toBytes(hashFromEncodedLabel)
|
27
|
+
: keccak256(stringToBytes(labels[i]), 'bytes');
|
28
|
+
result = keccak256(concat([result, hashed]), 'bytes');
|
29
|
+
}
|
30
|
+
return bytesToHex(result);
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=namehash.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"namehash.js","sourceRoot":"","sources":["../../../utils/ens/namehash.ts"],"names":[],"mappings":"AACA,OAAO,EAAwB,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAChE,OAAO,EAGL,aAAa,EACb,OAAO,GACR,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAA4B,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAC3E,OAAO,EAA2B,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACzE,OAAO,EAEL,uBAAuB,GACxB,MAAM,8BAA8B,CAAA;AAWrC;;;;;;;;;;GAUG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY;IACnC,IAAI,MAAM,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;IACvC,IAAI,CAAC,IAAI;QAAE,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;IAEpC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC9B,4CAA4C;IAC5C,KAAK,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/C,MAAM,oBAAoB,GAAG,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;QAC/D,MAAM,MAAM,GAAG,oBAAoB;YACjC,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;YAC/B,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;QAChD,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,CAAA;IACvD,CAAC;IAED,OAAO,UAAU,CAAC,MAAM,CAAC,CAAA;AAC3B,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { ens_normalize } from '@adraffy/ens-normalize';
|
2
|
+
/**
|
3
|
+
* @description Normalizes ENS name according to ENSIP-15.
|
4
|
+
*
|
5
|
+
* @example
|
6
|
+
* normalize('wevm.eth')
|
7
|
+
* 'wevm.eth'
|
8
|
+
*
|
9
|
+
* @see https://docs.ens.domains/contract-api-reference/name-processing#normalising-names
|
10
|
+
* @see https://github.com/ensdomains/docs/blob/9edf9443de4333a0ea7ec658a870672d5d180d53/ens-improvement-proposals/ensip-15-normalization-standard.md
|
11
|
+
*/
|
12
|
+
export function normalize(name) {
|
13
|
+
return ens_normalize(name);
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=normalize.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"normalize.js","sourceRoot":"","sources":["../../../utils/ens/normalize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAKtD;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,IAAY;IACpC,OAAO,aAAa,CAAC,IAAI,CAAC,CAAA;AAC5B,CAAC"}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { stringToBytes, } from '../encoding/toBytes.js';
|
2
|
+
import { encodeLabelhash, } from './encodeLabelhash.js';
|
3
|
+
import { labelhash } from './labelhash.js';
|
4
|
+
/*
|
5
|
+
* @description Encodes a DNS packet into a ByteArray containing a UDP payload.
|
6
|
+
*/
|
7
|
+
export function packetToBytes(packet) {
|
8
|
+
// strip leading and trailing `.`
|
9
|
+
const value = packet.replace(/^\.|\.$/gm, '');
|
10
|
+
if (value.length === 0)
|
11
|
+
return new Uint8Array(1);
|
12
|
+
const bytes = new Uint8Array(stringToBytes(value).byteLength + 2);
|
13
|
+
let offset = 0;
|
14
|
+
const list = value.split('.');
|
15
|
+
for (let i = 0; i < list.length; i++) {
|
16
|
+
let encoded = stringToBytes(list[i]);
|
17
|
+
// if the length is > 255, make the encoded label value a labelhash
|
18
|
+
// this is compatible with the universal resolver
|
19
|
+
if (encoded.byteLength > 255)
|
20
|
+
encoded = stringToBytes(encodeLabelhash(labelhash(list[i])));
|
21
|
+
bytes[offset] = encoded.length;
|
22
|
+
bytes.set(encoded, offset + 1);
|
23
|
+
offset += encoded.length + 1;
|
24
|
+
}
|
25
|
+
if (bytes.byteLength !== offset + 1)
|
26
|
+
return bytes.slice(0, offset + 1);
|
27
|
+
return bytes;
|
28
|
+
}
|
29
|
+
//# sourceMappingURL=packetToBytes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"packetToBytes.js","sourceRoot":"","sources":["../../../utils/ens/packetToBytes.ts"],"names":[],"mappings":"AAGA,OAAO,EAEL,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAEL,eAAe,GAChB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAA2B,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAQnE;;GAEG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,iCAAiC;IACjC,MAAM,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAA;IAC7C,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAA;IAEhD,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,UAAU,GAAG,CAAC,CAAC,CAAA;IAEjE,IAAI,MAAM,GAAG,CAAC,CAAA;IACd,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IAC7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACrC,IAAI,OAAO,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;QACpC,mEAAmE;QACnE,iDAAiD;QACjD,IAAI,OAAO,CAAC,UAAU,GAAG,GAAG;YAC1B,OAAO,GAAG,aAAa,CAAC,eAAe,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAC9D,KAAK,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAA;QAC9B,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,GAAG,CAAC,CAAC,CAAA;QAC9B,MAAM,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;IAC9B,CAAC;IAED,IAAI,KAAK,CAAC,UAAU,KAAK,MAAM,GAAG,CAAC;QAAE,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAA;IAEtE,OAAO,KAAK,CAAA;AACd,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { CallExecutionError, } from '../../errors/contract.js';
|
2
|
+
import { UnknownNodeError } from '../../errors/node.js';
|
3
|
+
import { getNodeError, } from './getNodeError.js';
|
4
|
+
export function getCallError(err, { docsPath, ...args }) {
|
5
|
+
const cause = (() => {
|
6
|
+
const cause = getNodeError(err, args);
|
7
|
+
if (cause instanceof UnknownNodeError)
|
8
|
+
return err;
|
9
|
+
return cause;
|
10
|
+
})();
|
11
|
+
return new CallExecutionError(cause, {
|
12
|
+
docsPath,
|
13
|
+
...args,
|
14
|
+
});
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=getCallError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getCallError.js","sourceRoot":"","sources":["../../../utils/errors/getCallError.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,kBAAkB,GAEnB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAIvD,OAAO,EAGL,YAAY,GACb,MAAM,mBAAmB,CAAA;AAS1B,MAAM,UAAU,YAAY,CAC1B,GAAQ,EACR,EACE,QAAQ,EACR,GAAG,IAAI,EAIR;IAED,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;QAClB,MAAM,KAAK,GAAG,YAAY,CACxB,GAAsB,EACtB,IAA8B,CAC/B,CAAA;QACD,IAAI,KAAK,YAAY,gBAAgB;YAAE,OAAO,GAAsB,CAAA;QACpE,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,IAAI,kBAAkB,CAAC,KAAK,EAAE;QACnC,QAAQ;QACR,GAAG,IAAI;KACR,CAAgC,CAAA;AACnC,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { AbiDecodingZeroDataError } from '../../errors/abi.js';
|
2
|
+
import { BaseError } from '../../errors/base.js';
|
3
|
+
import { ContractFunctionExecutionError, ContractFunctionRevertedError, ContractFunctionZeroDataError, RawContractError, } from '../../errors/contract.js';
|
4
|
+
import { InternalRpcError } from '../../errors/rpc.js';
|
5
|
+
const EXECUTION_REVERTED_ERROR_CODE = 3;
|
6
|
+
export function getContractError(err, { abi, address, args, docsPath, functionName, sender, }) {
|
7
|
+
const { code, data, message, shortMessage } = (err instanceof RawContractError
|
8
|
+
? err
|
9
|
+
: err instanceof BaseError
|
10
|
+
? err.walk((err) => 'data' in err) || err.walk()
|
11
|
+
: {});
|
12
|
+
const cause = (() => {
|
13
|
+
if (err instanceof AbiDecodingZeroDataError)
|
14
|
+
return new ContractFunctionZeroDataError({ functionName });
|
15
|
+
if ([EXECUTION_REVERTED_ERROR_CODE, InternalRpcError.code].includes(code) &&
|
16
|
+
(data || message || shortMessage)) {
|
17
|
+
return new ContractFunctionRevertedError({
|
18
|
+
abi,
|
19
|
+
data: typeof data === 'object' ? data.data : data,
|
20
|
+
functionName,
|
21
|
+
message: shortMessage ?? message,
|
22
|
+
});
|
23
|
+
}
|
24
|
+
return err;
|
25
|
+
})();
|
26
|
+
return new ContractFunctionExecutionError(cause, {
|
27
|
+
abi,
|
28
|
+
args,
|
29
|
+
contractAddress: address,
|
30
|
+
docsPath,
|
31
|
+
functionName,
|
32
|
+
sender,
|
33
|
+
});
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=getContractError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getContractError.js","sourceRoot":"","sources":["../../../utils/errors/getContractError.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AAChD,OAAO,EACL,8BAA8B,EAE9B,6BAA6B,EAE7B,6BAA6B,EAE7B,gBAAgB,GACjB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAA;AAGtD,MAAM,6BAA6B,GAAG,CAAC,CAAA;AAYvC,MAAM,UAAU,gBAAgB,CAC9B,GAAQ,EACR,EACE,GAAG,EACH,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,YAAY,EACZ,MAAM,GAQP;IAED,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,CAC5C,GAAG,YAAY,gBAAgB;QAC7B,CAAC,CAAC,GAAG;QACL,CAAC,CAAC,GAAG,YAAY,SAAS;YACxB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,IAAK,GAAa,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE;YAC3D,CAAC,CAAC,EAAE,CACW,CAAA;IAErB,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;QAClB,IAAI,GAAG,YAAY,wBAAwB;YACzC,OAAO,IAAI,6BAA6B,CAAC,EAAE,YAAY,EAAE,CAAC,CAAA;QAC5D,IACE,CAAC,6BAA6B,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC;YACrE,CAAC,IAAI,IAAI,OAAO,IAAI,YAAY,CAAC,EACjC,CAAC;YACD,OAAO,IAAI,6BAA6B,CAAC;gBACvC,GAAG;gBACH,IAAI,EAAE,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;gBACjD,YAAY;gBACZ,OAAO,EAAE,YAAY,IAAI,OAAO;aACjC,CAAC,CAAA;QACJ,CAAC;QACD,OAAO,GAAG,CAAA;IACZ,CAAC,CAAC,EAAE,CAAA;IAEJ,OAAO,IAAI,8BAA8B,CAAC,KAAkB,EAAE;QAC5D,GAAG;QACH,IAAI;QACJ,eAAe,EAAE,OAAO;QACxB,QAAQ;QACR,YAAY;QACZ,MAAM;KACP,CAA+B,CAAA;AAClC,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { EstimateGasExecutionError, } from '../../errors/estimateGas.js';
|
2
|
+
import { UnknownNodeError } from '../../errors/node.js';
|
3
|
+
import { getNodeError, } from './getNodeError.js';
|
4
|
+
export function getEstimateGasError(err, { docsPath, ...args }) {
|
5
|
+
const cause = (() => {
|
6
|
+
const cause = getNodeError(err, args);
|
7
|
+
if (cause instanceof UnknownNodeError)
|
8
|
+
return err;
|
9
|
+
return cause;
|
10
|
+
})();
|
11
|
+
return new EstimateGasExecutionError(cause, {
|
12
|
+
docsPath,
|
13
|
+
...args,
|
14
|
+
});
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=getEstimateGasError.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"getEstimateGasError.js","sourceRoot":"","sources":["../../../utils/errors/getEstimateGasError.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,yBAAyB,GAE1B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAIvD,OAAO,EAGL,YAAY,GACb,MAAM,mBAAmB,CAAA;AAO1B,MAAM,UAAU,mBAAmB,CACjC,GAAQ,EACR,EACE,QAAQ,EACR,GAAG,IAAI,EAKR;IAED,MAAM,KAAK,GAAG,CAAC,GAAG,EAAE;QAClB,MAAM,KAAK,GAAG,YAAY,CACxB,GAAsB,EACtB,IAA8B,CAC/B,CAAA;QACD,IAAI,KAAK,YAAY,gBAAgB;YAAE,OAAO,GAAsB,CAAA;QACpE,OAAO,KAAK,CAAA;IACd,CAAC,CAAC,EAAE,CAAA;IACJ,OAAO,IAAI,yBAAyB,CAAC,KAAK,EAAE;QAC1C,QAAQ;QACR,GAAG,IAAI;KACR,CAAuC,CAAA;AAC1C,CAAC"}
|