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/rpc/compat.ts
CHANGED
@@ -9,7 +9,7 @@ import type {
|
|
9
9
|
import type { ErrorType } from '../../errors/utils.js'
|
10
10
|
import type { RpcResponse } from '../../types/rpc.js'
|
11
11
|
import type { WithTimeoutErrorType } from '../promise/withTimeout.js'
|
12
|
-
import { type HttpRequestParameters
|
12
|
+
import { getHttpRpcClient, type HttpRequestParameters } from './http.js'
|
13
13
|
import type { SocketRpcClient } from './socket.js'
|
14
14
|
import { getWebSocketRpcClient } from './webSocket.js'
|
15
15
|
|
package/utils/rpc/ipc.ts
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
import { type Socket as NetSocket
|
1
|
+
import { connect, type Socket as NetSocket } from 'node:net'
|
2
2
|
import { WebSocketRequestError } from '../../index.js'
|
3
3
|
import {
|
4
4
|
type GetSocketRpcClientParameters,
|
5
|
+
getSocketRpcClient,
|
5
6
|
type Socket,
|
6
7
|
type SocketRpcClient,
|
7
|
-
getSocketRpcClient,
|
8
8
|
} from './socket.js'
|
9
9
|
|
10
10
|
export type GetIpcRpcClientOptions = Pick<
|
package/utils/rpc/socket.ts
CHANGED
package/utils/rpc/webSocket.ts
CHANGED
@@ -7,9 +7,9 @@ import {
|
|
7
7
|
import type { RpcRequest } from '../../types/rpc.js'
|
8
8
|
import {
|
9
9
|
type GetSocketRpcClientParameters,
|
10
|
+
getSocketRpcClient,
|
10
11
|
type Socket,
|
11
12
|
type SocketRpcClient,
|
12
|
-
getSocketRpcClient,
|
13
13
|
} from './socket.js'
|
14
14
|
|
15
15
|
export type GetWebSocketRpcClientOptions = Pick<
|
@@ -14,8 +14,8 @@ import { type ToHexErrorType, toHex } from '../encoding/toHex.js'
|
|
14
14
|
import { type Keccak256ErrorType, keccak256 } from '../hash/keccak256.js'
|
15
15
|
import {
|
16
16
|
type GetTypesForEIP712DomainErrorType,
|
17
|
-
type ValidateTypedDataErrorType,
|
18
17
|
getTypesForEIP712Domain,
|
18
|
+
type ValidateTypedDataErrorType,
|
19
19
|
validateTypedData,
|
20
20
|
} from '../typedData.js'
|
21
21
|
|
@@ -1,9 +1,8 @@
|
|
1
1
|
import type { Address } from 'abitype'
|
2
2
|
|
3
3
|
import { publicKeyToAddress } from '../../accounts/utils/publicKeyToAddress.js'
|
4
|
-
import type { ByteArray, Hex, Signature } from '../../types/misc.js'
|
5
|
-
|
6
4
|
import type { ErrorType } from '../../errors/utils.js'
|
5
|
+
import type { ByteArray, Hex, Signature } from '../../types/misc.js'
|
7
6
|
import { recoverPublicKey } from './recoverPublicKey.js'
|
8
7
|
|
9
8
|
export type RecoverAddressParameters = {
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import type { Address } from 'abitype'
|
2
|
-
|
2
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
3
|
import type {
|
4
4
|
ByteArray,
|
5
5
|
Hex,
|
6
6
|
SignableMessage,
|
7
7
|
Signature,
|
8
8
|
} from '../../types/misc.js'
|
9
|
-
|
10
|
-
import type { ErrorType } from '../../errors/utils.js'
|
11
9
|
import { type HashMessageErrorType, hashMessage } from './hashMessage.js'
|
12
10
|
import {
|
13
11
|
type RecoverAddressErrorType,
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import type { Address, TypedData } from 'abitype'
|
2
|
-
|
2
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
3
|
import type { ByteArray, Hex, Signature } from '../../types/misc.js'
|
4
4
|
import type { TypedDataDefinition } from '../../types/typedData.js'
|
5
|
-
|
6
|
-
import type { ErrorType } from '../../errors/utils.js'
|
7
5
|
import { type HashTypedDataErrorType, hashTypedData } from './hashTypedData.js'
|
8
6
|
import {
|
9
7
|
type RecoverAddressErrorType,
|
@@ -5,8 +5,8 @@ import { type ConcatErrorType, concat } from '../data/concat.js'
|
|
5
5
|
import { size } from '../data/size.js'
|
6
6
|
import {
|
7
7
|
type BytesToHexErrorType,
|
8
|
-
type StringToHexErrorType,
|
9
8
|
bytesToHex,
|
9
|
+
type StringToHexErrorType,
|
10
10
|
stringToHex,
|
11
11
|
} from '../encoding/toHex.js'
|
12
12
|
|
@@ -1,13 +1,11 @@
|
|
1
1
|
import type { Address } from 'abitype'
|
2
|
-
|
2
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
3
|
import type { ByteArray, Hash, Hex, Signature } from '../../types/misc.js'
|
4
4
|
import { type GetAddressErrorType, getAddress } from '../address/getAddress.js'
|
5
5
|
import {
|
6
6
|
type IsAddressEqualErrorType,
|
7
7
|
isAddressEqual,
|
8
8
|
} from '../address/isAddressEqual.js'
|
9
|
-
|
10
|
-
import type { ErrorType } from '../../errors/utils.js'
|
11
9
|
import {
|
12
10
|
type RecoverAddressErrorType,
|
13
11
|
recoverAddress,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Address } from 'abitype'
|
2
|
-
|
2
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
3
|
import type {
|
4
4
|
ByteArray,
|
5
5
|
Hex,
|
@@ -11,8 +11,6 @@ import {
|
|
11
11
|
type IsAddressEqualErrorType,
|
12
12
|
isAddressEqual,
|
13
13
|
} from '../address/isAddressEqual.js'
|
14
|
-
|
15
|
-
import type { ErrorType } from '../../errors/utils.js'
|
16
14
|
import {
|
17
15
|
type RecoverMessageAddressErrorType,
|
18
16
|
recoverMessageAddress,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { Address, TypedData } from 'abitype'
|
2
|
-
|
2
|
+
import type { ErrorType } from '../../errors/utils.js'
|
3
3
|
import type { ByteArray, Hex, Signature } from '../../types/misc.js'
|
4
4
|
import type { TypedDataDefinition } from '../../types/typedData.js'
|
5
5
|
import { type GetAddressErrorType, getAddress } from '../address/getAddress.js'
|
@@ -7,8 +7,6 @@ import {
|
|
7
7
|
type IsAddressEqualErrorType,
|
8
8
|
isAddressEqual,
|
9
9
|
} from '../address/isAddressEqual.js'
|
10
|
-
|
11
|
-
import type { ErrorType } from '../../errors/utils.js'
|
12
10
|
import {
|
13
11
|
type RecoverTypedDataAddressParameters,
|
14
12
|
recoverTypedDataAddress,
|
@@ -170,7 +170,7 @@ export function createSiweMessage(
|
|
170
170
|
}
|
171
171
|
|
172
172
|
const domainRegex =
|
173
|
-
/^([a-zA-Z0-9]([a-zA-Z0-9
|
173
|
+
/^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/
|
174
174
|
const ipRegex =
|
175
175
|
/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/
|
176
176
|
const localhostRegex = /^localhost(:[0-9]{1,5})?$/
|
package/utils/siwe/utils.ts
CHANGED
@@ -2,8 +2,7 @@ export function isUri(value: string) {
|
|
2
2
|
// based on https://github.com/ogt/valid-url
|
3
3
|
|
4
4
|
// check for illegal characters
|
5
|
-
if (/[^a-z0-9
|
6
|
-
return false
|
5
|
+
if (/[^a-z0-9:/?#[\]@!$&'()*+,;=.\-_~%]/i.test(value)) return false
|
7
6
|
|
8
7
|
// check for hex escapes that aren't complete
|
9
8
|
if (/%[^0-9a-f]/i.test(value)) return false
|
@@ -29,7 +28,7 @@ export function isUri(value: string) {
|
|
29
28
|
}
|
30
29
|
|
31
30
|
// scheme must begin with a letter, then consist of letters, digits, +, ., or -
|
32
|
-
if (!/^[a-z][a-z0-9
|
31
|
+
if (!/^[a-z][a-z0-9+\-.]*$/.test(scheme.toLowerCase())) return false
|
33
32
|
|
34
33
|
let out = ''
|
35
34
|
// re-assemble the URL per section 5.3 in RFC 3986
|
@@ -46,6 +45,6 @@ export function isUri(value: string) {
|
|
46
45
|
|
47
46
|
function splitUri(value: string) {
|
48
47
|
return value.match(
|
49
|
-
/(?:([
|
48
|
+
/(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,
|
50
49
|
)!
|
51
50
|
}
|
@@ -49,8 +49,8 @@ import {
|
|
49
49
|
import { type ConcatHexErrorType, concatHex } from '../data/concat.js'
|
50
50
|
import { trim } from '../data/trim.js'
|
51
51
|
import {
|
52
|
-
type NumberToHexErrorType,
|
53
52
|
bytesToHex,
|
53
|
+
type NumberToHexErrorType,
|
54
54
|
numberToHex,
|
55
55
|
} from '../encoding/toHex.js'
|
56
56
|
import { type ToRlpErrorType, toRlp } from '../encoding/toRlp.js'
|
package/utils/typedData.ts
CHANGED
@@ -96,7 +96,7 @@ export function validateTypedData<
|
|
96
96
|
// and will throw.
|
97
97
|
numberToHex(value, {
|
98
98
|
signed: base === 'int',
|
99
|
-
size: Number.parseInt(size_) / 8,
|
99
|
+
size: Number.parseInt(size_, 10) / 8,
|
100
100
|
})
|
101
101
|
}
|
102
102
|
|
@@ -106,9 +106,9 @@ export function validateTypedData<
|
|
106
106
|
const bytesMatch = type.match(bytesRegex)
|
107
107
|
if (bytesMatch) {
|
108
108
|
const [_type, size_] = bytesMatch
|
109
|
-
if (size_ && size(value as Hex) !== Number.parseInt(size_))
|
109
|
+
if (size_ && size(value as Hex) !== Number.parseInt(size_, 10))
|
110
110
|
throw new BytesSizeMismatchError({
|
111
|
-
expectedSize: Number.parseInt(size_),
|
111
|
+
expectedSize: Number.parseInt(size_, 10),
|
112
112
|
givenSize: size(value as Hex),
|
113
113
|
})
|
114
114
|
}
|
@@ -138,7 +138,9 @@ export type GetTypesForEIP712DomainErrorType = ErrorType
|
|
138
138
|
|
139
139
|
export function getTypesForEIP712Domain({
|
140
140
|
domain,
|
141
|
-
}: {
|
141
|
+
}: {
|
142
|
+
domain?: TypedDataDomain | undefined
|
143
|
+
}): TypedDataParameter[] {
|
142
144
|
return [
|
143
145
|
typeof domain?.name === 'string' && { name: 'name', type: 'string' },
|
144
146
|
domain?.version && { name: 'version', type: 'string' },
|
@@ -21,15 +21,14 @@ import type {
|
|
21
21
|
DeriveChain,
|
22
22
|
GetChainParameter,
|
23
23
|
} from '../../types/chain.js'
|
24
|
-
import type { Hash } from '../../types/misc.js'
|
25
|
-
import type { Hex } from '../../types/misc.js'
|
24
|
+
import type { Hash, Hex } from '../../types/misc.js'
|
26
25
|
import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
|
27
26
|
import {
|
28
|
-
type FormattedTransactionRequest,
|
29
27
|
decodeAbiParameters,
|
30
28
|
decodeFunctionData,
|
31
29
|
encodeAbiParameters,
|
32
30
|
encodeFunctionData,
|
31
|
+
type FormattedTransactionRequest,
|
33
32
|
isAddressEqual,
|
34
33
|
parseAccount,
|
35
34
|
} from '../../utils/index.js'
|
@@ -33,10 +33,10 @@ import type {
|
|
33
33
|
import type { Hex } from '../../types/misc.js'
|
34
34
|
import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
|
35
35
|
import {
|
36
|
-
type FormattedTransactionRequest,
|
37
36
|
concatHex,
|
38
37
|
encodeAbiParameters,
|
39
38
|
encodeFunctionData,
|
39
|
+
type FormattedTransactionRequest,
|
40
40
|
isAddressEqual,
|
41
41
|
keccak256,
|
42
42
|
parseAccount,
|
@@ -23,8 +23,8 @@ import type {
|
|
23
23
|
import type { Hex } from '../../types/misc.js'
|
24
24
|
import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
|
25
25
|
import {
|
26
|
-
type FormattedTransactionRequest,
|
27
26
|
encodeFunctionData,
|
27
|
+
type FormattedTransactionRequest,
|
28
28
|
isAddressEqual,
|
29
29
|
parseAccount,
|
30
30
|
} from '../../utils/index.js'
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import type { Account } from '../../accounts/types.js'
|
2
|
-
import { sendTransaction as core_sendTransaction } from '../../actions/wallet/sendTransaction.js'
|
3
2
|
import type {
|
4
|
-
SendTransactionRequest,
|
5
3
|
SendTransactionErrorType as core_SendTransactionErrorType,
|
6
4
|
SendTransactionParameters as core_SendTransactionParameters,
|
7
5
|
SendTransactionReturnType as core_SendTransactionReturnType,
|
6
|
+
SendTransactionRequest,
|
8
7
|
} from '../../actions/wallet/sendTransaction.js'
|
8
|
+
import { sendTransaction as core_sendTransaction } from '../../actions/wallet/sendTransaction.js'
|
9
9
|
import type { Client } from '../../clients/createClient.js'
|
10
10
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
11
11
|
import type { ChainEIP712 } from '../types/chain.js'
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Account } from '../../accounts/types.js'
|
2
|
-
import { signTransaction as signTransaction_ } from '../../actions/wallet/signTransaction.js'
|
3
2
|
import type {
|
4
3
|
SignTransactionErrorType as SignTransactionErrorType_,
|
5
4
|
SignTransactionReturnType as SignTransactionReturnType_,
|
6
5
|
} from '../../actions/wallet/signTransaction.js'
|
6
|
+
import { signTransaction as signTransaction_ } from '../../actions/wallet/signTransaction.js'
|
7
7
|
import type { Client } from '../../clients/createClient.js'
|
8
8
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
9
9
|
import type { GetAccountParameter } from '../../types/account.js'
|
@@ -2,11 +2,11 @@ import type { Address } from 'abitype'
|
|
2
2
|
import type { Client } from '../../clients/createClient.js'
|
3
3
|
import type { Transport } from '../../clients/transports/createTransport.js'
|
4
4
|
import type { Account } from '../../types/account.js'
|
5
|
-
import { estimateFee } from '../actions/estimateFee.js'
|
6
5
|
import type {
|
7
6
|
EstimateFeeParameters,
|
8
7
|
EstimateFeeReturnType,
|
9
8
|
} from '../actions/estimateFee.js'
|
9
|
+
import { estimateFee } from '../actions/estimateFee.js'
|
10
10
|
import {
|
11
11
|
type EstimateGasL1ToL2Parameters,
|
12
12
|
type EstimateGasL1ToL2ReturnType,
|
package/zksync/index.ts
CHANGED
@@ -1,9 +1,4 @@
|
|
1
1
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
2
|
-
export {
|
3
|
-
type ToSmartAccountErrorType,
|
4
|
-
type ToSmartAccountParameters,
|
5
|
-
toSmartAccount,
|
6
|
-
} from './accounts/toSmartAccount.js'
|
7
2
|
export {
|
8
3
|
type ToMultisigSmartAccountParameters,
|
9
4
|
toMultisigSmartAccount,
|
@@ -12,32 +7,27 @@ export {
|
|
12
7
|
type ToSinglesigSmartAccountParameters,
|
13
8
|
toSinglesigSmartAccount,
|
14
9
|
} from './accounts/toSinglesigSmartAccount.js'
|
15
|
-
|
16
|
-
export {
|
17
|
-
type DeployContractErrorType,
|
18
|
-
type DeployContractParameters,
|
19
|
-
type DeployContractReturnType,
|
20
|
-
deployContract,
|
21
|
-
} from './actions/deployContract.js'
|
22
|
-
export {
|
23
|
-
type EncodeDeployDataParameters,
|
24
|
-
type EncodeDeployDataErrorType,
|
25
|
-
encodeDeployData,
|
26
|
-
} from './utils/abi/encodeDeployData.js'
|
27
10
|
export {
|
28
|
-
type
|
29
|
-
|
30
|
-
|
11
|
+
type ToSmartAccountErrorType,
|
12
|
+
type ToSmartAccountParameters,
|
13
|
+
toSmartAccount,
|
14
|
+
} from './accounts/toSmartAccount.js'
|
31
15
|
export {
|
32
16
|
type ClaimFailedDepositErrorType,
|
33
17
|
type ClaimFailedDepositParameters,
|
34
18
|
type ClaimFailedDepositReturnType,
|
35
19
|
claimFailedDeposit,
|
36
20
|
} from './actions/claimFailedDeposit.js'
|
21
|
+
export {
|
22
|
+
type DeployContractErrorType,
|
23
|
+
type DeployContractParameters,
|
24
|
+
type DeployContractReturnType,
|
25
|
+
deployContract,
|
26
|
+
} from './actions/deployContract.js'
|
37
27
|
export {
|
38
28
|
type DepositErrorType,
|
39
|
-
type DepositReturnType,
|
40
29
|
type DepositParameters,
|
30
|
+
type DepositReturnType,
|
41
31
|
deposit,
|
42
32
|
} from './actions/deposit.js'
|
43
33
|
export {
|
@@ -45,6 +35,12 @@ export {
|
|
45
35
|
type EstimateFeeReturnType,
|
46
36
|
estimateFee,
|
47
37
|
} from './actions/estimateFee.js'
|
38
|
+
export {
|
39
|
+
type FinalizeWithdrawalErrorType,
|
40
|
+
type FinalizeWithdrawalParameters,
|
41
|
+
type FinalizeWithdrawalReturnType,
|
42
|
+
finalizeWithdrawal,
|
43
|
+
} from './actions/finalizeWithdrawal.js'
|
48
44
|
export {
|
49
45
|
type GetAllBalancesParameters,
|
50
46
|
type GetAllBalancesReturnType,
|
@@ -55,11 +51,11 @@ export {
|
|
55
51
|
type GetBlockDetailsReturnType,
|
56
52
|
getBlockDetails,
|
57
53
|
} from './actions/getBlockDetails.js'
|
54
|
+
export { getBridgehubContractAddress } from './actions/getBridgehubContractAddress.js'
|
58
55
|
export {
|
59
56
|
type GetDefaultBridgeAddressesReturnType,
|
60
57
|
getDefaultBridgeAddresses,
|
61
58
|
} from './actions/getDefaultBridgeAddresses.js'
|
62
|
-
export { getBridgehubContractAddress } from './actions/getBridgehubContractAddress.js'
|
63
59
|
export {
|
64
60
|
type GetGasPerPubdataReturnType,
|
65
61
|
getGasPerPubdata,
|
@@ -88,6 +84,11 @@ export {
|
|
88
84
|
} from './actions/getL1BatchDetails.js'
|
89
85
|
export { getL1BatchNumber } from './actions/getL1BatchNumber.js'
|
90
86
|
export { getL1ChainId } from './actions/getL1ChainId.js'
|
87
|
+
export {
|
88
|
+
type GetL1TokenAddressParameters,
|
89
|
+
type GetL1TokenAddressReturnType,
|
90
|
+
getL1TokenAddress,
|
91
|
+
} from './actions/getL1TokenAddress.js'
|
91
92
|
export {
|
92
93
|
type GetL1TokenBalanceErrorType,
|
93
94
|
type GetL1TokenBalanceParameters,
|
@@ -95,8 +96,13 @@ export {
|
|
95
96
|
getL1TokenBalance,
|
96
97
|
} from './actions/getL1TokenBalance.js'
|
97
98
|
export {
|
98
|
-
type
|
99
|
+
type GetL2TokenAddressParameters,
|
100
|
+
type GetL2TokenAddressReturnType,
|
101
|
+
getL2TokenAddress,
|
102
|
+
} from './actions/getL2TokenAddress.js'
|
103
|
+
export {
|
99
104
|
type GetLogProofParameters,
|
105
|
+
type GetLogProofReturnType,
|
100
106
|
getLogProof,
|
101
107
|
} from './actions/getLogProof.js'
|
102
108
|
export { getMainContractAddress } from './actions/getMainContractAddress.js'
|
@@ -113,28 +119,28 @@ export {
|
|
113
119
|
} from './actions/getTransactionDetails.js'
|
114
120
|
export {
|
115
121
|
type IsWithdrawalFinalizedErrorType,
|
116
|
-
type IsWithdrawalFinalizedReturnType,
|
117
122
|
type IsWithdrawalFinalizedParameters,
|
123
|
+
type IsWithdrawalFinalizedReturnType,
|
118
124
|
isWithdrawalFinalized,
|
119
125
|
} from './actions/isWithdrawalFinalized.js'
|
120
126
|
export {
|
121
127
|
type RequestExecuteErrorType,
|
122
|
-
type RequestExecuteReturnType,
|
123
128
|
type RequestExecuteParameters,
|
129
|
+
type RequestExecuteReturnType,
|
124
130
|
requestExecute,
|
125
131
|
} from './actions/requestExecute.js'
|
126
|
-
export {
|
127
|
-
type SendTransactionErrorType,
|
128
|
-
type SendTransactionParameters,
|
129
|
-
type SendTransactionReturnType,
|
130
|
-
sendTransaction,
|
131
|
-
} from './actions/sendTransaction.js'
|
132
132
|
export {
|
133
133
|
type SendEip712TransactionErrorType,
|
134
134
|
type SendEip712TransactionParameters,
|
135
135
|
type SendEip712TransactionReturnType,
|
136
136
|
sendEip712Transaction,
|
137
137
|
} from './actions/sendEip712Transaction.js'
|
138
|
+
export {
|
139
|
+
type SendTransactionErrorType,
|
140
|
+
type SendTransactionParameters,
|
141
|
+
type SendTransactionReturnType,
|
142
|
+
sendTransaction,
|
143
|
+
} from './actions/sendTransaction.js'
|
138
144
|
export {
|
139
145
|
type SignEip712TransactionErrorType,
|
140
146
|
type SignEip712TransactionParameters,
|
@@ -147,44 +153,23 @@ export {
|
|
147
153
|
type SignTransactionReturnType,
|
148
154
|
signTransaction,
|
149
155
|
} from './actions/signTransaction.js'
|
150
|
-
export {
|
151
|
-
type GetL2TokenAddressReturnType,
|
152
|
-
type GetL2TokenAddressParameters,
|
153
|
-
getL2TokenAddress,
|
154
|
-
} from './actions/getL2TokenAddress.js'
|
155
|
-
export {
|
156
|
-
type GetL1TokenAddressReturnType,
|
157
|
-
type GetL1TokenAddressParameters,
|
158
|
-
getL1TokenAddress,
|
159
|
-
} from './actions/getL1TokenAddress.js'
|
160
156
|
export {
|
161
157
|
type WithdrawErrorType,
|
162
158
|
type WithdrawParameters,
|
163
159
|
type WithdrawReturnType,
|
164
160
|
withdraw,
|
165
161
|
} from './actions/withdraw.js'
|
166
|
-
export {
|
167
|
-
type FinalizeWithdrawalErrorType,
|
168
|
-
type FinalizeWithdrawalParameters,
|
169
|
-
type FinalizeWithdrawalReturnType,
|
170
|
-
finalizeWithdrawal,
|
171
|
-
} from './actions/finalizeWithdrawal.js'
|
172
|
-
|
173
|
-
export {
|
174
|
-
legacyEthAddress,
|
175
|
-
l2BaseTokenAddress,
|
176
|
-
} from './constants/address.js'
|
177
|
-
|
162
|
+
export { chainConfig } from './chainConfig.js'
|
178
163
|
export {
|
179
164
|
/** @deprecated Use `zksync` instead */
|
180
165
|
zksync as zkSync,
|
181
166
|
zksync,
|
182
167
|
/** @deprecated Use `zksync` instead */
|
183
168
|
zksyncInMemoryNode as zkSyncInMemoryNode,
|
169
|
+
zksyncInMemoryNode,
|
184
170
|
zksyncLocalCustomHyperchain,
|
185
171
|
zksyncLocalHyperchain,
|
186
172
|
zksyncLocalHyperchainL1,
|
187
|
-
zksyncInMemoryNode,
|
188
173
|
/** @deprecated Use `zksync` instead */
|
189
174
|
zksyncLocalNode as zkSyncLocalNode,
|
190
175
|
zksyncLocalNode,
|
@@ -193,46 +178,42 @@ export {
|
|
193
178
|
zksyncSepoliaTestnet,
|
194
179
|
} from './chains.js'
|
195
180
|
|
196
|
-
export { chainConfig } from './chainConfig.js'
|
197
|
-
|
198
181
|
export {
|
199
|
-
|
182
|
+
l2BaseTokenAddress,
|
183
|
+
legacyEthAddress,
|
184
|
+
} from './constants/address.js'
|
185
|
+
export {
|
200
186
|
type Eip712WalletActions,
|
187
|
+
eip712WalletActions,
|
201
188
|
} from './decorators/eip712.js'
|
202
|
-
|
203
189
|
export {
|
204
|
-
publicActionsL1,
|
205
190
|
type PublicActionsL1,
|
191
|
+
publicActionsL1,
|
206
192
|
} from './decorators/publicL1.js'
|
207
|
-
|
208
193
|
export {
|
209
|
-
publicActionsL2,
|
210
194
|
type PublicActionsL2,
|
195
|
+
publicActionsL2,
|
211
196
|
} from './decorators/publicL2.js'
|
212
|
-
|
213
197
|
export {
|
214
|
-
walletActionsL1,
|
215
198
|
type WalletActionsL1,
|
199
|
+
walletActionsL1,
|
216
200
|
} from './decorators/walletL1.js'
|
217
|
-
|
218
201
|
export {
|
219
|
-
walletActionsL2,
|
220
202
|
type WalletActionsL2,
|
203
|
+
walletActionsL2,
|
221
204
|
} from './decorators/walletL2.js'
|
222
|
-
|
223
205
|
export { serializeTransaction } from './serializers.js'
|
224
|
-
|
225
206
|
export type { ZksyncSmartAccount } from './types/account.js'
|
226
207
|
export type {
|
208
|
+
ZksyncBatchDetails,
|
227
209
|
/** @deprecated Use `ZksyncBlock` instead */
|
228
210
|
ZksyncBlock as ZkSyncBlock,
|
229
211
|
ZksyncBlock,
|
212
|
+
ZksyncBlockDetails,
|
213
|
+
ZksyncNumberParameter,
|
230
214
|
/** @deprecated Use `ZksyncRpcBlock` instead */
|
231
215
|
ZksyncRpcBlock as ZkSyncRpcBlock,
|
232
216
|
ZksyncRpcBlock,
|
233
|
-
ZksyncBatchDetails,
|
234
|
-
ZksyncBlockDetails,
|
235
|
-
ZksyncNumberParameter,
|
236
217
|
} from './types/block.js'
|
237
218
|
export type { ChainEIP712 } from './types/chain.js'
|
238
219
|
export type {
|
@@ -244,10 +225,10 @@ export type {
|
|
244
225
|
} from './types/eip712.js'
|
245
226
|
export type {
|
246
227
|
CommonDataRawBlockTransaction,
|
247
|
-
RawBlockTransactions,
|
248
228
|
PublicZksyncRpcSchema,
|
249
229
|
/** @deprecated Use `PublicZksyncRpcSchema` instead */
|
250
230
|
PublicZksyncRpcSchema as PublicZkSyncRpcSchema,
|
231
|
+
RawBlockTransactions,
|
251
232
|
} from './types/eip1193.js'
|
252
233
|
export type {
|
253
234
|
/** @deprecated Use `ZksyncFeeValues` instead */
|
@@ -268,15 +249,17 @@ export type {
|
|
268
249
|
ZksyncRpcLog as ZkSyncRpcLog,
|
269
250
|
ZksyncRpcLog,
|
270
251
|
} from './types/log.js'
|
271
|
-
|
272
252
|
export type {
|
273
|
-
TransactionRequestEIP712,
|
274
253
|
/** @deprecated Use `ZksyncTransactionRequest_internal` instead */
|
275
254
|
TransactionRequest as ZkSyncTransactionRequest_internal,
|
276
255
|
TransactionRequest as ZksyncTransactionRequest_internal,
|
256
|
+
TransactionRequestEIP712,
|
277
257
|
/** @deprecated Use `ZksyncEIP712TransactionSignable` instead */
|
278
258
|
ZksyncEIP712TransactionSignable as ZkSyncEIP712TransactionSignable,
|
279
259
|
ZksyncEIP712TransactionSignable,
|
260
|
+
/** @deprecated Use `ZksyncRawBlockTransactions` instead */
|
261
|
+
ZksyncRawBlockTransactions as ZkSyncRawBlockTransactions,
|
262
|
+
ZksyncRawBlockTransactions,
|
280
263
|
/** @deprecated Use `ZksyncRpcTransaction` instead */
|
281
264
|
ZksyncRpcTransaction as ZkSyncRpcTransaction,
|
282
265
|
ZksyncRpcTransaction,
|
@@ -286,6 +269,9 @@ export type {
|
|
286
269
|
/** @deprecated Use `ZksyncRpcTransactionPriority` instead */
|
287
270
|
ZksyncRpcTransactionPriority as ZkSyncRpcTransactionPriority,
|
288
271
|
ZksyncRpcTransactionPriority,
|
272
|
+
/** @deprecated Use `ZksyncRpcTransactionReceipt` instead */
|
273
|
+
ZksyncRpcTransactionReceipt as ZkSyncRpcTransactionReceipt,
|
274
|
+
ZksyncRpcTransactionReceipt,
|
289
275
|
/** @deprecated Use `ZksyncRpcTransactionReceiptOverrides` instead */
|
290
276
|
ZksyncRpcTransactionReceiptOverrides as ZkSyncRpcTransactionReceiptOverrides,
|
291
277
|
ZksyncRpcTransactionReceiptOverrides,
|
@@ -298,6 +284,9 @@ export type {
|
|
298
284
|
/** @deprecated Use `ZksyncTransaction` instead */
|
299
285
|
ZksyncTransaction as ZkSyncTransaction,
|
300
286
|
ZksyncTransaction,
|
287
|
+
/** @deprecated Use `ZksyncTransactionDetails` instead */
|
288
|
+
ZksyncTransactionDetails as ZkSyncTransactionDetails,
|
289
|
+
ZksyncTransactionDetails,
|
301
290
|
/** @deprecated Use `ZksyncTransactionEIP712` instead */
|
302
291
|
ZksyncTransactionEIP712 as ZkSyncTransactionEIP712,
|
303
292
|
ZksyncTransactionEIP712,
|
@@ -328,22 +317,22 @@ export type {
|
|
328
317
|
/** @deprecated Use `ZksyncTransactionType` instead */
|
329
318
|
ZksyncTransactionType as ZkSyncTransactionType,
|
330
319
|
ZksyncTransactionType,
|
331
|
-
/** @deprecated Use `ZksyncRawBlockTransactions` instead */
|
332
|
-
ZksyncRawBlockTransactions as ZkSyncRawBlockTransactions,
|
333
|
-
ZksyncRawBlockTransactions,
|
334
|
-
/** @deprecated Use `ZksyncRpcTransactionReceipt` instead */
|
335
|
-
ZksyncRpcTransactionReceipt as ZkSyncRpcTransactionReceipt,
|
336
|
-
ZksyncRpcTransactionReceipt,
|
337
|
-
/** @deprecated Use `ZksyncTransactionDetails` instead */
|
338
|
-
ZksyncTransactionDetails as ZkSyncTransactionDetails,
|
339
|
-
ZksyncTransactionDetails,
|
340
320
|
} from './types/transaction.js'
|
341
|
-
|
321
|
+
export {
|
322
|
+
type EncodeDeployDataErrorType,
|
323
|
+
type EncodeDeployDataParameters,
|
324
|
+
encodeDeployData,
|
325
|
+
} from './utils/abi/encodeDeployData.js'
|
342
326
|
export {
|
343
327
|
type GetL2HashFromPriorityOpErrorType,
|
344
328
|
getL2HashFromPriorityOp,
|
345
329
|
} from './utils/bridge/getL2HashFromPriorityOp.js'
|
346
330
|
export { undoL1ToL2Alias } from './utils/bridge/undoL1ToL2Alias.js'
|
331
|
+
export {
|
332
|
+
type HashBytecodeErrorType,
|
333
|
+
hashBytecode,
|
334
|
+
} from './utils/hashBytecode.js'
|
335
|
+
export { parseEip712Transaction } from './utils/parseEip712Transaction.js'
|
347
336
|
export {
|
348
337
|
type GetApprovalBasedPaymasterInputParameters,
|
349
338
|
type GetApprovalBasedPaymasterInputReturnType,
|
@@ -354,4 +343,3 @@ export {
|
|
354
343
|
type GetGeneralPaymasterInputReturnType,
|
355
344
|
getGeneralPaymasterInput,
|
356
345
|
} from './utils/paymaster/getGeneralPaymasterInput.js'
|
357
|
-
export { parseEip712Transaction } from './utils/parseEip712Transaction.js'
|
package/zksync/types/chain.ts
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
import type {
|
2
|
-
|
1
|
+
import type {
|
2
|
+
Chain,
|
3
|
+
ChainFormatter,
|
4
|
+
ChainFormatters,
|
5
|
+
} from '../../types/chain.js'
|
3
6
|
import type { EIP712DomainFn } from './eip712.js'
|
4
7
|
import type { ZksyncTransactionSerializable } from './transaction.js'
|
5
8
|
|