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":"parseTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/parseTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,uBAAuB,EAE5B,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO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KAAK,SAAS,QAAQ,GAAG,6BAA6B,GAAG,KAAK,CAAC,GACpE,uBAAuB,CAAA;AAE3B,MAAM,MAAM,yBAAyB,GACjC,qCAAqC,GACrC,gCAAgC,GAChC,gCAAgC,GAChC,gCAAgC,GAChC,+BAA+B,CAAA;AAEnC,wBAAgB,gBAAgB,CAC9B,KAAK,CAAC,WAAW,SAAS,4BAA4B,EACtD,qBAAqB,EAAE,WAAW,GAAG,0BAA0B,CAAC,WAAW,CAAC,CAqB7E;AAED,KAAK,gCAAgC,GACjC,iCAAiC,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,6BAA6B,GAC7B,SAAS,CAAA;AA6Fb,KAAK,gCAAgC,GACjC,iCAAiC,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,6BAA6B,GAC7B,SAAS,CAAA;AAwEb,KAAK,gCAAgC,GACjC,iCAAiC,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,6BAA6B,GAC7B,SAAS,CAAA;AA0Db,KAAK,+BAA+B,GAChC,gCAAgC,GAChC,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,SAAS,CAAA;AAuEb,
|
1
|
+
{"version":3,"file":"parseTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/parseTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,uBAAuB,EAE5B,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAA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KAAK,6BAA6B,GAC9B,oBAAoB,GACpB,eAAe,GACf,SAAS,CAAA"}
|
@@ -21,6 +21,6 @@ type SerializeTransactionEIP4844ErrorType = AssertTransactionEIP4844ErrorType |
|
|
21
21
|
type SerializeTransactionEIP1559ErrorType = AssertTransactionEIP1559ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
|
22
22
|
type SerializeTransactionEIP2930ErrorType = AssertTransactionEIP2930ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
|
23
23
|
type SerializeTransactionLegacyErrorType = AssertTransactionLegacyErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | ErrorType;
|
24
|
-
export declare function toYParitySignatureArray(transaction: TransactionSerializableGeneric,
|
24
|
+
export declare function toYParitySignatureArray(transaction: TransactionSerializableGeneric, signature_?: Signature | undefined): `0x${string}`[];
|
25
25
|
export {};
|
26
26
|
//# sourceMappingURL=serializeTransaction.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAGV,SAAS,EAEV,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,uBAAuB,EAIvB,8BAA8B,EAE9B,qBAAqB,EAKrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,0BAA0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,SAAS,GAChC,+BAA+B,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAyBhE;AAED,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,2BAA2B,GAC3B,qCAAqC,GACrC,sBAAsB,GACtB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAwFb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAyCb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AA+Bb,KAAK,mCAAmC,GACpC,gCAAgC,GAChC,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,SAAS,CAAA;AAwDb,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,8BAA8B,EAC3C,
|
1
|
+
{"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAGV,SAAS,EAEV,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,EACV,uBAAuB,EAIvB,8BAA8B,EAE9B,qBAAqB,EAKrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EACL,KAAK,2BAA2B,EAEjC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,KAAK,qCAAqC,EAE3C,MAAM,yCAAyC,CAA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ED,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,2BAA2B,GAC3B,qCAAqC,GACrC,sBAAsB,GACtB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAwFb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAyCb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AA+Bb,KAAK,mCAAmC,GACpC,gCAAgC,GAChC,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,SAAS,CAAA;AAwDb,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,8BAA8B,EAC3C,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,mBAqBnC"}
|
@@ -8,6 +8,7 @@ import type { ContractConstructorArgs } from '../../types/contract.js';
|
|
8
8
|
import type { Hash, Hex } from '../../types/misc.js';
|
9
9
|
import type { ChainEIP712 } from '../types/chain.js';
|
10
10
|
import type { ContractDeploymentType } from '../types/contract.js';
|
11
|
+
import { type EncodeDeployDataErrorType } from '../utils/abi/encodeDeployData.js';
|
11
12
|
import { type SendEip712TransactionErrorType, type SendEip712TransactionReturnType } from './sendEip712Transaction.js';
|
12
13
|
export type DeployContractParameters<abi extends Abi | readonly unknown[] = Abi, chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, allArgs = ContractConstructorArgs<abi>> = DeployContractParameters_<abi, chain, account, chainOverride, allArgs> & {
|
13
14
|
deploymentType?: ContractDeploymentType;
|
@@ -15,7 +16,7 @@ export type DeployContractParameters<abi extends Abi | readonly unknown[] = Abi,
|
|
15
16
|
salt?: Hash;
|
16
17
|
};
|
17
18
|
export type DeployContractReturnType = SendEip712TransactionReturnType;
|
18
|
-
export type DeployContractErrorType = SendEip712TransactionErrorType | ErrorType;
|
19
|
+
export type DeployContractErrorType = EncodeDeployDataErrorType | SendEip712TransactionErrorType | ErrorType;
|
19
20
|
/**
|
20
21
|
* Deploys a contract to the network, given bytecode and constructor arguments using EIP712 transaction.
|
21
22
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"deployContract.d.ts","sourceRoot":"","sources":["../../../zksync/actions/deployContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AACnH,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,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAEpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"deployContract.d.ts","sourceRoot":"","sources":["../../../zksync/actions/deployContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AACnH,OAAO,KAAK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A4BG;AACH,wBAAgB,cAAc,CAC5B,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,KAAK,SAAS,WAAW,GAAG,SAAS,EACrC,OAAO,SAAS,OAAO,GAAG,SAAS,EACnC,aAAa,SAAS,WAAW,GAAG,SAAS,EAE7C,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EAC/C,UAAU,EAAE,wBAAwB,CAAC,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,GACvE,OAAO,CAAC,wBAAwB,CAAC,CA0BnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateGasL1ToL2.d.ts","sourceRoot":"","sources":["../../../zksync/actions/estimateGasL1ToL2.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"estimateGasL1ToL2.d.ts","sourceRoot":"","sources":["../../../zksync/actions/estimateGasL1ToL2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AACxF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE,MAAM,MAAM,2BAA2B,CACrC,KAAK,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EAC/D,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACvD,yBAAyB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;AAE7C,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAA;AAEhD,wBAAsB,iBAAiB,CACrC,KAAK,SAAS,WAAW,GAAG,SAAS,EACrC,OAAO,SAAS,OAAO,GAAG,SAAS,EAEnC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,qBAAqB,CAAC,EAChE,UAAU,EAAE,2BAA2B,CAAC,KAAK,EAAE,OAAO,CAAC,GACtD,OAAO,CAAC,2BAA2B,CAAC,CAgBtC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getAllBalances.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getAllBalances.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;
|
1
|
+
{"version":3,"file":"getAllBalances.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getAllBalances.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,CAAA;AAEjC,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,CAAA;AAEjE,wBAAsB,cAAc,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,EAClE,UAAU,EAAE,wBAAwB,CAAC,QAAQ,CAAC,GAC7C,OAAO,CAAC,wBAAwB,CAAC,CAWnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL1Allowance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1Allowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;
|
1
|
+
{"version":3,"file":"getL1Allowance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1Allowance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,GAAG;IAClC,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,KAAK,EAAE,OAAO,CAAA;CACf,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAA;AAE7C,MAAM,MAAM,uBAAuB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAEtE,wBAAsB,cAAc,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,UAAU,EAAE,wBAAwB,CAAC,QAAQ,CAAC,GAC7C,OAAO,CAAC,wBAAwB,CAAC,CAYnC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL1Balance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1Balance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;
|
1
|
+
{"version":3,"file":"getL1Balance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1Balance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAMtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAQjD,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GAAG,CAChE;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,iDAAiD;IACjD,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAChC,CACJ,CAAA;AAEH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAEpE,wBAAsB,YAAY,CAChC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,GAAG,CAAC,UAAe,CAAC,EAAE,QAAQ,SAAS,SAAS,GAC5C,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,GAClC,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAC1C,OAAO,CAAC,sBAAsB,CAAC,CAoBjC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import type { Address } from '../../accounts/index.js';
|
2
2
|
import type { Client } from '../../clients/createClient.js';
|
3
3
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
4
|
-
import type {
|
5
|
-
import type {
|
4
|
+
import type { AccountNotFoundErrorType } from '../../errors/account.js';
|
5
|
+
import type { BaseErrorType } from '../../errors/base.js';
|
6
6
|
import type { Account, GetAccountParameter } from '../../types/account.js';
|
7
7
|
import type { BlockTag } from '../../types/block.js';
|
8
8
|
import type { Chain } from '../../types/chain.js';
|
9
|
-
import {
|
9
|
+
import { type TokenIsEthErrorType } from '../errors/token-is-eth.js';
|
10
10
|
export type GetL1TokenBalanceParameters<TAccount extends Account | undefined = Account | undefined> = GetAccountParameter<TAccount> & {
|
11
11
|
token: Address;
|
12
12
|
} & ({
|
@@ -19,6 +19,6 @@ export type GetL1TokenBalanceParameters<TAccount extends Account | undefined = A
|
|
19
19
|
blockTag?: BlockTag | undefined;
|
20
20
|
});
|
21
21
|
export type GetL1TokenBalanceReturnType = bigint;
|
22
|
-
export type GetL1TokenBalanceErrorType =
|
22
|
+
export type GetL1TokenBalanceErrorType = AccountNotFoundErrorType | TokenIsEthErrorType | BaseErrorType;
|
23
23
|
export declare function getL1TokenBalance<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: Client<Transport, TChain, TAccount>, parameters: GetL1TokenBalanceParameters<TAccount>): Promise<GetL1TokenBalanceReturnType>;
|
24
24
|
//# sourceMappingURL=getL1TokenBalance.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getL1TokenBalance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1TokenBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"getL1TokenBalance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1TokenBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAGtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAA;AAGlC,MAAM,MAAM,2BAA2B,CACrC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,GAAG;IAAE,KAAK,EAAE,OAAO,CAAA;CAAE,GAAG,CACnD;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,iDAAiD;IACjD,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAChC,CACJ,CAAA;AAEH,MAAM,MAAM,2BAA2B,GAAG,MAAM,CAAA;AAEhD,MAAM,MAAM,0BAA0B,GAClC,wBAAwB,GACxB,mBAAmB,GACnB,aAAa,CAAA;AAEjB,wBAAsB,iBAAiB,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,UAAU,EAAE,2BAA2B,CAAC,QAAQ,CAAC,GAChD,OAAO,CAAC,2BAA2B,CAAC,CAoBtC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Account } from '../../accounts/types.js';
|
2
|
-
import type { SendTransactionErrorType, SendTransactionParameters
|
2
|
+
import type { SendTransactionErrorType, SendTransactionParameters, SendTransactionRequest, SendTransactionReturnType } from '../../actions/wallet/sendTransaction.js';
|
3
3
|
import type { Client } from '../../clients/createClient.js';
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
5
5
|
import type { ChainEIP712 } from '../types/chain.js';
|
6
|
-
export type SendEip712TransactionParameters<
|
6
|
+
export type SendEip712TransactionParameters<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, request extends SendTransactionRequest<chain, chainOverride> = SendTransactionRequest<chain, chainOverride>> = SendTransactionParameters<chain, account, chainOverride, request>;
|
7
7
|
export type SendEip712TransactionReturnType = SendTransactionReturnType;
|
8
8
|
export type SendEip712TransactionErrorType = SendTransactionErrorType;
|
9
9
|
/**
|
@@ -46,5 +46,5 @@ export type SendEip712TransactionErrorType = SendTransactionErrorType;
|
|
46
46
|
* value: 1000000000000000000n,
|
47
47
|
* })
|
48
48
|
*/
|
49
|
-
export declare function sendEip712Transaction<
|
49
|
+
export declare function sendEip712Transaction<chain extends ChainEIP712 | undefined, account extends Account | undefined, const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, chain, account>, parameters: SendEip712TransactionParameters<chain, account, chainOverride, request>): Promise<SendEip712TransactionReturnType>;
|
50
50
|
//# sourceMappingURL=sendEip712Transaction.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendEip712Transaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAKtD,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,
|
1
|
+
{"version":3,"file":"sendEip712Transaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAKtD,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,EACzB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAU5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD,MAAM,MAAM,+BAA+B,CACzC,KAAK,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EAC/D,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EACzD,aAAa,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EACvE,OAAO,SAAS,sBAAsB,CACpC,KAAK,EACL,aAAa,CACd,GAAG,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,IAC9C,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;AAErE,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CAAA;AAEvE,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,qBAAqB,CACzC,KAAK,SAAS,WAAW,GAAG,SAAS,EACrC,OAAO,SAAS,OAAO,GAAG,SAAS,EACnC,KAAK,CAAC,OAAO,SAAS,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,EAClE,aAAa,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EAEzD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,+BAA+B,CACzC,KAAK,EACL,OAAO,EACP,aAAa,EACb,OAAO,CACR,GACA,OAAO,CAAC,+BAA+B,CAAC,CA8C1C"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import type { Account } from '../../accounts/types.js';
|
2
|
-
import type { SendTransactionErrorType as
|
2
|
+
import type { SendTransactionRequest, SendTransactionErrorType as core_SendTransactionErrorType, SendTransactionParameters as core_SendTransactionParameters, SendTransactionReturnType as core_SendTransactionReturnType } from '../../actions/wallet/sendTransaction.js';
|
3
3
|
import type { Client } from '../../clients/createClient.js';
|
4
4
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
5
5
|
import type { ChainEIP712 } from '../types/chain.js';
|
6
|
-
export type SendTransactionParameters<
|
7
|
-
export type SendTransactionReturnType =
|
8
|
-
export type SendTransactionErrorType =
|
6
|
+
export type SendTransactionParameters<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, request extends SendTransactionRequest<chain, chainOverride> = SendTransactionRequest<chain, chainOverride>> = core_SendTransactionParameters<chain, account, chainOverride, request>;
|
7
|
+
export type SendTransactionReturnType = core_SendTransactionReturnType;
|
8
|
+
export type SendTransactionErrorType = core_SendTransactionErrorType;
|
9
9
|
/**
|
10
10
|
* Creates, signs, and sends a new transaction to the network.
|
11
11
|
*
|
@@ -50,5 +50,5 @@ export type SendTransactionErrorType = SendTransactionErrorType_;
|
|
50
50
|
* value: 1000000000000000000n,
|
51
51
|
* })
|
52
52
|
*/
|
53
|
-
export declare function sendTransaction<
|
53
|
+
export declare function sendTransaction<chain extends ChainEIP712 | undefined, account extends Account | undefined, const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, chain, account>, parameters: SendTransactionParameters<chain, account, chainOverride, request>): Promise<SendTransactionReturnType>;
|
54
54
|
//# sourceMappingURL=sendTransaction.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtD,OAAO,KAAK,EACV,wBAAwB,IAAI,
|
1
|
+
{"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtD,OAAO,KAAK,EACV,sBAAsB,EACtB,wBAAwB,IAAI,6BAA6B,EACzD,yBAAyB,IAAI,8BAA8B,EAC3D,yBAAyB,IAAI,8BAA8B,EAC5D,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM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ot":"","sources":["../../../zksync/constants/contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,IAAI,CAAA"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import type { Abi } from 'abitype';
|
2
|
+
import type { SendTransactionRequest } from '../../actions/wallet/sendTransaction.js';
|
2
3
|
import type { Client } from '../../clients/createClient.js';
|
3
4
|
import type { WalletActions } from '../../clients/decorators/wallet.js';
|
4
5
|
import type { Transport } from '../../clients/transports/createTransport.js';
|
@@ -52,7 +53,7 @@ export type Eip712WalletActions<chain extends ChainEIP712 | undefined = ChainEIP
|
|
52
53
|
* value: 1000000000000000000n,
|
53
54
|
* })
|
54
55
|
*/
|
55
|
-
sendTransaction: <chainOverride extends ChainEIP712 | undefined = undefined>(args: SendTransactionParameters<chain, account, chainOverride>) => Promise<SendTransactionReturnType>;
|
56
|
+
sendTransaction: <const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(args: SendTransactionParameters<chain, account, chainOverride, request>) => Promise<SendTransactionReturnType>;
|
56
57
|
/**
|
57
58
|
* Signs a transaction.
|
58
59
|
*
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eip712.d.ts","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAE9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM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/index.d.ts
CHANGED
@@ -29,6 +29,7 @@ export { serializeTransaction } from './serializers.js';
|
|
29
29
|
export type { ZkSyncBlock, ZkSyncBlockOverrides, ZkSyncRpcBlock, ZkSyncRpcBlockOverrides, } from './types/block.js';
|
30
30
|
export type { ChainEIP712 } from './types/chain.js';
|
31
31
|
export type { EIP712Domain, EIP712DomainFn, ZkSyncEip712Meta, } from './types/eip712.js';
|
32
|
+
export type { CommonDataRawBlockTransaction, RawBlockTransactions, PublicZkSyncRpcSchema, } from './types/eip1193.js';
|
32
33
|
export type { ZkSyncFeeValues } from './types/fee.js';
|
33
34
|
export type { ZkSyncL2ToL1Log, ZkSyncLog, ZkSyncRpcL2ToL1Log, ZkSyncRpcLog, } from './types/log.js';
|
34
35
|
export type { TransactionRequestEIP712, ZkSyncEIP712TransactionSignable, ZkSyncRawBlockTransactions, ZkSyncRpcTransaction, ZkSyncRpcTransactionEIP712, ZkSyncRpcTransactionPriority, ZkSyncRpcTransactionReceiptOverrides, ZkSyncRpcTransactionRequest, ZkSyncRpcTransactionRequestEIP712, ZkSyncTransaction, ZkSyncTransactionEIP712, ZkSyncTransactionReceipt, ZkSyncTransactionReceiptOverrides, ZkSyncTransactionRequest, ZkSyncTransactionRequestEIP712, ZkSyncTransactionSerializable, ZkSyncTransactionSerializableEIP712, ZkSyncTransactionSerialized, ZkSyncTransactionSerializedEIP712, ZkSyncTransactionType, ZkSyncTransactionDetails, } from './types/transaction.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../zksync/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,cAAc,GACf,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,KAAK,wBAAwB,EAC7B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EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,iCAAiC,EACjC,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,wCAAwC,EAC7C,8BAA8B,GAC/B,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,wBAAwB,GACzB,MAAM,+CAA+C,CAAA"}
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import type { Signature } from '../index.js';
|
2
|
-
import type { ZkSyncTransactionSerializable
|
2
|
+
import type { ZkSyncTransactionSerializable } from './types/transaction.js';
|
3
3
|
export declare function serializeTransaction(transaction: ZkSyncTransactionSerializable, signature?: Signature | undefined): `0x02${string}` | `0x01${string}` | `0x03${string}` | import("../index.js").TransactionSerializedLegacy | `0x71${string}`;
|
4
4
|
export declare const serializers: {
|
5
5
|
readonly transaction: typeof serializeTransaction;
|
6
6
|
};
|
7
|
-
export type SerializeTransactionEIP712ReturnType = ZkSyncTransactionSerializedEIP712;
|
8
7
|
//# sourceMappingURL=serializers.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../zksync/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,OAAO,KAAK,EACV,6BAA6B,
|
1
|
+
{"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../zksync/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,OAAO,KAAK,EACV,6BAA6B,EAG9B,MAAM,wBAAwB,CAAA;AAI/B,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,6BAA6B,EAC1C,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,6HAUlC;AAED,eAAO,MAAM,WAAW;;CAEa,CAAA"}
|
@@ -2,8 +2,8 @@ import type { ChainFormatters } from '../../types/chain.js';
|
|
2
2
|
import type { Chain, ChainFormatter } from '../../types/chain.js';
|
3
3
|
import type { EIP712DomainFn } from './eip712.js';
|
4
4
|
import type { ZkSyncTransactionSerializable } from './transaction.js';
|
5
|
-
export type ChainEIP712<formatters extends ChainFormatters | undefined = ChainFormatters | undefined, TransactionSignable = {}> = Chain<formatters, {
|
5
|
+
export type ChainEIP712<formatters extends ChainFormatters | undefined = ChainFormatters | undefined, TransactionSignable = {}, transactionSerializable extends ZkSyncTransactionSerializable = formatters extends ChainFormatters ? formatters['transactionRequest'] extends ChainFormatter ? ZkSyncTransactionSerializable & Parameters<formatters['transactionRequest']['format']>[0] : ZkSyncTransactionSerializable : ZkSyncTransactionSerializable> = Chain<formatters, {
|
6
6
|
/** Return EIP712 Domain for EIP712 transaction */
|
7
|
-
getEip712Domain?: EIP712DomainFn<
|
7
|
+
getEip712Domain?: EIP712DomainFn<transactionSerializable, TransactionSignable> | undefined;
|
8
8
|
}>;
|
9
9
|
//# sourceMappingURL=chain.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../zksync/types/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,WAAW,CACrB,UAAU,SAAS,eAAe,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,EAC5E,mBAAmB,GAAG,EAAE,
|
1
|
+
{"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../zksync/types/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,WAAW,CACrB,UAAU,SAAS,eAAe,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,EAC5E,mBAAmB,GAAG,EAAE,EAExB,uBAAuB,SACrB,6BAA6B,GAAG,UAAU,SAAS,eAAe,GAChE,UAAU,CAAC,oBAAoB,CAAC,SAAS,cAAc,GACrD,6BAA6B,GAC3B,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAC3D,6BAA6B,GAC/B,6BAA6B,IAC/B,KAAK,CACP,UAAU,EACV;IACE,kDAAkD;IAClD,eAAe,CAAC,EACZ,cAAc,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,GAC5D,SAAS,CAAA;CACd,CACF,CAAA"}
|
@@ -17,14 +17,14 @@ export type CommonDataRawBlockTransaction = {
|
|
17
17
|
};
|
18
18
|
export type RawBlockTransactions = {
|
19
19
|
common_data: {
|
20
|
-
L1?: {
|
20
|
+
L1?: ({
|
21
21
|
serialId: number;
|
22
22
|
deadlineBlock: number;
|
23
23
|
layer2TipFee: Hex;
|
24
24
|
fullFee: Hex;
|
25
25
|
opProcessingType: string;
|
26
26
|
priorityQueueType: string;
|
27
|
-
} & CommonDataRawBlockTransaction;
|
27
|
+
} & CommonDataRawBlockTransaction) | undefined;
|
28
28
|
L2?: {
|
29
29
|
nonce: number;
|
30
30
|
fee: ZkSyncFee<Hex>;
|
@@ -39,10 +39,10 @@ export type RawBlockTransactions = {
|
|
39
39
|
paymaster: Address;
|
40
40
|
paymasterInput: Uint8Array;
|
41
41
|
};
|
42
|
-
};
|
43
|
-
ProtocolUpgrade?: {
|
42
|
+
} | undefined;
|
43
|
+
ProtocolUpgrade?: ({
|
44
44
|
upgradeId: string;
|
45
|
-
} & CommonDataRawBlockTransaction;
|
45
|
+
} & CommonDataRawBlockTransaction) | undefined;
|
46
46
|
};
|
47
47
|
execute: {
|
48
48
|
calldata: Hash;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"eip1193.d.ts","sourceRoot":"","sources":["../../../zksync/types/eip1193.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EACzB,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,MAAM,EAAE,OAAO,CAAA;IACf,YAAY,EAAE,GAAG,CAAA;IACjB,QAAQ,EAAE,GAAG,CAAA;IACb,kBAAkB,EAAE,GAAG,CAAA;IACvB,OAAO,EAAE,IAAI,CAAA;IACb,QAAQ,EAAE,MAAM,CAAA;IAChB,eAAe,EAAE,IAAI,CAAA;IACrB,MAAM,EAAE,GAAG,CAAA;IACX,eAAe,EAAE,OAAO,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,EAAE;QACX,EAAE,CAAC,
|
1
|
+
{"version":3,"file":"eip1193.d.ts","sourceRoot":"","sources":["../../../zksync/types/eip1193.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAA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AAE,0BAA0B,CAAA;QAClC,UAAU,EAAE,SAAS,CAAA;QACrB,UAAU,EAAE,OAAO,CAAA;KACpB;IACD;QACE,MAAM,EAAE,2BAA2B,CAAA;QACnC,UAAU,EAAE,SAAS,CAAA;QACrB,UAAU,EAAE,OAAO,CAAA;KACpB;CACF,CAAA"}
|
@@ -1,13 +1,18 @@
|
|
1
1
|
import type { Abi } from 'abitype';
|
2
|
+
import type { ErrorType } from '../../../errors/utils.js';
|
2
3
|
import type { ContractConstructorArgs } from '../../../types/contract.js';
|
3
4
|
import type { Hash } from '../../../types/misc.js';
|
4
5
|
import type { EncodeDeployDataParameters as EncodeDeployDataParameters_, EncodeDeployDataReturnType } from '../../../utils/abi/encodeDeployData.js';
|
6
|
+
import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
|
5
7
|
import type { ContractDeploymentType } from '../../types/contract.js';
|
8
|
+
import { type HashBytecodeErrorType } from '../hashBytecode.js';
|
9
|
+
/** @internal */
|
6
10
|
export type EncodeDeployDataParameters<abi extends Abi | readonly unknown[] = Abi, hasConstructor = abi extends Abi ? Abi extends abi ? true : [Extract<abi[number], {
|
7
11
|
type: 'constructor';
|
8
12
|
}>] extends [never] ? false : true : true, allArgs = ContractConstructorArgs<abi>> = EncodeDeployDataParameters_<abi, hasConstructor, allArgs> & {
|
9
13
|
deploymentType?: ContractDeploymentType | undefined;
|
10
14
|
salt?: Hash | undefined;
|
11
15
|
};
|
16
|
+
export type EncodeDeployDataErrorType = EncodeFunctionDataErrorType | HashBytecodeErrorType | ErrorType;
|
12
17
|
export declare function encodeDeployData<const abi extends Abi | readonly unknown[]>(parameters: EncodeDeployDataParameters<abi>): EncodeDeployDataReturnType;
|
13
18
|
//# sourceMappingURL=encodeDeployData.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"encodeDeployData.d.ts","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"AAAA,OAAO,K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A2B,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAA;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,yBAAyB,GACjC,2BAA2B,GAC3B,qBAAqB,GACrB,SAAS,CAAA;AAEb,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACzE,UAAU,EAAE,0BAA0B,CAAC,GAAG,CAAC,GAC1C,0BAA0B,CAsC5B"}
|
@@ -3,7 +3,9 @@ import type { ExactPartial } from '../../types/utils.js';
|
|
3
3
|
import { type AssertRequestErrorType } from '../../utils/transaction/assertRequest.js';
|
4
4
|
import type { zkSync } from '../../zksync/chains.js';
|
5
5
|
import type { SendTransactionParameters } from '../actions/sendTransaction.js';
|
6
|
+
import { type InvalidEip712TransactionErrorType } from '../errors/transaction.js';
|
6
7
|
export type AssertEip712RequestParameters = ExactPartial<SendTransactionParameters<typeof zkSync>>;
|
7
|
-
|
8
|
+
/** @internal */
|
9
|
+
export type AssertEip712RequestErrorType = InvalidEip712TransactionErrorType | AssertRequestErrorType | ErrorType;
|
8
10
|
export declare function assertEip712Request(args: AssertEip712RequestParameters): void;
|
9
11
|
//# sourceMappingURL=assertEip712Request.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"assertEip712Request.d.ts","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;
|
1
|
+
{"version":3,"file":"assertEip712Request.d.ts","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,0BAA0B,CAAA;AAGjC,MAAM,MAAM,6BAA6B,GAAG,YAAY,CACtD,yBAAyB,CAAC,OAAO,MAAM,CAAC,CACzC,CAAA;AAED,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GACpC,iCAAiC,GACjC,sBAAsB,GACtB,SAAS,CAAA;AAEb,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,QAItE"}
|
@@ -1,3 +1,8 @@
|
|
1
|
+
import type { ErrorType } from '../../errors/utils.js';
|
1
2
|
import type { Hex } from '../../types/misc.js';
|
3
|
+
import { type ToBytesErrorType } from '../../utils/encoding/toBytes.js';
|
4
|
+
import { type Sha256ErrorType } from '../../utils/hash/sha256.js';
|
5
|
+
import { type BytecodeLengthExceedsMaxSizeErrorType, type BytecodeLengthInWordsMustBeOddErrorType, type BytecodeLengthMustBeDivisibleBy32ErrorType } from '../errors/bytecode.js';
|
6
|
+
export type HashBytecodeErrorType = BytecodeLengthExceedsMaxSizeErrorType | BytecodeLengthInWordsMustBeOddErrorType | BytecodeLengthMustBeDivisibleBy32ErrorType | Sha256ErrorType | ToBytesErrorType | ErrorType;
|
2
7
|
export declare function hashBytecode(bytecode: Hex): Uint8Array;
|
3
8
|
//# sourceMappingURL=hashBytecode.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hashBytecode.d.ts","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;
|
1
|
+
{"version":3,"file":"hashBytecode.d.ts","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAE9C,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,iCAAiC,CAAA;AAChF,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,4BAA4B,CAAA;AAEzE,OAAO,EAEL,KAAK,qCAAqC,EAE1C,KAAK,uCAAuC,EAE5C,KAAK,0CAA0C,EAChD,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,qBAAqB,GAC7B,qCAAqC,GACrC,uCAAuC,GACvC,0CAA0C,GAC1C,eAAe,GACf,gBAAgB,GAChB,SAAS,CAAA;AAEb,wBAAgB,YAAY,CAAC,QAAQ,EAAE,GAAG,GAAG,UAAU,CAoCtD"}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import type { HDKey } from '@scure/bip32'
|
2
|
-
|
3
1
|
import { type ToHexErrorType, toHex } from '../utils/encoding/toHex.js'
|
4
2
|
|
5
3
|
import type { ErrorType } from '../errors/utils.js'
|
4
|
+
import type { HDKey } from '../types/account.js'
|
6
5
|
import {
|
7
6
|
type PrivateKeyToAccountErrorType,
|
8
7
|
privateKeyToAccount,
|
package/accounts/types.ts
CHANGED
package/actions/public/call.ts
CHANGED
@@ -67,10 +67,6 @@ import type {
|
|
67
67
|
AssertRequestParameters,
|
68
68
|
} from '../../utils/transaction/assertRequest.js'
|
69
69
|
|
70
|
-
export type FormattedCall<
|
71
|
-
TChain extends Chain | undefined = Chain | undefined,
|
72
|
-
> = FormattedTransactionRequest<TChain>
|
73
|
-
|
74
70
|
export type CallParameters<
|
75
71
|
TChain extends Chain | undefined = Chain | undefined,
|
76
72
|
> = UnionOmit<FormattedCall<TChain>, 'from'> & {
|
@@ -92,6 +88,8 @@ export type CallParameters<
|
|
92
88
|
blockTag?: BlockTag | undefined
|
93
89
|
}
|
94
90
|
)
|
91
|
+
type FormattedCall<TChain extends Chain | undefined = Chain | undefined> =
|
92
|
+
FormattedTransactionRequest<TChain>
|
95
93
|
|
96
94
|
export type CallReturnType = { data: Hex | undefined }
|
97
95
|
|
@@ -256,7 +254,7 @@ type ScheduleMulticallParameters<TChain extends Chain | undefined> = Pick<
|
|
256
254
|
to: Address
|
257
255
|
}
|
258
256
|
|
259
|
-
|
257
|
+
type ScheduleMulticallErrorType =
|
260
258
|
| GetChainContractAddressErrorType
|
261
259
|
| NumberToHexErrorType
|
262
260
|
| CreateBatchSchedulerErrorType
|
@@ -345,8 +343,10 @@ async function scheduleMulticall<TChain extends Chain | undefined>(
|
|
345
343
|
return { data: returnData }
|
346
344
|
}
|
347
345
|
|
346
|
+
/** @internal */
|
348
347
|
export type GetRevertErrorDataErrorType = ErrorType
|
349
348
|
|
349
|
+
/** @internal */
|
350
350
|
export function getRevertErrorData(err: unknown) {
|
351
351
|
if (!(err instanceof BaseError)) return undefined
|
352
352
|
const error = err.walk() as RawContractError
|
@@ -37,10 +37,6 @@ import {
|
|
37
37
|
prepareTransactionRequest,
|
38
38
|
} from '../wallet/prepareTransactionRequest.js'
|
39
39
|
|
40
|
-
export type FormattedEstimateGas<
|
41
|
-
TChain extends Chain | undefined = Chain | undefined,
|
42
|
-
> = FormattedTransactionRequest<TChain>
|
43
|
-
|
44
40
|
export type EstimateGasParameters<
|
45
41
|
TChain extends Chain | undefined = Chain | undefined,
|
46
42
|
> = UnionOmit<FormattedEstimateGas<TChain>, 'from'> & {
|
@@ -61,6 +57,9 @@ export type EstimateGasParameters<
|
|
61
57
|
blockTag?: BlockTag | undefined
|
62
58
|
}
|
63
59
|
)
|
60
|
+
type FormattedEstimateGas<
|
61
|
+
TChain extends Chain | undefined = Chain | undefined,
|
62
|
+
> = FormattedTransactionRequest<TChain>
|
64
63
|
|
65
64
|
export type EstimateGasReturnType = bigint
|
66
65
|
|
@@ -3,7 +3,11 @@ 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 {
|
6
|
+
import {
|
7
|
+
type GetCacheErrorType,
|
8
|
+
getCache,
|
9
|
+
withCache,
|
10
|
+
} from '../../utils/promise/withCache.js'
|
7
11
|
|
8
12
|
export type GetBlockNumberParameters = {
|
9
13
|
/** Time (in ms) that cached block number will remain in memory. */
|
@@ -16,6 +20,10 @@ export type GetBlockNumberErrorType = RequestErrorType | ErrorType
|
|
16
20
|
|
17
21
|
const cacheKey = (id: string) => `blockNumber.${id}`
|
18
22
|
|
23
|
+
/** @internal */
|
24
|
+
export type GetBlockNumberCacheErrorType = GetCacheErrorType | ErrorType
|
25
|
+
|
26
|
+
/** @internal */
|
19
27
|
export function getBlockNumberCache(id: string) {
|
20
28
|
return getCache(cacheKey(id))
|
21
29
|
}
|
@@ -24,9 +24,9 @@ export type SendUnsignedTransactionReturnType = Hash
|
|
24
24
|
export type SendUnsignedTransactionErrorType = RequestErrorType | ErrorType
|
25
25
|
|
26
26
|
/**
|
27
|
-
*
|
27
|
+
* Executes a transaction regardless of the signature.
|
28
28
|
*
|
29
|
-
* - Docs: https://viem.sh/docs/actions/test/
|
29
|
+
* - Docs: https://viem.sh/docs/actions/test/sendUnsignedTransaction#sendunsignedtransaction
|
30
30
|
*
|
31
31
|
* @param client - Client to use
|
32
32
|
* @param parameters – {@link SendUnsignedTransactionParameters}
|
@@ -115,26 +115,6 @@ export type PrepareTransactionRequestParameters<
|
|
115
115
|
GetChainParameter<chain, chainOverride> &
|
116
116
|
GetTransactionRequestKzgParameter<request> & { chainId?: number | undefined }
|
117
117
|
|
118
|
-
export type PrepareTransactionRequestReturnType_<
|
119
|
-
chain extends Chain | undefined = Chain | undefined,
|
120
|
-
account extends Account | undefined = Account | undefined,
|
121
|
-
chainOverride extends Chain | undefined = Chain | undefined,
|
122
|
-
accountOverride extends Account | Address | undefined =
|
123
|
-
| Account
|
124
|
-
| Address
|
125
|
-
| undefined,
|
126
|
-
///
|
127
|
-
_derivedAccount extends Account | Address | undefined = DeriveAccount<
|
128
|
-
account,
|
129
|
-
accountOverride
|
130
|
-
>,
|
131
|
-
_derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>,
|
132
|
-
> = UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'> &
|
133
|
-
GetChainParameter<chain, chainOverride> &
|
134
|
-
(_derivedAccount extends Account
|
135
|
-
? { account: _derivedAccount; from: Address }
|
136
|
-
: { account?: undefined; from?: undefined })
|
137
|
-
|
138
118
|
export type PrepareTransactionRequestReturnType<
|
139
119
|
chain extends Chain | undefined = Chain | undefined,
|
140
120
|
account extends Account | undefined = Account | undefined,
|
@@ -22,6 +22,7 @@ import type { IsHexErrorType } from '../../utils/data/isHex.js'
|
|
22
22
|
import type { StringifyErrorType } from '../../utils/stringify.js'
|
23
23
|
import {
|
24
24
|
type GetTypesForEIP712DomainErrorType,
|
25
|
+
type SerializeTypedDataErrorType,
|
25
26
|
type ValidateTypedDataErrorType,
|
26
27
|
getTypesForEIP712Domain,
|
27
28
|
serializeTypedData,
|
@@ -48,6 +49,7 @@ export type SignTypedDataErrorType =
|
|
48
49
|
| SignTypedDataErrorType_account
|
49
50
|
| IsHexErrorType
|
50
51
|
| RequestErrorType
|
52
|
+
| SerializeTypedDataErrorType
|
51
53
|
| ErrorType
|
52
54
|
|
53
55
|
/**
|