viem 2.0.0-alpha.17 → 2.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/README.md +1 -1
- package/_cjs/actions/ens/getEnsAddress.js +4 -3
- package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
- package/_cjs/actions/ens/getEnsAvatar.js +2 -1
- package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
- package/_cjs/actions/ens/getEnsName.js +4 -3
- package/_cjs/actions/ens/getEnsName.js.map +1 -1
- package/_cjs/actions/ens/getEnsResolver.js +4 -3
- package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
- package/_cjs/actions/ens/getEnsText.js +4 -3
- package/_cjs/actions/ens/getEnsText.js.map +1 -1
- package/_cjs/actions/getContract.js +8 -7
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/public/call.js +5 -5
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/estimateContractGas.js +11 -2
- package/_cjs/actions/public/estimateContractGas.js.map +1 -1
- package/_cjs/actions/public/estimateFeesPerGas.js +3 -2
- package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_cjs/actions/public/estimateGas.js +3 -3
- package/_cjs/actions/public/estimateGas.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +4 -3
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/getContractEvents.js +2 -1
- package/_cjs/actions/public/getContractEvents.js.map +1 -1
- package/_cjs/actions/public/getTransactionConfirmations.js +3 -2
- package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_cjs/actions/public/multicall.js +4 -3
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/public/readContract.js +7 -2
- package/_cjs/actions/public/readContract.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js +2 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/public/verifyHash.js +2 -1
- package/_cjs/actions/public/verifyHash.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js +6 -5
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchBlockNumber.js +2 -1
- package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
- package/_cjs/actions/public/watchBlocks.js +4 -3
- package/_cjs/actions/public/watchBlocks.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js +6 -5
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js +6 -5
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/public/watchPendingTransactions.js +4 -3
- package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
- package/_cjs/actions/test/sendUnsignedTransaction.js +3 -3
- package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_cjs/actions/wallet/getAddresses.js +2 -0
- package/_cjs/actions/wallet/getAddresses.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js +4 -3
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/sendTransaction.js +10 -8
- package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
- package/_cjs/actions/wallet/signTransaction.js +5 -4
- package/_cjs/actions/wallet/signTransaction.js.map +1 -1
- package/_cjs/actions/wallet/writeContract.js +7 -2
- package/_cjs/actions/wallet/writeContract.js.map +1 -1
- package/_cjs/chains/celo/formatters.js +34 -5
- package/_cjs/chains/celo/formatters.js.map +1 -1
- package/_cjs/chains/celo/parsers.js +55 -0
- package/_cjs/chains/celo/parsers.js.map +1 -1
- package/_cjs/chains/celo/serializers.js +70 -6
- package/_cjs/chains/celo/serializers.js.map +1 -1
- package/_cjs/chains/definitions/arbitrum.js +2 -2
- package/_cjs/chains/definitions/arbitrum.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumGoerli.js +4 -3
- package/_cjs/chains/definitions/arbitrumGoerli.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumNova.js +2 -2
- package/_cjs/chains/definitions/arbitrumNova.js.map +1 -1
- package/_cjs/chains/definitions/arbitrumSepolia.js +2 -2
- package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_cjs/chains/definitions/astarZkatana.js +42 -0
- package/_cjs/chains/definitions/astarZkatana.js.map +1 -0
- package/_cjs/chains/definitions/aurora.js +2 -2
- package/_cjs/chains/definitions/aurora.js.map +1 -1
- package/_cjs/chains/definitions/auroraTestnet.js +2 -2
- package/_cjs/chains/definitions/auroraTestnet.js.map +1 -1
- package/_cjs/chains/definitions/avalanche.js +2 -2
- package/_cjs/chains/definitions/avalanche.js.map +1 -1
- package/_cjs/chains/definitions/avalancheFuji.js +2 -2
- package/_cjs/chains/definitions/avalancheFuji.js.map +1 -1
- package/_cjs/chains/definitions/base.js +2 -2
- package/_cjs/chains/definitions/base.js.map +1 -1
- package/_cjs/chains/definitions/baseGoerli.js +2 -2
- package/_cjs/chains/definitions/baseGoerli.js.map +1 -1
- package/_cjs/chains/definitions/baseSepolia.js +34 -0
- package/_cjs/chains/definitions/baseSepolia.js.map +1 -0
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js +2 -2
- package/_cjs/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js +2 -2
- package/_cjs/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
- package/_cjs/chains/definitions/boba.js +2 -2
- package/_cjs/chains/definitions/boba.js.map +1 -1
- package/_cjs/chains/definitions/bronos.js +2 -2
- package/_cjs/chains/definitions/bronos.js.map +1 -1
- package/_cjs/chains/definitions/bronosTestnet.js +2 -2
- package/_cjs/chains/definitions/bronosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/bsc.js +2 -2
- package/_cjs/chains/definitions/bsc.js.map +1 -1
- package/_cjs/chains/definitions/bscTestnet.js +2 -2
- package/_cjs/chains/definitions/bscTestnet.js.map +1 -1
- package/_cjs/chains/definitions/bxn.js +2 -2
- package/_cjs/chains/definitions/bxn.js.map +1 -1
- package/_cjs/chains/definitions/bxnTestnet.js +2 -2
- package/_cjs/chains/definitions/bxnTestnet.js.map +1 -1
- package/_cjs/chains/definitions/canto.js +2 -2
- package/_cjs/chains/definitions/canto.js.map +1 -1
- package/_cjs/chains/definitions/celo.js +2 -2
- package/_cjs/chains/definitions/celo.js.map +1 -1
- package/_cjs/chains/definitions/celoAlfajores.js +2 -2
- package/_cjs/chains/definitions/celoAlfajores.js.map +1 -1
- package/_cjs/chains/definitions/celoCannoli.js +2 -2
- package/_cjs/chains/definitions/celoCannoli.js.map +1 -1
- package/_cjs/chains/definitions/classic.js +2 -2
- package/_cjs/chains/definitions/classic.js.map +1 -1
- package/_cjs/chains/definitions/confluxESpace.js +2 -2
- package/_cjs/chains/definitions/confluxESpace.js.map +1 -1
- package/_cjs/chains/definitions/coreDao.js +2 -2
- package/_cjs/chains/definitions/coreDao.js.map +1 -1
- package/_cjs/chains/definitions/cronos.js +2 -2
- package/_cjs/chains/definitions/cronos.js.map +1 -1
- package/_cjs/chains/definitions/cronosTestnet.js +2 -2
- package/_cjs/chains/definitions/cronosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/crossbell.js +2 -2
- package/_cjs/chains/definitions/crossbell.js.map +1 -1
- package/_cjs/chains/definitions/dfk.js +2 -2
- package/_cjs/chains/definitions/dfk.js.map +1 -1
- package/_cjs/chains/definitions/dogechain.js +2 -2
- package/_cjs/chains/definitions/dogechain.js.map +1 -1
- package/_cjs/chains/definitions/edgeware.js +2 -2
- package/_cjs/chains/definitions/edgeware.js.map +1 -1
- package/_cjs/chains/definitions/edgewareTestnet.js +2 -2
- package/_cjs/chains/definitions/edgewareTestnet.js.map +1 -1
- package/_cjs/chains/definitions/ekta.js +2 -2
- package/_cjs/chains/definitions/ekta.js.map +1 -1
- package/_cjs/chains/definitions/ektaTestnet.js +2 -2
- package/_cjs/chains/definitions/ektaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/eon.js +2 -2
- package/_cjs/chains/definitions/eon.js.map +1 -1
- package/_cjs/chains/definitions/eos.js +2 -2
- package/_cjs/chains/definitions/eos.js.map +1 -1
- package/_cjs/chains/definitions/eosTestnet.js +2 -2
- package/_cjs/chains/definitions/eosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/evmos.js +2 -2
- package/_cjs/chains/definitions/evmos.js.map +1 -1
- package/_cjs/chains/definitions/evmosTestnet.js +2 -2
- package/_cjs/chains/definitions/evmosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/fantom.js +2 -2
- package/_cjs/chains/definitions/fantom.js.map +1 -1
- package/_cjs/chains/definitions/fantomTestnet.js +2 -2
- package/_cjs/chains/definitions/fantomTestnet.js.map +1 -1
- package/_cjs/chains/definitions/fibo.js +2 -2
- package/_cjs/chains/definitions/fibo.js.map +1 -1
- package/_cjs/chains/definitions/filecoin.js +2 -2
- package/_cjs/chains/definitions/filecoin.js.map +1 -1
- package/_cjs/chains/definitions/filecoinCalibration.js +2 -2
- package/_cjs/chains/definitions/filecoinCalibration.js.map +1 -1
- package/_cjs/chains/definitions/filecoinHyperspace.js +2 -2
- package/_cjs/chains/definitions/filecoinHyperspace.js.map +1 -1
- package/_cjs/chains/definitions/flare.js +2 -2
- package/_cjs/chains/definitions/flare.js.map +1 -1
- package/_cjs/chains/definitions/flareTestnet.js +2 -2
- package/_cjs/chains/definitions/flareTestnet.js.map +1 -1
- package/_cjs/chains/definitions/foundry.js +2 -2
- package/_cjs/chains/definitions/foundry.js.map +1 -1
- package/_cjs/chains/definitions/fuse.js +2 -2
- package/_cjs/chains/definitions/fuse.js.map +1 -1
- package/_cjs/chains/definitions/fuseSparknet.js +2 -2
- package/_cjs/chains/definitions/fuseSparknet.js.map +1 -1
- package/_cjs/chains/definitions/gnosis.js +2 -2
- package/_cjs/chains/definitions/gnosis.js.map +1 -1
- package/_cjs/chains/definitions/gnosisChiado.js +2 -2
- package/_cjs/chains/definitions/gnosisChiado.js.map +1 -1
- package/_cjs/chains/definitions/gobi.js +2 -2
- package/_cjs/chains/definitions/gobi.js.map +1 -1
- package/_cjs/chains/definitions/goerli.js +2 -2
- package/_cjs/chains/definitions/goerli.js.map +1 -1
- package/_cjs/chains/definitions/haqqMainnet.js +2 -2
- package/_cjs/chains/definitions/haqqMainnet.js.map +1 -1
- package/_cjs/chains/definitions/haqqTestedge2.js +2 -2
- package/_cjs/chains/definitions/haqqTestedge2.js.map +1 -1
- package/_cjs/chains/definitions/hardhat.js +2 -2
- package/_cjs/chains/definitions/hardhat.js.map +1 -1
- package/_cjs/chains/definitions/harmonyOne.js +2 -2
- package/_cjs/chains/definitions/harmonyOne.js.map +1 -1
- package/_cjs/chains/definitions/holesky.js +2 -2
- package/_cjs/chains/definitions/holesky.js.map +1 -1
- package/_cjs/chains/definitions/iotex.js +2 -2
- package/_cjs/chains/definitions/iotex.js.map +1 -1
- package/_cjs/chains/definitions/iotexTestnet.js +2 -2
- package/_cjs/chains/definitions/iotexTestnet.js.map +1 -1
- package/_cjs/chains/definitions/klaytn.js +2 -2
- package/_cjs/chains/definitions/klaytn.js.map +1 -1
- package/_cjs/chains/definitions/kroma.js +2 -2
- package/_cjs/chains/definitions/kroma.js.map +1 -1
- package/_cjs/chains/definitions/kromaSepolia.js +2 -2
- package/_cjs/chains/definitions/kromaSepolia.js.map +1 -1
- package/_cjs/chains/definitions/linea.js +2 -2
- package/_cjs/chains/definitions/linea.js.map +1 -1
- package/_cjs/chains/definitions/lineaTestnet.js +2 -2
- package/_cjs/chains/definitions/lineaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/localhost.js +2 -2
- package/_cjs/chains/definitions/localhost.js.map +1 -1
- package/_cjs/chains/definitions/mainnet.js +2 -2
- package/_cjs/chains/definitions/mainnet.js.map +1 -1
- package/_cjs/chains/definitions/manta.js +35 -0
- package/_cjs/chains/definitions/manta.js.map +1 -0
- package/_cjs/chains/definitions/mantaTestnet.js +36 -0
- package/_cjs/chains/definitions/mantaTestnet.js.map +1 -0
- package/_cjs/chains/definitions/mantle.js +2 -2
- package/_cjs/chains/definitions/mantle.js.map +1 -1
- package/_cjs/chains/definitions/mantleTestnet.js +2 -2
- package/_cjs/chains/definitions/mantleTestnet.js.map +1 -1
- package/_cjs/chains/definitions/meter.js +2 -2
- package/_cjs/chains/definitions/meter.js.map +1 -1
- package/_cjs/chains/definitions/meterTestnet.js +2 -2
- package/_cjs/chains/definitions/meterTestnet.js.map +1 -1
- package/_cjs/chains/definitions/metis.js +2 -2
- package/_cjs/chains/definitions/metis.js.map +1 -1
- package/_cjs/chains/definitions/metisGoerli.js +2 -2
- package/_cjs/chains/definitions/metisGoerli.js.map +1 -1
- package/_cjs/chains/definitions/mev.js +2 -2
- package/_cjs/chains/definitions/mev.js.map +1 -1
- package/_cjs/chains/definitions/mevTestnet.js +2 -2
- package/_cjs/chains/definitions/mevTestnet.js.map +1 -1
- package/_cjs/chains/definitions/modeTestnet.js +8 -2
- package/_cjs/chains/definitions/modeTestnet.js.map +1 -1
- package/_cjs/chains/definitions/moonbaseAlpha.js +2 -2
- package/_cjs/chains/definitions/moonbaseAlpha.js.map +1 -1
- package/_cjs/chains/definitions/moonbeam.js +2 -2
- package/_cjs/chains/definitions/moonbeam.js.map +1 -1
- package/_cjs/chains/definitions/moonbeamDev.js +2 -2
- package/_cjs/chains/definitions/moonbeamDev.js.map +1 -1
- package/_cjs/chains/definitions/moonriver.js +2 -2
- package/_cjs/chains/definitions/moonriver.js.map +1 -1
- package/_cjs/chains/definitions/neonDevnet.js +2 -2
- package/_cjs/chains/definitions/neonDevnet.js.map +1 -1
- package/_cjs/chains/definitions/nexi.js +2 -2
- package/_cjs/chains/definitions/nexi.js.map +1 -1
- package/_cjs/chains/definitions/nexilix.js +2 -2
- package/_cjs/chains/definitions/nexilix.js.map +1 -1
- package/_cjs/chains/definitions/oasys.js +2 -2
- package/_cjs/chains/definitions/oasys.js.map +1 -1
- package/_cjs/chains/definitions/okc.js +2 -2
- package/_cjs/chains/definitions/okc.js.map +1 -1
- package/_cjs/chains/definitions/opBNB.js +2 -2
- package/_cjs/chains/definitions/opBNB.js.map +1 -1
- package/_cjs/chains/definitions/opBNBTestnet.js +2 -2
- package/_cjs/chains/definitions/opBNBTestnet.js.map +1 -1
- package/_cjs/chains/definitions/optimism.js +2 -2
- package/_cjs/chains/definitions/optimism.js.map +1 -1
- package/_cjs/chains/definitions/optimismGoerli.js +2 -2
- package/_cjs/chains/definitions/optimismGoerli.js.map +1 -1
- package/_cjs/chains/definitions/optimismSepolia.js +2 -2
- package/_cjs/chains/definitions/optimismSepolia.js.map +1 -1
- package/_cjs/chains/definitions/plinga.js +2 -2
- package/_cjs/chains/definitions/plinga.js.map +1 -1
- package/_cjs/chains/definitions/polygon.js +2 -2
- package/_cjs/chains/definitions/polygon.js.map +1 -1
- package/_cjs/chains/definitions/polygonMumbai.js +2 -2
- package/_cjs/chains/definitions/polygonMumbai.js.map +1 -1
- package/_cjs/chains/definitions/polygonZkEvm.js +2 -2
- package/_cjs/chains/definitions/polygonZkEvm.js.map +1 -1
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js +2 -2
- package/_cjs/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
- package/_cjs/chains/definitions/pulsechain.js +2 -2
- package/_cjs/chains/definitions/pulsechain.js.map +1 -1
- package/_cjs/chains/definitions/pulsechainV4.js +2 -2
- package/_cjs/chains/definitions/pulsechainV4.js.map +1 -1
- package/_cjs/chains/definitions/qMainnet.js +2 -2
- package/_cjs/chains/definitions/qMainnet.js.map +1 -1
- package/_cjs/chains/definitions/qTestnet.js +2 -2
- package/_cjs/chains/definitions/qTestnet.js.map +1 -1
- package/_cjs/chains/definitions/rollux.js +2 -2
- package/_cjs/chains/definitions/rollux.js.map +1 -1
- package/_cjs/chains/definitions/rolluxTestnet.js +2 -2
- package/_cjs/chains/definitions/rolluxTestnet.js.map +1 -1
- package/_cjs/chains/definitions/ronin.js +2 -2
- package/_cjs/chains/definitions/ronin.js.map +1 -1
- package/_cjs/chains/definitions/saigon.js +2 -2
- package/_cjs/chains/definitions/saigon.js.map +1 -1
- package/_cjs/chains/definitions/scroll.js +2 -2
- package/_cjs/chains/definitions/scroll.js.map +1 -1
- package/_cjs/chains/definitions/scrollSepolia.js +2 -2
- package/_cjs/chains/definitions/scrollSepolia.js.map +1 -1
- package/_cjs/chains/definitions/scrollTestnet.js +2 -2
- package/_cjs/chains/definitions/scrollTestnet.js.map +1 -1
- package/_cjs/chains/definitions/sepolia.js +2 -2
- package/_cjs/chains/definitions/sepolia.js.map +1 -1
- package/_cjs/chains/definitions/shardeumSphinx.js +2 -2
- package/_cjs/chains/definitions/shardeumSphinx.js.map +1 -1
- package/_cjs/chains/definitions/skale/brawl.js +2 -2
- package/_cjs/chains/definitions/skale/brawl.js.map +1 -1
- package/_cjs/chains/definitions/skale/calypso.js +2 -2
- package/_cjs/chains/definitions/skale/calypso.js.map +1 -1
- package/_cjs/chains/definitions/skale/calypsoTestnet.js +2 -2
- package/_cjs/chains/definitions/skale/calypsoTestnet.js.map +1 -1
- package/_cjs/chains/definitions/skale/chaosTestnet.js +2 -2
- package/_cjs/chains/definitions/skale/chaosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/skale/cryptoBlades.js +2 -2
- package/_cjs/chains/definitions/skale/cryptoBlades.js.map +1 -1
- package/_cjs/chains/definitions/skale/cryptoColosseum.js +2 -2
- package/_cjs/chains/definitions/skale/cryptoColosseum.js.map +1 -1
- package/_cjs/chains/definitions/skale/europa.js +2 -2
- package/_cjs/chains/definitions/skale/europa.js.map +1 -1
- package/_cjs/chains/definitions/skale/europaTestnet.js +2 -2
- package/_cjs/chains/definitions/skale/europaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/skale/exorde.js +2 -2
- package/_cjs/chains/definitions/skale/exorde.js.map +1 -1
- package/_cjs/chains/definitions/skale/humanProtocol.js +2 -2
- package/_cjs/chains/definitions/skale/humanProtocol.js.map +1 -1
- package/_cjs/chains/definitions/skale/nebula.js +2 -2
- package/_cjs/chains/definitions/skale/nebula.js.map +1 -1
- package/_cjs/chains/definitions/skale/nebulaTestnet.js +2 -2
- package/_cjs/chains/definitions/skale/nebulaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/skale/razor.js +2 -2
- package/_cjs/chains/definitions/skale/razor.js.map +1 -1
- package/_cjs/chains/definitions/skale/titan.js +2 -2
- package/_cjs/chains/definitions/skale/titan.js.map +1 -1
- package/_cjs/chains/definitions/skale/titanTestnet.js +2 -2
- package/_cjs/chains/definitions/skale/titanTestnet.js.map +1 -1
- package/_cjs/chains/definitions/songbird.js +2 -2
- package/_cjs/chains/definitions/songbird.js.map +1 -1
- package/_cjs/chains/definitions/songbirdTestnet.js +2 -2
- package/_cjs/chains/definitions/songbirdTestnet.js.map +1 -1
- package/_cjs/chains/definitions/syscoin.js +2 -2
- package/_cjs/chains/definitions/syscoin.js.map +1 -1
- package/_cjs/chains/definitions/syscoinTestnet.js +2 -2
- package/_cjs/chains/definitions/syscoinTestnet.js.map +1 -1
- package/_cjs/chains/definitions/taikoJolnir.js +2 -2
- package/_cjs/chains/definitions/taikoJolnir.js.map +1 -1
- package/_cjs/chains/definitions/taikoTestnetSepolia.js +2 -2
- package/_cjs/chains/definitions/taikoTestnetSepolia.js.map +1 -1
- package/_cjs/chains/definitions/taraxa.js +2 -2
- package/_cjs/chains/definitions/taraxa.js.map +1 -1
- package/_cjs/chains/definitions/taraxaTestnet.js +2 -2
- package/_cjs/chains/definitions/taraxaTestnet.js.map +1 -1
- package/_cjs/chains/definitions/telos.js +2 -2
- package/_cjs/chains/definitions/telos.js.map +1 -1
- package/_cjs/chains/definitions/telosTestnet.js +2 -2
- package/_cjs/chains/definitions/telosTestnet.js.map +1 -1
- package/_cjs/chains/definitions/thunderTestnet.js +2 -2
- package/_cjs/chains/definitions/thunderTestnet.js.map +1 -1
- package/_cjs/chains/definitions/vechain.js +2 -2
- package/_cjs/chains/definitions/vechain.js.map +1 -1
- package/_cjs/chains/definitions/wanchain.js +2 -2
- package/_cjs/chains/definitions/wanchain.js.map +1 -1
- package/_cjs/chains/definitions/wanchainTestnet.js +2 -2
- package/_cjs/chains/definitions/wanchainTestnet.js.map +1 -1
- package/_cjs/chains/definitions/xdc.js +2 -2
- package/_cjs/chains/definitions/xdc.js.map +1 -1
- package/_cjs/chains/definitions/xdcTestnet.js +2 -2
- package/_cjs/chains/definitions/xdcTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zetachainAthensTestnet.js +2 -2
- package/_cjs/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zhejiang.js +2 -2
- package/_cjs/chains/definitions/zhejiang.js.map +1 -1
- package/_cjs/chains/definitions/zkSync.js +8 -2
- package/_cjs/chains/definitions/zkSync.js.map +1 -1
- package/_cjs/chains/definitions/zkSyncTestnet.js +8 -2
- package/_cjs/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_cjs/chains/definitions/zora.js +2 -2
- package/_cjs/chains/definitions/zora.js.map +1 -1
- package/_cjs/chains/definitions/zoraSepolia.js +41 -0
- package/_cjs/chains/definitions/zoraSepolia.js.map +1 -0
- package/_cjs/chains/definitions/zoraTestnet.js +2 -2
- package/_cjs/chains/definitions/zoraTestnet.js.map +1 -1
- package/_cjs/chains/index.js +14 -3
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/chains/utils.js +11 -1
- package/_cjs/chains/utils.js.map +1 -1
- package/_cjs/chains/zksync/formatters.js +124 -0
- package/_cjs/chains/zksync/formatters.js.map +1 -0
- package/_cjs/chains/zksync/serializers.js +74 -0
- package/_cjs/chains/zksync/serializers.js.map +1 -0
- package/_cjs/chains/zksync/types.js +3 -0
- package/_cjs/chains/zksync/types.js.map +1 -0
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/decorators/public.js.map +1 -1
- package/_cjs/clients/decorators/wallet.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/index.js +10 -6
- package/_cjs/index.js.map +1 -1
- package/_cjs/utils/abi/decodeEventLog.js +9 -11
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/chain/assertCurrentChain.js +12 -0
- package/_cjs/utils/chain/assertCurrentChain.js.map +1 -0
- package/_cjs/utils/chain/defineChain.js +14 -0
- package/_cjs/utils/chain/defineChain.js.map +1 -0
- package/_cjs/utils/chain/extractChain.js +8 -0
- package/_cjs/utils/chain/extractChain.js.map +1 -0
- package/_cjs/utils/chain/getChainContractAddress.js +26 -0
- package/_cjs/utils/chain/getChainContractAddress.js.map +1 -0
- package/_cjs/utils/formatters/extract.js +15 -7
- package/_cjs/utils/formatters/extract.js.map +1 -1
- package/_cjs/utils/getAction.js +8 -0
- package/_cjs/utils/getAction.js.map +1 -0
- package/_cjs/utils/index.js +11 -7
- package/_cjs/utils/index.js.map +1 -1
- package/_esm/actions/ens/getEnsAddress.js +3 -2
- package/_esm/actions/ens/getEnsAddress.js.map +1 -1
- package/_esm/actions/ens/getEnsAvatar.js +2 -1
- package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
- package/_esm/actions/ens/getEnsName.js +3 -2
- package/_esm/actions/ens/getEnsName.js.map +1 -1
- package/_esm/actions/ens/getEnsResolver.js +3 -2
- package/_esm/actions/ens/getEnsResolver.js.map +1 -1
- package/_esm/actions/ens/getEnsText.js +3 -2
- package/_esm/actions/ens/getEnsText.js.map +1 -1
- package/_esm/actions/getContract.js +8 -7
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/public/call.js +4 -4
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/estimateContractGas.js +11 -2
- package/_esm/actions/public/estimateContractGas.js.map +1 -1
- package/_esm/actions/public/estimateFeesPerGas.js +3 -2
- package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
- package/_esm/actions/public/estimateGas.js +3 -3
- package/_esm/actions/public/estimateGas.js.map +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +4 -3
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_esm/actions/public/getContractEvents.js +2 -1
- package/_esm/actions/public/getContractEvents.js.map +1 -1
- package/_esm/actions/public/getTransactionConfirmations.js +3 -2
- package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
- package/_esm/actions/public/multicall.js +3 -2
- package/_esm/actions/public/multicall.js.map +1 -1
- package/_esm/actions/public/readContract.js +7 -2
- package/_esm/actions/public/readContract.js.map +1 -1
- package/_esm/actions/public/simulateContract.js +2 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/public/verifyHash.js +2 -1
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +6 -5
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/watchBlockNumber.js +2 -1
- package/_esm/actions/public/watchBlockNumber.js.map +1 -1
- package/_esm/actions/public/watchBlocks.js +4 -3
- package/_esm/actions/public/watchBlocks.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js +6 -5
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/actions/public/watchEvent.js +6 -5
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/public/watchPendingTransactions.js +4 -3
- package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
- package/_esm/actions/test/sendUnsignedTransaction.js +3 -3
- package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
- package/_esm/actions/wallet/getAddresses.js +2 -0
- package/_esm/actions/wallet/getAddresses.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js +4 -3
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js +9 -7
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/signTransaction.js +4 -3
- package/_esm/actions/wallet/signTransaction.js.map +1 -1
- package/_esm/actions/wallet/writeContract.js +7 -2
- package/_esm/actions/wallet/writeContract.js.map +1 -1
- package/_esm/chains/celo/formatters.js +34 -5
- package/_esm/chains/celo/formatters.js.map +1 -1
- package/_esm/chains/celo/parsers.js +56 -1
- package/_esm/chains/celo/parsers.js.map +1 -1
- package/_esm/chains/celo/serializers.js +73 -7
- package/_esm/chains/celo/serializers.js.map +1 -1
- package/_esm/chains/definitions/arbitrum.js +1 -1
- package/_esm/chains/definitions/arbitrum.js.map +1 -1
- package/_esm/chains/definitions/arbitrumGoerli.js +3 -2
- package/_esm/chains/definitions/arbitrumGoerli.js.map +1 -1
- package/_esm/chains/definitions/arbitrumNova.js +1 -1
- package/_esm/chains/definitions/arbitrumNova.js.map +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js +1 -1
- package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -1
- package/_esm/chains/definitions/astarZkatana.js +39 -0
- package/_esm/chains/definitions/astarZkatana.js.map +1 -0
- package/_esm/chains/definitions/aurora.js +1 -1
- package/_esm/chains/definitions/aurora.js.map +1 -1
- package/_esm/chains/definitions/auroraTestnet.js +1 -1
- package/_esm/chains/definitions/auroraTestnet.js.map +1 -1
- package/_esm/chains/definitions/avalanche.js +1 -1
- package/_esm/chains/definitions/avalanche.js.map +1 -1
- package/_esm/chains/definitions/avalancheFuji.js +1 -1
- package/_esm/chains/definitions/avalancheFuji.js.map +1 -1
- package/_esm/chains/definitions/base.js +1 -1
- package/_esm/chains/definitions/base.js.map +1 -1
- package/_esm/chains/definitions/baseGoerli.js +1 -1
- package/_esm/chains/definitions/baseGoerli.js.map +1 -1
- package/_esm/chains/definitions/baseSepolia.js +31 -0
- package/_esm/chains/definitions/baseSepolia.js.map +1 -0
- package/_esm/chains/definitions/bearNetworkChainMainnet.js +1 -1
- package/_esm/chains/definitions/bearNetworkChainMainnet.js.map +1 -1
- package/_esm/chains/definitions/bearNetworkChainTestnet.js +1 -1
- package/_esm/chains/definitions/bearNetworkChainTestnet.js.map +1 -1
- package/_esm/chains/definitions/boba.js +1 -1
- package/_esm/chains/definitions/boba.js.map +1 -1
- package/_esm/chains/definitions/bronos.js +1 -1
- package/_esm/chains/definitions/bronos.js.map +1 -1
- package/_esm/chains/definitions/bronosTestnet.js +1 -1
- package/_esm/chains/definitions/bronosTestnet.js.map +1 -1
- package/_esm/chains/definitions/bsc.js +1 -1
- package/_esm/chains/definitions/bsc.js.map +1 -1
- package/_esm/chains/definitions/bscTestnet.js +1 -1
- package/_esm/chains/definitions/bscTestnet.js.map +1 -1
- package/_esm/chains/definitions/bxn.js +1 -1
- package/_esm/chains/definitions/bxn.js.map +1 -1
- package/_esm/chains/definitions/bxnTestnet.js +1 -1
- package/_esm/chains/definitions/bxnTestnet.js.map +1 -1
- package/_esm/chains/definitions/canto.js +1 -1
- package/_esm/chains/definitions/canto.js.map +1 -1
- package/_esm/chains/definitions/celo.js +1 -1
- package/_esm/chains/definitions/celo.js.map +1 -1
- package/_esm/chains/definitions/celoAlfajores.js +1 -1
- package/_esm/chains/definitions/celoAlfajores.js.map +1 -1
- package/_esm/chains/definitions/celoCannoli.js +1 -1
- package/_esm/chains/definitions/celoCannoli.js.map +1 -1
- package/_esm/chains/definitions/classic.js +1 -1
- package/_esm/chains/definitions/classic.js.map +1 -1
- package/_esm/chains/definitions/confluxESpace.js +1 -1
- package/_esm/chains/definitions/confluxESpace.js.map +1 -1
- package/_esm/chains/definitions/coreDao.js +1 -1
- package/_esm/chains/definitions/coreDao.js.map +1 -1
- package/_esm/chains/definitions/cronos.js +1 -1
- package/_esm/chains/definitions/cronos.js.map +1 -1
- package/_esm/chains/definitions/cronosTestnet.js +1 -1
- package/_esm/chains/definitions/cronosTestnet.js.map +1 -1
- package/_esm/chains/definitions/crossbell.js +1 -1
- package/_esm/chains/definitions/crossbell.js.map +1 -1
- package/_esm/chains/definitions/dfk.js +1 -1
- package/_esm/chains/definitions/dfk.js.map +1 -1
- package/_esm/chains/definitions/dogechain.js +1 -1
- package/_esm/chains/definitions/dogechain.js.map +1 -1
- package/_esm/chains/definitions/edgeware.js +1 -1
- package/_esm/chains/definitions/edgeware.js.map +1 -1
- package/_esm/chains/definitions/edgewareTestnet.js +1 -1
- package/_esm/chains/definitions/edgewareTestnet.js.map +1 -1
- package/_esm/chains/definitions/ekta.js +1 -1
- package/_esm/chains/definitions/ekta.js.map +1 -1
- package/_esm/chains/definitions/ektaTestnet.js +1 -1
- package/_esm/chains/definitions/ektaTestnet.js.map +1 -1
- package/_esm/chains/definitions/eon.js +1 -1
- package/_esm/chains/definitions/eon.js.map +1 -1
- package/_esm/chains/definitions/eos.js +1 -1
- package/_esm/chains/definitions/eos.js.map +1 -1
- package/_esm/chains/definitions/eosTestnet.js +1 -1
- package/_esm/chains/definitions/eosTestnet.js.map +1 -1
- package/_esm/chains/definitions/evmos.js +1 -1
- package/_esm/chains/definitions/evmos.js.map +1 -1
- package/_esm/chains/definitions/evmosTestnet.js +1 -1
- package/_esm/chains/definitions/evmosTestnet.js.map +1 -1
- package/_esm/chains/definitions/fantom.js +1 -1
- package/_esm/chains/definitions/fantom.js.map +1 -1
- package/_esm/chains/definitions/fantomTestnet.js +1 -1
- package/_esm/chains/definitions/fantomTestnet.js.map +1 -1
- package/_esm/chains/definitions/fibo.js +1 -1
- package/_esm/chains/definitions/fibo.js.map +1 -1
- package/_esm/chains/definitions/filecoin.js +1 -1
- package/_esm/chains/definitions/filecoin.js.map +1 -1
- package/_esm/chains/definitions/filecoinCalibration.js +1 -1
- package/_esm/chains/definitions/filecoinCalibration.js.map +1 -1
- package/_esm/chains/definitions/filecoinHyperspace.js +1 -1
- package/_esm/chains/definitions/filecoinHyperspace.js.map +1 -1
- package/_esm/chains/definitions/flare.js +1 -1
- package/_esm/chains/definitions/flare.js.map +1 -1
- package/_esm/chains/definitions/flareTestnet.js +1 -1
- package/_esm/chains/definitions/flareTestnet.js.map +1 -1
- package/_esm/chains/definitions/foundry.js +1 -1
- package/_esm/chains/definitions/foundry.js.map +1 -1
- package/_esm/chains/definitions/fuse.js +1 -1
- package/_esm/chains/definitions/fuse.js.map +1 -1
- package/_esm/chains/definitions/fuseSparknet.js +1 -1
- package/_esm/chains/definitions/fuseSparknet.js.map +1 -1
- package/_esm/chains/definitions/gnosis.js +1 -1
- package/_esm/chains/definitions/gnosis.js.map +1 -1
- package/_esm/chains/definitions/gnosisChiado.js +1 -1
- package/_esm/chains/definitions/gnosisChiado.js.map +1 -1
- package/_esm/chains/definitions/gobi.js +1 -1
- package/_esm/chains/definitions/gobi.js.map +1 -1
- package/_esm/chains/definitions/goerli.js +1 -1
- package/_esm/chains/definitions/goerli.js.map +1 -1
- package/_esm/chains/definitions/haqqMainnet.js +1 -1
- package/_esm/chains/definitions/haqqMainnet.js.map +1 -1
- package/_esm/chains/definitions/haqqTestedge2.js +1 -1
- package/_esm/chains/definitions/haqqTestedge2.js.map +1 -1
- package/_esm/chains/definitions/hardhat.js +1 -1
- package/_esm/chains/definitions/hardhat.js.map +1 -1
- package/_esm/chains/definitions/harmonyOne.js +1 -1
- package/_esm/chains/definitions/harmonyOne.js.map +1 -1
- package/_esm/chains/definitions/holesky.js +1 -1
- package/_esm/chains/definitions/holesky.js.map +1 -1
- package/_esm/chains/definitions/iotex.js +1 -1
- package/_esm/chains/definitions/iotex.js.map +1 -1
- package/_esm/chains/definitions/iotexTestnet.js +1 -1
- package/_esm/chains/definitions/iotexTestnet.js.map +1 -1
- package/_esm/chains/definitions/klaytn.js +1 -1
- package/_esm/chains/definitions/klaytn.js.map +1 -1
- package/_esm/chains/definitions/kroma.js +1 -1
- package/_esm/chains/definitions/kroma.js.map +1 -1
- package/_esm/chains/definitions/kromaSepolia.js +1 -1
- package/_esm/chains/definitions/kromaSepolia.js.map +1 -1
- package/_esm/chains/definitions/linea.js +1 -1
- package/_esm/chains/definitions/linea.js.map +1 -1
- package/_esm/chains/definitions/lineaTestnet.js +1 -1
- package/_esm/chains/definitions/lineaTestnet.js.map +1 -1
- package/_esm/chains/definitions/localhost.js +1 -1
- package/_esm/chains/definitions/localhost.js.map +1 -1
- package/_esm/chains/definitions/mainnet.js +1 -1
- package/_esm/chains/definitions/mainnet.js.map +1 -1
- package/_esm/chains/definitions/manta.js +32 -0
- package/_esm/chains/definitions/manta.js.map +1 -0
- package/_esm/chains/definitions/mantaTestnet.js +33 -0
- package/_esm/chains/definitions/mantaTestnet.js.map +1 -0
- package/_esm/chains/definitions/mantle.js +1 -1
- package/_esm/chains/definitions/mantle.js.map +1 -1
- package/_esm/chains/definitions/mantleTestnet.js +1 -1
- package/_esm/chains/definitions/mantleTestnet.js.map +1 -1
- package/_esm/chains/definitions/meter.js +1 -1
- package/_esm/chains/definitions/meter.js.map +1 -1
- package/_esm/chains/definitions/meterTestnet.js +1 -1
- package/_esm/chains/definitions/meterTestnet.js.map +1 -1
- package/_esm/chains/definitions/metis.js +1 -1
- package/_esm/chains/definitions/metis.js.map +1 -1
- package/_esm/chains/definitions/metisGoerli.js +1 -1
- package/_esm/chains/definitions/metisGoerli.js.map +1 -1
- package/_esm/chains/definitions/mev.js +1 -1
- package/_esm/chains/definitions/mev.js.map +1 -1
- package/_esm/chains/definitions/mevTestnet.js +1 -1
- package/_esm/chains/definitions/mevTestnet.js.map +1 -1
- package/_esm/chains/definitions/modeTestnet.js +7 -1
- package/_esm/chains/definitions/modeTestnet.js.map +1 -1
- package/_esm/chains/definitions/moonbaseAlpha.js +1 -1
- package/_esm/chains/definitions/moonbaseAlpha.js.map +1 -1
- package/_esm/chains/definitions/moonbeam.js +1 -1
- package/_esm/chains/definitions/moonbeam.js.map +1 -1
- package/_esm/chains/definitions/moonbeamDev.js +1 -1
- package/_esm/chains/definitions/moonbeamDev.js.map +1 -1
- package/_esm/chains/definitions/moonriver.js +1 -1
- package/_esm/chains/definitions/moonriver.js.map +1 -1
- package/_esm/chains/definitions/neonDevnet.js +1 -1
- package/_esm/chains/definitions/neonDevnet.js.map +1 -1
- package/_esm/chains/definitions/nexi.js +1 -1
- package/_esm/chains/definitions/nexi.js.map +1 -1
- package/_esm/chains/definitions/nexilix.js +1 -1
- package/_esm/chains/definitions/nexilix.js.map +1 -1
- package/_esm/chains/definitions/oasys.js +1 -1
- package/_esm/chains/definitions/oasys.js.map +1 -1
- package/_esm/chains/definitions/okc.js +1 -1
- package/_esm/chains/definitions/okc.js.map +1 -1
- package/_esm/chains/definitions/opBNB.js +1 -1
- package/_esm/chains/definitions/opBNB.js.map +1 -1
- package/_esm/chains/definitions/opBNBTestnet.js +1 -1
- package/_esm/chains/definitions/opBNBTestnet.js.map +1 -1
- package/_esm/chains/definitions/optimism.js +1 -1
- package/_esm/chains/definitions/optimism.js.map +1 -1
- package/_esm/chains/definitions/optimismGoerli.js +1 -1
- package/_esm/chains/definitions/optimismGoerli.js.map +1 -1
- package/_esm/chains/definitions/optimismSepolia.js +1 -1
- package/_esm/chains/definitions/optimismSepolia.js.map +1 -1
- package/_esm/chains/definitions/plinga.js +1 -1
- package/_esm/chains/definitions/plinga.js.map +1 -1
- package/_esm/chains/definitions/polygon.js +1 -1
- package/_esm/chains/definitions/polygon.js.map +1 -1
- package/_esm/chains/definitions/polygonMumbai.js +1 -1
- package/_esm/chains/definitions/polygonMumbai.js.map +1 -1
- package/_esm/chains/definitions/polygonZkEvm.js +1 -1
- package/_esm/chains/definitions/polygonZkEvm.js.map +1 -1
- package/_esm/chains/definitions/polygonZkEvmTestnet.js +1 -1
- package/_esm/chains/definitions/polygonZkEvmTestnet.js.map +1 -1
- package/_esm/chains/definitions/pulsechain.js +1 -1
- package/_esm/chains/definitions/pulsechain.js.map +1 -1
- package/_esm/chains/definitions/pulsechainV4.js +1 -1
- package/_esm/chains/definitions/pulsechainV4.js.map +1 -1
- package/_esm/chains/definitions/qMainnet.js +1 -1
- package/_esm/chains/definitions/qMainnet.js.map +1 -1
- package/_esm/chains/definitions/qTestnet.js +1 -1
- package/_esm/chains/definitions/qTestnet.js.map +1 -1
- package/_esm/chains/definitions/rollux.js +1 -1
- package/_esm/chains/definitions/rollux.js.map +1 -1
- package/_esm/chains/definitions/rolluxTestnet.js +1 -1
- package/_esm/chains/definitions/rolluxTestnet.js.map +1 -1
- package/_esm/chains/definitions/ronin.js +1 -1
- package/_esm/chains/definitions/ronin.js.map +1 -1
- package/_esm/chains/definitions/saigon.js +1 -1
- package/_esm/chains/definitions/saigon.js.map +1 -1
- package/_esm/chains/definitions/scroll.js +1 -1
- package/_esm/chains/definitions/scroll.js.map +1 -1
- package/_esm/chains/definitions/scrollSepolia.js +1 -1
- package/_esm/chains/definitions/scrollSepolia.js.map +1 -1
- package/_esm/chains/definitions/scrollTestnet.js +1 -1
- package/_esm/chains/definitions/scrollTestnet.js.map +1 -1
- package/_esm/chains/definitions/sepolia.js +1 -1
- package/_esm/chains/definitions/sepolia.js.map +1 -1
- package/_esm/chains/definitions/shardeumSphinx.js +1 -1
- package/_esm/chains/definitions/shardeumSphinx.js.map +1 -1
- package/_esm/chains/definitions/skale/brawl.js +1 -1
- package/_esm/chains/definitions/skale/brawl.js.map +1 -1
- package/_esm/chains/definitions/skale/calypso.js +1 -1
- package/_esm/chains/definitions/skale/calypso.js.map +1 -1
- package/_esm/chains/definitions/skale/calypsoTestnet.js +1 -1
- package/_esm/chains/definitions/skale/calypsoTestnet.js.map +1 -1
- package/_esm/chains/definitions/skale/chaosTestnet.js +1 -1
- package/_esm/chains/definitions/skale/chaosTestnet.js.map +1 -1
- package/_esm/chains/definitions/skale/cryptoBlades.js +1 -1
- package/_esm/chains/definitions/skale/cryptoBlades.js.map +1 -1
- package/_esm/chains/definitions/skale/cryptoColosseum.js +1 -1
- package/_esm/chains/definitions/skale/cryptoColosseum.js.map +1 -1
- package/_esm/chains/definitions/skale/europa.js +1 -1
- package/_esm/chains/definitions/skale/europa.js.map +1 -1
- package/_esm/chains/definitions/skale/europaTestnet.js +1 -1
- package/_esm/chains/definitions/skale/europaTestnet.js.map +1 -1
- package/_esm/chains/definitions/skale/exorde.js +1 -1
- package/_esm/chains/definitions/skale/exorde.js.map +1 -1
- package/_esm/chains/definitions/skale/humanProtocol.js +1 -1
- package/_esm/chains/definitions/skale/humanProtocol.js.map +1 -1
- package/_esm/chains/definitions/skale/nebula.js +1 -1
- package/_esm/chains/definitions/skale/nebula.js.map +1 -1
- package/_esm/chains/definitions/skale/nebulaTestnet.js +1 -1
- package/_esm/chains/definitions/skale/nebulaTestnet.js.map +1 -1
- package/_esm/chains/definitions/skale/razor.js +1 -1
- package/_esm/chains/definitions/skale/razor.js.map +1 -1
- package/_esm/chains/definitions/skale/titan.js +1 -1
- package/_esm/chains/definitions/skale/titan.js.map +1 -1
- package/_esm/chains/definitions/skale/titanTestnet.js +1 -1
- package/_esm/chains/definitions/skale/titanTestnet.js.map +1 -1
- package/_esm/chains/definitions/songbird.js +1 -1
- package/_esm/chains/definitions/songbird.js.map +1 -1
- package/_esm/chains/definitions/songbirdTestnet.js +1 -1
- package/_esm/chains/definitions/songbirdTestnet.js.map +1 -1
- package/_esm/chains/definitions/syscoin.js +1 -1
- package/_esm/chains/definitions/syscoin.js.map +1 -1
- package/_esm/chains/definitions/syscoinTestnet.js +1 -1
- package/_esm/chains/definitions/syscoinTestnet.js.map +1 -1
- package/_esm/chains/definitions/taikoJolnir.js +1 -1
- package/_esm/chains/definitions/taikoJolnir.js.map +1 -1
- package/_esm/chains/definitions/taikoTestnetSepolia.js +1 -1
- package/_esm/chains/definitions/taikoTestnetSepolia.js.map +1 -1
- package/_esm/chains/definitions/taraxa.js +1 -1
- package/_esm/chains/definitions/taraxa.js.map +1 -1
- package/_esm/chains/definitions/taraxaTestnet.js +1 -1
- package/_esm/chains/definitions/taraxaTestnet.js.map +1 -1
- package/_esm/chains/definitions/telos.js +1 -1
- package/_esm/chains/definitions/telos.js.map +1 -1
- package/_esm/chains/definitions/telosTestnet.js +1 -1
- package/_esm/chains/definitions/telosTestnet.js.map +1 -1
- package/_esm/chains/definitions/thunderTestnet.js +1 -1
- package/_esm/chains/definitions/thunderTestnet.js.map +1 -1
- package/_esm/chains/definitions/vechain.js +1 -1
- package/_esm/chains/definitions/vechain.js.map +1 -1
- package/_esm/chains/definitions/wanchain.js +1 -1
- package/_esm/chains/definitions/wanchain.js.map +1 -1
- package/_esm/chains/definitions/wanchainTestnet.js +1 -1
- package/_esm/chains/definitions/wanchainTestnet.js.map +1 -1
- package/_esm/chains/definitions/xdc.js +1 -1
- package/_esm/chains/definitions/xdc.js.map +1 -1
- package/_esm/chains/definitions/xdcTestnet.js +1 -1
- package/_esm/chains/definitions/xdcTestnet.js.map +1 -1
- package/_esm/chains/definitions/zetachainAthensTestnet.js +1 -1
- package/_esm/chains/definitions/zetachainAthensTestnet.js.map +1 -1
- package/_esm/chains/definitions/zhejiang.js +1 -1
- package/_esm/chains/definitions/zhejiang.js.map +1 -1
- package/_esm/chains/definitions/zkSync.js +7 -1
- package/_esm/chains/definitions/zkSync.js.map +1 -1
- package/_esm/chains/definitions/zkSyncTestnet.js +7 -1
- package/_esm/chains/definitions/zkSyncTestnet.js.map +1 -1
- package/_esm/chains/definitions/zora.js +1 -1
- package/_esm/chains/definitions/zora.js.map +1 -1
- package/_esm/chains/definitions/zoraSepolia.js +38 -0
- package/_esm/chains/definitions/zoraSepolia.js.map +1 -0
- package/_esm/chains/definitions/zoraTestnet.js +1 -1
- package/_esm/chains/definitions/zoraTestnet.js.map +1 -1
- package/_esm/chains/index.js +5 -0
- package/_esm/chains/index.js.map +1 -1
- package/_esm/chains/utils.js +5 -0
- package/_esm/chains/utils.js.map +1 -1
- package/_esm/chains/zksync/formatters.js +122 -0
- package/_esm/chains/zksync/formatters.js.map +1 -0
- package/_esm/chains/zksync/serializers.js +71 -0
- package/_esm/chains/zksync/serializers.js.map +1 -0
- package/_esm/chains/zksync/types.js +2 -0
- package/_esm/chains/zksync/types.js.map +1 -0
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/decorators/public.js.map +1 -1
- package/_esm/clients/decorators/wallet.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/index.js +4 -1
- package/_esm/index.js.map +1 -1
- package/_esm/utils/abi/decodeEventLog.js +9 -11
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/utils/chain/assertCurrentChain.js +8 -0
- package/_esm/utils/chain/assertCurrentChain.js.map +1 -0
- package/_esm/utils/chain/defineChain.js +10 -0
- package/_esm/utils/chain/defineChain.js.map +1 -0
- package/_esm/utils/chain/extractChain.js +4 -0
- package/_esm/utils/chain/extractChain.js.map +1 -0
- package/_esm/utils/chain/getChainContractAddress.js +22 -0
- package/_esm/utils/chain/getChainContractAddress.js.map +1 -0
- package/_esm/utils/formatters/extract.js +16 -9
- package/_esm/utils/formatters/extract.js.map +1 -1
- package/_esm/utils/getAction.js +4 -0
- package/_esm/utils/getAction.js.map +1 -0
- package/_esm/utils/index.js +4 -1
- package/_esm/utils/index.js.map +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts +1 -1
- package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
- package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
- package/_types/actions/ens/getEnsName.d.ts +1 -1
- package/_types/actions/ens/getEnsName.d.ts.map +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts +1 -1
- package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
- package/_types/actions/ens/getEnsText.d.ts +1 -1
- package/_types/actions/ens/getEnsText.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts +1 -1
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
- package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/_types/actions/public/getContractEvents.d.ts.map +1 -1
- package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
- package/_types/actions/public/multicall.d.ts +1 -1
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/public/readContract.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts.map +1 -1
- package/_types/actions/public/verifyHash.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
- package/_types/actions/public/watchBlocks.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
- package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts +2 -2
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signTransaction.d.ts +2 -2
- package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/writeContract.d.ts.map +1 -1
- package/_types/chains/celo/formatters.d.ts +196 -10
- package/_types/chains/celo/formatters.d.ts.map +1 -1
- package/_types/chains/celo/parsers.d.ts.map +1 -1
- package/_types/chains/celo/serializers.d.ts +3 -1
- package/_types/chains/celo/serializers.d.ts.map +1 -1
- package/_types/chains/celo/types.d.ts +39 -7
- package/_types/chains/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/arbitrum.d.ts +2 -5
- package/_types/chains/definitions/arbitrum.d.ts.map +1 -1
- package/_types/chains/definitions/arbitrumGoerli.d.ts +7 -6
- package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/arbitrumNova.d.ts +2 -5
- package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -1
- package/_types/chains/definitions/arbitrumSepolia.d.ts +2 -5
- package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/astarZkatana.d.ts +36 -0
- package/_types/chains/definitions/astarZkatana.d.ts.map +1 -0
- package/_types/chains/definitions/aurora.d.ts +2 -5
- package/_types/chains/definitions/aurora.d.ts.map +1 -1
- package/_types/chains/definitions/auroraTestnet.d.ts +2 -5
- package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/avalanche.d.ts +2 -5
- package/_types/chains/definitions/avalanche.d.ts.map +1 -1
- package/_types/chains/definitions/avalancheFuji.d.ts +2 -5
- package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -1
- package/_types/chains/definitions/base.d.ts +499 -1496
- package/_types/chains/definitions/base.d.ts.map +1 -1
- package/_types/chains/definitions/baseGoerli.d.ts +499 -1496
- package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/baseSepolia.d.ts +528 -0
- package/_types/chains/definitions/baseSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +2 -5
- package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +2 -5
- package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/boba.d.ts +2 -5
- package/_types/chains/definitions/boba.d.ts.map +1 -1
- package/_types/chains/definitions/bronos.d.ts +2 -5
- package/_types/chains/definitions/bronos.d.ts.map +1 -1
- package/_types/chains/definitions/bronosTestnet.d.ts +2 -5
- package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/bsc.d.ts +2 -5
- package/_types/chains/definitions/bsc.d.ts.map +1 -1
- package/_types/chains/definitions/bscTestnet.d.ts +2 -5
- package/_types/chains/definitions/bscTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/bxn.d.ts +2 -5
- package/_types/chains/definitions/bxn.d.ts.map +1 -1
- package/_types/chains/definitions/bxnTestnet.d.ts +2 -5
- package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/canto.d.ts +2 -5
- package/_types/chains/definitions/canto.d.ts.map +1 -1
- package/_types/chains/definitions/celo.d.ts +877 -2076
- package/_types/chains/definitions/celo.d.ts.map +1 -1
- package/_types/chains/definitions/celoAlfajores.d.ts +877 -2076
- package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
- package/_types/chains/definitions/celoCannoli.d.ts +877 -2076
- package/_types/chains/definitions/celoCannoli.d.ts.map +1 -1
- package/_types/chains/definitions/classic.d.ts +2 -5
- package/_types/chains/definitions/classic.d.ts.map +1 -1
- package/_types/chains/definitions/confluxESpace.d.ts +2 -5
- package/_types/chains/definitions/confluxESpace.d.ts.map +1 -1
- package/_types/chains/definitions/coreDao.d.ts +2 -5
- package/_types/chains/definitions/coreDao.d.ts.map +1 -1
- package/_types/chains/definitions/cronos.d.ts +2 -5
- package/_types/chains/definitions/cronos.d.ts.map +1 -1
- package/_types/chains/definitions/cronosTestnet.d.ts +2 -5
- package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/crossbell.d.ts +2 -5
- package/_types/chains/definitions/crossbell.d.ts.map +1 -1
- package/_types/chains/definitions/dfk.d.ts +2 -5
- package/_types/chains/definitions/dfk.d.ts.map +1 -1
- package/_types/chains/definitions/dogechain.d.ts +2 -5
- package/_types/chains/definitions/dogechain.d.ts.map +1 -1
- package/_types/chains/definitions/edgeware.d.ts +2 -5
- package/_types/chains/definitions/edgeware.d.ts.map +1 -1
- package/_types/chains/definitions/edgewareTestnet.d.ts +2 -5
- package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/ekta.d.ts +2 -5
- package/_types/chains/definitions/ekta.d.ts.map +1 -1
- package/_types/chains/definitions/ektaTestnet.d.ts +2 -5
- package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/eon.d.ts +2 -5
- package/_types/chains/definitions/eon.d.ts.map +1 -1
- package/_types/chains/definitions/eos.d.ts +2 -5
- package/_types/chains/definitions/eos.d.ts.map +1 -1
- package/_types/chains/definitions/eosTestnet.d.ts +2 -5
- package/_types/chains/definitions/eosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/evmos.d.ts +2 -5
- package/_types/chains/definitions/evmos.d.ts.map +1 -1
- package/_types/chains/definitions/evmosTestnet.d.ts +2 -5
- package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/fantom.d.ts +2 -5
- package/_types/chains/definitions/fantom.d.ts.map +1 -1
- package/_types/chains/definitions/fantomTestnet.d.ts +2 -5
- package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/fibo.d.ts +2 -5
- package/_types/chains/definitions/fibo.d.ts.map +1 -1
- package/_types/chains/definitions/filecoin.d.ts +2 -5
- package/_types/chains/definitions/filecoin.d.ts.map +1 -1
- package/_types/chains/definitions/filecoinCalibration.d.ts +2 -5
- package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -1
- package/_types/chains/definitions/filecoinHyperspace.d.ts +2 -5
- package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -1
- package/_types/chains/definitions/flare.d.ts +2 -5
- package/_types/chains/definitions/flare.d.ts.map +1 -1
- package/_types/chains/definitions/flareTestnet.d.ts +2 -5
- package/_types/chains/definitions/flareTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/foundry.d.ts +2 -5
- package/_types/chains/definitions/foundry.d.ts.map +1 -1
- package/_types/chains/definitions/fuse.d.ts +2 -5
- package/_types/chains/definitions/fuse.d.ts.map +1 -1
- package/_types/chains/definitions/fuseSparknet.d.ts +2 -5
- package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -1
- package/_types/chains/definitions/gnosis.d.ts +2 -5
- package/_types/chains/definitions/gnosis.d.ts.map +1 -1
- package/_types/chains/definitions/gnosisChiado.d.ts +2 -5
- package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -1
- package/_types/chains/definitions/gobi.d.ts +2 -5
- package/_types/chains/definitions/gobi.d.ts.map +1 -1
- package/_types/chains/definitions/goerli.d.ts +2 -5
- package/_types/chains/definitions/goerli.d.ts.map +1 -1
- package/_types/chains/definitions/haqqMainnet.d.ts +2 -5
- package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/haqqTestedge2.d.ts +2 -5
- package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -1
- package/_types/chains/definitions/hardhat.d.ts +2 -5
- package/_types/chains/definitions/hardhat.d.ts.map +1 -1
- package/_types/chains/definitions/harmonyOne.d.ts +2 -5
- package/_types/chains/definitions/harmonyOne.d.ts.map +1 -1
- package/_types/chains/definitions/holesky.d.ts +2 -5
- package/_types/chains/definitions/holesky.d.ts.map +1 -1
- package/_types/chains/definitions/iotex.d.ts +2 -5
- package/_types/chains/definitions/iotex.d.ts.map +1 -1
- package/_types/chains/definitions/iotexTestnet.d.ts +2 -5
- package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/klaytn.d.ts +2 -5
- package/_types/chains/definitions/klaytn.d.ts.map +1 -1
- package/_types/chains/definitions/kroma.d.ts +2 -5
- package/_types/chains/definitions/kroma.d.ts.map +1 -1
- package/_types/chains/definitions/kromaSepolia.d.ts +2 -5
- package/_types/chains/definitions/kromaSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/linea.d.ts +2 -5
- package/_types/chains/definitions/linea.d.ts.map +1 -1
- package/_types/chains/definitions/lineaTestnet.d.ts +2 -5
- package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/localhost.d.ts +2 -5
- package/_types/chains/definitions/localhost.d.ts.map +1 -1
- package/_types/chains/definitions/mainnet.d.ts +2 -5
- package/_types/chains/definitions/mainnet.d.ts.map +1 -1
- package/_types/chains/definitions/manta.d.ts +35 -0
- package/_types/chains/definitions/manta.d.ts.map +1 -0
- package/_types/chains/definitions/mantaTestnet.d.ts +36 -0
- package/_types/chains/definitions/mantaTestnet.d.ts.map +1 -0
- package/_types/chains/definitions/mantle.d.ts +2 -5
- package/_types/chains/definitions/mantle.d.ts.map +1 -1
- package/_types/chains/definitions/mantleTestnet.d.ts +2 -5
- package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/meter.d.ts +2 -5
- package/_types/chains/definitions/meter.d.ts.map +1 -1
- package/_types/chains/definitions/meterTestnet.d.ts +2 -5
- package/_types/chains/definitions/meterTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/metis.d.ts +2 -5
- package/_types/chains/definitions/metis.d.ts.map +1 -1
- package/_types/chains/definitions/metisGoerli.d.ts +2 -5
- package/_types/chains/definitions/metisGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/mev.d.ts +2 -5
- package/_types/chains/definitions/mev.d.ts.map +1 -1
- package/_types/chains/definitions/mevTestnet.d.ts +2 -5
- package/_types/chains/definitions/mevTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/modeTestnet.d.ts +8 -5
- package/_types/chains/definitions/modeTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/moonbaseAlpha.d.ts +2 -5
- package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -1
- package/_types/chains/definitions/moonbeam.d.ts +2 -5
- package/_types/chains/definitions/moonbeam.d.ts.map +1 -1
- package/_types/chains/definitions/moonbeamDev.d.ts +2 -5
- package/_types/chains/definitions/moonbeamDev.d.ts.map +1 -1
- package/_types/chains/definitions/moonriver.d.ts +2 -5
- package/_types/chains/definitions/moonriver.d.ts.map +1 -1
- package/_types/chains/definitions/neonDevnet.d.ts +2 -5
- package/_types/chains/definitions/neonDevnet.d.ts.map +1 -1
- package/_types/chains/definitions/nexi.d.ts +2 -5
- package/_types/chains/definitions/nexi.d.ts.map +1 -1
- package/_types/chains/definitions/nexilix.d.ts +2 -5
- package/_types/chains/definitions/nexilix.d.ts.map +1 -1
- package/_types/chains/definitions/oasys.d.ts +2 -5
- package/_types/chains/definitions/oasys.d.ts.map +1 -1
- package/_types/chains/definitions/okc.d.ts +2 -5
- package/_types/chains/definitions/okc.d.ts.map +1 -1
- package/_types/chains/definitions/opBNB.d.ts +2 -5
- package/_types/chains/definitions/opBNB.d.ts.map +1 -1
- package/_types/chains/definitions/opBNBTestnet.d.ts +2 -5
- package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/optimism.d.ts +499 -1496
- package/_types/chains/definitions/optimism.d.ts.map +1 -1
- package/_types/chains/definitions/optimismGoerli.d.ts +499 -1496
- package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
- package/_types/chains/definitions/optimismSepolia.d.ts +499 -1496
- package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/plinga.d.ts +2 -5
- package/_types/chains/definitions/plinga.d.ts.map +1 -1
- package/_types/chains/definitions/polygon.d.ts +2 -5
- package/_types/chains/definitions/polygon.d.ts.map +1 -1
- package/_types/chains/definitions/polygonMumbai.d.ts +2 -5
- package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -1
- package/_types/chains/definitions/polygonZkEvm.d.ts +2 -5
- package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -1
- package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +2 -5
- package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/pulsechain.d.ts +2 -5
- package/_types/chains/definitions/pulsechain.d.ts.map +1 -1
- package/_types/chains/definitions/pulsechainV4.d.ts +2 -5
- package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -1
- package/_types/chains/definitions/qMainnet.d.ts +2 -5
- package/_types/chains/definitions/qMainnet.d.ts.map +1 -1
- package/_types/chains/definitions/qTestnet.d.ts +2 -5
- package/_types/chains/definitions/qTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/rollux.d.ts +2 -5
- package/_types/chains/definitions/rollux.d.ts.map +1 -1
- package/_types/chains/definitions/rolluxTestnet.d.ts +2 -5
- package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/ronin.d.ts +2 -5
- package/_types/chains/definitions/ronin.d.ts.map +1 -1
- package/_types/chains/definitions/saigon.d.ts +2 -5
- package/_types/chains/definitions/saigon.d.ts.map +1 -1
- package/_types/chains/definitions/scroll.d.ts +2 -5
- package/_types/chains/definitions/scroll.d.ts.map +1 -1
- package/_types/chains/definitions/scrollSepolia.d.ts +2 -5
- package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/scrollTestnet.d.ts +2 -5
- package/_types/chains/definitions/scrollTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/sepolia.d.ts +2 -5
- package/_types/chains/definitions/sepolia.d.ts.map +1 -1
- package/_types/chains/definitions/shardeumSphinx.d.ts +2 -5
- package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -1
- package/_types/chains/definitions/skale/brawl.d.ts +2 -5
- package/_types/chains/definitions/skale/brawl.d.ts.map +1 -1
- package/_types/chains/definitions/skale/calypso.d.ts +2 -5
- package/_types/chains/definitions/skale/calypso.d.ts.map +1 -1
- package/_types/chains/definitions/skale/calypsoTestnet.d.ts +2 -5
- package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/skale/chaosTestnet.d.ts +2 -5
- package/_types/chains/definitions/skale/chaosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/skale/cryptoBlades.d.ts +2 -5
- package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -1
- package/_types/chains/definitions/skale/cryptoColosseum.d.ts +2 -5
- package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -1
- package/_types/chains/definitions/skale/europa.d.ts +2 -5
- package/_types/chains/definitions/skale/europa.d.ts.map +1 -1
- package/_types/chains/definitions/skale/europaTestnet.d.ts +2 -5
- package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/skale/exorde.d.ts +2 -5
- package/_types/chains/definitions/skale/exorde.d.ts.map +1 -1
- package/_types/chains/definitions/skale/humanProtocol.d.ts +2 -5
- package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -1
- package/_types/chains/definitions/skale/nebula.d.ts +2 -5
- package/_types/chains/definitions/skale/nebula.d.ts.map +1 -1
- package/_types/chains/definitions/skale/nebulaTestnet.d.ts +2 -5
- package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/skale/razor.d.ts +2 -5
- package/_types/chains/definitions/skale/razor.d.ts.map +1 -1
- package/_types/chains/definitions/skale/titan.d.ts +2 -5
- package/_types/chains/definitions/skale/titan.d.ts.map +1 -1
- package/_types/chains/definitions/skale/titanTestnet.d.ts +2 -5
- package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/songbird.d.ts +2 -5
- package/_types/chains/definitions/songbird.d.ts.map +1 -1
- package/_types/chains/definitions/songbirdTestnet.d.ts +2 -5
- package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/syscoin.d.ts +2 -5
- package/_types/chains/definitions/syscoin.d.ts.map +1 -1
- package/_types/chains/definitions/syscoinTestnet.d.ts +2 -5
- package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/taikoJolnir.d.ts +2 -5
- package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -1
- package/_types/chains/definitions/taikoTestnetSepolia.d.ts +2 -5
- package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -1
- package/_types/chains/definitions/taraxa.d.ts +2 -5
- package/_types/chains/definitions/taraxa.d.ts.map +1 -1
- package/_types/chains/definitions/taraxaTestnet.d.ts +2 -5
- package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/telos.d.ts +2 -5
- package/_types/chains/definitions/telos.d.ts.map +1 -1
- package/_types/chains/definitions/telosTestnet.d.ts +2 -5
- package/_types/chains/definitions/telosTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/thunderTestnet.d.ts +2 -5
- package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/vechain.d.ts +2 -5
- package/_types/chains/definitions/vechain.d.ts.map +1 -1
- package/_types/chains/definitions/wanchain.d.ts +2 -5
- package/_types/chains/definitions/wanchain.d.ts.map +1 -1
- package/_types/chains/definitions/wanchainTestnet.d.ts +2 -5
- package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/xdc.d.ts +2 -5
- package/_types/chains/definitions/xdc.d.ts.map +1 -1
- package/_types/chains/definitions/xdcTestnet.d.ts +2 -5
- package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts +2 -5
- package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zhejiang.d.ts +2 -5
- package/_types/chains/definitions/zhejiang.d.ts.map +1 -1
- package/_types/chains/definitions/zkSync.d.ts +486 -5
- package/_types/chains/definitions/zkSync.d.ts.map +1 -1
- package/_types/chains/definitions/zkSyncTestnet.d.ts +486 -5
- package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
- package/_types/chains/definitions/zora.d.ts +499 -1496
- package/_types/chains/definitions/zora.d.ts.map +1 -1
- package/_types/chains/definitions/zoraSepolia.d.ts +531 -0
- package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -0
- package/_types/chains/definitions/zoraTestnet.d.ts +499 -1496
- package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
- package/_types/chains/index.d.ts +5 -0
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/utils.d.ts +7 -1
- package/_types/chains/utils.d.ts.map +1 -1
- package/_types/chains/zksync/formatters.d.ts +487 -0
- package/_types/chains/zksync/formatters.d.ts.map +1 -0
- package/_types/chains/zksync/serializers.d.ts +9 -0
- package/_types/chains/zksync/serializers.d.ts.map +1 -0
- package/_types/chains/zksync/types.d.ts +158 -0
- package/_types/chains/zksync/types.d.ts.map +1 -0
- package/_types/clients/createClient.d.ts +6 -2
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/decorators/public.d.ts +3 -3
- package/_types/clients/decorators/public.d.ts.map +1 -1
- package/_types/clients/decorators/wallet.d.ts +3 -3
- package/_types/clients/decorators/wallet.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/index.d.ts +4 -1
- package/_types/index.d.ts.map +1 -1
- package/_types/types/chain.d.ts +3 -0
- package/_types/types/chain.d.ts.map +1 -1
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/chain/assertCurrentChain.d.ts +10 -0
- package/_types/utils/chain/assertCurrentChain.d.ts.map +1 -0
- package/_types/utils/chain/defineChain.d.ts +4 -0
- package/_types/utils/chain/defineChain.d.ts.map +1 -0
- package/_types/utils/chain/extractChain.d.ts +10 -0
- package/_types/utils/chain/extractChain.d.ts.map +1 -0
- package/_types/utils/chain/getChainContractAddress.d.ts +9 -0
- package/_types/utils/chain/getChainContractAddress.d.ts.map +1 -0
- package/_types/utils/formatters/block.d.ts +1 -1
- package/_types/utils/formatters/extract.d.ts +2 -2
- package/_types/utils/formatters/extract.d.ts.map +1 -1
- package/_types/utils/formatters/formatter.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/getAction.d.ts +3 -0
- package/_types/utils/getAction.d.ts.map +1 -0
- package/_types/utils/index.d.ts +4 -1
- package/_types/utils/index.d.ts.map +1 -1
- package/actions/ens/getEnsAddress.ts +6 -2
- package/actions/ens/getEnsAvatar.ts +5 -1
- package/actions/ens/getEnsName.ts +6 -2
- package/actions/ens/getEnsResolver.ts +6 -2
- package/actions/ens/getEnsText.ts +6 -2
- package/actions/getContract.ts +29 -7
- package/actions/public/call.ts +5 -5
- package/actions/public/estimateContractGas.ts +15 -2
- package/actions/public/estimateFeesPerGas.ts +4 -2
- package/actions/public/estimateGas.ts +4 -4
- package/actions/public/estimateMaxPriorityFeePerGas.ts +4 -3
- package/actions/public/getContractEvents.ts +5 -1
- package/actions/public/getTransactionConfirmations.ts +3 -2
- package/actions/public/multicall.ts +6 -2
- package/actions/public/readContract.ts +11 -2
- package/actions/public/simulateContract.ts +5 -1
- package/actions/public/verifyHash.ts +5 -1
- package/actions/public/waitForTransactionReceipt.ts +19 -6
- package/actions/public/watchBlockNumber.ts +5 -1
- package/actions/public/watchBlocks.ts +10 -3
- package/actions/public/watchContractEvent.ts +12 -5
- package/actions/public/watchEvent.ts +12 -5
- package/actions/public/watchPendingTransactions.ts +7 -3
- package/actions/test/sendUnsignedTransaction.ts +4 -4
- package/actions/wallet/getAddresses.ts +1 -0
- package/actions/wallet/prepareTransactionRequest.ts +11 -4
- package/actions/wallet/sendTransaction.ts +17 -9
- package/actions/wallet/signTransaction.ts +5 -4
- package/actions/wallet/writeContract.ts +12 -3
- package/chains/celo/formatters.ts +39 -5
- package/chains/celo/parsers.ts +82 -1
- package/chains/celo/serializers.ts +121 -9
- package/chains/celo/types.ts +60 -2
- package/chains/definitions/arbitrum.ts +1 -1
- package/chains/definitions/arbitrumGoerli.ts +3 -2
- package/chains/definitions/arbitrumNova.ts +1 -1
- package/chains/definitions/arbitrumSepolia.ts +1 -1
- package/chains/definitions/astarZkatana.ts +39 -0
- package/chains/definitions/aurora.ts +1 -1
- package/chains/definitions/auroraTestnet.ts +1 -1
- package/chains/definitions/avalanche.ts +1 -1
- package/chains/definitions/avalancheFuji.ts +1 -1
- package/chains/definitions/base.ts +1 -1
- package/chains/definitions/baseGoerli.ts +1 -1
- package/chains/definitions/baseSepolia.ts +34 -0
- package/chains/definitions/bearNetworkChainMainnet.ts +1 -1
- package/chains/definitions/bearNetworkChainTestnet.ts +1 -1
- package/chains/definitions/boba.ts +1 -1
- package/chains/definitions/bronos.ts +1 -1
- package/chains/definitions/bronosTestnet.ts +1 -1
- package/chains/definitions/bsc.ts +1 -1
- package/chains/definitions/bscTestnet.ts +1 -1
- package/chains/definitions/bxn.ts +1 -1
- package/chains/definitions/bxnTestnet.ts +1 -1
- package/chains/definitions/canto.ts +1 -1
- package/chains/definitions/celo.ts +1 -1
- package/chains/definitions/celoAlfajores.ts +1 -1
- package/chains/definitions/celoCannoli.ts +1 -1
- package/chains/definitions/classic.ts +1 -1
- package/chains/definitions/confluxESpace.ts +1 -1
- package/chains/definitions/coreDao.ts +1 -1
- package/chains/definitions/cronos.ts +1 -1
- package/chains/definitions/cronosTestnet.ts +1 -1
- package/chains/definitions/crossbell.ts +1 -1
- package/chains/definitions/dfk.ts +1 -1
- package/chains/definitions/dogechain.ts +1 -1
- package/chains/definitions/edgeware.ts +1 -1
- package/chains/definitions/edgewareTestnet.ts +1 -1
- package/chains/definitions/ekta.ts +1 -1
- package/chains/definitions/ektaTestnet.ts +1 -1
- package/chains/definitions/eon.ts +1 -1
- package/chains/definitions/eos.ts +1 -1
- package/chains/definitions/eosTestnet.ts +1 -1
- package/chains/definitions/evmos.ts +1 -1
- package/chains/definitions/evmosTestnet.ts +1 -1
- package/chains/definitions/fantom.ts +1 -1
- package/chains/definitions/fantomTestnet.ts +1 -1
- package/chains/definitions/fibo.ts +1 -1
- package/chains/definitions/filecoin.ts +1 -1
- package/chains/definitions/filecoinCalibration.ts +1 -1
- package/chains/definitions/filecoinHyperspace.ts +1 -1
- package/chains/definitions/flare.ts +1 -1
- package/chains/definitions/flareTestnet.ts +1 -1
- package/chains/definitions/foundry.ts +1 -1
- package/chains/definitions/fuse.ts +1 -1
- package/chains/definitions/fuseSparknet.ts +1 -1
- package/chains/definitions/gnosis.ts +1 -1
- package/chains/definitions/gnosisChiado.ts +1 -1
- package/chains/definitions/gobi.ts +1 -1
- package/chains/definitions/goerli.ts +1 -1
- package/chains/definitions/haqqMainnet.ts +1 -1
- package/chains/definitions/haqqTestedge2.ts +1 -1
- package/chains/definitions/hardhat.ts +1 -1
- package/chains/definitions/harmonyOne.ts +1 -1
- package/chains/definitions/holesky.ts +1 -1
- package/chains/definitions/iotex.ts +1 -1
- package/chains/definitions/iotexTestnet.ts +1 -1
- package/chains/definitions/klaytn.ts +1 -1
- package/chains/definitions/kroma.ts +1 -1
- package/chains/definitions/kromaSepolia.ts +1 -1
- package/chains/definitions/linea.ts +1 -1
- package/chains/definitions/lineaTestnet.ts +1 -1
- package/chains/definitions/localhost.ts +1 -1
- package/chains/definitions/mainnet.ts +1 -1
- package/chains/definitions/manta.ts +32 -0
- package/chains/definitions/mantaTestnet.ts +33 -0
- package/chains/definitions/mantle.ts +1 -1
- package/chains/definitions/mantleTestnet.ts +1 -1
- package/chains/definitions/meter.ts +1 -1
- package/chains/definitions/meterTestnet.ts +1 -1
- package/chains/definitions/metis.ts +1 -1
- package/chains/definitions/metisGoerli.ts +1 -1
- package/chains/definitions/mev.ts +1 -1
- package/chains/definitions/mevTestnet.ts +1 -1
- package/chains/definitions/modeTestnet.ts +7 -1
- package/chains/definitions/moonbaseAlpha.ts +1 -1
- package/chains/definitions/moonbeam.ts +1 -1
- package/chains/definitions/moonbeamDev.ts +1 -1
- package/chains/definitions/moonriver.ts +1 -1
- package/chains/definitions/neonDevnet.ts +1 -1
- package/chains/definitions/nexi.ts +1 -1
- package/chains/definitions/nexilix.ts +1 -1
- package/chains/definitions/oasys.ts +1 -1
- package/chains/definitions/okc.ts +1 -1
- package/chains/definitions/opBNB.ts +1 -1
- package/chains/definitions/opBNBTestnet.ts +1 -1
- package/chains/definitions/optimism.ts +1 -1
- package/chains/definitions/optimismGoerli.ts +1 -1
- package/chains/definitions/optimismSepolia.ts +1 -1
- package/chains/definitions/plinga.ts +1 -1
- package/chains/definitions/polygon.ts +1 -1
- package/chains/definitions/polygonMumbai.ts +1 -1
- package/chains/definitions/polygonZkEvm.ts +1 -1
- package/chains/definitions/polygonZkEvmTestnet.ts +1 -1
- package/chains/definitions/pulsechain.ts +1 -1
- package/chains/definitions/pulsechainV4.ts +1 -1
- package/chains/definitions/qMainnet.ts +1 -1
- package/chains/definitions/qTestnet.ts +1 -1
- package/chains/definitions/rollux.ts +1 -1
- package/chains/definitions/rolluxTestnet.ts +1 -1
- package/chains/definitions/ronin.ts +1 -1
- package/chains/definitions/saigon.ts +1 -1
- package/chains/definitions/scroll.ts +1 -1
- package/chains/definitions/scrollSepolia.ts +1 -1
- package/chains/definitions/scrollTestnet.ts +1 -1
- package/chains/definitions/sepolia.ts +1 -1
- package/chains/definitions/shardeumSphinx.ts +1 -1
- package/chains/definitions/skale/brawl.ts +1 -1
- package/chains/definitions/skale/calypso.ts +1 -1
- package/chains/definitions/skale/calypsoTestnet.ts +1 -1
- package/chains/definitions/skale/chaosTestnet.ts +1 -1
- package/chains/definitions/skale/cryptoBlades.ts +1 -1
- package/chains/definitions/skale/cryptoColosseum.ts +1 -1
- package/chains/definitions/skale/europa.ts +1 -1
- package/chains/definitions/skale/europaTestnet.ts +1 -1
- package/chains/definitions/skale/exorde.ts +1 -1
- package/chains/definitions/skale/humanProtocol.ts +1 -1
- package/chains/definitions/skale/nebula.ts +1 -1
- package/chains/definitions/skale/nebulaTestnet.ts +1 -1
- package/chains/definitions/skale/razor.ts +1 -1
- package/chains/definitions/skale/titan.ts +1 -1
- package/chains/definitions/skale/titanTestnet.ts +1 -1
- package/chains/definitions/songbird.ts +1 -1
- package/chains/definitions/songbirdTestnet.ts +1 -1
- package/chains/definitions/syscoin.ts +1 -1
- package/chains/definitions/syscoinTestnet.ts +1 -1
- package/chains/definitions/taikoJolnir.ts +1 -1
- package/chains/definitions/taikoTestnetSepolia.ts +1 -1
- package/chains/definitions/taraxa.ts +1 -1
- package/chains/definitions/taraxaTestnet.ts +1 -1
- package/chains/definitions/telos.ts +1 -1
- package/chains/definitions/telosTestnet.ts +1 -1
- package/chains/definitions/thunderTestnet.ts +1 -1
- package/chains/definitions/vechain.ts +1 -1
- package/chains/definitions/wanchain.ts +1 -1
- package/chains/definitions/wanchainTestnet.ts +1 -1
- package/chains/definitions/xdc.ts +1 -1
- package/chains/definitions/xdcTestnet.ts +1 -1
- package/chains/definitions/zetachainAthensTestnet.ts +1 -1
- package/chains/definitions/zhejiang.ts +1 -1
- package/chains/definitions/zkSync.ts +32 -23
- package/chains/definitions/zkSyncTestnet.ts +29 -20
- package/chains/definitions/zora.ts +1 -1
- package/chains/definitions/zoraSepolia.ts +41 -0
- package/chains/definitions/zoraTestnet.ts +1 -1
- package/chains/index.ts +5 -0
- package/chains/utils.ts +54 -0
- package/chains/zksync/formatters.ts +142 -0
- package/chains/zksync/serializers.ts +124 -0
- package/chains/zksync/types.ts +317 -0
- package/clients/createClient.ts +39 -2
- package/clients/decorators/public.ts +7 -3
- package/clients/decorators/wallet.ts +5 -3
- package/errors/version.ts +1 -1
- package/index.ts +11 -3
- package/package.json +1 -1
- package/types/chain.ts +5 -0
- package/utils/abi/decodeEventLog.ts +9 -11
- package/utils/chain/assertCurrentChain.ts +27 -0
- package/utils/chain/defineChain.ts +22 -0
- package/utils/chain/extractChain.ts +33 -0
- package/utils/chain/getChainContractAddress.ts +41 -0
- package/utils/formatters/extract.ts +20 -9
- package/utils/formatters/formatter.ts +1 -1
- package/utils/getAction.ts +13 -0
- package/utils/index.ts +13 -4
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,69 @@
|
|
1
1
|
# viem
|
2
2
|
|
3
|
+
## 1.18.1
|
4
|
+
|
5
|
+
### Patch Changes
|
6
|
+
|
7
|
+
- [#1409](https://github.com/wagmi-dev/viem/pull/1409) [`229e2d56`](https://github.com/wagmi-dev/viem/commit/229e2d565d9d07b9208753f46668378dccf3d399) Thanks [@qbzzt](https://github.com/qbzzt)! - Fixed Holesky public RPC URL.
|
8
|
+
|
9
|
+
## 1.18.0
|
10
|
+
|
11
|
+
### Minor Changes
|
12
|
+
|
13
|
+
- [#1402](https://github.com/wagmi-dev/viem/pull/1402) [`09778291`](https://github.com/wagmi-dev/viem/commit/0977829160effbe7dac5a69f43d263605544fa19) Thanks [@jxom](https://github.com/jxom)! - Added `extractChain` utility.
|
14
|
+
|
15
|
+
- [#1388](https://github.com/wagmi-dev/viem/pull/1388) [`d872061d`](https://github.com/wagmi-dev/viem/commit/d872061d1c6a791142027e59e39cfa44d9780631) Thanks [@speeddragon](https://github.com/speeddragon)! - Added ZkSync serializers
|
16
|
+
|
17
|
+
- [#1379](https://github.com/wagmi-dev/viem/pull/1379) [`fb395900`](https://github.com/wagmi-dev/viem/commit/fb3959009ad79a258316389e29d917869d23ff5e) Thanks [@yerdua](https://github.com/yerdua)! - Added support for Celo CIP-64 transactions
|
18
|
+
|
19
|
+
- [#1361](https://github.com/wagmi-dev/viem/pull/1361) [`70593019`](https://github.com/wagmi-dev/viem/commit/70593019d364a230a7cec87c2832e2135d8fedb8) Thanks [@speeddragon](https://github.com/speeddragon)! - Added ZkSync formatters.
|
20
|
+
|
21
|
+
## 1.17.2
|
22
|
+
|
23
|
+
### Patch Changes
|
24
|
+
|
25
|
+
- [#1399](https://github.com/wagmi-dev/viem/pull/1399) [`210e2b94`](https://github.com/wagmi-dev/viem/commit/210e2b943d6d04ab130151dfdb5a94e590e42fd4) Thanks [@codespool](https://github.com/codespool)! - Added multicall3 contract to astarZkatana
|
26
|
+
|
27
|
+
- [#1395](https://github.com/wagmi-dev/viem/pull/1395) [`1e206f46`](https://github.com/wagmi-dev/viem/commit/1e206f460ad21e2525bfc28ef89fd524b1dfaf2e) Thanks [@linchengzzz](https://github.com/linchengzzz)! - Added Manta Pacific Mainnet & Testnet
|
28
|
+
|
29
|
+
## 1.17.1
|
30
|
+
|
31
|
+
### Patch Changes
|
32
|
+
|
33
|
+
- [#1391](https://github.com/wagmi-dev/viem/pull/1391) [`437c0e5a`](https://github.com/wagmi-dev/viem/commit/437c0e5a023bc551c35e5a65da6f2a6a2e409bd7) Thanks [@IsabellaSmallcombe](https://github.com/IsabellaSmallcombe)! - Add Zora Sepolia Testnet
|
34
|
+
|
35
|
+
- [#1386](https://github.com/wagmi-dev/viem/pull/1386) [`fad9dc12`](https://github.com/wagmi-dev/viem/commit/fad9dc12eef2c7042db75a9ffa8f6e98e9e8f884) Thanks [@POKENA7](https://github.com/POKENA7)! - Added Astar zkEVM testnet zKatana chain.
|
36
|
+
|
37
|
+
## 1.17.0
|
38
|
+
|
39
|
+
### Minor Changes
|
40
|
+
|
41
|
+
- [#1382](https://github.com/wagmi-dev/viem/pull/1382) [`5ac4a631`](https://github.com/wagmi-dev/viem/commit/5ac4a6316edb4076287fcb3c571066c39a917995) Thanks [@jxom](https://github.com/jxom)! - Added ability for Actions (i.e. `readContract`) to infer their internal/dependant Actions (i.e. `call`) from the optionally extended Client.
|
42
|
+
|
43
|
+
For instance, if an extended Client has overridden the `call` Action, then the `readContract` Action will use that instead of Viem's internal `call` Action.
|
44
|
+
|
45
|
+
### Patch Changes
|
46
|
+
|
47
|
+
- [#1377](https://github.com/wagmi-dev/viem/pull/1377) [`592f03eb`](https://github.com/wagmi-dev/viem/commit/592f03eb3c4d9a3e23716682e0acf8cfa4e65106) Thanks [@okalenyk](https://github.com/okalenyk)! - Added `multicall3` contract to `modeTestnet` chain.
|
48
|
+
|
49
|
+
## 1.16.6
|
50
|
+
|
51
|
+
### Patch Changes
|
52
|
+
|
53
|
+
- [#1356](https://github.com/wagmi-dev/viem/pull/1356) [`0da9f886`](https://github.com/wagmi-dev/viem/commit/0da9f886124cea8f8e2f557de68bd94b96e53ac8) Thanks [@AmaxJ](https://github.com/AmaxJ)! - Removed trailing slash from arbiscan goerli blockexplorer url
|
54
|
+
|
55
|
+
- [`36ec87da`](https://github.com/wagmi-dev/viem/commit/36ec87da7f614f5c6ca9e632eb27f8d8d1bbfcdf) Thanks [@jxom](https://github.com/jxom)! - Modified `getAddresses` to be compatible with Local Accounts.
|
56
|
+
|
57
|
+
## 1.16.5
|
58
|
+
|
59
|
+
### Patch Changes
|
60
|
+
|
61
|
+
- [#1347](https://github.com/wagmi-dev/viem/pull/1347) [`541bd152`](https://github.com/wagmi-dev/viem/commit/541bd1528d3fb43edfd713e3dd89f30803a37f97) Thanks [@lukasrosario](https://github.com/lukasrosario)! - Added Base Sepolia
|
62
|
+
|
63
|
+
- [#1339](https://github.com/wagmi-dev/viem/pull/1339) [`b7ddaf61`](https://github.com/wagmi-dev/viem/commit/b7ddaf61d6a392a8fa6f4550afa505f75c31eca4) Thanks [@jxom](https://github.com/jxom)! - Fixed topics mismatch in `decodeEventLogs` strict mode.
|
64
|
+
|
65
|
+
- [`b6aace90`](https://github.com/wagmi-dev/viem/commit/b6aace909c8f27c49a393813e2569b98a72083ca) Thanks [@jxom](https://github.com/jxom)! - Fixed `chainId` assignment in `signTransaction` action.
|
66
|
+
|
3
67
|
## 1.16.4
|
4
68
|
|
5
69
|
### Patch Changes
|
package/README.md
CHANGED
@@ -207,7 +207,7 @@ If you're interested in contributing, please read the [contributing docs](/.gith
|
|
207
207
|
|
208
208
|
## Authors
|
209
209
|
|
210
|
-
- [@jxom](https://github.com/jxom) (jxom.eth, [Twitter](https://twitter.com/
|
210
|
+
- [@jxom](https://github.com/jxom) (jxom.eth, [Twitter](https://twitter.com/_jxom))
|
211
211
|
- [@tmm](https://github.com/tmm) (awkweb.eth, [Twitter](https://twitter.com/awkweb))
|
212
212
|
|
213
213
|
## License
|
@@ -4,19 +4,20 @@ exports.getEnsAddress = void 0;
|
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
5
|
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
6
6
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
7
|
-
const
|
7
|
+
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
8
8
|
const trim_js_1 = require("../../utils/data/trim.js");
|
9
9
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
10
10
|
const errors_js_1 = require("../../utils/ens/errors.js");
|
11
11
|
const namehash_js_1 = require("../../utils/ens/namehash.js");
|
12
12
|
const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
|
13
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
13
14
|
const readContract_js_1 = require("../public/readContract.js");
|
14
15
|
async function getEnsAddress(client, { blockNumber, blockTag, coinType, name, universalResolverAddress: universalResolverAddress_, }) {
|
15
16
|
let universalResolverAddress = universalResolverAddress_;
|
16
17
|
if (!universalResolverAddress) {
|
17
18
|
if (!client.chain)
|
18
19
|
throw new Error('client chain not configured. universalResolverAddress is required.');
|
19
|
-
universalResolverAddress = (0,
|
20
|
+
universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
20
21
|
blockNumber,
|
21
22
|
chain: client.chain,
|
22
23
|
contract: 'ensUniversalResolver',
|
@@ -30,7 +31,7 @@ async function getEnsAddress(client, { blockNumber, blockTag, coinType, name, un
|
|
30
31
|
? { args: [(0, namehash_js_1.namehash)(name), BigInt(coinType)] }
|
31
32
|
: { args: [(0, namehash_js_1.namehash)(name)] }),
|
32
33
|
});
|
33
|
-
const res = await (0,
|
34
|
+
const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
|
34
35
|
address: universalResolverAddress,
|
35
36
|
abi: abis_js_1.universalResolverResolveAbi,
|
36
37
|
functionName: 'resolve',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsAddress.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAddress.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAIhC,qFAGgD;AAChD,iFAG8C;AAC9C,
|
1
|
+
{"version":3,"file":"getEnsAddress.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAddress.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAIhC,qFAGgD;AAChD,iFAG8C;AAC9C,6FAGqD;AACrD,sDAAmE;AACnE,4DAA0E;AAC1E,yDAAwE;AACxE,6DAA8E;AAC9E,uEAGyC;AACzC,2DAAoD;AACpD,+DAGkC;AAqD3B,KAAK,UAAU,aAAa,CACjC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,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C,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;YACvE,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;SACb,CAAC,CAAA;QAEF,IAAI,OAAO,KAAK,IAAI;YAAE,OAAO,IAAI,CAAA;QACjC,IAAI,IAAA,cAAI,EAAC,OAAO,CAAC,KAAK,MAAM;YAAE,OAAO,IAAI,CAAA;QACzC,OAAO,OAAO,CAAA;KACf;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,IAAA,wCAA4B,EAAC,GAAG,EAAE,SAAS,CAAC;YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AA7DD,sCA6DC"}
|
@@ -2,9 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getEnsAvatar = void 0;
|
4
4
|
const parseAvatarRecord_js_1 = require("../../utils/ens/avatar/parseAvatarRecord.js");
|
5
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
5
6
|
const getEnsText_js_1 = require("./getEnsText.js");
|
6
7
|
async function getEnsAvatar(client, { blockNumber, blockTag, gatewayUrls, name, universalResolverAddress, }) {
|
7
|
-
const record = await (0,
|
8
|
+
const record = await (0, getAction_js_1.getAction)(client, getEnsText_js_1.getEnsText)({
|
8
9
|
blockNumber,
|
9
10
|
blockTag,
|
10
11
|
key: 'avatar',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":";;;AAMA,sFAGoD;AAEpD,mDAIwB;AA4CjB,KAAK,UAAU,YAAY,CAChC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,wBAAwB,GACD;IAEzB,MAAM,MAAM,GAAG,MAAM,IAAA,
|
1
|
+
{"version":3,"file":"getEnsAvatar.js","sourceRoot":"","sources":["../../../actions/ens/getEnsAvatar.ts"],"names":[],"mappings":";;;AAMA,sFAGoD;AACpD,2DAAoD;AAEpD,mDAIwB;AA4CjB,KAAK,UAAU,YAAY,CAChC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,WAAW,EACX,IAAI,EACJ,wBAAwB,GACD;IAEzB,MAAM,MAAM,GAAG,MAAM,IAAA,wBAAS,EAC5B,MAAM,EACN,0BAAU,CACX,CAAC;QACA,WAAW;QACX,QAAQ;QACR,GAAG,EAAE,QAAQ;QACb,IAAI;QACJ,wBAAwB;KACzB,CAAC,CAAA;IACF,IAAI,CAAC,MAAM;QAAE,OAAO,IAAI,CAAA;IACxB,IAAI;QACF,OAAO,MAAM,IAAA,wCAAiB,EAAC,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAA;KAChE;IAAC,MAAM;QACN,OAAO,IAAI,CAAA;KACZ;AACH,CAAC;AA1BD,oCA0BC"}
|
@@ -2,17 +2,18 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getEnsName = void 0;
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
|
-
const
|
5
|
+
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
6
6
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
7
7
|
const errors_js_1 = require("../../utils/ens/errors.js");
|
8
8
|
const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
|
9
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
9
10
|
const readContract_js_1 = require("../public/readContract.js");
|
10
11
|
async function getEnsName(client, { address, blockNumber, blockTag, universalResolverAddress: universalResolverAddress_, }) {
|
11
12
|
let universalResolverAddress = universalResolverAddress_;
|
12
13
|
if (!universalResolverAddress) {
|
13
14
|
if (!client.chain)
|
14
15
|
throw new Error('client chain not configured. universalResolverAddress is required.');
|
15
|
-
universalResolverAddress = (0,
|
16
|
+
universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
16
17
|
blockNumber,
|
17
18
|
chain: client.chain,
|
18
19
|
contract: 'ensUniversalResolver',
|
@@ -20,7 +21,7 @@ async function getEnsName(client, { address, blockNumber, blockTag, universalRes
|
|
20
21
|
}
|
21
22
|
const reverseNode = `${address.toLowerCase().substring(2)}.addr.reverse`;
|
22
23
|
try {
|
23
|
-
const res = await (0,
|
24
|
+
const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
|
24
25
|
address: universalResolverAddress,
|
25
26
|
abi: abis_js_1.universalResolverReverseAbi,
|
26
27
|
functionName: 'reverse',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsName.js","sourceRoot":"","sources":["../../../actions/ens/getEnsName.ts"],"names":[],"mappings":";;;AAIA,qDAAqE;AAIrE,
|
1
|
+
{"version":3,"file":"getEnsName.js","sourceRoot":"","sources":["../../../actions/ens/getEnsName.ts"],"names":[],"mappings":";;;AAIA,qDAAqE;AAIrE,6FAGqD;AACrD,4DAA0E;AAC1E,yDAAwE;AACxE,uEAGyC;AACzC,2DAAoD;AACpD,+DAIkC;AA8C3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,OAAO,EACP,WAAW,EACX,QAAQ,EACR,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,MAAM,WAAW,GAAG,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,eAAe,CAAA;IACxE,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAS,EACzB,MAAM,EACN,8BAAY,CACb,CAAC;YACA,OAAO,EAAE,wBAAwB;YACjC,GAAG,EAAE,qCAA2B;YAChC,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,WAAW,CAAC,CAAC,CAAC;YACzC,WAAW;YACX,QAAQ;SACT,CAAC,CAAA;QACF,OAAO,GAAG,CAAC,CAAC,CAAC,CAAA;KACd;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,IAAA,wCAA4B,EAAC,GAAG,EAAE,SAAS,CAAC;YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AAzCD,gCAyCC"}
|
@@ -1,22 +1,23 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getEnsResolver = void 0;
|
4
|
-
const
|
4
|
+
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
5
5
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
6
6
|
const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
|
7
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
7
8
|
const readContract_js_1 = require("../public/readContract.js");
|
8
9
|
async function getEnsResolver(client, { blockNumber, blockTag, name, universalResolverAddress: universalResolverAddress_, }) {
|
9
10
|
let universalResolverAddress = universalResolverAddress_;
|
10
11
|
if (!universalResolverAddress) {
|
11
12
|
if (!client.chain)
|
12
13
|
throw new Error('client chain not configured. universalResolverAddress is required.');
|
13
|
-
universalResolverAddress = (0,
|
14
|
+
universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
14
15
|
blockNumber,
|
15
16
|
chain: client.chain,
|
16
17
|
contract: 'ensUniversalResolver',
|
17
18
|
});
|
18
19
|
}
|
19
|
-
const [resolverAddress] = await (0,
|
20
|
+
const [resolverAddress] = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
|
20
21
|
address: universalResolverAddress,
|
21
22
|
abi: [
|
22
23
|
{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsResolver.js","sourceRoot":"","sources":["../../../actions/ens/getEnsResolver.ts"],"names":[],"mappings":";;;AAOA,
|
1
|
+
{"version":3,"file":"getEnsResolver.js","sourceRoot":"","sources":["../../../actions/ens/getEnsResolver.ts"],"names":[],"mappings":";;;AAOA,6FAGqD;AACrD,4DAA0E;AAC1E,uEAGyC;AACzC,2DAAoD;AACpD,+DAGkC;AA+C3B,KAAK,UAAU,cAAc,CAClC,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,wBAAwB,EAAE,yBAAyB,GAC1B;IAE3B,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,MAAM,CAAC,eAAe,CAAC,GAAG,MAAM,IAAA,wBAAS,EACvC,MAAM,EACN,8BAAY,CACb,CAAC;QACA,OAAO,EAAE,wBAAwB;QACjC,GAAG,EAAE;YACH;gBACE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gBAC3B,IAAI,EAAE,cAAc;gBACpB,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;gBACnD,eAAe,EAAE,MAAM;gBACvB,IAAI,EAAE,UAAU;aACjB;SACF;QACD,YAAY,EAAE,cAAc;QAC5B,IAAI,EAAE,CAAC,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,IAAI,CAAC,CAAC,CAAC;QAClC,WAAW;QACX,QAAQ;KACT,CAAC,CAAA;IACF,OAAO,eAAe,CAAA;AACxB,CAAC;AA3CD,wCA2CC"}
|
@@ -4,25 +4,26 @@ exports.getEnsText = void 0;
|
|
4
4
|
const abis_js_1 = require("../../constants/abis.js");
|
5
5
|
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
6
6
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
7
|
-
const
|
7
|
+
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
8
8
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
9
9
|
const errors_js_1 = require("../../utils/ens/errors.js");
|
10
10
|
const namehash_js_1 = require("../../utils/ens/namehash.js");
|
11
11
|
const packetToBytes_js_1 = require("../../utils/ens/packetToBytes.js");
|
12
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
12
13
|
const readContract_js_1 = require("../public/readContract.js");
|
13
14
|
async function getEnsText(client, { blockNumber, blockTag, name, key, universalResolverAddress: universalResolverAddress_, }) {
|
14
15
|
let universalResolverAddress = universalResolverAddress_;
|
15
16
|
if (!universalResolverAddress) {
|
16
17
|
if (!client.chain)
|
17
18
|
throw new Error('client chain not configured. universalResolverAddress is required.');
|
18
|
-
universalResolverAddress = (0,
|
19
|
+
universalResolverAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
19
20
|
blockNumber,
|
20
21
|
chain: client.chain,
|
21
22
|
contract: 'ensUniversalResolver',
|
22
23
|
});
|
23
24
|
}
|
24
25
|
try {
|
25
|
-
const res = await (0,
|
26
|
+
const res = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract)({
|
26
27
|
address: universalResolverAddress,
|
27
28
|
abi: abis_js_1.universalResolverResolveAbi,
|
28
29
|
functionName: 'resolve',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getEnsText.js","sourceRoot":"","sources":["../../../actions/ens/getEnsText.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAGhC,qFAGgD;AAChD,iFAG8C;AAC9C,
|
1
|
+
{"version":3,"file":"getEnsText.js","sourceRoot":"","sources":["../../../actions/ens/getEnsText.ts"],"names":[],"mappings":";;;AAIA,qDAGgC;AAGhC,qFAGgD;AAChD,iFAG8C;AAC9C,6FAGqD;AACrD,4DAA0E;AAC1E,yDAAwE;AACxE,6DAA8E;AAC9E,uEAGyC;AACzC,2DAAoD;AACpD,+DAIkC;AAqD3B,KAAK,UAAU,UAAU,CAC9B,MAAiC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,wBAAwB,EAAE,yBAAyB,GAC9B;IAEvB,IAAI,wBAAwB,GAAG,yBAAyB,CAAA;IACxD,IAAI,CAAC,wBAAwB,EAAE;QAC7B,IAAI,CAAC,MAAM,CAAC,KAAK;YACf,MAAM,IAAI,KAAK,CACb,oEAAoE,CACrE,CAAA;QAEH,wBAAwB,GAAG,IAAA,oDAAuB,EAAC;YACjD,WAAW;YACX,KAAK,EAAE,MAAM,CAAC,KAAK;YACnB,QAAQ,EAAE,sBAAsB;SACjC,CAAC,CAAA;KACH;IAED,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAS,EACzB,MAAM,EACN,8BAAY,CACb,CAAC;YACA,OAAO,EAAE,wBAAwB;YACjC,GAAG,EAAE,qCAA2B;YAChC,YAAY,EAAE,SAAS;YACvB,IAAI,EAAE;gBACJ,IAAA,gBAAK,EAAC,IAAA,gCAAa,EAAC,IAAI,CAAC,CAAC;gBAC1B,IAAA,0CAAkB,EAAC;oBACjB,GAAG,EAAE,yBAAe;oBACpB,YAAY,EAAE,MAAM;oBACpB,IAAI,EAAE,CAAC,IAAA,sBAAQ,EAAC,IAAI,CAAC,EAAE,GAAG,CAAC;iBAC5B,CAAC;aACH;YACD,WAAW;YACX,QAAQ;SACT,CAAC,CAAA;QAEF,IAAI,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI;YAAE,OAAO,IAAI,CAAA;QAEhC,MAAM,MAAM,GAAG,IAAA,8CAAoB,EAAC;YAClC,GAAG,EAAE,yBAAe;YACpB,YAAY,EAAE,MAAM;YACpB,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;SACb,CAAC,CAAA;QAEF,OAAO,MAAM,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAA;KACrC;IAAC,OAAO,GAAG,EAAE;QACZ,IAAI,IAAA,wCAA4B,EAAC,GAAG,EAAE,SAAS,CAAC;YAAE,OAAO,IAAI,CAAA;QAC7D,MAAM,GAAG,CAAA;KACV;AACH,CAAC;AAzDD,gCAyDC"}
|
@@ -1,6 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getEventParameters = exports.getFunctionParameters = exports.getContract = void 0;
|
4
|
+
const getAction_js_1 = require("../utils/getAction.js");
|
4
5
|
const createContractEventFilter_js_1 = require("./public/createContractEventFilter.js");
|
5
6
|
const estimateContractGas_js_1 = require("./public/estimateContractGas.js");
|
6
7
|
const getContractEvents_js_1 = require("./public/getContractEvents.js");
|
@@ -44,7 +45,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
44
45
|
get(_, functionName) {
|
45
46
|
return (...parameters) => {
|
46
47
|
const { args, options } = getFunctionParameters(parameters);
|
47
|
-
return (0,
|
48
|
+
return (0, getAction_js_1.getAction)(publicClient, readContract_js_1.readContract)({
|
48
49
|
abi,
|
49
50
|
address,
|
50
51
|
functionName,
|
@@ -59,7 +60,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
59
60
|
get(_, functionName) {
|
60
61
|
return (...parameters) => {
|
61
62
|
const { args, options } = getFunctionParameters(parameters);
|
62
|
-
return (0,
|
63
|
+
return (0, getAction_js_1.getAction)(publicClient, simulateContract_js_1.simulateContract)({
|
63
64
|
abi,
|
64
65
|
address,
|
65
66
|
functionName,
|
@@ -75,7 +76,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
75
76
|
return (...parameters) => {
|
76
77
|
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
77
78
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
78
|
-
return (0,
|
79
|
+
return (0, getAction_js_1.getAction)(publicClient, createContractEventFilter_js_1.createContractEventFilter)({
|
79
80
|
abi,
|
80
81
|
address,
|
81
82
|
eventName,
|
@@ -90,7 +91,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
90
91
|
return (...parameters) => {
|
91
92
|
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
92
93
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
93
|
-
return (0,
|
94
|
+
return (0, getAction_js_1.getAction)(publicClient, getContractEvents_js_1.getContractEvents)({
|
94
95
|
abi,
|
95
96
|
address,
|
96
97
|
eventName,
|
@@ -105,7 +106,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
105
106
|
return (...parameters) => {
|
106
107
|
const abiEvent = abi.find((x) => x.type === 'event' && x.name === eventName);
|
107
108
|
const { args, options } = getEventParameters(parameters, abiEvent);
|
108
|
-
return (0,
|
109
|
+
return (0, getAction_js_1.getAction)(publicClient, watchContractEvent_js_1.watchContractEvent)({
|
109
110
|
abi,
|
110
111
|
address,
|
111
112
|
eventName,
|
@@ -123,7 +124,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
123
124
|
get(_, functionName) {
|
124
125
|
return (...parameters) => {
|
125
126
|
const { args, options } = getFunctionParameters(parameters);
|
126
|
-
return (0,
|
127
|
+
return (0, getAction_js_1.getAction)(walletClient, writeContract_js_1.writeContract)({
|
127
128
|
abi,
|
128
129
|
address,
|
129
130
|
functionName,
|
@@ -141,7 +142,7 @@ function getContract({ abi, address, client: client_, }) {
|
|
141
142
|
return (...parameters) => {
|
142
143
|
const { args, options } = getFunctionParameters(parameters);
|
143
144
|
const client = (publicClient ?? walletClient);
|
144
|
-
return (0,
|
145
|
+
return (0, getAction_js_1.getAction)(client, estimateContractGas_js_1.estimateContractGas)({
|
145
146
|
abi,
|
146
147
|
address,
|
147
148
|
functionName,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getContract.js","sourceRoot":"","sources":["../../actions/getContract.ts"],"names":[],"mappings":";;;AAiCA,wFAI8C;AAC9C,4EAIwC;AACxC,wEAIsC;AACtC,8DAIiC;AACjC,sEAIqC;AACrC,0EAIuC;AACvC,gEAIkC;AAiZlC,SAAgB,WAAW,CAazB,EACA,GAAG,EACH,OAAO,EACP,MAAM,EAAE,OAAO,GAQhB;IACC,MAAM,MAAM,GAAG,OAE8B,CAAA;IAE7C,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE;QACzC,IAAI,CAAC,MAAM;YAAE,OAAO,CAAC,SAAS,EAAE,SAAS,CAAC,CAAA;QAC1C,IAAI,cAAc,IAAI,MAAM,IAAI,cAAc,IAAI,MAAM;YACtD,OAAO,CAAC,MAAM,CAAC,YAAsB,EAAE,MAAM,CAAC,YAAsB,CAAC,CAAA;QACvE,IAAI,cAAc,IAAI,MAAM;YAC1B,OAAO,CAAC,MAAM,CAAC,YAAsB,EAAE,SAAS,CAAC,CAAA;QACnD,IAAI,cAAc,IAAI,MAAM;YAC1B,OAAO,CAAC,SAAS,EAAE,MAAM,CAAC,YAAsB,CAAC,CAAA;QACnD,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACzB,CAAC,CAAC,EAAE,CAAA;IAEJ,MAAM,eAAe,GAAG,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,CAAA;IAC3E,MAAM,eAAe,GAAG,YAAY,KAAK,SAAS,IAAI,YAAY,KAAK,IAAI,CAAA;IAE3E,MAAM,QAAQ,GAWV,EAAE,CAAA;IAEN,IAAI,eAAe,GAAG,KAAK,CAAA;IAC3B,IAAI,gBAAgB,GAAG,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
|
|
9
9
|
const contract_js_2 = require("../../errors/contract.js");
|
10
10
|
const decodeFunctionResult_js_1 = require("../../utils/abi/decodeFunctionResult.js");
|
11
11
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
12
|
-
const
|
12
|
+
const getChainContractAddress_js_1 = require("../../utils/chain/getChainContractAddress.js");
|
13
13
|
const toHex_js_1 = require("../../utils/encoding/toHex.js");
|
14
14
|
const getCallError_js_1 = require("../../utils/errors/getCallError.js");
|
15
15
|
const extract_js_1 = require("../../utils/formatters/extract.js");
|
@@ -23,10 +23,10 @@ async function call(client, args) {
|
|
23
23
|
(0, assertRequest_js_1.assertRequest)(args);
|
24
24
|
const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
|
25
25
|
const block = blockNumberHex || blockTag;
|
26
|
-
const
|
27
|
-
|
26
|
+
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
27
|
+
const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
|
28
28
|
const request = format({
|
29
|
-
...(0, extract_js_1.extract)(rest, { format }),
|
29
|
+
...(0, extract_js_1.extract)(rest, { format: chainFormat }),
|
30
30
|
from: account?.address,
|
31
31
|
accessList,
|
32
32
|
data,
|
@@ -95,7 +95,7 @@ async function scheduleMulticall(client, args) {
|
|
95
95
|
if (!multicallAddress) {
|
96
96
|
if (!client.chain)
|
97
97
|
throw new chain_js_1.ClientChainNotConfiguredError();
|
98
|
-
multicallAddress = (0,
|
98
|
+
multicallAddress = (0, getChainContractAddress_js_1.getChainContractAddress)({
|
99
99
|
blockNumber,
|
100
100
|
chain: client.chain,
|
101
101
|
contract: 'multicall3',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../actions/public/call.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAG7C,qDAAuD;AACvD,6DAAiE;AACjE,kDAAgD;AAChD,oDAG8B;AAC9B,0DAGiC;AAQjC,qFAG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,EAAE,gBAAgB;qBACrB;oBACD,KAAK;iBACN;aACF,CAAC,CAAA;YAEF,OAAO,IAAA,8CAAoB,EAAC;gBAC1B,GAAG,EAAE,uBAAa;gBAClB,IAAI,EAAE,CAAC,KAAK,CAAC;gBACb,YAAY,EAAE,YAAY;gBAC1B,IAAI,EAAE,IAAI,IAAI,IAAI;aACnB,CAAC,CAAA;QACJ,CAAC;KACF,CAAC,CAAA;IAEF,MAAM,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,GAAG,MAAM,QAAQ,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAA;IAE9D,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,8BAAgB,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAA;IAC9D,IAAI,UAAU,KAAK,IAAI;QAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,CAAA;IACnD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAA;AAC7B,CAAC;AAID,SAAgB,kBAAkB,CAAC,GAAY;IAC7C,IAAI,CAAC,CAAC,GAAG,YAAY,mBAAS,CAAC;QAAE,OAAO,SAAS,CAAA;IACjD,MAAM,KAAK,GAAG,GAAG,CAAC,IAAI,EAAsB,CAAA;IAC5C,OAAO,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAA;AACtE,CAAC;AAJD,gDAIC"}
|
@@ -4,12 +4,21 @@ exports.estimateContractGas = void 0;
|
|
4
4
|
const parseAccount_js_1 = require("../../accounts/utils/parseAccount.js");
|
5
5
|
const encodeFunctionData_js_1 = require("../../utils/abi/encodeFunctionData.js");
|
6
6
|
const getContractError_js_1 = require("../../utils/errors/getContractError.js");
|
7
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
7
8
|
const estimateGas_js_1 = require("./estimateGas.js");
|
8
9
|
async function estimateContractGas(client, parameters) {
|
9
10
|
const { abi, address, args, functionName, ...request } = parameters;
|
10
|
-
const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
11
|
+
const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
|
12
|
+
abi,
|
13
|
+
args,
|
14
|
+
functionName,
|
15
|
+
});
|
11
16
|
try {
|
12
|
-
const gas = await (0,
|
17
|
+
const gas = await (0, getAction_js_1.getAction)(client, estimateGas_js_1.estimateGas)({
|
18
|
+
data,
|
19
|
+
to: address,
|
20
|
+
...request,
|
21
|
+
});
|
13
22
|
return gas;
|
14
23
|
}
|
15
24
|
catch (error) {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateContractGas.js","sourceRoot":"","sources":["../../../actions/public/estimateContractGas.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAY7C,
|
1
|
+
{"version":3,"file":"estimateContractGas.js","sourceRoot":"","sources":["../../../actions/public/estimateContractGas.ts"],"names":[],"mappings":";;;AAGA,0EAG6C;AAY7C,iFAI8C;AAC9C,gFAG+C;AAC/C,2DAAoD;AACpD,qDAIyB;AA+DlB,KAAK,UAAU,mBAAmB,CAOvC,MAAyC,EACzC,UAMC;IAED,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,GACpD,UAA2C,CAAA;IAC7C,MAAM,IAAI,GAAG,IAAA,0CAAkB,EAAC;QAC9B,GAAG;QACH,IAAI;QACJ,YAAY;KACmB,CAAC,CAAA;IAClC,IAAI;QACF,MAAM,GAAG,GAAG,MAAM,IAAA,wBAAS,EACzB,MAAM,EACN,4BAAW,CACZ,CAAC;YACA,IAAI;YACJ,EAAE,EAAE,OAAO;YACX,GAAG,OAAO;SACyB,CAAC,CAAA;QACtC,OAAO,GAAG,CAAA;KACX;IAAC,OAAO,KAAK,EAAE;QACd,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,IAAA,8BAAY,EAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;QAC3E,MAAM,IAAA,sCAAgB,EAAC,KAAkB,EAAE;YACzC,GAAG;YACH,OAAO;YACP,IAAI;YACJ,QAAQ,EAAE,oCAAoC;YAC9C,YAAY;YACZ,MAAM,EAAE,OAAO,EAAE,OAAO;SACzB,CAAC,CAAA;KACH;AACH,CAAC;AA5CD,kDA4CC"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.internal_estimateFeesPerGas = exports.estimateFeesPerGas = void 0;
|
4
4
|
const fee_js_1 = require("../../errors/fee.js");
|
5
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
5
6
|
const estimateMaxPriorityFeePerGas_js_1 = require("./estimateMaxPriorityFeePerGas.js");
|
6
7
|
const getBlock_js_1 = require("./getBlock.js");
|
7
8
|
const getGasPrice_js_1 = require("./getGasPrice.js");
|
@@ -26,7 +27,7 @@ async function internal_estimateFeesPerGas(client, args) {
|
|
26
27
|
const denominator = 10 ** decimals;
|
27
28
|
const multiply = (base) => (base * BigInt(Math.ceil(baseFeeMultiplier * denominator))) /
|
28
29
|
BigInt(denominator);
|
29
|
-
const block = block_ ? block_ : await (0, getBlock_js_1.getBlock)(
|
30
|
+
const block = block_ ? block_ : await (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({});
|
30
31
|
if (typeof chain?.fees?.estimateFeesPerGas === 'function')
|
31
32
|
return chain.fees.estimateFeesPerGas({
|
32
33
|
block: block_,
|
@@ -52,7 +53,7 @@ async function internal_estimateFeesPerGas(client, args) {
|
|
52
53
|
maxPriorityFeePerGas,
|
53
54
|
};
|
54
55
|
}
|
55
|
-
const gasPrice = request?.gasPrice ?? multiply(await (0, getGasPrice_js_1.getGasPrice)(
|
56
|
+
const gasPrice = request?.gasPrice ?? multiply(await (0, getAction_js_1.getAction)(client, getGasPrice_js_1.getGasPrice)({}));
|
56
57
|
return {
|
57
58
|
gasPrice,
|
58
59
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateFeesPerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateFeesPerGas.ts"],"names":[],"mappings":";;;AAEA,gDAK4B;
|
1
|
+
{"version":3,"file":"estimateFeesPerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateFeesPerGas.ts"],"names":[],"mappings":";;;AAEA,gDAK4B;AAc5B,2DAAoD;AAEpD,uFAG0C;AAC1C,+CAAwC;AACxC,qDAAyE;AAsDlE,KAAK,UAAU,kBAAkB,CAKtC,MAAgC,EAChC,IAA+D;IAE/D,OAAO,2BAA2B,CAAC,MAAM,EAAE,IAAW,CAAC,CAAA;AACzD,CAAC;AATD,gDASC;AAEM,KAAK,UAAU,2BAA2B,CAK/C,MAAgC,EAChC,IAGC;IAED,MAAM,EACJ,KAAK,EAAE,MAAM,EACb,KAAK,GAAG,MAAM,CAAC,KAAK,EACpB,OAAO,EACP,IAAI,GAAG,SAAS,GACjB,GAAG,IAAI,IAAI,EAAE,CAAA;IAEd,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE;QAC1C,IAAI,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,KAAK,UAAU;YACtD,OAAO,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC;gBAClC,KAAK,EAAE,MAAe;gBACtB,MAAM;gBACN,OAAO;aACiB,CAAC,CAAA;QAC7B,OAAO,KAAK,EAAE,IAAI,EAAE,iBAAiB,IAAI,GAAG,CAAA;IAC9C,CAAC,CAAC,EAAE,CAAA;IACJ,IAAI,iBAAiB,GAAG,CAAC;QAAE,MAAM,IAAI,2BAAkB,EAAE,CAAA;IAEzD,MAAM,QAAQ,GAAG,iBAAiB,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAAA;IACxE,MAAM,WAAW,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ACzE,OAAO;QACL,QAAQ;KAC6B,CAAA;AACzC,CAAC;AA5ED,kEA4EC"}
|
@@ -23,10 +23,10 @@ async function estimateGas(client, args) {
|
|
23
23
|
const blockNumberHex = blockNumber ? (0, toHex_js_1.numberToHex)(blockNumber) : undefined;
|
24
24
|
const block = blockNumberHex || blockTag;
|
25
25
|
(0, assertRequest_js_1.assertRequest)(args);
|
26
|
-
const
|
27
|
-
|
26
|
+
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
27
|
+
const format = chainFormat || transactionRequest_js_1.formatTransactionRequest;
|
28
28
|
const request = format({
|
29
|
-
...(0, extract_js_1.extract)(rest, { format }),
|
29
|
+
...(0, extract_js_1.extract)(rest, { format: chainFormat }),
|
30
30
|
from: account.address,
|
31
31
|
accessList,
|
32
32
|
data,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateGas.js","sourceRoot":"","sources":["../../../actions/public/estimateGas.ts"],"names":[],"mappings":";;;AACA,0EAG6C;AAG7C,wDAA8D;AAQ9D,4DAGsC;AACtC,sFAGkD;AAClD,kEAA2D;AAC3D,wFAGqD;AACrD,+EAIiD;AACjD,yFAG+C;AA6DxC,KAAK,UAAU,WAAW,CAI/B,MAA2C,EAC3C,IAA6C;IAE7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,IAAI,MAAM,CAAC,OAAO,CAAA;IAC/C,IAAI,CAAC,QAAQ;QACX,MAAM,IAAI,iCAAoB,CAAC;YAC7B,QAAQ,EAAE,kCAAkC;SAC7C,CAAC,CAAA;IACJ,MAAM,OAAO,GAAG,IAAA,8BAAY,EAAC,QAAQ,CAAC,CAAA;IAEtC,IAAI;QACF,MAAM,EACJ,UAAU,EACV,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,QAAQ,EACR,YAAY,EACZ,oBAAoB,EACpB,KAAK,EACL,EAAE,EACF,KAAK,EACL,GAAG,IAAI,EACR,GACC,OAAO,CAAC,IAAI,KAAK,OAAO;YACt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AC,CAAC,CAAC,CAAC,SAAS,CAAA;QACzE,MAAM,KAAK,GAAG,cAAc,IAAI,QAAQ,CAAA;QAExC,IAAA,gCAAa,EAAC,IAA+B,CAAC,CAAA;QAE9C,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,CAAA;QACxE,MAAM,MAAM,GAAG,WAAW,IAAI,gDAAwB,CAAA;QAEtD,MAAM,OAAO,GAAG,MAAM,CAAC;YAErB,GAAG,IAAA,oBAAO,EAAC,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;YACzC,IAAI,EAAE,OAAO,CAAC,OAAO;YACrB,UAAU;YACV,IAAI;YACJ,GAAG;YACH,QAAQ;YACR,YAAY;YACZ,oBAAoB;YACpB,KAAK;YACL,EAAE;YACF,KAAK;SACgB,CAAC,CAAA;QAExB,MAAM,OAAO,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC;YACnC,MAAM,EAAE,iBAAiB;YACzB,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;SAC7C,CAAC,CAAA;QACF,OAAO,MAAM,CAAC,OAAO,CAAC,CAAA;KACvB;IAAC,OAAO,GAAG,EAAE;QACZ,MAAM,IAAA,4CAAmB,EAAC,GAAgB,EAAE;YAC1C,GAAG,IAAI;YACP,OAAO;YACP,KAAK,EAAE,MAAM,CAAC,KAAK;SACpB,CAAC,CAAA;KACH;AACH,CAAC;AAvED,kCAuEC"}
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.internal_estimateMaxPriorityFeePerGas = exports.estimateMaxPriorityFeePerGas = void 0;
|
4
4
|
const fee_js_1 = require("../../errors/fee.js");
|
5
5
|
const fromHex_js_1 = require("../../utils/encoding/fromHex.js");
|
6
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
6
7
|
const getBlock_js_1 = require("./getBlock.js");
|
7
8
|
const getGasPrice_js_1 = require("./getGasPrice.js");
|
8
9
|
async function estimateMaxPriorityFeePerGas(client, args) {
|
@@ -12,7 +13,7 @@ exports.estimateMaxPriorityFeePerGas = estimateMaxPriorityFeePerGas;
|
|
12
13
|
async function internal_estimateMaxPriorityFeePerGas(client, args) {
|
13
14
|
const { block: block_, chain = client.chain, request } = args || {};
|
14
15
|
if (typeof chain?.fees?.defaultPriorityFee === 'function') {
|
15
|
-
const block = block_ || (await (0, getBlock_js_1.getBlock)(
|
16
|
+
const block = block_ || (await (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({}));
|
16
17
|
return chain.fees.defaultPriorityFee({
|
17
18
|
block,
|
18
19
|
client,
|
@@ -29,8 +30,8 @@ async function internal_estimateMaxPriorityFeePerGas(client, args) {
|
|
29
30
|
}
|
30
31
|
catch {
|
31
32
|
const [block, gasPrice] = await Promise.all([
|
32
|
-
block_ ? Promise.resolve(block_) : (0, getBlock_js_1.getBlock)(
|
33
|
-
(0, getGasPrice_js_1.getGasPrice)(
|
33
|
+
block_ ? Promise.resolve(block_) : (0, getAction_js_1.getAction)(client, getBlock_js_1.getBlock)({}),
|
34
|
+
(0, getAction_js_1.getAction)(client, getGasPrice_js_1.getGasPrice)({}),
|
34
35
|
]);
|
35
36
|
if (typeof block.baseFeePerGas !== 'bigint')
|
36
37
|
throw new fee_js_1.Eip1559FeesNotSupportedError();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"estimateMaxPriorityFeePerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateMaxPriorityFeePerGas.ts"],"names":[],"mappings":";;;AAEA,gDAG4B;AAO5B,gEAGwC;
|
1
|
+
{"version":3,"file":"estimateMaxPriorityFeePerGas.js","sourceRoot":"","sources":["../../../actions/public/estimateMaxPriorityFeePerGas.ts"],"names":[],"mappings":";;;AAEA,gDAG4B;AAO5B,gEAGwC;AACxC,2DAAoD;AAEpD,+CAAgE;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CAAA;QAEF,IAAI,OAAO,KAAK,CAAC,aAAa,KAAK,QAAQ;YACzC,MAAM,IAAI,qCAA4B,EAAE,CAAA;QAE1C,MAAM,oBAAoB,GAAG,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAA;QAE3D,IAAI,oBAAoB,GAAG,EAAE;YAAE,OAAO,EAAE,CAAA;QACxC,OAAO,oBAAoB,CAAA;KAC5B;AACH,CAAC;AA/CD,sFA+CC"}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getContractEvents = void 0;
|
4
4
|
const getAbiItem_js_1 = require("../../utils/abi/getAbiItem.js");
|
5
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
5
6
|
const getLogs_js_1 = require("./getLogs.js");
|
6
7
|
async function getContractEvents(client, parameters) {
|
7
8
|
const { abi, address, args, blockHash, eventName, fromBlock, toBlock, strict, } = parameters;
|
@@ -11,7 +12,7 @@ async function getContractEvents(client, parameters) {
|
|
11
12
|
const events = !event
|
12
13
|
? abi.filter((x) => x.type === 'event')
|
13
14
|
: undefined;
|
14
|
-
return (0,
|
15
|
+
return (0, getAction_js_1.getAction)(client, getLogs_js_1.getLogs)({
|
15
16
|
address,
|
16
17
|
args,
|
17
18
|
blockHash,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"getContractEvents.js","sourceRoot":"","sources":["../../../actions/public/getContractEvents.ts"],"names":[],"mappings":";;;AAaA,iEAIsC;AACtC,6CAIqB;AA2Fd,KAAK,UAAU,iBAAiB,CAQrC,MAAgC,EAChC,UAMC;IAID,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,GACP,GAAG,UAAU,CAAA;IACd,MAAM,KAAK,GAAG,SAAS;QACrB,CAAC,CAAC,IAAA,0BAAU,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAA0B,CAAC;QAC9D,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,MAAM,GAAG,CAAC,KAAK;QACnB,CAAC,CAAE,GAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;QAChD,CAAC,CAAC,SAAS,CAAA;IACb,OAAO,IAAA,
|
1
|
+
{"version":3,"file":"getContractEvents.js","sourceRoot":"","sources":["../../../actions/public/getContractEvents.ts"],"names":[],"mappings":";;;AAaA,iEAIsC;AACtC,2DAAoD;AACpD,6CAIqB;AA2Fd,KAAK,UAAU,iBAAiB,CAQrC,MAAgC,EAChC,UAMC;IAID,MAAM,EACJ,GAAG,EACH,OAAO,EACP,IAAI,EACJ,SAAS,EACT,SAAS,EACT,SAAS,EACT,OAAO,EACP,MAAM,GACP,GAAG,UAAU,CAAA;IACd,MAAM,KAAK,GAAG,SAAS;QACrB,CAAC,CAAC,IAAA,0BAAU,EAAC,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAA0B,CAAC;QAC9D,CAAC,CAAC,SAAS,CAAA;IACb,MAAM,MAAM,GAAG,CAAC,KAAK;QACnB,CAAC,CAAE,GAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC;QAChD,CAAC,CAAC,SAAS,CAAA;IACb,OAAO,IAAA,wBAAS,EACd,MAAM,EACN,oBAAO,CACR,CAAC;QACA,OAAO;QACP,IAAI;QACJ,SAAS;QACT,KAAK;QACL,MAAM;QACN,SAAS;QACT,OAAO;QACP,MAAM;KACoB,CAM3B,CAAA;AACH,CAAC;AAtDD,8CAsDC"}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getTransactionConfirmations = void 0;
|
4
|
+
const getAction_js_1 = require("../../utils/getAction.js");
|
4
5
|
const getBlockNumber_js_1 = require("./getBlockNumber.js");
|
5
6
|
const getTransaction_js_1 = require("./getTransaction.js");
|
6
7
|
async function getTransactionConfirmations(client, { hash, transactionReceipt }) {
|
7
8
|
const [blockNumber, transaction] = await Promise.all([
|
8
|
-
(0, getBlockNumber_js_1.getBlockNumber)(
|
9
|
-
hash ? (0,
|
9
|
+
(0, getAction_js_1.getAction)(client, getBlockNumber_js_1.getBlockNumber)({}),
|
10
|
+
hash ? (0, getAction_js_1.getAction)(client, getTransaction_js_1.getTransaction)({ hash }) : undefined,
|
10
11
|
]);
|
11
12
|
const transactionBlockNumber = transactionReceipt?.blockNumber || transaction?.blockNumber;
|
12
13
|
if (!transactionBlockNumber)
|