wagmi 2.0.0 → 2.0.1
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/codegen/package.json +5 -0
- package/connectors/package.json +5 -0
- package/dist/esm/context.js +6 -11
- package/dist/esm/context.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/context.js +3 -1
- package/dist/esm/errors/context.js.map +1 -1
- package/dist/esm/exports/actions.js +2 -1
- 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 +12 -0
- package/dist/esm/exports/codegen.js.map +1 -0
- package/dist/esm/exports/connectors.js +1 -0
- package/dist/esm/exports/connectors.js.map +1 -1
- package/dist/esm/exports/index.js +43 -15
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/query.js +1 -0
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/hooks/codegen/createUseReadContract.js +33 -0
- package/dist/esm/hooks/codegen/createUseReadContract.js.map +1 -0
- package/dist/esm/hooks/codegen/createUseSimulateContract.js +33 -0
- package/dist/esm/hooks/codegen/createUseSimulateContract.js.map +1 -0
- package/dist/esm/hooks/codegen/createUseWatchContractEvent.js +32 -0
- package/dist/esm/hooks/codegen/createUseWatchContractEvent.js.map +1 -0
- package/dist/esm/hooks/codegen/createUseWriteContract.js +95 -0
- package/dist/esm/hooks/codegen/createUseWriteContract.js.map +1 -0
- package/dist/esm/hooks/useAccount.js +1 -1
- package/dist/esm/hooks/useAccount.js.map +1 -1
- package/dist/esm/hooks/useAccountEffect.js +10 -3
- package/dist/esm/hooks/useAccountEffect.js.map +1 -1
- package/dist/esm/hooks/useBalance.js +4 -4
- package/dist/esm/hooks/useBalance.js.map +1 -1
- package/dist/esm/hooks/useBlock.js +36 -0
- package/dist/esm/hooks/useBlock.js.map +1 -0
- package/dist/esm/hooks/useBlockNumber.js +6 -8
- package/dist/esm/hooks/useBlockNumber.js.map +1 -1
- package/dist/esm/hooks/useBlockTransactionCount.js +20 -0
- package/dist/esm/hooks/useBlockTransactionCount.js.map +1 -0
- package/dist/esm/hooks/useChainId.js +2 -2
- package/dist/esm/hooks/useChainId.js.map +1 -1
- package/dist/esm/hooks/useClient.js +1 -1
- package/dist/esm/hooks/useClient.js.map +1 -1
- package/dist/esm/hooks/useConfig.js +1 -1
- package/dist/esm/hooks/useConfig.js.map +1 -1
- package/dist/esm/hooks/useConnect.js +12 -2
- package/dist/esm/hooks/useConnect.js.map +1 -1
- package/dist/esm/hooks/useConnections.js +2 -2
- package/dist/esm/hooks/useConnections.js.map +1 -1
- package/dist/esm/hooks/useConnectorClient.js +2 -3
- package/dist/esm/hooks/useConnectorClient.js.map +1 -1
- package/dist/esm/hooks/useConnectors.js +10 -0
- package/dist/esm/hooks/useConnectors.js.map +1 -0
- package/dist/esm/hooks/useDisconnect.js +1 -1
- package/dist/esm/hooks/useDisconnect.js.map +1 -1
- package/dist/esm/hooks/useEnsAddress.js +4 -4
- package/dist/esm/hooks/useEnsAddress.js.map +1 -1
- package/dist/esm/hooks/useEnsAvatar.js +4 -4
- package/dist/esm/hooks/useEnsAvatar.js.map +1 -1
- package/dist/esm/hooks/useEnsName.js +4 -4
- package/dist/esm/hooks/useEnsName.js.map +1 -1
- package/dist/esm/hooks/useEnsResolver.js +4 -4
- package/dist/esm/hooks/useEnsResolver.js.map +1 -1
- package/dist/esm/hooks/useEstimateFeesPerGas.js +4 -4
- package/dist/esm/hooks/useEstimateFeesPerGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateGas.js +3 -3
- package/dist/esm/hooks/useEstimateGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js +19 -0
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js.map +1 -0
- package/dist/esm/hooks/useFeeHistory.js +20 -0
- package/dist/esm/hooks/useFeeHistory.js.map +1 -0
- package/dist/esm/hooks/useGasPrice.js +20 -0
- package/dist/esm/hooks/useGasPrice.js.map +1 -0
- package/dist/esm/hooks/useInfiniteReadContracts.js +24 -0
- package/dist/esm/hooks/useInfiniteReadContracts.js.map +1 -0
- package/dist/esm/hooks/usePublicClient.js +1 -1
- package/dist/esm/hooks/usePublicClient.js.map +1 -1
- package/dist/esm/hooks/{useContractRead.js → useReadContract.js} +5 -8
- package/dist/esm/hooks/useReadContract.js.map +1 -0
- package/dist/esm/hooks/{useContractReads.js → useReadContracts.js} +7 -9
- package/dist/esm/hooks/useReadContracts.js.map +1 -0
- package/dist/esm/hooks/useReconnect.js +1 -1
- package/dist/esm/hooks/useReconnect.js.map +1 -1
- package/dist/esm/hooks/useSendTransaction.js +1 -1
- package/dist/esm/hooks/useSendTransaction.js.map +1 -1
- package/dist/esm/hooks/useSignMessage.js +1 -1
- package/dist/esm/hooks/useSignMessage.js.map +1 -1
- package/dist/esm/hooks/useSignTypedData.js +1 -1
- package/dist/esm/hooks/useSignTypedData.js.map +1 -1
- package/dist/esm/hooks/{useContractSimulate.js → useSimulateContract.js} +6 -6
- package/dist/esm/hooks/useSimulateContract.js.map +1 -0
- package/dist/esm/hooks/useSwitchAccount.js +1 -1
- package/dist/esm/hooks/useSwitchAccount.js.map +1 -1
- package/dist/esm/hooks/useSwitchChain.js +1 -1
- package/dist/esm/hooks/useSwitchChain.js.map +1 -1
- package/dist/esm/hooks/useToken.js +8 -4
- package/dist/esm/hooks/useToken.js.map +1 -1
- package/dist/esm/hooks/useTransaction.js +8 -4
- package/dist/esm/hooks/useTransaction.js.map +1 -1
- package/dist/esm/hooks/useTransactionCount.js +19 -0
- package/dist/esm/hooks/useTransactionCount.js.map +1 -0
- package/dist/esm/hooks/useVerifyMessage.js +19 -0
- package/dist/esm/hooks/useVerifyMessage.js.map +1 -0
- package/dist/esm/hooks/useVerifyTypedData.js +25 -0
- package/dist/esm/hooks/useVerifyTypedData.js.map +1 -0
- package/dist/esm/hooks/useWaitForTransactionReceipt.js +9 -5
- package/dist/esm/hooks/useWaitForTransactionReceipt.js.map +1 -1
- package/dist/esm/hooks/useWalletClient.js +2 -3
- package/dist/esm/hooks/useWalletClient.js.map +1 -1
- package/dist/esm/hooks/useWatchBlockNumber.js +1 -1
- package/dist/esm/hooks/useWatchBlockNumber.js.map +1 -1
- package/dist/esm/hooks/useWatchBlocks.js +25 -0
- package/dist/esm/hooks/useWatchBlocks.js.map +1 -0
- package/dist/esm/hooks/useWatchContractEvent.js +1 -1
- package/dist/esm/hooks/useWatchContractEvent.js.map +1 -1
- package/dist/esm/hooks/useWatchPendingTransactions.js +1 -1
- package/dist/esm/hooks/useWatchPendingTransactions.js.map +1 -1
- package/dist/esm/hooks/{useContractWrite.js → useWriteContract.js} +5 -5
- package/dist/esm/hooks/useWriteContract.js.map +1 -0
- package/dist/esm/hydrate.js +28 -0
- package/dist/esm/hydrate.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/types/properties.js +3 -1
- package/dist/esm/types/properties.js.map +1 -1
- package/dist/esm/utils/query.js +10 -1
- package/dist/esm/utils/query.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/context.d.ts +6 -7
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/errors/base.d.ts +3 -0
- package/dist/types/errors/base.d.ts.map +1 -1
- package/dist/types/errors/context.d.ts +3 -0
- package/dist/types/errors/context.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 +6 -0
- package/dist/types/exports/codegen.d.ts.map +1 -0
- package/dist/types/exports/connectors.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +33 -10
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseReadContract.d.ts +18 -0
- package/dist/types/hooks/codegen/createUseReadContract.d.ts.map +1 -0
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts +21 -0
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts.map +1 -0
- package/dist/types/hooks/codegen/createUseWatchContractEvent.d.ts +14 -0
- package/dist/types/hooks/codegen/createUseWatchContractEvent.d.ts.map +1 -0
- package/dist/types/hooks/codegen/createUseWriteContract.d.ts +27 -0
- package/dist/types/hooks/codegen/createUseWriteContract.d.ts.map +1 -0
- package/dist/types/hooks/useAccount.d.ts +1 -1
- package/dist/types/hooks/useAccount.d.ts.map +1 -1
- package/dist/types/hooks/useAccountEffect.d.ts +2 -2
- package/dist/types/hooks/useAccountEffect.d.ts.map +1 -1
- package/dist/types/hooks/useBalance.d.ts +6 -8
- package/dist/types/hooks/useBalance.d.ts.map +1 -1
- package/dist/types/hooks/useBlock.d.ts +14 -0
- package/dist/types/hooks/useBlock.d.ts.map +1 -0
- package/dist/types/hooks/useBlockNumber.d.ts +8 -9
- package/dist/types/hooks/useBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useBlockTransactionCount.d.ts +10 -0
- package/dist/types/hooks/useBlockTransactionCount.d.ts.map +1 -0
- package/dist/types/hooks/useChainId.d.ts +1 -1
- package/dist/types/hooks/useChainId.d.ts.map +1 -1
- package/dist/types/hooks/useClient.d.ts +1 -1
- package/dist/types/hooks/useClient.d.ts.map +1 -1
- package/dist/types/hooks/useConfig.d.ts +1 -1
- package/dist/types/hooks/useConfig.d.ts.map +1 -1
- package/dist/types/hooks/useConnect.d.ts +5 -5
- package/dist/types/hooks/useConnect.d.ts.map +1 -1
- package/dist/types/hooks/useConnections.d.ts +1 -1
- package/dist/types/hooks/useConnections.d.ts.map +1 -1
- package/dist/types/hooks/useConnectorClient.d.ts +4 -4
- package/dist/types/hooks/useConnectorClient.d.ts.map +1 -1
- package/dist/types/hooks/useConnectors.d.ts +7 -0
- package/dist/types/hooks/useConnectors.d.ts.map +1 -0
- package/dist/types/hooks/useDisconnect.d.ts +4 -4
- package/dist/types/hooks/useDisconnect.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAddress.d.ts +6 -8
- package/dist/types/hooks/useEnsAddress.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAvatar.d.ts +6 -8
- package/dist/types/hooks/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/hooks/useEnsName.d.ts +6 -8
- package/dist/types/hooks/useEnsName.d.ts.map +1 -1
- package/dist/types/hooks/useEnsResolver.d.ts +6 -8
- package/dist/types/hooks/useEnsResolver.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts +6 -8
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateGas.d.ts +6 -8
- package/dist/types/hooks/useEstimateGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts +10 -0
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts.map +1 -0
- package/dist/types/hooks/useFeeHistory.d.ts +10 -0
- package/dist/types/hooks/useFeeHistory.d.ts.map +1 -0
- package/dist/types/hooks/useGasPrice.d.ts +10 -0
- package/dist/types/hooks/useGasPrice.d.ts.map +1 -0
- package/dist/types/hooks/useInfiniteReadContracts.d.ts +11 -0
- package/dist/types/hooks/useInfiniteReadContracts.d.ts.map +1 -0
- package/dist/types/hooks/usePublicClient.d.ts +1 -1
- package/dist/types/hooks/usePublicClient.d.ts.map +1 -1
- package/dist/types/hooks/{useContractRead.d.ts → useReadContract.d.ts} +8 -10
- package/dist/types/hooks/useReadContract.d.ts.map +1 -0
- package/dist/types/hooks/useReadContracts.d.ts +11 -0
- package/dist/types/hooks/useReadContracts.d.ts.map +1 -0
- package/dist/types/hooks/useReconnect.d.ts +4 -4
- package/dist/types/hooks/useReconnect.d.ts.map +1 -1
- package/dist/types/hooks/useSendTransaction.d.ts +4 -4
- package/dist/types/hooks/useSendTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useSignMessage.d.ts +4 -4
- package/dist/types/hooks/useSignMessage.d.ts.map +1 -1
- package/dist/types/hooks/useSignTypedData.d.ts +4 -4
- package/dist/types/hooks/useSignTypedData.d.ts.map +1 -1
- package/dist/types/hooks/{useContractSimulate.d.ts → useSimulateContract.d.ts} +8 -10
- package/dist/types/hooks/useSimulateContract.d.ts.map +1 -0
- package/dist/types/hooks/useSwitchAccount.d.ts +4 -4
- package/dist/types/hooks/useSwitchAccount.d.ts.map +1 -1
- package/dist/types/hooks/useSwitchChain.d.ts +4 -4
- package/dist/types/hooks/useSwitchChain.d.ts.map +1 -1
- package/dist/types/hooks/useToken.d.ts +10 -8
- package/dist/types/hooks/useToken.d.ts.map +1 -1
- package/dist/types/hooks/useTransaction.d.ts +6 -8
- package/dist/types/hooks/useTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionCount.d.ts +11 -0
- package/dist/types/hooks/useTransactionCount.d.ts.map +1 -0
- package/dist/types/hooks/useVerifyMessage.d.ts +11 -0
- package/dist/types/hooks/useVerifyMessage.d.ts.map +1 -0
- package/dist/types/hooks/useVerifyTypedData.d.ts +11 -0
- package/dist/types/hooks/useVerifyTypedData.d.ts.map +1 -0
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts +6 -8
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useWalletClient.d.ts +4 -4
- package/dist/types/hooks/useWalletClient.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlockNumber.d.ts +1 -1
- package/dist/types/hooks/useWatchBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlocks.d.ts +9 -0
- package/dist/types/hooks/useWatchBlocks.d.ts.map +1 -0
- package/dist/types/hooks/useWatchContractEvent.d.ts +1 -1
- package/dist/types/hooks/useWatchContractEvent.d.ts.map +1 -1
- package/dist/types/hooks/useWatchPendingTransactions.d.ts +1 -1
- package/dist/types/hooks/useWatchPendingTransactions.d.ts.map +1 -1
- package/dist/types/hooks/useWriteContract.d.ts +15 -0
- package/dist/types/hooks/useWriteContract.d.ts.map +1 -0
- package/dist/types/hydrate.d.ts +9 -0
- package/dist/types/hydrate.d.ts.map +1 -0
- package/dist/types/types/properties.d.ts +10 -1
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/utils/query.d.ts +12 -3
- package/dist/types/utils/query.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +26 -34
- package/query/package.json +5 -0
- package/src/context.ts +15 -14
- package/src/errors/base.ts +2 -1
- package/src/errors/context.ts +6 -1
- package/src/exports/actions.ts +2 -1
- package/src/exports/chains.ts +1 -0
- package/src/exports/codegen.ts +17 -0
- package/src/exports/connectors.ts +1 -0
- package/src/exports/index.ts +135 -37
- package/src/exports/query.ts +1 -0
- package/src/hooks/codegen/createUseReadContract.ts +128 -0
- package/src/hooks/codegen/createUseSimulateContract.ts +121 -0
- package/src/hooks/codegen/createUseWatchContractEvent.ts +98 -0
- package/src/hooks/codegen/createUseWriteContract.ts +290 -0
- package/src/hooks/useAccount.ts +1 -1
- package/src/hooks/useAccountEffect.ts +11 -4
- package/src/hooks/useBalance.ts +14 -21
- package/src/hooks/useBlock.ts +129 -0
- package/src/hooks/useBlockNumber.ts +30 -32
- package/src/hooks/useBlockTransactionCount.ts +65 -0
- package/src/hooks/useChainId.ts +2 -1
- package/src/hooks/useClient.ts +1 -1
- package/src/hooks/useConfig.ts +1 -1
- package/src/hooks/useConnect.ts +21 -6
- package/src/hooks/useConnections.ts +2 -1
- package/src/hooks/useConnectorClient.ts +9 -7
- package/src/hooks/useConnectors.ts +28 -0
- package/src/hooks/useDisconnect.ts +4 -4
- package/src/hooks/useEnsAddress.ts +18 -21
- package/src/hooks/useEnsAvatar.ts +18 -19
- package/src/hooks/useEnsName.ts +14 -21
- package/src/hooks/useEnsResolver.ts +18 -21
- package/src/hooks/useEstimateFeesPerGas.ts +14 -21
- package/src/hooks/useEstimateGas.ts +19 -22
- package/src/hooks/useEstimateMaxPriorityFeePerGas.ts +61 -0
- package/src/hooks/useFeeHistory.ts +62 -0
- package/src/hooks/useGasPrice.ts +60 -0
- package/src/hooks/useInfiniteReadContracts.ts +89 -0
- package/src/hooks/usePublicClient.ts +1 -1
- package/src/hooks/{useContractRead.ts → useReadContract.ts} +22 -25
- package/src/hooks/{useContractReads.ts → useReadContracts.ts} +27 -28
- package/src/hooks/useReconnect.ts +4 -4
- package/src/hooks/useSendTransaction.ts +4 -4
- package/src/hooks/useSignMessage.ts +4 -4
- package/src/hooks/useSignTypedData.ts +4 -4
- package/src/hooks/{useContractSimulate.ts → useSimulateContract.ts} +26 -27
- package/src/hooks/useSwitchAccount.ts +4 -4
- package/src/hooks/useSwitchChain.ts +8 -4
- package/src/hooks/useToken.ts +18 -21
- package/src/hooks/useTransaction.ts +22 -21
- package/src/hooks/useTransactionCount.ts +59 -0
- package/src/hooks/useVerifyMessage.ts +59 -0
- package/src/hooks/useVerifyTypedData.ts +81 -0
- package/src/hooks/useWaitForTransactionReceipt.ts +19 -22
- package/src/hooks/useWalletClient.ts +25 -21
- package/src/hooks/useWatchBlockNumber.ts +1 -1
- package/src/hooks/useWatchBlocks.ts +61 -0
- package/src/hooks/useWatchContractEvent.ts +1 -1
- package/src/hooks/useWatchPendingTransactions.ts +1 -1
- package/src/hooks/{useContractWrite.ts → useWriteContract.ts} +18 -14
- package/src/hydrate.ts +36 -0
- package/src/types/properties.ts +43 -1
- package/src/utils/query.ts +66 -15
- package/src/version.ts +1 -1
- package/dist/esm/hooks/useContractRead.js.map +0 -1
- package/dist/esm/hooks/useContractReads.js.map +0 -1
- package/dist/esm/hooks/useContractSimulate.js.map +0 -1
- package/dist/esm/hooks/useContractWrite.js.map +0 -1
- package/dist/types/hooks/useContractRead.d.ts.map +0 -1
- package/dist/types/hooks/useContractReads.d.ts +0 -13
- package/dist/types/hooks/useContractReads.d.ts.map +0 -1
- package/dist/types/hooks/useContractSimulate.d.ts.map +0 -1
- package/dist/types/hooks/useContractWrite.d.ts +0 -15
- package/dist/types/hooks/useContractWrite.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/types/properties.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"properties.js","sourceRoot":"","sources":["../../../src/types/properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,MAAM,uBAAuB,CAAA;AACxE,OAAO,EAAe,MAAM,aAAa,CAAA;AACzC,OAAO,EAAa,MAAM,sBAAsB,CAAA"}
|
package/dist/esm/utils/query.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { replaceEqualDeep, useQuery as tanstack_useQuery, } from '@tanstack/react-query';
|
|
1
|
+
import { replaceEqualDeep, useInfiniteQuery as tanstack_useInfiniteQuery, useQuery as tanstack_useQuery, } from '@tanstack/react-query';
|
|
2
2
|
import { deepEqual, } from '@wagmi/core/internal';
|
|
3
3
|
import { hashFn } from '@wagmi/core/query';
|
|
4
4
|
// Adding some basic customization.
|
|
@@ -12,6 +12,15 @@ export function useQuery(parameters) {
|
|
|
12
12
|
result.queryKey = parameters.queryKey;
|
|
13
13
|
return result;
|
|
14
14
|
}
|
|
15
|
+
// Adding some basic customization.
|
|
16
|
+
export function useInfiniteQuery(parameters) {
|
|
17
|
+
const result = tanstack_useInfiniteQuery({
|
|
18
|
+
...parameters,
|
|
19
|
+
queryKeyHashFn: hashFn, // for bigint support
|
|
20
|
+
});
|
|
21
|
+
result.queryKey = parameters.queryKey;
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
15
24
|
////////////////////////////////////////////////////////////////////////////////
|
|
16
25
|
export function structuralSharing(oldData, newData) {
|
|
17
26
|
if (deepEqual(oldData, newData))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"query.js","sourceRoot":"","sources":["../../../src/utils/query.ts"],"names":[],"mappings":"AAAA,OAAO,EASL,gBAAgB,EAChB,gBAAgB,IAAI,yBAAyB,EAC7C,QAAQ,IAAI,iBAAiB,GAC9B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAIL,SAAS,GACV,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAkD1C,mCAAmC;AACnC,0IAA0I;AAC1I,yGAAyG;AACzG,MAAM,UAAU,QAAQ,CACtB,UAEC;IAED,MAAM,MAAM,GAAG,iBAAiB,CAAC;QAC/B,GAAI,UAAkB;QACtB,cAAc,EAAE,MAAM,EAAE,qBAAqB;KAC9C,CAAoC,CAAA;IACrC,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAA;IACrC,OAAO,MAAM,CAAA;AACf,CAAC;AA0CD,mCAAmC;AACnC,MAAM,UAAU,gBAAgB,CAM9B,UAEC;IAED,MAAM,MAAM,GAAG,yBAAyB,CAAC;QACvC,GAAI,UAAkB;QACtB,cAAc,EAAE,MAAM,EAAE,qBAAqB;KAC9C,CAA4C,CAAA;IAC7C,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAA;IACrC,OAAO,MAAM,CAAA;AACf,CAAC;AAED,gFAAgF;AAEhF,MAAM,UAAU,iBAAiB,CAC/B,OAAyB,EACzB,OAAa;IAEb,IAAI,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC;QAAE,OAAO,OAAe,CAAA;IACvD,OAAO,gBAAgB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;AAC3C,CAAC"}
|
package/dist/esm/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '2.0.
|
|
1
|
+
export const version = '2.0.1';
|
|
2
2
|
//# sourceMappingURL=version.js.map
|
package/dist/types/context.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type ResolvedRegister } from '@wagmi/core';
|
|
3
|
-
import { type OneOf } from '@wagmi/core/internal';
|
|
2
|
+
import { type ResolvedRegister, type State } from '@wagmi/core';
|
|
4
3
|
export declare const WagmiContext: import("react").Context<import("@wagmi/core").Config | undefined>;
|
|
5
|
-
export type WagmiProviderProps =
|
|
4
|
+
export type WagmiProviderProps = {
|
|
6
5
|
config: ResolvedRegister['config'];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
export declare function WagmiProvider(parameters: React.PropsWithChildren<WagmiProviderProps>): import("react").FunctionComponentElement<import("react").
|
|
6
|
+
initialState?: State | undefined;
|
|
7
|
+
reconnectOnMount?: boolean | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare function WagmiProvider(parameters: React.PropsWithChildren<WagmiProviderProps>): import("react").FunctionComponentElement<import("react").PropsWithChildren<import("./hydrate.js").HydrateProps>>;
|
|
11
10
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,gBAAgB,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAA;AAI/D,eAAO,MAAM,YAAY,mEAEb,CAAA;AAEZ,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAA;IAClC,YAAY,CAAC,EAAE,KAAK,GAAG,SAAS,CAAA;IAChC,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CACvC,CAAA;AAED,wBAAgB,aAAa,CAC3B,UAAU,EAAE,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,oHAUxD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/errors/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAIpD,qBAAa,SAAU,SAAQ,SAAS;IAC7B,IAAI,SAAe;IAC5B,IAAa,WAAW,WAEvB;IACD,IAAa,OAAO,WAEnB;CACF"}
|
|
1
|
+
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/errors/base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA;AAIpD,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG;IAAE,IAAI,EAAE,YAAY,CAAA;CAAE,CAAA;AAC9D,qBAAa,SAAU,SAAQ,SAAS;IAC7B,IAAI,SAAe;IAC5B,IAAa,WAAW,WAEvB;IACD,IAAa,OAAO,WAEnB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/errors/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,qBAAa,0BAA2B,SAAQ,SAAS;IAC9C,IAAI,SAA+B;;
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/errors/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAErC,MAAM,MAAM,8BAA8B,GAAG,0BAA0B,GAAG;IACxE,IAAI,EAAE,4BAA4B,CAAA;CACnC,CAAA;AACD,qBAAa,0BAA2B,SAAQ,SAAS;IAC9C,IAAI,SAA+B;;CAM7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/exports/actions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/exports/actions.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/exports/chains.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chains.d.ts","sourceRoot":"","sources":["../../../src/exports/chains.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from '@wagmi/core/codegen';
|
|
2
|
+
export { createUseSimulateContract } from '../hooks/codegen/createUseSimulateContract.js';
|
|
3
|
+
export { createUseReadContract } from '../hooks/codegen/createUseReadContract.js';
|
|
4
|
+
export { createUseWatchContractEvent } from '../hooks/codegen/createUseWatchContractEvent.js';
|
|
5
|
+
export { createUseWriteContract } from '../hooks/codegen/createUseWriteContract.js';
|
|
6
|
+
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../src/exports/codegen.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAA;AAMnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,+CAA+C,CAAA;AAEzF,OAAO,EAAE,qBAAqB,EAAE,MAAM,2CAA2C,CAAA;AAEjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAA;AAE7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../../src/exports/connectors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../../src/exports/connectors.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAA"}
|
|
@@ -1,46 +1,69 @@
|
|
|
1
|
-
export { custom, fallback, http, webSocket, } from 'viem';
|
|
2
1
|
export { type WagmiProviderProps, WagmiContext, WagmiProvider,
|
|
3
2
|
/** @deprecated Use `WagmiContext` instead */
|
|
4
3
|
WagmiContext as Context,
|
|
5
4
|
/** @deprecated Use `WagmiProvider` instead */
|
|
6
5
|
WagmiProvider as WagmiConfig, } from '../context.js';
|
|
7
|
-
export { BaseError } from '../errors/base.js';
|
|
8
|
-
export { WagmiProviderNotFoundError } from '../errors/context.js';
|
|
6
|
+
export { type BaseErrorType, BaseError } from '../errors/base.js';
|
|
7
|
+
export { type WagmiProviderNotFoundErrorType, WagmiProviderNotFoundError, } from '../errors/context.js';
|
|
9
8
|
export { type UseAccountParameters, type UseAccountReturnType, useAccount, } from '../hooks/useAccount.js';
|
|
10
9
|
export { type UseAccountEffectParameters, useAccountEffect, } from '../hooks/useAccountEffect.js';
|
|
11
10
|
export { type UseBalanceParameters, type UseBalanceReturnType, useBalance, } from '../hooks/useBalance.js';
|
|
11
|
+
export { type UseBlockParameters, type UseBlockReturnType, useBlock, } from '../hooks/useBlock.js';
|
|
12
12
|
export { type UseBlockNumberParameters, type UseBlockNumberReturnType, useBlockNumber, } from '../hooks/useBlockNumber.js';
|
|
13
|
+
export { type UseBlockTransactionCountParameters, type UseBlockTransactionCountReturnType, useBlockTransactionCount, } from '../hooks/useBlockTransactionCount.js';
|
|
13
14
|
export { type UseChainIdParameters, type UseChainIdReturnType, useChainId, } from '../hooks/useChainId.js';
|
|
14
15
|
export { type UseClientParameters, type UseClientReturnType, useClient, } from '../hooks/useClient.js';
|
|
15
16
|
export { type UseConfigParameters, type UseConfigReturnType, useConfig, } from '../hooks/useConfig.js';
|
|
16
17
|
export { type UseConnectParameters, type UseConnectReturnType, useConnect, } from '../hooks/useConnect.js';
|
|
17
18
|
export { type UseConnectionsParameters, type UseConnectionsReturnType, useConnections, } from '../hooks/useConnections.js';
|
|
19
|
+
export { type UseConnectorsParameters, type UseConnectorsReturnType, useConnectors, } from '../hooks/useConnectors.js';
|
|
18
20
|
export { type UseConnectorClientParameters, type UseConnectorClientReturnType, useConnectorClient, } from '../hooks/useConnectorClient.js';
|
|
19
|
-
export { type UseContractReadParameters, type UseContractReadReturnType, useContractRead, } from '../hooks/useContractRead.js';
|
|
20
|
-
export { type UseContractReadsParameters, type UseContractReadsReturnType, useContractReads, } from '../hooks/useContractReads.js';
|
|
21
|
-
export { type UseContractWriteParameters, type UseContractWriteReturnType, useContractWrite, } from '../hooks/useContractWrite.js';
|
|
22
21
|
export { type UseDisconnectParameters, type UseDisconnectReturnType, useDisconnect, } from '../hooks/useDisconnect.js';
|
|
23
22
|
export { type UseEnsAddressParameters, type UseEnsAddressReturnType, useEnsAddress, } from '../hooks/useEnsAddress.js';
|
|
24
23
|
export { type UseEnsAvatarParameters, type UseEnsAvatarReturnType, useEnsAvatar, } from '../hooks/useEnsAvatar.js';
|
|
25
24
|
export { type UseEnsNameParameters, type UseEnsNameReturnType, useEnsName, } from '../hooks/useEnsName.js';
|
|
26
25
|
export { type UseEnsResolverParameters, type UseEnsResolverReturnType, useEnsResolver, } from '../hooks/useEnsResolver.js';
|
|
27
|
-
export { type UseEstimateFeesPerGasParameters, type UseEstimateFeesPerGasReturnType, useEstimateFeesPerGas,
|
|
26
|
+
export { type UseEstimateFeesPerGasParameters, type UseEstimateFeesPerGasReturnType, useEstimateFeesPerGas,
|
|
27
|
+
/** @deprecated Use `useEstimateFeesPerGas` instead */
|
|
28
|
+
useEstimateFeesPerGas as useFeeData, } from '../hooks/useEstimateFeesPerGas.js';
|
|
28
29
|
export { type UseEstimateGasParameters, type UseEstimateGasReturnType, useEstimateGas, } from '../hooks/useEstimateGas.js';
|
|
29
|
-
export { type
|
|
30
|
+
export { type UseEstimateMaxPriorityFeePerGasParameters, type UseEstimateMaxPriorityFeePerGasReturnType, useEstimateMaxPriorityFeePerGas, } from '../hooks/useEstimateMaxPriorityFeePerGas.js';
|
|
31
|
+
export { type UseFeeHistoryParameters, type UseFeeHistoryReturnType, useFeeHistory, } from '../hooks/useFeeHistory.js';
|
|
32
|
+
export { type UseGasPriceParameters, type UseGasPriceReturnType, useGasPrice, } from '../hooks/useGasPrice.js';
|
|
33
|
+
export { type UseInfiniteContractReadsParameters, type UseInfiniteContractReadsReturnType, useInfiniteReadContracts,
|
|
34
|
+
/** @deprecated Use `useInfiniteReadContracts` instead */
|
|
35
|
+
useInfiniteReadContracts as useContractInfiniteReads, } from '../hooks/useInfiniteReadContracts.js';
|
|
30
36
|
export { type UsePublicClientParameters, type UsePublicClientReturnType, usePublicClient, } from '../hooks/usePublicClient.js';
|
|
37
|
+
export { type UseReadContractParameters, type UseReadContractReturnType, useReadContract,
|
|
38
|
+
/** @deprecated Use `useWriteContract` instead */
|
|
39
|
+
useReadContract as useContractRead, } from '../hooks/useReadContract.js';
|
|
40
|
+
export { type UseReadContractsParameters, type UseReadContractsReturnType, useReadContracts,
|
|
41
|
+
/** @deprecated Use `useWriteContract` instead */
|
|
42
|
+
useReadContracts as useContractReads, } from '../hooks/useReadContracts.js';
|
|
31
43
|
export { type UseReconnectParameters, type UseReconnectReturnType, useReconnect, } from '../hooks/useReconnect.js';
|
|
32
44
|
export { type UseSendTransactionParameters, type UseSendTransactionReturnType, useSendTransaction, } from '../hooks/useSendTransaction.js';
|
|
33
45
|
export { type UseSignMessageParameters, type UseSignMessageReturnType, useSignMessage, } from '../hooks/useSignMessage.js';
|
|
34
46
|
export { type UseSignTypedDataParameters, type UseSignTypedDataReturnType, useSignTypedData, } from '../hooks/useSignTypedData.js';
|
|
47
|
+
export { type UseSimulateContractParameters, type UseSimulateContractReturnType, useSimulateContract, } from '../hooks/useSimulateContract.js';
|
|
35
48
|
export { type UseSwitchAccountParameters, type UseSwitchAccountReturnType, useSwitchAccount, } from '../hooks/useSwitchAccount.js';
|
|
36
49
|
export { type UseSwitchChainParameters, type UseSwitchChainReturnType, useSwitchChain, } from '../hooks/useSwitchChain.js';
|
|
37
|
-
export { type UseTokenParameters, type UseTokenReturnType,
|
|
50
|
+
export { type UseTokenParameters, type UseTokenReturnType,
|
|
51
|
+
/** @deprecated Use `useReadContracts` instead */
|
|
52
|
+
useToken, } from '../hooks/useToken.js';
|
|
38
53
|
export { type UseTransactionParameters, type UseTransactionReturnType, useTransaction, } from '../hooks/useTransaction.js';
|
|
54
|
+
export { type UseTransactionCountParameters, type UseTransactionCountReturnType, useTransactionCount, } from '../hooks/useTransactionCount.js';
|
|
55
|
+
export { type UseVerifyMessageParameters, type UseVerifyMessageReturnType, useVerifyMessage, } from '../hooks/useVerifyMessage.js';
|
|
56
|
+
export { type UseVerifyTypedDataParameters, type UseVerifyTypedDataReturnType, useVerifyTypedData, } from '../hooks/useVerifyTypedData.js';
|
|
39
57
|
export { type UseWalletClientParameters, type UseWalletClientReturnType, useWalletClient, } from '../hooks/useWalletClient.js';
|
|
40
58
|
export { type UseWaitForTransactionReceiptParameters, type UseWaitForTransactionReceiptReturnType, useWaitForTransactionReceipt, } from '../hooks/useWaitForTransactionReceipt.js';
|
|
59
|
+
export { type UseWatchBlocksParameters, type UseWatchBlocksReturnType, useWatchBlocks, } from '../hooks/useWatchBlocks.js';
|
|
41
60
|
export { type UseWatchBlockNumberParameters, type UseWatchBlockNumberReturnType, useWatchBlockNumber, } from '../hooks/useWatchBlockNumber.js';
|
|
42
61
|
export { type UseWatchContractEventParameters, type UseWatchContractEventReturnType, useWatchContractEvent, } from '../hooks/useWatchContractEvent.js';
|
|
43
62
|
export { type UseWatchPendingTransactionsParameters, type UseWatchPendingTransactionsReturnType, useWatchPendingTransactions, } from '../hooks/useWatchPendingTransactions.js';
|
|
44
|
-
export { type
|
|
63
|
+
export { type UseWriteContractParameters, type UseWriteContractReturnType, useWriteContract,
|
|
64
|
+
/** @deprecated Use `useWriteContract` instead */
|
|
65
|
+
useWriteContract as useContractWrite, } from '../hooks/useWriteContract.js';
|
|
66
|
+
export { type HydrateProps, Hydrate, } from '../hydrate.js';
|
|
67
|
+
export { type Connection, type Connector, type Config, type CreateConfigParameters, type State, createConfig, type ConnectorEventMap, type CreateConnectorFn, createConnector, type ChainNotConfiguredErrorType, ChainNotConfiguredError, type ConnectorAlreadyConnectedErrorType, ConnectorAlreadyConnectedError, type ConnectorNotFoundErrorType, ConnectorNotFoundError, type ConnectorAccountNotFoundErrorType, ConnectorAccountNotFoundError, type ProviderNotFoundErrorType, ProviderNotFoundError, type SwitchChainNotSupportedErrorType, SwitchChainNotSupportedError, type CreateStorageParameters, type Storage, createStorage, noopStorage, custom, fallback, http, webSocket, unstable_connector, type Register, type ResolvedRegister, cookieStorage, cookieToInitialState, deepEqual, deserialize, normalizeChainId, parseCookie, serialize, } from '@wagmi/core';
|
|
45
68
|
export { version } from '../version.js';
|
|
46
69
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/exports/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,KAAK,kBAAkB,EACvB,YAAY,EACZ,aAAa;AACb,6CAA6C;AAC7C,YAAY,IAAI,OAAO;AACvB,8CAA8C;AAC9C,aAAa,IAAI,WAAW,GAC7B,MAAM,eAAe,CAAA;AAMtB,OAAO,EAAE,KAAK,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAEjE,OAAO,EACL,KAAK,8BAA8B,EACnC,0BAA0B,GAC3B,MAAM,sBAAsB,CAAA;AAM7B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,UAAU,GACX,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,KAAK,0BAA0B,EAC/B,gBAAgB,GACjB,MAAM,8BAA8B,CAAA;AAErC,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,UAAU,GACX,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,KAAK,kBAAkB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AE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/exports/query.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/exports/query.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type Config, type ReadContractErrorType, type ReadContractParameters, type ResolvedRegister } from '@wagmi/core';
|
|
2
|
+
import { type ScopeKeyParameter, type UnionEvaluate, type UnionOmit, type UnionPartial } from '@wagmi/core/internal';
|
|
3
|
+
import { type ReadContractData, type ReadContractQueryFnData, type ReadContractQueryKey } from '@wagmi/core/query';
|
|
4
|
+
import { type Abi, type Address, type ContractFunctionArgs, type ContractFunctionName } from 'viem';
|
|
5
|
+
import { type ConfigParameter, type QueryParameter } from '../../types/properties.js';
|
|
6
|
+
import { type UseReadContractReturnType } from '../useReadContract.js';
|
|
7
|
+
type stateMutability = 'pure' | 'view';
|
|
8
|
+
export type CreateUseReadContractParameters<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined> = {
|
|
9
|
+
abi: abi | Abi | readonly unknown[];
|
|
10
|
+
address?: address | Address | Record<number, Address> | undefined;
|
|
11
|
+
functionName?: functionName | ContractFunctionName<abi, stateMutability> | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type CreateUseReadContractReturnType<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined, omittedProperties extends 'abi' | 'address' | 'chainId' | 'functionName' = 'abi' | (address extends undefined ? never : 'address') | (address extends Record<number, Address> ? 'chainId' : never) | (functionName extends undefined ? never : 'functionName')> = <name extends functionName extends ContractFunctionName<abi, stateMutability> ? functionName : ContractFunctionName<abi, stateMutability>, args extends ContractFunctionArgs<abi, stateMutability, name>, config extends Config = ResolvedRegister['config'], selectData = ReadContractData<abi, name, args>>(parameters?: UnionEvaluate<UnionPartial<UnionOmit<ReadContractParameters<abi, name, args, config>, omittedProperties>> & ScopeKeyParameter & ConfigParameter<config> & QueryParameter<ReadContractQueryFnData<abi, name, args>, ReadContractErrorType, selectData, ReadContractQueryKey<abi, name, args, config>>> & (address extends Record<number, Address> ? {
|
|
14
|
+
chainId?: keyof address | undefined;
|
|
15
|
+
} : unknown)) => UseReadContractReturnType<abi, name, args, selectData>;
|
|
16
|
+
export declare function createUseReadContract<const abi extends Abi | readonly unknown[], const address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined>(config: CreateUseReadContractParameters<abi, address, functionName>): CreateUseReadContractReturnType<abi, address, functionName>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=createUseReadContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUseReadContract.d.ts","sourceRoot":"","sources":["../../../../src/hooks/codegen/createUseReadContract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,oBAAoB,EAC1B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,MAAM,CAAA;AAEb,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EACL,K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|
|
1
|
+
import { type Config, type ResolvedRegister, type SimulateContractErrorType, type SimulateContractParameters } from '@wagmi/core';
|
|
2
|
+
import { type ScopeKeyParameter, type UnionPartial } from '@wagmi/core/internal';
|
|
3
|
+
import { type SimulateContractData, type SimulateContractQueryFnData, type SimulateContractQueryKey } from '@wagmi/core/query';
|
|
4
|
+
import { type Abi, type Address, type ContractFunctionArgs, type ContractFunctionName } from 'viem';
|
|
5
|
+
import { type ConfigParameter, type QueryParameter } from '../../types/properties.js';
|
|
6
|
+
import { type UseSimulateContractReturnType } from '../useSimulateContract.js';
|
|
7
|
+
type stateMutability = 'nonpayable' | 'payable';
|
|
8
|
+
export type CreateUseSimulateContractParameters<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined> = {
|
|
9
|
+
abi: abi | Abi | readonly unknown[];
|
|
10
|
+
address?: address | Address | Record<number, Address> | undefined;
|
|
11
|
+
functionName?: functionName | ContractFunctionName<abi, stateMutability> | undefined;
|
|
12
|
+
};
|
|
13
|
+
export type CreateUseSimulateContractReturnType<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined> = <name extends functionName extends ContractFunctionName<abi, stateMutability> ? functionName : ContractFunctionName<abi, stateMutability>, args extends ContractFunctionArgs<abi, stateMutability, name>, config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] | undefined = undefined, selectData = SimulateContractData<abi, name, args, config, chainId>>(parameters?: {
|
|
14
|
+
abi?: undefined;
|
|
15
|
+
address?: address extends undefined ? Address : undefined;
|
|
16
|
+
functionName?: functionName extends undefined ? name : undefined;
|
|
17
|
+
chainId?: address extends Record<number, Address> ? keyof address | (chainId extends keyof address ? chainId : never) | undefined : chainId | number | undefined;
|
|
18
|
+
} & UnionPartial<SimulateContractParameters<abi, name, args, config, chainId>> & ScopeKeyParameter & ConfigParameter<config> & QueryParameter<SimulateContractQueryFnData<abi, name, args, config, chainId>, SimulateContractErrorType, selectData, SimulateContractQueryKey<abi, name, args, config, chainId>>) => UseSimulateContractReturnType<abi, name, args, config, chainId, selectData>;
|
|
19
|
+
export declare function createUseSimulateContract<const abi extends Abi | readonly unknown[], const address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined>(config: CreateUseSimulateContractParameters<abi, address, functionName>): CreateUseSimulateContractReturnType<abi, address, functionName>;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=createUseSimulateContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUseSimulateContract.d.ts","sourceRoot":"","sources":["../../../../src/hooks/codegen/createUseSimulateContract.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAChC,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,KAAK,iBAAiB,EAAE,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC9B,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EACL,KAAK,GAAG,EACR,KAAK,OAAO,EACZ,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,MAAM,CAAA;AAEb,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,2BAA2B,CAAA;AAGlC,OAAO,EACL,KAAK,6BAA6B,EAEnC,MAAM,2BAA2B,CAAA;AAElC,KAAK,eAAe,GAAG,YAAY,GAAG,SAAS,CAAA;AAE/C,MAAM,MAAM,mCAAmC,CAC7C,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACpC,OAAO,SAAS,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,GAAG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,SAAS,CAAA;IAChE,OAAO,CAAC,EAAE,OAAO,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAEzC,MAAM,OAAO,GACb,CAAC,OAAO,SAAS,MAAM,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,GACjD,SAAS,GACb,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA;CACjC,GAAG,YAAY,CAEd,0BAA0B,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAC7D,GACC,iBAAiB,GACjB,eAAe,CAAC,MAAM,CAAC,GACvB,cAAc,CACZ,2BAA2B,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAC7D,yBAAyB,EACzB,UAAU,EACV,wBAAwB,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAC3D,KACA,6BAA6B,CAAC,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,CAAC,CAAA;AAEhF,wBAAgB,yBAAyB,CACvC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAC1C,KAAK,CAAC,OAAO,SACT,OAAO,GACP,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACvB,SAAS,GAAG,SAAS,EACzB,YAAY,SACR,oBAAoB,CAAC,GAAG,EAAE,eAAe,CAAC,GAC1C,SAAS,GAAG,SAAS,EAEzB,MAAM,EAAE,mCAAmC,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,CAAC,GACtE,mCAAmC,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,CAAC,CAyBjE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Config, type ResolvedRegister, type WatchContractEventParameters } from '@wagmi/core';
|
|
2
|
+
import { type UnionEvaluate, type UnionOmit, type UnionPartial } from '@wagmi/core/internal';
|
|
3
|
+
import { type Abi, type Address, type ContractEventName } from 'viem';
|
|
4
|
+
import { type ConfigParameter, type EnabledParameter } from '../../types/properties.js';
|
|
5
|
+
export type CreateUseWatchContractEventParameters<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined = undefined, eventName extends ContractEventName<abi> | undefined = undefined> = {
|
|
6
|
+
abi: abi | Abi | readonly unknown[];
|
|
7
|
+
address?: address | Address | Record<number, Address> | undefined;
|
|
8
|
+
eventName?: eventName | ContractEventName<abi> | undefined;
|
|
9
|
+
};
|
|
10
|
+
export type CreateUseWatchContractEventReturnType<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined, eventName extends ContractEventName<abi> | undefined, omittedProperties extends 'abi' | 'address' | 'chainId' | 'eventName' = 'abi' | (address extends undefined ? never : 'address') | (address extends Record<number, Address> ? 'chainId' : never) | (eventName extends undefined ? never : 'eventName')> = <name extends eventName extends ContractEventName<abi> ? eventName : ContractEventName<abi>, strict extends boolean | undefined = undefined, config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id']>(parameters?: UnionEvaluate<UnionPartial<UnionOmit<WatchContractEventParameters<abi, name, strict, config, chainId>, omittedProperties>> & ConfigParameter<config> & EnabledParameter> & (address extends Record<number, Address> ? {
|
|
11
|
+
chainId?: keyof address | undefined;
|
|
12
|
+
} : unknown)) => void;
|
|
13
|
+
export declare function createUseWatchContractEvent<const abi extends Abi | readonly unknown[], const address extends Address | Record<number, Address> | undefined = undefined, eventName extends ContractEventName<abi> | undefined = undefined>(config: CreateUseWatchContractEventParameters<abi, address, eventName>): CreateUseWatchContractEventReturnType<abi, address, eventName>;
|
|
14
|
+
//# sourceMappingURL=createUseWatchContractEvent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUseWatchContractEvent.d.ts","sourceRoot":"","sources":["../../../../src/hooks/codegen/createUseWatchContractEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,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1,27 @@
|
|
|
1
|
+
import { type MutateOptions } from '@tanstack/react-query';
|
|
2
|
+
import { type Config, type ResolvedRegister, type WriteContractErrorType } from '@wagmi/core';
|
|
3
|
+
import type { ChainIdParameter, ConnectorParameter, Evaluate, SelectChains, UnionEvaluate, UnionOmit } from '@wagmi/core/internal';
|
|
4
|
+
import { type WriteContractData, type WriteContractVariables } from '@wagmi/core/query';
|
|
5
|
+
import { type Abi, type Account, type Address, type Chain, type ContractFunctionArgs, type ContractFunctionName } from 'viem';
|
|
6
|
+
import { type WriteContractParameters as viem_WriteContractParameters } from 'viem/actions';
|
|
7
|
+
import { type UseWriteContractParameters, type UseWriteContractReturnType as wagmi_UseWriteContractReturnType } from '../useWriteContract.js';
|
|
8
|
+
type stateMutability = 'nonpayable' | 'payable';
|
|
9
|
+
export type CreateUseWriteContractParameters<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined> = {
|
|
10
|
+
abi: abi | Abi | readonly unknown[];
|
|
11
|
+
address?: address | Address | Record<number, Address> | undefined;
|
|
12
|
+
functionName?: functionName | ContractFunctionName<abi, stateMutability> | undefined;
|
|
13
|
+
};
|
|
14
|
+
export type CreateUseWriteContractReturnType<abi extends Abi | readonly unknown[], address extends Address | Record<number, Address> | undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined> = <config extends Config = ResolvedRegister['config'], context = unknown>(parameters?: UseWriteContractParameters<config, context>) => Evaluate<Omit<wagmi_UseWriteContractReturnType<config, context>, 'writeContract' | 'writeContractAsync'> & {
|
|
15
|
+
writeContract: <const abi2 extends abi, name extends functionName extends ContractFunctionName<abi, stateMutability> ? functionName : ContractFunctionName<abi, stateMutability>, args extends ContractFunctionArgs<abi2, stateMutability, name>, chainId extends config['chains'][number]['id']>(variables: Variables<abi2, functionName, name, args, config, chainId, address>, options?: MutateOptions<WriteContractData, WriteContractErrorType, WriteContractVariables<abi2, name, args, config, chainId, name>, context> | undefined) => void;
|
|
16
|
+
writeContractAsync: <const abi2 extends abi, name extends functionName extends ContractFunctionName<abi, stateMutability> ? functionName : ContractFunctionName<abi, stateMutability>, args extends ContractFunctionArgs<abi2, stateMutability, name>, chainId extends config['chains'][number]['id']>(variables: Variables<abi2, functionName, name, args, config, chainId, address>, options?: MutateOptions<WriteContractData, WriteContractErrorType, WriteContractVariables<abi2, name, args, config, chainId, name>, context> | undefined) => Promise<WriteContractData>;
|
|
17
|
+
}>;
|
|
18
|
+
export declare function createUseWriteContract<const abi extends Abi | readonly unknown[], const address extends Address | Record<number, Address> | undefined = undefined, functionName extends ContractFunctionName<abi, stateMutability> | undefined = undefined>(config: CreateUseWriteContractParameters<abi, address, functionName>): CreateUseWriteContractReturnType<abi, address, functionName>;
|
|
19
|
+
type Variables<abi extends Abi | readonly unknown[], functionName extends ContractFunctionName<abi, stateMutability> | undefined, name extends ContractFunctionName<abi, stateMutability>, args extends ContractFunctionArgs<abi, stateMutability, name>, config extends Config, chainId extends config['chains'][number]['id'], address extends Address | Record<number, Address> | undefined, allFunctionNames = ContractFunctionName<abi, stateMutability>, chains extends readonly Chain[] = SelectChains<config, chainId>, omittedProperties extends 'abi' | 'address' | 'functionName' = 'abi' | (address extends undefined ? never : 'address') | (functionName extends undefined ? never : 'functionName')> = UnionEvaluate<{
|
|
20
|
+
[key in keyof chains]: UnionOmit<viem_WriteContractParameters<abi, name, args, chains[key], Account, chains[key], allFunctionNames>, omittedProperties | 'chain'>;
|
|
21
|
+
}[number] & (address extends Record<number, Address> ? {
|
|
22
|
+
chainId?: keyof address | (chainId extends keyof address ? chainId : never) | undefined;
|
|
23
|
+
} : Evaluate<ChainIdParameter<config, chainId>>) & ConnectorParameter & {
|
|
24
|
+
__mode?: 'prepared';
|
|
25
|
+
}>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=createUseWriteContract.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createUseWriteContract.d.ts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3
3
|
export type UseAccountParameters = ConfigParameter;
|
|
4
4
|
export type UseAccountReturnType = GetAccountReturnType;
|
|
5
|
-
/** https://
|
|
5
|
+
/** https://wagmi.sh/react/api/hooks/useAccount */
|
|
6
6
|
export declare function useAccount(parameters?: UseAccountParameters): UseAccountReturnType;
|
|
7
7
|
//# sourceMappingURL=useAccount.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAI7D,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAA;AAElD,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAA;AAEvD,
|
|
1
|
+
{"version":3,"file":"useAccount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccount.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,oBAAoB,EAG1B,MAAM,aAAa,CAAA;AAEpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAI7D,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAA;AAElD,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAA;AAEvD,kDAAkD;AAClD,wBAAgB,UAAU,CACxB,UAAU,GAAE,oBAAyB,GACpC,oBAAoB,CAOtB"}
|
|
@@ -4,11 +4,11 @@ import type { ConfigParameter } from '../types/properties.js';
|
|
|
4
4
|
export type UseAccountEffectParameters = Evaluate<{
|
|
5
5
|
onConnect?(data: Evaluate<Pick<Extract<GetAccountReturnType, {
|
|
6
6
|
status: 'connected';
|
|
7
|
-
}>, 'address' | 'addresses' | 'chainId' | 'connector'> & {
|
|
7
|
+
}>, 'address' | 'addresses' | 'chain' | 'chainId' | 'connector'> & {
|
|
8
8
|
isReconnected: boolean;
|
|
9
9
|
}>): void;
|
|
10
10
|
onDisconnect?(): void;
|
|
11
11
|
} & ConfigParameter>;
|
|
12
|
-
/** https://
|
|
12
|
+
/** https://wagmi.sh/react/api/hooks/useAccountEffect */
|
|
13
13
|
export declare function useAccountEffect(parameters?: UseAccountEffectParameters): void;
|
|
14
14
|
//# sourceMappingURL=useAccountEffect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAccountEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccountEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAgB,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C;IACE,SAAS,CAAC,CACR,IAAI,EAAE,QAAQ,CACZ,IAAI,CACF,OAAO,CAAC,oBAAoB,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,CAAC,EACtD,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,WAAW,
|
|
1
|
+
{"version":3,"file":"useAccountEffect.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAccountEffect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAgB,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAC/C;IACE,SAAS,CAAC,CACR,IAAI,EAAE,QAAQ,CACZ,IAAI,CACF,OAAO,CAAC,oBAAoB,EAAE;QAAE,MAAM,EAAE,WAAW,CAAA;KAAE,CAAC,EACtD,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAC5D,GAAG;QACF,aAAa,EAAE,OAAO,CAAA;KACvB,CACF,GACA,IAAI,CAAA;IACP,YAAY,CAAC,IAAI,IAAI,CAAA;CACtB,GAAG,eAAe,CACpB,CAAA;AAED,wDAAwD;AACxD,wBAAgB,gBAAgB,CAAC,UAAU,GAAE,0BAA+B,QAmC3E"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { type Config, type
|
|
1
|
+
import { type Config, type GetBalanceErrorType, type ResolvedRegister } from '@wagmi/core';
|
|
2
2
|
import type { Evaluate } from '@wagmi/core/internal';
|
|
3
3
|
import { type GetBalanceData, type GetBalanceOptions, type GetBalanceQueryKey } from '@wagmi/core/query';
|
|
4
4
|
import type { GetBalanceQueryFnData } from '@wagmi/core/query';
|
|
5
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
6
|
-
import { type
|
|
7
|
-
export type UseBalanceParameters<config extends Config = Config, selectData = GetBalanceData> = Evaluate<GetBalanceOptions<config> & ConfigParameter<config> &
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type UseBalanceReturnType<selectData = GetBalanceData> = UseQueryReturnType<selectData, GetBalanceError>;
|
|
11
|
-
/** https://alpha.wagmi.sh/react/api/hooks/useBalance */
|
|
5
|
+
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
6
|
+
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
+
export type UseBalanceParameters<config extends Config = Config, selectData = GetBalanceData> = Evaluate<GetBalanceOptions<config> & ConfigParameter<config> & QueryParameter<GetBalanceQueryFnData, GetBalanceErrorType, selectData, GetBalanceQueryKey<config>>>;
|
|
8
|
+
export type UseBalanceReturnType<selectData = GetBalanceData> = UseQueryReturnType<selectData, GetBalanceErrorType>;
|
|
9
|
+
/** https://wagmi.sh/react/api/hooks/useBalance */
|
|
12
10
|
export declare function useBalance<config extends Config = ResolvedRegister['config'], selectData = GetBalanceData>(parameters?: UseBalanceParameters<config, selectData>): UseBalanceReturnType<selectData>;
|
|
13
11
|
//# sourceMappingURL=useBalance.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBalance.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"useBalance.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBalance.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AACpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAExB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAE9D,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,UAAU,GAAG,cAAc,IACzB,QAAQ,CACV,iBAAiB,CAAC,MAAM,CAAC,GACvB,eAAe,CAAC,MAAM,CAAC,GACvB,cAAc,CACZ,qBAAqB,EACrB,mBAAmB,EACnB,UAAU,EACV,kBAAkB,CAAC,MAAM,CAAC,CAC3B,CACJ,CAAA;AAED,MAAM,MAAM,oBAAoB,CAAC,UAAU,GAAG,cAAc,IAC1D,kBAAkB,CAAC,UAAU,EAAE,mBAAmB,CAAC,CAAA;AAErD,kDAAkD;AAClD,wBAAgB,UAAU,CACxB,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,UAAU,GAAG,cAAc,EAE3B,UAAU,GAAE,oBAAoB,CAAC,MAAM,EAAE,UAAU,CAAM,GACxD,oBAAoB,CAAC,UAAU,CAAC,CAalC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Config, type GetBlockErrorType, type ResolvedRegister } from '@wagmi/core';
|
|
2
|
+
import { type Evaluate, type UnionEvaluate, type UnionOmit } from '@wagmi/core/internal';
|
|
3
|
+
import { type GetBlockData, type GetBlockOptions, type GetBlockQueryFnData, type GetBlockQueryKey } from '@wagmi/core/query';
|
|
4
|
+
import type { BlockTag } from 'viem';
|
|
5
|
+
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
6
|
+
import { type UseQueryReturnType } from '../utils/query.js';
|
|
7
|
+
import { type UseWatchBlocksParameters } from './useWatchBlocks.js';
|
|
8
|
+
export type UseBlockParameters<includeTransactions extends boolean = false, blockTag extends BlockTag = 'latest', config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockData<includeTransactions, blockTag, config, chainId>> = Evaluate<GetBlockOptions<includeTransactions, blockTag, config, chainId> & ConfigParameter<config> & QueryParameter<GetBlockQueryFnData<includeTransactions, blockTag, config, chainId>, GetBlockErrorType, selectData, GetBlockQueryKey<includeTransactions, blockTag, config, chainId>> & {
|
|
9
|
+
watch?: boolean | UnionEvaluate<UnionOmit<UseWatchBlocksParameters<includeTransactions, blockTag, config, chainId>, 'chainId' | 'config' | 'onBlock' | 'onError'>> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
export type UseBlockReturnType<includeTransactions extends boolean = false, blockTag extends BlockTag = 'latest', config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockData<includeTransactions, blockTag, config, chainId>> = UseQueryReturnType<selectData, GetBlockErrorType>;
|
|
12
|
+
/** https://wagmi.sh/react/hooks/useBlock */
|
|
13
|
+
export declare function useBlock<includeTransactions extends boolean = false, blockTag extends BlockTag = 'latest', config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockData<includeTransactions, blockTag, config, chainId>>(parameters?: UseBlockParameters<includeTransactions, blockTag, config, chainId, selectData>): UseBlockReturnType<includeTransactions, blockTag, config, chainId, selectData>;
|
|
14
|
+
//# sourceMappingURL=useBlock.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBlock.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBlock.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,EAEtB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAA;AAEpC,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAGrE,OAAO,EACL,KAAK,wBAAwB,EAE9B,MAAM,qBAAqB,CAAA;AAE5B,MAAM,MAAM,kBAAkB,CAC5B,mBAAmB,SAAS,OAAO,GAAG,KAAK,EAC3C,QAAQ,SAAS,QAAQ,GAAG,QAAQ,EACpC,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAC/E,UAAU,GAAG,YAAY,CAAC,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,IACvE,QAAQ,CACV,eAAe,CA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CAAC,EAC/E,UAAU,GAAG,YAAY,CAAC,mBAAmB,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAEzE,UAAU,GAAE,kBAAkB,CAC5B,mBAAmB,EACnB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,UAAU,CACN,GACL,kBAAkB,CACnB,mBAAmB,EACnB,QAAQ,EACR,MAAM,EACN,OAAO,EACP,UAAU,CACX,CAoCA"}
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { type Config, type
|
|
2
|
-
import { type Evaluate } from '@wagmi/core/internal';
|
|
1
|
+
import { type Config, type GetBlockNumberErrorType, type ResolvedRegister } from '@wagmi/core';
|
|
2
|
+
import { type Evaluate, type UnionEvaluate, type UnionOmit } from '@wagmi/core/internal';
|
|
3
3
|
import { type GetBlockNumberData, type GetBlockNumberOptions, type GetBlockNumberQueryFnData, type GetBlockNumberQueryKey } from '@wagmi/core/query';
|
|
4
|
-
import type { ConfigParameter } from '../types/properties.js';
|
|
5
|
-
import { type
|
|
4
|
+
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
5
|
+
import { type UseQueryReturnType } from '../utils/query.js';
|
|
6
6
|
import { type UseWatchBlockNumberParameters } from './useWatchBlockNumber.js';
|
|
7
|
-
export type UseBlockNumberParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData> = Evaluate<GetBlockNumberOptions<config> & ConfigParameter<config> & {
|
|
8
|
-
|
|
9
|
-
watch?: boolean | Omit<UseWatchBlockNumberParameters<config, chainId>, 'chainId' | 'config' | 'onBlockNumber' | 'onError'> | undefined;
|
|
7
|
+
export type UseBlockNumberParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData> = Evaluate<GetBlockNumberOptions<config, chainId> & ConfigParameter<config> & QueryParameter<GetBlockNumberQueryFnData, GetBlockNumberErrorType, selectData, GetBlockNumberQueryKey<config, chainId>> & {
|
|
8
|
+
watch?: boolean | UnionEvaluate<UnionOmit<UseWatchBlockNumberParameters<config, chainId>, 'chainId' | 'config' | 'onBlockNumber' | 'onError'>> | undefined;
|
|
10
9
|
}>;
|
|
11
|
-
export type UseBlockNumberReturnType<selectData = GetBlockNumberData> = UseQueryReturnType<selectData,
|
|
12
|
-
/** https://
|
|
10
|
+
export type UseBlockNumberReturnType<selectData = GetBlockNumberData> = UseQueryReturnType<selectData, GetBlockNumberErrorType>;
|
|
11
|
+
/** https://wagmi.sh/react/api/hooks/useBlockNumber */
|
|
13
12
|
export declare function useBlockNumber<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockNumberData>(parameters?: UseBlockNumberParameters<config, chainId, selectData>): UseBlockNumberReturnType<selectData>;
|
|
14
13
|
//# sourceMappingURL=useBlockNumber.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBlockNumber.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,
|
|
1
|
+
{"version":3,"file":"useBlockNumber.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBlockNumber.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,uBAAuB,EAC5B,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,KAAK,SAAS,EACf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,qBAAqB,EAC1B,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAE5B,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAG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, type ResolvedRegister } from '@wagmi/core';
|
|
2
|
+
import { type UnionEvaluate } from '@wagmi/core/internal';
|
|
3
|
+
import { type GetBlockTransactionCountData, type GetBlockTransactionCountOptions, type GetBlockTransactionCountQueryFnData, type GetBlockTransactionCountQueryKey } from '@wagmi/core/query';
|
|
4
|
+
import type { ConfigParameter, QueryParameter } from '../types/properties.js';
|
|
5
|
+
import { type UseQueryReturnType } from '../utils/query.js';
|
|
6
|
+
export type UseBlockTransactionCountParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockTransactionCountData> = UnionEvaluate<GetBlockTransactionCountOptions<config, chainId> & ConfigParameter<config> & QueryParameter<GetBlockTransactionCountQueryFnData, GetBlockTransactionCountErrorType, selectData, GetBlockTransactionCountQueryKey<config, chainId>>>;
|
|
7
|
+
export type UseBlockTransactionCountReturnType<selectData = GetBlockTransactionCountData> = UseQueryReturnType<selectData, GetBlockTransactionCountErrorType>;
|
|
8
|
+
/** https://wagmi.sh/react/api/hooks/useBlockTransactionCount */
|
|
9
|
+
export declare function useBlockTransactionCount<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id'], selectData = GetBlockTransactionCountData>(parameters?: UseBlockTransactionCountParameters<config, chainId, selectData>): UseBlockTransactionCountReturnType<selectData>;
|
|
10
|
+
//# sourceMappingURL=useBlockTransactionCount.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useBlockTransactionCount.d.ts","sourceRoot":"","sources":["../../../src/hooks/useBlockTransactionCount.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACtB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACzD,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,+BAA+B,EACpC,KAAK,mCAAmC,EACxC,KAAK,gCAAgC,EAEtC,MAAM,mBAAmB,CAAA;AAE1B,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC7E,OAAO,EAAE,KAAK,kBAAkB,EAAY,MAAM,mBAAmB,CAAA;AAIrE,MAAM,MAAM,kCAAkC,CAC5C,MAAM,SAAS,MAAM,GAAG,MAAM,EAC9B,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAC/E,UAAU,GAAG,4BAA4B,IACvC,aAAa,CACf,+BAA+B,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9C,eAAe,CAAC,MAAM,CAAC,GACvB,cAAc,CACZ,mCAAmC,EACnC,iCAAiC,EACjC,UAAU,EACV,gCAAgC,CAAC,MAAM,EAAE,OAAO,CAAC,CAClD,CACJ,CAAA;AAED,MAAM,MAAM,kCAAkC,CAC5C,UAAU,GAAG,4BAA4B,IACvC,kBAAkB,CAAC,UAAU,EAAE,iCAAiC,CAAC,CAAA;AAErE,gEAAgE;AAChE,wBAAgB,wBAAwB,CACtC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAClD,OAAO,SAAS,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,EAC/E,UAAU,GAAG,4BAA4B,EAEzC,UAAU,GAAE,kCAAkC,CAC5C,MAAM,EACN,OAAO,EACP,UAAU,CACN,GACL,kCAAkC,CAAC,UAAU,CAAC,CAahD"}
|
|
@@ -2,6 +2,6 @@ import { type Config, type GetChainIdReturnType, type ResolvedRegister } from '@
|
|
|
2
2
|
import type { ConfigParameter } from '../types/properties.js';
|
|
3
3
|
export type UseChainIdParameters<config extends Config = Config> = ConfigParameter<config>;
|
|
4
4
|
export type UseChainIdReturnType<config extends Config = Config> = GetChainIdReturnType<config>;
|
|
5
|
-
/** https://
|
|
5
|
+
/** https://wagmi.sh/react/api/hooks/useChainId */
|
|
6
6
|
export declare function useChainId<config extends Config = ResolvedRegister['config']>(parameters?: UseChainIdParameters<config>): UseChainIdReturnType<config>;
|
|
7
7
|
//# sourceMappingURL=useChainId.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChainId.d.ts","sourceRoot":"","sources":["../../../src/hooks/useChainId.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EAGtB,MAAM,aAAa,CAAA;AAGpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAC7D,eAAe,CAAC,MAAM,CAAC,CAAA;AAEzB,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAC7D,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAE9B,
|
|
1
|
+
{"version":3,"file":"useChainId.d.ts","sourceRoot":"","sources":["../../../src/hooks/useChainId.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,MAAM,EACX,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EAGtB,MAAM,aAAa,CAAA;AAGpB,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAG7D,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAC7D,eAAe,CAAC,MAAM,CAAC,CAAA;AAEzB,MAAM,MAAM,oBAAoB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,IAC7D,oBAAoB,CAAC,MAAM,CAAC,CAAA;AAE9B,kDAAkD;AAClD,wBAAgB,UAAU,CAAC,MAAM,SAAS,MAAM,GAAG,gBAAgB,CAAC,QAAQ,CAAC,EAC3E,UAAU,GAAE,oBAAoB,CAAC,MAAM,CAAM,GAC5C,oBAAoB,CAAC,MAAM,CAAC,CAQ9B"}
|
|
@@ -3,6 +3,6 @@ import type { Evaluate } from '@wagmi/core/internal';
|
|
|
3
3
|
import type { ConfigParameter } from '../types/properties.js';
|
|
4
4
|
export type UseClientParameters<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id']> = Evaluate<GetClientParameters<config, chainId> & ConfigParameter<config>>;
|
|
5
5
|
export type UseClientReturnType<config extends Config = Config, chainId extends config['chains'][number]['id'] = config['chains'][number]['id']> = GetClientReturnType<config, chainId>;
|
|
6
|
-
/** https://
|
|
6
|
+
/** https://wagmi.sh/react/api/hooks/useClient */
|
|
7
7
|
export declare function useClient<config extends Config = ResolvedRegister['config'], chainId extends config['chains'][number]['id'] = config['chains'][number]['id']>(parameters?: UseClientParameters<config, chainId>): UseClientReturnType<config, chainId>;
|
|
8
8
|
//# sourceMappingURL=useClient.d.ts.map
|