@wagmi/core 2.10.4 → 2.10.5
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/dist/esm/actions/call.js +0 -2
- package/dist/esm/actions/call.js.map +1 -1
- package/dist/esm/actions/codegen/createReadContract.js +0 -3
- package/dist/esm/actions/codegen/createReadContract.js.map +1 -1
- package/dist/esm/actions/codegen/createSimulateContract.js +0 -5
- package/dist/esm/actions/codegen/createSimulateContract.js.map +1 -1
- package/dist/esm/actions/codegen/createWatchContractEvent.js +0 -3
- package/dist/esm/actions/codegen/createWatchContractEvent.js.map +1 -1
- package/dist/esm/actions/codegen/createWriteContract.js +0 -5
- package/dist/esm/actions/codegen/createWriteContract.js.map +1 -1
- package/dist/esm/actions/connect.js +0 -5
- package/dist/esm/actions/connect.js.map +1 -1
- package/dist/esm/actions/estimateFeesPerGas.js +0 -4
- package/dist/esm/actions/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/actions/estimateGas.js +0 -2
- package/dist/esm/actions/estimateGas.js.map +1 -1
- package/dist/esm/actions/estimateMaxPriorityFeePerGas.js +0 -4
- package/dist/esm/actions/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/dist/esm/actions/getAccount.js +0 -2
- package/dist/esm/actions/getAccount.js.map +1 -1
- package/dist/esm/actions/getBalance.js +0 -4
- package/dist/esm/actions/getBalance.js.map +1 -1
- package/dist/esm/actions/getBlock.js +0 -3
- package/dist/esm/actions/getBlock.js.map +1 -1
- package/dist/esm/actions/getBlockNumber.js +0 -3
- package/dist/esm/actions/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/getBlockTransactionCount.js +0 -3
- package/dist/esm/actions/getBlockTransactionCount.js.map +1 -1
- package/dist/esm/actions/getBytecode.js +0 -3
- package/dist/esm/actions/getBytecode.js.map +1 -1
- package/dist/esm/actions/getChainId.js +0 -1
- package/dist/esm/actions/getChainId.js.map +1 -1
- package/dist/esm/actions/getChains.js +0 -2
- package/dist/esm/actions/getChains.js.map +1 -1
- package/dist/esm/actions/getClient.js +0 -4
- package/dist/esm/actions/getClient.js.map +1 -1
- package/dist/esm/actions/getConnections.js +0 -1
- package/dist/esm/actions/getConnections.js.map +1 -1
- package/dist/esm/actions/getConnectorClient.js +0 -1
- package/dist/esm/actions/getConnectorClient.js.map +1 -1
- package/dist/esm/actions/getEnsAddress.js +0 -3
- package/dist/esm/actions/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/getEnsAvatar.js +0 -3
- package/dist/esm/actions/getEnsAvatar.js.map +1 -1
- package/dist/esm/actions/getEnsName.js +0 -3
- package/dist/esm/actions/getEnsName.js.map +1 -1
- package/dist/esm/actions/getEnsResolver.js +0 -3
- package/dist/esm/actions/getEnsResolver.js.map +1 -1
- package/dist/esm/actions/getEnsText.js +0 -3
- package/dist/esm/actions/getEnsText.js.map +1 -1
- package/dist/esm/actions/getFeeHistory.js +0 -3
- package/dist/esm/actions/getFeeHistory.js.map +1 -1
- package/dist/esm/actions/getGasPrice.js +0 -3
- package/dist/esm/actions/getGasPrice.js.map +1 -1
- package/dist/esm/actions/getProof.js +0 -3
- package/dist/esm/actions/getProof.js.map +1 -1
- package/dist/esm/actions/getPublicClient.js +0 -3
- package/dist/esm/actions/getPublicClient.js.map +1 -1
- package/dist/esm/actions/getStorageAt.js +0 -3
- package/dist/esm/actions/getStorageAt.js.map +1 -1
- package/dist/esm/actions/getToken.js +0 -4
- package/dist/esm/actions/getToken.js.map +1 -1
- package/dist/esm/actions/getTransaction.js +0 -3
- package/dist/esm/actions/getTransaction.js.map +1 -1
- package/dist/esm/actions/getTransactionConfirmations.js +0 -4
- package/dist/esm/actions/getTransactionConfirmations.js.map +1 -1
- package/dist/esm/actions/getTransactionCount.js +0 -3
- package/dist/esm/actions/getTransactionCount.js.map +1 -1
- package/dist/esm/actions/getTransactionReceipt.js +0 -4
- package/dist/esm/actions/getTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/getWalletClient.js +0 -2
- package/dist/esm/actions/getWalletClient.js.map +1 -1
- package/dist/esm/actions/multicall.js +0 -2
- package/dist/esm/actions/multicall.js.map +1 -1
- package/dist/esm/actions/prepareTransactionRequest.js +0 -5
- package/dist/esm/actions/prepareTransactionRequest.js.map +1 -1
- package/dist/esm/actions/readContract.js +0 -3
- package/dist/esm/actions/readContract.js.map +1 -1
- package/dist/esm/actions/readContracts.js +7 -9
- package/dist/esm/actions/readContracts.js.map +1 -1
- package/dist/esm/actions/reconnect.js +0 -3
- package/dist/esm/actions/reconnect.js.map +1 -1
- package/dist/esm/actions/sendTransaction.js +0 -2
- package/dist/esm/actions/sendTransaction.js.map +1 -1
- package/dist/esm/actions/signMessage.js +0 -5
- package/dist/esm/actions/signMessage.js.map +1 -1
- package/dist/esm/actions/signTypedData.js +0 -1
- package/dist/esm/actions/signTypedData.js.map +1 -1
- package/dist/esm/actions/simulateContract.js +0 -4
- package/dist/esm/actions/simulateContract.js.map +1 -1
- package/dist/esm/actions/switchAccount.js +0 -2
- package/dist/esm/actions/switchAccount.js.map +1 -1
- package/dist/esm/actions/switchChain.js +0 -3
- package/dist/esm/actions/switchChain.js.map +1 -1
- package/dist/esm/actions/verifyMessage.js +0 -3
- package/dist/esm/actions/verifyMessage.js.map +1 -1
- package/dist/esm/actions/verifyTypedData.js +0 -4
- package/dist/esm/actions/verifyTypedData.js.map +1 -1
- package/dist/esm/actions/waitForTransactionReceipt.js +0 -5
- package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/watchAccount.js +0 -1
- package/dist/esm/actions/watchAccount.js.map +1 -1
- package/dist/esm/actions/watchBlockNumber.js +0 -1
- package/dist/esm/actions/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/watchBlocks.js +0 -1
- package/dist/esm/actions/watchBlocks.js.map +1 -1
- package/dist/esm/actions/watchChainId.js +0 -1
- package/dist/esm/actions/watchChainId.js.map +1 -1
- package/dist/esm/actions/watchChains.js +0 -2
- package/dist/esm/actions/watchChains.js.map +1 -1
- package/dist/esm/actions/watchClient.js +0 -1
- package/dist/esm/actions/watchClient.js.map +1 -1
- package/dist/esm/actions/watchConnections.js +0 -1
- package/dist/esm/actions/watchConnections.js.map +1 -1
- package/dist/esm/actions/watchConnectors.js +0 -2
- package/dist/esm/actions/watchConnectors.js.map +1 -1
- package/dist/esm/actions/watchContractEvent.js +0 -4
- package/dist/esm/actions/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/watchPendingTransactions.js +0 -1
- package/dist/esm/actions/watchPendingTransactions.js.map +1 -1
- package/dist/esm/actions/watchPublicClient.js +0 -1
- package/dist/esm/actions/watchPublicClient.js.map +1 -1
- package/dist/esm/actions/writeContract.js +0 -4
- package/dist/esm/actions/writeContract.js.map +1 -1
- package/dist/esm/connectors/createConnector.js +0 -4
- package/dist/esm/connectors/createConnector.js.map +1 -1
- package/dist/esm/connectors/injected.js +1 -2
- package/dist/esm/connectors/injected.js.map +1 -1
- package/dist/esm/createConfig.js +17 -20
- package/dist/esm/createConfig.js.map +1 -1
- package/dist/esm/createStorage.js +0 -2
- package/dist/esm/createStorage.js.map +1 -1
- package/dist/esm/errors/base.js.map +1 -1
- package/dist/esm/errors/config.js +0 -1
- package/dist/esm/errors/config.js.map +1 -1
- package/dist/esm/experimental/actions/getCallsStatus.js +0 -1
- package/dist/esm/experimental/actions/getCallsStatus.js.map +1 -1
- package/dist/esm/experimental/actions/getCapabilities.js +0 -1
- package/dist/esm/experimental/actions/getCapabilities.js.map +1 -1
- package/dist/esm/experimental/actions/sendCalls.js +0 -3
- package/dist/esm/experimental/actions/sendCalls.js.map +1 -1
- package/dist/esm/experimental/actions/showCallsStatus.js +0 -1
- package/dist/esm/experimental/actions/showCallsStatus.js.map +1 -1
- package/dist/esm/experimental/actions/writeContracts.js +0 -3
- package/dist/esm/experimental/actions/writeContracts.js.map +1 -1
- package/dist/esm/experimental/query/getCallsStatus.js +0 -2
- package/dist/esm/experimental/query/getCallsStatus.js.map +1 -1
- package/dist/esm/experimental/query/getCapabilities.js +0 -2
- package/dist/esm/experimental/query/getCapabilities.js.map +1 -1
- package/dist/esm/experimental/query/sendCalls.js +0 -2
- package/dist/esm/experimental/query/sendCalls.js.map +1 -1
- package/dist/esm/experimental/query/showCallsStatus.js +0 -2
- package/dist/esm/experimental/query/showCallsStatus.js.map +1 -1
- package/dist/esm/experimental/query/writeContracts.js +0 -2
- package/dist/esm/experimental/query/writeContracts.js.map +1 -1
- package/dist/esm/exports/actions.js +1 -0
- package/dist/esm/exports/actions.js.map +1 -1
- package/dist/esm/exports/chains.js +2 -0
- package/dist/esm/exports/chains.js.map +1 -1
- package/dist/esm/exports/codegen.js +1 -0
- package/dist/esm/exports/codegen.js.map +1 -1
- package/dist/esm/exports/experimental.js +1 -0
- package/dist/esm/exports/experimental.js.map +1 -1
- package/dist/esm/exports/index.js +1 -0
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/internal.js +1 -0
- package/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/exports/query.js +1 -0
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/query/call.js +0 -2
- package/dist/esm/query/call.js.map +1 -1
- package/dist/esm/query/connect.js +0 -1
- package/dist/esm/query/connect.js.map +1 -1
- package/dist/esm/query/disconnect.js +0 -1
- package/dist/esm/query/disconnect.js.map +1 -1
- package/dist/esm/query/estimateFeesPerGas.js +0 -2
- package/dist/esm/query/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/query/estimateGas.js +0 -2
- package/dist/esm/query/estimateGas.js.map +1 -1
- package/dist/esm/query/estimateMaxPriorityFeePerGas.js +0 -4
- package/dist/esm/query/estimateMaxPriorityFeePerGas.js.map +1 -1
- package/dist/esm/query/getBalance.js +0 -2
- package/dist/esm/query/getBalance.js.map +1 -1
- package/dist/esm/query/getBlock.js +0 -2
- package/dist/esm/query/getBlock.js.map +1 -1
- package/dist/esm/query/getBlockNumber.js +0 -2
- package/dist/esm/query/getBlockNumber.js.map +1 -1
- package/dist/esm/query/getBlockTransactionCount.js +0 -4
- package/dist/esm/query/getBlockTransactionCount.js.map +1 -1
- package/dist/esm/query/getBytecode.js +0 -4
- package/dist/esm/query/getBytecode.js.map +1 -1
- package/dist/esm/query/getConnectorClient.js +0 -2
- package/dist/esm/query/getConnectorClient.js.map +1 -1
- package/dist/esm/query/getEnsAddress.js +0 -2
- package/dist/esm/query/getEnsAddress.js.map +1 -1
- package/dist/esm/query/getEnsAvatar.js +0 -2
- package/dist/esm/query/getEnsAvatar.js.map +1 -1
- package/dist/esm/query/getEnsName.js +0 -2
- package/dist/esm/query/getEnsName.js.map +1 -1
- package/dist/esm/query/getEnsResolver.js +0 -2
- package/dist/esm/query/getEnsResolver.js.map +1 -1
- package/dist/esm/query/getEnsText.js +0 -2
- package/dist/esm/query/getEnsText.js.map +1 -1
- package/dist/esm/query/getFeeHistory.js +0 -3
- package/dist/esm/query/getFeeHistory.js.map +1 -1
- package/dist/esm/query/getGasPrice.js +0 -4
- package/dist/esm/query/getGasPrice.js.map +1 -1
- package/dist/esm/query/getProof.js +0 -4
- package/dist/esm/query/getProof.js.map +1 -1
- package/dist/esm/query/getStorageAt.js +0 -2
- package/dist/esm/query/getStorageAt.js.map +1 -1
- package/dist/esm/query/getToken.js +0 -2
- package/dist/esm/query/getToken.js.map +1 -1
- package/dist/esm/query/getTransaction.js +0 -2
- package/dist/esm/query/getTransaction.js.map +1 -1
- package/dist/esm/query/getTransactionConfirmations.js +0 -4
- package/dist/esm/query/getTransactionConfirmations.js.map +1 -1
- package/dist/esm/query/getTransactionCount.js +0 -2
- package/dist/esm/query/getTransactionCount.js.map +1 -1
- package/dist/esm/query/getTransactionReceipt.js +0 -5
- package/dist/esm/query/getTransactionReceipt.js.map +1 -1
- package/dist/esm/query/getWalletClient.js +0 -2
- package/dist/esm/query/getWalletClient.js.map +1 -1
- package/dist/esm/query/infiniteReadContracts.js +0 -4
- package/dist/esm/query/infiniteReadContracts.js.map +1 -1
- package/dist/esm/query/prepareTransactionRequest.js +0 -5
- package/dist/esm/query/prepareTransactionRequest.js.map +1 -1
- package/dist/esm/query/readContract.js +0 -5
- package/dist/esm/query/readContract.js.map +1 -1
- package/dist/esm/query/readContracts.js +0 -4
- package/dist/esm/query/readContracts.js.map +1 -1
- package/dist/esm/query/reconnect.js +0 -2
- package/dist/esm/query/reconnect.js.map +1 -1
- package/dist/esm/query/sendTransaction.js +0 -2
- package/dist/esm/query/sendTransaction.js.map +1 -1
- package/dist/esm/query/signMessage.js +0 -3
- package/dist/esm/query/signMessage.js.map +1 -1
- package/dist/esm/query/signTypedData.js +0 -2
- package/dist/esm/query/signTypedData.js.map +1 -1
- package/dist/esm/query/simulateContract.js +0 -3
- package/dist/esm/query/simulateContract.js.map +1 -1
- package/dist/esm/query/switchAccount.js +0 -4
- package/dist/esm/query/switchAccount.js.map +1 -1
- package/dist/esm/query/switchChain.js +0 -3
- package/dist/esm/query/switchChain.js.map +1 -1
- package/dist/esm/query/types.js +1 -2
- package/dist/esm/query/types.js.map +1 -1
- package/dist/esm/query/utils.js +4 -7
- package/dist/esm/query/utils.js.map +1 -1
- package/dist/esm/query/verifyMessage.js +0 -2
- package/dist/esm/query/verifyMessage.js.map +1 -1
- package/dist/esm/query/verifyTypedData.js +0 -5
- package/dist/esm/query/verifyTypedData.js.map +1 -1
- package/dist/esm/query/waitForTransactionReceipt.js +0 -4
- package/dist/esm/query/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/query/writeContract.js +0 -4
- package/dist/esm/query/writeContract.js.map +1 -1
- package/dist/esm/transports/fallback.js +0 -1
- package/dist/esm/transports/fallback.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/chain.js +1 -3
- package/dist/esm/types/chain.js.map +1 -1
- package/dist/esm/types/properties.js +1 -1
- package/dist/esm/types/properties.js.map +1 -1
- package/dist/esm/types/register.js +1 -1
- package/dist/esm/types/register.js.map +1 -1
- package/dist/esm/utils/cookie.js +1 -3
- package/dist/esm/utils/cookie.js.map +1 -1
- package/dist/esm/utils/getAction.js +0 -1
- package/dist/esm/utils/getAction.js.map +1 -1
- package/dist/esm/utils/getUnit.js +0 -1
- package/dist/esm/utils/getUnit.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/call.d.ts +2 -2
- package/dist/types/actions/call.d.ts.map +1 -1
- package/dist/types/actions/codegen/createReadContract.d.ts +3 -3
- package/dist/types/actions/codegen/createReadContract.d.ts.map +1 -1
- package/dist/types/actions/codegen/createSimulateContract.d.ts +5 -5
- package/dist/types/actions/codegen/createSimulateContract.d.ts.map +1 -1
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts +3 -3
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/codegen/createWriteContract.d.ts +5 -5
- package/dist/types/actions/codegen/createWriteContract.d.ts.map +1 -1
- package/dist/types/actions/connect.d.ts +5 -5
- package/dist/types/actions/connect.d.ts.map +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +4 -4
- package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/actions/estimateGas.d.ts +2 -2
- package/dist/types/actions/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts +4 -4
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/actions/getAccount.d.ts +2 -2
- package/dist/types/actions/getAccount.d.ts.map +1 -1
- package/dist/types/actions/getBalance.d.ts +4 -4
- package/dist/types/actions/getBalance.d.ts.map +1 -1
- package/dist/types/actions/getBlock.d.ts +3 -3
- package/dist/types/actions/getBlock.d.ts.map +1 -1
- package/dist/types/actions/getBlockNumber.d.ts +3 -3
- package/dist/types/actions/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/getBlockTransactionCount.d.ts +3 -3
- package/dist/types/actions/getBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/actions/getBytecode.d.ts +3 -3
- package/dist/types/actions/getBytecode.d.ts.map +1 -1
- package/dist/types/actions/getChainId.d.ts +1 -1
- package/dist/types/actions/getChainId.d.ts.map +1 -1
- package/dist/types/actions/getChains.d.ts +2 -2
- package/dist/types/actions/getChains.d.ts.map +1 -1
- package/dist/types/actions/getClient.d.ts +4 -4
- package/dist/types/actions/getClient.d.ts.map +1 -1
- package/dist/types/actions/getConnections.d.ts +1 -1
- package/dist/types/actions/getConnections.d.ts.map +1 -1
- package/dist/types/actions/getConnectorClient.d.ts +1 -1
- package/dist/types/actions/getConnectorClient.d.ts.map +1 -1
- package/dist/types/actions/getEnsAddress.d.ts +3 -3
- package/dist/types/actions/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/getEnsAvatar.d.ts +3 -3
- package/dist/types/actions/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/actions/getEnsName.d.ts +3 -3
- package/dist/types/actions/getEnsName.d.ts.map +1 -1
- package/dist/types/actions/getEnsResolver.d.ts +3 -3
- package/dist/types/actions/getEnsResolver.d.ts.map +1 -1
- package/dist/types/actions/getEnsText.d.ts +3 -3
- package/dist/types/actions/getEnsText.d.ts.map +1 -1
- package/dist/types/actions/getFeeHistory.d.ts +3 -3
- package/dist/types/actions/getFeeHistory.d.ts.map +1 -1
- package/dist/types/actions/getGasPrice.d.ts +3 -3
- package/dist/types/actions/getGasPrice.d.ts.map +1 -1
- package/dist/types/actions/getProof.d.ts +3 -3
- package/dist/types/actions/getProof.d.ts.map +1 -1
- package/dist/types/actions/getPublicClient.d.ts +3 -3
- package/dist/types/actions/getPublicClient.d.ts.map +1 -1
- package/dist/types/actions/getStorageAt.d.ts +3 -3
- package/dist/types/actions/getStorageAt.d.ts.map +1 -1
- package/dist/types/actions/getToken.d.ts +4 -4
- package/dist/types/actions/getToken.d.ts.map +1 -1
- package/dist/types/actions/getTransaction.d.ts +3 -3
- package/dist/types/actions/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/getTransactionConfirmations.d.ts +4 -4
- package/dist/types/actions/getTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/actions/getTransactionCount.d.ts +3 -3
- package/dist/types/actions/getTransactionCount.d.ts.map +1 -1
- package/dist/types/actions/getTransactionReceipt.d.ts +4 -4
- package/dist/types/actions/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/getWalletClient.d.ts +2 -2
- package/dist/types/actions/getWalletClient.d.ts.map +1 -1
- package/dist/types/actions/multicall.d.ts +2 -2
- package/dist/types/actions/multicall.d.ts.map +1 -1
- package/dist/types/actions/prepareTransactionRequest.d.ts +5 -5
- package/dist/types/actions/prepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/actions/readContract.d.ts +3 -3
- package/dist/types/actions/readContract.d.ts.map +1 -1
- package/dist/types/actions/readContracts.d.ts +2 -2
- package/dist/types/actions/readContracts.d.ts.map +1 -1
- package/dist/types/actions/reconnect.d.ts +2 -2
- package/dist/types/actions/reconnect.d.ts.map +1 -1
- package/dist/types/actions/sendTransaction.d.ts +3 -3
- package/dist/types/actions/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/signMessage.d.ts +5 -5
- package/dist/types/actions/signMessage.d.ts.map +1 -1
- package/dist/types/actions/signTypedData.d.ts +1 -1
- package/dist/types/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/actions/simulateContract.d.ts +4 -4
- package/dist/types/actions/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/switchAccount.d.ts +2 -2
- package/dist/types/actions/switchAccount.d.ts.map +1 -1
- package/dist/types/actions/switchChain.d.ts +3 -3
- package/dist/types/actions/switchChain.d.ts.map +1 -1
- package/dist/types/actions/verifyMessage.d.ts +3 -3
- package/dist/types/actions/verifyMessage.d.ts.map +1 -1
- package/dist/types/actions/verifyTypedData.d.ts +4 -4
- package/dist/types/actions/verifyTypedData.d.ts.map +1 -1
- package/dist/types/actions/waitForTransactionReceipt.d.ts +5 -5
- package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/watchAccount.d.ts +4 -4
- package/dist/types/actions/watchAccount.d.ts.map +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts +1 -1
- package/dist/types/actions/watchBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/watchBlocks.d.ts +1 -1
- package/dist/types/actions/watchBlocks.d.ts.map +1 -1
- package/dist/types/actions/watchChainId.d.ts +1 -1
- package/dist/types/actions/watchChainId.d.ts.map +1 -1
- package/dist/types/actions/watchChains.d.ts +2 -2
- package/dist/types/actions/watchChains.d.ts.map +1 -1
- package/dist/types/actions/watchClient.d.ts +1 -1
- package/dist/types/actions/watchClient.d.ts.map +1 -1
- package/dist/types/actions/watchConnections.d.ts +1 -1
- package/dist/types/actions/watchConnections.d.ts.map +1 -1
- package/dist/types/actions/watchConnectors.d.ts +2 -2
- package/dist/types/actions/watchConnectors.d.ts.map +1 -1
- package/dist/types/actions/watchContractEvent.d.ts +4 -4
- package/dist/types/actions/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/watchPendingTransactions.d.ts +1 -1
- package/dist/types/actions/watchPendingTransactions.d.ts.map +1 -1
- package/dist/types/actions/watchPublicClient.d.ts +1 -1
- package/dist/types/actions/watchPublicClient.d.ts.map +1 -1
- package/dist/types/actions/writeContract.d.ts +4 -4
- package/dist/types/actions/writeContract.d.ts.map +1 -1
- package/dist/types/connectors/createConnector.d.ts +6 -6
- package/dist/types/connectors/createConnector.d.ts.map +1 -1
- package/dist/types/connectors/injected.d.ts +1 -1
- package/dist/types/connectors/injected.d.ts.map +1 -1
- package/dist/types/connectors/mock.d.ts +2 -2
- package/dist/types/connectors/mock.d.ts.map +1 -1
- package/dist/types/createConfig.d.ts +2 -2
- package/dist/types/createConfig.d.ts.map +1 -1
- package/dist/types/createStorage.d.ts +4 -4
- package/dist/types/createStorage.d.ts.map +1 -1
- package/dist/types/errors/config.d.ts +1 -1
- package/dist/types/errors/config.d.ts.map +1 -1
- package/dist/types/experimental/actions/getCallsStatus.d.ts +1 -1
- package/dist/types/experimental/actions/getCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/actions/getCapabilities.d.ts +1 -1
- package/dist/types/experimental/actions/getCapabilities.d.ts.map +1 -1
- package/dist/types/experimental/actions/sendCalls.d.ts +3 -3
- package/dist/types/experimental/actions/sendCalls.d.ts.map +1 -1
- package/dist/types/experimental/actions/showCallsStatus.d.ts +1 -1
- package/dist/types/experimental/actions/showCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/actions/writeContracts.d.ts +3 -3
- package/dist/types/experimental/actions/writeContracts.d.ts.map +1 -1
- package/dist/types/experimental/query/getCallsStatus.d.ts +1 -1
- package/dist/types/experimental/query/getCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/query/getCapabilities.d.ts +1 -1
- package/dist/types/experimental/query/getCapabilities.d.ts.map +1 -1
- package/dist/types/experimental/query/sendCalls.d.ts +2 -2
- package/dist/types/experimental/query/sendCalls.d.ts.map +1 -1
- package/dist/types/experimental/query/showCallsStatus.d.ts +2 -2
- package/dist/types/experimental/query/showCallsStatus.d.ts.map +1 -1
- package/dist/types/experimental/query/writeContracts.d.ts +2 -2
- package/dist/types/experimental/query/writeContracts.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts.map +1 -1
- package/dist/types/exports/chains.d.ts.map +1 -1
- package/dist/types/exports/codegen.d.ts.map +1 -1
- package/dist/types/exports/experimental.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/query/call.d.ts +1 -1
- package/dist/types/query/call.d.ts.map +1 -1
- package/dist/types/query/connect.d.ts +1 -1
- package/dist/types/query/connect.d.ts.map +1 -1
- package/dist/types/query/disconnect.d.ts +1 -1
- package/dist/types/query/disconnect.d.ts.map +1 -1
- package/dist/types/query/estimateFeesPerGas.d.ts +1 -1
- package/dist/types/query/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/query/estimateGas.d.ts +1 -1
- package/dist/types/query/estimateGas.d.ts.map +1 -1
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts +3 -3
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/query/getBalance.d.ts +1 -1
- package/dist/types/query/getBalance.d.ts.map +1 -1
- package/dist/types/query/getBlock.d.ts +1 -1
- package/dist/types/query/getBlock.d.ts.map +1 -1
- package/dist/types/query/getBlockNumber.d.ts +1 -1
- package/dist/types/query/getBlockNumber.d.ts.map +1 -1
- package/dist/types/query/getBlockTransactionCount.d.ts +3 -3
- package/dist/types/query/getBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/query/getBytecode.d.ts +3 -3
- package/dist/types/query/getBytecode.d.ts.map +1 -1
- package/dist/types/query/getConnectorClient.d.ts +1 -1
- package/dist/types/query/getConnectorClient.d.ts.map +1 -1
- package/dist/types/query/getEnsAddress.d.ts +1 -1
- package/dist/types/query/getEnsAddress.d.ts.map +1 -1
- package/dist/types/query/getEnsAvatar.d.ts +1 -1
- package/dist/types/query/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/query/getEnsName.d.ts +1 -1
- package/dist/types/query/getEnsName.d.ts.map +1 -1
- package/dist/types/query/getEnsResolver.d.ts +1 -1
- package/dist/types/query/getEnsResolver.d.ts.map +1 -1
- package/dist/types/query/getEnsText.d.ts +1 -1
- package/dist/types/query/getEnsText.d.ts.map +1 -1
- package/dist/types/query/getFeeHistory.d.ts +2 -2
- package/dist/types/query/getFeeHistory.d.ts.map +1 -1
- package/dist/types/query/getGasPrice.d.ts +3 -3
- package/dist/types/query/getGasPrice.d.ts.map +1 -1
- package/dist/types/query/getProof.d.ts +3 -3
- package/dist/types/query/getProof.d.ts.map +1 -1
- package/dist/types/query/getStorageAt.d.ts +1 -1
- package/dist/types/query/getStorageAt.d.ts.map +1 -1
- package/dist/types/query/getToken.d.ts +1 -1
- package/dist/types/query/getToken.d.ts.map +1 -1
- package/dist/types/query/getTransaction.d.ts +1 -1
- package/dist/types/query/getTransaction.d.ts.map +1 -1
- package/dist/types/query/getTransactionConfirmations.d.ts +3 -3
- package/dist/types/query/getTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/query/getTransactionCount.d.ts +1 -1
- package/dist/types/query/getTransactionCount.d.ts.map +1 -1
- package/dist/types/query/getTransactionReceipt.d.ts +4 -4
- package/dist/types/query/getTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/getWalletClient.d.ts +1 -1
- package/dist/types/query/getWalletClient.d.ts.map +1 -1
- package/dist/types/query/infiniteReadContracts.d.ts +3 -3
- package/dist/types/query/infiniteReadContracts.d.ts.map +1 -1
- package/dist/types/query/prepareTransactionRequest.d.ts +4 -4
- package/dist/types/query/prepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/query/readContract.d.ts +4 -4
- package/dist/types/query/readContract.d.ts.map +1 -1
- package/dist/types/query/readContracts.d.ts +3 -3
- package/dist/types/query/readContracts.d.ts.map +1 -1
- package/dist/types/query/reconnect.d.ts +2 -2
- package/dist/types/query/reconnect.d.ts.map +1 -1
- package/dist/types/query/sendTransaction.d.ts +2 -2
- package/dist/types/query/sendTransaction.d.ts.map +1 -1
- package/dist/types/query/signMessage.d.ts +3 -3
- package/dist/types/query/signMessage.d.ts.map +1 -1
- package/dist/types/query/signTypedData.d.ts +2 -2
- package/dist/types/query/signTypedData.d.ts.map +1 -1
- package/dist/types/query/simulateContract.d.ts +2 -2
- package/dist/types/query/simulateContract.d.ts.map +1 -1
- package/dist/types/query/switchAccount.d.ts +3 -3
- package/dist/types/query/switchAccount.d.ts.map +1 -1
- package/dist/types/query/switchChain.d.ts +3 -3
- package/dist/types/query/switchChain.d.ts.map +1 -1
- package/dist/types/query/types.d.ts +3 -2
- package/dist/types/query/types.d.ts.map +1 -1
- package/dist/types/query/utils.d.ts.map +1 -1
- package/dist/types/query/verifyMessage.d.ts +1 -1
- package/dist/types/query/verifyMessage.d.ts.map +1 -1
- package/dist/types/query/verifyTypedData.d.ts +4 -4
- package/dist/types/query/verifyTypedData.d.ts.map +1 -1
- package/dist/types/query/waitForTransactionReceipt.d.ts +3 -3
- package/dist/types/query/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/writeContract.d.ts +4 -4
- package/dist/types/query/writeContract.d.ts.map +1 -1
- package/dist/types/transports/fallback.d.ts +1 -1
- package/dist/types/transports/fallback.d.ts.map +1 -1
- package/dist/types/types/chain.d.ts +3 -3
- package/dist/types/types/chain.d.ts.map +1 -1
- package/dist/types/types/properties.d.ts +1 -1
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/types/register.d.ts +1 -1
- package/dist/types/types/register.d.ts.map +1 -1
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/utils/cookie.d.ts +1 -1
- package/dist/types/utils/cookie.d.ts.map +1 -1
- package/dist/types/utils/getAction.d.ts +1 -1
- package/dist/types/utils/getAction.d.ts.map +1 -1
- package/dist/types/utils/getUnit.d.ts +1 -1
- package/dist/types/utils/getUnit.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +1 -1
- package/src/actions/call.ts +3 -3
- package/src/actions/codegen/createReadContract.ts +7 -7
- package/src/actions/codegen/createSimulateContract.ts +14 -14
- package/src/actions/codegen/createWatchContractEvent.ts +5 -4
- package/src/actions/codegen/createWriteContract.ts +15 -19
- package/src/actions/connect.ts +8 -8
- package/src/actions/estimateFeesPerGas.ts +4 -4
- package/src/actions/estimateGas.ts +2 -2
- package/src/actions/estimateMaxPriorityFeePerGas.ts +8 -6
- package/src/actions/getAccount.ts +2 -2
- package/src/actions/getBalance.ts +4 -4
- package/src/actions/getBlock.ts +6 -5
- package/src/actions/getBlockNumber.ts +7 -5
- package/src/actions/getBlockTransactionCount.ts +7 -5
- package/src/actions/getBytecode.ts +3 -3
- package/src/actions/getChainId.ts +1 -1
- package/src/actions/getChains.ts +2 -2
- package/src/actions/getClient.ts +4 -4
- package/src/actions/getConnections.ts +1 -1
- package/src/actions/getConnectorClient.ts +5 -3
- package/src/actions/getEnsAddress.ts +3 -3
- package/src/actions/getEnsAvatar.ts +3 -3
- package/src/actions/getEnsName.ts +3 -3
- package/src/actions/getEnsResolver.ts +3 -3
- package/src/actions/getEnsText.ts +3 -3
- package/src/actions/getFeeHistory.ts +7 -5
- package/src/actions/getGasPrice.ts +7 -5
- package/src/actions/getProof.ts +3 -3
- package/src/actions/getPublicClient.ts +3 -3
- package/src/actions/getStorageAt.ts +3 -3
- package/src/actions/getToken.ts +4 -4
- package/src/actions/getTransaction.ts +7 -5
- package/src/actions/getTransactionConfirmations.ts +4 -4
- package/src/actions/getTransactionCount.ts +3 -3
- package/src/actions/getTransactionReceipt.ts +8 -6
- package/src/actions/getWalletClient.ts +6 -4
- package/src/actions/multicall.ts +2 -2
- package/src/actions/prepareTransactionRequest.ts +16 -16
- package/src/actions/readContract.ts +3 -3
- package/src/actions/readContracts.ts +14 -18
- package/src/actions/reconnect.ts +4 -4
- package/src/actions/sendTransaction.ts +7 -5
- package/src/actions/signMessage.ts +6 -6
- package/src/actions/signTypedData.ts +3 -3
- package/src/actions/simulateContract.ts +6 -6
- package/src/actions/switchAccount.ts +2 -2
- package/src/actions/switchChain.ts +10 -8
- package/src/actions/verifyMessage.ts +3 -3
- package/src/actions/verifyTypedData.ts +4 -4
- package/src/actions/waitForTransactionReceipt.ts +11 -9
- package/src/actions/watchAccount.ts +7 -7
- package/src/actions/watchBlockNumber.ts +7 -4
- package/src/actions/watchBlocks.ts +7 -4
- package/src/actions/watchChainId.ts +1 -1
- package/src/actions/watchChains.ts +2 -2
- package/src/actions/watchClient.ts +3 -2
- package/src/actions/watchConnections.ts +1 -1
- package/src/actions/watchConnectors.ts +2 -2
- package/src/actions/watchContractEvent.ts +10 -8
- package/src/actions/watchPendingTransactions.ts +5 -3
- package/src/actions/watchPublicClient.ts +3 -2
- package/src/actions/writeContract.ts +12 -10
- package/src/connectors/createConnector.ts +14 -14
- package/src/connectors/injected.ts +6 -6
- package/src/connectors/mock.ts +1 -1
- package/src/createConfig.ts +21 -22
- package/src/createStorage.ts +4 -4
- package/src/errors/base.ts +2 -2
- package/src/errors/config.ts +1 -1
- package/src/experimental/actions/getCallsStatus.ts +1 -1
- package/src/experimental/actions/getCapabilities.ts +1 -1
- package/src/experimental/actions/sendCalls.ts +5 -4
- package/src/experimental/actions/showCallsStatus.ts +1 -1
- package/src/experimental/actions/writeContracts.ts +5 -4
- package/src/experimental/query/getCallsStatus.ts +3 -3
- package/src/experimental/query/getCapabilities.ts +3 -3
- package/src/experimental/query/sendCalls.ts +2 -2
- package/src/experimental/query/showCallsStatus.ts +3 -3
- package/src/experimental/query/writeContracts.ts +4 -4
- package/src/exports/actions.ts +1 -0
- package/src/exports/chains.ts +2 -0
- package/src/exports/codegen.ts +1 -0
- package/src/exports/experimental.ts +1 -0
- package/src/exports/index.ts +1 -0
- package/src/exports/internal.ts +1 -0
- package/src/exports/query.ts +1 -0
- package/src/query/call.ts +2 -2
- package/src/query/connect.ts +1 -1
- package/src/query/disconnect.ts +1 -1
- package/src/query/estimateFeesPerGas.ts +3 -3
- package/src/query/estimateGas.ts +2 -2
- package/src/query/estimateMaxPriorityFeePerGas.ts +7 -7
- package/src/query/getBalance.ts +2 -2
- package/src/query/getBlock.ts +3 -3
- package/src/query/getBlockNumber.ts +2 -2
- package/src/query/getBlockTransactionCount.ts +4 -4
- package/src/query/getBytecode.ts +4 -4
- package/src/query/getConnectorClient.ts +2 -2
- package/src/query/getEnsAddress.ts +2 -2
- package/src/query/getEnsAvatar.ts +2 -2
- package/src/query/getEnsName.ts +2 -2
- package/src/query/getEnsResolver.ts +2 -2
- package/src/query/getEnsText.ts +2 -2
- package/src/query/getFeeHistory.ts +3 -3
- package/src/query/getGasPrice.ts +4 -4
- package/src/query/getProof.ts +4 -4
- package/src/query/getStorageAt.ts +2 -2
- package/src/query/getToken.ts +2 -2
- package/src/query/getTransaction.ts +2 -2
- package/src/query/getTransactionConfirmations.ts +4 -4
- package/src/query/getTransactionCount.ts +2 -2
- package/src/query/getTransactionReceipt.ts +5 -5
- package/src/query/getWalletClient.ts +2 -2
- package/src/query/infiniteReadContracts.ts +6 -6
- package/src/query/prepareTransactionRequest.ts +5 -5
- package/src/query/readContract.ts +5 -9
- package/src/query/readContracts.ts +6 -6
- package/src/query/reconnect.ts +2 -2
- package/src/query/sendTransaction.ts +2 -2
- package/src/query/signMessage.ts +3 -3
- package/src/query/signTypedData.ts +2 -2
- package/src/query/simulateContract.ts +3 -7
- package/src/query/switchAccount.ts +4 -4
- package/src/query/switchChain.ts +3 -3
- package/src/query/types.ts +13 -7
- package/src/query/utils.ts +4 -7
- package/src/query/verifyMessage.ts +2 -2
- package/src/query/verifyTypedData.ts +5 -5
- package/src/query/waitForTransactionReceipt.ts +4 -4
- package/src/query/writeContract.ts +4 -8
- package/src/transports/fallback.ts +1 -1
- package/src/types/chain.ts +8 -8
- package/src/types/properties.ts +1 -1
- package/src/types/register.ts +2 -1
- package/src/types/utils.ts +7 -6
- package/src/utils/cookie.ts +3 -3
- package/src/utils/getAction.ts +8 -8
- package/src/utils/getUnit.ts +1 -1
- package/src/version.ts +1 -1
package/src/actions/getClient.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Client } from 'viem'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { Config } from '../createConfig.js'
|
|
4
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
5
|
+
import type { Evaluate, IsNarrowable } from '../types/utils.js'
|
|
6
6
|
|
|
7
7
|
export type GetClientParameters<
|
|
8
8
|
config extends Config = Config,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config, Connection } from '../createConfig.js'
|
|
2
|
-
import {
|
|
2
|
+
import type { Evaluate } from '../types/utils.js'
|
|
3
3
|
import { deepEqual } from '../utils/deepEqual.js'
|
|
4
4
|
|
|
5
5
|
export type GetConnectionsReturnType = Evaluate<Connection>[]
|
|
@@ -20,11 +20,12 @@ import type {
|
|
|
20
20
|
ChainIdParameter,
|
|
21
21
|
ConnectorParameter,
|
|
22
22
|
} from '../types/properties.js'
|
|
23
|
-
import {
|
|
23
|
+
import type { Evaluate } from '../types/utils.js'
|
|
24
24
|
|
|
25
25
|
export type GetConnectorClientParameters<
|
|
26
26
|
config extends Config = Config,
|
|
27
|
-
chainId extends
|
|
27
|
+
chainId extends
|
|
28
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
28
29
|
> = Evaluate<
|
|
29
30
|
ChainIdParameter<config, chainId> &
|
|
30
31
|
ConnectorParameter & {
|
|
@@ -34,7 +35,8 @@ export type GetConnectorClientParameters<
|
|
|
34
35
|
|
|
35
36
|
export type GetConnectorClientReturnType<
|
|
36
37
|
config extends Config = Config,
|
|
37
|
-
chainId extends
|
|
38
|
+
chainId extends
|
|
39
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
38
40
|
> = Evaluate<
|
|
39
41
|
Client<
|
|
40
42
|
config['_internal']['transports'][chainId],
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getEnsAddress as viem_getEnsAddress,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetEnsAddressParameters<config extends Config = Config> = Evaluate<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getEnsAvatar as viem_getEnsAvatar,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetEnsAvatarParameters<config extends Config = Config> = Evaluate<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getEnsName as viem_getEnsName,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetEnsNameParameters<config extends Config = Config> = Evaluate<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getEnsResolver as viem_getEnsResolver,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetEnsResolverParameters<config extends Config = Config> = Evaluate<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getEnsText as viem_getEnsText,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetEnsTextParameters<config extends Config = Config> = Evaluate<
|
|
@@ -5,14 +5,15 @@ import {
|
|
|
5
5
|
getFeeHistory as viem_getFeeHistory,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetFeeHistoryParameters<
|
|
14
14
|
config extends Config = Config,
|
|
15
|
-
chainId extends
|
|
15
|
+
chainId extends
|
|
16
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
16
17
|
> = Evaluate<viem_GetFeeHistoryParameters & ChainIdParameter<config, chainId>>
|
|
17
18
|
|
|
18
19
|
export type GetFeeHistoryReturnType = viem_GetFeeHistoryReturnType
|
|
@@ -22,7 +23,8 @@ export type GetFeeHistoryErrorType = viem_GetFeeHistoryErrorType
|
|
|
22
23
|
/** https://wagmi.sh/core/api/actions/getFeeHistory */
|
|
23
24
|
export function getFeeHistory<
|
|
24
25
|
config extends Config,
|
|
25
|
-
chainId extends
|
|
26
|
+
chainId extends
|
|
27
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
26
28
|
>(
|
|
27
29
|
config: config,
|
|
28
30
|
parameters: GetFeeHistoryParameters<config, chainId>,
|
|
@@ -4,14 +4,15 @@ import {
|
|
|
4
4
|
getGasPrice as viem_getGasPrice,
|
|
5
5
|
} from 'viem/actions'
|
|
6
6
|
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import type { Config } from '../createConfig.js'
|
|
8
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
9
|
+
import type { Evaluate } from '../types/utils.js'
|
|
10
10
|
import { getAction } from '../utils/getAction.js'
|
|
11
11
|
|
|
12
12
|
export type GetGasPriceParameters<
|
|
13
13
|
config extends Config = Config,
|
|
14
|
-
chainId extends
|
|
14
|
+
chainId extends
|
|
15
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
15
16
|
> = Evaluate<ChainIdParameter<config, chainId>>
|
|
16
17
|
|
|
17
18
|
export type GetGasPriceReturnType = viem_GetGasPriceReturnType
|
|
@@ -21,7 +22,8 @@ export type GetGasPriceErrorType = viem_GetGasPriceErrorType
|
|
|
21
22
|
/** https://wagmi.sh/core/api/actions/getGasPrice */
|
|
22
23
|
export function getGasPrice<
|
|
23
24
|
config extends Config,
|
|
24
|
-
chainId extends
|
|
25
|
+
chainId extends
|
|
26
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
25
27
|
>(
|
|
26
28
|
config: config,
|
|
27
29
|
parameters: GetGasPriceParameters<config, chainId> = {},
|
package/src/actions/getProof.ts
CHANGED
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getProof as viem_getProof,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetProofParameters<config extends Config = Config> = Evaluate<
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Client, type PublicClient, publicActions } from 'viem'
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import type { Config } from '../createConfig.js'
|
|
4
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
5
|
+
import type { Evaluate, IsNarrowable } from '../types/utils.js'
|
|
6
6
|
import { getClient } from './getClient.js'
|
|
7
7
|
|
|
8
8
|
export type GetPublicClientParameters<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getStorageAt as viem_getStorageAt,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetStorageAtParameters<config extends Config = Config> = Evaluate<
|
package/src/actions/getToken.ts
CHANGED
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
trim,
|
|
7
7
|
} from 'viem'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
11
|
+
import type { Unit } from '../types/unit.js'
|
|
12
|
+
import type { Evaluate } from '../types/utils.js'
|
|
13
13
|
import { getUnit } from '../utils/getUnit.js'
|
|
14
14
|
import { type ReadContractsErrorType, readContracts } from './readContracts.js'
|
|
15
15
|
|
|
@@ -6,20 +6,22 @@ import {
|
|
|
6
6
|
getTransaction as viem_getTransaction,
|
|
7
7
|
} from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { SelectChains } from '../types/chain.js'
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
12
|
+
import type { Evaluate, IsNarrowable } from '../types/utils.js'
|
|
13
13
|
import { getAction } from '../utils/getAction.js'
|
|
14
14
|
|
|
15
15
|
export type GetTransactionParameters<
|
|
16
16
|
config extends Config = Config,
|
|
17
|
-
chainId extends
|
|
17
|
+
chainId extends
|
|
18
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
18
19
|
> = Evaluate<viem_GetTransactionParameters & ChainIdParameter<config, chainId>>
|
|
19
20
|
|
|
20
21
|
export type GetTransactionReturnType<
|
|
21
22
|
config extends Config = Config,
|
|
22
|
-
chainId extends
|
|
23
|
+
chainId extends
|
|
24
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
23
25
|
///
|
|
24
26
|
chains extends readonly Chain[] = SelectChains<config, chainId>,
|
|
25
27
|
> = Evaluate<
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Chain } from 'viem'
|
|
2
2
|
import {
|
|
3
3
|
type GetTransactionConfirmationsErrorType as viem_GetTransactionConfirmationsErrorType,
|
|
4
4
|
type GetTransactionConfirmationsParameters as viem_GetTransactionConfirmationsParameters,
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
getTransactionConfirmations as viem_getTransactionConfirmations,
|
|
7
7
|
} from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { SelectChains } from '../types/chain.js'
|
|
11
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
12
12
|
import { getAction } from '../utils/getAction.js'
|
|
13
13
|
|
|
14
14
|
export type GetTransactionConfirmationsParameters<
|
|
@@ -5,9 +5,9 @@ import {
|
|
|
5
5
|
getTransactionCount as viem_getTransactionCount,
|
|
6
6
|
} from 'viem/actions'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
|
+
import type { Evaluate } from '../types/utils.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type GetTransactionCountParameters<config extends Config = Config> =
|
|
@@ -6,22 +6,24 @@ import {
|
|
|
6
6
|
getTransactionReceipt as viem_getTransactionReceipt,
|
|
7
7
|
} from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { SelectChains } from '../types/chain.js'
|
|
11
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
12
|
+
import type { Evaluate, IsNarrowable } from '../types/utils.js'
|
|
13
13
|
import { getAction } from '../utils/getAction.js'
|
|
14
14
|
|
|
15
15
|
export type GetTransactionReceiptParameters<
|
|
16
16
|
config extends Config = Config,
|
|
17
|
-
chainId extends
|
|
17
|
+
chainId extends
|
|
18
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
18
19
|
> = Evaluate<
|
|
19
20
|
viem_GetTransactionReceiptParameters & ChainIdParameter<config, chainId>
|
|
20
21
|
>
|
|
21
22
|
|
|
22
23
|
export type GetTransactionReceiptReturnType<
|
|
23
24
|
config extends Config = Config,
|
|
24
|
-
chainId extends
|
|
25
|
+
chainId extends
|
|
26
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
25
27
|
///
|
|
26
28
|
chains extends readonly Chain[] = SelectChains<config, chainId>,
|
|
27
29
|
> = Evaluate<
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { type Account, type WalletClient, walletActions } from 'viem'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { Config } from '../createConfig.js'
|
|
4
4
|
import type { BaseErrorType, ErrorType } from '../errors/base.js'
|
|
5
|
-
import {
|
|
5
|
+
import type { Evaluate } from '../types/utils.js'
|
|
6
6
|
import {
|
|
7
7
|
type GetConnectorClientErrorType,
|
|
8
8
|
type GetConnectorClientParameters,
|
|
@@ -11,12 +11,14 @@ import {
|
|
|
11
11
|
|
|
12
12
|
export type GetWalletClientParameters<
|
|
13
13
|
config extends Config = Config,
|
|
14
|
-
chainId extends
|
|
14
|
+
chainId extends
|
|
15
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
15
16
|
> = GetConnectorClientParameters<Config, chainId>
|
|
16
17
|
|
|
17
18
|
export type GetWalletClientReturnType<
|
|
18
19
|
config extends Config = Config,
|
|
19
|
-
chainId extends
|
|
20
|
+
chainId extends
|
|
21
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
20
22
|
> = Evaluate<
|
|
21
23
|
WalletClient<
|
|
22
24
|
config['_internal']['transports'][chainId],
|
package/src/actions/multicall.ts
CHANGED
|
@@ -6,8 +6,8 @@ import type {
|
|
|
6
6
|
} from 'viem'
|
|
7
7
|
import { multicall as viem_multicall } from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
11
11
|
import { getAction } from '../utils/getAction.js'
|
|
12
12
|
|
|
13
13
|
export type MulticallParameters<
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import type {
|
|
2
|
+
Account,
|
|
3
|
+
Address,
|
|
4
|
+
Chain,
|
|
5
|
+
PrepareTransactionRequestErrorType as viem_PrepareTransactionRequestErrorType,
|
|
6
|
+
PrepareTransactionRequestParameters as viem_PrepareTransactionRequestParameters,
|
|
7
|
+
PrepareTransactionRequestRequest as viem_PrepareTransactionRequestRequest,
|
|
8
|
+
PrepareTransactionRequestReturnType as viem_PrepareTransactionRequestReturnType,
|
|
9
9
|
} from 'viem'
|
|
10
10
|
import { prepareTransactionRequest as viem_prepareTransactionRequest } from 'viem/actions'
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
import type { Config } from '../createConfig.js'
|
|
13
|
+
import type { SelectChains } from '../types/chain.js'
|
|
14
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
15
|
+
import type {
|
|
16
|
+
Evaluate,
|
|
17
|
+
IsNarrowable,
|
|
18
|
+
UnionEvaluate,
|
|
19
|
+
UnionOmit,
|
|
20
20
|
} from '../types/utils.js'
|
|
21
21
|
import { getAction } from '../utils/getAction.js'
|
|
22
22
|
import { getAccount } from './getAccount.js'
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Abi } from 'viem'
|
|
2
2
|
import type { ContractFunctionArgs, ContractFunctionName } from 'viem'
|
|
3
3
|
import {
|
|
4
4
|
type ReadContractErrorType as viem_ReadContractErrorType,
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
readContract as viem_readContract,
|
|
8
8
|
} from 'viem/actions'
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import type { Config } from '../createConfig.js'
|
|
11
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
12
12
|
import { getAction } from '../utils/getAction.js'
|
|
13
13
|
|
|
14
14
|
export type ReadContractParameters<
|
|
@@ -5,8 +5,8 @@ import type {
|
|
|
5
5
|
} from 'viem'
|
|
6
6
|
import { ContractFunctionExecutionError } from 'viem'
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import type { Config } from '../createConfig.js'
|
|
9
|
+
import type { ChainIdParameter } from '../types/properties.js'
|
|
10
10
|
import { type MulticallErrorType, multicall } from './multicall.js'
|
|
11
11
|
import { type ReadContractErrorType, readContract } from './readContract.js'
|
|
12
12
|
|
|
@@ -41,21 +41,17 @@ export async function readContracts<
|
|
|
41
41
|
})[]
|
|
42
42
|
|
|
43
43
|
try {
|
|
44
|
-
const contractsByChainId
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
index: number
|
|
56
|
-
}[]
|
|
57
|
-
},
|
|
58
|
-
)
|
|
44
|
+
const contractsByChainId: {
|
|
45
|
+
[chainId: number]: {
|
|
46
|
+
contract: ContractFunctionParameters
|
|
47
|
+
index: number
|
|
48
|
+
}[]
|
|
49
|
+
} = {}
|
|
50
|
+
for (const [index, contract] of contracts.entries()) {
|
|
51
|
+
const chainId = contract.chainId ?? config.state.chainId
|
|
52
|
+
if (!contractsByChainId[chainId]) contractsByChainId[chainId] = []
|
|
53
|
+
contractsByChainId[chainId]?.push({ contract, index })
|
|
54
|
+
}
|
|
59
55
|
const promises = () =>
|
|
60
56
|
Object.entries(contractsByChainId).map(([chainId, contracts]) =>
|
|
61
57
|
multicall(config, {
|
|
@@ -63,7 +59,7 @@ export async function readContracts<
|
|
|
63
59
|
allowFailure,
|
|
64
60
|
blockNumber,
|
|
65
61
|
blockTag,
|
|
66
|
-
chainId: parseInt(chainId),
|
|
62
|
+
chainId: Number.parseInt(chainId),
|
|
67
63
|
contracts: contracts.map(({ contract }) => contract),
|
|
68
64
|
}),
|
|
69
65
|
)
|
package/src/actions/reconnect.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Address } from 'viem'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { CreateConnectorFn } from '../connectors/createConnector.js'
|
|
4
4
|
import type { Config, Connection, Connector } from '../createConfig.js'
|
|
5
5
|
import type { ErrorType } from '../errors/base.js'
|
|
6
|
-
import {
|
|
6
|
+
import type { Evaluate } from '../types/utils.js'
|
|
7
7
|
|
|
8
8
|
export type ReconnectParameters = {
|
|
9
9
|
/** Connectors to attempt reconnect with */
|
|
@@ -43,7 +43,7 @@ export async function reconnect(
|
|
|
43
43
|
} else connectors.push(...config.connectors)
|
|
44
44
|
|
|
45
45
|
// Try recently-used connectors first
|
|
46
|
-
let recentConnectorId
|
|
46
|
+
let recentConnectorId: string | null | undefined
|
|
47
47
|
try {
|
|
48
48
|
recentConnectorId = await config.storage?.getItem('recentConnectorId')
|
|
49
49
|
} catch {}
|
|
@@ -2,24 +2,25 @@ import type {
|
|
|
2
2
|
Account,
|
|
3
3
|
Address,
|
|
4
4
|
Chain,
|
|
5
|
+
Client,
|
|
6
|
+
TransactionRequest,
|
|
5
7
|
SendTransactionErrorType as viem_SendTransactionErrorType,
|
|
6
8
|
SendTransactionParameters as viem_SendTransactionParameters,
|
|
7
9
|
SendTransactionReturnType as viem_SendTransactionReturnType,
|
|
8
|
-
TransactionRequest,
|
|
9
10
|
} from 'viem'
|
|
10
11
|
import {
|
|
11
12
|
estimateGas as viem_estimateGas,
|
|
12
13
|
sendTransaction as viem_sendTransaction,
|
|
13
14
|
} from 'viem/actions'
|
|
14
15
|
|
|
15
|
-
import {
|
|
16
|
+
import type { Config } from '../createConfig.js'
|
|
16
17
|
import type { BaseErrorType, ErrorType } from '../errors/base.js'
|
|
17
18
|
import type { SelectChains } from '../types/chain.js'
|
|
18
19
|
import type {
|
|
19
20
|
ChainIdParameter,
|
|
20
21
|
ConnectorParameter,
|
|
21
22
|
} from '../types/properties.js'
|
|
22
|
-
import {
|
|
23
|
+
import type { Evaluate } from '../types/utils.js'
|
|
23
24
|
import { getAction } from '../utils/getAction.js'
|
|
24
25
|
import { getAccount } from './getAccount.js'
|
|
25
26
|
import {
|
|
@@ -29,7 +30,8 @@ import {
|
|
|
29
30
|
|
|
30
31
|
export type SendTransactionParameters<
|
|
31
32
|
config extends Config = Config,
|
|
32
|
-
chainId extends
|
|
33
|
+
chainId extends
|
|
34
|
+
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
33
35
|
///
|
|
34
36
|
chains extends readonly Chain[] = SelectChains<config, chainId>,
|
|
35
37
|
> = {
|
|
@@ -69,7 +71,7 @@ export async function sendTransaction<
|
|
|
69
71
|
): Promise<SendTransactionReturnType> {
|
|
70
72
|
const { account, chainId, connector, gas: gas_, ...rest } = parameters
|
|
71
73
|
|
|
72
|
-
let client
|
|
74
|
+
let client: Client
|
|
73
75
|
if (typeof account === 'object' && account.type === 'local')
|
|
74
76
|
client = config.getClient({ chainId })
|
|
75
77
|
else
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Account, Client } from 'viem'
|
|
2
2
|
import {
|
|
3
3
|
type SignMessageErrorType as viem_SignMessageErrorType,
|
|
4
4
|
type SignMessageParameters as viem_SignMessageParameters,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
signMessage as viem_signMessage,
|
|
7
7
|
} from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
|
+
import type { BaseErrorType, ErrorType } from '../errors/base.js'
|
|
11
|
+
import type { ConnectorParameter } from '../types/properties.js'
|
|
12
|
+
import type { Evaluate } from '../types/utils.js'
|
|
13
13
|
import { getAction } from '../utils/getAction.js'
|
|
14
14
|
import {
|
|
15
15
|
type GetConnectorClientErrorType,
|
|
@@ -38,7 +38,7 @@ export async function signMessage(
|
|
|
38
38
|
): Promise<SignMessageReturnType> {
|
|
39
39
|
const { account, connector, ...rest } = parameters
|
|
40
40
|
|
|
41
|
-
let client
|
|
41
|
+
let client: Client
|
|
42
42
|
if (typeof account === 'object' && account.type === 'local')
|
|
43
43
|
client = config.getClient()
|
|
44
44
|
else client = await getConnectorClient(config, { account, connector })
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Account, TypedData } from 'viem'
|
|
1
|
+
import type { Account, Client, TypedData } from 'viem'
|
|
2
2
|
import {
|
|
3
3
|
type SignMessageErrorType as viem_SignMessageErrorType,
|
|
4
4
|
type SignTypedDataParameters as viem_SignTypedDataParameters,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
signTypedData as viem_signTypedData,
|
|
7
7
|
} from 'viem/actions'
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import type { Config } from '../createConfig.js'
|
|
10
10
|
import type { BaseErrorType, ErrorType } from '../errors/base.js'
|
|
11
11
|
import type { ConnectorParameter } from '../types/properties.js'
|
|
12
12
|
import type { UnionEvaluate } from '../types/utils.js'
|
|
@@ -47,7 +47,7 @@ export async function signTypedData<
|
|
|
47
47
|
): Promise<SignTypedDataReturnType> {
|
|
48
48
|
const { account, connector, ...rest } = parameters
|
|
49
49
|
|
|
50
|
-
let client
|
|
50
|
+
let client: Client
|
|
51
51
|
if (typeof account === 'object' && account.type === 'local')
|
|
52
52
|
client = config.getClient()
|
|
53
53
|
else client = await getConnectorClient(config, { account, connector })
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
simulateContract as viem_simulateContract,
|
|
14
14
|
} from 'viem/actions'
|
|
15
15
|
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
import type { Config } from '../createConfig.js'
|
|
17
|
+
import type { BaseErrorType, ErrorType } from '../errors/base.js'
|
|
18
|
+
import type { SelectChains } from '../types/chain.js'
|
|
19
|
+
import type {
|
|
20
|
+
ChainIdParameter,
|
|
21
|
+
ConnectorParameter,
|
|
22
22
|
} from '../types/properties.js'
|
|
23
23
|
import type {
|
|
24
24
|
Evaluate,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { Address } from 'viem'
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { Config, Connector } from '../createConfig.js'
|
|
4
4
|
import type { BaseError, ErrorType } from '../errors/base.js'
|
|
5
5
|
import {
|
|
6
6
|
ConnectorNotConnectedError,
|