viem 2.35.1 → 2.36.0
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 +12 -0
- package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +1 -1
- package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_cjs/account-abstraction/index.js +9 -9
- package/_cjs/account-abstraction/index.js.map +1 -1
- package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
- package/_cjs/accounts/index.js +24 -24
- package/_cjs/accounts/index.js.map +1 -1
- package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
- package/_cjs/accounts/toAccount.js.map +1 -1
- package/_cjs/accounts/utils/signTypedData.js.map +1 -1
- package/_cjs/actions/getContract.js.map +1 -1
- package/_cjs/actions/index.js +76 -76
- package/_cjs/actions/index.js.map +1 -1
- package/_cjs/actions/public/call.js +24 -14
- package/_cjs/actions/public/call.js.map +1 -1
- package/_cjs/actions/public/createAccessList.js.map +1 -1
- package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_cjs/actions/public/multicall.js +20 -16
- package/_cjs/actions/public/multicall.js.map +1 -1
- package/_cjs/actions/public/simulateBlocks.js +1 -1
- package/_cjs/actions/public/simulateBlocks.js.map +1 -1
- package/_cjs/actions/public/simulateContract.js.map +1 -1
- package/_cjs/actions/public/verifyMessage.js.map +1 -1
- package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_cjs/actions/public/watchContractEvent.js.map +1 -1
- package/_cjs/actions/public/watchEvent.js +4 -4
- package/_cjs/actions/public/watchEvent.js.map +1 -1
- package/_cjs/actions/siwe/verifySiweMessage.js.map +1 -1
- package/_cjs/actions/wallet/deployContract.js.map +1 -1
- package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_cjs/actions/wallet/signTransaction.js.map +1 -1
- package/_cjs/actions/wallet/waitForCallsStatus.js +1 -1
- package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_cjs/celo/parsers.js +1 -1
- package/_cjs/celo/parsers.js.map +1 -1
- package/_cjs/chains/index.js +45 -45
- package/_cjs/chains/index.js.map +1 -1
- package/_cjs/clients/createClient.js.map +1 -1
- package/_cjs/clients/decorators/test.js.map +1 -1
- package/_cjs/constants/contracts.js +2 -1
- package/_cjs/constants/contracts.js.map +1 -1
- package/_cjs/ens/index.js +7 -7
- package/_cjs/ens/index.js.map +1 -1
- package/_cjs/errors/contract.js +1 -1
- package/_cjs/errors/contract.js.map +1 -1
- package/_cjs/errors/version.js +1 -1
- package/_cjs/experimental/erc7739/actions/signMessage.js +1 -1
- package/_cjs/experimental/erc7739/actions/signMessage.js.map +1 -1
- package/_cjs/experimental/erc7739/utils/hashMessage.js +1 -1
- package/_cjs/experimental/erc7739/utils/hashMessage.js.map +1 -1
- package/_cjs/experimental/erc7821/index.js +3 -3
- package/_cjs/experimental/erc7821/index.js.map +1 -1
- package/_cjs/experimental/index.js +13 -13
- package/_cjs/experimental/index.js.map +1 -1
- package/_cjs/index.js +262 -262
- package/_cjs/index.js.map +1 -1
- package/_cjs/linea/index.js.map +1 -1
- package/_cjs/node/index.js +3 -3
- package/_cjs/node/index.js.map +1 -1
- package/_cjs/nonce/index.js.map +1 -1
- package/_cjs/op-stack/index.js +14 -14
- package/_cjs/op-stack/index.js.map +1 -1
- package/_cjs/siwe/index.js +3 -3
- package/_cjs/siwe/index.js.map +1 -1
- package/_cjs/utils/abi/decodeAbiParameters.js +2 -2
- package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
- package/_cjs/utils/abi/decodeEventLog.js +1 -1
- package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
- package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodeAbiParameters.js +2 -2
- package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
- package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
- package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_cjs/utils/abi/encodePacked.js +3 -3
- package/_cjs/utils/abi/encodePacked.js.map +1 -1
- package/_cjs/utils/abi/getAbiItem.js +1 -1
- package/_cjs/utils/abi/getAbiItem.js.map +1 -1
- package/_cjs/utils/abi/prepareEncodeFunctionData.js.map +1 -1
- package/_cjs/utils/address/getContractAddress.js.map +1 -1
- package/_cjs/utils/buildRequest.js +1 -1
- package/_cjs/utils/buildRequest.js.map +1 -1
- package/_cjs/utils/ccip.js.map +1 -1
- package/_cjs/utils/ens/avatar/utils.js +3 -3
- package/_cjs/utils/ens/avatar/utils.js.map +1 -1
- package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_cjs/utils/hash/hashSignature.js.map +1 -1
- package/_cjs/utils/index.js +134 -134
- package/_cjs/utils/index.js.map +1 -1
- package/_cjs/utils/poll.js +1 -1
- package/_cjs/utils/poll.js.map +1 -1
- package/_cjs/utils/promise/withCache.js +1 -1
- package/_cjs/utils/promise/withCache.js.map +1 -1
- package/_cjs/utils/promise/withTimeout.js.map +1 -1
- package/_cjs/utils/rpc/socket.js.map +1 -1
- package/_cjs/utils/signature/recoverAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
- package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
- package/_cjs/utils/signature/verifyHash.js.map +1 -1
- package/_cjs/utils/signature/verifyMessage.js.map +1 -1
- package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
- package/_cjs/utils/siwe/createSiweMessage.js +1 -1
- package/_cjs/utils/siwe/createSiweMessage.js.map +1 -1
- package/_cjs/utils/siwe/utils.js +3 -3
- package/_cjs/utils/siwe/utils.js.map +1 -1
- package/_cjs/utils/typedData.js +3 -3
- package/_cjs/utils/typedData.js.map +1 -1
- package/_cjs/zksync/actions/claimFailedDeposit.js.map +1 -1
- package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
- package/_cjs/zksync/actions/signTransaction.js.map +1 -1
- package/_cjs/zksync/decorators/publicL2.js.map +1 -1
- package/_cjs/zksync/index.js +28 -28
- package/_cjs/zksync/index.js.map +1 -1
- package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
- package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +1 -1
- package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
- package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -1
- package/_esm/account-abstraction/index.js +4 -4
- package/_esm/account-abstraction/index.js.map +1 -1
- package/_esm/accounts/hdKeyToAccount.js.map +1 -1
- package/_esm/accounts/index.js +8 -8
- package/_esm/accounts/index.js.map +1 -1
- package/_esm/accounts/privateKeyToAccount.js.map +1 -1
- package/_esm/accounts/toAccount.js.map +1 -1
- package/_esm/accounts/utils/signTypedData.js.map +1 -1
- package/_esm/accounts/wordlists.js +1 -1
- package/_esm/accounts/wordlists.js.map +1 -1
- package/_esm/actions/getContract.js.map +1 -1
- package/_esm/actions/index.js +36 -36
- package/_esm/actions/index.js.map +1 -1
- package/_esm/actions/public/call.js +25 -15
- package/_esm/actions/public/call.js.map +1 -1
- package/_esm/actions/public/createAccessList.js.map +1 -1
- package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/_esm/actions/public/multicall.js +20 -16
- package/_esm/actions/public/multicall.js.map +1 -1
- package/_esm/actions/public/simulateBlocks.js +1 -1
- package/_esm/actions/public/simulateBlocks.js.map +1 -1
- package/_esm/actions/public/simulateContract.js.map +1 -1
- package/_esm/actions/public/verifyHash.js.map +1 -1
- package/_esm/actions/public/verifyMessage.js.map +1 -1
- package/_esm/actions/public/waitForTransactionReceipt.js +0 -1
- package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
- package/_esm/actions/public/watchContractEvent.js.map +1 -1
- package/_esm/actions/public/watchEvent.js +4 -4
- package/_esm/actions/public/watchEvent.js.map +1 -1
- package/_esm/actions/siwe/verifySiweMessage.js.map +1 -1
- package/_esm/actions/wallet/deployContract.js.map +1 -1
- package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
- package/_esm/actions/wallet/sendTransaction.js.map +1 -1
- package/_esm/actions/wallet/signMessage.js.map +1 -1
- package/_esm/actions/wallet/signTransaction.js.map +1 -1
- package/_esm/actions/wallet/signTypedData.js.map +1 -1
- package/_esm/actions/wallet/waitForCallsStatus.js +1 -1
- package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
- package/_esm/celo/parsers.js +1 -1
- package/_esm/celo/parsers.js.map +1 -1
- package/_esm/chains/index.js +17 -17
- package/_esm/chains/index.js.map +1 -1
- package/_esm/clients/createClient.js.map +1 -1
- package/_esm/clients/decorators/test.js.map +1 -1
- package/_esm/clients/transports/custom.js.map +1 -1
- package/_esm/clients/transports/fallback.js.map +1 -1
- package/_esm/clients/transports/http.js.map +1 -1
- package/_esm/clients/transports/ipc.js.map +1 -1
- package/_esm/clients/transports/webSocket.js.map +1 -1
- package/_esm/constants/contracts.js +1 -0
- package/_esm/constants/contracts.js.map +1 -1
- package/_esm/ens/index.js +3 -3
- package/_esm/ens/index.js.map +1 -1
- package/_esm/errors/contract.js +1 -1
- package/_esm/errors/contract.js.map +1 -1
- package/_esm/errors/version.js +1 -1
- package/_esm/experimental/erc7739/actions/signMessage.js +1 -1
- package/_esm/experimental/erc7739/actions/signMessage.js.map +1 -1
- package/_esm/experimental/erc7739/utils/hashMessage.js +1 -1
- package/_esm/experimental/erc7739/utils/hashMessage.js.map +1 -1
- package/_esm/experimental/erc7821/index.js +1 -1
- package/_esm/experimental/erc7821/index.js.map +1 -1
- package/_esm/experimental/index.js +16 -16
- package/_esm/experimental/index.js.map +1 -1
- package/_esm/index.js +100 -100
- package/_esm/index.js.map +1 -1
- package/_esm/linea/index.js.map +1 -1
- package/_esm/node/index.js +1 -1
- package/_esm/node/index.js.map +1 -1
- package/_esm/node/trustedSetups.js +1 -0
- package/_esm/node/trustedSetups.js.map +1 -1
- package/_esm/nonce/index.js.map +1 -1
- package/_esm/op-stack/actions/estimateDepositTransactionGas.js +1 -1
- package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +1 -1
- package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +1 -1
- package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +1 -1
- package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
- package/_esm/op-stack/index.js +7 -7
- package/_esm/op-stack/index.js.map +1 -1
- package/_esm/siwe/index.js +1 -1
- package/_esm/siwe/index.js.map +1 -1
- package/_esm/utils/abi/decodeAbiParameters.js +2 -2
- package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/decodeDeployData.js.map +1 -1
- package/_esm/utils/abi/decodeEventLog.js +1 -1
- package/_esm/utils/abi/decodeEventLog.js.map +1 -1
- package/_esm/utils/abi/decodeFunctionResult.js.map +1 -1
- package/_esm/utils/abi/encodeAbiParameters.js +2 -2
- package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
- package/_esm/utils/abi/encodeErrorResult.js.map +1 -1
- package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
- package/_esm/utils/abi/encodeFunctionData.js.map +1 -1
- package/_esm/utils/abi/encodeFunctionResult.js.map +1 -1
- package/_esm/utils/abi/encodePacked.js +3 -3
- package/_esm/utils/abi/encodePacked.js.map +1 -1
- package/_esm/utils/abi/getAbiItem.js +1 -1
- package/_esm/utils/abi/getAbiItem.js.map +1 -1
- package/_esm/utils/abi/prepareEncodeFunctionData.js.map +1 -1
- package/_esm/utils/address/getContractAddress.js.map +1 -1
- package/_esm/utils/buildRequest.js +2 -2
- package/_esm/utils/buildRequest.js.map +1 -1
- package/_esm/utils/ccip.js.map +1 -1
- package/_esm/utils/encoding/fromBytes.js.map +1 -1
- package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
- package/_esm/utils/ens/avatar/utils.js +3 -4
- package/_esm/utils/ens/avatar/utils.js.map +1 -1
- package/_esm/utils/ens/namehash.js.map +1 -1
- package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
- package/_esm/utils/hash/hashSignature.js.map +1 -1
- package/_esm/utils/index.js +55 -55
- package/_esm/utils/index.js.map +1 -1
- package/_esm/utils/poll.js +1 -1
- package/_esm/utils/poll.js.map +1 -1
- package/_esm/utils/promise/withCache.js +1 -1
- package/_esm/utils/promise/withCache.js.map +1 -1
- package/_esm/utils/promise/withTimeout.js.map +1 -1
- package/_esm/utils/rpc/compat.js.map +1 -1
- package/_esm/utils/rpc/ipc.js.map +1 -1
- package/_esm/utils/rpc/socket.js +1 -0
- package/_esm/utils/rpc/socket.js.map +1 -1
- package/_esm/utils/rpc/webSocket.js.map +1 -1
- package/_esm/utils/signature/hashTypedData.js.map +1 -1
- package/_esm/utils/signature/recoverAddress.js.map +1 -1
- package/_esm/utils/signature/recoverMessageAddress.js.map +1 -1
- package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -1
- package/_esm/utils/signature/toPrefixedMessage.js.map +1 -1
- package/_esm/utils/signature/verifyHash.js.map +1 -1
- package/_esm/utils/signature/verifyMessage.js.map +1 -1
- package/_esm/utils/signature/verifyTypedData.js.map +1 -1
- package/_esm/utils/siwe/createSiweMessage.js +1 -1
- package/_esm/utils/siwe/createSiweMessage.js.map +1 -1
- package/_esm/utils/siwe/utils.js +3 -3
- package/_esm/utils/siwe/utils.js.map +1 -1
- package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
- package/_esm/utils/typedData.js +3 -3
- package/_esm/utils/typedData.js.map +1 -1
- package/_esm/zksync/actions/claimFailedDeposit.js.map +1 -1
- package/_esm/zksync/actions/deposit.js.map +1 -1
- package/_esm/zksync/actions/requestExecute.js.map +1 -1
- package/_esm/zksync/actions/sendTransaction.js.map +1 -1
- package/_esm/zksync/actions/signTransaction.js.map +1 -1
- package/_esm/zksync/decorators/publicL2.js.map +1 -1
- package/_esm/zksync/index.js +13 -13
- package/_esm/zksync/index.js.map +1 -1
- package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -1
- package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +1 -1
- package/_types/account-abstraction/accounts/types.d.ts.map +1 -1
- package/_types/account-abstraction/clients/createBundlerClient.d.ts +1 -2
- package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -1
- package/_types/account-abstraction/index.d.ts +11 -11
- package/_types/account-abstraction/index.d.ts.map +1 -1
- package/_types/accounts/hdKeyToAccount.d.ts +1 -1
- package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/index.d.ts +15 -15
- package/_types/accounts/index.d.ts.map +1 -1
- package/_types/accounts/privateKeyToAccount.d.ts +1 -1
- package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
- package/_types/accounts/toAccount.d.ts +1 -1
- package/_types/accounts/toAccount.d.ts.map +1 -1
- package/_types/accounts/utils/signTypedData.d.ts +1 -1
- package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
- package/_types/actions/getContract.d.ts +1 -1
- package/_types/actions/getContract.d.ts.map +1 -1
- package/_types/actions/index.d.ts +44 -44
- package/_types/actions/index.d.ts.map +1 -1
- package/_types/actions/public/call.d.ts.map +1 -1
- package/_types/actions/public/createAccessList.d.ts.map +1 -1
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +1 -2
- package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/_types/actions/public/multicall.d.ts +8 -1
- package/_types/actions/public/multicall.d.ts.map +1 -1
- package/_types/actions/public/simulateContract.d.ts +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/verifyMessage.d.ts.map +1 -1
- package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
- package/_types/actions/public/watchContractEvent.d.ts +2 -2
- package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
- package/_types/actions/public/watchEvent.d.ts +2 -2
- package/_types/actions/public/watchEvent.d.ts.map +1 -1
- package/_types/actions/siwe/verifySiweMessage.d.ts.map +1 -1
- package/_types/actions/wallet/deployContract.d.ts +2 -3
- package/_types/actions/wallet/deployContract.d.ts.map +1 -1
- package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -2
- package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
- package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signMessage.d.ts.map +1 -1
- package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
- package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
- package/_types/celo/chainConfig.d.ts +20 -20
- package/_types/celo/formatters.d.ts +10 -10
- package/_types/celo/parsers.d.ts.map +1 -1
- package/_types/celo/types.d.ts +3 -3
- package/_types/celo/types.d.ts.map +1 -1
- package/_types/chains/definitions/abstract.d.ts +13 -13
- package/_types/chains/definitions/abstractTestnet.d.ts +13 -13
- package/_types/chains/definitions/ancient8.d.ts +3 -3
- package/_types/chains/definitions/ancient8Sepolia.d.ts +3 -3
- package/_types/chains/definitions/base.d.ts +6 -6
- package/_types/chains/definitions/baseGoerli.d.ts +3 -3
- package/_types/chains/definitions/baseSepolia.d.ts +6 -6
- package/_types/chains/definitions/blast.d.ts +3 -3
- package/_types/chains/definitions/bob.d.ts +3 -3
- package/_types/chains/definitions/bobSepolia.d.ts +3 -3
- package/_types/chains/definitions/celo.d.ts +20 -20
- package/_types/chains/definitions/celoAlfajores.d.ts +20 -20
- package/_types/chains/definitions/celoSepolia.d.ts +20 -20
- package/_types/chains/definitions/dchain.d.ts +3 -3
- package/_types/chains/definitions/dchainTestnet.d.ts +3 -3
- package/_types/chains/definitions/elysiumTestnet.d.ts +3 -3
- package/_types/chains/definitions/fraxtal.d.ts +3 -3
- package/_types/chains/definitions/fraxtalTestnet.d.ts +3 -3
- package/_types/chains/definitions/funkiMainnet.d.ts +3 -3
- package/_types/chains/definitions/funkiSepolia.d.ts +3 -3
- package/_types/chains/definitions/garnet.d.ts +3 -3
- package/_types/chains/definitions/ink.d.ts +3 -3
- package/_types/chains/definitions/inkSepolia.d.ts +3 -3
- package/_types/chains/definitions/lisk.d.ts +3 -3
- package/_types/chains/definitions/liskSepolia.d.ts +3 -3
- package/_types/chains/definitions/metalL2.d.ts +3 -3
- package/_types/chains/definitions/mode.d.ts +3 -3
- package/_types/chains/definitions/modeTestnet.d.ts +3 -3
- package/_types/chains/definitions/optimism.d.ts +3 -3
- package/_types/chains/definitions/optimismGoerli.d.ts +3 -3
- package/_types/chains/definitions/optimismSepolia.d.ts +3 -3
- package/_types/chains/definitions/pgn.d.ts +3 -3
- package/_types/chains/definitions/pgnTestnet.d.ts +3 -3
- package/_types/chains/definitions/playfiAlbireo.d.ts +13 -13
- package/_types/chains/definitions/pyrope.d.ts +3 -3
- package/_types/chains/definitions/redstone.d.ts +3 -3
- package/_types/chains/definitions/rss3.d.ts +3 -3
- package/_types/chains/definitions/rss3Sepolia.d.ts +3 -3
- package/_types/chains/definitions/shape.d.ts +3 -3
- package/_types/chains/definitions/shapeSepolia.d.ts +3 -3
- package/_types/chains/definitions/snax.d.ts +3 -3
- package/_types/chains/definitions/snaxTestnet.d.ts +3 -3
- package/_types/chains/definitions/soneium.d.ts +3 -3
- package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
- package/_types/chains/definitions/sophon.d.ts +13 -13
- package/_types/chains/definitions/sophonTestnet.d.ts +13 -13
- package/_types/chains/definitions/superseed.d.ts +3 -3
- package/_types/chains/definitions/superseedSepolia.d.ts +3 -3
- package/_types/chains/definitions/swellchain.d.ts +3 -3
- package/_types/chains/definitions/swellchainTestnet.d.ts +3 -3
- package/_types/chains/definitions/treasure.d.ts +13 -13
- package/_types/chains/definitions/treasureTopaz.d.ts +13 -13
- package/_types/chains/definitions/unichain.d.ts +3 -3
- package/_types/chains/definitions/unichainSepolia.d.ts +3 -3
- package/_types/chains/definitions/worldchain.d.ts +3 -3
- package/_types/chains/definitions/worldchainSepolia.d.ts +3 -3
- package/_types/chains/definitions/zircuit.d.ts +3 -3
- package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +3 -3
- package/_types/chains/definitions/zircuitTestnet.d.ts +3 -3
- package/_types/chains/definitions/zksync.d.ts +13 -13
- package/_types/chains/definitions/zksyncInMemoryNode.d.ts +13 -13
- package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +13 -13
- package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +13 -13
- package/_types/chains/definitions/zksyncLocalNode.d.ts +13 -13
- package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +13 -13
- package/_types/chains/definitions/zora.d.ts +3 -3
- package/_types/chains/definitions/zoraSepolia.d.ts +3 -3
- package/_types/chains/definitions/zoraTestnet.d.ts +3 -3
- package/_types/chains/index.d.ts +49 -49
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/clients/createClient.d.ts +2 -0
- package/_types/clients/createClient.d.ts.map +1 -1
- package/_types/clients/decorators/test.d.ts.map +1 -1
- package/_types/clients/transports/custom.d.ts.map +1 -1
- package/_types/clients/transports/fallback.d.ts.map +1 -1
- package/_types/clients/transports/http.d.ts.map +1 -1
- package/_types/clients/transports/ipc.d.ts.map +1 -1
- package/_types/clients/transports/webSocket.d.ts.map +1 -1
- package/_types/constants/contracts.d.ts +1 -0
- package/_types/constants/contracts.d.ts.map +1 -1
- package/_types/ens/index.d.ts +4 -4
- package/_types/ens/index.d.ts.map +1 -1
- package/_types/errors/version.d.ts +1 -1
- package/_types/experimental/erc7821/index.d.ts +1 -1
- package/_types/experimental/erc7821/index.d.ts.map +1 -1
- package/_types/experimental/index.d.ts +62 -62
- package/_types/experimental/index.d.ts.map +1 -1
- package/_types/index.d.ts +196 -196
- package/_types/index.d.ts.map +1 -1
- package/_types/linea/index.d.ts +1 -1
- package/_types/linea/index.d.ts.map +1 -1
- package/_types/node/index.d.ts +1 -1
- package/_types/node/index.d.ts.map +1 -1
- package/_types/node/trustedSetups.d.ts.map +1 -1
- package/_types/nonce/index.d.ts +1 -1
- package/_types/nonce/index.d.ts.map +1 -1
- package/_types/op-stack/chainConfig.d.ts +3 -3
- package/_types/op-stack/formatters.d.ts +3 -3
- package/_types/op-stack/index.d.ts +43 -43
- package/_types/op-stack/index.d.ts.map +1 -1
- package/_types/op-stack/types/transaction.d.ts +2 -2
- package/_types/op-stack/types/transaction.d.ts.map +1 -1
- package/_types/siwe/index.d.ts +4 -4
- package/_types/siwe/index.d.ts.map +1 -1
- package/_types/types/account.d.ts +1 -1
- package/_types/types/account.d.ts.map +1 -1
- package/_types/types/contract.d.ts +1 -1
- package/_types/types/contract.d.ts.map +1 -1
- package/_types/types/eip1193.d.ts +1 -2
- package/_types/types/eip1193.d.ts.map +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts +1 -1
- package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/decodeDeployData.d.ts +1 -1
- package/_types/utils/abi/decodeDeployData.d.ts.map +1 -1
- package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
- package/_types/utils/abi/decodeFunctionResult.d.ts +1 -1
- package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
- package/_types/utils/abi/encodeErrorResult.d.ts +2 -2
- package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionData.d.ts +3 -3
- package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
- package/_types/utils/abi/encodeFunctionResult.d.ts +1 -1
- package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
- package/_types/utils/abi/encodePacked.d.ts.map +1 -1
- package/_types/utils/abi/prepareEncodeFunctionData.d.ts +3 -3
- package/_types/utils/abi/prepareEncodeFunctionData.d.ts.map +1 -1
- package/_types/utils/address/getContractAddress.d.ts +1 -1
- package/_types/utils/address/getContractAddress.d.ts.map +1 -1
- package/_types/utils/buildRequest.d.ts +1 -1
- package/_types/utils/buildRequest.d.ts.map +1 -1
- package/_types/utils/ccip.d.ts +2 -2
- package/_types/utils/ccip.d.ts.map +1 -1
- package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
- package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
- package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
- package/_types/utils/ens/namehash.d.ts.map +1 -1
- package/_types/utils/filters/createFilterRequestScope.d.ts +1 -2
- package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
- package/_types/utils/formatters/block.d.ts +1 -2
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +2 -3
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/_types/utils/hash/hashSignature.d.ts +1 -1
- package/_types/utils/hash/hashSignature.d.ts.map +1 -1
- package/_types/utils/index.d.ts +64 -64
- package/_types/utils/index.d.ts.map +1 -1
- package/_types/utils/promise/withTimeout.d.ts.map +1 -1
- package/_types/utils/rpc/compat.d.ts.map +1 -1
- package/_types/utils/rpc/ipc.d.ts.map +1 -1
- package/_types/utils/rpc/socket.d.ts.map +1 -1
- package/_types/utils/rpc/webSocket.d.ts.map +1 -1
- package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
- package/_types/utils/signature/recoverAddress.d.ts +1 -1
- package/_types/utils/signature/recoverAddress.d.ts.map +1 -1
- package/_types/utils/signature/recoverMessageAddress.d.ts +1 -1
- package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -1
- package/_types/utils/signature/recoverTypedDataAddress.d.ts +1 -1
- package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -1
- package/_types/utils/signature/toPrefixedMessage.d.ts.map +1 -1
- package/_types/utils/signature/verifyHash.d.ts +1 -1
- package/_types/utils/signature/verifyHash.d.ts.map +1 -1
- package/_types/utils/signature/verifyMessage.d.ts +1 -1
- package/_types/utils/signature/verifyMessage.d.ts.map +1 -1
- package/_types/utils/signature/verifyTypedData.d.ts +1 -1
- package/_types/utils/signature/verifyTypedData.d.ts.map +1 -1
- package/_types/utils/siwe/utils.d.ts.map +1 -1
- package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
- package/_types/utils/typedData.d.ts.map +1 -1
- package/_types/zksync/actions/claimFailedDeposit.d.ts.map +1 -1
- package/_types/zksync/actions/deposit.d.ts.map +1 -1
- package/_types/zksync/actions/requestExecute.d.ts.map +1 -1
- package/_types/zksync/actions/sendTransaction.d.ts +1 -1
- package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
- package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
- package/_types/zksync/chainConfig.d.ts +13 -13
- package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
- package/_types/zksync/formatters.d.ts +13 -13
- package/_types/zksync/index.d.ts +36 -36
- package/_types/zksync/index.d.ts.map +1 -1
- package/_types/zksync/types/chain.d.ts +1 -2
- package/_types/zksync/types/chain.d.ts.map +1 -1
- package/_types/zksync/types/transaction.d.ts +1 -1
- package/_types/zksync/types/transaction.d.ts.map +1 -1
- package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -1
- package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +9 -2
- package/account-abstraction/accounts/types.ts +3 -1
- package/account-abstraction/actions/bundler/prepareUserOperation.ts +1 -1
- package/account-abstraction/clients/createBundlerClient.ts +1 -2
- package/account-abstraction/index.ts +28 -29
- package/accounts/hdKeyToAccount.ts +1 -2
- package/accounts/index.ts +42 -46
- package/accounts/privateKeyToAccount.ts +1 -3
- package/accounts/toAccount.ts +1 -2
- package/accounts/utils/signTypedData.ts +1 -3
- package/accounts/wordlists.ts +1 -1
- package/actions/getContract.ts +1 -2
- package/actions/index.ts +212 -212
- package/actions/public/call.ts +28 -20
- package/actions/public/createAccessList.ts +1 -1
- package/actions/public/estimateMaxPriorityFeePerGas.ts +5 -2
- package/actions/public/multicall.ts +30 -23
- package/actions/public/simulateBlocks.ts +1 -1
- package/actions/public/simulateContract.ts +2 -3
- package/actions/public/verifyHash.ts +1 -1
- package/actions/public/verifyMessage.ts +1 -1
- package/actions/public/waitForTransactionReceipt.ts +0 -1
- package/actions/public/watchContractEvent.ts +3 -4
- package/actions/public/watchEvent.ts +10 -11
- package/actions/siwe/verifySiweMessage.ts +1 -1
- package/actions/wallet/deployContract.ts +2 -4
- package/actions/wallet/prepareTransactionRequest.ts +5 -2
- package/actions/wallet/sendTransaction.ts +1 -1
- package/actions/wallet/signMessage.ts +1 -1
- package/actions/wallet/signTransaction.ts +1 -1
- package/actions/wallet/signTypedData.ts +2 -2
- package/actions/wallet/waitForCallsStatus.ts +1 -1
- package/celo/parsers.ts +1 -2
- package/celo/types.ts +10 -12
- package/chains/index.ts +48 -49
- package/clients/createClient.ts +2 -0
- package/clients/decorators/test.ts +3 -1
- package/clients/transports/custom.ts +1 -1
- package/clients/transports/fallback.ts +4 -4
- package/clients/transports/http.ts +2 -2
- package/clients/transports/ipc.ts +2 -2
- package/clients/transports/webSocket.ts +1 -1
- package/constants/contracts.ts +3 -0
- package/ens/index.ts +9 -9
- package/errors/contract.ts +1 -1
- package/errors/version.ts +1 -1
- package/experimental/erc7739/actions/signMessage.ts +1 -1
- package/experimental/erc7739/utils/hashMessage.ts +1 -1
- package/experimental/erc7821/index.ts +1 -3
- package/experimental/index.ts +68 -71
- package/index.ts +991 -992
- package/linea/index.ts +1 -1
- package/node/index.ts +2 -4
- package/node/trustedSetups.ts +1 -0
- package/nonce/index.ts +2 -2
- package/op-stack/actions/estimateDepositTransactionGas.ts +1 -1
- package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
- package/op-stack/actions/estimateInitiateWithdrawalGas.ts +1 -1
- package/op-stack/actions/estimateProveWithdrawalGas.ts +1 -1
- package/op-stack/index.ts +73 -81
- package/op-stack/types/transaction.ts +2 -2
- package/package.json +2 -2
- package/siwe/index.ts +10 -14
- package/types/account.ts +1 -1
- package/types/contract.ts +1 -1
- package/types/eip1193.ts +1 -1
- package/types/register.ts +1 -1
- package/utils/abi/decodeAbiParameters.ts +3 -5
- package/utils/abi/decodeDeployData.ts +1 -2
- package/utils/abi/decodeEventLog.ts +1 -2
- package/utils/abi/decodeFunctionResult.ts +1 -2
- package/utils/abi/encodeAbiParameters.ts +5 -5
- package/utils/abi/encodeErrorResult.ts +2 -3
- package/utils/abi/encodeEventTopics.ts +4 -1
- package/utils/abi/encodeFunctionData.ts +3 -4
- package/utils/abi/encodeFunctionResult.ts +1 -2
- package/utils/abi/encodePacked.ts +5 -5
- package/utils/abi/getAbiItem.ts +1 -1
- package/utils/abi/prepareEncodeFunctionData.ts +3 -4
- package/utils/address/getContractAddress.ts +1 -3
- package/utils/buildRequest.ts +3 -3
- package/utils/ccip.ts +2 -3
- package/utils/encoding/fromBytes.ts +1 -1
- package/utils/ens/avatar/parseAvatarRecord.ts +3 -3
- package/utils/ens/avatar/utils.ts +3 -4
- package/utils/ens/namehash.ts +1 -1
- package/utils/filters/createFilterRequestScope.ts +1 -2
- package/utils/formatters/block.ts +1 -1
- package/utils/formatters/transaction.ts +1 -1
- package/utils/hash/hashSignature.ts +1 -2
- package/utils/index.ts +256 -260
- package/utils/poll.ts +1 -1
- package/utils/promise/withCache.ts +1 -1
- package/utils/promise/withTimeout.ts +3 -1
- package/utils/rpc/compat.ts +1 -1
- package/utils/rpc/ipc.ts +2 -2
- package/utils/rpc/socket.ts +1 -0
- package/utils/rpc/webSocket.ts +1 -1
- package/utils/signature/hashTypedData.ts +1 -1
- package/utils/signature/recoverAddress.ts +1 -2
- package/utils/signature/recoverMessageAddress.ts +1 -3
- package/utils/signature/recoverTypedDataAddress.ts +1 -3
- package/utils/signature/toPrefixedMessage.ts +1 -1
- package/utils/signature/verifyHash.ts +1 -3
- package/utils/signature/verifyMessage.ts +1 -3
- package/utils/signature/verifyTypedData.ts +1 -3
- package/utils/siwe/createSiweMessage.ts +1 -1
- package/utils/siwe/utils.ts +3 -4
- package/utils/transaction/serializeTransaction.ts +1 -1
- package/utils/typedData.ts +6 -4
- package/zksync/actions/claimFailedDeposit.ts +2 -3
- package/zksync/actions/deposit.ts +1 -1
- package/zksync/actions/requestExecute.ts +1 -1
- package/zksync/actions/sendTransaction.ts +2 -2
- package/zksync/actions/signTransaction.ts +1 -1
- package/zksync/decorators/publicL2.ts +1 -1
- package/zksync/index.ts +72 -84
- package/zksync/types/chain.ts +5 -2
- package/zksync/types/transaction.ts +2 -2
- package/zksync/utils/abi/encodeDeployData.ts +1 -2
package/utils/index.ts
CHANGED
@@ -1,74 +1,22 @@
|
|
1
1
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
2
2
|
export {
|
3
|
-
type
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
offchainLookup,
|
13
|
-
offchainLookupAbiItem,
|
14
|
-
offchainLookupSignature,
|
15
|
-
} from './ccip.js'
|
16
|
-
|
17
|
-
export {
|
18
|
-
type AssertCurrentChainErrorType,
|
19
|
-
type AssertCurrentChainParameters,
|
20
|
-
assertCurrentChain,
|
21
|
-
} from './chain/assertCurrentChain.js'
|
22
|
-
export { defineChain } from './chain/defineChain.js'
|
23
|
-
export {
|
24
|
-
type ExtractChainErrorType,
|
25
|
-
type ExtractChainParameters,
|
26
|
-
type ExtractChainReturnType,
|
27
|
-
extractChain,
|
28
|
-
} from './chain/extractChain.js'
|
29
|
-
export {
|
30
|
-
type GetChainContractAddressErrorType,
|
31
|
-
getChainContractAddress,
|
32
|
-
} from './chain/getChainContractAddress.js'
|
33
|
-
|
34
|
-
export { arrayRegex, bytesRegex, integerRegex } from './regex.js'
|
35
|
-
|
36
|
-
export {
|
37
|
-
type WebSocketAsyncErrorType,
|
38
|
-
type WebSocketAsyncOptions,
|
39
|
-
type WebSocketAsyncReturnType,
|
40
|
-
type WebSocketErrorType,
|
41
|
-
type WebSocketOptions,
|
42
|
-
type WebSocketReturnType,
|
43
|
-
getSocket,
|
44
|
-
rpc,
|
45
|
-
} from './rpc/compat.js'
|
46
|
-
export {
|
47
|
-
type HttpRpcClient,
|
48
|
-
type HttpRpcClientOptions,
|
49
|
-
type HttpRequestErrorType,
|
50
|
-
type HttpRequestParameters,
|
51
|
-
type HttpRequestReturnType,
|
52
|
-
getHttpRpcClient,
|
53
|
-
} from './rpc/http.js'
|
3
|
+
type ParseAbi,
|
4
|
+
type ParseAbiItem,
|
5
|
+
type ParseAbiParameter,
|
6
|
+
type ParseAbiParameters,
|
7
|
+
parseAbi,
|
8
|
+
parseAbiItem,
|
9
|
+
parseAbiParameter,
|
10
|
+
parseAbiParameters,
|
11
|
+
} from 'abitype'
|
54
12
|
export {
|
55
|
-
type
|
56
|
-
|
57
|
-
|
58
|
-
type Socket,
|
59
|
-
type SocketRpcClient,
|
60
|
-
getSocketRpcClient,
|
61
|
-
socketClientCache,
|
62
|
-
} from './rpc/socket.js'
|
63
|
-
export { getWebSocketRpcClient } from './rpc/webSocket.js'
|
64
|
-
export { type StringifyErrorType, stringify } from './stringify.js'
|
13
|
+
type ParseAccountErrorType,
|
14
|
+
parseAccount,
|
15
|
+
} from '../accounts/utils/parseAccount.js'
|
65
16
|
export {
|
66
|
-
type
|
67
|
-
|
68
|
-
|
69
|
-
serializeTypedData,
|
70
|
-
validateTypedData,
|
71
|
-
} from './typedData.js'
|
17
|
+
type PublicKeyToAddressErrorType,
|
18
|
+
publicKeyToAddress,
|
19
|
+
} from '../accounts/utils/publicKeyToAddress.js'
|
72
20
|
export {
|
73
21
|
type DecodeAbiParametersErrorType,
|
74
22
|
type DecodeAbiParametersReturnType,
|
@@ -129,39 +77,48 @@ export {
|
|
129
77
|
type EncodeFunctionResultParameters,
|
130
78
|
encodeFunctionResult,
|
131
79
|
} from './abi/encodeFunctionResult.js'
|
80
|
+
export { type EncodePackedErrorType, encodePacked } from './abi/encodePacked.js'
|
132
81
|
export {
|
133
|
-
type
|
134
|
-
type
|
135
|
-
type
|
136
|
-
|
137
|
-
|
82
|
+
type FormatAbiItemErrorType,
|
83
|
+
type FormatAbiParamErrorType,
|
84
|
+
type FormatAbiParamsErrorType,
|
85
|
+
formatAbiItem,
|
86
|
+
formatAbiParams,
|
87
|
+
} from './abi/formatAbiItem.js'
|
88
|
+
export {
|
89
|
+
type FormatAbiItemWithArgsErrorType,
|
90
|
+
formatAbiItemWithArgs,
|
91
|
+
} from './abi/formatAbiItemWithArgs.js'
|
138
92
|
export {
|
139
93
|
type GetAbiItemErrorType,
|
140
94
|
type GetAbiItemParameters,
|
141
95
|
getAbiItem,
|
142
96
|
} from './abi/getAbiItem.js'
|
143
97
|
export {
|
144
|
-
type
|
145
|
-
type
|
146
|
-
type
|
147
|
-
|
148
|
-
|
149
|
-
parseAbiItem,
|
150
|
-
parseAbiParameter,
|
151
|
-
parseAbiParameters,
|
152
|
-
} from 'abitype'
|
153
|
-
export { type EncodePackedErrorType, encodePacked } from './abi/encodePacked.js'
|
98
|
+
type ParseEventLogsErrorType,
|
99
|
+
type ParseEventLogsParameters,
|
100
|
+
type ParseEventLogsReturnType,
|
101
|
+
parseEventLogs,
|
102
|
+
} from './abi/parseEventLogs.js'
|
154
103
|
export {
|
155
|
-
type
|
156
|
-
|
157
|
-
} from './
|
104
|
+
type ChecksumAddressErrorType,
|
105
|
+
getAddress,
|
106
|
+
} from './address/getAddress.js'
|
158
107
|
export {
|
159
|
-
type
|
160
|
-
type
|
161
|
-
type
|
162
|
-
|
163
|
-
|
164
|
-
|
108
|
+
type GetContractAddressOptions,
|
109
|
+
type GetCreate2AddressErrorType,
|
110
|
+
type GetCreate2AddressOptions,
|
111
|
+
type GetCreateAddressErrorType,
|
112
|
+
type GetCreateAddressOptions,
|
113
|
+
getContractAddress,
|
114
|
+
getCreate2Address,
|
115
|
+
getCreateAddress,
|
116
|
+
} from './address/getContractAddress.js'
|
117
|
+
export { type IsAddressErrorType, isAddress } from './address/isAddress.js'
|
118
|
+
export {
|
119
|
+
type IsAddressEqualErrorType,
|
120
|
+
isAddressEqual,
|
121
|
+
} from './address/isAddressEqual.js'
|
165
122
|
export {
|
166
123
|
type HashAuthorizationErrorType,
|
167
124
|
type HashAuthorizationParameters,
|
@@ -186,32 +143,34 @@ export {
|
|
186
143
|
verifyAuthorization,
|
187
144
|
} from './authorization/verifyAuthorization.js'
|
188
145
|
export {
|
189
|
-
|
190
|
-
|
191
|
-
} from '
|
146
|
+
buildRequest,
|
147
|
+
type RequestErrorType,
|
148
|
+
} from './buildRequest.js'
|
192
149
|
export {
|
193
|
-
|
194
|
-
|
195
|
-
|
150
|
+
ccipRequest,
|
151
|
+
/** @deprecated Use `ccipRequest`. */
|
152
|
+
ccipRequest as ccipFetch,
|
153
|
+
type OffchainLookupErrorType,
|
154
|
+
offchainLookup,
|
155
|
+
offchainLookupAbiItem,
|
156
|
+
offchainLookupSignature,
|
157
|
+
} from './ccip.js'
|
196
158
|
export {
|
197
|
-
type
|
198
|
-
type
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
getContractAddress,
|
203
|
-
getCreateAddress,
|
204
|
-
getCreate2Address,
|
205
|
-
} from './address/getContractAddress.js'
|
159
|
+
type AssertCurrentChainErrorType,
|
160
|
+
type AssertCurrentChainParameters,
|
161
|
+
assertCurrentChain,
|
162
|
+
} from './chain/assertCurrentChain.js'
|
163
|
+
export { defineChain } from './chain/defineChain.js'
|
206
164
|
export {
|
207
|
-
type
|
208
|
-
|
209
|
-
|
210
|
-
|
165
|
+
type ExtractChainErrorType,
|
166
|
+
type ExtractChainParameters,
|
167
|
+
type ExtractChainReturnType,
|
168
|
+
extractChain,
|
169
|
+
} from './chain/extractChain.js'
|
211
170
|
export {
|
212
|
-
type
|
213
|
-
|
214
|
-
} from './
|
171
|
+
type GetChainContractAddressErrorType,
|
172
|
+
getChainContractAddress,
|
173
|
+
} from './chain/getChainContractAddress.js'
|
215
174
|
export {
|
216
175
|
type ConcatBytesErrorType,
|
217
176
|
type ConcatErrorType,
|
@@ -243,76 +202,6 @@ export {
|
|
243
202
|
sliceHex,
|
244
203
|
} from './data/slice.js'
|
245
204
|
export { type TrimErrorType, type TrimReturnType, trim } from './data/trim.js'
|
246
|
-
export {
|
247
|
-
type DefineBlockErrorType,
|
248
|
-
type FormattedBlock,
|
249
|
-
type FormatBlockErrorType,
|
250
|
-
defineBlock,
|
251
|
-
formatBlock,
|
252
|
-
} from './formatters/block.js'
|
253
|
-
export {
|
254
|
-
type DefineTransactionErrorType,
|
255
|
-
type FormattedTransaction,
|
256
|
-
type FormatTransactionErrorType,
|
257
|
-
defineTransaction,
|
258
|
-
formatTransaction,
|
259
|
-
transactionType,
|
260
|
-
} from './formatters/transaction.js'
|
261
|
-
export { type FormatLogErrorType, formatLog } from './formatters/log.js'
|
262
|
-
export {
|
263
|
-
type DefineTransactionReceiptErrorType,
|
264
|
-
type FormatTransactionReceiptErrorType,
|
265
|
-
type FormattedTransactionReceipt,
|
266
|
-
defineTransactionReceipt,
|
267
|
-
} from './formatters/transactionReceipt.js'
|
268
|
-
export {
|
269
|
-
type DefineTransactionRequestErrorType,
|
270
|
-
type FormatTransactionRequestErrorType,
|
271
|
-
type FormattedTransactionRequest,
|
272
|
-
defineTransactionRequest,
|
273
|
-
formatTransactionRequest,
|
274
|
-
} from './formatters/transactionRequest.js'
|
275
|
-
export { type ExtractErrorType, extract } from './formatters/extract.js'
|
276
|
-
export {
|
277
|
-
type BytesToRlpErrorType,
|
278
|
-
type HexToRlpErrorType,
|
279
|
-
type ToRlpErrorType,
|
280
|
-
type ToRlpReturnType,
|
281
|
-
toRlp,
|
282
|
-
} from './encoding/toRlp.js'
|
283
|
-
export {
|
284
|
-
type BoolToBytesErrorType,
|
285
|
-
type BoolToBytesOpts,
|
286
|
-
type HexToBytesErrorType,
|
287
|
-
type HexToBytesOpts,
|
288
|
-
type NumberToBytesErrorType,
|
289
|
-
type StringToBytesErrorType,
|
290
|
-
type StringToBytesOpts,
|
291
|
-
type ToBytesErrorType,
|
292
|
-
type ToBytesParameters,
|
293
|
-
boolToBytes,
|
294
|
-
toBytes,
|
295
|
-
hexToBytes,
|
296
|
-
numberToBytes,
|
297
|
-
stringToBytes,
|
298
|
-
} from './encoding/toBytes.js'
|
299
|
-
export {
|
300
|
-
type BoolToHexErrorType,
|
301
|
-
type BoolToHexOpts,
|
302
|
-
type BytesToHexErrorType,
|
303
|
-
type BytesToHexOpts,
|
304
|
-
type NumberToHexErrorType,
|
305
|
-
type NumberToHexOpts,
|
306
|
-
type StringToHexErrorType,
|
307
|
-
type StringToHexOpts,
|
308
|
-
type ToHexErrorType,
|
309
|
-
type ToHexParameters,
|
310
|
-
boolToHex,
|
311
|
-
bytesToHex,
|
312
|
-
toHex,
|
313
|
-
numberToHex,
|
314
|
-
stringToHex,
|
315
|
-
} from './encoding/toHex.js'
|
316
205
|
export {
|
317
206
|
type BytesToBigIntErrorType,
|
318
207
|
type BytesToBigIntOpts,
|
@@ -322,14 +211,14 @@ export {
|
|
322
211
|
type BytesToNumberOpts,
|
323
212
|
type BytesToStringErrorType,
|
324
213
|
type BytesToStringOpts,
|
325
|
-
type FromBytesErrorType,
|
326
|
-
type FromBytesParameters,
|
327
|
-
type FromBytesReturnType,
|
328
214
|
bytesToBigInt,
|
329
215
|
bytesToBigInt as bytesToBigint,
|
330
216
|
bytesToBool,
|
331
217
|
bytesToNumber,
|
332
218
|
bytesToString,
|
219
|
+
type FromBytesErrorType,
|
220
|
+
type FromBytesParameters,
|
221
|
+
type FromBytesReturnType,
|
333
222
|
fromBytes,
|
334
223
|
} from './encoding/fromBytes.js'
|
335
224
|
export {
|
@@ -337,6 +226,7 @@ export {
|
|
337
226
|
type FromHexErrorType,
|
338
227
|
type FromHexParameters,
|
339
228
|
type FromHexReturnType,
|
229
|
+
fromHex,
|
340
230
|
type HexToBigIntErrorType,
|
341
231
|
type HexToBigIntOpts,
|
342
232
|
type HexToBoolErrorType,
|
@@ -345,9 +235,8 @@ export {
|
|
345
235
|
type HexToNumberOpts,
|
346
236
|
type HexToStringErrorType,
|
347
237
|
type HexToStringOpts,
|
348
|
-
fromHex,
|
349
|
-
hexToBool,
|
350
238
|
hexToBigInt,
|
239
|
+
hexToBool,
|
351
240
|
hexToNumber,
|
352
241
|
hexToString,
|
353
242
|
} from './encoding/fromHex.js'
|
@@ -356,11 +245,45 @@ export {
|
|
356
245
|
fromRlp,
|
357
246
|
} from './encoding/fromRlp.js'
|
358
247
|
export {
|
359
|
-
type
|
360
|
-
type
|
361
|
-
|
362
|
-
|
363
|
-
|
248
|
+
type BoolToBytesErrorType,
|
249
|
+
type BoolToBytesOpts,
|
250
|
+
boolToBytes,
|
251
|
+
type HexToBytesErrorType,
|
252
|
+
type HexToBytesOpts,
|
253
|
+
hexToBytes,
|
254
|
+
type NumberToBytesErrorType,
|
255
|
+
numberToBytes,
|
256
|
+
type StringToBytesErrorType,
|
257
|
+
type StringToBytesOpts,
|
258
|
+
stringToBytes,
|
259
|
+
type ToBytesErrorType,
|
260
|
+
type ToBytesParameters,
|
261
|
+
toBytes,
|
262
|
+
} from './encoding/toBytes.js'
|
263
|
+
export {
|
264
|
+
type BoolToHexErrorType,
|
265
|
+
type BoolToHexOpts,
|
266
|
+
type BytesToHexErrorType,
|
267
|
+
type BytesToHexOpts,
|
268
|
+
boolToHex,
|
269
|
+
bytesToHex,
|
270
|
+
type NumberToHexErrorType,
|
271
|
+
type NumberToHexOpts,
|
272
|
+
numberToHex,
|
273
|
+
type StringToHexErrorType,
|
274
|
+
type StringToHexOpts,
|
275
|
+
stringToHex,
|
276
|
+
type ToHexErrorType,
|
277
|
+
type ToHexParameters,
|
278
|
+
toHex,
|
279
|
+
} from './encoding/toHex.js'
|
280
|
+
export {
|
281
|
+
type BytesToRlpErrorType,
|
282
|
+
type HexToRlpErrorType,
|
283
|
+
type ToRlpErrorType,
|
284
|
+
type ToRlpReturnType,
|
285
|
+
toRlp,
|
286
|
+
} from './encoding/toRlp.js'
|
364
287
|
export {
|
365
288
|
type GetCallErrorReturnType,
|
366
289
|
getCallError,
|
@@ -373,60 +296,137 @@ export {
|
|
373
296
|
type GetEstimateGasErrorReturnType,
|
374
297
|
getEstimateGasError,
|
375
298
|
} from './errors/getEstimateGasError.js'
|
299
|
+
export {
|
300
|
+
containsNodeError,
|
301
|
+
type GetNodeErrorParameters,
|
302
|
+
type GetNodeErrorReturnType,
|
303
|
+
getNodeError,
|
304
|
+
} from './errors/getNodeError.js'
|
376
305
|
export {
|
377
306
|
type GetTransactionErrorParameters,
|
378
307
|
type GetTransactionErrorReturnType,
|
379
308
|
getTransactionError,
|
380
309
|
} from './errors/getTransactionError.js'
|
381
|
-
export {
|
310
|
+
export {
|
311
|
+
type DefineBlockErrorType,
|
312
|
+
defineBlock,
|
313
|
+
type FormatBlockErrorType,
|
314
|
+
type FormattedBlock,
|
315
|
+
formatBlock,
|
316
|
+
} from './formatters/block.js'
|
317
|
+
export { type ExtractErrorType, extract } from './formatters/extract.js'
|
382
318
|
export {
|
383
319
|
type DefineFormatterErrorType,
|
384
320
|
defineFormatter,
|
385
321
|
} from './formatters/formatter.js'
|
322
|
+
export { type FormatLogErrorType, formatLog } from './formatters/log.js'
|
323
|
+
export {
|
324
|
+
type DefineTransactionErrorType,
|
325
|
+
defineTransaction,
|
326
|
+
type FormatTransactionErrorType,
|
327
|
+
type FormattedTransaction,
|
328
|
+
formatTransaction,
|
329
|
+
transactionType,
|
330
|
+
} from './formatters/transaction.js'
|
331
|
+
export {
|
332
|
+
type DefineTransactionReceiptErrorType,
|
333
|
+
defineTransactionReceipt,
|
334
|
+
type FormatTransactionReceiptErrorType,
|
335
|
+
type FormattedTransactionReceipt,
|
336
|
+
} from './formatters/transactionReceipt.js'
|
337
|
+
export {
|
338
|
+
type DefineTransactionRequestErrorType,
|
339
|
+
defineTransactionRequest,
|
340
|
+
type FormatTransactionRequestErrorType,
|
341
|
+
type FormattedTransactionRequest,
|
342
|
+
formatTransactionRequest,
|
343
|
+
} from './formatters/transactionRequest.js'
|
344
|
+
export { getAction } from './getAction.js'
|
345
|
+
export { type IsHashErrorType, isHash } from './hash/isHash.js'
|
346
|
+
export { type Keccak256ErrorType, keccak256 } from './hash/keccak256.js'
|
347
|
+
export { type Ripemd160ErrorType, ripemd160 } from './hash/ripemd160.js'
|
348
|
+
export { type Sha256ErrorType, sha256 } from './hash/sha256.js'
|
349
|
+
export {
|
350
|
+
type ToEventHashErrorType,
|
351
|
+
toEventHash,
|
352
|
+
} from './hash/toEventHash.js'
|
386
353
|
export {
|
387
354
|
type ToEventSelectorErrorType,
|
388
|
-
toEventSelector,
|
389
355
|
/** @deprecated use `ToEventSelectorErrorType`. */
|
390
356
|
type ToEventSelectorErrorType as GetEventSelectorErrorType,
|
357
|
+
toEventSelector,
|
391
358
|
/** @deprecated use `toEventSelector`. */
|
392
359
|
toEventSelector as getEventSelector,
|
393
360
|
} from './hash/toEventSelector.js'
|
394
|
-
export {
|
395
|
-
type ToFunctionSelectorErrorType,
|
396
|
-
toFunctionSelector,
|
397
|
-
/** @deprecated use `ToFunctionSelectorErrorType`. */
|
398
|
-
type ToFunctionSelectorErrorType as GetFunctionSelectorErrorType,
|
399
|
-
/** @deprecated use `toFunctionSelector`. */
|
400
|
-
toFunctionSelector as getFunctionSelector,
|
401
|
-
} from './hash/toFunctionSelector.js'
|
402
361
|
export {
|
403
362
|
type ToEventSignatureErrorType,
|
404
|
-
toEventSignature,
|
405
363
|
/** @deprecated use `ToEventSignatureErrorType`. */
|
406
364
|
type ToEventSignatureErrorType as GetEventSignatureErrorType,
|
365
|
+
toEventSignature,
|
407
366
|
/** @deprecated use `toEventSignature`. */
|
408
367
|
toEventSignature as getEventSignature,
|
409
368
|
} from './hash/toEventSignature.js'
|
369
|
+
export {
|
370
|
+
type ToFunctionHashErrorType,
|
371
|
+
toFunctionHash,
|
372
|
+
} from './hash/toFunctionHash.js'
|
373
|
+
export {
|
374
|
+
type ToFunctionSelectorErrorType,
|
375
|
+
/** @deprecated use `ToFunctionSelectorErrorType`. */
|
376
|
+
type ToFunctionSelectorErrorType as GetFunctionSelectorErrorType,
|
377
|
+
toFunctionSelector,
|
378
|
+
/** @deprecated use `toFunctionSelector`. */
|
379
|
+
toFunctionSelector as getFunctionSelector,
|
380
|
+
} from './hash/toFunctionSelector.js'
|
410
381
|
export {
|
411
382
|
type ToFunctionSignatureErrorType,
|
412
|
-
toFunctionSignature,
|
413
383
|
/** @deprecated use `ToFunctionSignatureErrorType`. */
|
414
384
|
type ToFunctionSignatureErrorType as GetFunctionSignatureErrorType,
|
385
|
+
toFunctionSignature,
|
415
386
|
/** @deprecated use `toFunctionSignature`. */
|
416
387
|
toFunctionSignature as getFunctionSignature,
|
417
388
|
} from './hash/toFunctionSignature.js'
|
418
389
|
export {
|
419
|
-
type
|
420
|
-
|
421
|
-
|
390
|
+
type CreateNonceManagerParameters,
|
391
|
+
createNonceManager,
|
392
|
+
type NonceManager,
|
393
|
+
type NonceManagerSource,
|
394
|
+
nonceManager,
|
395
|
+
} from './nonceManager.js'
|
396
|
+
export { arrayRegex, bytesRegex, integerRegex } from './regex.js'
|
422
397
|
export {
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
398
|
+
getSocket,
|
399
|
+
rpc,
|
400
|
+
type WebSocketAsyncErrorType,
|
401
|
+
type WebSocketAsyncOptions,
|
402
|
+
type WebSocketAsyncReturnType,
|
403
|
+
type WebSocketErrorType,
|
404
|
+
type WebSocketOptions,
|
405
|
+
type WebSocketReturnType,
|
406
|
+
} from './rpc/compat.js'
|
407
|
+
export {
|
408
|
+
getHttpRpcClient,
|
409
|
+
type HttpRequestErrorType,
|
410
|
+
type HttpRequestParameters,
|
411
|
+
type HttpRequestReturnType,
|
412
|
+
type HttpRpcClient,
|
413
|
+
type HttpRpcClientOptions,
|
414
|
+
} from './rpc/http.js'
|
415
|
+
export {
|
416
|
+
type GetSocketParameters,
|
417
|
+
type GetSocketRpcClientErrorType,
|
418
|
+
type GetSocketRpcClientParameters,
|
419
|
+
getSocketRpcClient,
|
420
|
+
type Socket,
|
421
|
+
type SocketRpcClient,
|
422
|
+
socketClientCache,
|
423
|
+
} from './rpc/socket.js'
|
424
|
+
export { getWebSocketRpcClient } from './rpc/webSocket.js'
|
425
|
+
export {
|
426
|
+
type HashMessageErrorType,
|
427
|
+
type HashMessageReturnType,
|
428
|
+
hashMessage,
|
429
|
+
} from './signature/hashMessage.js'
|
430
430
|
export {
|
431
431
|
type HashDomainErrorType,
|
432
432
|
type HashStructErrorType,
|
@@ -435,6 +435,18 @@ export {
|
|
435
435
|
hashStruct,
|
436
436
|
hashTypedData,
|
437
437
|
} from './signature/hashTypedData.js'
|
438
|
+
export {
|
439
|
+
type IsErc6492SignatureErrorType,
|
440
|
+
type IsErc6492SignatureParameters,
|
441
|
+
type IsErc6492SignatureReturnType,
|
442
|
+
isErc6492Signature,
|
443
|
+
} from './signature/isErc6492Signature.js'
|
444
|
+
export {
|
445
|
+
type ParseErc6492SignatureErrorType,
|
446
|
+
type ParseErc6492SignatureParameters,
|
447
|
+
type ParseErc6492SignatureReturnType,
|
448
|
+
parseErc6492Signature,
|
449
|
+
} from './signature/parseErc6492Signature.js'
|
438
450
|
export {
|
439
451
|
type RecoverAddressErrorType,
|
440
452
|
type RecoverAddressParameters,
|
@@ -459,6 +471,12 @@ export {
|
|
459
471
|
type RecoverTypedDataAddressReturnType,
|
460
472
|
recoverTypedDataAddress,
|
461
473
|
} from './signature/recoverTypedDataAddress.js'
|
474
|
+
export {
|
475
|
+
type SerializeErc6492SignatureErrorType,
|
476
|
+
type SerializeErc6492SignatureParameters,
|
477
|
+
type SerializeErc6492SignatureReturnType,
|
478
|
+
serializeErc6492Signature,
|
479
|
+
} from './signature/serializeErc6492Signature.js'
|
462
480
|
export {
|
463
481
|
type VerifyHashErrorType,
|
464
482
|
type VerifyHashParameters,
|
@@ -477,39 +495,7 @@ export {
|
|
477
495
|
type VerifyTypedDataReturnType,
|
478
496
|
verifyTypedData,
|
479
497
|
} from './signature/verifyTypedData.js'
|
480
|
-
export {
|
481
|
-
type HashMessageReturnType,
|
482
|
-
type HashMessageErrorType,
|
483
|
-
hashMessage,
|
484
|
-
} from './signature/hashMessage.js'
|
485
|
-
export {
|
486
|
-
type ParseErc6492SignatureErrorType,
|
487
|
-
type ParseErc6492SignatureParameters,
|
488
|
-
type ParseErc6492SignatureReturnType,
|
489
|
-
parseErc6492Signature,
|
490
|
-
} from './signature/parseErc6492Signature.js'
|
491
|
-
export {
|
492
|
-
type IsErc6492SignatureErrorType,
|
493
|
-
type IsErc6492SignatureParameters,
|
494
|
-
type IsErc6492SignatureReturnType,
|
495
|
-
isErc6492Signature,
|
496
|
-
} from './signature/isErc6492Signature.js'
|
497
|
-
export {
|
498
|
-
type SerializeErc6492SignatureErrorType,
|
499
|
-
type SerializeErc6492SignatureParameters,
|
500
|
-
type SerializeErc6492SignatureReturnType,
|
501
|
-
serializeErc6492Signature,
|
502
|
-
} from './signature/serializeErc6492Signature.js'
|
503
|
-
export {
|
504
|
-
type GetSerializedTransactionTypeErrorType,
|
505
|
-
type GetSerializedTransactionType,
|
506
|
-
getSerializedTransactionType,
|
507
|
-
} from './transaction/getSerializedTransactionType.js'
|
508
|
-
export {
|
509
|
-
type GetTransactionTypeErrorType,
|
510
|
-
type GetTransactionType,
|
511
|
-
getTransactionType,
|
512
|
-
} from './transaction/getTransactionType.js'
|
498
|
+
export { type StringifyErrorType, stringify } from './stringify.js'
|
513
499
|
export {
|
514
500
|
type AssertRequestErrorType,
|
515
501
|
assertRequest,
|
@@ -522,29 +508,39 @@ export {
|
|
522
508
|
assertTransactionEIP2930,
|
523
509
|
assertTransactionLegacy,
|
524
510
|
} from './transaction/assertTransaction.js'
|
511
|
+
export {
|
512
|
+
type GetSerializedTransactionType,
|
513
|
+
type GetSerializedTransactionTypeErrorType,
|
514
|
+
getSerializedTransactionType,
|
515
|
+
} from './transaction/getSerializedTransactionType.js'
|
516
|
+
export {
|
517
|
+
type GetTransactionType,
|
518
|
+
type GetTransactionTypeErrorType,
|
519
|
+
getTransactionType,
|
520
|
+
} from './transaction/getTransactionType.js'
|
525
521
|
export {
|
526
522
|
type ParseTransactionErrorType,
|
527
523
|
parseTransaction,
|
528
524
|
} from './transaction/parseTransaction.js'
|
529
525
|
export {
|
530
|
-
|
526
|
+
type SerializeAccessListErrorType,
|
527
|
+
serializeAccessList,
|
528
|
+
} from './transaction/serializeAccessList.js'
|
529
|
+
export {
|
531
530
|
type SerializeTransactionErrorType,
|
532
531
|
type SerializeTransactionFn,
|
532
|
+
serializeTransaction,
|
533
533
|
} from './transaction/serializeTransaction.js'
|
534
534
|
export {
|
535
|
-
type
|
536
|
-
|
537
|
-
|
535
|
+
type DomainSeparatorErrorType,
|
536
|
+
type SerializeTypedDataErrorType,
|
537
|
+
serializeTypedData,
|
538
|
+
type ValidateTypedDataErrorType,
|
539
|
+
validateTypedData,
|
540
|
+
} from './typedData.js'
|
538
541
|
export { type FormatEtherErrorType, formatEther } from './unit/formatEther.js'
|
539
542
|
export { type FormatGweiErrorType, formatGwei } from './unit/formatGwei.js'
|
540
543
|
export { type FormatUnitsErrorType, formatUnits } from './unit/formatUnits.js'
|
541
|
-
export { type ParseUnitsErrorType, parseUnits } from './unit/parseUnits.js'
|
542
544
|
export { type ParseEtherErrorType, parseEther } from './unit/parseEther.js'
|
543
545
|
export { type ParseGweiErrorType, parseGwei } from './unit/parseGwei.js'
|
544
|
-
export {
|
545
|
-
type CreateNonceManagerParameters,
|
546
|
-
type NonceManager,
|
547
|
-
type NonceManagerSource,
|
548
|
-
createNonceManager,
|
549
|
-
nonceManager,
|
550
|
-
} from './nonceManager.js'
|
546
|
+
export { type ParseUnitsErrorType, parseUnits } from './unit/parseUnits.js'
|
package/utils/poll.ts
CHANGED
@@ -24,7 +24,7 @@ export function poll<data>(
|
|
24
24
|
const unwatch = () => (active = false)
|
25
25
|
|
26
26
|
const watch = async () => {
|
27
|
-
let data: data |
|
27
|
+
let data: data | undefined | void
|
28
28
|
if (emitOnBegin) data = await fn({ unpoll: unwatch })
|
29
29
|
|
30
30
|
const initialWait = (await initialWaitTime?.(data)) ?? interval
|
@@ -52,7 +52,7 @@ export async function withCache<data>(
|
|
52
52
|
// If the max age is 0, the cache is disabled.
|
53
53
|
const response = cache.response.get()
|
54
54
|
if (response && cacheTime > 0) {
|
55
|
-
const age =
|
55
|
+
const age = Date.now() - response.created.getTime()
|
56
56
|
if (age < cacheTime) return response.data
|
57
57
|
}
|
58
58
|
|
@@ -5,7 +5,9 @@ export type WithTimeoutErrorType = ErrorType
|
|
5
5
|
export function withTimeout<data>(
|
6
6
|
fn: ({
|
7
7
|
signal,
|
8
|
-
}: {
|
8
|
+
}: {
|
9
|
+
signal: AbortController['signal'] | null
|
10
|
+
}) => Promise<data>,
|
9
11
|
{
|
10
12
|
errorInstance = new Error('timed out'),
|
11
13
|
timeout,
|