@wagmi/core 2.0.0 → 2.0.2
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/README.md +13 -0
- package/actions/package.json +5 -0
- package/chains/package.json +5 -0
- package/dist/esm/actions/codegen/createReadContract.js +31 -0
- package/dist/esm/actions/codegen/createReadContract.js.map +1 -0
- package/dist/esm/actions/codegen/createSimulateContract.js +33 -0
- package/dist/esm/actions/codegen/createSimulateContract.js.map +1 -0
- package/dist/esm/actions/codegen/createWatchContractEvent.js +31 -0
- package/dist/esm/actions/codegen/createWatchContractEvent.js.map +1 -0
- package/dist/esm/actions/codegen/createWriteContract.js +43 -0
- package/dist/esm/actions/codegen/createWriteContract.js.map +1 -0
- package/dist/esm/actions/connect.js +15 -19
- package/dist/esm/actions/connect.js.map +1 -1
- package/dist/esm/actions/disconnect.js +10 -12
- package/dist/esm/actions/disconnect.js.map +1 -1
- package/dist/esm/actions/estimateFeesPerGas.js +3 -0
- package/dist/esm/actions/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/actions/estimateGas.js +2 -2
- package/dist/esm/actions/estimateGas.js.map +1 -1
- package/dist/esm/actions/estimateMaxPriorityFeePerGas.js +12 -0
- package/dist/esm/actions/estimateMaxPriorityFeePerGas.js.map +1 -0
- package/dist/esm/actions/getAccount.js +6 -1
- package/dist/esm/actions/getAccount.js.map +1 -1
- package/dist/esm/actions/getBalance.js +14 -5
- package/dist/esm/actions/getBalance.js.map +1 -1
- package/dist/esm/actions/getBlock.js +15 -0
- package/dist/esm/actions/getBlock.js.map +1 -0
- package/dist/esm/actions/getBlockNumber.js +3 -1
- package/dist/esm/actions/getBlockNumber.js.map +1 -1
- package/dist/esm/actions/getBlockTransactionCount.js +11 -0
- package/dist/esm/actions/getBlockTransactionCount.js.map +1 -0
- package/dist/esm/actions/getChainId.js +2 -1
- package/dist/esm/actions/getChainId.js.map +1 -1
- package/dist/esm/actions/getClient.js +3 -0
- package/dist/esm/actions/getClient.js.map +1 -1
- package/dist/esm/actions/getConnections.js +2 -1
- package/dist/esm/actions/getConnections.js.map +1 -1
- package/dist/esm/actions/getConnectorClient.js +7 -3
- package/dist/esm/actions/getConnectorClient.js.map +1 -1
- package/dist/esm/actions/getConnectors.js +11 -0
- package/dist/esm/actions/getConnectors.js.map +1 -0
- package/dist/esm/actions/getEnsAddress.js +3 -1
- package/dist/esm/actions/getEnsAddress.js.map +1 -1
- package/dist/esm/actions/getEnsAvatar.js +3 -1
- package/dist/esm/actions/getEnsAvatar.js.map +1 -1
- package/dist/esm/actions/getEnsName.js +3 -1
- package/dist/esm/actions/getEnsName.js.map +1 -1
- package/dist/esm/actions/getEnsResolver.js +3 -1
- package/dist/esm/actions/getEnsResolver.js.map +1 -1
- package/dist/esm/actions/getFeeHistory.js +11 -0
- package/dist/esm/actions/getFeeHistory.js.map +1 -0
- package/dist/esm/actions/getGasPrice.js +11 -0
- package/dist/esm/actions/getGasPrice.js.map +1 -0
- package/dist/esm/actions/getPublicClient.js +3 -0
- package/dist/esm/actions/getPublicClient.js.map +1 -1
- package/dist/esm/actions/getToken.js +5 -0
- package/dist/esm/actions/getToken.js.map +1 -1
- package/dist/esm/actions/getTransaction.js +2 -1
- package/dist/esm/actions/getTransaction.js.map +1 -1
- package/dist/esm/actions/getTransactionCount.js +11 -0
- package/dist/esm/actions/getTransactionCount.js.map +1 -0
- package/dist/esm/actions/getWalletClient.js +4 -0
- package/dist/esm/actions/getWalletClient.js.map +1 -1
- package/dist/esm/actions/multicall.js +2 -0
- package/dist/esm/actions/multicall.js.map +1 -1
- package/dist/esm/actions/readContract.js +2 -1
- package/dist/esm/actions/readContract.js.map +1 -1
- package/dist/esm/actions/readContracts.js.map +1 -1
- package/dist/esm/actions/reconnect.js +13 -7
- package/dist/esm/actions/reconnect.js.map +1 -1
- package/dist/esm/actions/sendTransaction.js +5 -8
- package/dist/esm/actions/sendTransaction.js.map +1 -1
- package/dist/esm/actions/signMessage.js +4 -2
- package/dist/esm/actions/signMessage.js.map +1 -1
- package/dist/esm/actions/signTypedData.js +2 -2
- package/dist/esm/actions/signTypedData.js.map +1 -1
- package/dist/esm/actions/simulateContract.js +6 -7
- package/dist/esm/actions/simulateContract.js.map +1 -1
- package/dist/esm/actions/switchAccount.js +3 -2
- package/dist/esm/actions/switchAccount.js.map +1 -1
- package/dist/esm/actions/switchChain.js +5 -5
- package/dist/esm/actions/switchChain.js.map +1 -1
- package/dist/esm/actions/verifyMessage.js +11 -0
- package/dist/esm/actions/verifyMessage.js.map +1 -0
- package/dist/esm/actions/verifyTypedData.js +12 -0
- package/dist/esm/actions/verifyTypedData.js.map +1 -0
- package/dist/esm/actions/waitForTransactionReceipt.js +7 -1
- package/dist/esm/actions/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/actions/watchAccount.js +1 -1
- package/dist/esm/actions/watchAccount.js.map +1 -1
- package/dist/esm/actions/watchBlockNumber.js +2 -4
- package/dist/esm/actions/watchBlockNumber.js.map +1 -1
- package/dist/esm/actions/watchBlocks.js +26 -0
- package/dist/esm/actions/watchBlocks.js.map +1 -0
- package/dist/esm/actions/watchChainId.js +2 -1
- package/dist/esm/actions/watchChainId.js.map +1 -1
- package/dist/esm/actions/watchClient.js +2 -1
- package/dist/esm/actions/watchClient.js.map +1 -1
- package/dist/esm/actions/watchConnections.js +2 -1
- package/dist/esm/actions/watchConnections.js.map +1 -1
- package/dist/esm/actions/watchConnectors.js +10 -0
- package/dist/esm/actions/watchConnectors.js.map +1 -0
- package/dist/esm/actions/watchContractEvent.js +6 -4
- package/dist/esm/actions/watchContractEvent.js.map +1 -1
- package/dist/esm/actions/watchPendingTransactions.js +3 -4
- package/dist/esm/actions/watchPendingTransactions.js.map +1 -1
- package/dist/esm/actions/watchPublicClient.js +2 -1
- package/dist/esm/actions/watchPublicClient.js.map +1 -1
- package/dist/esm/actions/writeContract.js +9 -11
- package/dist/esm/actions/writeContract.js.map +1 -1
- package/dist/esm/connectors/createConnector.js +8 -0
- package/dist/esm/connectors/createConnector.js.map +1 -0
- package/dist/esm/connectors/injected.js +402 -0
- package/dist/esm/connectors/injected.js.map +1 -0
- package/dist/esm/connectors/mock.js +131 -0
- package/dist/esm/connectors/mock.js.map +1 -0
- package/dist/esm/createConfig.js +65 -23
- package/dist/esm/createConfig.js.map +1 -1
- package/dist/esm/createStorage.js +4 -2
- package/dist/esm/createStorage.js.map +1 -1
- package/dist/esm/errors/base.js +1 -1
- package/dist/esm/errors/base.js.map +1 -1
- package/dist/esm/errors/config.js +3 -15
- package/dist/esm/errors/config.js.map +1 -1
- package/dist/esm/errors/connector.js.map +1 -1
- package/dist/esm/exports/actions.js +43 -11
- package/dist/esm/exports/actions.js.map +1 -1
- package/dist/esm/exports/chains.js +1 -0
- package/dist/esm/exports/chains.js.map +1 -1
- package/dist/esm/exports/codegen.js +5 -0
- package/dist/esm/exports/codegen.js.map +1 -0
- package/dist/esm/exports/index.js +67 -18
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/internal.js +5 -0
- package/dist/esm/exports/internal.js.map +1 -1
- package/dist/esm/exports/query.js +10 -0
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/hydrate.js +34 -0
- package/dist/esm/hydrate.js.map +1 -0
- package/dist/esm/query/disconnect.js +1 -0
- package/dist/esm/query/disconnect.js.map +1 -1
- package/dist/esm/query/estimateFeesPerGas.js +1 -0
- package/dist/esm/query/estimateFeesPerGas.js.map +1 -1
- package/dist/esm/query/estimateGas.js +1 -0
- package/dist/esm/query/estimateGas.js.map +1 -1
- package/dist/esm/query/estimateMaxPriorityFeePerGas.js +19 -0
- package/dist/esm/query/estimateMaxPriorityFeePerGas.js.map +1 -0
- package/dist/esm/query/getBalance.js +6 -4
- package/dist/esm/query/getBalance.js.map +1 -1
- package/dist/esm/query/getBlock.js +18 -0
- package/dist/esm/query/getBlock.js.map +1 -0
- package/dist/esm/query/getBlockNumber.js +1 -0
- package/dist/esm/query/getBlockNumber.js.map +1 -1
- package/dist/esm/query/getBlockTransactionCount.js +20 -0
- package/dist/esm/query/getBlockTransactionCount.js.map +1 -0
- package/dist/esm/query/getConnectorClient.js +2 -0
- package/dist/esm/query/getConnectorClient.js.map +1 -1
- package/dist/esm/query/getEnsAddress.js +1 -0
- package/dist/esm/query/getEnsAddress.js.map +1 -1
- package/dist/esm/query/getEnsAvatar.js +1 -0
- package/dist/esm/query/getEnsAvatar.js.map +1 -1
- package/dist/esm/query/getEnsName.js +1 -0
- package/dist/esm/query/getEnsName.js.map +1 -1
- package/dist/esm/query/getEnsResolver.js +1 -0
- package/dist/esm/query/getEnsResolver.js.map +1 -1
- package/dist/esm/query/getFeeHistory.js +27 -0
- package/dist/esm/query/getFeeHistory.js.map +1 -0
- package/dist/esm/query/getGasPrice.js +20 -0
- package/dist/esm/query/getGasPrice.js.map +1 -0
- package/dist/esm/query/getToken.js +1 -0
- package/dist/esm/query/getToken.js.map +1 -1
- package/dist/esm/query/getTransaction.js +4 -2
- package/dist/esm/query/getTransaction.js.map +1 -1
- package/dist/esm/query/getTransactionCount.js +23 -0
- package/dist/esm/query/getTransactionCount.js.map +1 -0
- package/dist/esm/query/getWalletClient.js +2 -0
- package/dist/esm/query/getWalletClient.js.map +1 -1
- package/dist/esm/query/infiniteReadContracts.js +25 -0
- package/dist/esm/query/infiniteReadContracts.js.map +1 -0
- package/dist/esm/query/readContract.js +7 -2
- package/dist/esm/query/readContract.js.map +1 -1
- package/dist/esm/query/readContracts.js +5 -3
- package/dist/esm/query/readContracts.js.map +1 -1
- package/dist/esm/query/reconnect.js +2 -0
- package/dist/esm/query/reconnect.js.map +1 -1
- package/dist/esm/query/sendTransaction.js +1 -0
- package/dist/esm/query/sendTransaction.js.map +1 -1
- package/dist/esm/query/signTypedData.js +1 -0
- package/dist/esm/query/signTypedData.js.map +1 -1
- package/dist/esm/query/simulateContract.js +6 -1
- package/dist/esm/query/simulateContract.js.map +1 -1
- package/dist/esm/query/switchAccount.js +3 -0
- package/dist/esm/query/switchAccount.js.map +1 -1
- package/dist/esm/query/switchChain.js +2 -0
- package/dist/esm/query/switchChain.js.map +1 -1
- package/dist/esm/query/types.js +2 -1
- package/dist/esm/query/types.js.map +1 -1
- package/dist/esm/query/utils.js +13 -0
- package/dist/esm/query/utils.js.map +1 -1
- package/dist/esm/query/verifyMessage.js +21 -0
- package/dist/esm/query/verifyMessage.js.map +1 -0
- package/dist/esm/query/verifyTypedData.js +38 -0
- package/dist/esm/query/verifyTypedData.js.map +1 -0
- package/dist/esm/query/waitForTransactionReceipt.js +3 -0
- package/dist/esm/query/waitForTransactionReceipt.js.map +1 -1
- package/dist/esm/query/writeContract.js +3 -0
- package/dist/esm/query/writeContract.js.map +1 -1
- package/dist/esm/transports/connector.js +37 -0
- package/dist/esm/transports/connector.js.map +1 -0
- package/dist/esm/transports/fallback.js +6 -0
- package/dist/esm/transports/fallback.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/chain.js +3 -1
- 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 +37 -0
- package/dist/esm/utils/cookie.js.map +1 -0
- package/dist/esm/version.js +1 -1
- package/dist/types/actions/codegen/createReadContract.d.ts +16 -0
- package/dist/types/actions/codegen/createReadContract.d.ts.map +1 -0
- package/dist/types/actions/codegen/createSimulateContract.d.ts +20 -0
- package/dist/types/actions/codegen/createSimulateContract.d.ts.map +1 -0
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts +14 -0
- package/dist/types/actions/codegen/createWatchContractEvent.d.ts.map +1 -0
- package/dist/types/actions/codegen/createWriteContract.d.ts +22 -0
- package/dist/types/actions/codegen/createWriteContract.d.ts.map +1 -0
- package/dist/types/actions/connect.d.ts +10 -11
- package/dist/types/actions/connect.d.ts.map +1 -1
- package/dist/types/actions/disconnect.d.ts +7 -6
- package/dist/types/actions/disconnect.d.ts.map +1 -1
- package/dist/types/actions/estimateFeesPerGas.d.ts +7 -5
- package/dist/types/actions/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/actions/estimateGas.d.ts +7 -5
- package/dist/types/actions/estimateGas.d.ts.map +1 -1
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts +11 -0
- package/dist/types/actions/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
- package/dist/types/actions/getAccount.d.ts +6 -2
- package/dist/types/actions/getAccount.d.ts.map +1 -1
- package/dist/types/actions/getBalance.d.ts +7 -5
- package/dist/types/actions/getBalance.d.ts.map +1 -1
- package/dist/types/actions/getBlock.d.ts +16 -0
- package/dist/types/actions/getBlock.d.ts.map +1 -0
- package/dist/types/actions/getBlockNumber.d.ts +7 -7
- package/dist/types/actions/getBlockNumber.d.ts.map +1 -1
- package/dist/types/actions/getBlockTransactionCount.d.ts +10 -0
- package/dist/types/actions/getBlockTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/getChainId.d.ts +2 -2
- package/dist/types/actions/getChainId.d.ts.map +1 -1
- package/dist/types/actions/getClient.d.ts +3 -3
- package/dist/types/actions/getClient.d.ts.map +1 -1
- package/dist/types/actions/getConnections.d.ts +2 -2
- package/dist/types/actions/getConnections.d.ts.map +1 -1
- package/dist/types/actions/getConnectorClient.d.ts +6 -5
- package/dist/types/actions/getConnectorClient.d.ts.map +1 -1
- package/dist/types/actions/getConnectors.d.ts +5 -0
- package/dist/types/actions/getConnectors.d.ts.map +1 -0
- package/dist/types/actions/getEnsAddress.d.ts +5 -5
- package/dist/types/actions/getEnsAddress.d.ts.map +1 -1
- package/dist/types/actions/getEnsAvatar.d.ts +5 -5
- package/dist/types/actions/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/actions/getEnsName.d.ts +5 -5
- package/dist/types/actions/getEnsName.d.ts.map +1 -1
- package/dist/types/actions/getEnsResolver.d.ts +5 -5
- package/dist/types/actions/getEnsResolver.d.ts.map +1 -1
- package/dist/types/actions/getFeeHistory.d.ts +10 -0
- package/dist/types/actions/getFeeHistory.d.ts.map +1 -0
- package/dist/types/actions/getGasPrice.d.ts +10 -0
- package/dist/types/actions/getGasPrice.d.ts.map +1 -0
- package/dist/types/actions/getPublicClient.d.ts +3 -3
- package/dist/types/actions/getPublicClient.d.ts.map +1 -1
- package/dist/types/actions/getToken.d.ts +10 -8
- package/dist/types/actions/getToken.d.ts.map +1 -1
- package/dist/types/actions/getTransaction.d.ts +8 -6
- package/dist/types/actions/getTransaction.d.ts.map +1 -1
- package/dist/types/actions/getTransactionCount.d.ts +10 -0
- package/dist/types/actions/getTransactionCount.d.ts.map +1 -0
- package/dist/types/actions/getWalletClient.d.ts +5 -4
- package/dist/types/actions/getWalletClient.d.ts.map +1 -1
- package/dist/types/actions/multicall.d.ts +5 -4
- package/dist/types/actions/multicall.d.ts.map +1 -1
- package/dist/types/actions/readContract.d.ts +4 -4
- package/dist/types/actions/readContract.d.ts.map +1 -1
- package/dist/types/actions/readContracts.d.ts +3 -1
- package/dist/types/actions/readContracts.d.ts.map +1 -1
- package/dist/types/actions/reconnect.d.ts +5 -4
- package/dist/types/actions/reconnect.d.ts.map +1 -1
- package/dist/types/actions/sendTransaction.d.ts +7 -5
- package/dist/types/actions/sendTransaction.d.ts.map +1 -1
- package/dist/types/actions/signMessage.d.ts +7 -5
- package/dist/types/actions/signMessage.d.ts.map +1 -1
- package/dist/types/actions/signTypedData.d.ts +7 -4
- package/dist/types/actions/signTypedData.d.ts.map +1 -1
- package/dist/types/actions/simulateContract.d.ts +15 -11
- package/dist/types/actions/simulateContract.d.ts.map +1 -1
- package/dist/types/actions/switchAccount.d.ts +5 -4
- package/dist/types/actions/switchAccount.d.ts.map +1 -1
- package/dist/types/actions/switchChain.d.ts +9 -8
- package/dist/types/actions/switchChain.d.ts.map +1 -1
- package/dist/types/actions/verifyMessage.d.ts +10 -0
- package/dist/types/actions/verifyMessage.d.ts.map +1 -0
- package/dist/types/actions/verifyTypedData.d.ts +11 -0
- package/dist/types/actions/verifyTypedData.d.ts.map +1 -0
- package/dist/types/actions/waitForTransactionReceipt.d.ts +9 -6
- package/dist/types/actions/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/actions/watchAccount.d.ts +1 -1
- 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 +13 -0
- package/dist/types/actions/watchBlocks.d.ts.map +1 -0
- package/dist/types/actions/watchChainId.d.ts +2 -2
- package/dist/types/actions/watchChainId.d.ts.map +1 -1
- package/dist/types/actions/watchClient.d.ts +2 -2
- package/dist/types/actions/watchClient.d.ts.map +1 -1
- package/dist/types/actions/watchConnections.d.ts +2 -2
- package/dist/types/actions/watchConnections.d.ts.map +1 -1
- package/dist/types/actions/watchConnectors.d.ts +9 -0
- package/dist/types/actions/watchConnectors.d.ts.map +1 -0
- package/dist/types/actions/watchContractEvent.d.ts +5 -5
- package/dist/types/actions/watchContractEvent.d.ts.map +1 -1
- package/dist/types/actions/watchPendingTransactions.d.ts +2 -2
- package/dist/types/actions/watchPendingTransactions.d.ts.map +1 -1
- package/dist/types/actions/watchPublicClient.d.ts +2 -2
- package/dist/types/actions/watchPublicClient.d.ts.map +1 -1
- package/dist/types/actions/writeContract.d.ts +14 -10
- package/dist/types/actions/writeContract.d.ts.map +1 -1
- package/dist/types/{createConnector.d.ts → connectors/createConnector.d.ts} +7 -4
- package/dist/types/connectors/createConnector.d.ts.map +1 -0
- package/dist/types/connectors/injected.d.ts +356 -0
- package/dist/types/connectors/injected.d.ts.map +1 -0
- package/dist/types/connectors/mock.d.ts +20 -0
- package/dist/types/connectors/mock.d.ts.map +1 -0
- package/dist/types/createConfig.d.ts +30 -20
- 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/base.d.ts +13 -7
- package/dist/types/errors/base.d.ts.map +1 -1
- package/dist/types/errors/config.d.ts +17 -9
- package/dist/types/errors/config.d.ts.map +1 -1
- package/dist/types/errors/connector.d.ts +6 -0
- package/dist/types/errors/connector.d.ts.map +1 -1
- package/dist/types/exports/actions.d.ts +56 -25
- 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 +5 -0
- package/dist/types/exports/codegen.d.ts.map +1 -0
- package/dist/types/exports/index.d.ts +67 -29
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/internal.d.ts +3 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +9 -0
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/hydrate.d.ts +10 -0
- package/dist/types/hydrate.d.ts.map +1 -0
- package/dist/types/query/connect.d.ts +4 -4
- package/dist/types/query/connect.d.ts.map +1 -1
- package/dist/types/query/disconnect.d.ts +4 -4
- package/dist/types/query/disconnect.d.ts.map +1 -1
- package/dist/types/query/estimateFeesPerGas.d.ts +2 -2
- package/dist/types/query/estimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/query/estimateGas.d.ts +2 -2
- package/dist/types/query/estimateGas.d.ts.map +1 -1
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts +27 -0
- package/dist/types/query/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
- package/dist/types/query/getBalance.d.ts +2 -2
- package/dist/types/query/getBalance.d.ts.map +1 -1
- package/dist/types/query/getBlock.d.ts +19 -0
- package/dist/types/query/getBlock.d.ts.map +1 -0
- package/dist/types/query/getBlockNumber.d.ts +9 -12
- package/dist/types/query/getBlockNumber.d.ts.map +1 -1
- package/dist/types/query/getBlockTransactionCount.d.ts +18 -0
- package/dist/types/query/getBlockTransactionCount.d.ts.map +1 -0
- package/dist/types/query/getConnectorClient.d.ts +12 -3
- package/dist/types/query/getConnectorClient.d.ts.map +1 -1
- package/dist/types/query/getEnsAddress.d.ts +2 -2
- package/dist/types/query/getEnsAddress.d.ts.map +1 -1
- package/dist/types/query/getEnsAvatar.d.ts +2 -2
- package/dist/types/query/getEnsAvatar.d.ts.map +1 -1
- package/dist/types/query/getEnsName.d.ts +2 -2
- package/dist/types/query/getEnsName.d.ts.map +1 -1
- package/dist/types/query/getEnsResolver.d.ts +2 -2
- package/dist/types/query/getEnsResolver.d.ts.map +1 -1
- package/dist/types/query/getFeeHistory.d.ts +39 -0
- package/dist/types/query/getFeeHistory.d.ts.map +1 -0
- package/dist/types/query/getGasPrice.d.ts +27 -0
- package/dist/types/query/getGasPrice.d.ts.map +1 -0
- package/dist/types/query/getToken.d.ts +5 -5
- package/dist/types/query/getToken.d.ts.map +1 -1
- package/dist/types/query/getTransaction.d.ts +7 -95
- package/dist/types/query/getTransaction.d.ts.map +1 -1
- package/dist/types/query/getTransactionCount.d.ts +36 -0
- package/dist/types/query/getTransactionCount.d.ts.map +1 -0
- package/dist/types/query/getWalletClient.d.ts +27 -256
- package/dist/types/query/getWalletClient.d.ts.map +1 -1
- package/dist/types/query/infiniteReadContracts.d.ts +60 -0
- package/dist/types/query/infiniteReadContracts.d.ts.map +1 -0
- package/dist/types/query/readContract.d.ts +6 -6
- package/dist/types/query/readContract.d.ts.map +1 -1
- package/dist/types/query/readContracts.d.ts +15 -15
- package/dist/types/query/readContracts.d.ts.map +1 -1
- package/dist/types/query/reconnect.d.ts +5 -5
- package/dist/types/query/reconnect.d.ts.map +1 -1
- package/dist/types/query/sendTransaction.d.ts +4 -4
- 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 +224 -211
- package/dist/types/query/signTypedData.d.ts.map +1 -1
- package/dist/types/query/simulateContract.d.ts +5 -5
- package/dist/types/query/simulateContract.d.ts.map +1 -1
- package/dist/types/query/switchAccount.d.ts +5 -5
- package/dist/types/query/switchAccount.d.ts.map +1 -1
- package/dist/types/query/switchChain.d.ts +6 -6
- package/dist/types/query/switchChain.d.ts.map +1 -1
- package/dist/types/query/types.d.ts +12 -5
- package/dist/types/query/types.d.ts.map +1 -1
- package/dist/types/query/utils.d.ts +1 -1
- package/dist/types/query/utils.d.ts.map +1 -1
- package/dist/types/query/verifyMessage.d.ts +42 -0
- package/dist/types/query/verifyMessage.d.ts.map +1 -0
- package/dist/types/query/verifyTypedData.d.ts +19 -0
- package/dist/types/query/verifyTypedData.d.ts.map +1 -0
- package/dist/types/query/waitForTransactionReceipt.d.ts +9 -97
- package/dist/types/query/waitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/query/writeContract.d.ts +12 -8
- package/dist/types/query/writeContract.d.ts.map +1 -1
- package/dist/types/transports/connector.d.ts +15 -0
- package/dist/types/transports/connector.d.ts.map +1 -0
- package/dist/types/transports/fallback.d.ts +4 -0
- package/dist/types/transports/fallback.d.ts.map +1 -0
- 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 +4 -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 +9 -3
- package/dist/types/types/utils.d.ts.map +1 -1
- package/dist/types/utils/cookie.d.ts +9 -0
- package/dist/types/utils/cookie.d.ts.map +1 -0
- package/dist/types/version.d.ts +1 -1
- package/internal/package.json +5 -0
- package/package.json +25 -27
- package/query/package.json +5 -0
- package/src/actions/codegen/createReadContract.ts +100 -0
- package/src/actions/codegen/createSimulateContract.ts +122 -0
- package/src/actions/codegen/createWatchContractEvent.ts +87 -0
- package/src/actions/codegen/createWriteContract.ts +142 -0
- package/src/actions/connect.ts +32 -32
- package/src/actions/disconnect.ts +23 -20
- package/src/actions/estimateFeesPerGas.ts +7 -4
- package/src/actions/estimateGas.ts +16 -4
- package/src/actions/estimateMaxPriorityFeePerGas.ts +41 -0
- package/src/actions/getAccount.ts +11 -2
- package/src/actions/getBalance.ts +19 -8
- package/src/actions/getBlock.ts +71 -0
- package/src/actions/getBlockNumber.ts +14 -9
- package/src/actions/getBlockTransactionCount.ts +36 -0
- package/src/actions/getChainId.ts +2 -2
- package/src/actions/getClient.ts +3 -3
- package/src/actions/getConnections.ts +2 -2
- package/src/actions/getConnectorClient.ts +18 -9
- package/src/actions/getConnectors.ts +14 -0
- package/src/actions/getEnsAddress.ts +5 -4
- package/src/actions/getEnsAvatar.ts +5 -4
- package/src/actions/getEnsName.ts +5 -4
- package/src/actions/getEnsResolver.ts +5 -4
- package/src/actions/getFeeHistory.ts +32 -0
- package/src/actions/getGasPrice.ts +31 -0
- package/src/actions/getPublicClient.ts +3 -3
- package/src/actions/getToken.ts +10 -9
- package/src/actions/getTransaction.ts +8 -5
- package/src/actions/getTransactionCount.ts +31 -0
- package/src/actions/getWalletClient.ts +13 -4
- package/src/actions/multicall.ts +6 -3
- package/src/actions/readContract.ts +4 -3
- package/src/actions/readContracts.ts +4 -4
- package/src/actions/reconnect.ts +15 -10
- package/src/actions/sendTransaction.ts +20 -13
- package/src/actions/signMessage.ts +17 -5
- package/src/actions/signTypedData.ts +22 -5
- package/src/actions/simulateContract.ts +38 -31
- package/src/actions/switchAccount.ts +12 -4
- package/src/actions/switchChain.ts +27 -16
- package/src/actions/verifyMessage.ts +28 -0
- package/src/actions/verifyTypedData.ts +38 -0
- package/src/actions/waitForTransactionReceipt.ts +22 -16
- package/src/actions/watchAccount.ts +2 -1
- package/src/actions/watchBlockNumber.ts +4 -6
- package/src/actions/watchBlocks.ts +85 -0
- package/src/actions/watchChainId.ts +2 -2
- package/src/actions/watchClient.ts +2 -2
- package/src/actions/watchConnections.ts +2 -2
- package/src/actions/watchConnectors.ts +22 -0
- package/src/actions/watchContractEvent.ts +9 -10
- package/src/actions/watchPendingTransactions.ts +3 -5
- package/src/actions/watchPublicClient.ts +2 -2
- package/src/actions/writeContract.ts +52 -44
- package/src/{createConnector.ts → connectors/createConnector.ts} +12 -16
- package/src/connectors/injected.ts +556 -0
- package/src/connectors/mock.ts +176 -0
- package/src/createConfig.ts +153 -76
- package/src/createStorage.ts +7 -6
- package/src/errors/base.ts +9 -6
- package/src/errors/config.ts +20 -18
- package/src/errors/connector.ts +6 -0
- package/src/exports/actions.ts +121 -29
- package/src/exports/chains.ts +1 -0
- package/src/exports/codegen.ts +7 -0
- package/src/exports/index.ts +177 -47
- package/src/exports/internal.ts +12 -0
- package/src/exports/query.ts +82 -0
- package/src/hydrate.ts +42 -0
- package/src/query/connect.ts +4 -4
- package/src/query/disconnect.ts +5 -5
- package/src/query/estimateFeesPerGas.ts +4 -4
- package/src/query/estimateGas.ts +5 -5
- package/src/query/estimateMaxPriorityFeePerGas.ts +51 -0
- package/src/query/getBalance.ts +9 -17
- package/src/query/getBlock.ts +84 -0
- package/src/query/getBlockNumber.ts +22 -17
- package/src/query/getBlockTransactionCount.ts +62 -0
- package/src/query/getConnectorClient.ts +5 -4
- package/src/query/getEnsAddress.ts +4 -4
- package/src/query/getEnsAvatar.ts +4 -4
- package/src/query/getEnsName.ts +4 -4
- package/src/query/getEnsResolver.ts +4 -4
- package/src/query/getFeeHistory.ts +69 -0
- package/src/query/getGasPrice.ts +54 -0
- package/src/query/getToken.ts +4 -4
- package/src/query/getTransaction.ts +7 -13
- package/src/query/getTransactionCount.ts +55 -0
- package/src/query/getWalletClient.ts +5 -4
- package/src/query/infiniteReadContracts.ts +129 -0
- package/src/query/readContract.ts +14 -12
- package/src/query/readContracts.ts +16 -16
- package/src/query/reconnect.ts +6 -6
- package/src/query/sendTransaction.ts +5 -5
- package/src/query/signMessage.ts +4 -4
- package/src/query/signTypedData.ts +20 -8
- package/src/query/simulateContract.ts +12 -8
- package/src/query/switchAccount.ts +7 -7
- package/src/query/switchChain.ts +6 -6
- package/src/query/types.ts +63 -34
- package/src/query/utils.ts +16 -1
- package/src/query/verifyMessage.ts +54 -0
- package/src/query/verifyTypedData.ts +81 -0
- package/src/query/waitForTransactionReceipt.ts +6 -6
- package/src/query/writeContract.ts +39 -10
- package/src/transports/connector.ts +87 -0
- package/src/transports/fallback.ts +10 -0
- package/src/types/chain.ts +5 -4
- package/src/types/properties.ts +3 -1
- package/src/types/register.ts +1 -1
- package/src/types/utils.ts +10 -2
- package/src/utils/cookie.ts +34 -0
- package/src/version.ts +1 -1
- package/dist/esm/createConnector.js +0 -8
- package/dist/esm/createConnector.js.map +0 -1
- package/dist/esm/utils/assertActiveChain.js +0 -14
- package/dist/esm/utils/assertActiveChain.js.map +0 -1
- package/dist/types/createConnector.d.ts.map +0 -1
- package/dist/types/utils/assertActiveChain.d.ts +0 -8
- package/dist/types/utils/assertActiveChain.d.ts.map +0 -1
- package/src/utils/assertActiveChain.ts +0 -26
package/src/errors/config.ts
CHANGED
|
@@ -1,23 +1,11 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type Address } from 'viem'
|
|
2
|
+
|
|
2
3
|
import type { Connector } from '../createConfig.js'
|
|
3
4
|
import { BaseError } from './base.js'
|
|
4
5
|
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
constructor({
|
|
9
|
-
activeChain,
|
|
10
|
-
targetChain,
|
|
11
|
-
}: {
|
|
12
|
-
activeChain: string
|
|
13
|
-
targetChain: string
|
|
14
|
-
}) {
|
|
15
|
-
super('Chain mismatch', {
|
|
16
|
-
details: `Expected "${targetChain}", received "${activeChain}".`,
|
|
17
|
-
})
|
|
18
|
-
}
|
|
6
|
+
export type ChainNotConfiguredErrorType = ChainNotConfiguredError & {
|
|
7
|
+
name: 'ChainNotConfiguredError'
|
|
19
8
|
}
|
|
20
|
-
|
|
21
9
|
export class ChainNotConfiguredError extends BaseError {
|
|
22
10
|
override name = 'ChainNotConfiguredError'
|
|
23
11
|
constructor() {
|
|
@@ -25,6 +13,10 @@ export class ChainNotConfiguredError extends BaseError {
|
|
|
25
13
|
}
|
|
26
14
|
}
|
|
27
15
|
|
|
16
|
+
export type ConnectorAlreadyConnectedErrorType =
|
|
17
|
+
ConnectorAlreadyConnectedError & {
|
|
18
|
+
name: 'ConnectorAlreadyConnectedError'
|
|
19
|
+
}
|
|
28
20
|
export class ConnectorAlreadyConnectedError extends BaseError {
|
|
29
21
|
override name = 'ConnectorAlreadyConnectedError'
|
|
30
22
|
constructor() {
|
|
@@ -32,6 +24,9 @@ export class ConnectorAlreadyConnectedError extends BaseError {
|
|
|
32
24
|
}
|
|
33
25
|
}
|
|
34
26
|
|
|
27
|
+
export type ConnectorNotConnectedErrorType = ConnectorNotConnectedError & {
|
|
28
|
+
name: 'ConnectorNotConnectedError'
|
|
29
|
+
}
|
|
35
30
|
export class ConnectorNotConnectedError extends BaseError {
|
|
36
31
|
override name = 'ConnectorNotConnectedError'
|
|
37
32
|
constructor() {
|
|
@@ -39,6 +34,9 @@ export class ConnectorNotConnectedError extends BaseError {
|
|
|
39
34
|
}
|
|
40
35
|
}
|
|
41
36
|
|
|
37
|
+
export type ConnectorNotFoundErrorType = ConnectorNotFoundError & {
|
|
38
|
+
name: 'ConnectorNotFoundError'
|
|
39
|
+
}
|
|
42
40
|
export class ConnectorNotFoundError extends BaseError {
|
|
43
41
|
override name = 'ConnectorNotFoundError'
|
|
44
42
|
constructor() {
|
|
@@ -46,8 +44,12 @@ export class ConnectorNotFoundError extends BaseError {
|
|
|
46
44
|
}
|
|
47
45
|
}
|
|
48
46
|
|
|
49
|
-
export
|
|
50
|
-
|
|
47
|
+
export type ConnectorAccountNotFoundErrorType =
|
|
48
|
+
ConnectorAccountNotFoundError & {
|
|
49
|
+
name: 'ConnectorAccountNotFoundError'
|
|
50
|
+
}
|
|
51
|
+
export class ConnectorAccountNotFoundError extends BaseError {
|
|
52
|
+
override name = 'ConnectorAccountNotFoundError'
|
|
51
53
|
constructor({
|
|
52
54
|
address,
|
|
53
55
|
connector,
|
package/src/errors/connector.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import type { Connector } from '../createConfig.js'
|
|
2
2
|
import { BaseError } from './base.js'
|
|
3
3
|
|
|
4
|
+
export type ProviderNotFoundErrorType = ProviderNotFoundError & {
|
|
5
|
+
name: 'ProviderNotFoundError'
|
|
6
|
+
}
|
|
4
7
|
export class ProviderNotFoundError extends BaseError {
|
|
5
8
|
override name = 'ProviderNotFoundError'
|
|
6
9
|
constructor() {
|
|
@@ -8,6 +11,9 @@ export class ProviderNotFoundError extends BaseError {
|
|
|
8
11
|
}
|
|
9
12
|
}
|
|
10
13
|
|
|
14
|
+
export type SwitchChainNotSupportedErrorType = SwitchChainNotSupportedError & {
|
|
15
|
+
name: 'SwitchChainNotSupportedError'
|
|
16
|
+
}
|
|
11
17
|
export class SwitchChainNotSupportedError extends BaseError {
|
|
12
18
|
override name = 'SwitchChainNotSupportedError'
|
|
13
19
|
|
package/src/exports/actions.ts
CHANGED
|
@@ -1,33 +1,41 @@
|
|
|
1
1
|
////////////////////////////////////////////////////////////////////////////////
|
|
2
2
|
// Actions
|
|
3
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
3
4
|
|
|
4
5
|
export {
|
|
5
|
-
type
|
|
6
|
+
type ConnectErrorType,
|
|
6
7
|
type ConnectParameters,
|
|
7
8
|
type ConnectReturnType,
|
|
8
9
|
connect,
|
|
9
10
|
} from '../actions/connect.js'
|
|
10
11
|
|
|
11
12
|
export {
|
|
12
|
-
type
|
|
13
|
+
type DisconnectErrorType,
|
|
13
14
|
type DisconnectParameters,
|
|
14
15
|
type DisconnectReturnType,
|
|
15
16
|
disconnect,
|
|
16
17
|
} from '../actions/disconnect.js'
|
|
17
18
|
|
|
18
19
|
export {
|
|
19
|
-
type
|
|
20
|
+
type EstimateGasErrorType,
|
|
21
|
+
type EstimateGasParameters,
|
|
22
|
+
type EstimateGasReturnType,
|
|
23
|
+
estimateGas,
|
|
24
|
+
} from '../actions/estimateGas.js'
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
type EstimateFeesPerGasErrorType,
|
|
20
28
|
type EstimateFeesPerGasParameters,
|
|
21
29
|
type EstimateFeesPerGasReturnType,
|
|
22
30
|
estimateFeesPerGas,
|
|
23
31
|
} from '../actions/estimateFeesPerGas.js'
|
|
24
32
|
|
|
25
33
|
export {
|
|
26
|
-
type
|
|
27
|
-
type
|
|
28
|
-
type
|
|
29
|
-
|
|
30
|
-
} from '../actions/
|
|
34
|
+
type EstimateMaxPriorityFeePerGasErrorType,
|
|
35
|
+
type EstimateMaxPriorityFeePerGasParameters,
|
|
36
|
+
type EstimateMaxPriorityFeePerGasReturnType,
|
|
37
|
+
estimateMaxPriorityFeePerGas,
|
|
38
|
+
} from '../actions/estimateMaxPriorityFeePerGas.js'
|
|
31
39
|
|
|
32
40
|
export {
|
|
33
41
|
type GetAccountReturnType,
|
|
@@ -37,17 +45,35 @@ export {
|
|
|
37
45
|
export {
|
|
38
46
|
type GetBalanceParameters,
|
|
39
47
|
type GetBalanceReturnType,
|
|
40
|
-
type
|
|
48
|
+
type GetBalanceErrorType,
|
|
41
49
|
getBalance,
|
|
50
|
+
/** @deprecated use `getBalance` instead */
|
|
51
|
+
getBalance as fetchBalance,
|
|
42
52
|
} from '../actions/getBalance.js'
|
|
43
53
|
|
|
44
54
|
export {
|
|
45
|
-
type
|
|
55
|
+
type GetBlockErrorType,
|
|
56
|
+
type GetBlockParameters,
|
|
57
|
+
type GetBlockReturnType,
|
|
58
|
+
getBlock,
|
|
59
|
+
} from '../actions/getBlock.js'
|
|
60
|
+
|
|
61
|
+
export {
|
|
62
|
+
type GetBlockNumberErrorType,
|
|
46
63
|
type GetBlockNumberParameters,
|
|
47
64
|
type GetBlockNumberReturnType,
|
|
48
65
|
getBlockNumber,
|
|
66
|
+
/** @deprecated use `getBlockNumber` instead */
|
|
67
|
+
getBlockNumber as fetchBlockNumber,
|
|
49
68
|
} from '../actions/getBlockNumber.js'
|
|
50
69
|
|
|
70
|
+
export {
|
|
71
|
+
type GetBlockTransactionCountErrorType,
|
|
72
|
+
type GetBlockTransactionCountParameters,
|
|
73
|
+
type GetBlockTransactionCountReturnType,
|
|
74
|
+
getBlockTransactionCount,
|
|
75
|
+
} from '../actions/getBlockTransactionCount.js'
|
|
76
|
+
|
|
51
77
|
export {
|
|
52
78
|
type GetChainIdReturnType,
|
|
53
79
|
getChainId,
|
|
@@ -65,40 +91,67 @@ export {
|
|
|
65
91
|
} from '../actions/getConnections.js'
|
|
66
92
|
|
|
67
93
|
export {
|
|
68
|
-
type
|
|
94
|
+
type GetConnectorsReturnType,
|
|
95
|
+
getConnectors,
|
|
96
|
+
} from '../actions/getConnectors.js'
|
|
97
|
+
|
|
98
|
+
export {
|
|
99
|
+
type GetConnectorClientErrorType,
|
|
69
100
|
type GetConnectorClientParameters,
|
|
70
101
|
type GetConnectorClientReturnType,
|
|
71
102
|
getConnectorClient,
|
|
72
103
|
} from '../actions/getConnectorClient.js'
|
|
73
104
|
|
|
74
105
|
export {
|
|
75
|
-
type
|
|
106
|
+
type GetEnsAddressErrorType,
|
|
76
107
|
type GetEnsAddressParameters,
|
|
77
108
|
type GetEnsAddressReturnType,
|
|
78
109
|
getEnsAddress,
|
|
110
|
+
/** @deprecated use `getEnsAddress` instead */
|
|
111
|
+
getEnsAddress as fetchEnsAddress,
|
|
79
112
|
} from '../actions/getEnsAddress.js'
|
|
80
113
|
|
|
81
114
|
export {
|
|
82
|
-
type
|
|
115
|
+
type GetEnsAvatarErrorType,
|
|
83
116
|
type GetEnsAvatarParameters,
|
|
84
117
|
type GetEnsAvatarReturnType,
|
|
85
118
|
getEnsAvatar,
|
|
119
|
+
/** @deprecated use `getEnsAvatar` instead */
|
|
120
|
+
getEnsAvatar as fetchEnsAvatar,
|
|
86
121
|
} from '../actions/getEnsAvatar.js'
|
|
87
122
|
|
|
88
123
|
export {
|
|
89
|
-
type
|
|
124
|
+
type GetEnsNameErrorType,
|
|
90
125
|
type GetEnsNameParameters,
|
|
91
126
|
type GetEnsNameReturnType,
|
|
92
127
|
getEnsName,
|
|
128
|
+
/** @deprecated */
|
|
129
|
+
getEnsName as fetchEnsName,
|
|
93
130
|
} from '../actions/getEnsName.js'
|
|
94
131
|
|
|
95
132
|
export {
|
|
96
|
-
type
|
|
133
|
+
type GetEnsResolverErrorType,
|
|
97
134
|
type GetEnsResolverParameters,
|
|
98
135
|
type GetEnsResolverReturnType,
|
|
99
136
|
getEnsResolver,
|
|
137
|
+
/** @deprecated use `getEnsResolver` instead */
|
|
138
|
+
getEnsResolver as fetchEnsResolver,
|
|
100
139
|
} from '../actions/getEnsResolver.js'
|
|
101
140
|
|
|
141
|
+
export {
|
|
142
|
+
type GetFeeHistoryErrorType,
|
|
143
|
+
type GetFeeHistoryParameters,
|
|
144
|
+
type GetFeeHistoryReturnType,
|
|
145
|
+
getFeeHistory,
|
|
146
|
+
} from '../actions/getFeeHistory.js'
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
type GetGasPriceErrorType,
|
|
150
|
+
type GetGasPriceParameters,
|
|
151
|
+
type GetGasPriceReturnType,
|
|
152
|
+
getGasPrice,
|
|
153
|
+
} from '../actions/getGasPrice.js'
|
|
154
|
+
|
|
102
155
|
export {
|
|
103
156
|
type GetPublicClientParameters,
|
|
104
157
|
type GetPublicClientReturnType,
|
|
@@ -106,21 +159,32 @@ export {
|
|
|
106
159
|
} from '../actions/getPublicClient.js'
|
|
107
160
|
|
|
108
161
|
export {
|
|
109
|
-
type
|
|
162
|
+
type GetTokenErrorType,
|
|
110
163
|
type GetTokenParameters,
|
|
111
164
|
type GetTokenReturnType,
|
|
112
165
|
getToken,
|
|
166
|
+
/** @deprecated use `getToken` instead */
|
|
167
|
+
getToken as fetchToken,
|
|
113
168
|
} from '../actions/getToken.js'
|
|
114
169
|
|
|
115
170
|
export {
|
|
116
|
-
type
|
|
171
|
+
type GetTransactionErrorType,
|
|
117
172
|
type GetTransactionParameters,
|
|
118
173
|
type GetTransactionReturnType,
|
|
119
174
|
getTransaction,
|
|
175
|
+
/** @deprecated use `getTransaction` instead */
|
|
176
|
+
getTransaction as fetchTransaction,
|
|
120
177
|
} from '../actions/getTransaction.js'
|
|
121
178
|
|
|
122
179
|
export {
|
|
123
|
-
type
|
|
180
|
+
type GetTransactionCountErrorType,
|
|
181
|
+
type GetTransactionCountParameters,
|
|
182
|
+
type GetTransactionCountReturnType,
|
|
183
|
+
getTransactionCount,
|
|
184
|
+
} from '../actions/getTransactionCount.js'
|
|
185
|
+
|
|
186
|
+
export {
|
|
187
|
+
type GetWalletClientErrorType,
|
|
124
188
|
type GetWalletClientParameters,
|
|
125
189
|
type GetWalletClientReturnType,
|
|
126
190
|
getWalletClient,
|
|
@@ -135,72 +199,92 @@ export {
|
|
|
135
199
|
export {
|
|
136
200
|
type ReadContractParameters,
|
|
137
201
|
type ReadContractReturnType,
|
|
138
|
-
type
|
|
202
|
+
type ReadContractErrorType,
|
|
139
203
|
readContract,
|
|
140
204
|
} from '../actions/readContract.js'
|
|
141
205
|
|
|
142
206
|
export {
|
|
143
207
|
type ReadContractsParameters,
|
|
144
208
|
type ReadContractsReturnType,
|
|
145
|
-
type
|
|
209
|
+
type ReadContractsErrorType,
|
|
146
210
|
readContracts,
|
|
147
211
|
} from '../actions/readContracts.js'
|
|
148
212
|
|
|
149
213
|
export {
|
|
150
|
-
type
|
|
214
|
+
type ReconnectErrorType,
|
|
151
215
|
type ReconnectParameters,
|
|
152
216
|
type ReconnectReturnType,
|
|
153
217
|
reconnect,
|
|
154
218
|
} from '../actions/reconnect.js'
|
|
155
219
|
|
|
156
220
|
export {
|
|
157
|
-
type
|
|
221
|
+
type SendTransactionErrorType,
|
|
158
222
|
type SendTransactionParameters,
|
|
159
223
|
type SendTransactionReturnType,
|
|
160
224
|
sendTransaction,
|
|
161
225
|
} from '../actions/sendTransaction.js'
|
|
162
226
|
|
|
163
227
|
export {
|
|
164
|
-
type
|
|
228
|
+
type SignMessageErrorType,
|
|
165
229
|
type SignMessageParameters,
|
|
166
230
|
type SignMessageReturnType,
|
|
167
231
|
signMessage,
|
|
168
232
|
} from '../actions/signMessage.js'
|
|
169
233
|
|
|
170
234
|
export {
|
|
171
|
-
type
|
|
235
|
+
type SignTypedDataErrorType,
|
|
172
236
|
type SignTypedDataParameters,
|
|
173
237
|
type SignTypedDataReturnType,
|
|
174
238
|
signTypedData,
|
|
175
239
|
} from '../actions/signTypedData.js'
|
|
176
240
|
|
|
177
241
|
export {
|
|
178
|
-
type
|
|
242
|
+
type SimulateContractErrorType,
|
|
179
243
|
type SimulateContractParameters,
|
|
180
244
|
type SimulateContractReturnType,
|
|
181
245
|
simulateContract,
|
|
182
246
|
} from '../actions/simulateContract.js'
|
|
183
247
|
|
|
184
248
|
export {
|
|
185
|
-
type
|
|
249
|
+
type SwitchAccountErrorType,
|
|
186
250
|
type SwitchAccountParameters,
|
|
187
251
|
type SwitchAccountReturnType,
|
|
188
252
|
switchAccount,
|
|
189
253
|
} from '../actions/switchAccount.js'
|
|
190
254
|
|
|
191
255
|
export {
|
|
192
|
-
type
|
|
256
|
+
type SwitchChainErrorType,
|
|
193
257
|
type SwitchChainParameters,
|
|
194
258
|
type SwitchChainReturnType,
|
|
195
259
|
switchChain,
|
|
260
|
+
/** @deprecated use `switchChain` instead */
|
|
261
|
+
switchChain as switchNetwork,
|
|
196
262
|
} from '../actions/switchChain.js'
|
|
197
263
|
|
|
264
|
+
export {
|
|
265
|
+
type VerifyMessageParameters,
|
|
266
|
+
type VerifyMessageReturnType,
|
|
267
|
+
verifyMessage,
|
|
268
|
+
} from '../actions/verifyMessage.js'
|
|
269
|
+
|
|
270
|
+
export {
|
|
271
|
+
type VerifyTypedDataParameters,
|
|
272
|
+
type VerifyTypedDataReturnType,
|
|
273
|
+
verifyTypedData,
|
|
274
|
+
} from '../actions/verifyTypedData.js'
|
|
275
|
+
|
|
198
276
|
export {
|
|
199
277
|
type WatchAccountParameters,
|
|
200
278
|
type WatchAccountReturnType,
|
|
201
279
|
watchAccount,
|
|
202
280
|
} from '../actions/watchAccount.js'
|
|
203
281
|
|
|
282
|
+
export {
|
|
283
|
+
type WatchBlocksParameters,
|
|
284
|
+
type WatchBlocksReturnType,
|
|
285
|
+
watchBlocks,
|
|
286
|
+
} from '../actions/watchBlocks.js'
|
|
287
|
+
|
|
204
288
|
export {
|
|
205
289
|
type WatchBlockNumberParameters,
|
|
206
290
|
type WatchBlockNumberReturnType,
|
|
@@ -225,6 +309,12 @@ export {
|
|
|
225
309
|
watchConnections,
|
|
226
310
|
} from '../actions/watchConnections.js'
|
|
227
311
|
|
|
312
|
+
export {
|
|
313
|
+
type WatchConnectorsParameters,
|
|
314
|
+
type WatchConnectorsReturnType,
|
|
315
|
+
watchConnectors,
|
|
316
|
+
} from '../actions/watchConnectors.js'
|
|
317
|
+
|
|
228
318
|
export {
|
|
229
319
|
type WatchContractEventParameters,
|
|
230
320
|
type WatchContractEventReturnType,
|
|
@@ -244,14 +334,16 @@ export {
|
|
|
244
334
|
} from '../actions/watchPublicClient.js'
|
|
245
335
|
|
|
246
336
|
export {
|
|
247
|
-
type
|
|
337
|
+
type WaitForTransactionReceiptErrorType,
|
|
248
338
|
type WaitForTransactionReceiptParameters,
|
|
249
339
|
type WaitForTransactionReceiptReturnType,
|
|
250
340
|
waitForTransactionReceipt,
|
|
341
|
+
/** @deprecated use `waitForTransactionReceipt` instead */
|
|
342
|
+
waitForTransactionReceipt as waitForTransaction,
|
|
251
343
|
} from '../actions/waitForTransactionReceipt.js'
|
|
252
344
|
|
|
253
345
|
export {
|
|
254
|
-
type
|
|
346
|
+
type WriteContractErrorType,
|
|
255
347
|
type WriteContractParameters,
|
|
256
348
|
type WriteContractReturnType,
|
|
257
349
|
writeContract,
|
package/src/exports/chains.ts
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { createSimulateContract } from '../actions/codegen/createSimulateContract.js'
|
|
2
|
+
|
|
3
|
+
export { createReadContract } from '../actions/codegen/createReadContract.js'
|
|
4
|
+
|
|
5
|
+
export { createWatchContractEvent } from '../actions/codegen/createWatchContractEvent.js'
|
|
6
|
+
|
|
7
|
+
export { createWriteContract } from '../actions/codegen/createWriteContract.js'
|