wagmi 3.3.2 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/exports/index.js +3 -0
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/hooks/codegen/createUseWriteContract.js +2 -0
- package/dist/esm/hooks/codegen/createUseWriteContract.js.map +1 -1
- package/dist/esm/hooks/useBalance.js +0 -1
- package/dist/esm/hooks/useBalance.js.map +1 -1
- package/dist/esm/hooks/useBlobBaseFee.js +16 -0
- package/dist/esm/hooks/useBlobBaseFee.js.map +1 -0
- package/dist/esm/hooks/useBlock.js +0 -1
- package/dist/esm/hooks/useBlock.js.map +1 -1
- package/dist/esm/hooks/useBlockNumber.js +0 -1
- package/dist/esm/hooks/useBlockNumber.js.map +1 -1
- package/dist/esm/hooks/useBlockTransactionCount.js +0 -1
- package/dist/esm/hooks/useBlockTransactionCount.js.map +1 -1
- package/dist/esm/hooks/useBytecode.js +0 -1
- package/dist/esm/hooks/useBytecode.js.map +1 -1
- package/dist/esm/hooks/useCall.js +0 -1
- package/dist/esm/hooks/useCall.js.map +1 -1
- package/dist/esm/hooks/useCallsStatus.js +0 -1
- package/dist/esm/hooks/useCallsStatus.js.map +1 -1
- package/dist/esm/hooks/useCapabilities.js +0 -1
- package/dist/esm/hooks/useCapabilities.js.map +1 -1
- package/dist/esm/hooks/useConnect.js +2 -5
- package/dist/esm/hooks/useConnect.js.map +1 -1
- package/dist/esm/hooks/useContractEvents.js +16 -0
- package/dist/esm/hooks/useContractEvents.js.map +1 -0
- package/dist/esm/hooks/useDeployContract.js +2 -4
- package/dist/esm/hooks/useDeployContract.js.map +1 -1
- package/dist/esm/hooks/useDisconnect.js +2 -2
- package/dist/esm/hooks/useDisconnect.js.map +1 -1
- package/dist/esm/hooks/useEnsAddress.js +0 -1
- package/dist/esm/hooks/useEnsAddress.js.map +1 -1
- package/dist/esm/hooks/useEnsAvatar.js +0 -1
- package/dist/esm/hooks/useEnsAvatar.js.map +1 -1
- package/dist/esm/hooks/useEnsName.js +0 -1
- package/dist/esm/hooks/useEnsName.js.map +1 -1
- package/dist/esm/hooks/useEnsResolver.js +0 -1
- package/dist/esm/hooks/useEnsResolver.js.map +1 -1
- package/dist/esm/hooks/useEnsText.js +0 -1
- package/dist/esm/hooks/useEnsText.js.map +1 -1
- package/dist/esm/hooks/useEstimateFeesPerGas.js +0 -1
- package/dist/esm/hooks/useEstimateFeesPerGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateGas.js +0 -1
- package/dist/esm/hooks/useEstimateGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js +0 -1
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js.map +1 -1
- package/dist/esm/hooks/useFeeHistory.js +0 -1
- package/dist/esm/hooks/useFeeHistory.js.map +1 -1
- package/dist/esm/hooks/useGasPrice.js +0 -1
- package/dist/esm/hooks/useGasPrice.js.map +1 -1
- package/dist/esm/hooks/usePrepareTransactionRequest.js +0 -1
- package/dist/esm/hooks/usePrepareTransactionRequest.js.map +1 -1
- package/dist/esm/hooks/useProof.js +0 -1
- package/dist/esm/hooks/useProof.js.map +1 -1
- package/dist/esm/hooks/useReadContract.js +0 -1
- package/dist/esm/hooks/useReadContract.js.map +1 -1
- package/dist/esm/hooks/useReadContracts.js +0 -1
- package/dist/esm/hooks/useReadContracts.js.map +1 -1
- package/dist/esm/hooks/useReconnect.js +2 -2
- package/dist/esm/hooks/useReconnect.js.map +1 -1
- package/dist/esm/hooks/useSendCalls.js +2 -4
- package/dist/esm/hooks/useSendCalls.js.map +1 -1
- package/dist/esm/hooks/useSendCallsSync.js +2 -4
- package/dist/esm/hooks/useSendCallsSync.js.map +1 -1
- package/dist/esm/hooks/useSendTransaction.js +2 -2
- package/dist/esm/hooks/useSendTransaction.js.map +1 -1
- package/dist/esm/hooks/useSendTransactionSync.js +2 -2
- package/dist/esm/hooks/useSendTransactionSync.js.map +1 -1
- package/dist/esm/hooks/useShowCallsStatus.js +2 -2
- package/dist/esm/hooks/useShowCallsStatus.js.map +1 -1
- package/dist/esm/hooks/useSignMessage.js +2 -2
- package/dist/esm/hooks/useSignMessage.js.map +1 -1
- package/dist/esm/hooks/useSignTypedData.js +2 -4
- package/dist/esm/hooks/useSignTypedData.js.map +1 -1
- package/dist/esm/hooks/useSimulateContract.js +0 -1
- package/dist/esm/hooks/useSimulateContract.js.map +1 -1
- package/dist/esm/hooks/useStorageAt.js +0 -1
- package/dist/esm/hooks/useStorageAt.js.map +1 -1
- package/dist/esm/hooks/useSwitchChain.js +2 -4
- package/dist/esm/hooks/useSwitchChain.js.map +1 -1
- package/dist/esm/hooks/useSwitchConnection.js +2 -4
- package/dist/esm/hooks/useSwitchConnection.js.map +1 -1
- package/dist/esm/hooks/useTransaction.js +0 -1
- package/dist/esm/hooks/useTransaction.js.map +1 -1
- package/dist/esm/hooks/useTransactionConfirmations.js +0 -1
- package/dist/esm/hooks/useTransactionConfirmations.js.map +1 -1
- package/dist/esm/hooks/useTransactionCount.js +0 -1
- package/dist/esm/hooks/useTransactionCount.js.map +1 -1
- package/dist/esm/hooks/useTransactionReceipt.js +0 -1
- package/dist/esm/hooks/useTransactionReceipt.js.map +1 -1
- package/dist/esm/hooks/useVerifyMessage.js +0 -1
- package/dist/esm/hooks/useVerifyMessage.js.map +1 -1
- package/dist/esm/hooks/useVerifyTypedData.js +0 -1
- package/dist/esm/hooks/useVerifyTypedData.js.map +1 -1
- package/dist/esm/hooks/useWaitForCallsStatus.js +0 -1
- package/dist/esm/hooks/useWaitForCallsStatus.js.map +1 -1
- package/dist/esm/hooks/useWaitForTransactionReceipt.js +0 -1
- package/dist/esm/hooks/useWaitForTransactionReceipt.js.map +1 -1
- package/dist/esm/hooks/useWatchAsset.js +2 -2
- package/dist/esm/hooks/useWatchAsset.js.map +1 -1
- package/dist/esm/hooks/useWatchBlockNumber.js +8 -5
- package/dist/esm/hooks/useWatchBlockNumber.js.map +1 -1
- package/dist/esm/hooks/useWatchBlocks.js +8 -5
- package/dist/esm/hooks/useWatchBlocks.js.map +1 -1
- package/dist/esm/hooks/useWatchContractEvent.js +21 -9
- package/dist/esm/hooks/useWatchContractEvent.js.map +1 -1
- package/dist/esm/hooks/useWatchPendingTransactions.js +8 -5
- package/dist/esm/hooks/useWatchPendingTransactions.js.map +1 -1
- package/dist/esm/hooks/useWriteContract.js +2 -4
- package/dist/esm/hooks/useWriteContract.js.map +1 -1
- package/dist/esm/hooks/useWriteContractSync.js +16 -0
- package/dist/esm/hooks/useWriteContractSync.js.map +1 -0
- package/dist/esm/tempo/hooks/amm.js.map +1 -1
- package/dist/esm/tempo/hooks/dex.js.map +1 -1
- package/dist/esm/tempo/hooks/fee.js.map +1 -1
- package/dist/esm/tempo/hooks/nonce.js.map +1 -1
- package/dist/esm/tempo/hooks/policy.js.map +1 -1
- package/dist/esm/tempo/hooks/reward.js.map +1 -1
- package/dist/esm/tempo/hooks/token.js.map +1 -1
- package/dist/esm/tempo/utils.js +2 -0
- package/dist/esm/tempo/utils.js.map +1 -0
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/utils/query.js +2 -0
- package/dist/esm/utils/query.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/index.d.ts +3 -0
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseWriteContract.d.ts.map +1 -1
- package/dist/types/hooks/useBalance.d.ts.map +1 -1
- package/dist/types/hooks/useBlobBaseFee.d.ts +10 -0
- package/dist/types/hooks/useBlobBaseFee.d.ts.map +1 -0
- package/dist/types/hooks/useBlock.d.ts.map +1 -1
- package/dist/types/hooks/useBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useBytecode.d.ts.map +1 -1
- package/dist/types/hooks/useCall.d.ts.map +1 -1
- package/dist/types/hooks/useCallsStatus.d.ts.map +1 -1
- package/dist/types/hooks/useCapabilities.d.ts.map +1 -1
- package/dist/types/hooks/useConnect.d.ts +4 -8
- package/dist/types/hooks/useConnect.d.ts.map +1 -1
- package/dist/types/hooks/useContractEvents.d.ts +11 -0
- package/dist/types/hooks/useContractEvents.d.ts.map +1 -0
- package/dist/types/hooks/useDeployContract.d.ts +4 -8
- package/dist/types/hooks/useDeployContract.d.ts.map +1 -1
- package/dist/types/hooks/useDisconnect.d.ts +4 -8
- package/dist/types/hooks/useDisconnect.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAddress.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/hooks/useEnsName.d.ts.map +1 -1
- package/dist/types/hooks/useEnsResolver.d.ts.map +1 -1
- package/dist/types/hooks/useEnsText.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/hooks/useFeeHistory.d.ts.map +1 -1
- package/dist/types/hooks/useGasPrice.d.ts.map +1 -1
- package/dist/types/hooks/usePrepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/hooks/useProof.d.ts.map +1 -1
- package/dist/types/hooks/useReadContract.d.ts.map +1 -1
- package/dist/types/hooks/useReadContracts.d.ts.map +1 -1
- package/dist/types/hooks/useReconnect.d.ts +5 -8
- package/dist/types/hooks/useReconnect.d.ts.map +1 -1
- package/dist/types/hooks/useSendCalls.d.ts +4 -8
- package/dist/types/hooks/useSendCalls.d.ts.map +1 -1
- package/dist/types/hooks/useSendCallsSync.d.ts +4 -8
- package/dist/types/hooks/useSendCallsSync.d.ts.map +1 -1
- package/dist/types/hooks/useSendTransaction.d.ts +4 -8
- package/dist/types/hooks/useSendTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useSendTransactionSync.d.ts +4 -8
- package/dist/types/hooks/useSendTransactionSync.d.ts.map +1 -1
- package/dist/types/hooks/useShowCallsStatus.d.ts +4 -8
- package/dist/types/hooks/useShowCallsStatus.d.ts.map +1 -1
- package/dist/types/hooks/useSignMessage.d.ts +4 -8
- package/dist/types/hooks/useSignMessage.d.ts.map +1 -1
- package/dist/types/hooks/useSignTypedData.d.ts +4 -8
- package/dist/types/hooks/useSignTypedData.d.ts.map +1 -1
- package/dist/types/hooks/useSimulateContract.d.ts.map +1 -1
- package/dist/types/hooks/useStorageAt.d.ts.map +1 -1
- package/dist/types/hooks/useSwitchChain.d.ts +4 -8
- package/dist/types/hooks/useSwitchChain.d.ts.map +1 -1
- package/dist/types/hooks/useSwitchConnection.d.ts +4 -8
- package/dist/types/hooks/useSwitchConnection.d.ts.map +1 -1
- package/dist/types/hooks/useTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useVerifyMessage.d.ts.map +1 -1
- package/dist/types/hooks/useVerifyTypedData.d.ts.map +1 -1
- package/dist/types/hooks/useWaitForCallsStatus.d.ts.map +1 -1
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useWatchAsset.d.ts +4 -8
- package/dist/types/hooks/useWatchAsset.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useWatchBlocks.d.ts.map +1 -1
- package/dist/types/hooks/useWatchContractEvent.d.ts.map +1 -1
- package/dist/types/hooks/useWatchPendingTransactions.d.ts.map +1 -1
- package/dist/types/hooks/useWriteContract.d.ts +4 -8
- package/dist/types/hooks/useWriteContract.d.ts.map +1 -1
- package/dist/types/hooks/useWriteContractSync.d.ts +15 -0
- package/dist/types/hooks/useWriteContractSync.d.ts.map +1 -0
- package/dist/types/tempo/hooks/amm.d.ts +3 -2
- package/dist/types/tempo/hooks/amm.d.ts.map +1 -1
- package/dist/types/tempo/hooks/dex.d.ts +7 -6
- package/dist/types/tempo/hooks/dex.d.ts.map +1 -1
- package/dist/types/tempo/hooks/fee.d.ts +2 -1
- package/dist/types/tempo/hooks/fee.d.ts.map +1 -1
- package/dist/types/tempo/hooks/nonce.d.ts +2 -1
- package/dist/types/tempo/hooks/nonce.d.ts.map +1 -1
- package/dist/types/tempo/hooks/policy.d.ts +3 -2
- package/dist/types/tempo/hooks/policy.d.ts.map +1 -1
- package/dist/types/tempo/hooks/reward.d.ts +3 -2
- package/dist/types/tempo/hooks/reward.d.ts.map +1 -1
- package/dist/types/tempo/hooks/token.d.ts +6 -5
- package/dist/types/tempo/hooks/token.d.ts.map +1 -1
- package/dist/types/tempo/utils.d.ts +6 -0
- package/dist/types/tempo/utils.d.ts.map +1 -0
- package/dist/types/utils/query.d.ts +11 -8
- package/dist/types/utils/query.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/exports/index.ts +18 -0
- package/src/hooks/codegen/createUseWriteContract.ts +2 -0
- package/src/hooks/useBalance.ts +0 -1
- package/src/hooks/useBlobBaseFee.ts +46 -0
- package/src/hooks/useBlock.ts +0 -1
- package/src/hooks/useBlockNumber.ts +0 -1
- package/src/hooks/useBlockTransactionCount.ts +0 -1
- package/src/hooks/useBytecode.ts +0 -1
- package/src/hooks/useCall.ts +0 -1
- package/src/hooks/useCallsStatus.ts +0 -1
- package/src/hooks/useCapabilities.ts +0 -1
- package/src/hooks/useConnect.ts +8 -27
- package/src/hooks/useContractEvents.ts +111 -0
- package/src/hooks/useDeployContract.ts +9 -26
- package/src/hooks/useDisconnect.ts +12 -24
- package/src/hooks/useEnsAddress.ts +0 -1
- package/src/hooks/useEnsAvatar.ts +0 -1
- package/src/hooks/useEnsName.ts +0 -1
- package/src/hooks/useEnsResolver.ts +0 -1
- package/src/hooks/useEnsText.ts +0 -1
- package/src/hooks/useEstimateFeesPerGas.ts +0 -1
- package/src/hooks/useEstimateGas.ts +0 -1
- package/src/hooks/useEstimateMaxPriorityFeePerGas.ts +0 -1
- package/src/hooks/useFeeHistory.ts +0 -1
- package/src/hooks/useGasPrice.ts +0 -1
- package/src/hooks/usePrepareTransactionRequest.ts +0 -1
- package/src/hooks/useProof.ts +0 -1
- package/src/hooks/useReadContract.ts +0 -1
- package/src/hooks/useReadContracts.ts +0 -1
- package/src/hooks/useReconnect.ts +13 -24
- package/src/hooks/useSendCalls.ts +9 -26
- package/src/hooks/useSendCallsSync.ts +9 -26
- package/src/hooks/useSendTransaction.ts +9 -24
- package/src/hooks/useSendTransactionSync.ts +9 -22
- package/src/hooks/useShowCallsStatus.ts +9 -24
- package/src/hooks/useSignMessage.ts +12 -24
- package/src/hooks/useSignTypedData.ts +9 -24
- package/src/hooks/useSimulateContract.ts +0 -1
- package/src/hooks/useStorageAt.ts +0 -1
- package/src/hooks/useSwitchChain.ts +9 -26
- package/src/hooks/useSwitchConnection.ts +9 -26
- package/src/hooks/useTransaction.ts +0 -1
- package/src/hooks/useTransactionConfirmations.ts +0 -1
- package/src/hooks/useTransactionCount.ts +0 -1
- package/src/hooks/useTransactionReceipt.ts +0 -1
- package/src/hooks/useVerifyMessage.ts +0 -1
- package/src/hooks/useVerifyTypedData.ts +0 -1
- package/src/hooks/useWaitForCallsStatus.ts +0 -1
- package/src/hooks/useWaitForTransactionReceipt.ts +0 -1
- package/src/hooks/useWatchAsset.ts +12 -24
- package/src/hooks/useWatchBlockNumber.ts +10 -7
- package/src/hooks/useWatchBlocks.ts +10 -7
- package/src/hooks/useWatchContractEvent.ts +23 -10
- package/src/hooks/useWatchPendingTransactions.ts +10 -7
- package/src/hooks/useWriteContract.ts +9 -30
- package/src/hooks/useWriteContractSync.ts +65 -0
- package/src/tempo/hooks/amm.ts +15 -9
- package/src/tempo/hooks/dex.ts +43 -18
- package/src/tempo/hooks/fee.ts +8 -3
- package/src/tempo/hooks/nonce.ts +8 -3
- package/src/tempo/hooks/policy.ts +15 -6
- package/src/tempo/hooks/reward.ts +15 -12
- package/src/tempo/hooks/token.ts +36 -15
- package/src/tempo/utils.ts +16 -0
- package/src/utils/query.ts +37 -31
- package/src/version.ts +1 -1
package/src/tempo/hooks/amm.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for getting the reserves for a liquidity pool.
|
|
@@ -60,9 +61,13 @@ export declare namespace usePool {
|
|
|
60
61
|
config extends Config = ResolvedRegister['config'],
|
|
61
62
|
selectData = Actions.amm.getPool.ReturnValue,
|
|
62
63
|
> = ConfigParameter<config> &
|
|
63
|
-
|
|
64
|
-
Actions.amm.getPool.
|
|
65
|
-
|
|
64
|
+
QueryParameter<
|
|
65
|
+
Actions.amm.getPool.ReturnValue,
|
|
66
|
+
Actions.amm.getPool.ErrorType,
|
|
67
|
+
selectData,
|
|
68
|
+
Actions.amm.getPool.QueryKey<config>
|
|
69
|
+
> &
|
|
70
|
+
ExactPartial<Actions.amm.getPool.Parameters<config>>
|
|
66
71
|
|
|
67
72
|
export type ReturnValue<selectData = Actions.amm.getPool.ReturnValue> =
|
|
68
73
|
UseQueryReturnType<selectData, Error>
|
|
@@ -114,12 +119,13 @@ export declare namespace useLiquidityBalance {
|
|
|
114
119
|
config extends Config = ResolvedRegister['config'],
|
|
115
120
|
selectData = Actions.amm.getLiquidityBalance.ReturnValue,
|
|
116
121
|
> = ConfigParameter<config> &
|
|
117
|
-
|
|
118
|
-
Actions.amm.getLiquidityBalance.
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
>
|
|
122
|
-
>
|
|
122
|
+
QueryParameter<
|
|
123
|
+
Actions.amm.getLiquidityBalance.ReturnValue,
|
|
124
|
+
Actions.amm.getLiquidityBalance.ErrorType,
|
|
125
|
+
selectData,
|
|
126
|
+
Actions.amm.getLiquidityBalance.QueryKey<config>
|
|
127
|
+
> &
|
|
128
|
+
ExactPartial<Actions.amm.getLiquidityBalance.Parameters<config>>
|
|
123
129
|
|
|
124
130
|
export type ReturnValue<
|
|
125
131
|
selectData = Actions.amm.getLiquidityBalance.ReturnValue,
|
package/src/tempo/hooks/dex.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for buying a specific amount of tokens.
|
|
@@ -616,9 +617,13 @@ export declare namespace useBalance {
|
|
|
616
617
|
config extends Config = ResolvedRegister['config'],
|
|
617
618
|
selectData = Actions.dex.getBalance.ReturnValue,
|
|
618
619
|
> = ConfigParameter<config> &
|
|
619
|
-
|
|
620
|
-
Actions.dex.getBalance.
|
|
621
|
-
|
|
620
|
+
QueryParameter<
|
|
621
|
+
Actions.dex.getBalance.ReturnValue,
|
|
622
|
+
Actions.dex.getBalance.ErrorType,
|
|
623
|
+
selectData,
|
|
624
|
+
Actions.dex.getBalance.QueryKey<config>
|
|
625
|
+
> &
|
|
626
|
+
ExactPartial<Actions.dex.getBalance.Parameters<config>>
|
|
622
627
|
|
|
623
628
|
export type ReturnValue<selectData = Actions.dex.getBalance.ReturnValue> =
|
|
624
629
|
UseQueryReturnType<selectData, Error>
|
|
@@ -666,9 +671,13 @@ export declare namespace useBuyQuote {
|
|
|
666
671
|
config extends Config = ResolvedRegister['config'],
|
|
667
672
|
selectData = Actions.dex.getBuyQuote.ReturnValue,
|
|
668
673
|
> = ConfigParameter<config> &
|
|
669
|
-
|
|
670
|
-
Actions.dex.getBuyQuote.
|
|
671
|
-
|
|
674
|
+
QueryParameter<
|
|
675
|
+
Actions.dex.getBuyQuote.ReturnValue,
|
|
676
|
+
Actions.dex.getBuyQuote.ErrorType,
|
|
677
|
+
selectData,
|
|
678
|
+
Actions.dex.getBuyQuote.QueryKey<config>
|
|
679
|
+
> &
|
|
680
|
+
ExactPartial<Actions.dex.getBuyQuote.Parameters<config>>
|
|
672
681
|
|
|
673
682
|
export type ReturnValue<selectData = Actions.dex.getBuyQuote.ReturnValue> =
|
|
674
683
|
UseQueryReturnType<selectData, Error>
|
|
@@ -714,9 +723,13 @@ export declare namespace useOrder {
|
|
|
714
723
|
config extends Config = ResolvedRegister['config'],
|
|
715
724
|
selectData = Actions.dex.getOrder.ReturnValue,
|
|
716
725
|
> = ConfigParameter<config> &
|
|
717
|
-
|
|
718
|
-
Actions.dex.getOrder.
|
|
719
|
-
|
|
726
|
+
QueryParameter<
|
|
727
|
+
Actions.dex.getOrder.ReturnValue,
|
|
728
|
+
Actions.dex.getOrder.ErrorType,
|
|
729
|
+
selectData,
|
|
730
|
+
Actions.dex.getOrder.QueryKey<config>
|
|
731
|
+
> &
|
|
732
|
+
ExactPartial<Actions.dex.getOrder.Parameters<config>>
|
|
720
733
|
|
|
721
734
|
export type ReturnValue<selectData = Actions.dex.getOrder.ReturnValue> =
|
|
722
735
|
UseQueryReturnType<selectData, Error>
|
|
@@ -763,9 +776,13 @@ export declare namespace useOrderbook {
|
|
|
763
776
|
config extends Config = ResolvedRegister['config'],
|
|
764
777
|
selectData = Actions.dex.getOrderbook.ReturnValue,
|
|
765
778
|
> = ConfigParameter<config> &
|
|
766
|
-
|
|
767
|
-
Actions.dex.getOrderbook.
|
|
768
|
-
|
|
779
|
+
QueryParameter<
|
|
780
|
+
Actions.dex.getOrderbook.ReturnValue,
|
|
781
|
+
Actions.dex.getOrderbook.ErrorType,
|
|
782
|
+
selectData,
|
|
783
|
+
Actions.dex.getOrderbook.QueryKey<config>
|
|
784
|
+
> &
|
|
785
|
+
ExactPartial<Actions.dex.getOrderbook.Parameters<config>>
|
|
769
786
|
|
|
770
787
|
export type ReturnValue<selectData = Actions.dex.getOrderbook.ReturnValue> =
|
|
771
788
|
UseQueryReturnType<selectData, Error>
|
|
@@ -814,9 +831,13 @@ export declare namespace useTickLevel {
|
|
|
814
831
|
config extends Config = ResolvedRegister['config'],
|
|
815
832
|
selectData = Actions.dex.getTickLevel.ReturnValue,
|
|
816
833
|
> = ConfigParameter<config> &
|
|
817
|
-
|
|
818
|
-
Actions.dex.getTickLevel.
|
|
819
|
-
|
|
834
|
+
QueryParameter<
|
|
835
|
+
Actions.dex.getTickLevel.ReturnValue,
|
|
836
|
+
Actions.dex.getTickLevel.ErrorType,
|
|
837
|
+
selectData,
|
|
838
|
+
Actions.dex.getTickLevel.QueryKey<config>
|
|
839
|
+
> &
|
|
840
|
+
ExactPartial<Actions.dex.getTickLevel.Parameters<config>>
|
|
820
841
|
|
|
821
842
|
export type ReturnValue<selectData = Actions.dex.getTickLevel.ReturnValue> =
|
|
822
843
|
UseQueryReturnType<selectData, Error>
|
|
@@ -864,9 +885,13 @@ export declare namespace useSellQuote {
|
|
|
864
885
|
config extends Config = ResolvedRegister['config'],
|
|
865
886
|
selectData = Actions.dex.getSellQuote.ReturnValue,
|
|
866
887
|
> = ConfigParameter<config> &
|
|
867
|
-
|
|
868
|
-
Actions.dex.getSellQuote.
|
|
869
|
-
|
|
888
|
+
QueryParameter<
|
|
889
|
+
Actions.dex.getSellQuote.ReturnValue,
|
|
890
|
+
Actions.dex.getSellQuote.ErrorType,
|
|
891
|
+
selectData,
|
|
892
|
+
Actions.dex.getSellQuote.QueryKey<config>
|
|
893
|
+
> &
|
|
894
|
+
ExactPartial<Actions.dex.getSellQuote.Parameters<config>>
|
|
870
895
|
|
|
871
896
|
export type ReturnValue<selectData = Actions.dex.getSellQuote.ReturnValue> =
|
|
872
897
|
UseQueryReturnType<selectData, Error>
|
package/src/tempo/hooks/fee.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for getting the user's default fee token.
|
|
@@ -54,9 +55,13 @@ export declare namespace useUserToken {
|
|
|
54
55
|
config extends Config = ResolvedRegister['config'],
|
|
55
56
|
selectData = Actions.fee.getUserToken.ReturnValue,
|
|
56
57
|
> = ConfigParameter<config> &
|
|
57
|
-
|
|
58
|
-
Actions.fee.getUserToken.
|
|
59
|
-
|
|
58
|
+
QueryParameter<
|
|
59
|
+
Actions.fee.getUserToken.ReturnValue,
|
|
60
|
+
Actions.fee.getUserToken.ErrorType,
|
|
61
|
+
selectData,
|
|
62
|
+
Actions.fee.getUserToken.QueryKey<config>
|
|
63
|
+
> &
|
|
64
|
+
ExactPartial<Actions.fee.getUserToken.Parameters<config>>
|
|
60
65
|
|
|
61
66
|
export type ReturnValue<selectData = Actions.fee.getUserToken.ReturnValue> =
|
|
62
67
|
UseQueryReturnType<selectData, Error>
|
package/src/tempo/hooks/nonce.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { useChainId } from '../../hooks/useChainId.js'
|
|
|
7
7
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
8
8
|
import type { ConfigParameter } from '../../types/properties.js'
|
|
9
9
|
import { type UseQueryReturnType, useQuery } from '../../utils/query.js'
|
|
10
|
+
import type { QueryParameter } from '../utils.js'
|
|
10
11
|
|
|
11
12
|
/**
|
|
12
13
|
* Hook for getting the nonce for an account and nonce key.
|
|
@@ -49,9 +50,13 @@ export declare namespace useNonce {
|
|
|
49
50
|
config extends Config = ResolvedRegister['config'],
|
|
50
51
|
selectData = Actions.nonce.getNonce.ReturnValue,
|
|
51
52
|
> = ConfigParameter<config> &
|
|
52
|
-
|
|
53
|
-
Actions.nonce.getNonce.
|
|
54
|
-
|
|
53
|
+
QueryParameter<
|
|
54
|
+
Actions.nonce.getNonce.ReturnValue,
|
|
55
|
+
Actions.nonce.getNonce.ErrorType,
|
|
56
|
+
selectData,
|
|
57
|
+
Actions.nonce.getNonce.QueryKey<config>
|
|
58
|
+
> &
|
|
59
|
+
ExactPartial<Actions.nonce.getNonce.Parameters<config>>
|
|
55
60
|
|
|
56
61
|
export type ReturnValue<selectData = Actions.nonce.getNonce.ReturnValue> =
|
|
57
62
|
UseQueryReturnType<selectData, Error>
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for creating a new policy.
|
|
@@ -602,9 +603,13 @@ export declare namespace useData {
|
|
|
602
603
|
config extends Config = ResolvedRegister['config'],
|
|
603
604
|
selectData = Actions.policy.getData.ReturnValue,
|
|
604
605
|
> = ConfigParameter<config> &
|
|
605
|
-
|
|
606
|
-
Actions.policy.getData.
|
|
607
|
-
|
|
606
|
+
QueryParameter<
|
|
607
|
+
Actions.policy.getData.ReturnValue,
|
|
608
|
+
Actions.policy.getData.ErrorType,
|
|
609
|
+
selectData,
|
|
610
|
+
Actions.policy.getData.QueryKey<config>
|
|
611
|
+
> &
|
|
612
|
+
ExactPartial<Actions.policy.getData.Parameters<config>>
|
|
608
613
|
|
|
609
614
|
export type ReturnValue<selectData = Actions.policy.getData.ReturnValue> =
|
|
610
615
|
UseQueryReturnType<selectData, Error>
|
|
@@ -651,9 +656,13 @@ export declare namespace useIsAuthorized {
|
|
|
651
656
|
config extends Config = ResolvedRegister['config'],
|
|
652
657
|
selectData = Actions.policy.isAuthorized.ReturnValue,
|
|
653
658
|
> = ConfigParameter<config> &
|
|
654
|
-
|
|
655
|
-
Actions.policy.isAuthorized.
|
|
656
|
-
|
|
659
|
+
QueryParameter<
|
|
660
|
+
Actions.policy.isAuthorized.ReturnValue,
|
|
661
|
+
Actions.policy.isAuthorized.ErrorType,
|
|
662
|
+
selectData,
|
|
663
|
+
Actions.policy.isAuthorized.QueryKey<config>
|
|
664
|
+
> &
|
|
665
|
+
ExactPartial<Actions.policy.isAuthorized.Parameters<config>>
|
|
657
666
|
|
|
658
667
|
export type ReturnValue<
|
|
659
668
|
selectData = Actions.policy.isAuthorized.ReturnValue,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for claiming accumulated rewards.
|
|
@@ -186,12 +187,13 @@ export declare namespace useGetGlobalRewardPerToken {
|
|
|
186
187
|
config extends Config = ResolvedRegister['config'],
|
|
187
188
|
selectData = Actions.reward.getGlobalRewardPerToken.ReturnValue,
|
|
188
189
|
> = ConfigParameter<config> &
|
|
189
|
-
|
|
190
|
-
Actions.reward.getGlobalRewardPerToken.
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
>
|
|
194
|
-
>
|
|
190
|
+
QueryParameter<
|
|
191
|
+
Actions.reward.getGlobalRewardPerToken.ReturnValue,
|
|
192
|
+
Actions.reward.getGlobalRewardPerToken.ErrorType,
|
|
193
|
+
selectData,
|
|
194
|
+
Actions.reward.getGlobalRewardPerToken.QueryKey<config>
|
|
195
|
+
> &
|
|
196
|
+
ExactPartial<Actions.reward.getGlobalRewardPerToken.Parameters<config>>
|
|
195
197
|
|
|
196
198
|
export type ReturnValue<
|
|
197
199
|
selectData = Actions.reward.getGlobalRewardPerToken.ReturnValue,
|
|
@@ -245,12 +247,13 @@ export declare namespace useUserRewardInfo {
|
|
|
245
247
|
config extends Config = ResolvedRegister['config'],
|
|
246
248
|
selectData = Actions.reward.getUserRewardInfo.ReturnValue,
|
|
247
249
|
> = ConfigParameter<config> &
|
|
248
|
-
|
|
249
|
-
Actions.reward.getUserRewardInfo.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
>
|
|
253
|
-
>
|
|
250
|
+
QueryParameter<
|
|
251
|
+
Actions.reward.getUserRewardInfo.ReturnValue,
|
|
252
|
+
Actions.reward.getUserRewardInfo.ErrorType,
|
|
253
|
+
selectData,
|
|
254
|
+
Actions.reward.getUserRewardInfo.QueryKey<config>
|
|
255
|
+
> &
|
|
256
|
+
ExactPartial<Actions.reward.getUserRewardInfo.Parameters<config>>
|
|
254
257
|
|
|
255
258
|
export type ReturnValue<
|
|
256
259
|
selectData = Actions.reward.getUserRewardInfo.ReturnValue,
|
package/src/tempo/hooks/token.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
useMutation,
|
|
14
14
|
useQuery,
|
|
15
15
|
} from '../../utils/query.js'
|
|
16
|
+
import type { QueryParameter } from '../utils.js'
|
|
16
17
|
|
|
17
18
|
/**
|
|
18
19
|
* Hook for approving a spender to transfer TIP20 tokens.
|
|
@@ -877,9 +878,13 @@ export declare namespace useGetAllowance {
|
|
|
877
878
|
config extends Config = ResolvedRegister['config'],
|
|
878
879
|
selectData = Actions.token.getAllowance.ReturnValue,
|
|
879
880
|
> = ConfigParameter<config> &
|
|
880
|
-
|
|
881
|
-
Actions.token.getAllowance.
|
|
882
|
-
|
|
881
|
+
QueryParameter<
|
|
882
|
+
Actions.token.getAllowance.ReturnValue,
|
|
883
|
+
Actions.token.getAllowance.ErrorType,
|
|
884
|
+
selectData,
|
|
885
|
+
Actions.token.getAllowance.QueryKey<config>
|
|
886
|
+
> &
|
|
887
|
+
ExactPartial<Actions.token.getAllowance.Parameters<config>>
|
|
883
888
|
|
|
884
889
|
export type ReturnValue<selectData = Actions.token.getAllowance.ReturnValue> =
|
|
885
890
|
UseQueryReturnType<selectData, Error>
|
|
@@ -925,9 +930,13 @@ export declare namespace useGetBalance {
|
|
|
925
930
|
config extends Config = ResolvedRegister['config'],
|
|
926
931
|
selectData = Actions.token.getBalance.ReturnValue,
|
|
927
932
|
> = ConfigParameter<config> &
|
|
928
|
-
|
|
929
|
-
Actions.token.getBalance.
|
|
930
|
-
|
|
933
|
+
QueryParameter<
|
|
934
|
+
Actions.token.getBalance.ReturnValue,
|
|
935
|
+
Actions.token.getBalance.ErrorType,
|
|
936
|
+
selectData,
|
|
937
|
+
Actions.token.getBalance.QueryKey<config>
|
|
938
|
+
> &
|
|
939
|
+
ExactPartial<Actions.token.getBalance.Parameters<config>>
|
|
931
940
|
|
|
932
941
|
export type ReturnValue<selectData = Actions.token.getBalance.ReturnValue> =
|
|
933
942
|
UseQueryReturnType<selectData, Error>
|
|
@@ -973,9 +982,13 @@ export declare namespace useGetMetadata {
|
|
|
973
982
|
config extends Config = ResolvedRegister['config'],
|
|
974
983
|
selectData = Actions.token.getMetadata.ReturnValue,
|
|
975
984
|
> = ConfigParameter<config> &
|
|
976
|
-
|
|
977
|
-
Actions.token.getMetadata.
|
|
978
|
-
|
|
985
|
+
QueryParameter<
|
|
986
|
+
Actions.token.getMetadata.ReturnValue,
|
|
987
|
+
Actions.token.getMetadata.ErrorType,
|
|
988
|
+
selectData,
|
|
989
|
+
Actions.token.getMetadata.QueryKey<config>
|
|
990
|
+
> &
|
|
991
|
+
ExactPartial<Actions.token.getMetadata.Parameters<config>>
|
|
979
992
|
|
|
980
993
|
export type ReturnValue<selectData = Actions.token.getMetadata.ReturnValue> =
|
|
981
994
|
UseQueryReturnType<selectData, Error>
|
|
@@ -1022,9 +1035,13 @@ export declare namespace useGetRoleAdmin {
|
|
|
1022
1035
|
config extends Config = ResolvedRegister['config'],
|
|
1023
1036
|
selectData = Actions.token.getRoleAdmin.ReturnValue,
|
|
1024
1037
|
> = ConfigParameter<config> &
|
|
1025
|
-
|
|
1026
|
-
Actions.token.getRoleAdmin.
|
|
1027
|
-
|
|
1038
|
+
QueryParameter<
|
|
1039
|
+
Actions.token.getRoleAdmin.ReturnValue,
|
|
1040
|
+
Actions.token.getRoleAdmin.ErrorType,
|
|
1041
|
+
selectData,
|
|
1042
|
+
Actions.token.getRoleAdmin.QueryKey<config>
|
|
1043
|
+
> &
|
|
1044
|
+
ExactPartial<Actions.token.getRoleAdmin.Parameters<config>>
|
|
1028
1045
|
|
|
1029
1046
|
export type ReturnValue<selectData = Actions.token.getRoleAdmin.ReturnValue> =
|
|
1030
1047
|
UseQueryReturnType<selectData, Error>
|
|
@@ -1209,9 +1226,13 @@ export declare namespace useHasRole {
|
|
|
1209
1226
|
config extends Config = ResolvedRegister['config'],
|
|
1210
1227
|
selectData = Actions.token.hasRole.ReturnValue,
|
|
1211
1228
|
> = ConfigParameter<config> &
|
|
1212
|
-
|
|
1213
|
-
Actions.token.hasRole.
|
|
1214
|
-
|
|
1229
|
+
QueryParameter<
|
|
1230
|
+
Actions.token.hasRole.ReturnValue,
|
|
1231
|
+
Actions.token.hasRole.ErrorType,
|
|
1232
|
+
selectData,
|
|
1233
|
+
Actions.token.hasRole.QueryKey<config>
|
|
1234
|
+
> &
|
|
1235
|
+
ExactPartial<Actions.token.hasRole.Parameters<config>>
|
|
1215
1236
|
|
|
1216
1237
|
export type ReturnValue<selectData = Actions.token.hasRole.ReturnValue> =
|
|
1217
1238
|
UseQueryReturnType<selectData, Error>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Query from '@tanstack/react-query'
|
|
2
|
+
import type { UnionLooseOmit } from '@wagmi/core/internal'
|
|
3
|
+
|
|
4
|
+
export type QueryParameter<
|
|
5
|
+
queryFnData = unknown,
|
|
6
|
+
error = Query.DefaultError,
|
|
7
|
+
data = queryFnData,
|
|
8
|
+
queryKey extends Query.QueryKey = Query.QueryKey,
|
|
9
|
+
> = {
|
|
10
|
+
query?:
|
|
11
|
+
| UnionLooseOmit<
|
|
12
|
+
Query.UseQueryOptions<queryFnData, error, data, queryKey>,
|
|
13
|
+
'queryKey' | 'queryFn'
|
|
14
|
+
>
|
|
15
|
+
| undefined
|
|
16
|
+
}
|
package/src/utils/query.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
type DefaultError,
|
|
3
|
+
type MutateFunction,
|
|
3
4
|
type QueryKey,
|
|
4
5
|
useInfiniteQuery as tanstack_useInfiniteQuery,
|
|
5
6
|
useQuery as tanstack_useQuery,
|
|
@@ -19,6 +20,8 @@ import type {
|
|
|
19
20
|
} from '@wagmi/core/internal'
|
|
20
21
|
import { hashFn } from '@wagmi/core/query'
|
|
21
22
|
|
|
23
|
+
export { useMutation }
|
|
24
|
+
|
|
22
25
|
export type UseMutationParameters<
|
|
23
26
|
data = unknown,
|
|
24
27
|
error = Error,
|
|
@@ -36,17 +39,36 @@ export type UseMutationReturnType<
|
|
|
36
39
|
error = Error,
|
|
37
40
|
variables = void,
|
|
38
41
|
context = unknown,
|
|
42
|
+
mutate = MutateFunction,
|
|
43
|
+
mutateAsync = MutateFunction,
|
|
39
44
|
> = Compute<
|
|
40
45
|
UnionStrictOmit<
|
|
41
46
|
UseMutationResult<data, error, variables, context>,
|
|
42
47
|
'mutate' | 'mutateAsync'
|
|
43
|
-
>
|
|
48
|
+
> & {
|
|
49
|
+
mutate: mutate
|
|
50
|
+
mutateAsync: mutateAsync
|
|
51
|
+
}
|
|
44
52
|
>
|
|
45
53
|
|
|
46
|
-
export { useMutation }
|
|
47
|
-
|
|
48
54
|
////////////////////////////////////////////////////////////////////////////////
|
|
49
55
|
|
|
56
|
+
// Adding some basic customization.
|
|
57
|
+
// Ideally we don't have this function, but `import('@tanstack/react-query').useQuery` currently has some quirks where it is super hard to
|
|
58
|
+
// pass down the inferred `initialData` type because of it's discriminated overload in the on `useQuery`.
|
|
59
|
+
export function useQuery<queryFnData, error, data, queryKey extends QueryKey>(
|
|
60
|
+
parameters: UseQueryParameters<queryFnData, error, data, queryKey> & {
|
|
61
|
+
queryKey: QueryKey
|
|
62
|
+
},
|
|
63
|
+
): UseQueryReturnType<data, error> {
|
|
64
|
+
const result = tanstack_useQuery({
|
|
65
|
+
...(parameters as any),
|
|
66
|
+
queryKeyHashFn: hashFn, // for bigint support
|
|
67
|
+
}) as UseQueryReturnType<data, error>
|
|
68
|
+
result.queryKey = parameters.queryKey
|
|
69
|
+
return result
|
|
70
|
+
}
|
|
71
|
+
|
|
50
72
|
export type UseQueryParameters<
|
|
51
73
|
queryFnData = unknown,
|
|
52
74
|
error = DefaultError,
|
|
@@ -69,24 +91,27 @@ export type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<
|
|
|
69
91
|
}
|
|
70
92
|
>
|
|
71
93
|
|
|
94
|
+
////////////////////////////////////////////////////////////////////////////////
|
|
95
|
+
|
|
72
96
|
// Adding some basic customization.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
97
|
+
export function useInfiniteQuery<
|
|
98
|
+
queryFnData,
|
|
99
|
+
error,
|
|
100
|
+
data,
|
|
101
|
+
queryKey extends QueryKey,
|
|
102
|
+
>(
|
|
103
|
+
parameters: UseInfiniteQueryParameters<queryFnData, error, data, queryKey> & {
|
|
77
104
|
queryKey: QueryKey
|
|
78
105
|
},
|
|
79
|
-
):
|
|
80
|
-
const result =
|
|
106
|
+
): UseInfiniteQueryReturnType<data, error> {
|
|
107
|
+
const result = tanstack_useInfiniteQuery({
|
|
81
108
|
...(parameters as any),
|
|
82
109
|
queryKeyHashFn: hashFn, // for bigint support
|
|
83
|
-
}) as
|
|
110
|
+
}) as UseInfiniteQueryReturnType<data, error>
|
|
84
111
|
result.queryKey = parameters.queryKey
|
|
85
112
|
return result
|
|
86
113
|
}
|
|
87
114
|
|
|
88
|
-
////////////////////////////////////////////////////////////////////////////////
|
|
89
|
-
|
|
90
115
|
export type UseInfiniteQueryParameters<
|
|
91
116
|
queryFnData = unknown,
|
|
92
117
|
error = DefaultError,
|
|
@@ -124,22 +149,3 @@ export type UseInfiniteQueryReturnType<
|
|
|
124
149
|
> = UseInfiniteQueryResult<data, error> & {
|
|
125
150
|
queryKey: QueryKey
|
|
126
151
|
}
|
|
127
|
-
|
|
128
|
-
// Adding some basic customization.
|
|
129
|
-
export function useInfiniteQuery<
|
|
130
|
-
queryFnData,
|
|
131
|
-
error,
|
|
132
|
-
data,
|
|
133
|
-
queryKey extends QueryKey,
|
|
134
|
-
>(
|
|
135
|
-
parameters: UseInfiniteQueryParameters<queryFnData, error, data, queryKey> & {
|
|
136
|
-
queryKey: QueryKey
|
|
137
|
-
},
|
|
138
|
-
): UseInfiniteQueryReturnType<data, error> {
|
|
139
|
-
const result = tanstack_useInfiniteQuery({
|
|
140
|
-
...(parameters as any),
|
|
141
|
-
queryKeyHashFn: hashFn, // for bigint support
|
|
142
|
-
}) as UseInfiniteQueryReturnType<data, error>
|
|
143
|
-
result.queryKey = parameters.queryKey
|
|
144
|
-
return result
|
|
145
|
-
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.
|
|
1
|
+
export const version = '3.4.0'
|