viem 2.15.1 → 2.16.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +36 -0
- package/README.md +17 -11
- package/_cjs/accounts/generateMnemonic.js +1 -2
- package/_cjs/accounts/generateMnemonic.js.map +1 -1
- package/_cjs/accounts/generatePrivateKey.js +1 -2
- package/_cjs/accounts/generatePrivateKey.js.map +1 -1
- package/_cjs/accounts/hdKeyToAccount.js +1 -2
- package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
- package/_cjs/accounts/mnemonicToAccount.js +1 -2
- package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
- package/_cjs/accounts/privateKeyToAccount.js +1 -2
- package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
- package/_cjs/accounts/toAccount.js +1 -2
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/accounts/utils/parseAccount.js +1 -2
- package/_cjs/accounts/utils/parseAccount.js.map +1 -1
- package/_cjs/accounts/utils/privateKeyToAddress.js +1 -2
- package/_cjs/accounts/utils/privateKeyToAddress.js.map +1 -1
- package/_cjs/accounts/utils/publicKeyToAddress.js +1 -2
- package/_cjs/accounts/utils/publicKeyToAddress.js.map +1 -1
- package/_cjs/accounts/utils/sign.js +1 -2
- package/_cjs/accounts/utils/sign.js.map +1 -1
- package/_cjs/accounts/utils/signMessage.js +1 -2
- package/_cjs/accounts/utils/signMessage.js.map +1 -1
- package/_cjs/accounts/utils/signTransaction.js +1 -2
- package/_cjs/accounts/utils/signTransaction.js.map +1 -1
- package/_cjs/accounts/utils/signTypedData.js +1 -2
- package/_cjs/accounts/utils/signTypedData.js.map +1 -1
- package/_cjs/actions/ens/getEnsAddress.js +1 -2
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js +1 -2
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js +1 -2
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js +1 -2
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js +1 -2
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js +3 -4
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js +2 -3
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createBlockFilter.js +1 -2
- package/_cjs/actions/public/createBlockFilter.js.map +1 -1
- package/_cjs/actions/public/createContractEventFilter.js +1 -2
- package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
- package/_cjs/actions/public/createEventFilter.js +7 -9
- package/_cjs/actions/public/createEventFilter.js.map +1 -1
- package/_cjs/actions/public/createPendingTransactionFilter.js +1 -2
- package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +1 -2
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/estimateFeesPerGas.js +2 -3
- package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js +1 -2
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +2 -3
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/getBalance.js +1 -2
- package/_cjs/actions/public/getBalance.js.map +1 -1
- package/_cjs/actions/public/getBlobBaseFee.js +1 -2
- package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
- package/_cjs/actions/public/getBlock.js +1 -2
- package/_cjs/actions/public/getBlock.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js +2 -3
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/public/getBlockTransactionCount.js +1 -2
- package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getChainId.js +1 -2
- package/_cjs/actions/public/getChainId.js.map +1 -1
- package/_cjs/actions/public/getCode.js +1 -2
- package/_cjs/actions/public/getCode.js.map +1 -1
- package/_cjs/actions/public/getContractEvents.js +1 -2
- package/_cjs/actions/public/getContractEvents.js.map +1 -1
- package/_cjs/actions/public/getEip712Domain.js +1 -2
- package/_cjs/actions/public/getEip712Domain.js.map +1 -1
- package/_cjs/actions/public/getFeeHistory.js +1 -2
- package/_cjs/actions/public/getFeeHistory.js.map +1 -1
- package/_cjs/actions/public/getFilterChanges.js +1 -2
- package/_cjs/actions/public/getFilterChanges.js.map +1 -1
- package/_cjs/actions/public/getFilterLogs.js +1 -2
- package/_cjs/actions/public/getFilterLogs.js.map +1 -1
- package/_cjs/actions/public/getGasPrice.js +1 -2
- package/_cjs/actions/public/getGasPrice.js.map +1 -1
- package/_cjs/actions/public/getLogs.js +7 -9
- package/_cjs/actions/public/getLogs.js.map +1 -1
- package/_cjs/actions/public/getProof.js +1 -2
- package/_cjs/actions/public/getProof.js.map +1 -1
- package/_cjs/actions/public/getStorageAt.js +1 -2
- package/_cjs/actions/public/getStorageAt.js.map +1 -1
- package/_cjs/actions/public/getTransaction.js +1 -2
- package/_cjs/actions/public/getTransaction.js.map +1 -1
- package/_cjs/actions/public/getTransactionConfirmations.js +1 -2
- package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_cjs/actions/public/getTransactionCount.js +1 -2
- package/_cjs/actions/public/getTransactionCount.js.map +1 -1
- package/_cjs/actions/public/getTransactionReceipt.js +1 -2
- package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/multicall.js +1 -2
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/public/readContract.js +1 -2
- package/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +1 -2
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/public/uninstallFilter.js +1 -2
- package/_cjs/actions/public/uninstallFilter.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +22 -5
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js +4 -3
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/verifyTypedData.js +4 -3
- package/_cjs/actions/public/verifyTypedData.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js +1 -2
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js +1 -2
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js +1 -2
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +1 -2
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js +7 -9
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js +1 -2
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/siwe/verifySiweMessage.js +1 -2
- package/_cjs/actions/siwe/verifySiweMessage.js.map +1 -1
- package/_cjs/actions/test/dropTransaction.js +1 -2
- package/_cjs/actions/test/dropTransaction.js.map +1 -1
- package/_cjs/actions/test/dumpState.js +1 -2
- package/_cjs/actions/test/dumpState.js.map +1 -1
- package/_cjs/actions/test/getAutomine.js +1 -2
- package/_cjs/actions/test/getAutomine.js.map +1 -1
- package/_cjs/actions/test/getTxpoolContent.js +1 -2
- package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
- package/_cjs/actions/test/getTxpoolStatus.js +1 -2
- package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
- package/_cjs/actions/test/impersonateAccount.js +1 -2
- package/_cjs/actions/test/impersonateAccount.js.map +1 -1
- package/_cjs/actions/test/increaseTime.js +1 -2
- package/_cjs/actions/test/increaseTime.js.map +1 -1
- package/_cjs/actions/test/inspectTxpool.js +1 -2
- package/_cjs/actions/test/inspectTxpool.js.map +1 -1
- package/_cjs/actions/test/loadState.js +1 -2
- package/_cjs/actions/test/loadState.js.map +1 -1
- package/_cjs/actions/test/mine.js +1 -2
- package/_cjs/actions/test/mine.js.map +1 -1
- package/_cjs/actions/test/removeBlockTimestampInterval.js +1 -2
- package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/reset.js +1 -2
- package/_cjs/actions/test/reset.js.map +1 -1
- package/_cjs/actions/test/revert.js +1 -2
- package/_cjs/actions/test/revert.js.map +1 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js +1 -2
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_cjs/actions/test/setAutomine.js +1 -2
- package/_cjs/actions/test/setAutomine.js.map +1 -1
- package/_cjs/actions/test/setBalance.js +1 -2
- package/_cjs/actions/test/setBalance.js.map +1 -1
- package/_cjs/actions/test/setBlockGasLimit.js +1 -2
- package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
- package/_cjs/actions/test/setBlockTimestampInterval.js +1 -2
- package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
- package/_cjs/actions/test/setCode.js +1 -2
- package/_cjs/actions/test/setCode.js.map +1 -1
- package/_cjs/actions/test/setCoinbase.js +1 -2
- package/_cjs/actions/test/setCoinbase.js.map +1 -1
- package/_cjs/actions/test/setIntervalMining.js +1 -2
- package/_cjs/actions/test/setIntervalMining.js.map +1 -1
- package/_cjs/actions/test/setLoggingEnabled.js +1 -2
- package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
- package/_cjs/actions/test/setMinGasPrice.js +1 -2
- package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js +1 -2
- package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
- package/_cjs/actions/test/setNextBlockTimestamp.js +1 -2
- package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
- package/_cjs/actions/test/setNonce.js +1 -2
- package/_cjs/actions/test/setNonce.js.map +1 -1
- package/_cjs/actions/test/setRpcUrl.js +1 -2
- package/_cjs/actions/test/setRpcUrl.js.map +1 -1
- package/_cjs/actions/test/setStorageAt.js +1 -2
- package/_cjs/actions/test/setStorageAt.js.map +1 -1
- package/_cjs/actions/test/snapshot.js +1 -2
- package/_cjs/actions/test/snapshot.js.map +1 -1
- package/_cjs/actions/test/stopImpersonatingAccount.js +1 -2
- package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
- package/_cjs/actions/wallet/addChain.js +1 -2
- package/_cjs/actions/wallet/addChain.js.map +1 -1
- package/_cjs/actions/wallet/deployContract.js +1 -2
- package/_cjs/actions/wallet/deployContract.js.map +1 -1
- package/_cjs/actions/wallet/getAddresses.js +1 -2
- package/_cjs/actions/wallet/getAddresses.js.map +1 -1
- package/_cjs/actions/wallet/getPermissions.js +1 -2
- package/_cjs/actions/wallet/getPermissions.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +2 -2
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/requestAddresses.js +1 -2
- package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
- package/_cjs/actions/wallet/requestPermissions.js +1 -2
- package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
- package/_cjs/actions/wallet/sendRawTransaction.js +1 -2
- package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +2 -2
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signMessage.js +1 -2
- package/_cjs/actions/wallet/signMessage.js.map +1 -1
- package/_cjs/actions/wallet/signTransaction.js +1 -2
- package/_cjs/actions/wallet/signTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signTypedData.js +1 -2
- package/_cjs/actions/wallet/signTypedData.js.map +1 -1
- package/_cjs/actions/wallet/switchChain.js +1 -2
- package/_cjs/actions/wallet/switchChain.js.map +1 -1
- package/_cjs/actions/wallet/watchAsset.js +1 -2
- package/_cjs/actions/wallet/watchAsset.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js +1 -2
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/celo/parsers.js +1 -2
- package/_cjs/celo/parsers.js.map +1 -1
- package/_cjs/celo/serializers.js +4 -4
- package/_cjs/celo/serializers.js.map +1 -1
- package/_cjs/celo/utils.js +4 -5
- package/_cjs/celo/utils.js.map +1 -1
- package/_cjs/chains/definitions/zetachain.js +6 -0
- package/_cjs/chains/definitions/zetachain.js.map +1 -1
- package/_cjs/chains/definitions/zetachainAthensTestnet.js +6 -0
- package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zircuitTestnet.js +27 -0
- package/_cjs/chains/definitions/zircuitTestnet.js.map +1 -0
- package/_cjs/chains/index.js +4 -2
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -3
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/createPublicClient.js +1 -2
- package/_cjs/clients/createPublicClient.js.map +1 -1
- package/_cjs/clients/createTestClient.js +1 -2
- package/_cjs/clients/createTestClient.js.map +1 -1
- package/_cjs/clients/createWalletClient.js +1 -2
- package/_cjs/clients/createWalletClient.js.map +1 -1
- package/_cjs/clients/decorators/public.js +1 -2
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/test.js +1 -2
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js +1 -2
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/createTransport.js +1 -2
- package/_cjs/clients/transports/createTransport.js.map +1 -1
- package/_cjs/clients/transports/custom.js +1 -2
- package/_cjs/clients/transports/custom.js.map +1 -1
- package/_cjs/clients/transports/fallback.js +2 -3
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/clients/transports/http.js +1 -2
- package/_cjs/clients/transports/http.js.map +1 -1
- package/_cjs/clients/transports/ipc.js +1 -2
- package/_cjs/clients/transports/ipc.js.map +1 -1
- package/_cjs/clients/transports/webSocket.js +1 -2
- package/_cjs/clients/transports/webSocket.js.map +1 -1
- package/_cjs/errors/stateOverride.js +3 -3
- package/_cjs/errors/stateOverride.js.map +1 -1
- package/_cjs/errors/transaction.js +2 -2
- package/_cjs/errors/transaction.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/eip5792/actions/getCallsStatus.js +1 -2
- package/_cjs/experimental/eip5792/actions/getCallsStatus.js.map +1 -1
- package/_cjs/experimental/eip5792/actions/getCapabilities.js +1 -2
- package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -1
- package/_cjs/experimental/eip5792/actions/sendCalls.js +1 -2
- package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -1
- package/_cjs/experimental/eip5792/actions/showCallsStatus.js +1 -2
- package/_cjs/experimental/eip5792/actions/showCallsStatus.js.map +1 -1
- package/_cjs/experimental/eip5792/actions/writeContracts.js +1 -2
- package/_cjs/experimental/eip5792/actions/writeContracts.js.map +1 -1
- package/_cjs/experimental/eip5792/decorators/eip5792.js +1 -2
- package/_cjs/experimental/eip5792/decorators/eip5792.js.map +1 -1
- package/_cjs/experimental/erc7715/actions/issuePermissions.js +1 -2
- package/_cjs/experimental/erc7715/actions/issuePermissions.js.map +1 -1
- package/_cjs/experimental/erc7715/decorators/erc7715.js +1 -2
- package/_cjs/experimental/erc7715/decorators/erc7715.js.map +1 -1
- package/_cjs/experimental/index.js +6 -4
- package/_cjs/experimental/index.js.map +1 -1
- package/_cjs/experimental/solady/actions/signMessage.js +39 -0
- package/_cjs/experimental/solady/actions/signMessage.js.map +1 -0
- package/_cjs/experimental/solady/actions/signTypedData.js +62 -0
- package/_cjs/experimental/solady/actions/signTypedData.js.map +1 -0
- package/_cjs/experimental/solady/decorators/solady.js +15 -0
- package/_cjs/experimental/solady/decorators/solady.js.map +1 -0
- package/_cjs/experimental/solady/index.js +16 -0
- package/_cjs/experimental/solady/index.js.map +1 -0
- package/_cjs/experimental/solady/types.js +3 -0
- package/_cjs/experimental/solady/types.js.map +1 -0
- package/_cjs/experimental/solady/utils/hashMessage.js +19 -0
- package/_cjs/experimental/solady/utils/hashMessage.js.map +1 -0
- package/_cjs/experimental/solady/utils/hashTypedData.js +31 -0
- package/_cjs/experimental/solady/utils/hashTypedData.js.map +1 -0
- package/_cjs/experimental/solady/utils/wrapTypedDataSignature.js +44 -0
- package/_cjs/experimental/solady/utils/wrapTypedDataSignature.js.map +1 -0
- package/_cjs/index.js +11 -3
- package/_cjs/index.js.map +1 -1
- package/_cjs/op-stack/actions/buildDepositTransaction.js +1 -2
- package/_cjs/op-stack/actions/buildDepositTransaction.js.map +1 -1
- package/_cjs/op-stack/actions/buildInitiateWithdrawal.js +1 -2
- package/_cjs/op-stack/actions/buildInitiateWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/buildProveWithdrawal.js +2 -3
- package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/depositTransaction.js +1 -2
- package/_cjs/op-stack/actions/depositTransaction.js.map +1 -1
- package/_cjs/op-stack/actions/estimateContractL1Fee.js +1 -2
- package/_cjs/op-stack/actions/estimateContractL1Fee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateContractL1Gas.js +1 -2
- package/_cjs/op-stack/actions/estimateContractL1Gas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateContractTotalFee.js +1 -2
- package/_cjs/op-stack/actions/estimateContractTotalFee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateContractTotalGas.js +1 -2
- package/_cjs/op-stack/actions/estimateContractTotalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +1 -2
- package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +1 -2
- package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +1 -2
- package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateL1Fee.js +1 -2
- package/_cjs/op-stack/actions/estimateL1Fee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateL1Gas.js +1 -2
- package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +1 -2
- package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalFee.js +1 -2
- package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
- package/_cjs/op-stack/actions/estimateTotalGas.js +1 -2
- package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
- package/_cjs/op-stack/actions/finalizeWithdrawal.js +1 -2
- package/_cjs/op-stack/actions/finalizeWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/getGame.js +1 -2
- package/_cjs/op-stack/actions/getGame.js.map +1 -1
- package/_cjs/op-stack/actions/getGames.js +1 -2
- package/_cjs/op-stack/actions/getGames.js.map +1 -1
- package/_cjs/op-stack/actions/getL1BaseFee.js +1 -2
- package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
- package/_cjs/op-stack/actions/getL2Output.js +1 -2
- package/_cjs/op-stack/actions/getL2Output.js.map +1 -1
- package/_cjs/op-stack/actions/getPortalVersion.js +1 -2
- package/_cjs/op-stack/actions/getPortalVersion.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToFinalize.js +1 -2
- package/_cjs/op-stack/actions/getTimeToFinalize.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToNextGame.js +1 -2
- package/_cjs/op-stack/actions/getTimeToNextGame.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToNextL2Output.js +1 -2
- package/_cjs/op-stack/actions/getTimeToNextL2Output.js.map +1 -1
- package/_cjs/op-stack/actions/getTimeToProve.js +1 -2
- package/_cjs/op-stack/actions/getTimeToProve.js.map +1 -1
- package/_cjs/op-stack/actions/getWithdrawalStatus.js +1 -2
- package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_cjs/op-stack/actions/initiateWithdrawal.js +1 -2
- package/_cjs/op-stack/actions/initiateWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/proveWithdrawal.js +1 -2
- package/_cjs/op-stack/actions/proveWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/waitForNextGame.js +1 -2
- package/_cjs/op-stack/actions/waitForNextGame.js.map +1 -1
- package/_cjs/op-stack/actions/waitForNextL2Output.js +1 -2
- package/_cjs/op-stack/actions/waitForNextL2Output.js.map +1 -1
- package/_cjs/op-stack/actions/waitToFinalize.js +1 -2
- package/_cjs/op-stack/actions/waitToFinalize.js.map +1 -1
- package/_cjs/op-stack/actions/waitToProve.js +1 -2
- package/_cjs/op-stack/actions/waitToProve.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL1.js +1 -2
- package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
- package/_cjs/op-stack/decorators/publicL2.js +1 -2
- package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL1.js +1 -2
- package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
- package/_cjs/op-stack/decorators/walletL2.js +1 -2
- package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
- package/_cjs/op-stack/parsers.js +1 -2
- package/_cjs/op-stack/parsers.js.map +1 -1
- package/_cjs/op-stack/serializers.js +3 -3
- package/_cjs/op-stack/serializers.js.map +1 -1
- package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js +1 -2
- package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js.map +1 -1
- package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js +1 -2
- package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js.map +1 -1
- package/_cjs/op-stack/utils/getL2TransactionHash.js +1 -2
- package/_cjs/op-stack/utils/getL2TransactionHash.js.map +1 -1
- package/_cjs/op-stack/utils/getL2TransactionHashes.js +1 -2
- package/_cjs/op-stack/utils/getL2TransactionHashes.js.map +1 -1
- package/_cjs/op-stack/utils/getSourceHash.js +1 -2
- package/_cjs/op-stack/utils/getSourceHash.js.map +1 -1
- package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js +1 -2
- package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js.map +1 -1
- package/_cjs/op-stack/utils/getWithdrawals.js +1 -2
- package/_cjs/op-stack/utils/getWithdrawals.js.map +1 -1
- package/_cjs/op-stack/utils/opaqueDataToDepositData.js +1 -2
- package/_cjs/op-stack/utils/opaqueDataToDepositData.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +1 -2
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeDeployData.js +1 -2
- package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/decodeErrorResult.js +1 -2
- package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/decodeEventLog.js +1 -2
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionData.js +1 -2
- package/_cjs/utils/abi/decodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionResult.js +1 -2
- package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +2 -3
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeDeployData.js +1 -2
- package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/encodeErrorResult.js +1 -2
- package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js +6 -7
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionData.js +1 -2
- package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionResult.js +1 -2
- package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js +1 -2
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItem.js +2 -3
- package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
- package/_cjs/utils/abi/formatAbiItemWithArgs.js +1 -2
- package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js +3 -4
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/abi/parseEventLogs.js +1 -2
- package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
- package/_cjs/utils/abi/prepareEncodeFunctionData.js +1 -2
- package/_cjs/utils/abi/prepareEncodeFunctionData.js.map +1 -1
- package/_cjs/utils/address/getAddress.js +2 -3
- package/_cjs/utils/address/getAddress.js.map +1 -1
- package/_cjs/utils/address/getContractAddress.js +3 -4
- package/_cjs/utils/address/getContractAddress.js.map +1 -1
- package/_cjs/utils/address/isAddress.js +2 -2
- package/_cjs/utils/address/isAddress.js.map +1 -1
- package/_cjs/utils/address/isAddressEqual.js +1 -2
- package/_cjs/utils/address/isAddressEqual.js.map +1 -1
- package/_cjs/utils/blob/blobsToCommitments.js +1 -2
- package/_cjs/utils/blob/blobsToCommitments.js.map +1 -1
- package/_cjs/utils/blob/blobsToProofs.js +1 -2
- package/_cjs/utils/blob/blobsToProofs.js.map +1 -1
- package/_cjs/utils/blob/commitmentToVersionedHash.js +1 -2
- package/_cjs/utils/blob/commitmentToVersionedHash.js.map +1 -1
- package/_cjs/utils/blob/commitmentsToVersionedHashes.js +1 -2
- package/_cjs/utils/blob/commitmentsToVersionedHashes.js.map +1 -1
- package/_cjs/utils/blob/fromBlobs.js +1 -2
- package/_cjs/utils/blob/fromBlobs.js.map +1 -1
- package/_cjs/utils/blob/sidecarsToVersionedHashes.js +1 -2
- package/_cjs/utils/blob/sidecarsToVersionedHashes.js.map +1 -1
- package/_cjs/utils/blob/toBlobSidecars.js +1 -2
- package/_cjs/utils/blob/toBlobSidecars.js.map +1 -1
- package/_cjs/utils/blob/toBlobs.js +1 -2
- package/_cjs/utils/blob/toBlobs.js.map +1 -1
- package/_cjs/utils/buildRequest.js +2 -3
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_cjs/utils/ccip.js +3 -3
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/chain/assertCurrentChain.js +1 -2
- package/_cjs/utils/chain/assertCurrentChain.js.map +1 -1
- package/_cjs/utils/chain/defineChain.js +1 -2
- package/_cjs/utils/chain/defineChain.js.map +1 -1
- package/_cjs/utils/chain/extractChain.js +1 -2
- package/_cjs/utils/chain/extractChain.js.map +1 -1
- package/_cjs/utils/chain/getChainContractAddress.js +1 -2
- package/_cjs/utils/chain/getChainContractAddress.js.map +1 -1
- package/_cjs/utils/cursor.js +1 -2
- package/_cjs/utils/cursor.js.map +1 -1
- package/_cjs/utils/data/concat.js +3 -4
- package/_cjs/utils/data/concat.js.map +1 -1
- package/_cjs/utils/data/isBytes.js +1 -2
- package/_cjs/utils/data/isBytes.js.map +1 -1
- package/_cjs/utils/data/isBytesEqual.js +1 -2
- package/_cjs/utils/data/isBytesEqual.js.map +1 -1
- package/_cjs/utils/data/isHex.js +1 -2
- package/_cjs/utils/data/isHex.js.map +1 -1
- package/_cjs/utils/data/pad.js +3 -4
- package/_cjs/utils/data/pad.js.map +1 -1
- package/_cjs/utils/data/size.js +1 -2
- package/_cjs/utils/data/size.js.map +1 -1
- package/_cjs/utils/data/slice.js +3 -4
- package/_cjs/utils/data/slice.js.map +1 -1
- package/_cjs/utils/data/trim.js +1 -2
- package/_cjs/utils/data/trim.js.map +1 -1
- package/_cjs/utils/encoding/fromBytes.js +5 -6
- package/_cjs/utils/encoding/fromBytes.js.map +1 -1
- package/_cjs/utils/encoding/fromHex.js +6 -7
- package/_cjs/utils/encoding/fromHex.js.map +1 -1
- package/_cjs/utils/encoding/fromRlp.js +1 -2
- package/_cjs/utils/encoding/fromRlp.js.map +1 -1
- package/_cjs/utils/encoding/toBytes.js +5 -6
- package/_cjs/utils/encoding/toBytes.js.map +1 -1
- package/_cjs/utils/encoding/toHex.js +5 -6
- package/_cjs/utils/encoding/toHex.js.map +1 -1
- package/_cjs/utils/encoding/toRlp.js +3 -4
- package/_cjs/utils/encoding/toRlp.js.map +1 -1
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js +1 -2
- package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js +8 -9
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/ens/encodeLabelhash.js +1 -2
- package/_cjs/utils/ens/encodeLabelhash.js.map +1 -1
- package/_cjs/utils/ens/encodedLabelToLabelhash.js +1 -2
- package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
- package/_cjs/utils/ens/errors.js +1 -2
- package/_cjs/utils/ens/errors.js.map +1 -1
- package/_cjs/utils/ens/labelhash.js +1 -2
- package/_cjs/utils/ens/labelhash.js.map +1 -1
- package/_cjs/utils/ens/namehash.js +1 -2
- package/_cjs/utils/ens/namehash.js.map +1 -1
- package/_cjs/utils/ens/normalize.js +1 -2
- package/_cjs/utils/ens/normalize.js.map +1 -1
- package/_cjs/utils/ens/packetToBytes.js +1 -2
- package/_cjs/utils/ens/packetToBytes.js.map +1 -1
- package/_cjs/utils/errors/getCallError.js +1 -2
- package/_cjs/utils/errors/getCallError.js.map +1 -1
- package/_cjs/utils/errors/getContractError.js +1 -2
- package/_cjs/utils/errors/getContractError.js.map +1 -1
- package/_cjs/utils/errors/getEstimateGasError.js +1 -2
- package/_cjs/utils/errors/getEstimateGasError.js.map +1 -1
- package/_cjs/utils/errors/getNodeError.js +2 -3
- package/_cjs/utils/errors/getNodeError.js.map +1 -1
- package/_cjs/utils/errors/getTransactionError.js +1 -2
- package/_cjs/utils/errors/getTransactionError.js.map +1 -1
- package/_cjs/utils/filters/createFilterRequestScope.js +1 -2
- package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_cjs/utils/formatters/block.js +2 -2
- package/_cjs/utils/formatters/block.js.map +1 -1
- package/_cjs/utils/formatters/extract.js +1 -2
- package/_cjs/utils/formatters/extract.js.map +1 -1
- package/_cjs/utils/formatters/feeHistory.js +1 -2
- package/_cjs/utils/formatters/feeHistory.js.map +1 -1
- package/_cjs/utils/formatters/formatter.js +1 -2
- package/_cjs/utils/formatters/formatter.js.map +1 -1
- package/_cjs/utils/formatters/log.js +1 -2
- package/_cjs/utils/formatters/log.js.map +1 -1
- package/_cjs/utils/formatters/proof.js +1 -2
- package/_cjs/utils/formatters/proof.js.map +1 -1
- package/_cjs/utils/formatters/transaction.js +2 -2
- package/_cjs/utils/formatters/transaction.js.map +1 -1
- package/_cjs/utils/formatters/transactionReceipt.js +2 -2
- package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
- package/_cjs/utils/formatters/transactionRequest.js +2 -2
- package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
- package/_cjs/utils/getAction.js +9 -6
- package/_cjs/utils/getAction.js.map +1 -1
- package/_cjs/utils/hash/hashSignature.js +1 -2
- package/_cjs/utils/hash/hashSignature.js.map +1 -1
- package/_cjs/utils/hash/isHash.js +1 -2
- package/_cjs/utils/hash/isHash.js.map +1 -1
- package/_cjs/utils/hash/keccak256.js +1 -2
- package/_cjs/utils/hash/keccak256.js.map +1 -1
- package/_cjs/utils/hash/normalizeSignature.js +1 -2
- package/_cjs/utils/hash/normalizeSignature.js.map +1 -1
- package/_cjs/utils/hash/ripemd160.js +1 -2
- package/_cjs/utils/hash/ripemd160.js.map +1 -1
- package/_cjs/utils/hash/sha256.js +1 -2
- package/_cjs/utils/hash/sha256.js.map +1 -1
- package/_cjs/utils/hash/toSignatureHash.js +1 -2
- package/_cjs/utils/hash/toSignatureHash.js.map +1 -1
- package/_cjs/utils/index.js +7 -1
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/kzg/defineKzg.js +1 -2
- package/_cjs/utils/kzg/defineKzg.js.map +1 -1
- package/_cjs/utils/kzg/setupKzg.js +1 -2
- package/_cjs/utils/kzg/setupKzg.js.map +1 -1
- package/_cjs/utils/nonceManager.js +3 -3
- package/_cjs/utils/nonceManager.js.map +1 -1
- package/_cjs/utils/observe.js +2 -2
- package/_cjs/utils/observe.js.map +1 -1
- package/_cjs/utils/poll.js +1 -2
- package/_cjs/utils/poll.js.map +1 -1
- package/_cjs/utils/promise/createBatchScheduler.js +1 -2
- package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
- package/_cjs/utils/promise/withCache.js +3 -3
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withDedupe.js +2 -2
- package/_cjs/utils/promise/withDedupe.js.map +1 -1
- package/_cjs/utils/promise/withRetry.js +1 -2
- package/_cjs/utils/promise/withRetry.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js +1 -2
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/rpc/compat.js +2 -2
- package/_cjs/utils/rpc/compat.js.map +1 -1
- package/_cjs/utils/rpc/http.js +1 -2
- package/_cjs/utils/rpc/http.js.map +1 -1
- package/_cjs/utils/rpc/ipc.js +2 -3
- package/_cjs/utils/rpc/ipc.js.map +1 -1
- package/_cjs/utils/rpc/socket.js +2 -2
- package/_cjs/utils/rpc/socket.js.map +1 -1
- package/_cjs/utils/rpc/webSocket.js +1 -2
- package/_cjs/utils/rpc/webSocket.js.map +1 -1
- package/_cjs/utils/signature/compactSignatureToSignature.js +1 -2
- package/_cjs/utils/signature/compactSignatureToSignature.js.map +1 -1
- package/_cjs/utils/signature/hashMessage.js +3 -14
- package/_cjs/utils/signature/hashMessage.js.map +1 -1
- package/_cjs/utils/signature/hashTypedData.js +4 -3
- package/_cjs/utils/signature/hashTypedData.js.map +1 -1
- package/_cjs/{experimental/erc6492 → utils/signature}/isErc6492Signature.js +2 -3
- package/_cjs/utils/signature/isErc6492Signature.js.map +1 -0
- package/_cjs/utils/signature/parseCompactSignature.js +1 -2
- package/_cjs/utils/signature/parseCompactSignature.js.map +1 -1
- package/_cjs/{experimental/erc6492 → utils/signature}/parseErc6492Signature.js +2 -3
- package/_cjs/utils/signature/parseErc6492Signature.js.map +1 -0
- package/_cjs/utils/signature/parseSignature.js +1 -2
- package/_cjs/utils/signature/parseSignature.js.map +1 -1
- package/_cjs/utils/signature/recoverAddress.js +1 -2
- package/_cjs/utils/signature/recoverAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverMessageAddress.js +1 -2
- package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverPublicKey.js +1 -2
- package/_cjs/utils/signature/recoverPublicKey.js.map +1 -1
- package/_cjs/utils/signature/recoverTransactionAddress.js +1 -2
- package/_cjs/utils/signature/recoverTransactionAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverTypedDataAddress.js +1 -2
- package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
- package/_cjs/utils/signature/serializeCompactSignature.js +1 -2
- package/_cjs/utils/signature/serializeCompactSignature.js.map +1 -1
- package/_cjs/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.js +3 -4
- package/_cjs/utils/signature/serializeErc6492Signature.js.map +1 -0
- package/_cjs/utils/signature/serializeSignature.js +1 -2
- package/_cjs/utils/signature/serializeSignature.js.map +1 -1
- package/_cjs/utils/signature/signatureToCompactSignature.js +1 -2
- package/_cjs/utils/signature/signatureToCompactSignature.js.map +1 -1
- package/_cjs/utils/signature/toPrefixedMessage.js +19 -0
- package/_cjs/utils/signature/toPrefixedMessage.js.map +1 -0
- package/_cjs/utils/signature/verifyMessage.js +1 -2
- package/_cjs/utils/signature/verifyMessage.js.map +1 -1
- package/_cjs/utils/signature/verifyTypedData.js +1 -2
- package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
- package/_cjs/utils/siwe/createSiweMessage.js +1 -2
- package/_cjs/utils/siwe/createSiweMessage.js.map +1 -1
- package/_cjs/utils/siwe/generateSiweNonce.js +1 -2
- package/_cjs/utils/siwe/generateSiweNonce.js.map +1 -1
- package/_cjs/utils/siwe/parseSiweMessage.js +1 -2
- package/_cjs/utils/siwe/parseSiweMessage.js.map +1 -1
- package/_cjs/utils/siwe/utils.js +1 -2
- package/_cjs/utils/siwe/utils.js.map +1 -1
- package/_cjs/utils/siwe/validateSiweMessage.js +1 -2
- package/_cjs/utils/siwe/validateSiweMessage.js.map +1 -1
- package/_cjs/utils/stateOverride.js +3 -4
- package/_cjs/utils/stateOverride.js.map +1 -1
- package/_cjs/utils/transaction/assertRequest.js +1 -2
- package/_cjs/utils/transaction/assertRequest.js.map +1 -1
- package/_cjs/utils/transaction/assertTransaction.js +4 -5
- package/_cjs/utils/transaction/assertTransaction.js.map +1 -1
- package/_cjs/utils/transaction/getSerializedTransactionType.js +1 -2
- package/_cjs/utils/transaction/getSerializedTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/getTransactionType.js +1 -2
- package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js +3 -4
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/utils/transaction/serializeAccessList.js +1 -2
- package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +2 -3
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_cjs/utils/typedData.js +4 -5
- package/_cjs/utils/typedData.js.map +1 -1
- package/_cjs/utils/uid.js +1 -2
- package/_cjs/utils/uid.js.map +1 -1
- package/_cjs/utils/unit/formatEther.js +1 -2
- package/_cjs/utils/unit/formatEther.js.map +1 -1
- package/_cjs/utils/unit/formatGwei.js +1 -2
- package/_cjs/utils/unit/formatGwei.js.map +1 -1
- package/_cjs/utils/unit/formatUnits.js +1 -2
- package/_cjs/utils/unit/formatUnits.js.map +1 -1
- package/_cjs/utils/unit/parseEther.js +1 -2
- package/_cjs/utils/unit/parseEther.js.map +1 -1
- package/_cjs/utils/unit/parseGwei.js +1 -2
- package/_cjs/utils/unit/parseGwei.js.map +1 -1
- package/_cjs/utils/unit/parseUnits.js +1 -2
- package/_cjs/utils/unit/parseUnits.js.map +1 -1
- package/_cjs/utils/wait.js +1 -2
- package/_cjs/utils/wait.js.map +1 -1
- package/_cjs/zksync/actions/deployContract.js +1 -2
- package/_cjs/zksync/actions/deployContract.js.map +1 -1
- package/_cjs/zksync/actions/estimateFee.js +1 -2
- package/_cjs/zksync/actions/estimateFee.js.map +1 -1
- package/_cjs/zksync/actions/estimateGasL1ToL2.js +1 -2
- package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -1
- package/_cjs/zksync/actions/getAllBalances.js +1 -2
- package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
- package/_cjs/zksync/actions/getBaseTokenL1Address.js +1 -2
- package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
- package/_cjs/zksync/actions/getBlockDetails.js +1 -2
- package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
- package/_cjs/zksync/actions/getBridgehubContractAddress.js +1 -2
- package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getDefaultBridgeAddresses.js +1 -2
- package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
- package/_cjs/zksync/actions/getL1Allowance.js +1 -2
- package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
- package/_cjs/zksync/actions/getL1Balance.js +1 -2
- package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchBlockRange.js +1 -2
- package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchDetails.js +1 -2
- package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
- package/_cjs/zksync/actions/getL1BatchNumber.js +1 -2
- package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
- package/_cjs/zksync/actions/getL1ChainId.js +1 -2
- package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
- package/_cjs/zksync/actions/getL1TokenBalance.js +1 -2
- package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_cjs/zksync/actions/getLogProof.js +1 -2
- package/_cjs/zksync/actions/getLogProof.js.map +1 -1
- package/_cjs/zksync/actions/getMainContractAddress.js +1 -2
- package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
- package/_cjs/zksync/actions/getRawBlockTransactions.js +1 -2
- package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
- package/_cjs/zksync/actions/getTestnetPaymasterAddress.js +1 -2
- package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
- package/_cjs/zksync/actions/getTransactionDetails.js +1 -2
- package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
- package/_cjs/zksync/actions/sendEip712Transaction.js +1 -2
- package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/sendTransaction.js +1 -2
- package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
- package/_cjs/zksync/actions/signEip712Transaction.js +1 -2
- package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/signTransaction.js +1 -2
- package/_cjs/zksync/actions/signTransaction.js.map +1 -1
- package/_cjs/zksync/decorators/eip712.js +1 -2
- package/_cjs/zksync/decorators/eip712.js.map +1 -1
- package/_cjs/zksync/decorators/publicL1.js +1 -2
- package/_cjs/zksync/decorators/publicL1.js.map +1 -1
- package/_cjs/zksync/decorators/publicL2.js +1 -2
- package/_cjs/zksync/decorators/publicL2.js.map +1 -1
- package/_cjs/zksync/serializers.js +2 -2
- package/_cjs/zksync/serializers.js.map +1 -1
- package/_cjs/zksync/utils/abi/encodeDeployData.js +1 -2
- package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
- package/_cjs/zksync/utils/assertEip712Request.js +1 -2
- package/_cjs/zksync/utils/assertEip712Request.js.map +1 -1
- package/_cjs/zksync/utils/assertEip712Transaction.js +1 -2
- package/_cjs/zksync/utils/assertEip712Transaction.js.map +1 -1
- package/_cjs/zksync/utils/camelCaseKeys.js +1 -2
- package/_cjs/zksync/utils/camelCaseKeys.js.map +1 -1
- package/_cjs/zksync/utils/hashBytecode.js +1 -2
- package/_cjs/zksync/utils/hashBytecode.js.map +1 -1
- package/_cjs/zksync/utils/isEip712Transaction.js +1 -2
- package/_cjs/zksync/utils/isEip712Transaction.js.map +1 -1
- package/_cjs/zksync/utils/isEth.js +1 -2
- package/_cjs/zksync/utils/isEth.js.map +1 -1
- package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js +1 -2
- package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js.map +1 -1
- package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js +1 -2
- package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js.map +1 -1
- package/_esm/actions/public/createEventFilter.js +7 -7
- package/_esm/actions/public/createEventFilter.js.map +1 -1
- package/_esm/actions/public/getLogs.js +7 -7
- package/_esm/actions/public/getLogs.js.map +1 -1
- package/_esm/actions/public/getTransactionCount.js +1 -1
- package/_esm/actions/public/verifyHash.js +27 -3
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js +3 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/verifyTypedData.js +3 -1
- package/_esm/actions/public/verifyTypedData.js.map +1 -1
- package/_esm/actions/public/watchEvent.js +7 -7
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +1 -0
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/chains/definitions/zetachain.js +6 -0
- package/_esm/chains/definitions/zetachain.js.map +1 -1
- package/_esm/chains/definitions/zetachainAthensTestnet.js +6 -0
- package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_esm/chains/definitions/zircuitTestnet.js +24 -0
- package/_esm/chains/definitions/zircuitTestnet.js.map +1 -0
- package/_esm/chains/index.js +1 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/index.js +10 -3
- package/_esm/experimental/index.js.map +1 -1
- package/_esm/experimental/solady/actions/signMessage.js +84 -0
- package/_esm/experimental/solady/actions/signMessage.js.map +1 -0
- package/_esm/experimental/solady/actions/signTypedData.js +160 -0
- package/_esm/experimental/solady/actions/signTypedData.js.map +1 -0
- package/_esm/experimental/solady/decorators/solady.js +27 -0
- package/_esm/experimental/solady/decorators/solady.js.map +1 -0
- package/_esm/experimental/solady/index.js +8 -0
- package/_esm/experimental/solady/index.js.map +1 -0
- package/_esm/experimental/solady/types.js +2 -0
- package/_esm/experimental/solady/types.js.map +1 -0
- package/_esm/experimental/solady/utils/hashMessage.js +32 -0
- package/_esm/experimental/solady/utils/hashMessage.js.map +1 -0
- package/_esm/experimental/solady/utils/hashTypedData.js +72 -0
- package/_esm/experimental/solady/utils/hashTypedData.js.map +1 -0
- package/_esm/experimental/solady/utils/wrapTypedDataSignature.js +82 -0
- package/_esm/experimental/solady/utils/wrapTypedDataSignature.js.map +1 -0
- package/_esm/index.js +4 -0
- package/_esm/index.js.map +1 -1
- package/_esm/utils/abi/encodeEventTopics.js +5 -5
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
- package/_esm/utils/getAction.js +11 -7
- package/_esm/utils/getAction.js.map +1 -1
- package/_esm/utils/index.js +3 -0
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/signature/hashMessage.js +2 -12
- package/_esm/utils/signature/hashMessage.js.map +1 -1
- package/_esm/utils/signature/hashTypedData.js +2 -2
- package/_esm/utils/signature/hashTypedData.js.map +1 -1
- package/_esm/{experimental/erc6492 → utils/signature}/isErc6492Signature.js +1 -1
- package/_esm/utils/signature/isErc6492Signature.js.map +1 -0
- package/_esm/{experimental/erc6492 → utils/signature}/parseErc6492Signature.js +1 -1
- package/_esm/utils/signature/parseErc6492Signature.js.map +1 -0
- package/_esm/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.js +2 -2
- package/_esm/utils/signature/serializeErc6492Signature.js.map +1 -0
- package/_esm/utils/signature/toPrefixedMessage.js +16 -0
- package/_esm/utils/signature/toPrefixedMessage.js.map +1 -0
- package/_types/actions/public/getTransactionCount.d.ts +1 -1
- package/_types/actions/public/verifyHash.d.ts +6 -2
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/verifyMessage.d.ts +1 -1
- package/_types/actions/public/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +1086 -1086
- package/_types/celo/formatters.d.ts +543 -543
- package/_types/celo/formatters.d.ts.map +1 -1
- package/_types/chains/definitions/ancient8.d.ts +260 -260
- package/_types/chains/definitions/ancient8Sepolia.d.ts +260 -260
- package/_types/chains/definitions/base.d.ts +260 -260
- package/_types/chains/definitions/baseGoerli.d.ts +260 -260
- package/_types/chains/definitions/baseSepolia.d.ts +260 -260
- package/_types/chains/definitions/celo.d.ts +1086 -1086
- package/_types/chains/definitions/celoAlfajores.d.ts +1086 -1086
- package/_types/chains/definitions/fraxtal.d.ts +260 -260
- package/_types/chains/definitions/fraxtalTestnet.d.ts +260 -260
- package/_types/chains/definitions/funkiSepolia.d.ts +260 -260
- package/_types/chains/definitions/lisk.d.ts +315 -315
- package/_types/chains/definitions/liskSepolia.d.ts +260 -260
- package/_types/chains/definitions/metalL2.d.ts +260 -260
- package/_types/chains/definitions/optimism.d.ts +260 -260
- package/_types/chains/definitions/optimismGoerli.d.ts +260 -260
- package/_types/chains/definitions/optimismSepolia.d.ts +260 -260
- package/_types/chains/definitions/pgn.d.ts +260 -260
- package/_types/chains/definitions/pgnTestnet.d.ts +260 -260
- package/_types/chains/definitions/playfiAlbireo.d.ts +315 -315
- package/_types/chains/definitions/rss3.d.ts +260 -260
- package/_types/chains/definitions/rss3Sepolia.d.ts +260 -260
- package/_types/chains/definitions/zetachain.d.ts +6 -8
- package/_types/chains/definitions/zetachain.d.ts.map +1 -1
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts +6 -8
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zircuitTestnet.d.ts +33 -0
- package/_types/chains/definitions/zircuitTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zkSync.d.ts +315 -315
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +315 -315
- package/_types/chains/definitions/zkSyncLocalNode.d.ts +315 -315
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +315 -315
- package/_types/chains/definitions/zkSyncTestnet.d.ts +315 -315
- package/_types/chains/definitions/zora.d.ts +260 -260
- package/_types/chains/definitions/zoraSepolia.d.ts +260 -260
- package/_types/chains/definitions/zoraTestnet.d.ts +260 -260
- package/_types/chains/index.d.ts +1 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/eip5792/decorators/eip5792.d.ts.map +1 -1
- package/_types/experimental/erc7715/decorators/erc7715.d.ts.map +1 -1
- package/_types/experimental/index.d.ts +28 -3
- package/_types/experimental/index.d.ts.map +1 -1
- package/_types/experimental/solady/actions/signMessage.d.ts +71 -0
- package/_types/experimental/solady/actions/signMessage.d.ts.map +1 -0
- package/_types/experimental/solady/actions/signTypedData.d.ts +125 -0
- package/_types/experimental/solady/actions/signTypedData.d.ts.map +1 -0
- package/_types/experimental/solady/decorators/solady.d.ts +183 -0
- package/_types/experimental/solady/decorators/solady.d.ts.map +1 -0
- package/_types/experimental/solady/index.d.ts +7 -0
- package/_types/experimental/solady/index.d.ts.map +1 -0
- package/_types/experimental/solady/types.d.ts +7 -0
- package/_types/experimental/solady/types.d.ts.map +1 -0
- package/_types/experimental/solady/utils/hashMessage.d.ts +30 -0
- package/_types/experimental/solady/utils/hashMessage.d.ts.map +1 -0
- package/_types/experimental/solady/utils/hashTypedData.d.ts +59 -0
- package/_types/experimental/solady/utils/hashTypedData.d.ts.map +1 -0
- package/_types/experimental/solady/utils/wrapTypedDataSignature.d.ts +50 -0
- package/_types/experimental/solady/utils/wrapTypedDataSignature.d.ts.map +1 -0
- package/_types/index.d.ts +5 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +260 -260
- package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
- package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
- package/_types/op-stack/formatters.d.ts +260 -260
- package/_types/op-stack/formatters.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionData.d.ts +1 -1
- package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/encodeEventTopics.d.ts +3 -1
- package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +2 -2
- package/_types/utils/formatters/formatter.d.ts.map +1 -1
- package/_types/utils/formatters/log.d.ts.map +1 -1
- package/_types/utils/formatters/proof.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +127 -126
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +67 -66
- package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
- package/_types/utils/getAction.d.ts +9 -1
- package/_types/utils/getAction.d.ts.map +1 -1
- package/_types/utils/index.d.ts +4 -1
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/rpc/compat.d.ts.map +1 -1
- package/_types/utils/rpc/ipc.d.ts +0 -2
- package/_types/utils/rpc/ipc.d.ts.map +1 -1
- package/_types/utils/signature/hashMessage.d.ts +1 -3
- package/_types/utils/signature/hashMessage.d.ts.map +1 -1
- package/_types/utils/signature/hashTypedData.d.ts +9 -0
- package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
- package/_types/{experimental/erc6492 → utils/signature}/isErc6492Signature.d.ts +1 -1
- package/_types/utils/signature/isErc6492Signature.d.ts.map +1 -0
- package/_types/{experimental/erc6492 → utils/signature}/parseErc6492Signature.d.ts +1 -1
- package/_types/utils/signature/parseErc6492Signature.d.ts.map +1 -0
- package/_types/utils/signature/serializeErc6492Signature.d.ts.map +1 -0
- package/_types/utils/signature/toPrefixedMessage.d.ts +7 -0
- package/_types/utils/signature/toPrefixedMessage.d.ts.map +1 -0
- package/_types/zksync/chainConfig.d.ts +315 -315
- package/_types/zksync/decorators/eip712.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
- package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
- package/_types/zksync/formatters.d.ts +315 -315
- package/_types/zksync/formatters.d.ts.map +1 -1
- package/actions/public/createEventFilter.ts +9 -9
- package/actions/public/getLogs.ts +9 -9
- package/actions/public/getTransactionCount.ts +1 -1
- package/actions/public/verifyHash.ts +31 -4
- package/actions/public/verifyMessage.ts +10 -1
- package/actions/public/verifyTypedData.ts +4 -0
- package/actions/public/watchEvent.ts +9 -9
- package/actions/wallet/sendTransaction.ts +1 -0
- package/chains/definitions/zetachain.ts +6 -0
- package/chains/definitions/zetachainAthensTestnet.ts +6 -0
- package/chains/definitions/zircuitTestnet.ts +24 -0
- package/chains/index.ts +1 -0
- package/errors/version.ts +1 -1
- package/experimental/index.ts +21 -3
- package/experimental/solady/actions/signMessage.ts +151 -0
- package/experimental/solady/actions/signTypedData.ts +251 -0
- package/experimental/solady/decorators/solady.ts +232 -0
- package/experimental/solady/index.ts +36 -0
- package/experimental/solady/types.ts +7 -0
- package/experimental/solady/utils/hashMessage.ts +60 -0
- package/experimental/solady/utils/hashTypedData.ts +112 -0
- package/experimental/solady/utils/wrapTypedDataSignature.ts +108 -0
- package/index.ts +23 -0
- package/package.json +10 -2
- package/utils/abi/encodeEventTopics.ts +13 -11
- package/utils/getAction.ts +31 -15
- package/utils/index.ts +19 -0
- package/utils/signature/hashMessage.ts +3 -23
- package/utils/signature/hashTypedData.ts +2 -2
- package/{experimental/erc6492 → utils/signature}/isErc6492Signature.ts +1 -1
- package/{experimental/erc6492 → utils/signature}/parseErc6492Signature.ts +1 -1
- package/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.ts +2 -2
- package/utils/signature/toPrefixedMessage.ts +27 -0
- package/_cjs/experimental/erc6492/isErc6492Signature.js.map +0 -1
- package/_cjs/experimental/erc6492/parseErc6492Signature.js.map +0 -1
- package/_cjs/experimental/erc6492/serializeErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/isErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/parseErc6492Signature.js.map +0 -1
- package/_esm/experimental/erc6492/serializeErc6492Signature.js.map +0 -1
- package/_types/experimental/erc6492/isErc6492Signature.d.ts.map +0 -1
- package/_types/experimental/erc6492/parseErc6492Signature.d.ts.map +0 -1
- package/_types/experimental/erc6492/serializeErc6492Signature.d.ts.map +0 -1
- /package/_types/{experimental/erc6492 → utils/signature}/serializeErc6492Signature.d.ts +0 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,41 @@
|
|
1
1
|
# viem
|
2
2
|
|
3
|
+
## 2.16.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [`fa494359`](https://github.com/wevm/viem/commit/fa4943594b9f95a1562c44a48f6eff87dc56a560) Thanks [@jxom](https://github.com/jxom)! - Added `chainId` as a parameter to `eth_sendTransaction`.
|
8
|
+
|
9
|
+
- [#2429](https://github.com/wevm/viem/pull/2429) [`3781bbb8`](https://github.com/wevm/viem/commit/3781bbb8b3ee8de065a581c97410389b84f7e9c8) Thanks [@jxom](https://github.com/jxom)! - Fixed an issue where `getAction` would ignore nullish return values from a synchronous Client Action.
|
10
|
+
|
11
|
+
- [`ed5c70e0`](https://github.com/wevm/viem/commit/ed5c70e0c5f21e4e2f7eb0fd17afc66888d787d7) Thanks [@jxom](https://github.com/jxom)! - **Experimental:** Added Solady utilities:
|
12
|
+
|
13
|
+
- `hashMessage`
|
14
|
+
- `hashTypedData`
|
15
|
+
- `wrapTypedDataSignature`
|
16
|
+
|
17
|
+
## 2.16.0
|
18
|
+
|
19
|
+
### Minor Changes
|
20
|
+
|
21
|
+
- [#2424](https://github.com/wevm/viem/pull/2424) [`4b929790`](https://github.com/wevm/viem/commit/4b9297901e925e3e469822d8fe722bbcefb376ed) Thanks [@jxom](https://github.com/jxom)! - Stabilized ERC-6492 utilities:
|
22
|
+
|
23
|
+
- `isErc6492Signature`
|
24
|
+
- `parseErc6492Signature`
|
25
|
+
- `serializeErc6492Signature`
|
26
|
+
|
27
|
+
These utilities are no longer experimental, and can be imported from the `viem` entrypoint.
|
28
|
+
|
29
|
+
### Patch Changes
|
30
|
+
|
31
|
+
- [`a2b2c523`](https://github.com/wevm/viem/commit/a2b2c523e49baec7d1e425e2d64f3f9cdbaaf83b) Thanks [@tmm](https://github.com/tmm)! - Bumped ABIType
|
32
|
+
|
33
|
+
- [#2427](https://github.com/wevm/viem/pull/2427) [`38dc6a03`](https://github.com/wevm/viem/commit/38dc6a037c6d6358b3bb620db4406b9bd39620be) Thanks [@Phillip-Kemper](https://github.com/Phillip-Kemper)! - Added Zircuit Testnet
|
34
|
+
|
35
|
+
- [#2413](https://github.com/wevm/viem/pull/2413) [`99ed745b`](https://github.com/wevm/viem/commit/99ed745ba28d912cdad86d6a1718968c8da4c7c0) Thanks [@jxom](https://github.com/jxom)! - **Experimental:** Added [Solady flavoured ERC-1271](https://github.com/Vectorized/solady/blob/678c9163550810b08f0ffb09624c9f7532392303/src/accounts/ERC1271.sol) `signMessage` & `signTypedData` for Smart Accounts that implement (or conform to) [Solady's `ERC1271.sol`](https://github.com/Vectorized/solady/blob/678c9163550810b08f0ffb09624c9f7532392303/src/accounts/ERC1271.sol#L110-L180).
|
36
|
+
|
37
|
+
- [#2426](https://github.com/wevm/viem/pull/2426) [`01086ad9`](https://github.com/wevm/viem/commit/01086ad924f2d15f076f1a27434df1d88e9d3323) Thanks [@EvanYan1024](https://github.com/EvanYan1024)! - Added multicall3 to zetachain mainnet and testnet
|
38
|
+
|
3
39
|
## 2.15.1
|
4
40
|
|
5
41
|
### Patch Changes
|
package/README.md
CHANGED
@@ -126,7 +126,7 @@ Check out the following places for more viem-related content:
|
|
126
126
|
<img alt="WalletConnect logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/walletconnect-light.svg" width="auto" height="50">
|
127
127
|
</picture>
|
128
128
|
</a>
|
129
|
-
<a href="https://zksync.io
|
129
|
+
<a href="https://zksync.io">
|
130
130
|
<picture>
|
131
131
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zksync-dark.svg">
|
132
132
|
<img alt="zksync logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zksync-light.svg" width="auto" height="50">
|
@@ -162,31 +162,25 @@ Check out the following places for more viem-related content:
|
|
162
162
|
<img alt="Privy logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/privy-light.svg" width="auto" height="50">
|
163
163
|
</picture>
|
164
164
|
</a>
|
165
|
-
<a href="https://
|
166
|
-
<picture>
|
167
|
-
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-dark.svg">
|
168
|
-
<img alt="Spruce logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/spruce-light.svg" width="auto" height="50">
|
169
|
-
</picture>
|
170
|
-
</a>
|
171
|
-
<a href="https://pancakeswap.finance/">
|
165
|
+
<a href="https://pancakeswap.finance">
|
172
166
|
<picture>
|
173
167
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-dark.svg">
|
174
168
|
<img alt="pancake logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pancake-light.svg" width="auto" height="50">
|
175
169
|
</picture>
|
176
170
|
</a>
|
177
|
-
<a href="https://celo.org
|
171
|
+
<a href="https://celo.org">
|
178
172
|
<picture>
|
179
173
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-dark.svg">
|
180
174
|
<img alt="celo logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/celo-light.svg" width="auto" height="50">
|
181
175
|
</picture>
|
182
176
|
</a>
|
183
|
-
<a href="https://pimlico.io
|
177
|
+
<a href="https://pimlico.io">
|
184
178
|
<picture>
|
185
179
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-dark.svg">
|
186
180
|
<img alt="pimlico logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/pimlico-light.svg" width="auto" height="50">
|
187
181
|
</picture>
|
188
182
|
</a>
|
189
|
-
<a href="https://zora.co
|
183
|
+
<a href="https://zora.co">
|
190
184
|
<picture>
|
191
185
|
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-dark.svg">
|
192
186
|
<img alt="zora logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/zora-light.svg" width="auto" height="50">
|
@@ -210,6 +204,18 @@ Check out the following places for more viem-related content:
|
|
210
204
|
<img alt="syndicate logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/syndicate-light.svg" width="auto" height="50">
|
211
205
|
</picture>
|
212
206
|
</a>
|
207
|
+
<a href="https://reservoir.tools">
|
208
|
+
<picture>
|
209
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/reservoir-dark.svg">
|
210
|
+
<img alt="reservoir logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/reservoir-light.svg" width="auto" height="50">
|
211
|
+
</picture>
|
212
|
+
</a>
|
213
|
+
<a href="https://brave.com">
|
214
|
+
<picture>
|
215
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/brave-dark.svg">
|
216
|
+
<img alt="brave logo" src="https://raw.githubusercontent.com/wevm/.github/main/content/sponsors/brave-light.svg" width="auto" height="50">
|
217
|
+
</picture>
|
218
|
+
</a>
|
213
219
|
|
214
220
|
## Contributing
|
215
221
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generateMnemonic =
|
3
|
+
exports.generateMnemonic = generateMnemonic;
|
4
4
|
const bip39_1 = require("@scure/bip39");
|
5
5
|
function generateMnemonic(wordlist, strength) {
|
6
6
|
return (0, bip39_1.generateMnemonic)(wordlist, strength);
|
7
7
|
}
|
8
|
-
exports.generateMnemonic = generateMnemonic;
|
9
8
|
//# sourceMappingURL=generateMnemonic.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generateMnemonic.js","sourceRoot":"","sources":["../../accounts/generateMnemonic.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"generateMnemonic.js","sourceRoot":"","sources":["../../accounts/generateMnemonic.ts"],"names":[],"mappings":";;AAaA,4CAKC;AAlBD,wCAAoE;AAapE,SAAgB,gBAAgB,CAC9B,QAAkB,EAClB,QAA6B;IAE7B,OAAO,IAAA,wBAAiB,EAAC,QAAQ,EAAE,QAAQ,CAAC,CAAA;AAC9C,CAAC"}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.generatePrivateKey =
|
3
|
+
exports.generatePrivateKey = generatePrivateKey;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const toHex_js_1 = require("../utils/encoding/toHex.js");
|
6
6
|
function generatePrivateKey() {
|
7
7
|
return (0, toHex_js_1.toHex)(secp256k1_1.secp256k1.utils.randomPrivateKey());
|
8
8
|
}
|
9
|
-
exports.generatePrivateKey = generatePrivateKey;
|
10
9
|
//# sourceMappingURL=generatePrivateKey.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"generatePrivateKey.js","sourceRoot":"","sources":["../../accounts/generatePrivateKey.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"generatePrivateKey.js","sourceRoot":"","sources":["../../accounts/generatePrivateKey.ts"],"names":[],"mappings":";;AAaA,gDAEC;AAfD,uDAAmD;AAInD,yDAAuE;AASvE,SAAgB,kBAAkB;IAChC,OAAO,IAAA,gBAAK,EAAC,qBAAS,CAAC,KAAK,CAAC,gBAAgB,EAAE,CAAC,CAAA;AAClD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.hdKeyToAccount =
|
3
|
+
exports.hdKeyToAccount = hdKeyToAccount;
|
4
4
|
const toHex_js_1 = require("../utils/encoding/toHex.js");
|
5
5
|
const privateKeyToAccount_js_1 = require("./privateKeyToAccount.js");
|
6
6
|
function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeIndex = 0, path, ...options } = {}) {
|
@@ -12,5 +12,4 @@ function hdKeyToAccount(hdKey_, { accountIndex = 0, addressIndex = 0, changeInde
|
|
12
12
|
source: 'hd',
|
13
13
|
};
|
14
14
|
}
|
15
|
-
exports.hdKeyToAccount = hdKeyToAccount;
|
16
15
|
//# sourceMappingURL=hdKeyToAccount.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hdKeyToAccount.js","sourceRoot":"","sources":["../../accounts/hdKeyToAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"hdKeyToAccount.js","sourceRoot":"","sources":["../../accounts/hdKeyToAccount.ts"],"names":[],"mappings":";;AAuBA,wCAmBC;AA1CD,yDAAuE;AAIvE,qEAIiC;AAejC,SAAgB,cAAc,CAC5B,MAAa,EACb,EACE,YAAY,GAAG,CAAC,EAChB,YAAY,GAAG,CAAC,EAChB,WAAW,GAAG,CAAC,EACf,IAAI,EACJ,GAAG,OAAO,KACe,EAAE;IAE7B,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CACzB,IAAI,IAAI,aAAa,YAAY,KAAK,WAAW,IAAI,YAAY,EAAE,CACpE,CAAA;IACD,MAAM,OAAO,GAAG,IAAA,4CAAmB,EAAC,IAAA,gBAAK,EAAC,KAAK,CAAC,UAAW,CAAC,EAAE,OAAO,CAAC,CAAA;IACtE,OAAO;QACL,GAAG,OAAO;QACV,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK;QACrB,MAAM,EAAE,IAAI;KACb,CAAA;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.mnemonicToAccount =
|
3
|
+
exports.mnemonicToAccount = mnemonicToAccount;
|
4
4
|
const bip32_1 = require("@scure/bip32");
|
5
5
|
const bip39_1 = require("@scure/bip39");
|
6
6
|
const hdKeyToAccount_js_1 = require("./hdKeyToAccount.js");
|
@@ -8,5 +8,4 @@ function mnemonicToAccount(mnemonic, opts = {}) {
|
|
8
8
|
const seed = (0, bip39_1.mnemonicToSeedSync)(mnemonic);
|
9
9
|
return (0, hdKeyToAccount_js_1.hdKeyToAccount)(bip32_1.HDKey.fromMasterSeed(seed), opts);
|
10
10
|
}
|
11
|
-
exports.mnemonicToAccount = mnemonicToAccount;
|
12
11
|
//# sourceMappingURL=mnemonicToAccount.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"mnemonicToAccount.js","sourceRoot":"","sources":["../../accounts/mnemonicToAccount.ts"],"names":[],"mappings":";;AAoBA,8CAMC;AA1BD,wCAAoC;AACpC,wCAAiD;AAGjD,2DAI4B;AAY5B,SAAgB,iBAAiB,CAC/B,QAAgB,EAChB,OAAkB,EAAE;IAEpB,MAAM,IAAI,GAAG,IAAA,0BAAkB,EAAC,QAAQ,CAAC,CAAA;IACzC,OAAO,IAAA,kCAAc,EAAC,aAAK,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAA;AACzD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.privateKeyToAccount =
|
3
|
+
exports.privateKeyToAccount = privateKeyToAccount;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const toHex_js_1 = require("../utils/encoding/toHex.js");
|
6
6
|
const toAccount_js_1 = require("./toAccount.js");
|
@@ -31,5 +31,4 @@ function privateKeyToAccount(privateKey, options = {}) {
|
|
31
31
|
source: 'privateKey',
|
32
32
|
};
|
33
33
|
}
|
34
|
-
exports.privateKeyToAccount = privateKeyToAccount;
|
35
34
|
//# sourceMappingURL=privateKeyToAccount.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateKeyToAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"privateKeyToAccount.js","sourceRoot":"","sources":["../../accounts/privateKeyToAccount.ts"],"names":[],"mappings":";;AAyCA,kDA2BC;AApED,uDAAmD;AAGnD,yDAAuE;AAIvE,iDAAmE;AAEnE,yEAGsC;AACtC,2DAA+E;AAC/E,mEAGmC;AACnC,+DAGiC;AAoBjC,SAAgB,mBAAmB,CACjC,UAAe,EACf,UAAsC,EAAE;IAExC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAA;IAChC,MAAM,SAAS,GAAG,IAAA,gBAAK,EAAC,qBAAS,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAA;IAC3E,MAAM,OAAO,GAAG,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;IAE7C,MAAM,OAAO,GAAG,IAAA,wBAAS,EAAC;QACxB,OAAO;QACP,YAAY;QACZ,KAAK,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE;YAC3B,OAAO,IAAA,4BAAW,EAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAA;QAC7C,CAAC;QACD,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE;YACpD,OAAO,IAAA,oCAAe,EAAC,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,CAAA;QACjE,CAAC;QACD,KAAK,CAAC,aAAa,CAAC,SAAS;YAC3B,OAAO,IAAA,gCAAa,EAAC,EAAE,GAAG,SAAS,EAAE,UAAU,EAAE,CAAC,CAAA;QACpD,CAAC;KACF,CAAC,CAAA;IAEF,OAAO;QACL,GAAG,OAAO;QACV,SAAS;QACT,MAAM,EAAE,YAAY;KACA,CAAA;AACxB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.toAccount =
|
3
|
+
exports.toAccount = toAccount;
|
4
4
|
const address_js_1 = require("../errors/address.js");
|
5
5
|
const isAddress_js_1 = require("../utils/address/isAddress.js");
|
6
6
|
function toAccount(source) {
|
@@ -24,5 +24,4 @@ function toAccount(source) {
|
|
24
24
|
type: 'local',
|
25
25
|
};
|
26
26
|
}
|
27
|
-
exports.toAccount = toAccount;
|
28
27
|
//# sourceMappingURL=toAccount.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"toAccount.js","sourceRoot":"","sources":["../../accounts/toAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"toAccount.js","sourceRoot":"","sources":["../../accounts/toAccount.ts"],"names":[],"mappings":";;AAiCA,8BAuBC;AAtDD,qDAG6B;AAC7B,gEAGsC;AAwBtC,SAAgB,SAAS,CACvB,MAAsB;IAEtB,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,IAAI,CAAC,IAAA,wBAAS,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;YACvC,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAAA;QACpD,OAAO;YACL,OAAO,EAAE,MAAM;YACf,IAAI,EAAE,UAAU;SACuB,CAAA;IAC3C,CAAC;IAED,IAAI,CAAC,IAAA,wBAAS,EAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;QAC/C,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAA;IAC5D,OAAO;QACL,OAAO,EAAE,MAAM,CAAC,OAAO;QACvB,YAAY,EAAE,MAAM,CAAC,YAAY;QACjC,WAAW,EAAE,MAAM,CAAC,WAAW;QAC/B,eAAe,EAAE,MAAM,CAAC,eAAe;QACvC,aAAa,EAAE,MAAM,CAAC,aAAa;QACnC,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,OAAO;KAC0B,CAAA;AAC3C,CAAC"}
|
@@ -1,10 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.parseAccount =
|
3
|
+
exports.parseAccount = parseAccount;
|
4
4
|
function parseAccount(account) {
|
5
5
|
if (typeof account === 'string')
|
6
6
|
return { address: account, type: 'json-rpc' };
|
7
7
|
return account;
|
8
8
|
}
|
9
|
-
exports.parseAccount = parseAccount;
|
10
9
|
//# sourceMappingURL=parseAccount.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"parseAccount.js","sourceRoot":"","sources":["../../../accounts/utils/parseAccount.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"parseAccount.js","sourceRoot":"","sources":["../../../accounts/utils/parseAccount.ts"],"names":[],"mappings":";;AAOA,oCAGC;AAHD,SAAgB,YAAY,CAAC,OAA0B;IACrD,IAAI,OAAO,OAAO,KAAK,QAAQ;QAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;IAC9E,OAAO,OAAO,CAAA;AAChB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.privateKeyToAddress =
|
3
|
+
exports.privateKeyToAddress = privateKeyToAddress;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
6
|
const publicKeyToAddress_js_1 = require("./publicKeyToAddress.js");
|
@@ -8,5 +8,4 @@ function privateKeyToAddress(privateKey) {
|
|
8
8
|
const publicKey = (0, toHex_js_1.bytesToHex)(secp256k1_1.secp256k1.getPublicKey(privateKey.slice(2), false));
|
9
9
|
return (0, publicKeyToAddress_js_1.publicKeyToAddress)(publicKey);
|
10
10
|
}
|
11
|
-
exports.privateKeyToAddress = privateKeyToAddress;
|
12
11
|
//# sourceMappingURL=privateKeyToAddress.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateKeyToAddress.js","sourceRoot":"","sources":["../../../accounts/utils/privateKeyToAddress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"privateKeyToAddress.js","sourceRoot":"","sources":["../../../accounts/utils/privateKeyToAddress.ts"],"names":[],"mappings":";;AA0BA,kDAKC;AA/BD,uDAAmD;AAKnD,4DAGsC;AACtC,mEAGgC;AAchC,SAAgB,mBAAmB,CAAC,UAAe;IACjD,MAAM,SAAS,GAAG,IAAA,qBAAU,EAC1B,qBAAS,CAAC,YAAY,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CACnD,CAAA;IACD,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC"}
|
@@ -1,11 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.publicKeyToAddress =
|
3
|
+
exports.publicKeyToAddress = publicKeyToAddress;
|
4
4
|
const getAddress_js_1 = require("../../utils/address/getAddress.js");
|
5
5
|
const keccak256_js_1 = require("../../utils/hash/keccak256.js");
|
6
6
|
function publicKeyToAddress(publicKey) {
|
7
7
|
const address = (0, keccak256_js_1.keccak256)(`0x${publicKey.substring(4)}`).substring(26);
|
8
8
|
return (0, getAddress_js_1.checksumAddress)(`0x${address}`);
|
9
9
|
}
|
10
|
-
exports.publicKeyToAddress = publicKeyToAddress;
|
11
10
|
//# sourceMappingURL=publicKeyToAddress.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"publicKeyToAddress.js","sourceRoot":"","sources":["../../../accounts/utils/publicKeyToAddress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"publicKeyToAddress.js","sourceRoot":"","sources":["../../../accounts/utils/publicKeyToAddress.ts"],"names":[],"mappings":";;AAyBA,gDAGC;AAxBD,qEAG0C;AAC1C,gEAGsC;AActC,SAAgB,kBAAkB,CAAC,SAAc;IAC/C,MAAM,OAAO,GAAG,IAAA,wBAAS,EAAC,KAAK,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;IACtE,OAAO,IAAA,+BAAe,EAAC,KAAK,OAAO,EAAE,CAAY,CAAA;AACnD,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.sign =
|
3
|
+
exports.sign = sign;
|
4
4
|
const secp256k1_1 = require("@noble/curves/secp256k1");
|
5
5
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
6
|
async function sign({ hash, privateKey, }) {
|
@@ -12,5 +12,4 @@ async function sign({ hash, privateKey, }) {
|
|
12
12
|
yParity: recovery,
|
13
13
|
};
|
14
14
|
}
|
15
|
-
exports.sign = sign;
|
16
15
|
//# sourceMappingURL=sign.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sign.js","sourceRoot":"","sources":["../../../accounts/utils/sign.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"sign.js","sourceRoot":"","sources":["../../../accounts/utils/sign.ts"],"names":[],"mappings":";;AAyBA,oBAWC;AAlCD,uDAAmD;AAInD,4DAA0E;AAmBnE,KAAK,UAAU,IAAI,CAAC,EACzB,IAAI,EACJ,UAAU,GACK;IACf,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,qBAAS,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC7E,OAAO;QACL,CAAC,EAAE,IAAA,gBAAK,EAAC,CAAC,CAAC;QACX,CAAC,EAAE,IAAA,gBAAK,EAAC,CAAC,CAAC;QACX,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;QACvB,OAAO,EAAE,QAAQ;KAClB,CAAA;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.signMessage =
|
3
|
+
exports.signMessage = signMessage;
|
4
4
|
const hashMessage_js_1 = require("../../utils/signature/hashMessage.js");
|
5
5
|
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
6
6
|
const sign_js_1 = require("./sign.js");
|
@@ -8,5 +8,4 @@ async function signMessage({ message, privateKey, }) {
|
|
8
8
|
const signature = await (0, sign_js_1.sign)({ hash: (0, hashMessage_js_1.hashMessage)(message), privateKey });
|
9
9
|
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
10
10
|
}
|
11
|
-
exports.signMessage = signMessage;
|
12
11
|
//# sourceMappingURL=signMessage.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"signMessage.js","sourceRoot":"","sources":["../../../accounts/utils/signMessage.ts"],"names":[],"mappings":";;AAkCA,kCAMC;AAtCD,yEAG6C;AAC7C,uFAGoD;AAEpD,uCAAoD;AAuB7C,KAAK,UAAU,WAAW,CAAC,EAChC,OAAO,EACP,UAAU,GACY;IACtB,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC,EAAE,IAAI,EAAE,IAAA,4BAAW,EAAC,OAAO,CAAC,EAAE,UAAU,EAAE,CAAC,CAAA;IACxE,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.signTransaction =
|
3
|
+
exports.signTransaction = signTransaction;
|
4
4
|
const keccak256_js_1 = require("../../utils/hash/keccak256.js");
|
5
5
|
const serializeTransaction_js_1 = require("../../utils/transaction/serializeTransaction.js");
|
6
6
|
const sign_js_1 = require("./sign.js");
|
@@ -20,5 +20,4 @@ async function signTransaction(parameters) {
|
|
20
20
|
});
|
21
21
|
return serializer(transaction, signature);
|
22
22
|
}
|
23
|
-
exports.signTransaction = signTransaction;
|
24
23
|
//# sourceMappingURL=signTransaction.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signTransaction.js","sourceRoot":"","sources":["../../../accounts/utils/signTransaction.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"signTransaction.js","sourceRoot":"","sources":["../../../accounts/utils/signTransaction.ts"],"names":[],"mappings":";;AAuCA,0CAgCC;AAjED,gEAGsC;AAEtC,6FAGwD;AAExD,uCAAoD;AAuB7C,KAAK,UAAU,eAAe,CAKnC,UAA8D;IAE9D,MAAM,EACJ,UAAU,EACV,WAAW,EACX,UAAU,GAAG,8CAAoB,GAClC,GAAG,UAAU,CAAA;IAEd,MAAM,mBAAmB,GAAG,CAAC,GAAG,EAAE;QAGhC,IAAI,WAAW,CAAC,IAAI,KAAK,SAAS;YAChC,OAAO;gBACL,GAAG,WAAW;gBACd,QAAQ,EAAE,KAAK;aAChB,CAAA;QACH,OAAO,WAAW,CAAA;IACpB,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC;QAC3B,IAAI,EAAE,IAAA,wBAAS,EAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;QAChD,UAAU;KACX,CAAC,CAAA;IACF,OAAO,UAAU,CAAC,WAAW,EAAE,SAAS,CAGvC,CAAA;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.signTypedData =
|
3
|
+
exports.signTypedData = signTypedData;
|
4
4
|
const hashTypedData_js_1 = require("../../utils/signature/hashTypedData.js");
|
5
5
|
const serializeSignature_js_1 = require("../../utils/signature/serializeSignature.js");
|
6
6
|
const sign_js_1 = require("./sign.js");
|
@@ -12,5 +12,4 @@ async function signTypedData(parameters) {
|
|
12
12
|
});
|
13
13
|
return (0, serializeSignature_js_1.serializeSignature)(signature);
|
14
14
|
}
|
15
|
-
exports.signTypedData = signTypedData;
|
16
15
|
//# sourceMappingURL=signTypedData.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../accounts/utils/signTypedData.ts"],"names":[],"mappings":";;AAsCA,sCAaC;AA/CD,6EAG+C;AAC/C,uFAGoD;AAGpD,uCAAoD;AAwB7C,KAAK,UAAU,aAAa,CAIjC,UAA2D;IAE3D,MAAM,EAAE,UAAU,EAAE,GAAG,SAAS,EAAE,GAChC,UAAgD,CAAA;IAClD,MAAM,SAAS,GAAG,MAAM,IAAA,cAAI,EAAC;QAC3B,IAAI,EAAE,IAAA,gCAAa,EAAC,SAAS,CAAC;QAC9B,UAAU;KACX,CAAC,CAAA;IACF,OAAO,IAAA,0CAAkB,EAAC,SAAS,CAAC,CAAA;AACtC,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getEnsAddress =
|
3
|
+
exports.getEnsAddress = getEnsAddress;
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
5
|
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
6
6
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
@@ -68,5 +68,4 @@ async function getEnsAddress(client, { blockNumber, blockTag, coinType, name, ga
|
|
68
68
|
throw err;
|
69
69
|
}
|
70
70
|
}
|
71
|
-
exports.getEnsAddress = getEnsAddress;
|
72
71
|
//# sourceMappingURL=getEnsAddress.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsAddress.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAddress.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getEnsAddress.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAddress.ts"],"names":[],"mappings":";;AA4FA,sCAsEC;AA9JD,qD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vatarRecord_js_1 = require("../../utils/ens/avatar/parseAvatarRecord.js");
|
5
5
|
const getAction_js_1 = require("../../utils/getAction.js");
|
6
6
|
const getEnsText_js_1 = require("./getEnsText.js");
|
@@ -26,5 +26,4 @@ async function getEnsAvatar(client, { blockNumber, blockTag, assetGatewayUrls, n
|
|
26
26
|
return null;
|
27
27
|
}
|
28
28
|
}
|
29
|
-
exports.getEnsAvatar = getEnsAvatar;
|
30
29
|
//# sourceMappingURL=getEnsAvatar.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":";;AA4DA,oCAkCC;AAxFD,sFAGoD;AACpD,2DAAoD;AAEpD,mDAIwB;AA4CjB,KAAK,UAAU,YAAY,CAChC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,IAAI,EACJ,WAAW,EACX,MAAM,EACN,wBAAwB,GACD;IAEzB,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAC5B,MAAM,EACN,0BAAU,EACV,YAAY,CACb,CAAC;QACA,WAAW;QACX,QAAQ;QACR,GAAG,EAAE,QAAQ;QACb,IAAI;QACJ,wBAAwB;QACxB,WAAW;QACX,MAAM;KACP,CAAC,CAAA;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACxB,IAAI,CAAC;QACH,OAAO,MAAM,IAAA,wCAAiB,EAAC,MAAM,EAAE;YACrC,MAAM;YACN,WAAW,EAAE,gBAAgB;SAC9B,CAAC,CAAA;IACJ,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getEnsName =
|
3
|
+
exports.getEnsName = getEnsName;
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
5
|
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
6
6
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
@@ -48,5 +48,4 @@ async function getEnsName(client, { address, blockNumber, blockTag, gatewayUrls,
|
|
48
48
|
throw err;
|
49
49
|
}
|
50
50
|
}
|
51
|
-
exports.getEnsName = getEnsName;
|
52
51
|
//# sourceMappingURL=getEnsName.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsName.js","sourceRoot":"","sources":["../../../actions/ens/getEnsName.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getEnsName.js","sourceRoot":"","sources":["../../../actions/ens/getEnsName.ts"],"names":[],"mappings":";;AAyEA,gCAoDC;AAzHD,qDAAqE;AAIrE,6FAGqD;AACrD,4DAA0E;AAC1E,yDAAwE;AACxE,uEAGyC;AACzC,2DAAoD;AACpD,+DAIkC;AAkD3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,OAAO,EACP,WAAW,EACX,QAAQ,EACR,WAAW,EACX,MAAM,EACN,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,WAAW,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,IAAI,CAAC;QACH,MAAM,sBAAsB,GAAG;YAC7B,OAAO,EAAE,wBAAwB;YACjC,GAAG,EAAE,qCAA2B;YAChC,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,WAAW,CAAC,CAAC,CAAC;YACzC,WAAW;YACX,QAAQ;SACA,CAAA;QAEV,MAAM,kBAAkB,GAAG,IAAA,wBAAS,EAAC,MAAM,EAAE,8BAAY,EAAE,cAAc,CAAC,CAAA;QAE1E,MAAM,CAAC,IAAI,EAAE,eAAe,CAAC,GAAG,WAAW;YACzC,CAAC,CAAC,MAAM,kBAAkB,CAAC;gBACvB,GAAG,sBAAsB;gBACzB,IAAI,EAAE,CAAC,GAAG,sBAAsB,CAAC,IAAI,EAAE,WAAW,CAAC;aACpD,CAAC;YACJ,CAAC,CAAC,MAAM,kBAAkB,CAAC,sBAAsB,CAAC,CAAA;QAEpD,IAAI,OAAO,CAAC,WAAW,EAAE,KAAK,eAAe,CAAC,WAAW,EAAE;YAAE,OAAO,IAAI,CAAA;QACxE,OAAO,IAAI,CAAA;IACb,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,MAAM;YAAE,MAAM,GAAG,CAAA;QACrB,IAAI,IAAA,wCAA4B,EAAC,GAAG,EAAE,SAAS,CAAC;YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getEnsResolver =
|
3
|
+
exports.getEnsResolver = getEnsResolver;
|
4
4
|
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
5
5
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
6
|
const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
|
@@ -35,5 +35,4 @@ async function getEnsResolver(client, { blockNumber, blockTag, name, universalRe
|
|
35
35
|
});
|
36
36
|
return resolverAddress;
|
37
37
|
}
|
38
|
-
exports.getEnsResolver = getEnsResolver;
|
39
38
|
//# sourceMappingURL=getEnsResolver.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsResolver.js","sourceRoot":"","sources":["../../../actions/ens/getEnsResolver.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getEnsResolver.js","sourceRoot":"","sources":["../../../actions/ens/getEnsResolver.ts"],"names":[],"mappings":";;AAmEA,wCA4CC;AAxGD,6FAGqD;AACrD,4DAA0E;AAC1E,uEAGyC;AACzC,2DAAoD;AACpD,+DAGkC;AA+C3B,KAAK,UAAU,cAAc,CAClC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,wBAAwB,EAAE,yBAAyB,GAC1B;IAE3B,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,IAAA,wBAAS,EACvC,MAAM,EACN,8BAAY,EACZ,cAAc,CACf,CAAC;QACA,OAAO,EAAE,wBAAwB;QACjC,GAAG,EAAE;YACH;gBACE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBAC3B,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;gBACnD,eAAe,EAAE,MAAM;gBACvB,IAAI,EAAE,UAAU;aACjB;SACF;QACD,YAAY,EAAE,cAAc;QAC5B,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,IAAI,CAAC,CAAC,CAAC;QAClC,WAAW;QACX,QAAQ;KACT,CAAC,CAAA;IACF,OAAO,eAAe,CAAA;AACxB,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.getEnsText =
|
3
|
+
exports.getEnsText = getEnsText;
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
5
|
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
6
6
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
@@ -62,5 +62,4 @@ async function getEnsText(client, { blockNumber, blockTag, name, key, gatewayUrl
|
|
62
62
|
throw err;
|
63
63
|
}
|
64
64
|
}
|
65
|
-
exports.getEnsText = getEnsText;
|
66
65
|
//# sourceMappingURL=getEnsText.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsText.js","sourceRoot":"","sources":["../../../actions/ens/getEnsText.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"getEnsText.js","sourceRoot":"","sources":["../../../actions/ens/getEnsText.ts"],"names":[],"mappings":";;AA2FA,gCAkEC;AAzJD,qDAGgC;AAGhC,qFAGgD;AAChD,iFAG8C;AAC9C,6FAGqD;AACrD,4DAA0E;AAC1E,yDAAwE;AACxE,6DAA8E;AAC9E,uEAGyC;AACzC,2DAAoD;AACpD,+DAIkC;AAyD3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,WAAW,EACX,MAAM,EACN,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAC9B,IAAI,CAAC,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CAAC,CAAC,MAAM,CAAA;IACtC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,IAAI,MAAM;YAAE,MAAM,GAAG,CAAA;QACrB,IAAI,IAAA,wCAA4B,EAAC,GAAG,EAAE,SAAS,CAAC;YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;IACX,CAAC;AACH,CAAC"}
|
@@ -1,6 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.getContract = getContract;
|
4
|
+
exports.getFunctionParameters = getFunctionParameters;
|
5
|
+
exports.getEventParameters = getEventParameters;
|
4
6
|
const getAction_js_1 = require("../utils/getAction.js");
|
5
7
|
const createContractEventFilter_js_1 = require("./public/createContractEventFilter.js");
|
6
8
|
const estimateContractGas_js_1 = require("./public/estimateContractGas.js");
|
@@ -158,14 +160,12 @@ function getContract({ abi, address, client: client_, }) {
|
|
158
160
|
contract.abi = abi;
|
159
161
|
return contract;
|
160
162
|
}
|
161
|
-
exports.getContract = getContract;
|
162
163
|
function getFunctionParameters(values) {
|
163
164
|
const hasArgs = values.length && Array.isArray(values[0]);
|
164
165
|
const args = hasArgs ? values[0] : [];
|
165
166
|
const options = (hasArgs ? values[1] : values[0]) ?? {};
|
166
167
|
return { args, options };
|
167
168
|
}
|
168
|
-
exports.getFunctionParameters = getFunctionParameters;
|
169
169
|
function getEventParameters(values, abiEvent) {
|
170
170
|
let hasArgs = false;
|
171
171
|
if (Array.isArray(values[0]))
|
@@ -180,5 +180,4 @@ function getEventParameters(values, abiEvent) {
|
|
180
180
|
const options = (hasArgs ? values[1] : values[0]) ?? {};
|
181
181
|
return { args, options };
|
182
182
|
}
|
183
|
-
exports.getEventParameters = getEventParameters;
|
184
183
|
//# sourceMappingURL=getContract.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getContract.js","sourceRoot":"","sources":["../../actions/getContract.ts"],"names":[],"mappings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AAC,MAAM,CAAC,CAAC,CAAC,CAAC;QAAE,OAAO,GAAG,IAAI,CAAA;SAEvC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAE7B,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAA;IAElD,CAAC;SAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,OAAO,GAAG,IAAI,CAAA;IAChB,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAC7C,MAAM,OAAO,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAA;IACvD,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,CAAA;AAC1B,CAAC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.call = call;
|
4
|
+
exports.getRevertErrorData = getRevertErrorData;
|
4
5
|
const abitype_1 = require("abitype");
|
5
6
|
const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
|
6
7
|
const abis_js_1 = require("../../constants/abis.js");
|
@@ -111,7 +112,6 @@ async function call(client, args) {
|
|
111
112
|
});
|
112
113
|
}
|
113
114
|
}
|
114
|
-
exports.call = call;
|
115
115
|
function shouldPerformMulticall({ request }) {
|
116
116
|
const { data, to, ...request_ } = request;
|
117
117
|
if (!data)
|
@@ -204,5 +204,4 @@ function getRevertErrorData(err) {
|
|
204
204
|
const error = err.walk();
|
205
205
|
return typeof error?.data === 'object' ? error.data?.data : error.data;
|
206
206
|
}
|
207
|
-
exports.getRevertErrorData = getRevertErrorData;
|
208
207
|
//# sourceMappingURL=call.js.map
|