viem 2.13.6 → 2.13.8
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/README.md +0 -6
- 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/fees.js.map +1 -1
- package/_cjs/celo/formatters.js.map +1 -1
- package/_cjs/celo/index.js.map +1 -1
- package/_cjs/celo/serializers.js.map +1 -1
- package/_cjs/celo/utils.js.map +1 -1
- package/_cjs/chains/definitions/defichainEvm.js +1 -1
- package/_cjs/chains/definitions/defichainEvm.js.map +1 -1
- package/_cjs/chains/definitions/defichainEvmTestnet.js +1 -1
- package/_cjs/chains/definitions/defichainEvmTestnet.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/sei.js +1 -0
- package/_cjs/chains/definitions/sei.js.map +1 -1
- package/_cjs/clients/createClient.js +2 -2
- package/_cjs/clients/createClient.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/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 +7 -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/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/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/index.js +4 -3
- package/_cjs/utils/index.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/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/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/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/fees.js.map +1 -1
- 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/serializers.js.map +1 -1
- package/_esm/celo/utils.js +1 -0
- package/_esm/celo/utils.js.map +1 -1
- package/_esm/chains/definitions/defichainEvm.js +1 -1
- package/_esm/chains/definitions/defichainEvm.js.map +1 -1
- package/_esm/chains/definitions/defichainEvmTestnet.js +1 -1
- package/_esm/chains/definitions/defichainEvmTestnet.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/sei.js +1 -0
- package/_esm/chains/definitions/sei.js.map +1 -1
- package/_esm/clients/createClient.js +1 -1
- package/_esm/clients/createClient.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/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 +5 -4
- 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/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/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/index.js +1 -1
- package/_esm/utils/index.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/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/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/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 +725 -747
- package/_types/celo/chainConfig.d.ts.map +1 -1
- package/_types/celo/fees.d.ts.map +1 -1
- package/_types/celo/formatters.d.ts +360 -371
- 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/serializers.d.ts.map +1 -1
- package/_types/celo/types.d.ts +27 -27
- package/_types/celo/types.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/acala.d.ts +2 -2
- package/_types/chains/definitions/ancient8.d.ts +207 -218
- package/_types/chains/definitions/ancient8.d.ts.map +1 -1
- package/_types/chains/definitions/ancient8Sepolia.d.ts +207 -218
- package/_types/chains/definitions/ancient8Sepolia.d.ts.map +1 -1
- package/_types/chains/definitions/anvil.d.ts +2 -2
- package/_types/chains/definitions/apexTestnet.d.ts +2 -2
- package/_types/chains/definitions/arbitrum.d.ts +2 -2
- package/_types/chains/definitions/arbitrumGoerli.d.ts +2 -2
- package/_types/chains/definitions/arbitrumNova.d.ts +2 -2
- package/_types/chains/definitions/arbitrumSepolia.d.ts +2 -2
- package/_types/chains/definitions/areonNetwork.d.ts +2 -2
- package/_types/chains/definitions/areonNetworkTestnet.d.ts +2 -2
- package/_types/chains/definitions/astar.d.ts +2 -2
- package/_types/chains/definitions/astarZkEVM.d.ts +2 -2
- package/_types/chains/definitions/astarZkyoto.d.ts +2 -2
- package/_types/chains/definitions/aurora.d.ts +2 -2
- package/_types/chains/definitions/auroraTestnet.d.ts +2 -2
- package/_types/chains/definitions/auroria.d.ts +2 -2
- package/_types/chains/definitions/avalanche.d.ts +2 -2
- package/_types/chains/definitions/avalancheFuji.d.ts +2 -2
- package/_types/chains/definitions/bahamut.d.ts +2 -2
- package/_types/chains/definitions/base.d.ts +207 -218
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +207 -218
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +207 -218
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/beam.d.ts +2 -2
- package/_types/chains/definitions/beamTestnet.d.ts +2 -2
- package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +2 -2
- package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +2 -2
- package/_types/chains/definitions/berachainTestnet.d.ts +2 -2
- package/_types/chains/definitions/bevmMainnet.d.ts +2 -2
- package/_types/chains/definitions/bitTorrent.d.ts +2 -2
- package/_types/chains/definitions/bitTorrentTestnet.d.ts +2 -2
- package/_types/chains/definitions/bitkub.d.ts +2 -2
- package/_types/chains/definitions/bitkubTestnet.d.ts +2 -2
- package/_types/chains/definitions/blast.d.ts +2 -2
- package/_types/chains/definitions/blastSepolia.d.ts +2 -2
- package/_types/chains/definitions/bob.d.ts +2 -2
- package/_types/chains/definitions/boba.d.ts +2 -2
- package/_types/chains/definitions/bronos.d.ts +2 -2
- package/_types/chains/definitions/bronosTestnet.d.ts +2 -2
- package/_types/chains/definitions/bsc.d.ts +2 -2
- package/_types/chains/definitions/bscGreenfield.d.ts +2 -2
- package/_types/chains/definitions/bscTestnet.d.ts +2 -2
- package/_types/chains/definitions/btr.d.ts +2 -2
- package/_types/chains/definitions/btrTestnet.d.ts +2 -2
- package/_types/chains/definitions/bxn.d.ts +2 -2
- package/_types/chains/definitions/bxnTestnet.d.ts +2 -2
- package/_types/chains/definitions/canto.d.ts +2 -2
- package/_types/chains/definitions/celo.d.ts +728 -750
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +728 -750
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/chiliz.d.ts +2 -2
- package/_types/chains/definitions/classic.d.ts +2 -2
- package/_types/chains/definitions/confluxESpace.d.ts +2 -2
- package/_types/chains/definitions/confluxESpaceTestnet.d.ts +2 -2
- package/_types/chains/definitions/coreDao.d.ts +2 -2
- package/_types/chains/definitions/cronos.d.ts +2 -2
- package/_types/chains/definitions/cronosTestnet.d.ts +2 -2
- package/_types/chains/definitions/crossbell.d.ts +2 -2
- package/_types/chains/definitions/cyber.d.ts +2 -2
- package/_types/chains/definitions/cyberTestnet.d.ts +2 -2
- package/_types/chains/definitions/darwinia.d.ts +2 -2
- package/_types/chains/definitions/defichainEvm.d.ts +3 -3
- package/_types/chains/definitions/defichainEvmTestnet.d.ts +3 -3
- package/_types/chains/definitions/degen.d.ts +2 -2
- package/_types/chains/definitions/dfk.d.ts +2 -2
- package/_types/chains/definitions/dodochainTestnet.d.ts +2 -2
- package/_types/chains/definitions/dogechain.d.ts +2 -2
- package/_types/chains/definitions/dreyerxMainnet.d.ts +2 -2
- package/_types/chains/definitions/edgeless.d.ts +2 -2
- package/_types/chains/definitions/edgelessTestnet.d.ts +2 -2
- package/_types/chains/definitions/edgeware.d.ts +2 -2
- package/_types/chains/definitions/edgewareTestnet.d.ts +2 -2
- package/_types/chains/definitions/ekta.d.ts +2 -2
- package/_types/chains/definitions/ektaTestnet.d.ts +2 -2
- package/_types/chains/definitions/eon.d.ts +2 -2
- package/_types/chains/definitions/eos.d.ts +2 -2
- package/_types/chains/definitions/eosTestnet.d.ts +2 -2
- package/_types/chains/definitions/etherlinkTestnet.d.ts +2 -2
- package/_types/chains/definitions/evmos.d.ts +2 -2
- package/_types/chains/definitions/evmosTestnet.d.ts +2 -2
- package/_types/chains/definitions/fantom.d.ts +2 -2
- package/_types/chains/definitions/fantomSonicTestnet.d.ts +2 -2
- package/_types/chains/definitions/fantomTestnet.d.ts +2 -2
- package/_types/chains/definitions/fibo.d.ts +2 -2
- package/_types/chains/definitions/filecoin.d.ts +2 -2
- package/_types/chains/definitions/filecoinCalibration.d.ts +2 -2
- package/_types/chains/definitions/filecoinHyperspace.d.ts +2 -2
- package/_types/chains/definitions/flare.d.ts +2 -2
- package/_types/chains/definitions/flareTestnet.d.ts +2 -2
- package/_types/chains/definitions/flowMainnet.d.ts +2 -2
- package/_types/chains/definitions/flowPreviewnet.d.ts +2 -2
- package/_types/chains/definitions/flowTestnet.d.ts +2 -2
- package/_types/chains/definitions/foundry.d.ts +2 -2
- package/_types/chains/definitions/fraxtal.d.ts +207 -218
- package/_types/chains/definitions/fraxtal.d.ts.map +1 -1
- package/_types/chains/definitions/fraxtalTestnet.d.ts +207 -218
- package/_types/chains/definitions/fraxtalTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/funkiSepolia.d.ts +207 -218
- package/_types/chains/definitions/funkiSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/fuse.d.ts +2 -2
- package/_types/chains/definitions/fuseSparknet.d.ts +2 -2
- package/_types/chains/definitions/gnosis.d.ts +2 -2
- package/_types/chains/definitions/gnosisChiado.d.ts +2 -2
- package/_types/chains/definitions/gobi.d.ts +2 -2
- package/_types/chains/definitions/goerli.d.ts +2 -2
- package/_types/chains/definitions/haqqMainnet.d.ts +2 -2
- package/_types/chains/definitions/haqqTestedge2.d.ts +2 -2
- package/_types/chains/definitions/hardhat.d.ts +2 -2
- package/_types/chains/definitions/harmonyOne.d.ts +2 -2
- package/_types/chains/definitions/hedera.d.ts +2 -2
- package/_types/chains/definitions/hederaPreviewnet.d.ts +2 -2
- package/_types/chains/definitions/hederaTestnet.d.ts +2 -2
- package/_types/chains/definitions/holesky.d.ts +2 -2
- package/_types/chains/definitions/immutableZkEvm.d.ts +2 -2
- package/_types/chains/definitions/immutableZkEvmTestnet.d.ts +2 -2
- package/_types/chains/definitions/inEVM.d.ts +2 -2
- package/_types/chains/definitions/iotex.d.ts +2 -2
- package/_types/chains/definitions/iotexTestnet.d.ts +2 -2
- package/_types/chains/definitions/jbc.d.ts +2 -2
- package/_types/chains/definitions/jbcTestnet.d.ts +2 -2
- package/_types/chains/definitions/kakarotSepolia.d.ts +2 -2
- package/_types/chains/definitions/karura.d.ts +2 -2
- package/_types/chains/definitions/kava.d.ts +2 -2
- package/_types/chains/definitions/kavaTestnet.d.ts +2 -2
- package/_types/chains/definitions/kcc.d.ts +2 -2
- package/_types/chains/definitions/klaytn.d.ts +2 -2
- package/_types/chains/definitions/klaytnBaobab.d.ts +2 -2
- package/_types/chains/definitions/kroma.d.ts +2 -2
- package/_types/chains/definitions/kromaSepolia.d.ts +2 -2
- package/_types/chains/definitions/l3x.d.ts +2 -2
- package/_types/chains/definitions/l3xTestnet.d.ts +2 -2
- package/_types/chains/definitions/lightlinkPegasus.d.ts +2 -2
- package/_types/chains/definitions/lightlinkPhoenix.d.ts +2 -2
- package/_types/chains/definitions/linea.d.ts +2 -2
- package/_types/chains/definitions/lineaGoerli.d.ts +2 -2
- package/_types/chains/definitions/lineaSepolia.d.ts +2 -2
- package/_types/chains/definitions/lineaTestnet.d.ts +2 -2
- package/_types/chains/definitions/lisk.d.ts +171 -171
- package/_types/chains/definitions/liskSepolia.d.ts +207 -218
- package/_types/chains/definitions/liskSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/localhost.d.ts +2 -2
- package/_types/chains/definitions/lukso.d.ts +2 -2
- package/_types/chains/definitions/luksoTestnet.d.ts +2 -2
- package/_types/chains/definitions/lycan.d.ts +2 -2
- package/_types/chains/definitions/mainnet.d.ts +2 -2
- package/_types/chains/definitions/mandala.d.ts +2 -2
- package/_types/chains/definitions/manta.d.ts +2 -2
- package/_types/chains/definitions/mantaSepoliaTestnet.d.ts +2 -2
- package/_types/chains/definitions/mantaTestnet.d.ts +2 -2
- package/_types/chains/definitions/mantle.d.ts +2 -2
- package/_types/chains/definitions/mantleSepoliaTestnet.d.ts +2 -2
- package/_types/chains/definitions/mantleTestnet.d.ts +2 -2
- package/_types/chains/definitions/merlin.d.ts +2 -2
- package/_types/chains/definitions/metachain.d.ts +2 -2
- package/_types/chains/definitions/metachainIstanbul.d.ts +2 -2
- package/_types/chains/definitions/metalL2.d.ts +207 -218
- package/_types/chains/definitions/metalL2.d.ts.map +1 -1
- package/_types/chains/definitions/meter.d.ts +2 -2
- package/_types/chains/definitions/meterTestnet.d.ts +2 -2
- package/_types/chains/definitions/metis.d.ts +2 -2
- package/_types/chains/definitions/metisGoerli.d.ts +2 -2
- package/_types/chains/definitions/mev.d.ts +2 -2
- package/_types/chains/definitions/mevTestnet.d.ts +2 -2
- package/_types/chains/definitions/mintSepoliaTestnet.d.ts +2 -2
- package/_types/chains/definitions/mode.d.ts +2 -2
- package/_types/chains/definitions/modeTestnet.d.ts +2 -2
- package/_types/chains/definitions/moonbaseAlpha.d.ts +2 -2
- package/_types/chains/definitions/moonbeam.d.ts +2 -2
- package/_types/chains/definitions/moonbeamDev.d.ts +2 -2
- package/_types/chains/definitions/moonriver.d.ts +2 -2
- package/_types/chains/definitions/morphSepolia.d.ts +2 -2
- package/_types/chains/definitions/nautilus.d.ts +2 -2
- package/_types/chains/definitions/neonDevnet.d.ts +2 -2
- package/_types/chains/definitions/neonMainnet.d.ts +2 -2
- package/_types/chains/definitions/nexi.d.ts +2 -2
- package/_types/chains/definitions/nexilix.d.ts +2 -2
- package/_types/chains/definitions/oasisTestnet.d.ts +2 -2
- package/_types/chains/definitions/oasys.d.ts +2 -2
- package/_types/chains/definitions/okc.d.ts +2 -2
- package/_types/chains/definitions/oortmainnetDev.d.ts +2 -2
- package/_types/chains/definitions/opBNB.d.ts +2 -2
- package/_types/chains/definitions/opBNBTestnet.d.ts +2 -2
- package/_types/chains/definitions/optimism.d.ts +212 -218
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +207 -218
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +207 -218
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/otimDevnet.d.ts +2 -2
- package/_types/chains/definitions/palm.d.ts +2 -2
- package/_types/chains/definitions/palmTestnet.d.ts +2 -2
- package/_types/chains/definitions/pgn.d.ts +208 -219
- package/_types/chains/definitions/pgn.d.ts.map +1 -1
- package/_types/chains/definitions/pgnTestnet.d.ts +208 -219
- package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/phoenix.d.ts +2 -2
- package/_types/chains/definitions/playfiAlbireo.d.ts +171 -171
- package/_types/chains/definitions/plinga.d.ts +2 -2
- package/_types/chains/definitions/plumeTestnet.d.ts +2 -2
- package/_types/chains/definitions/polygon.d.ts +2 -2
- package/_types/chains/definitions/polygonAmoy.d.ts +2 -2
- package/_types/chains/definitions/polygonMumbai.d.ts +2 -2
- package/_types/chains/definitions/polygonZkEvm.d.ts +2 -2
- package/_types/chains/definitions/polygonZkEvmCardona.d.ts +2 -2
- package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +2 -2
- package/_types/chains/definitions/pulsechain.d.ts +2 -2
- package/_types/chains/definitions/pulsechainV4.d.ts +2 -2
- package/_types/chains/definitions/qMainnet.d.ts +2 -2
- package/_types/chains/definitions/qTestnet.d.ts +2 -2
- package/_types/chains/definitions/redstone.d.ts +2 -2
- package/_types/chains/definitions/reyaNetwork.d.ts +2 -2
- package/_types/chains/definitions/rollux.d.ts +2 -2
- package/_types/chains/definitions/rolluxTestnet.d.ts +2 -2
- package/_types/chains/definitions/ronin.d.ts +2 -2
- package/_types/chains/definitions/rootstock.d.ts +2 -2
- package/_types/chains/definitions/rootstockTestnet.d.ts +2 -2
- package/_types/chains/definitions/rss3.d.ts +207 -218
- package/_types/chains/definitions/rss3.d.ts.map +1 -1
- package/_types/chains/definitions/rss3Sepolia.d.ts +207 -218
- package/_types/chains/definitions/rss3Sepolia.d.ts.map +1 -1
- package/_types/chains/definitions/saigon.d.ts +2 -2
- package/_types/chains/definitions/sapphire.d.ts +2 -2
- package/_types/chains/definitions/sapphireTestnet.d.ts +2 -2
- package/_types/chains/definitions/satoshivm.d.ts +2 -2
- package/_types/chains/definitions/satoshivmTestnet.d.ts +2 -2
- package/_types/chains/definitions/scroll.d.ts +2 -2
- package/_types/chains/definitions/scrollSepolia.d.ts +2 -2
- package/_types/chains/definitions/sei.d.ts +3 -2
- package/_types/chains/definitions/sei.d.ts.map +1 -1
- package/_types/chains/definitions/seiDevnet.d.ts +2 -2
- package/_types/chains/definitions/sepolia.d.ts +2 -2
- package/_types/chains/definitions/shardeumSphinx.d.ts +2 -2
- package/_types/chains/definitions/shibarium.d.ts +2 -2
- package/_types/chains/definitions/shimmer.d.ts +2 -2
- package/_types/chains/definitions/shimmerTestnet.d.ts +2 -2
- package/_types/chains/definitions/skale/brawl.d.ts +2 -2
- package/_types/chains/definitions/skale/calypso.d.ts +2 -2
- package/_types/chains/definitions/skale/calypsoTestnet.d.ts +2 -2
- package/_types/chains/definitions/skale/cryptoBlades.d.ts +2 -2
- package/_types/chains/definitions/skale/cryptoColosseum.d.ts +2 -2
- package/_types/chains/definitions/skale/europa.d.ts +2 -2
- package/_types/chains/definitions/skale/europaTestnet.d.ts +2 -2
- package/_types/chains/definitions/skale/exorde.d.ts +2 -2
- package/_types/chains/definitions/skale/humanProtocol.d.ts +2 -2
- package/_types/chains/definitions/skale/nebula.d.ts +2 -2
- package/_types/chains/definitions/skale/nebulaTestnet.d.ts +2 -2
- package/_types/chains/definitions/skale/razor.d.ts +2 -2
- package/_types/chains/definitions/skale/titan.d.ts +2 -2
- package/_types/chains/definitions/skale/titanTestnet.d.ts +2 -2
- package/_types/chains/definitions/songbird.d.ts +2 -2
- package/_types/chains/definitions/songbirdTestnet.d.ts +2 -2
- package/_types/chains/definitions/spicy.d.ts +2 -2
- package/_types/chains/definitions/stratis.d.ts +2 -2
- package/_types/chains/definitions/syscoin.d.ts +2 -2
- package/_types/chains/definitions/syscoinTestnet.d.ts +2 -2
- package/_types/chains/definitions/taiko.d.ts +2 -2
- package/_types/chains/definitions/taikoHekla.d.ts +2 -2
- package/_types/chains/definitions/taikoJolnir.d.ts +2 -2
- package/_types/chains/definitions/taikoKatla.d.ts +2 -2
- package/_types/chains/definitions/taikoTestnetSepolia.d.ts +2 -2
- package/_types/chains/definitions/taraxa.d.ts +2 -2
- package/_types/chains/definitions/taraxaTestnet.d.ts +2 -2
- package/_types/chains/definitions/telcoinTestnet.d.ts +2 -2
- package/_types/chains/definitions/telos.d.ts +2 -2
- package/_types/chains/definitions/telosTestnet.d.ts +2 -2
- package/_types/chains/definitions/tenet.d.ts +2 -2
- package/_types/chains/definitions/thaiChain.d.ts +2 -2
- package/_types/chains/definitions/thunderTestnet.d.ts +2 -2
- package/_types/chains/definitions/vechain.d.ts +2 -2
- package/_types/chains/definitions/wanchain.d.ts +2 -2
- package/_types/chains/definitions/wanchainTestnet.d.ts +2 -2
- package/_types/chains/definitions/wemix.d.ts +2 -2
- package/_types/chains/definitions/wemixTestnet.d.ts +2 -2
- package/_types/chains/definitions/xLayer.d.ts +2 -2
- package/_types/chains/definitions/xLayerTestnet.d.ts +2 -2
- package/_types/chains/definitions/xdc.d.ts +2 -2
- package/_types/chains/definitions/xdcTestnet.d.ts +2 -2
- package/_types/chains/definitions/yooldoVerse.d.ts +2 -2
- package/_types/chains/definitions/yooldoVerseTestnet.d.ts +2 -2
- package/_types/chains/definitions/zetachain.d.ts +2 -2
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts +2 -2
- package/_types/chains/definitions/zhejiang.d.ts +2 -2
- package/_types/chains/definitions/zilliqa.d.ts +2 -2
- package/_types/chains/definitions/zilliqaTestnet.d.ts +2 -2
- package/_types/chains/definitions/zkFair.d.ts +2 -2
- package/_types/chains/definitions/zkFairTestnet.d.ts +2 -2
- package/_types/chains/definitions/zkSync.d.ts +171 -171
- package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +171 -171
- package/_types/chains/definitions/zkSyncLocalNode.d.ts +171 -171
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +171 -171
- package/_types/chains/definitions/zkSyncTestnet.d.ts +171 -171
- package/_types/chains/definitions/zora.d.ts +207 -218
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +207 -218
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/zoraTestnet.d.ts +207 -218
- package/_types/chains/definitions/zoraTestnet.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 +5 -4
- 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/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 +10 -10
- 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/getWithdrawalStatus.d.ts +2 -1
- package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +206 -217
- package/_types/op-stack/chainConfig.d.ts.map +1 -1
- package/_types/op-stack/formatters.d.ts +206 -217
- package/_types/op-stack/formatters.d.ts.map +1 -1
- 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/block.d.ts +15 -15
- package/_types/types/block.d.ts.map +1 -1
- package/_types/types/chain.d.ts +28 -39
- package/_types/types/chain.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +2 -2
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/types/fee.d.ts +20 -15
- package/_types/types/fee.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/rpc.d.ts +13 -13
- package/_types/types/rpc.d.ts.map +1 -1
- package/_types/types/transaction.d.ts +77 -77
- package/_types/types/transaction.d.ts.map +1 -1
- package/_types/types/transport.d.ts +1 -1
- package/_types/types/transport.d.ts.map +1 -1
- package/_types/types/utils.d.ts +18 -5
- 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/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/chain/extractChain.d.ts +4 -2
- package/_types/utils/chain/extractChain.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 +65 -65
- package/_types/utils/formatters/transactionRequest.d.ts +41 -41
- package/_types/utils/hash/normalizeSignature.d.ts +3 -2
- package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
- package/_types/utils/index.d.ts +1 -1
- package/_types/utils/index.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/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/sendTransaction.d.ts.map +1 -1
- package/_types/zksync/chainConfig.d.ts +170 -170
- package/_types/zksync/constants/contract.d.ts +0 -1
- package/_types/zksync/constants/contract.d.ts.map +1 -1
- package/_types/zksync/formatters.d.ts +170 -170
- 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/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/fees.ts +0 -1
- package/celo/formatters.ts +3 -3
- package/celo/index.ts +5 -2
- package/celo/serializers.ts +0 -1
- package/celo/types.ts +89 -96
- package/celo/utils.ts +1 -0
- package/chains/definitions/defichainEvm.ts +1 -1
- package/chains/definitions/defichainEvmTestnet.ts +1 -1
- package/chains/definitions/optimism.ts +5 -0
- package/chains/definitions/sei.ts +1 -0
- package/clients/createClient.ts +4 -2
- package/clients/transports/fallback.ts +14 -12
- 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/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 +23 -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/getWithdrawalStatus.ts +6 -1
- package/op-stack/index.ts +0 -1
- package/package.json +3 -2
- package/types/account.ts +1 -11
- package/types/block.ts +16 -16
- package/types/chain.ts +44 -60
- package/types/eip1193.ts +2 -2
- package/types/fee.ts +23 -21
- package/types/kzg.ts +2 -1
- package/types/proof.ts +2 -2
- package/types/rpc.ts +30 -31
- package/types/transaction.ts +216 -207
- package/types/transport.ts +3 -1
- package/types/utils.ts +23 -5
- package/utils/abi/decodeAbiParameters.ts +6 -1
- package/utils/abi/encodeAbiParameters.ts +22 -19
- 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/chain/extractChain.ts +2 -2
- 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/index.ts +3 -0
- 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 +9 -4
- 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/sendTransaction.ts +1 -2
- package/zksync/constants/contract.ts +0 -1
- package/zksync/index.ts +5 -0
- package/zksync/serializers.ts +1 -2
- 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
package/types/transaction.ts
CHANGED
@@ -13,11 +13,15 @@ import type {
|
|
13
13
|
Branded,
|
14
14
|
ExactPartial,
|
15
15
|
IsNever,
|
16
|
+
Omit,
|
16
17
|
OneOf,
|
17
18
|
RequiredBy,
|
18
19
|
} from './utils.js'
|
19
20
|
|
20
|
-
export type AccessList = {
|
21
|
+
export type AccessList = readonly {
|
22
|
+
address: Address
|
23
|
+
storageKeys: readonly Hex[]
|
24
|
+
}[]
|
21
25
|
|
22
26
|
export type TransactionType =
|
23
27
|
| 'legacy'
|
@@ -27,66 +31,66 @@ export type TransactionType =
|
|
27
31
|
| (string & {})
|
28
32
|
|
29
33
|
export type TransactionReceipt<
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
+
quantity = bigint,
|
35
|
+
index = number,
|
36
|
+
status = 'success' | 'reverted',
|
37
|
+
type = TransactionType,
|
34
38
|
> = {
|
35
39
|
/** The actual value per gas deducted from the sender's account for blob gas. Only specified for blob transactions as defined by EIP-4844. */
|
36
|
-
blobGasPrice?:
|
40
|
+
blobGasPrice?: quantity | undefined
|
37
41
|
/** The amount of blob gas used. Only specified for blob transactions as defined by EIP-4844. */
|
38
|
-
blobGasUsed?:
|
42
|
+
blobGasUsed?: quantity | undefined
|
39
43
|
/** Hash of block containing this transaction */
|
40
44
|
blockHash: Hash
|
41
45
|
/** Number of block containing this transaction */
|
42
|
-
blockNumber:
|
46
|
+
blockNumber: quantity
|
43
47
|
/** Address of new contract or `null` if no contract was created */
|
44
48
|
contractAddress: Address | null | undefined
|
45
49
|
/** Gas used by this and all preceding transactions in this block */
|
46
|
-
cumulativeGasUsed:
|
50
|
+
cumulativeGasUsed: quantity
|
47
51
|
/** Pre-London, it is equal to the transaction's gasPrice. Post-London, it is equal to the actual gas price paid for inclusion. */
|
48
|
-
effectiveGasPrice:
|
52
|
+
effectiveGasPrice: quantity
|
49
53
|
/** Transaction sender */
|
50
54
|
from: Address
|
51
55
|
/** Gas used by this transaction */
|
52
|
-
gasUsed:
|
56
|
+
gasUsed: quantity
|
53
57
|
/** List of log objects generated by this transaction */
|
54
|
-
logs: Log<
|
58
|
+
logs: Log<quantity, index, false>[]
|
55
59
|
/** Logs bloom filter */
|
56
60
|
logsBloom: Hex
|
57
61
|
/** The post-transaction state root. Only specified for transactions included before the Byzantium upgrade. */
|
58
62
|
root?: Hash | undefined
|
59
63
|
/** `success` if this transaction was successful or `reverted` if it failed */
|
60
|
-
status:
|
64
|
+
status: status
|
61
65
|
/** Transaction recipient or `null` if deploying a contract */
|
62
66
|
to: Address | null
|
63
67
|
/** Hash of this transaction */
|
64
68
|
transactionHash: Hash
|
65
69
|
/** Index of this transaction in the block */
|
66
|
-
transactionIndex:
|
70
|
+
transactionIndex: index
|
67
71
|
/** Transaction type */
|
68
|
-
type:
|
72
|
+
type: type
|
69
73
|
}
|
70
74
|
|
71
75
|
export type TransactionBase<
|
72
|
-
|
73
|
-
|
74
|
-
|
76
|
+
quantity = bigint,
|
77
|
+
index = number,
|
78
|
+
isPending extends boolean = boolean,
|
75
79
|
> = {
|
76
80
|
/** Hash of block containing this transaction or `null` if pending */
|
77
|
-
blockHash:
|
81
|
+
blockHash: isPending extends true ? null : Hash
|
78
82
|
/** Number of block containing this transaction or `null` if pending */
|
79
|
-
blockNumber:
|
83
|
+
blockNumber: isPending extends true ? null : quantity
|
80
84
|
/** Transaction sender */
|
81
85
|
from: Address
|
82
86
|
/** Gas provided for transaction execution */
|
83
|
-
gas:
|
87
|
+
gas: quantity
|
84
88
|
/** Hash of this transaction */
|
85
89
|
hash: Hash
|
86
90
|
/** Contract code or a hashed method call */
|
87
91
|
input: Hex
|
88
92
|
/** Unique number identifying this transaction */
|
89
|
-
nonce:
|
93
|
+
nonce: index
|
90
94
|
/** ECDSA signature r */
|
91
95
|
r: Hex
|
92
96
|
/** ECDSA signature s */
|
@@ -94,233 +98,241 @@ export type TransactionBase<
|
|
94
98
|
/** Transaction recipient or `null` if deploying a contract */
|
95
99
|
to: Address | null
|
96
100
|
/** Index of this transaction in the block or `null` if pending */
|
97
|
-
transactionIndex:
|
101
|
+
transactionIndex: isPending extends true ? null : index
|
98
102
|
/** The type represented as hex. */
|
99
103
|
typeHex: Hex | null
|
100
104
|
/** ECDSA recovery ID */
|
101
|
-
v:
|
105
|
+
v: quantity
|
102
106
|
/** Value in wei sent with this transaction */
|
103
|
-
value:
|
107
|
+
value: quantity
|
104
108
|
/** The parity of the y-value of the secp256k1 signature. */
|
105
|
-
yParity:
|
109
|
+
yParity: index
|
106
110
|
}
|
111
|
+
|
107
112
|
export type TransactionLegacy<
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
> = Omit<TransactionBase<
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
113
|
+
quantity = bigint,
|
114
|
+
index = number,
|
115
|
+
isPending extends boolean = boolean,
|
116
|
+
type = 'legacy',
|
117
|
+
> = Omit<TransactionBase<quantity, index, isPending>, 'yParity'> & {
|
118
|
+
/** EIP-2930 Access List. */
|
119
|
+
accessList?: undefined
|
120
|
+
blobVersionedHashes?: undefined
|
121
|
+
/** Chain ID that this transaction is valid on. */
|
122
|
+
chainId?: index | undefined
|
123
|
+
yParity?: undefined
|
124
|
+
type: type
|
125
|
+
} & FeeValuesLegacy<quantity>
|
126
|
+
|
122
127
|
export type TransactionEIP2930<
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
> = TransactionBase<
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
128
|
+
quantity = bigint,
|
129
|
+
index = number,
|
130
|
+
isPending extends boolean = boolean,
|
131
|
+
type = 'eip2930',
|
132
|
+
> = TransactionBase<quantity, index, isPending> & {
|
133
|
+
/** EIP-2930 Access List. */
|
134
|
+
accessList: AccessList
|
135
|
+
blobVersionedHashes?: undefined
|
136
|
+
/** Chain ID that this transaction is valid on. */
|
137
|
+
chainId: index
|
138
|
+
type: type
|
139
|
+
} & FeeValuesLegacy<quantity>
|
140
|
+
|
136
141
|
export type TransactionEIP1559<
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
> = TransactionBase<
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
142
|
+
quantity = bigint,
|
143
|
+
index = number,
|
144
|
+
isPending extends boolean = boolean,
|
145
|
+
type = 'eip1559',
|
146
|
+
> = TransactionBase<quantity, index, isPending> & {
|
147
|
+
/** EIP-2930 Access List. */
|
148
|
+
accessList: AccessList
|
149
|
+
blobVersionedHashes?: undefined
|
150
|
+
/** Chain ID that this transaction is valid on. */
|
151
|
+
chainId: index
|
152
|
+
type: type
|
153
|
+
} & FeeValuesEIP1559<quantity>
|
154
|
+
|
150
155
|
export type TransactionEIP4844<
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
> = TransactionBase<
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
156
|
+
quantity = bigint,
|
157
|
+
index = number,
|
158
|
+
isPending extends boolean = boolean,
|
159
|
+
type = 'eip4844',
|
160
|
+
> = TransactionBase<quantity, index, isPending> & {
|
161
|
+
/** EIP-2930 Access List. */
|
162
|
+
accessList: AccessList
|
163
|
+
/** List of versioned blob hashes associated with the transaction's blobs. */
|
164
|
+
blobVersionedHashes: readonly Hex[]
|
165
|
+
/** Chain ID that this transaction is valid on. */
|
166
|
+
chainId: index
|
167
|
+
type: type
|
168
|
+
} & FeeValuesEIP4844<quantity>
|
169
|
+
|
165
170
|
export type Transaction<
|
166
|
-
|
167
|
-
|
168
|
-
|
171
|
+
quantity = bigint,
|
172
|
+
index = number,
|
173
|
+
isPending extends boolean = boolean,
|
169
174
|
> = OneOf<
|
170
|
-
| TransactionLegacy<
|
171
|
-
| TransactionEIP2930<
|
172
|
-
| TransactionEIP1559<
|
173
|
-
| TransactionEIP4844<
|
175
|
+
| TransactionLegacy<quantity, index, isPending>
|
176
|
+
| TransactionEIP2930<quantity, index, isPending>
|
177
|
+
| TransactionEIP1559<quantity, index, isPending>
|
178
|
+
| TransactionEIP4844<quantity, index, isPending>
|
174
179
|
>
|
175
180
|
|
176
|
-
|
181
|
+
////////////////////////////////////////////////////////////////////////////////////////////
|
182
|
+
// Request
|
183
|
+
////////////////////////////////////////////////////////////////////////////////////////////
|
184
|
+
|
185
|
+
export type TransactionRequestBase<quantity = bigint, index = number> = {
|
177
186
|
/** Contract code or a hashed method call with encoded args */
|
178
187
|
data?: Hex | undefined
|
179
188
|
/** Transaction sender */
|
180
189
|
from: Address
|
181
190
|
/** Gas provided for transaction execution */
|
182
|
-
gas?:
|
191
|
+
gas?: quantity | undefined
|
183
192
|
/** Unique number identifying this transaction */
|
184
|
-
nonce?:
|
193
|
+
nonce?: index | undefined
|
185
194
|
/** Transaction recipient */
|
186
195
|
to?: Address | null | undefined
|
187
196
|
/** Value in wei sent with this transaction */
|
188
|
-
value?:
|
197
|
+
value?: quantity | undefined
|
189
198
|
}
|
199
|
+
|
190
200
|
export type TransactionRequestLegacy<
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
> = TransactionRequestBase<
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
201
|
+
quantity = bigint,
|
202
|
+
index = number,
|
203
|
+
type = 'legacy',
|
204
|
+
> = TransactionRequestBase<quantity, index> & {
|
205
|
+
accessList?: undefined
|
206
|
+
blobs?: undefined
|
207
|
+
type?: type | undefined
|
208
|
+
} & ExactPartial<FeeValuesLegacy<quantity>>
|
209
|
+
|
200
210
|
export type TransactionRequestEIP2930<
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
> = TransactionRequestBase<
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
211
|
+
quantity = bigint,
|
212
|
+
index = number,
|
213
|
+
type = 'eip2930',
|
214
|
+
> = TransactionRequestBase<quantity, index> & {
|
215
|
+
accessList?: AccessList | undefined
|
216
|
+
blobs?: undefined
|
217
|
+
type?: type | undefined
|
218
|
+
} & ExactPartial<FeeValuesLegacy<quantity>>
|
219
|
+
|
210
220
|
export type TransactionRequestEIP1559<
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
> = TransactionRequestBase<
|
215
|
-
ExactPartial<FeeValuesEIP1559<
|
221
|
+
quantity = bigint,
|
222
|
+
index = number,
|
223
|
+
type = 'eip1559',
|
224
|
+
> = TransactionRequestBase<quantity, index> &
|
225
|
+
ExactPartial<FeeValuesEIP1559<quantity>> & {
|
216
226
|
accessList?: AccessList | undefined
|
217
227
|
blobs?: undefined
|
218
|
-
type?:
|
228
|
+
type?: type | undefined
|
219
229
|
}
|
230
|
+
|
220
231
|
export type TransactionRequestEIP4844<
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
> = RequiredBy<TransactionRequestBase<
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
export type TransactionRequest<
|
235
|
-
| TransactionRequestLegacy<
|
236
|
-
| TransactionRequestEIP2930<
|
237
|
-
| TransactionRequestEIP1559<
|
238
|
-
| TransactionRequestEIP4844<
|
232
|
+
quantity = bigint,
|
233
|
+
index = number,
|
234
|
+
type = 'eip4844',
|
235
|
+
> = RequiredBy<TransactionRequestBase<quantity, index>, 'to'> & {
|
236
|
+
accessList?: AccessList | undefined
|
237
|
+
/** The blobs associated with this transaction. */
|
238
|
+
blobs: readonly Hex[] | readonly ByteArray[]
|
239
|
+
blobVersionedHashes?: readonly Hex[] | undefined
|
240
|
+
kzg?: Kzg | undefined
|
241
|
+
sidecars?: readonly BlobSidecar<Hex>[] | undefined
|
242
|
+
type?: type | undefined
|
243
|
+
} & RequiredBy<ExactPartial<FeeValuesEIP4844<quantity>>, 'maxFeePerBlobGas'>
|
244
|
+
|
245
|
+
export type TransactionRequest<quantity = bigint, index = number> = OneOf<
|
246
|
+
| TransactionRequestLegacy<quantity, index>
|
247
|
+
| TransactionRequestEIP2930<quantity, index>
|
248
|
+
| TransactionRequestEIP1559<quantity, index>
|
249
|
+
| TransactionRequestEIP4844<quantity, index>
|
239
250
|
>
|
240
251
|
|
241
252
|
export type TransactionRequestGeneric<
|
242
|
-
|
243
|
-
|
244
|
-
> = TransactionRequestBase<
|
253
|
+
quantity = bigint,
|
254
|
+
index = number,
|
255
|
+
> = TransactionRequestBase<quantity, index> & {
|
245
256
|
accessList?: AccessList | undefined
|
246
257
|
blobs?: readonly Hex[] | readonly ByteArray[] | undefined
|
247
258
|
blobVersionedHashes?: readonly Hex[] | undefined
|
248
|
-
gasPrice?:
|
249
|
-
maxFeePerBlobGas?:
|
250
|
-
maxFeePerGas?:
|
251
|
-
maxPriorityFeePerGas?:
|
259
|
+
gasPrice?: quantity | undefined
|
260
|
+
maxFeePerBlobGas?: quantity | undefined
|
261
|
+
maxFeePerGas?: quantity | undefined
|
262
|
+
maxPriorityFeePerGas?: quantity | undefined
|
252
263
|
type?: string | undefined
|
253
264
|
}
|
254
265
|
|
266
|
+
////////////////////////////////////////////////////////////////////////////////////////////
|
267
|
+
// Serializable
|
268
|
+
////////////////////////////////////////////////////////////////////////////////////////////
|
269
|
+
|
255
270
|
export type TransactionSerializedEIP1559 = `0x02${string}`
|
256
271
|
export type TransactionSerializedEIP2930 = `0x01${string}`
|
257
272
|
export type TransactionSerializedEIP4844 = `0x03${string}`
|
258
273
|
export type TransactionSerializedLegacy = Branded<`0x${string}`, 'legacy'>
|
259
274
|
export type TransactionSerializedGeneric = `0x${string}`
|
260
275
|
export type TransactionSerialized<
|
261
|
-
|
276
|
+
type extends TransactionType = TransactionType,
|
262
277
|
result =
|
263
|
-
| (
|
264
|
-
| (
|
265
|
-
| (
|
266
|
-
| (
|
278
|
+
| (type extends 'eip1559' ? TransactionSerializedEIP1559 : never)
|
279
|
+
| (type extends 'eip2930' ? TransactionSerializedEIP2930 : never)
|
280
|
+
| (type extends 'eip4844' ? TransactionSerializedEIP4844 : never)
|
281
|
+
| (type extends 'legacy' ? TransactionSerializedLegacy : never),
|
267
282
|
> = IsNever<result> extends true ? TransactionSerializedGeneric : result
|
268
283
|
|
269
284
|
export type TransactionSerializableBase<
|
270
|
-
|
271
|
-
|
272
|
-
> = Omit<TransactionRequestBase<
|
285
|
+
quantity = bigint,
|
286
|
+
index = number,
|
287
|
+
> = Omit<TransactionRequestBase<quantity, index>, 'from'> &
|
273
288
|
ExactPartial<Signature>
|
274
289
|
|
275
290
|
export type TransactionSerializableLegacy<
|
276
|
-
|
277
|
-
|
278
|
-
> = TransactionSerializableBase<
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
}
|
291
|
+
quantity = bigint,
|
292
|
+
index = number,
|
293
|
+
> = TransactionSerializableBase<quantity, index> & {
|
294
|
+
accessList?: undefined
|
295
|
+
blobs?: undefined
|
296
|
+
blobVersionedHashes?: undefined
|
297
|
+
chainId?: number | undefined
|
298
|
+
type?: 'legacy' | undefined
|
299
|
+
} & ExactPartial<FeeValuesLegacy<quantity>>
|
286
300
|
|
287
301
|
export type TransactionSerializableEIP2930<
|
288
|
-
|
289
|
-
|
290
|
-
> = TransactionSerializableBase<
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
}
|
302
|
+
quantity = bigint,
|
303
|
+
index = number,
|
304
|
+
> = TransactionSerializableBase<quantity, index> & {
|
305
|
+
accessList?: AccessList | undefined
|
306
|
+
blobs?: undefined
|
307
|
+
blobVersionedHashes?: undefined
|
308
|
+
chainId: number
|
309
|
+
type?: 'eip2930' | undefined
|
310
|
+
yParity?: number | undefined
|
311
|
+
} & ExactPartial<FeeValuesLegacy<quantity>>
|
299
312
|
|
300
313
|
export type TransactionSerializableEIP1559<
|
301
|
-
|
302
|
-
|
303
|
-
> = TransactionSerializableBase<
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
}
|
314
|
+
quantity = bigint,
|
315
|
+
index = number,
|
316
|
+
> = TransactionSerializableBase<quantity, index> & {
|
317
|
+
accessList?: AccessList | undefined
|
318
|
+
blobs?: undefined
|
319
|
+
blobVersionedHashes?: undefined
|
320
|
+
chainId: number
|
321
|
+
type?: 'eip1559' | undefined
|
322
|
+
yParity?: number | undefined
|
323
|
+
} & ExactPartial<FeeValuesEIP1559<quantity>>
|
312
324
|
|
313
325
|
export type TransactionSerializableEIP4844<
|
314
|
-
|
315
|
-
|
316
|
-
> = TransactionSerializableBase<
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
326
|
+
quantity = bigint,
|
327
|
+
index = number,
|
328
|
+
> = TransactionSerializableBase<quantity, index> & {
|
329
|
+
accessList?: AccessList | undefined
|
330
|
+
chainId: number
|
331
|
+
sidecars?: readonly BlobSidecar<Hex>[] | false | undefined
|
332
|
+
type?: 'eip4844' | undefined
|
333
|
+
yParity?: number | undefined
|
334
|
+
} & ExactPartial<FeeValuesEIP4844<quantity>> &
|
335
|
+
OneOf<
|
324
336
|
| {
|
325
337
|
blobs?: readonly Hex[] | readonly ByteArray[] | undefined
|
326
338
|
blobVersionedHashes: readonly Hex[]
|
@@ -332,28 +344,25 @@ export type TransactionSerializableEIP4844<
|
|
332
344
|
}
|
333
345
|
>
|
334
346
|
|
347
|
+
export type TransactionSerializable<quantity = bigint, index = number> = OneOf<
|
348
|
+
| TransactionSerializableLegacy<quantity, index>
|
349
|
+
| TransactionSerializableEIP2930<quantity, index>
|
350
|
+
| TransactionSerializableEIP1559<quantity, index>
|
351
|
+
| TransactionSerializableEIP4844<quantity, index>
|
352
|
+
>
|
353
|
+
|
335
354
|
export type TransactionSerializableGeneric<
|
336
|
-
|
337
|
-
|
338
|
-
> = TransactionSerializableBase<
|
355
|
+
quantity = bigint,
|
356
|
+
index = number,
|
357
|
+
> = TransactionSerializableBase<quantity, index> & {
|
339
358
|
accessList?: AccessList | undefined
|
340
359
|
blobs?: readonly Hex[] | readonly ByteArray[] | undefined
|
341
360
|
blobVersionedHashes?: readonly Hex[] | undefined
|
342
361
|
chainId?: number | undefined
|
343
|
-
gasPrice?:
|
344
|
-
maxFeePerBlobGas?:
|
345
|
-
maxFeePerGas?:
|
346
|
-
maxPriorityFeePerGas?:
|
362
|
+
gasPrice?: quantity | undefined
|
363
|
+
maxFeePerBlobGas?: quantity | undefined
|
364
|
+
maxFeePerGas?: quantity | undefined
|
365
|
+
maxPriorityFeePerGas?: quantity | undefined
|
347
366
|
sidecars?: readonly BlobSidecar<Hex>[] | false | undefined
|
348
367
|
type?: string | undefined
|
349
368
|
}
|
350
|
-
|
351
|
-
export type TransactionSerializable<
|
352
|
-
TQuantity = bigint,
|
353
|
-
TIndex = number,
|
354
|
-
> = OneOf<
|
355
|
-
| TransactionSerializableLegacy<TQuantity, TIndex>
|
356
|
-
| TransactionSerializableEIP2930<TQuantity, TIndex>
|
357
|
-
| TransactionSerializableEIP1559<TQuantity, TIndex>
|
358
|
-
| TransactionSerializableEIP4844<TQuantity, TIndex>
|
359
|
-
>
|
package/types/transport.ts
CHANGED
@@ -36,7 +36,9 @@ export type HasTransportType<
|
|
36
36
|
type extends string,
|
37
37
|
> = GetTransportConfig<transport>['type'] extends type
|
38
38
|
? true
|
39
|
-
: transport extends FallbackTransport<
|
39
|
+
: transport extends FallbackTransport<
|
40
|
+
infer transports extends readonly Transport[]
|
41
|
+
>
|
40
42
|
? Some<
|
41
43
|
{
|
42
44
|
[key in keyof transports]: GetTransportConfig<transports[key]>['type']
|
package/types/utils.ts
CHANGED
@@ -57,6 +57,11 @@ export type IsNarrowable<T, U> = IsNever<
|
|
57
57
|
*/
|
58
58
|
export type IsNever<T> = [T] extends [never] ? true : false
|
59
59
|
|
60
|
+
/** Removes `readonly` from all properties of an object. */
|
61
|
+
export type Mutable<type extends object> = {
|
62
|
+
-readonly [key in keyof type]: type[key]
|
63
|
+
}
|
64
|
+
|
60
65
|
/**
|
61
66
|
* @description Returns type {@link T} if it is an opaque type of {@link U}
|
62
67
|
* @param T - Type to check
|
@@ -154,9 +159,12 @@ export type NoInfer<type> = [type][type extends any ? 0 : never]
|
|
154
159
|
* @example
|
155
160
|
* NoUndefined<string | undefined>
|
156
161
|
* => string
|
162
|
+
*
|
163
|
+
* @internal
|
157
164
|
*/
|
158
165
|
export type NoUndefined<T> = T extends undefined ? never : T
|
159
166
|
|
167
|
+
/** Strict version of built-in Omit type */
|
160
168
|
export type Omit<type, keys extends keyof type> = Pick<
|
161
169
|
type,
|
162
170
|
Exclude<keyof type, keys>
|
@@ -184,6 +192,11 @@ export type Prettify<T> = {
|
|
184
192
|
[K in keyof T]: T[K]
|
185
193
|
} & {}
|
186
194
|
|
195
|
+
/** @internal */
|
196
|
+
export type Evaluate<type> = {
|
197
|
+
[key in keyof type]: type[key]
|
198
|
+
} & {}
|
199
|
+
|
187
200
|
/**
|
188
201
|
* @description Creates a type that is T with the required keys K.
|
189
202
|
*
|
@@ -201,12 +214,12 @@ export type RequiredBy<T, K extends keyof T> = Omit<T, K> &
|
|
201
214
|
* Some<[1, 2, 3], 2>
|
202
215
|
* => true
|
203
216
|
*/
|
204
|
-
export type Some<
|
217
|
+
export type Some<
|
218
|
+
array extends readonly unknown[],
|
205
219
|
value,
|
206
|
-
|
207
|
-
]
|
220
|
+
> = array extends readonly [value, ...unknown[]]
|
208
221
|
? true
|
209
|
-
: array extends [unknown, ...infer rest]
|
222
|
+
: array extends readonly [unknown, ...infer rest]
|
210
223
|
? Some<rest, value>
|
211
224
|
: false
|
212
225
|
|
@@ -216,6 +229,8 @@ export type Some<array extends unknown[], value> = array extends [
|
|
216
229
|
* @example
|
217
230
|
* ValueOf<{ a: string, b: number }>
|
218
231
|
* => string | number
|
232
|
+
*
|
233
|
+
* @internal
|
219
234
|
*/
|
220
235
|
export type ValueOf<T> = T[keyof T]
|
221
236
|
|
@@ -276,7 +291,10 @@ type KeyofUnion<type> = type extends type ? keyof type : never
|
|
276
291
|
///////////////////////////////////////////////////////////////////////////
|
277
292
|
// Loose types
|
278
293
|
|
279
|
-
/**
|
294
|
+
/**
|
295
|
+
* Loose version of {@link Omit}
|
296
|
+
* @internal
|
297
|
+
*/
|
280
298
|
export type LooseOmit<type, keys extends string> = Pick<
|
281
299
|
type,
|
282
300
|
Exclude<keyof type, keys>
|