viem 2.13.7 → 2.13.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +26 -0
- package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/getBlockNumber.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/signTypedData.js.map +1 -1
- package/_cjs/celo/formatters.js +1 -2
- package/_cjs/celo/formatters.js.map +1 -1
- package/_cjs/celo/index.js.map +1 -1
- package/_cjs/celo/utils.js.map +1 -1
- package/_cjs/chains/definitions/ham.js +27 -0
- package/_cjs/chains/definitions/ham.js.map +1 -0
- package/_cjs/chains/definitions/kakarotSepolia.js +1 -1
- package/_cjs/chains/definitions/kakarotSepolia.js.map +1 -1
- package/_cjs/chains/definitions/optimism.js +5 -0
- package/_cjs/chains/definitions/optimism.js.map +1 -1
- package/_cjs/chains/definitions/redbellyTestnet.js +27 -0
- package/_cjs/chains/definitions/redbellyTestnet.js.map +1 -0
- package/_cjs/chains/definitions/sei.js +1 -0
- package/_cjs/chains/definitions/sei.js.map +1 -1
- package/_cjs/chains/definitions/xai.js +28 -0
- package/_cjs/chains/definitions/xai.js.map +1 -0
- package/_cjs/chains/definitions/xaiTestnet.js +22 -0
- package/_cjs/chains/definitions/xaiTestnet.js.map +1 -0
- package/_cjs/chains/index.js +12 -4
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -2
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/clients/transports/fallback.js.map +1 -1
- package/_cjs/clients/transports/http.js.map +1 -1
- package/_cjs/constants/abis.js.map +1 -1
- package/_cjs/constants/blob.js +4 -4
- package/_cjs/constants/blob.js.map +1 -1
- package/_cjs/constants/kzg.js +1 -3
- package/_cjs/constants/kzg.js.map +1 -1
- package/_cjs/errors/abi.js +1 -13
- package/_cjs/errors/abi.js.map +1 -1
- package/_cjs/errors/base.js +1 -1
- package/_cjs/errors/base.js.map +1 -1
- package/_cjs/errors/ccip.js.map +1 -1
- package/_cjs/errors/stateOverride.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/eip5792/actions/getCapabilities.js +2 -2
- package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -1
- package/_cjs/experimental/eip5792/actions/sendCalls.js +2 -2
- package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -1
- package/_cjs/index.js +6 -4
- package/_cjs/index.js.map +1 -1
- package/_cjs/node/trustedSetups.js +1 -2
- package/_cjs/node/trustedSetups.js.map +1 -1
- package/_cjs/op-stack/abis.js +1 -458
- package/_cjs/op-stack/abis.js.map +1 -1
- package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
- package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +4 -3
- package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +4 -3
- package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +4 -3
- package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +4 -3
- package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
- package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_cjs/op-stack/index.js +15 -2
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/address/getAddress.js +5 -5
- package/_cjs/utils/address/getAddress.js.map +1 -1
- package/_cjs/utils/address/isAddress.js.map +1 -1
- package/_cjs/utils/blob/toBlobs.js.map +1 -1
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/cursor.js.map +1 -1
- package/_cjs/utils/encoding/fromRlp.js +1 -9
- package/_cjs/utils/encoding/fromRlp.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/ens/errors.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/withTimeout.js.map +1 -1
- package/_cjs/utils/rpc/id.js +1 -2
- package/_cjs/utils/rpc/id.js.map +1 -1
- package/_cjs/utils/rpc/ipc.js.map +1 -1
- package/_cjs/utils/stateOverride.js.map +1 -1
- package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
- package/_cjs/utils/transaction/serializeTransaction.js +8 -5
- package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
- package/_cjs/zksync/actions/deployContract.js.map +1 -1
- package/_cjs/zksync/actions/estimateGasL1ToL2.js +2 -2
- package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -1
- package/_cjs/zksync/actions/getAllBalances.js +2 -2
- package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
- package/_cjs/zksync/actions/getL1Allowance.js +2 -2
- package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
- package/_cjs/zksync/actions/getL1Balance.js +2 -2
- package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
- package/_cjs/zksync/actions/getL1TokenBalance.js +2 -2
- package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_cjs/zksync/actions/sendEip712Transaction.js +7 -7
- package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -1
- package/_cjs/zksync/actions/sendTransaction.js +4 -4
- package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
- package/_cjs/zksync/constants/contract.js +1 -2
- package/_cjs/zksync/constants/contract.js.map +1 -1
- package/_cjs/zksync/decorators/eip712.js.map +1 -1
- package/_cjs/zksync/index.js.map +1 -1
- package/_cjs/zksync/serializers.js.map +1 -1
- package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
- package/_cjs/zksync/utils/assertEip712Request.js.map +1 -1
- package/_cjs/zksync/utils/hashBytecode.js.map +1 -1
- package/_esm/accounts/hdKeyToAccount.js.map +1 -1
- package/_esm/actions/public/call.js +1 -0
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/getBlockNumber.js +2 -1
- package/_esm/actions/public/getBlockNumber.js.map +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js +2 -2
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/signTypedData.js.map +1 -1
- package/_esm/celo/formatters.js +1 -2
- package/_esm/celo/formatters.js.map +1 -1
- package/_esm/celo/index.js +1 -1
- package/_esm/celo/index.js.map +1 -1
- package/_esm/celo/utils.js +1 -0
- package/_esm/celo/utils.js.map +1 -1
- package/_esm/chains/definitions/ham.js +24 -0
- package/_esm/chains/definitions/ham.js.map +1 -0
- package/_esm/chains/definitions/kakarotSepolia.js +1 -1
- package/_esm/chains/definitions/kakarotSepolia.js.map +1 -1
- package/_esm/chains/definitions/optimism.js +5 -0
- package/_esm/chains/definitions/optimism.js.map +1 -1
- package/_esm/chains/definitions/redbellyTestnet.js +24 -0
- package/_esm/chains/definitions/redbellyTestnet.js.map +1 -0
- package/_esm/chains/definitions/sei.js +1 -0
- package/_esm/chains/definitions/sei.js.map +1 -1
- package/_esm/chains/definitions/xai.js +25 -0
- package/_esm/chains/definitions/xai.js.map +1 -0
- package/_esm/chains/definitions/xaiTestnet.js +19 -0
- package/_esm/chains/definitions/xaiTestnet.js.map +1 -0
- package/_esm/chains/index.js +4 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js +1 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/clients/transports/fallback.js +1 -0
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/clients/transports/http.js.map +1 -1
- package/_esm/constants/abis.js +1 -0
- package/_esm/constants/abis.js.map +1 -1
- package/_esm/constants/blob.js +1 -1
- package/_esm/constants/blob.js.map +1 -1
- package/_esm/constants/kzg.js +0 -4
- package/_esm/constants/kzg.js.map +1 -1
- package/_esm/errors/abi.js +0 -11
- package/_esm/errors/abi.js.map +1 -1
- package/_esm/errors/base.js +1 -1
- package/_esm/errors/base.js.map +1 -1
- package/_esm/errors/ccip.js.map +1 -1
- package/_esm/errors/stateOverride.js +1 -0
- package/_esm/errors/stateOverride.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/eip5792/actions/getCapabilities.js +1 -1
- package/_esm/experimental/eip5792/actions/getCapabilities.js.map +1 -1
- package/_esm/experimental/eip5792/actions/sendCalls.js +1 -1
- package/_esm/experimental/eip5792/actions/sendCalls.js.map +1 -1
- package/_esm/index.js +4 -3
- package/_esm/index.js.map +1 -1
- package/_esm/node/trustedSetups.js +0 -1
- package/_esm/node/trustedSetups.js.map +1 -1
- package/_esm/node/trustedSetups_cjs.js +0 -1
- package/_esm/node/trustedSetups_cjs.js.map +1 -1
- package/_esm/op-stack/abis.js +0 -457
- package/_esm/op-stack/abis.js.map +1 -1
- package/_esm/op-stack/actions/buildProveWithdrawal.js +1 -0
- package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -1
- package/_esm/op-stack/actions/estimateDepositTransactionGas.js +7 -3
- package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +7 -3
- package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +7 -3
- package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +7 -3
- package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/actions/getWithdrawalStatus.js +1 -1
- package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
- package/_esm/op-stack/index.js +0 -1
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodeDeployData.js.map +1 -1
- package/_esm/utils/abi/getAbiItem.js +3 -1
- package/_esm/utils/abi/getAbiItem.js.map +1 -1
- package/_esm/utils/address/getAddress.js +1 -1
- package/_esm/utils/address/getAddress.js.map +1 -1
- package/_esm/utils/address/isAddress.js +1 -0
- package/_esm/utils/address/isAddress.js.map +1 -1
- package/_esm/utils/blob/toBlobs.js.map +1 -1
- package/_esm/utils/buildRequest.js +1 -0
- package/_esm/utils/buildRequest.js.map +1 -1
- package/_esm/utils/ccip.js +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/cursor.js.map +1 -1
- package/_esm/utils/encoding/fromRlp.js +0 -6
- package/_esm/utils/encoding/fromRlp.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js +2 -0
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/ens/errors.js.map +1 -1
- package/_esm/utils/observe.js +2 -0
- package/_esm/utils/observe.js.map +1 -1
- package/_esm/utils/promise/createBatchScheduler.js +1 -0
- package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
- package/_esm/utils/promise/withCache.js +2 -0
- package/_esm/utils/promise/withCache.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/rpc/id.js +1 -1
- package/_esm/utils/rpc/id.js.map +1 -1
- package/_esm/utils/rpc/ipc.js +1 -0
- package/_esm/utils/rpc/ipc.js.map +1 -1
- package/_esm/utils/stateOverride.js +3 -0
- package/_esm/utils/stateOverride.js.map +1 -1
- package/_esm/utils/transaction/parseTransaction.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js +8 -5
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/utils/unit/parseUnits.js +1 -1
- package/_esm/utils/unit/parseUnits.js.map +1 -1
- package/_esm/zksync/actions/deployContract.js +1 -1
- package/_esm/zksync/actions/deployContract.js.map +1 -1
- package/_esm/zksync/actions/estimateGasL1ToL2.js +1 -1
- package/_esm/zksync/actions/estimateGasL1ToL2.js.map +1 -1
- package/_esm/zksync/actions/getAllBalances.js +1 -1
- package/_esm/zksync/actions/getAllBalances.js.map +1 -1
- package/_esm/zksync/actions/getL1Allowance.js +1 -1
- package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
- package/_esm/zksync/actions/getL1Balance.js +1 -1
- package/_esm/zksync/actions/getL1Balance.js.map +1 -1
- package/_esm/zksync/actions/getL1TokenBalance.js +2 -2
- package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
- package/_esm/zksync/actions/sendEip712Transaction.js +7 -7
- package/_esm/zksync/actions/sendEip712Transaction.js.map +1 -1
- package/_esm/zksync/actions/sendTransaction.js +6 -6
- package/_esm/zksync/actions/sendTransaction.js.map +1 -1
- package/_esm/zksync/constants/contract.js +0 -1
- package/_esm/zksync/constants/contract.js.map +1 -1
- package/_esm/zksync/decorators/eip712.js.map +1 -1
- package/_esm/zksync/index.js.map +1 -1
- package/_esm/zksync/serializers.js.map +1 -1
- package/_esm/zksync/utils/abi/encodeDeployData.js +1 -1
- package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -1
- package/_esm/zksync/utils/assertEip712Request.js +1 -1
- package/_esm/zksync/utils/assertEip712Request.js.map +1 -1
- package/_esm/zksync/utils/hashBytecode.js.map +1 -1
- package/_types/accounts/hdKeyToAccount.d.ts +1 -1
- package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/types.d.ts +1 -1
- package/_types/accounts/types.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +5 -2
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/estimateGas.d.ts +2 -1
- package/_types/actions/public/estimateGas.d.ts.map +1 -1
- package/_types/actions/public/getBlockNumber.d.ts +4 -0
- package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
- package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +0 -7
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/signTypedData.d.ts +2 -2
- package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +60 -60
- package/_types/celo/formatters.d.ts +30 -30
- package/_types/celo/formatters.d.ts.map +1 -1
- package/_types/celo/index.d.ts +2 -2
- package/_types/celo/index.d.ts.map +1 -1
- package/_types/celo/utils.d.ts +1 -0
- package/_types/celo/utils.d.ts.map +1 -1
- package/_types/chains/definitions/ancient8.d.ts +26 -26
- package/_types/chains/definitions/ancient8Sepolia.d.ts +26 -26
- package/_types/chains/definitions/base.d.ts +26 -26
- package/_types/chains/definitions/baseGoerli.d.ts +26 -26
- package/_types/chains/definitions/baseSepolia.d.ts +26 -26
- package/_types/chains/definitions/celo.d.ts +60 -60
- package/_types/chains/definitions/celoAlfajores.d.ts +60 -60
- package/_types/chains/definitions/fraxtal.d.ts +26 -26
- package/_types/chains/definitions/fraxtalTestnet.d.ts +26 -26
- package/_types/chains/definitions/funkiSepolia.d.ts +26 -26
- package/_types/chains/definitions/ham.d.ts +37 -0
- package/_types/chains/definitions/ham.d.ts.map +1 -0
- package/_types/chains/definitions/kakarotSepolia.d.ts +1 -1
- package/_types/chains/definitions/liskSepolia.d.ts +26 -26
- package/_types/chains/definitions/metalL2.d.ts +26 -26
- package/_types/chains/definitions/optimism.d.ts +31 -26
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +26 -26
- package/_types/chains/definitions/optimismSepolia.d.ts +26 -26
- package/_types/chains/definitions/pgn.d.ts +26 -26
- package/_types/chains/definitions/pgnTestnet.d.ts +26 -26
- package/_types/chains/definitions/redbellyTestnet.d.ts +36 -0
- package/_types/chains/definitions/redbellyTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/rss3.d.ts +26 -26
- package/_types/chains/definitions/rss3Sepolia.d.ts +26 -26
- package/_types/chains/definitions/sei.d.ts +1 -0
- package/_types/chains/definitions/sei.d.ts.map +1 -1
- package/_types/chains/definitions/xai.d.ts +33 -0
- package/_types/chains/definitions/xai.d.ts.map +1 -0
- package/_types/chains/definitions/xaiTestnet.d.ts +35 -0
- package/_types/chains/definitions/xaiTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/zora.d.ts +26 -26
- package/_types/chains/definitions/zoraSepolia.d.ts +26 -26
- package/_types/chains/definitions/zoraTestnet.d.ts +26 -26
- package/_types/chains/index.d.ts +4 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +1 -1
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts +1 -0
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/clients/transports/http.d.ts +6 -7
- package/_types/clients/transports/http.d.ts.map +1 -1
- package/_types/constants/abis.d.ts +1 -0
- package/_types/constants/abis.d.ts.map +1 -1
- package/_types/constants/blob.d.ts +0 -2
- package/_types/constants/blob.d.ts.map +1 -1
- package/_types/constants/kzg.d.ts +0 -4
- package/_types/constants/kzg.d.ts.map +1 -1
- package/_types/errors/abi.d.ts +0 -10
- package/_types/errors/abi.d.ts.map +1 -1
- package/_types/errors/base.d.ts +1 -0
- package/_types/errors/base.d.ts.map +1 -1
- package/_types/errors/ccip.d.ts +1 -0
- package/_types/errors/ccip.d.ts.map +1 -1
- package/_types/errors/stateOverride.d.ts +1 -0
- package/_types/errors/stateOverride.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +1 -1
- package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +1 -1
- package/_types/experimental/erc7715/types/permission.d.ts +5 -0
- package/_types/experimental/erc7715/types/permission.d.ts.map +1 -1
- package/_types/experimental/erc7715/types/signer.d.ts +3 -0
- package/_types/experimental/erc7715/types/signer.d.ts.map +1 -1
- package/_types/index.d.ts +9 -9
- package/_types/index.d.ts.map +1 -1
- package/_types/node/trustedSetups.d.ts +0 -1
- package/_types/node/trustedSetups.d.ts.map +1 -1
- package/_types/node/trustedSetups_cjs.d.ts +0 -1
- package/_types/node/trustedSetups_cjs.d.ts.map +1 -1
- package/_types/op-stack/abis.d.ts +0 -626
- package/_types/op-stack/abis.d.ts.map +1 -1
- package/_types/op-stack/actions/buildProveWithdrawal.d.ts +1 -0
- package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts +2 -2
- package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
- package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
- package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts +1 -1
- package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts +2 -1
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +26 -26
- package/_types/op-stack/formatters.d.ts +26 -26
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/types/account.d.ts +1 -1
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/chain.d.ts +7 -7
- package/_types/types/chain.d.ts.map +1 -1
- package/_types/types/kzg.d.ts +1 -1
- package/_types/types/kzg.d.ts.map +1 -1
- package/_types/types/proof.d.ts +3 -2
- package/_types/types/proof.d.ts.map +1 -1
- package/_types/types/utils.d.ts +11 -3
- package/_types/types/utils.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +2 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts +12 -11
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeDeployData.d.ts +4 -2
- package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
- package/_types/utils/abi/getAbiItem.d.ts +6 -2
- package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
- package/_types/utils/address/getAddress.d.ts +0 -2
- package/_types/utils/address/getAddress.d.ts.map +1 -1
- package/_types/utils/address/isAddress.d.ts +1 -0
- package/_types/utils/address/isAddress.d.ts.map +1 -1
- package/_types/utils/blob/toBlobs.d.ts +2 -1
- package/_types/utils/blob/toBlobs.d.ts.map +1 -1
- package/_types/utils/buildRequest.d.ts +1 -0
- package/_types/utils/buildRequest.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +4 -2
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/cursor.d.ts +7 -6
- package/_types/utils/cursor.d.ts.map +1 -1
- package/_types/utils/encoding/fromRlp.d.ts +3 -7
- package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +2 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts +4 -2
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/ens/errors.d.ts +1 -0
- package/_types/utils/ens/errors.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/hash/normalizeSignature.d.ts +3 -2
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
- package/_types/utils/observe.d.ts +2 -0
- package/_types/utils/observe.d.ts.map +1 -1
- package/_types/utils/promise/createBatchScheduler.d.ts +3 -2
- package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
- package/_types/utils/promise/withCache.d.ts +4 -1
- package/_types/utils/promise/withCache.d.ts.map +1 -1
- package/_types/utils/rpc/id.d.ts +0 -5
- package/_types/utils/rpc/id.d.ts.map +1 -1
- package/_types/utils/rpc/ipc.d.ts +1 -0
- package/_types/utils/rpc/ipc.d.ts.map +1 -1
- package/_types/utils/stateOverride.d.ts +9 -5
- package/_types/utils/stateOverride.d.ts.map +1 -1
- package/_types/utils/transaction/parseTransaction.d.ts +5 -5
- package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/_types/zksync/actions/deployContract.d.ts +2 -1
- package/_types/zksync/actions/deployContract.d.ts.map +1 -1
- package/_types/zksync/actions/estimateGasL1ToL2.d.ts.map +1 -1
- package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
- package/_types/zksync/actions/getL1TokenBalance.d.ts +4 -4
- package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
- package/_types/zksync/actions/sendEip712Transaction.d.ts +3 -3
- package/_types/zksync/actions/sendEip712Transaction.d.ts.map +1 -1
- package/_types/zksync/actions/sendTransaction.d.ts +5 -5
- package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
- package/_types/zksync/constants/contract.d.ts +0 -1
- package/_types/zksync/constants/contract.d.ts.map +1 -1
- package/_types/zksync/decorators/eip712.d.ts +2 -1
- package/_types/zksync/decorators/eip712.d.ts.map +1 -1
- package/_types/zksync/index.d.ts +1 -0
- package/_types/zksync/index.d.ts.map +1 -1
- package/_types/zksync/serializers.d.ts +1 -2
- package/_types/zksync/serializers.d.ts.map +1 -1
- package/_types/zksync/types/chain.d.ts +2 -2
- package/_types/zksync/types/chain.d.ts.map +1 -1
- package/_types/zksync/types/eip1193.d.ts +5 -5
- package/_types/zksync/types/eip1193.d.ts.map +1 -1
- package/_types/zksync/utils/abi/encodeDeployData.d.ts +5 -0
- package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -1
- package/_types/zksync/utils/assertEip712Request.d.ts +3 -1
- package/_types/zksync/utils/assertEip712Request.d.ts.map +1 -1
- package/_types/zksync/utils/hashBytecode.d.ts +5 -0
- package/_types/zksync/utils/hashBytecode.d.ts.map +1 -1
- package/accounts/hdKeyToAccount.ts +1 -2
- package/accounts/types.ts +1 -1
- package/actions/public/call.ts +5 -5
- package/actions/public/estimateGas.ts +3 -4
- package/actions/public/getBlockNumber.ts +9 -1
- package/actions/test/sendUnsignedTransaction.ts +2 -2
- package/actions/wallet/prepareTransactionRequest.ts +0 -20
- package/actions/wallet/signTypedData.ts +2 -0
- package/celo/formatters.ts +1 -3
- package/celo/index.ts +5 -2
- package/celo/utils.ts +1 -0
- package/chains/definitions/ham.ts +24 -0
- package/chains/definitions/kakarotSepolia.ts +1 -1
- package/chains/definitions/optimism.ts +5 -0
- package/chains/definitions/redbellyTestnet.ts +24 -0
- package/chains/definitions/sei.ts +1 -0
- package/chains/definitions/xai.ts +25 -0
- package/chains/definitions/xaiTestnet.ts +19 -0
- package/chains/index.ts +4 -0
- package/clients/createClient.ts +4 -2
- package/clients/decorators/public.ts +1 -1
- package/clients/decorators/wallet.ts +1 -1
- package/clients/transports/fallback.ts +1 -0
- package/clients/transports/http.ts +9 -8
- package/constants/abis.ts +1 -0
- package/constants/blob.ts +1 -1
- package/constants/kzg.ts +0 -6
- package/errors/abi.ts +0 -13
- package/errors/base.ts +2 -1
- package/errors/ccip.ts +1 -0
- package/errors/stateOverride.ts +1 -0
- package/errors/version.ts +1 -1
- package/experimental/eip5792/actions/getCapabilities.ts +1 -1
- package/experimental/eip5792/actions/sendCalls.ts +1 -1
- package/experimental/erc7715/types/permission.ts +5 -0
- package/experimental/erc7715/types/signer.ts +3 -0
- package/index.ts +21 -5
- package/node/trustedSetups.ts +0 -5
- package/node/trustedSetups_cjs.ts +0 -5
- package/op-stack/abis.ts +0 -458
- package/op-stack/actions/buildProveWithdrawal.ts +1 -0
- package/op-stack/actions/estimateDepositTransactionGas.ts +18 -7
- package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +11 -4
- package/op-stack/actions/estimateInitiateWithdrawalGas.ts +11 -4
- package/op-stack/actions/estimateProveWithdrawalGas.ts +11 -4
- package/op-stack/actions/getWithdrawalStatus.ts +6 -1
- package/op-stack/index.ts +0 -1
- package/package.json +1 -1
- package/types/account.ts +1 -11
- package/types/chain.ts +7 -7
- package/types/kzg.ts +2 -1
- package/types/proof.ts +2 -2
- package/types/utils.ts +11 -3
- package/utils/abi/decodeAbiParameters.ts +6 -1
- package/utils/abi/encodeAbiParameters.ts +22 -19
- package/utils/abi/encodeDeployData.ts +6 -5
- package/utils/abi/getAbiItem.ts +8 -2
- package/utils/address/getAddress.ts +1 -1
- package/utils/address/isAddress.ts +1 -0
- package/utils/blob/toBlobs.ts +2 -1
- package/utils/buildRequest.ts +1 -0
- package/utils/ccip.ts +11 -3
- package/utils/cursor.ts +16 -6
- package/utils/encoding/fromRlp.ts +3 -21
- package/utils/ens/avatar/parseAvatarRecord.ts +1 -1
- package/utils/ens/avatar/utils.ts +4 -2
- package/utils/ens/errors.ts +1 -0
- package/utils/hash/normalizeSignature.ts +2 -2
- package/utils/observe.ts +2 -0
- package/utils/promise/createBatchScheduler.ts +3 -2
- package/utils/promise/withCache.ts +3 -1
- package/utils/promise/withTimeout.ts +2 -2
- package/utils/rpc/id.ts +1 -1
- package/utils/rpc/ipc.ts +1 -0
- package/utils/stateOverride.ts +8 -5
- package/utils/transaction/parseTransaction.ts +7 -2
- package/utils/transaction/serializeTransaction.ts +11 -5
- package/utils/unit/parseUnits.ts +1 -1
- package/zksync/actions/deployContract.ts +8 -2
- package/zksync/actions/estimateGasL1ToL2.ts +1 -1
- package/zksync/actions/getAllBalances.ts +1 -1
- package/zksync/actions/getL1Allowance.ts +1 -1
- package/zksync/actions/getL1Balance.ts +1 -1
- package/zksync/actions/getL1TokenBalance.ts +10 -7
- package/zksync/actions/sendEip712Transaction.ts +27 -16
- package/zksync/actions/sendTransaction.ts +34 -18
- package/zksync/constants/contract.ts +0 -1
- package/zksync/decorators/eip712.ts +7 -2
- package/zksync/index.ts +5 -0
- package/zksync/serializers.ts +1 -2
- package/zksync/types/chain.ts +9 -9
- package/zksync/types/eip1193.ts +32 -26
- package/zksync/utils/abi/encodeDeployData.ts +12 -2
- package/zksync/utils/assertEip712Request.ts +9 -2
- package/zksync/utils/hashBytecode.ts +14 -2
- package/_cjs/utils/accounts.js +0 -8
- package/_cjs/utils/accounts.js.map +0 -1
- package/_esm/utils/accounts.js +0 -7
- package/_esm/utils/accounts.js.map +0 -1
- package/_types/utils/accounts.d.ts +0 -3
- package/_types/utils/accounts.d.ts.map +0 -1
- package/utils/accounts.ts +0 -7
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL1Balance.js","sourceRoot":"","sources":["../../../zksync/actions/getL1Balance.ts"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"getL1Balance.js","sourceRoot":"","sources":["../../../zksync/actions/getL1Balance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAEL,UAAU,GACX,MAAM,oCAAoC,CAAA;AAQ3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACzC,OAAO,EAEL,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAqB/B,MAAM,CAAC,KAAK,UAAU,YAAY,CAIhC,MAA2C,EAC3C,GAAG,CAAC,UAAU,GAAG,EAAE,CAEwB;IAE3C,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,WAAW,EACX,QAAQ,EACR,KAAK,GAAG,gBAAgB,GACzB,GAAG,UAAU,CAAA;IAEd,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAE7D,IAAI,KAAK,CAAC,KAAK,CAAC;QACd,OAAO,MAAM,UAAU,CAAC,MAAM,EAAE;YAC9B,OAAO,EAAE,OAAQ,CAAC,OAAO;YACzB,WAAW;YACX,QAAQ;SACe,CAAC,CAAA;IAE5B,OAAO,MAAM,iBAAiB,CAAC,MAAM,EAAE;QACrC,GAAI,UAAoD;KACzD,CAAC,CAAA;AACJ,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
|
+
import { parseAccount } from '../../accounts/utils/parseAccount.js';
|
1
2
|
import { readContract } from '../../actions/index.js';
|
2
3
|
import { erc20Abi } from '../../constants/abis.js';
|
3
|
-
import {
|
4
|
-
import { TokenIsEthError } from '../errors/token-is-eth.js';
|
4
|
+
import { TokenIsEthError, } from '../errors/token-is-eth.js';
|
5
5
|
import { isEth } from '../utils/isEth.js';
|
6
6
|
export async function getL1TokenBalance(client, parameters) {
|
7
7
|
const { account: account_ = client.account, blockTag, blockNumber, token, } = parameters;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL1TokenBalance.js","sourceRoot":"","sources":["../../../zksync/actions/getL1TokenBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"getL1TokenBalance.js","sourceRoot":"","sources":["../../../zksync/actions/getL1TokenBalance.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAGrD,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAMlD,OAAO,EACL,eAAe,GAEhB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAwBzC,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAIrC,MAA2C,EAC3C,UAAiD;IAEjD,MAAM,EACJ,OAAO,EAAE,QAAQ,GAAG,MAAM,CAAC,OAAO,EAClC,QAAQ,EACR,WAAW,EACX,KAAK,GACN,GAAG,UAAU,CAAA;IAEd,IAAI,KAAK,CAAC,KAAM,CAAC;QAAE,MAAM,IAAI,eAAe,EAAE,CAAA;IAE9C,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,CAAA;IAElE,OAAO,MAAM,YAAY,CAAC,MAAM,EAAE;QAChC,GAAG,EAAE,QAAQ;QACb,OAAO,EAAE,KAAM;QACf,YAAY,EAAE,WAAW;QACzB,IAAI,EAAE,CAAC,OAAQ,CAAC,OAAO,CAAC;QACxB,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,QAAQ;KACnB,CAAC,CAAA;AACJ,CAAC"}
|
@@ -48,18 +48,18 @@ import { signTransaction } from './signTransaction.js';
|
|
48
48
|
* value: 1000000000000000000n,
|
49
49
|
* })
|
50
50
|
*/
|
51
|
-
export async function sendEip712Transaction(client,
|
52
|
-
const { chain = client.chain } =
|
53
|
-
if (!
|
51
|
+
export async function sendEip712Transaction(client, parameters) {
|
52
|
+
const { chain = client.chain } = parameters;
|
53
|
+
if (!parameters.account)
|
54
54
|
throw new AccountNotFoundError({
|
55
55
|
docsPath: '/docs/actions/wallet/sendTransaction',
|
56
56
|
});
|
57
|
-
const account = parseAccount(
|
57
|
+
const account = parseAccount(parameters.account);
|
58
58
|
try {
|
59
|
-
assertEip712Request(
|
59
|
+
assertEip712Request(parameters);
|
60
60
|
// Prepare the request for signing (assign appropriate fees, etc.)
|
61
61
|
const request = await prepareTransactionRequest(client, {
|
62
|
-
...
|
62
|
+
...parameters,
|
63
63
|
parameters: ['gas', 'nonce', 'fees'],
|
64
64
|
});
|
65
65
|
let chainId;
|
@@ -80,7 +80,7 @@ export async function sendEip712Transaction(client, args) {
|
|
80
80
|
}
|
81
81
|
catch (err) {
|
82
82
|
throw getTransactionError(err, {
|
83
|
-
...
|
83
|
+
...parameters,
|
84
84
|
account,
|
85
85
|
chain: chain,
|
86
86
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;
|
1
|
+
{"version":3,"file":"sendEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAA;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAA;AAC/D,OAAO,EAAE,yBAAyB,EAAE,MAAM,mDAAmD,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAA;AAS/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAG9D,OAAO,EAAE,kBAAkB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ACN,kBAAkB,EAClB,oBAAoB,CACrB,CAAC;YACA,qBAAqB;SACtB,CAAC,CAAA;IACJ,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,mBAAmB,CAAC,GAAgB,EAAE;YAC1C,GAAI,UAA4C;YAChD,OAAO;YACP,KAAK,EAAE,KAAc;SACtB,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { sendTransaction as
|
1
|
+
import { sendTransaction as core_sendTransaction } from '../../actions/wallet/sendTransaction.js';
|
2
2
|
import { isEIP712Transaction } from '../utils/isEip712Transaction.js';
|
3
|
-
import { sendEip712Transaction } from './sendEip712Transaction.js';
|
3
|
+
import { sendEip712Transaction, } from './sendEip712Transaction.js';
|
4
4
|
/**
|
5
5
|
* Creates, signs, and sends a new transaction to the network.
|
6
6
|
*
|
@@ -45,9 +45,9 @@ import { sendEip712Transaction } from './sendEip712Transaction.js';
|
|
45
45
|
* value: 1000000000000000000n,
|
46
46
|
* })
|
47
47
|
*/
|
48
|
-
export async function sendTransaction(client,
|
49
|
-
if (isEIP712Transaction(
|
50
|
-
return sendEip712Transaction(client,
|
51
|
-
return
|
48
|
+
export async function sendTransaction(client, parameters) {
|
49
|
+
if (isEIP712Transaction(parameters))
|
50
|
+
return sendEip712Transaction(client, parameters);
|
51
|
+
return core_sendTransaction(client, parameters);
|
52
52
|
}
|
53
53
|
//# sourceMappingURL=sendTransaction.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,
|
1
|
+
{"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,IAAI,oBAAoB,EAAE,MAAM,yCAAyC,CAAA;AAUjG,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAEL,qBAAqB,GACtB,MAAM,4BAA4B,CAAA;AAgBnC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAMnC,MAAyC,EACzC,UAA6E;IAE7E,IAAI,mBAAmB,CAAC,UAAU,CAAC;QACjC,OAAO,qBAAqB,CAC1B,MAAM,EACN,UAA6C,CAC9C,CAAA;IACH,OAAO,oBAAoB,CACzB,MAAM,EACN,UAA4C,CAC7C,CAAA;AACH,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../zksync/constants/contract.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../../zksync/constants/contract.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eip712.js","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"eip712.js","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAA;AAKrE,OAAO,EAGL,cAAc,GACf,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAGL,eAAe,GAChB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAGL,eAAe,GAChB,MAAM,+BAA+B,CAAA;AAoMtC,MAAM,UAAU,mBAAmB;IACjC,OAAO,CAKL,MAAyC,EACJ,EAAE,CAAC,CAAC;QACzC,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;QACxD,eAAe,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;QACxD,cAAc,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC;QACtD,aAAa,EAAE,CAAC,IAAI,EAAE,EAAE,CACtB,aAAa,CACX,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE;YACpB,eAAe,EAAE,CAAC,IAAS,EAAE,EAAE,CAAC,eAAe,CAAC,MAAM,EAAE,IAAI,CAAC;SAC9D,CAAC,EACF,IAAI,CACL;KACJ,CAAC,CAAA;AACJ,CAAC"}
|
package/_esm/zksync/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../zksync/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAIL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAGL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAGL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAGL,eAAe,GAChB,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAEL,yBAAyB,GAC1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAA;AACtF,OAAO,EAIL,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EAIL,YAAY,GACb,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAGL,oBAAoB,GACrB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,iBAAiB,GAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAA;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AACxD,OAAO,EAIL,iBAAiB,GAClB,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAGL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAA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["../../zksync/serializers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,8CAA8C,CAAA;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAM5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEpE,MAAM,UAAU,oBAAoB,CAClC,WAA0C,EAC1C,SAAiC;IAEjC,IAAI,mBAAmB,CAAC,WAAW,CAAC;QAClC,OAAO,0BAA0B,CAC/B,WAAkD,CACnD,CAAA;IACH,OAAO,qBAAqB,CAC1B,WAAsC,EACtC,SAAS,CACV,CAAA;AACH,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,WAAW,EAAE,oBAAoB;CACE,CAAA;
|
1
|
+
{"version":3,"file":"serializers.js","sourceRoot":"","sources":["../../zksync/serializers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAA;AAClD,OAAO,EAAE,oBAAoB,IAAI,qBAAqB,EAAE,MAAM,8CAA8C,CAAA;AAC5G,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAM5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEpE,MAAM,UAAU,oBAAoB,CAClC,WAA0C,EAC1C,SAAiC;IAEjC,IAAI,mBAAmB,CAA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E,mBAAmB;QAC5C,SAAS,IAAI,cAAc,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE;KAC/D,CAAA;IAED,OAAO,SAAS,CAAC;QACf,MAAM;QACN,KAAK,CAAC,qBAAqB,CAAC;KAC7B,CAAyC,CAAA;AAC5C,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { zeroHash } from '../../../constants/bytes.js';
|
2
2
|
import { AbiConstructorNotFoundError, AbiConstructorParamsNotFoundError, } from '../../../errors/abi.js';
|
3
3
|
import { encodeAbiParameters } from '../../../utils/abi/encodeAbiParameters.js';
|
4
|
-
import { encodeFunctionData } from '../../../utils/abi/encodeFunctionData.js';
|
4
|
+
import { encodeFunctionData, } from '../../../utils/abi/encodeFunctionData.js';
|
5
5
|
import { toHex } from '../../../utils/encoding/toHex.js';
|
6
6
|
import { contractDeployerAbi } from '../../constants/abis.js';
|
7
7
|
import { accountAbstractionVersion1 } from '../../constants/contract.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"encodeDeployData.js","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,wBAAwB,CAAA;
|
1
|
+
{"version":3,"file":"encodeDeployData.js","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AACtD,OAAO,EACL,2BAA2B,EAC3B,iCAAiC,GAClC,MAAM,wBAAwB,CAAA;AAK/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAA;AAK/E,OAAO,EAEL,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAA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BAAmB,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;IAC1D,MAAM,EAAE,YAAY,EAAE,oBAAoB,EAAE,GAAG,oBAAoB,CACjE,cAAc,EACd,IAAI,IAAI,QAAQ,EAChB,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,EAC7B,IAAI,CACL,CAAA;IAED,OAAO,kBAAkB,CAAC;QACxB,GAAG,EAAE,mBAAmB;QACxB,YAAY;QACZ,IAAI,EAAE,oBAAoB;KAC3B,CAAC,CAAA;AACJ,CAAC;AAED,SAAS,oBAAoB,CAC3B,cAAsC,EACtC,IAAU,EACV,YAAiB,EACjB,IAAS;IAKT,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAEzD,MAAM,iBAAiB,GAAG;QACxB,MAAM,EAAE;YACN,YAAY,EAAE,QAAQ;YACtB,oBAAoB,EAAE,sBAAsB;SAC7C;QACD,OAAO,EAAE;YACP,YAAY,EAAE,SAAS;YACvB,oBAAoB,EAAE,sBAAsB;SAC7C;QACD,aAAa,EAAE;YACb,YAAY,EAAE,eAAe;YAC7B,oBAAoB,EAAE;gBACpB,GAAG,sBAAsB;gBACzB,0BAA0B;aAC3B;SACF;QACD,cAAc,EAAE;YACd,YAAY,EAAE,gBAAgB;YAC9B,oBAAoB,EAAE;gBACpB,GAAG,sBAAsB;gBACzB,0BAA0B;aAC3B;SACF;KACF,CAAA;IAED,MAAM,aAAa,GAAG,cAAc,IAAI,QAAQ,CAAA;IAChD,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAA;AACzC,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { assertRequest, } from '../../utils/transaction/assertRequest.js';
|
2
|
-
import { InvalidEip712TransactionError } from '../errors/transaction.js';
|
2
|
+
import { InvalidEip712TransactionError, } from '../errors/transaction.js';
|
3
3
|
import { isEIP712Transaction } from './isEip712Transaction.js';
|
4
4
|
export function assertEip712Request(args) {
|
5
5
|
if (!isEIP712Transaction(args))
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"assertEip712Request.js","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,aAAa,GACd,MAAM,0CAA0C,CAAA;AAGjD,OAAO,
|
1
|
+
{"version":3,"file":"assertEip712Request.js","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,aAAa,GACd,MAAM,0CAA0C,CAAA;AAGjD,OAAO,EACL,6BAA6B,GAE9B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAY9D,MAAM,UAAU,mBAAmB,CAAC,IAAmC;IACrE,IAAI,CAAC,mBAAmB,CAAC,IAAW,CAAC;QACnC,MAAM,IAAI,6BAA6B,EAAE,CAAA;IAC3C,aAAa,CAAC,IAAW,CAAC,CAAA;AAC5B,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hashBytecode.js","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"hashBytecode.js","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAA;AAC7C,OAAO,EAAyB,OAAO,EAAE,MAAM,iCAAiC,CAAA;AAChF,OAAO,EAAwB,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EACL,iCAAiC,EAEjC,mCAAmC,EAEnC,sCAAsC,GAEvC,MAAM,uBAAuB,CAAA;AAU9B,MAAM,UAAU,YAAY,CAAC,QAAa;IACxC,MAAM,aAAa,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IACvC,IAAI,aAAa,CAAC,MAAM,GAAG,EAAE,KAAK,CAAC;QACjC,MAAM,IAAI,sCAAsC,CAAC;YAC/C,WAAW,EAAE,aAAa,CAAC,MAAM;SAClC,CAAC,CAAA;IAEJ,IAAI,aAAa,CAAC,MAAM,GAAG,eAAe;QACxC,MAAM,IAAI,iCAAiC,CAAC;YAC1C,WAAW,EAAE,aAAa,CAAC,MAAM;YACjC,eAAe;SAChB,CAAC,CAAA;IAEJ,MAAM,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAE7B,uCAAuC;IACvC,uCAAuC;IACvC,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,GAAG,EAAE,CAAA;IACvD,IAAI,qBAAqB,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,mCAAmC,CAAC;YAC5C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,cAAc,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAA;IAErD,0EAA0E;IAC1E,yEAAyE;IACzE,MAAM,oBAAoB,GAAG,GAAG,CAAC,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAA;IAE7D,MAAM,eAAe,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IAC9C,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC5B,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAA;IAEjC,OAAO,IAAI,CAAA;AACb,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { HDKey } from '@scure/bip32';
|
2
1
|
import { type ToHexErrorType } from '../utils/encoding/toHex.js';
|
3
2
|
import type { ErrorType } from '../errors/utils.js';
|
3
|
+
import type { HDKey } from '../types/account.js';
|
4
4
|
import { type PrivateKeyToAccountErrorType } from './privateKeyToAccount.js';
|
5
5
|
import type { HDAccount, HDOptions } from './types.js';
|
6
6
|
export type HDKeyToAccountErrorType = PrivateKeyToAccountErrorType | ToHexErrorType | ErrorType;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hdKeyToAccount.d.ts","sourceRoot":"","sources":["../../accounts/hdKeyToAccount.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"hdKeyToAccount.d.ts","sourceRoot":"","sources":["../../accounts/hdKeyToAccount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,4BAA4B,CAAA;AAEvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAChD,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAEtD,MAAM,MAAM,uBAAuB,GAC/B,4BAA4B,GAC5B,cAAc,GACd,SAAS,CAAA;AAEb;;;;GAIG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,KAAK,EACb,EAAE,YAAgB,EAAE,YAAgB,EAAE,WAAe,EAAE,IAAI,EAAE,GAAE,SAAc,GAC5E,SAAS,CAUX"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { HDKey } from '@scure/bip32';
|
2
1
|
import type { Address, TypedData } from 'abitype';
|
2
|
+
import type { HDKey } from '../types/account.js';
|
3
3
|
import type { Hash, Hex, SignableMessage } from '../types/misc.js';
|
4
4
|
import type { TransactionSerializable, TransactionSerialized } from '../types/transaction.js';
|
5
5
|
import type { TypedDataDefinition } from '../types/typedData.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../accounts/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK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AA;IAChC,IAAI,CAAC,EAAE,SAAS,CAAA;CACjB,GACD;IACE,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,YAAY,CAAC,EAAE,SAAS,CAAA;IACxB,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,mBAAmB;IACnB,IAAI,EAAE,aAAa,MAAM,EAAE,CAAA;CAC5B,CAAA;AAEL,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,YAAY,CAAC,CAAA"}
|
@@ -20,7 +20,6 @@ import { type FormatTransactionRequestErrorType, type FormattedTransactionReques
|
|
20
20
|
import { type CreateBatchSchedulerErrorType } from '../../utils/promise/createBatchScheduler.js';
|
21
21
|
import { type SerializeStateOverrideErrorType } from '../../utils/stateOverride.js';
|
22
22
|
import type { AssertRequestErrorType } from '../../utils/transaction/assertRequest.js';
|
23
|
-
export type FormattedCall<TChain extends Chain | undefined = Chain | undefined> = FormattedTransactionRequest<TChain>;
|
24
23
|
export type CallParameters<TChain extends Chain | undefined = Chain | undefined> = UnionOmit<FormattedCall<TChain>, 'from'> & {
|
25
24
|
account?: Account | Address | undefined;
|
26
25
|
batch?: boolean | undefined;
|
@@ -37,6 +36,7 @@ export type CallParameters<TChain extends Chain | undefined = Chain | undefined>
|
|
37
36
|
*/
|
38
37
|
blockTag?: BlockTag | undefined;
|
39
38
|
});
|
39
|
+
type FormattedCall<TChain extends Chain | undefined = Chain | undefined> = FormattedTransactionRequest<TChain>;
|
40
40
|
export type CallReturnType = {
|
41
41
|
data: Hex | undefined;
|
42
42
|
};
|
@@ -67,7 +67,10 @@ export type CallErrorType = GetCallErrorReturnType<ParseAccountErrorType | Seria
|
|
67
67
|
* })
|
68
68
|
*/
|
69
69
|
export declare function call<TChain extends Chain | undefined>(client: Client<Transport, TChain>, args: CallParameters<TChain>): Promise<CallReturnType>;
|
70
|
-
|
70
|
+
type ScheduleMulticallErrorType = GetChainContractAddressErrorType | NumberToHexErrorType | CreateBatchSchedulerErrorType | EncodeFunctionDataErrorType | DecodeFunctionResultErrorType | RawContractErrorType | ErrorType;
|
71
|
+
/** @internal */
|
71
72
|
export type GetRevertErrorDataErrorType = ErrorType;
|
73
|
+
/** @internal */
|
72
74
|
export declare function getRevertErrorData(err: unknown): `0x${string}` | undefined;
|
75
|
+
export {};
|
73
76
|
//# sourceMappingURL=call.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"call.d.ts","sourceRoot":"","sources":["../../../actions/public/call.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAQ5E,OAAO,EAEL,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAA;AACjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,KAAK,EAAgB,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACnE,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,yCAAyC,CAAA;AAChD,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,uCAAuC,CAAA;AAC9C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EACL,KAAK,gCAAgC,EAEtC,MAAM,8CAA8C,CAAA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cAAc,GAAG;IAAE,IAAI,EAAE,GAAG,GAAG,SAAS,CAAA;CAAE,CAAA;AAEtD,MAAM,MAAM,aAAa,GAAG,sBAAsB,CAC9C,qBAAqB,GACrB,+BAA+B,GAC/B,sBAAsB,GACtB,oBAAoB,GACpB,iCAAiC,GACjC,0BAA0B,GAC1B,gBAAgB,CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,IAAI,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACzD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,IAAI,EAAE,cAAc,CAAC,MAAM,CAAC,GAC3B,OAAO,CAAC,cAAc,CAAC,CA+FzB;AA4BD,KAAK,0BAA0B,GAC3B,gCAAgC,GAChC,oBAAoB,GACpB,6BAA6B,GAC7B,2BAA2B,GAC3B,6BAA6B,GAC7B,oBAAoB,GACpB,SAAS,CAAA;AAkFb,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG,SAAS,CAAA;AAEnD,gBAAgB;AAChB,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,6BAI9C"}
|
@@ -12,7 +12,6 @@ import { type NumberToHexErrorType } from '../../utils/encoding/toHex.js';
|
|
12
12
|
import { type GetEstimateGasErrorReturnType } from '../../utils/errors/getEstimateGasError.js';
|
13
13
|
import { type FormattedTransactionRequest } from '../../utils/formatters/transactionRequest.js';
|
14
14
|
import { type AssertRequestErrorType } from '../../utils/transaction/assertRequest.js';
|
15
|
-
export type FormattedEstimateGas<TChain extends Chain | undefined = Chain | undefined> = FormattedTransactionRequest<TChain>;
|
16
15
|
export type EstimateGasParameters<TChain extends Chain | undefined = Chain | undefined> = UnionOmit<FormattedEstimateGas<TChain>, 'from'> & {
|
17
16
|
account?: Account | Address | undefined;
|
18
17
|
stateOverride?: StateOverride | undefined;
|
@@ -28,6 +27,7 @@ export type EstimateGasParameters<TChain extends Chain | undefined = Chain | und
|
|
28
27
|
*/
|
29
28
|
blockTag?: BlockTag | undefined;
|
30
29
|
});
|
30
|
+
type FormattedEstimateGas<TChain extends Chain | undefined = Chain | undefined> = FormattedTransactionRequest<TChain>;
|
31
31
|
export type EstimateGasReturnType = bigint;
|
32
32
|
export type EstimateGasErrorType = GetEstimateGasErrorReturnType<ParseAccountErrorType | NumberToHexErrorType | RequestErrorType | AssertRequestErrorType>;
|
33
33
|
/**
|
@@ -56,4 +56,5 @@ export type EstimateGasErrorType = GetEstimateGasErrorReturnType<ParseAccountErr
|
|
56
56
|
* })
|
57
57
|
*/
|
58
58
|
export declare function estimateGas<TChain extends Chain | undefined, TAccount extends Account | undefined = undefined>(client: Client<Transport, TChain, TAccount>, args: EstimateGasParameters<TChain>): Promise<EstimateGasReturnType>;
|
59
|
+
export {};
|
59
60
|
//# sourceMappingURL=estimateGas.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateGas.d.ts","sourceRoot":"","sources":["../../../actions/public/estimateGas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EACL,KAAK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AAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,GAAG;IACpD,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAA;IACvC,aAAa,CAAC,EAAE,aAAa,GAAG,SAAS,CAAA;CAC1C,GAAG,CACE;IACE,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,GACD;IACE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAChC,CACJ,CAAA;AACH,KAAK,oBAAoB,CACvB,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,2BAA2B,CAAC,MAAM,CAAC,CAAA;AAEvC,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAA;AAE1C,MAAM,MAAM,oBAAoB,GAAG,6BAA6B,CAC5D,qBAAqB,GACrB,oBAAoB,GACpB,gBAAgB,GAChB,sBAAsB,CACzB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAsB,WAAW,CAC/B,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,SAAS,EAEhD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAClC,OAAO,CAAC,qBAAqB,CAAC,CA0EhC"}
|
@@ -3,12 +3,16 @@ import type { Transport } from '../../clients/transports/createTransport.js';
|
|
3
3
|
import type { ErrorType } from '../../errors/utils.js';
|
4
4
|
import type { Chain } from '../../types/chain.js';
|
5
5
|
import type { RequestErrorType } from '../../utils/buildRequest.js';
|
6
|
+
import { type GetCacheErrorType } from '../../utils/promise/withCache.js';
|
6
7
|
export type GetBlockNumberParameters = {
|
7
8
|
/** Time (in ms) that cached block number will remain in memory. */
|
8
9
|
cacheTime?: number | undefined;
|
9
10
|
};
|
10
11
|
export type GetBlockNumberReturnType = bigint;
|
11
12
|
export type GetBlockNumberErrorType = RequestErrorType | ErrorType;
|
13
|
+
/** @internal */
|
14
|
+
export type GetBlockNumberCacheErrorType = GetCacheErrorType | ErrorType;
|
15
|
+
/** @internal */
|
12
16
|
export declare function getBlockNumberCache(id: string): {
|
13
17
|
clear: () => void;
|
14
18
|
promise: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getBlockNumber.d.ts","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;
|
1
|
+
{"version":3,"file":"getBlockNumber.d.ts","sourceRoot":"","sources":["../../../actions/public/getBlockNumber.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,EACL,KAAK,iBAAiB,EAGvB,MAAM,kCAAkC,CAAA;AAEzC,MAAM,MAAM,wBAAwB,GAAG;IACrC,mEAAmE;IACnE,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAIlE,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,GAAG,SAAS,CAAA;AAExE,gBAAgB;AAChB,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;EAE7C;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,SAA4B,EAAE,GAAE,wBAA6B,GAC9D,OAAO,CAAC,wBAAwB,CAAC,CASnC"}
|
@@ -10,9 +10,9 @@ export type SendUnsignedTransactionParameters<TChain extends Chain | undefined =
|
|
10
10
|
export type SendUnsignedTransactionReturnType = Hash;
|
11
11
|
export type SendUnsignedTransactionErrorType = RequestErrorType | ErrorType;
|
12
12
|
/**
|
13
|
-
*
|
13
|
+
* Executes a transaction regardless of the signature.
|
14
14
|
*
|
15
|
-
* - Docs: https://viem.sh/docs/actions/test/
|
15
|
+
* - Docs: https://viem.sh/docs/actions/test/sendUnsignedTransaction#sendunsignedtransaction
|
16
16
|
*
|
17
17
|
* @param client - Client to use
|
18
18
|
* @param parameters – {@link SendUnsignedTransactionParameters}
|
@@ -26,13 +26,6 @@ export type PrepareTransactionRequestRequest<chain extends Chain | undefined = C
|
|
26
26
|
export type PrepareTransactionRequestParameters<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, accountOverride extends Account | Address | undefined = Account | Address | undefined, request extends PrepareTransactionRequestRequest<chain, chainOverride> = PrepareTransactionRequestRequest<chain, chainOverride>> = request & GetAccountParameter<account, accountOverride, false> & GetChainParameter<chain, chainOverride> & GetTransactionRequestKzgParameter<request> & {
|
27
27
|
chainId?: number | undefined;
|
28
28
|
};
|
29
|
-
export type PrepareTransactionRequestReturnType_<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, accountOverride extends Account | Address | undefined = Account | Address | undefined, _derivedAccount extends Account | Address | undefined = DeriveAccount<account, accountOverride>, _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>> = UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'> & GetChainParameter<chain, chainOverride> & (_derivedAccount extends Account ? {
|
30
|
-
account: _derivedAccount;
|
31
|
-
from: Address;
|
32
|
-
} : {
|
33
|
-
account?: undefined;
|
34
|
-
from?: undefined;
|
35
|
-
});
|
36
29
|
export type PrepareTransactionRequestReturnType<chain extends Chain | undefined = Chain | undefined, account extends Account | undefined = Account | undefined, chainOverride extends Chain | undefined = Chain | undefined, accountOverride extends Account | Address | undefined = Account | Address | undefined, request extends PrepareTransactionRequestRequest<chain, chainOverride> = PrepareTransactionRequestRequest<chain, chainOverride>, _derivedAccount extends Account | Address | undefined = DeriveAccount<account, accountOverride>, _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>, _transactionType = request['type'] extends string | undefined ? request['type'] : GetTransactionType<request> extends 'legacy' ? unknown : GetTransactionType<request>, _transactionRequest extends TransactionRequest = (_transactionType extends 'legacy' ? TransactionRequestLegacy : never) | (_transactionType extends 'eip1559' ? TransactionRequestEIP1559 : never) | (_transactionType extends 'eip2930' ? TransactionRequestEIP2930 : never) | (_transactionType extends 'eip4844' ? TransactionRequestEIP4844 : never)> = Prettify<UnionRequiredBy<Extract<UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'> & (_derivedChain extends Chain ? {
|
37
30
|
chain: _derivedChain;
|
38
31
|
} : {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"prepareTransactionRequest.d.ts","sourceRoot":"","sources":["../../../actions/wallet/prepareTransactionRequest.ts"],"names":[],"mappings":"A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O,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAE/E,MAAM,MAAM,
|
1
|
+
{"version":3,"file":"prepareTransactionRequest.d.ts","sourceRoot":"","sources":["../../../actions/wallet/prepareTransactionRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,4CAA4C,CAAA;AACnD,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EACL,KAAK,iBAAiB,EAEvB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,6CAA6C,CAAA;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AAKvE,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAEhF,OAAO,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAC7D,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,oBAAoB,CAAA;AAC3E,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,yBAAyB,EACzB,yBAAyB,EACzB,wBAAwB,EAEzB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EACV,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,SAAS,EACT,eAAe,EAChB,MAAM,sBAAsB,CAAA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AgC,CAAC,KAAK,EAAE,aAAa,CAAC,EAC5E,eAAe,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,EACjE,aAAa,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAEnD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,IAAI,EAAE,mCAAmC,CACvC,KAAK,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,OAAO,CACR,GACA,OAAO,CACR,mCAAmC,CACjC,KAAK,EACL,OAAO,EACP,aAAa,EACb,eAAe,EACf,OAAO,CACR,CACF,CA0JA"}
|
@@ -13,10 +13,10 @@ import type { TypedDataDefinition } from '../../types/typedData.js';
|
|
13
13
|
import type { RequestErrorType } from '../../utils/buildRequest.js';
|
14
14
|
import type { IsHexErrorType } from '../../utils/data/isHex.js';
|
15
15
|
import type { StringifyErrorType } from '../../utils/stringify.js';
|
16
|
-
import { type GetTypesForEIP712DomainErrorType, type ValidateTypedDataErrorType } from '../../utils/typedData.js';
|
16
|
+
import { type GetTypesForEIP712DomainErrorType, type SerializeTypedDataErrorType, type ValidateTypedDataErrorType } from '../../utils/typedData.js';
|
17
17
|
export type SignTypedDataParameters<typedData extends TypedData | Record<string, unknown> = TypedData, primaryType extends keyof typedData | 'EIP712Domain' = keyof typedData, account extends Account | undefined = undefined, primaryTypes = typedData extends TypedData ? keyof typedData : string> = TypedDataDefinition<typedData, primaryType, primaryTypes> & GetAccountParameter<account>;
|
18
18
|
export type SignTypedDataReturnType = Hex;
|
19
|
-
export type SignTypedDataErrorType = AccountNotFoundErrorType | ParseAccountErrorType | GetTypesForEIP712DomainErrorType | ValidateTypedDataErrorType | StringifyErrorType | SignTypedDataErrorType_account | IsHexErrorType | RequestErrorType | ErrorType;
|
19
|
+
export type SignTypedDataErrorType = AccountNotFoundErrorType | ParseAccountErrorType | GetTypesForEIP712DomainErrorType | ValidateTypedDataErrorType | StringifyErrorType | SignTypedDataErrorType_account | IsHexErrorType | RequestErrorType | SerializeTypedDataErrorType | ErrorType;
|
20
20
|
/**
|
21
21
|
* Signs typed data and calculates an Ethereum-specific signature in [https://eips.ethereum.org/EIPS/eip-712](https://eips.ethereum.org/EIPS/eip-712): `sign(keccak256("\x19\x01" ‖ domainSeparator ‖ hashStruct(message)))`
|
22
22
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../actions/wallet/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,EACL,KAAK,qBAAqB,EAE3B,MAAM,sCAAsC,CAAA;AAC7C,OAAO,KAAK,EAAE,sBAAsB,IAAI,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AACrH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,EAEL,KAAK,wBAAwB,EAC9B,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AACnE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AAClE,OAAO,EACL,KAAK,gCAAg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