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/index.ts
CHANGED
@@ -994,7 +994,7 @@ export type {
|
|
994
994
|
EIP1193Provider,
|
995
995
|
EIP1193RequestFn,
|
996
996
|
EIP1474Methods,
|
997
|
-
|
997
|
+
ProviderRpcErrorType as EIP1193ProviderRpcErrorType,
|
998
998
|
ProviderConnectInfo,
|
999
999
|
ProviderMessage,
|
1000
1000
|
PublicRpcSchema,
|
@@ -1014,6 +1014,7 @@ export type {
|
|
1014
1014
|
WalletRpcSchema,
|
1015
1015
|
WatchAssetParams,
|
1016
1016
|
} from './types/eip1193.js'
|
1017
|
+
export { ProviderRpcError as EIP1193ProviderRpcError } from './types/eip1193.js'
|
1017
1018
|
export type { BlobSidecar, BlobSidecars } from './types/eip4844.js'
|
1018
1019
|
export type {
|
1019
1020
|
FeeHistory,
|
@@ -1026,7 +1027,6 @@ export type {
|
|
1026
1027
|
export type { Filter, FilterType } from './types/filter.js'
|
1027
1028
|
export type { TypedDataDefinition } from './types/typedData.js'
|
1028
1029
|
export type { GetTransportConfig, GetPollOptions } from './types/transport.js'
|
1029
|
-
export type { HDKey } from '@scure/bip32'
|
1030
1030
|
export type { Log } from './types/log.js'
|
1031
1031
|
export type {
|
1032
1032
|
MulticallContracts,
|
@@ -1036,6 +1036,7 @@ export type {
|
|
1036
1036
|
export type {
|
1037
1037
|
ParseAccount,
|
1038
1038
|
DeriveAccount,
|
1039
|
+
HDKey,
|
1039
1040
|
} from './types/account.js'
|
1040
1041
|
export type {
|
1041
1042
|
Index,
|
@@ -1178,6 +1179,7 @@ export {
|
|
1178
1179
|
export {
|
1179
1180
|
type GetAbiItemErrorType,
|
1180
1181
|
type GetAbiItemParameters,
|
1182
|
+
type GetAbiItemReturnType,
|
1181
1183
|
getAbiItem,
|
1182
1184
|
} from './utils/abi/getAbiItem.js'
|
1183
1185
|
export {
|
@@ -1553,19 +1555,33 @@ export {
|
|
1553
1555
|
hashMessage,
|
1554
1556
|
} from './utils/signature/hashMessage.js'
|
1555
1557
|
export {
|
1558
|
+
type IsAddressOptions,
|
1556
1559
|
type IsAddressErrorType,
|
1557
1560
|
isAddress,
|
1558
1561
|
} from './utils/address/isAddress.js'
|
1559
1562
|
export {
|
1563
|
+
type IsAddressEqualReturnType,
|
1560
1564
|
type IsAddressEqualErrorType,
|
1561
1565
|
isAddressEqual,
|
1562
1566
|
} from './utils/address/isAddressEqual.js'
|
1563
1567
|
export { type IsBytesErrorType, isBytes } from './utils/data/isBytes.js'
|
1564
1568
|
export { type IsHashErrorType, isHash } from './utils/hash/isHash.js'
|
1565
1569
|
export { type IsHexErrorType, isHex } from './utils/data/isHex.js'
|
1566
|
-
export {
|
1567
|
-
|
1568
|
-
|
1570
|
+
export {
|
1571
|
+
type Keccak256Hash,
|
1572
|
+
type Keccak256ErrorType,
|
1573
|
+
keccak256,
|
1574
|
+
} from './utils/hash/keccak256.js'
|
1575
|
+
export {
|
1576
|
+
type Sha256Hash,
|
1577
|
+
type Sha256ErrorType,
|
1578
|
+
sha256,
|
1579
|
+
} from './utils/hash/sha256.js'
|
1580
|
+
export {
|
1581
|
+
type Ripemd160Hash,
|
1582
|
+
type Ripemd160ErrorType,
|
1583
|
+
ripemd160,
|
1584
|
+
} from './utils/hash/ripemd160.js'
|
1569
1585
|
export {
|
1570
1586
|
type PadBytesErrorType,
|
1571
1587
|
type PadErrorType,
|
@@ -1617,7 +1633,9 @@ export {
|
|
1617
1633
|
export {
|
1618
1634
|
type DomainSeparatorErrorType,
|
1619
1635
|
type GetTypesForEIP712DomainErrorType,
|
1636
|
+
type SerializeTypedDataErrorType,
|
1620
1637
|
type ValidateTypedDataErrorType,
|
1638
|
+
serializeTypedData,
|
1621
1639
|
validateTypedData,
|
1622
1640
|
domainSeparator,
|
1623
1641
|
getTypesForEIP712Domain,
|
package/node/trustedSetups.ts
CHANGED
package/op-stack/abis.ts
CHANGED
@@ -335,464 +335,6 @@ export const l2OutputOracleAbi = [
|
|
335
335
|
},
|
336
336
|
] as const
|
337
337
|
|
338
|
-
export const l1StandardBridgeAbi = [
|
339
|
-
{ stateMutability: 'nonpayable', type: 'constructor', inputs: [] },
|
340
|
-
{
|
341
|
-
type: 'event',
|
342
|
-
anonymous: false,
|
343
|
-
inputs: [
|
344
|
-
{
|
345
|
-
name: 'localToken',
|
346
|
-
internalType: 'address',
|
347
|
-
type: 'address',
|
348
|
-
indexed: true,
|
349
|
-
},
|
350
|
-
{
|
351
|
-
name: 'remoteToken',
|
352
|
-
internalType: 'address',
|
353
|
-
type: 'address',
|
354
|
-
indexed: true,
|
355
|
-
},
|
356
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
357
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
358
|
-
{
|
359
|
-
name: 'amount',
|
360
|
-
internalType: 'uint256',
|
361
|
-
type: 'uint256',
|
362
|
-
indexed: false,
|
363
|
-
},
|
364
|
-
{
|
365
|
-
name: 'extraData',
|
366
|
-
internalType: 'bytes',
|
367
|
-
type: 'bytes',
|
368
|
-
indexed: false,
|
369
|
-
},
|
370
|
-
],
|
371
|
-
name: 'ERC20BridgeFinalized',
|
372
|
-
},
|
373
|
-
{
|
374
|
-
type: 'event',
|
375
|
-
anonymous: false,
|
376
|
-
inputs: [
|
377
|
-
{
|
378
|
-
name: 'localToken',
|
379
|
-
internalType: 'address',
|
380
|
-
type: 'address',
|
381
|
-
indexed: true,
|
382
|
-
},
|
383
|
-
{
|
384
|
-
name: 'remoteToken',
|
385
|
-
internalType: 'address',
|
386
|
-
type: 'address',
|
387
|
-
indexed: true,
|
388
|
-
},
|
389
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
390
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
391
|
-
{
|
392
|
-
name: 'amount',
|
393
|
-
internalType: 'uint256',
|
394
|
-
type: 'uint256',
|
395
|
-
indexed: false,
|
396
|
-
},
|
397
|
-
{
|
398
|
-
name: 'extraData',
|
399
|
-
internalType: 'bytes',
|
400
|
-
type: 'bytes',
|
401
|
-
indexed: false,
|
402
|
-
},
|
403
|
-
],
|
404
|
-
name: 'ERC20BridgeInitiated',
|
405
|
-
},
|
406
|
-
{
|
407
|
-
type: 'event',
|
408
|
-
anonymous: false,
|
409
|
-
inputs: [
|
410
|
-
{
|
411
|
-
name: 'l1Token',
|
412
|
-
internalType: 'address',
|
413
|
-
type: 'address',
|
414
|
-
indexed: true,
|
415
|
-
},
|
416
|
-
{
|
417
|
-
name: 'l2Token',
|
418
|
-
internalType: 'address',
|
419
|
-
type: 'address',
|
420
|
-
indexed: true,
|
421
|
-
},
|
422
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
423
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
424
|
-
{
|
425
|
-
name: 'amount',
|
426
|
-
internalType: 'uint256',
|
427
|
-
type: 'uint256',
|
428
|
-
indexed: false,
|
429
|
-
},
|
430
|
-
{
|
431
|
-
name: 'extraData',
|
432
|
-
internalType: 'bytes',
|
433
|
-
type: 'bytes',
|
434
|
-
indexed: false,
|
435
|
-
},
|
436
|
-
],
|
437
|
-
name: 'ERC20DepositInitiated',
|
438
|
-
},
|
439
|
-
{
|
440
|
-
type: 'event',
|
441
|
-
anonymous: false,
|
442
|
-
inputs: [
|
443
|
-
{
|
444
|
-
name: 'l1Token',
|
445
|
-
internalType: 'address',
|
446
|
-
type: 'address',
|
447
|
-
indexed: true,
|
448
|
-
},
|
449
|
-
{
|
450
|
-
name: 'l2Token',
|
451
|
-
internalType: 'address',
|
452
|
-
type: 'address',
|
453
|
-
indexed: true,
|
454
|
-
},
|
455
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
456
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: false },
|
457
|
-
{
|
458
|
-
name: 'amount',
|
459
|
-
internalType: 'uint256',
|
460
|
-
type: 'uint256',
|
461
|
-
indexed: false,
|
462
|
-
},
|
463
|
-
{
|
464
|
-
name: 'extraData',
|
465
|
-
internalType: 'bytes',
|
466
|
-
type: 'bytes',
|
467
|
-
indexed: false,
|
468
|
-
},
|
469
|
-
],
|
470
|
-
name: 'ERC20WithdrawalFinalized',
|
471
|
-
},
|
472
|
-
{
|
473
|
-
type: 'event',
|
474
|
-
anonymous: false,
|
475
|
-
inputs: [
|
476
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
477
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
478
|
-
{
|
479
|
-
name: 'amount',
|
480
|
-
internalType: 'uint256',
|
481
|
-
type: 'uint256',
|
482
|
-
indexed: false,
|
483
|
-
},
|
484
|
-
{
|
485
|
-
name: 'extraData',
|
486
|
-
internalType: 'bytes',
|
487
|
-
type: 'bytes',
|
488
|
-
indexed: false,
|
489
|
-
},
|
490
|
-
],
|
491
|
-
name: 'ETHBridgeFinalized',
|
492
|
-
},
|
493
|
-
{
|
494
|
-
type: 'event',
|
495
|
-
anonymous: false,
|
496
|
-
inputs: [
|
497
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
498
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
499
|
-
{
|
500
|
-
name: 'amount',
|
501
|
-
internalType: 'uint256',
|
502
|
-
type: 'uint256',
|
503
|
-
indexed: false,
|
504
|
-
},
|
505
|
-
{
|
506
|
-
name: 'extraData',
|
507
|
-
internalType: 'bytes',
|
508
|
-
type: 'bytes',
|
509
|
-
indexed: false,
|
510
|
-
},
|
511
|
-
],
|
512
|
-
name: 'ETHBridgeInitiated',
|
513
|
-
},
|
514
|
-
{
|
515
|
-
type: 'event',
|
516
|
-
anonymous: false,
|
517
|
-
inputs: [
|
518
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
519
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
520
|
-
{
|
521
|
-
name: 'amount',
|
522
|
-
internalType: 'uint256',
|
523
|
-
type: 'uint256',
|
524
|
-
indexed: false,
|
525
|
-
},
|
526
|
-
{
|
527
|
-
name: 'extraData',
|
528
|
-
internalType: 'bytes',
|
529
|
-
type: 'bytes',
|
530
|
-
indexed: false,
|
531
|
-
},
|
532
|
-
],
|
533
|
-
name: 'ETHDepositInitiated',
|
534
|
-
},
|
535
|
-
{
|
536
|
-
type: 'event',
|
537
|
-
anonymous: false,
|
538
|
-
inputs: [
|
539
|
-
{ name: 'from', internalType: 'address', type: 'address', indexed: true },
|
540
|
-
{ name: 'to', internalType: 'address', type: 'address', indexed: true },
|
541
|
-
{
|
542
|
-
name: 'amount',
|
543
|
-
internalType: 'uint256',
|
544
|
-
type: 'uint256',
|
545
|
-
indexed: false,
|
546
|
-
},
|
547
|
-
{
|
548
|
-
name: 'extraData',
|
549
|
-
internalType: 'bytes',
|
550
|
-
type: 'bytes',
|
551
|
-
indexed: false,
|
552
|
-
},
|
553
|
-
],
|
554
|
-
name: 'ETHWithdrawalFinalized',
|
555
|
-
},
|
556
|
-
{
|
557
|
-
type: 'event',
|
558
|
-
anonymous: false,
|
559
|
-
inputs: [
|
560
|
-
{ name: 'version', internalType: 'uint8', type: 'uint8', indexed: false },
|
561
|
-
],
|
562
|
-
name: 'Initialized',
|
563
|
-
},
|
564
|
-
{
|
565
|
-
stateMutability: 'view',
|
566
|
-
type: 'function',
|
567
|
-
inputs: [],
|
568
|
-
name: 'MESSENGER',
|
569
|
-
outputs: [
|
570
|
-
{
|
571
|
-
name: '',
|
572
|
-
internalType: 'contract CrossDomainMessenger',
|
573
|
-
type: 'address',
|
574
|
-
},
|
575
|
-
],
|
576
|
-
},
|
577
|
-
{
|
578
|
-
stateMutability: 'view',
|
579
|
-
type: 'function',
|
580
|
-
inputs: [],
|
581
|
-
name: 'OTHER_BRIDGE',
|
582
|
-
outputs: [
|
583
|
-
{ name: '', internalType: 'contract StandardBridge', type: 'address' },
|
584
|
-
],
|
585
|
-
},
|
586
|
-
{
|
587
|
-
stateMutability: 'nonpayable',
|
588
|
-
type: 'function',
|
589
|
-
inputs: [
|
590
|
-
{ name: '_localToken', internalType: 'address', type: 'address' },
|
591
|
-
{ name: '_remoteToken', internalType: 'address', type: 'address' },
|
592
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
593
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
594
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
595
|
-
],
|
596
|
-
name: 'bridgeERC20',
|
597
|
-
outputs: [],
|
598
|
-
},
|
599
|
-
{
|
600
|
-
stateMutability: 'nonpayable',
|
601
|
-
type: 'function',
|
602
|
-
inputs: [
|
603
|
-
{ name: '_localToken', internalType: 'address', type: 'address' },
|
604
|
-
{ name: '_remoteToken', internalType: 'address', type: 'address' },
|
605
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
606
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
607
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
608
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
609
|
-
],
|
610
|
-
name: 'bridgeERC20To',
|
611
|
-
outputs: [],
|
612
|
-
},
|
613
|
-
{
|
614
|
-
stateMutability: 'payable',
|
615
|
-
type: 'function',
|
616
|
-
inputs: [
|
617
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
618
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
619
|
-
],
|
620
|
-
name: 'bridgeETH',
|
621
|
-
outputs: [],
|
622
|
-
},
|
623
|
-
{
|
624
|
-
stateMutability: 'payable',
|
625
|
-
type: 'function',
|
626
|
-
inputs: [
|
627
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
628
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
629
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
630
|
-
],
|
631
|
-
name: 'bridgeETHTo',
|
632
|
-
outputs: [],
|
633
|
-
},
|
634
|
-
{
|
635
|
-
stateMutability: 'nonpayable',
|
636
|
-
type: 'function',
|
637
|
-
inputs: [
|
638
|
-
{ name: '_l1Token', internalType: 'address', type: 'address' },
|
639
|
-
{ name: '_l2Token', internalType: 'address', type: 'address' },
|
640
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
641
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
642
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
643
|
-
],
|
644
|
-
name: 'depositERC20',
|
645
|
-
outputs: [],
|
646
|
-
},
|
647
|
-
{
|
648
|
-
stateMutability: 'nonpayable',
|
649
|
-
type: 'function',
|
650
|
-
inputs: [
|
651
|
-
{ name: '_l1Token', internalType: 'address', type: 'address' },
|
652
|
-
{ name: '_l2Token', internalType: 'address', type: 'address' },
|
653
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
654
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
655
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
656
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
657
|
-
],
|
658
|
-
name: 'depositERC20To',
|
659
|
-
outputs: [],
|
660
|
-
},
|
661
|
-
{
|
662
|
-
stateMutability: 'payable',
|
663
|
-
type: 'function',
|
664
|
-
inputs: [
|
665
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
666
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
667
|
-
],
|
668
|
-
name: 'depositETH',
|
669
|
-
outputs: [],
|
670
|
-
},
|
671
|
-
{
|
672
|
-
stateMutability: 'payable',
|
673
|
-
type: 'function',
|
674
|
-
inputs: [
|
675
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
676
|
-
{ name: '_minGasLimit', internalType: 'uint32', type: 'uint32' },
|
677
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
678
|
-
],
|
679
|
-
name: 'depositETHTo',
|
680
|
-
outputs: [],
|
681
|
-
},
|
682
|
-
{
|
683
|
-
stateMutability: 'view',
|
684
|
-
type: 'function',
|
685
|
-
inputs: [
|
686
|
-
{ name: '', internalType: 'address', type: 'address' },
|
687
|
-
{ name: '', internalType: 'address', type: 'address' },
|
688
|
-
],
|
689
|
-
name: 'deposits',
|
690
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
691
|
-
},
|
692
|
-
{
|
693
|
-
stateMutability: 'nonpayable',
|
694
|
-
type: 'function',
|
695
|
-
inputs: [
|
696
|
-
{ name: '_localToken', internalType: 'address', type: 'address' },
|
697
|
-
{ name: '_remoteToken', internalType: 'address', type: 'address' },
|
698
|
-
{ name: '_from', internalType: 'address', type: 'address' },
|
699
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
700
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
701
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
702
|
-
],
|
703
|
-
name: 'finalizeBridgeERC20',
|
704
|
-
outputs: [],
|
705
|
-
},
|
706
|
-
{
|
707
|
-
stateMutability: 'payable',
|
708
|
-
type: 'function',
|
709
|
-
inputs: [
|
710
|
-
{ name: '_from', internalType: 'address', type: 'address' },
|
711
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
712
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
713
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
714
|
-
],
|
715
|
-
name: 'finalizeBridgeETH',
|
716
|
-
outputs: [],
|
717
|
-
},
|
718
|
-
{
|
719
|
-
stateMutability: 'nonpayable',
|
720
|
-
type: 'function',
|
721
|
-
inputs: [
|
722
|
-
{ name: '_l1Token', internalType: 'address', type: 'address' },
|
723
|
-
{ name: '_l2Token', internalType: 'address', type: 'address' },
|
724
|
-
{ name: '_from', internalType: 'address', type: 'address' },
|
725
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
726
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
727
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
728
|
-
],
|
729
|
-
name: 'finalizeERC20Withdrawal',
|
730
|
-
outputs: [],
|
731
|
-
},
|
732
|
-
{
|
733
|
-
stateMutability: 'payable',
|
734
|
-
type: 'function',
|
735
|
-
inputs: [
|
736
|
-
{ name: '_from', internalType: 'address', type: 'address' },
|
737
|
-
{ name: '_to', internalType: 'address', type: 'address' },
|
738
|
-
{ name: '_amount', internalType: 'uint256', type: 'uint256' },
|
739
|
-
{ name: '_extraData', internalType: 'bytes', type: 'bytes' },
|
740
|
-
],
|
741
|
-
name: 'finalizeETHWithdrawal',
|
742
|
-
outputs: [],
|
743
|
-
},
|
744
|
-
{
|
745
|
-
stateMutability: 'nonpayable',
|
746
|
-
type: 'function',
|
747
|
-
inputs: [
|
748
|
-
{
|
749
|
-
name: '_messenger',
|
750
|
-
internalType: 'contract CrossDomainMessenger',
|
751
|
-
type: 'address',
|
752
|
-
},
|
753
|
-
],
|
754
|
-
name: 'initialize',
|
755
|
-
outputs: [],
|
756
|
-
},
|
757
|
-
{
|
758
|
-
stateMutability: 'view',
|
759
|
-
type: 'function',
|
760
|
-
inputs: [],
|
761
|
-
name: 'l2TokenBridge',
|
762
|
-
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
763
|
-
},
|
764
|
-
{
|
765
|
-
stateMutability: 'view',
|
766
|
-
type: 'function',
|
767
|
-
inputs: [],
|
768
|
-
name: 'messenger',
|
769
|
-
outputs: [
|
770
|
-
{
|
771
|
-
name: '',
|
772
|
-
internalType: 'contract CrossDomainMessenger',
|
773
|
-
type: 'address',
|
774
|
-
},
|
775
|
-
],
|
776
|
-
},
|
777
|
-
{
|
778
|
-
stateMutability: 'view',
|
779
|
-
type: 'function',
|
780
|
-
inputs: [],
|
781
|
-
name: 'otherBridge',
|
782
|
-
outputs: [
|
783
|
-
{ name: '', internalType: 'contract StandardBridge', type: 'address' },
|
784
|
-
],
|
785
|
-
},
|
786
|
-
{
|
787
|
-
stateMutability: 'view',
|
788
|
-
type: 'function',
|
789
|
-
inputs: [],
|
790
|
-
name: 'version',
|
791
|
-
outputs: [{ name: '', internalType: 'string', type: 'string' }],
|
792
|
-
},
|
793
|
-
{ stateMutability: 'payable', type: 'receive' },
|
794
|
-
] as const
|
795
|
-
|
796
338
|
export const l2ToL1MessagePasserAbi = [
|
797
339
|
{ inputs: [], stateMutability: 'nonpayable', type: 'constructor' },
|
798
340
|
{
|
@@ -15,7 +15,10 @@ import type {
|
|
15
15
|
import type { TransactionReceipt } from '../../types/transaction.js'
|
16
16
|
import type { OneOf } from '../../types/utils.js'
|
17
17
|
import { portal2Abi, portalAbi } from '../abis.js'
|
18
|
-
import {
|
18
|
+
import {
|
19
|
+
ReceiptContainsNoWithdrawalsError,
|
20
|
+
type ReceiptContainsNoWithdrawalsErrorType,
|
21
|
+
} from '../errors/withdrawal.js'
|
19
22
|
import type { TargetChain } from '../types/chain.js'
|
20
23
|
import type { GetContractAddressParameter } from '../types/contract.js'
|
21
24
|
import {
|
@@ -67,11 +70,13 @@ export type GetWithdrawalStatusReturnType =
|
|
67
70
|
| 'waiting-to-finalize'
|
68
71
|
| 'ready-to-finalize'
|
69
72
|
| 'finalized'
|
73
|
+
|
70
74
|
export type GetWithdrawalStatusErrorType =
|
71
75
|
| GetL2OutputErrorType
|
72
76
|
| GetTimeToFinalizeErrorType
|
73
77
|
| GetWithdrawalsErrorType
|
74
78
|
| ReadContractErrorType
|
79
|
+
| ReceiptContainsNoWithdrawalsErrorType
|
75
80
|
| ErrorType
|
76
81
|
|
77
82
|
/**
|
package/op-stack/index.ts
CHANGED
@@ -176,7 +176,6 @@ export {
|
|
176
176
|
|
177
177
|
export { chainConfig } from './chainConfig.js'
|
178
178
|
|
179
|
-
// @ts-ignore TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
|
180
179
|
// biome-ignore lint/performance/noReExportAll: intentionally re-exporting
|
181
180
|
export * from './chains.js'
|
182
181
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "viem",
|
3
3
|
"description": "TypeScript Interface for Ethereum",
|
4
|
-
"version": "2.13.
|
4
|
+
"version": "2.13.8",
|
5
5
|
"main": "./_cjs/index.js",
|
6
6
|
"module": "./_esm/index.js",
|
7
7
|
"types": "./_types/index.d.ts",
|
@@ -170,6 +170,7 @@
|
|
170
170
|
"ethereum",
|
171
171
|
"dapps",
|
172
172
|
"wallet",
|
173
|
-
"web3"
|
173
|
+
"web3",
|
174
|
+
"typescript"
|
174
175
|
]
|
175
176
|
}
|
package/types/account.ts
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
import type { Address } from 'abitype'
|
2
2
|
|
3
3
|
import type { Account, JsonRpcAccount } from '../accounts/types.js'
|
4
|
-
|
5
4
|
import type { IsUndefined, Prettify } from './utils.js'
|
6
5
|
|
7
6
|
export type DeriveAccount<
|
@@ -28,14 +27,5 @@ export type ParseAccount<
|
|
28
27
|
? Prettify<JsonRpcAccount<TAccountOrAddress>>
|
29
28
|
: TAccountOrAddress
|
30
29
|
|
31
|
-
export type {
|
32
|
-
Account,
|
33
|
-
AccountSource,
|
34
|
-
CustomSource,
|
35
|
-
HDAccount,
|
36
|
-
HDOptions,
|
37
|
-
JsonRpcAccount,
|
38
|
-
LocalAccount,
|
39
|
-
PrivateKeyAccount,
|
40
|
-
} from '../accounts/types.js'
|
30
|
+
export type { Account } from '../accounts/types.js'
|
41
31
|
export type { HDKey } from '@scure/bip32'
|