wagmi 3.3.0 → 3.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/hooks/codegen/createUseReadContract.js.map +1 -1
- package/dist/esm/hooks/codegen/createUseSimulateContract.js.map +1 -1
- package/dist/esm/hooks/useBalance.js +2 -3
- package/dist/esm/hooks/useBalance.js.map +1 -1
- package/dist/esm/hooks/useBlock.js +10 -13
- package/dist/esm/hooks/useBlock.js.map +1 -1
- package/dist/esm/hooks/useBlockNumber.js +10 -9
- package/dist/esm/hooks/useBlockNumber.js.map +1 -1
- package/dist/esm/hooks/useBlockTransactionCount.js +4 -5
- package/dist/esm/hooks/useBlockTransactionCount.js.map +1 -1
- package/dist/esm/hooks/useBytecode.js +2 -3
- package/dist/esm/hooks/useBytecode.js.map +1 -1
- package/dist/esm/hooks/useCall.js +2 -2
- package/dist/esm/hooks/useCall.js.map +1 -1
- package/dist/esm/hooks/useCallsStatus.js +8 -3
- package/dist/esm/hooks/useCallsStatus.js.map +1 -1
- package/dist/esm/hooks/useCapabilities.js +5 -7
- package/dist/esm/hooks/useCapabilities.js.map +1 -1
- package/dist/esm/hooks/useConnectorClient.js +10 -20
- package/dist/esm/hooks/useConnectorClient.js.map +1 -1
- package/dist/esm/hooks/useEnsAddress.js +2 -3
- package/dist/esm/hooks/useEnsAddress.js.map +1 -1
- package/dist/esm/hooks/useEnsAvatar.js +2 -3
- package/dist/esm/hooks/useEnsAvatar.js.map +1 -1
- package/dist/esm/hooks/useEnsName.js +2 -3
- package/dist/esm/hooks/useEnsName.js.map +1 -1
- package/dist/esm/hooks/useEnsResolver.js +2 -3
- package/dist/esm/hooks/useEnsResolver.js.map +1 -1
- package/dist/esm/hooks/useEnsText.js +2 -3
- package/dist/esm/hooks/useEnsText.js.map +1 -1
- package/dist/esm/hooks/useEstimateFeesPerGas.js +2 -2
- package/dist/esm/hooks/useEstimateFeesPerGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateGas.js +6 -12
- package/dist/esm/hooks/useEstimateGas.js.map +1 -1
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js +2 -2
- package/dist/esm/hooks/useEstimateMaxPriorityFeePerGas.js.map +1 -1
- package/dist/esm/hooks/useFeeHistory.js +2 -3
- package/dist/esm/hooks/useFeeHistory.js.map +1 -1
- package/dist/esm/hooks/useGasPrice.js +4 -5
- package/dist/esm/hooks/useGasPrice.js.map +1 -1
- package/dist/esm/hooks/usePrepareTransactionRequest.js +2 -7
- package/dist/esm/hooks/usePrepareTransactionRequest.js.map +1 -1
- package/dist/esm/hooks/useProof.js +2 -3
- package/dist/esm/hooks/useProof.js.map +1 -1
- package/dist/esm/hooks/useReadContract.js +6 -11
- package/dist/esm/hooks/useReadContract.js.map +1 -1
- package/dist/esm/hooks/useReadContracts.js +9 -24
- package/dist/esm/hooks/useReadContracts.js.map +1 -1
- package/dist/esm/hooks/useSimulateContract.js +6 -10
- package/dist/esm/hooks/useSimulateContract.js.map +1 -1
- package/dist/esm/hooks/useStorageAt.js +2 -3
- package/dist/esm/hooks/useStorageAt.js.map +1 -1
- package/dist/esm/hooks/useTransaction.js +2 -7
- package/dist/esm/hooks/useTransaction.js.map +1 -1
- package/dist/esm/hooks/useTransactionConfirmations.js +2 -5
- package/dist/esm/hooks/useTransactionConfirmations.js.map +1 -1
- package/dist/esm/hooks/useTransactionCount.js +2 -3
- package/dist/esm/hooks/useTransactionCount.js.map +1 -1
- package/dist/esm/hooks/useTransactionReceipt.js +2 -7
- package/dist/esm/hooks/useTransactionReceipt.js.map +1 -1
- package/dist/esm/hooks/useVerifyMessage.js +2 -3
- package/dist/esm/hooks/useVerifyMessage.js.map +1 -1
- package/dist/esm/hooks/useVerifyTypedData.js +2 -8
- package/dist/esm/hooks/useVerifyTypedData.js.map +1 -1
- package/dist/esm/hooks/useWaitForCallsStatus.js +8 -4
- package/dist/esm/hooks/useWaitForCallsStatus.js.map +1 -1
- package/dist/esm/hooks/useWaitForTransactionReceipt.js +2 -7
- package/dist/esm/hooks/useWaitForTransactionReceipt.js.map +1 -1
- package/dist/esm/hooks/useWalletClient.js +9 -19
- package/dist/esm/hooks/useWalletClient.js.map +1 -1
- 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/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/exports/internal.d.ts +1 -1
- package/dist/types/exports/internal.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseReadContract.d.ts +5 -5
- package/dist/types/hooks/codegen/createUseReadContract.d.ts.map +1 -1
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts +5 -5
- package/dist/types/hooks/codegen/createUseSimulateContract.d.ts.map +1 -1
- package/dist/types/hooks/useBalance.d.ts +3 -4
- package/dist/types/hooks/useBalance.d.ts.map +1 -1
- package/dist/types/hooks/useBlock.d.ts +3 -3
- package/dist/types/hooks/useBlock.d.ts.map +1 -1
- package/dist/types/hooks/useBlockNumber.d.ts +3 -3
- package/dist/types/hooks/useBlockNumber.d.ts.map +1 -1
- package/dist/types/hooks/useBlockTransactionCount.d.ts +3 -3
- package/dist/types/hooks/useBlockTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useBytecode.d.ts +3 -4
- package/dist/types/hooks/useBytecode.d.ts.map +1 -1
- package/dist/types/hooks/useCall.d.ts +3 -4
- package/dist/types/hooks/useCall.d.ts.map +1 -1
- package/dist/types/hooks/useCallsStatus.d.ts +3 -3
- package/dist/types/hooks/useCallsStatus.d.ts.map +1 -1
- package/dist/types/hooks/useCapabilities.d.ts +3 -3
- package/dist/types/hooks/useCapabilities.d.ts.map +1 -1
- package/dist/types/hooks/useConnectorClient.d.ts +4 -6
- package/dist/types/hooks/useConnectorClient.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAddress.d.ts +3 -3
- package/dist/types/hooks/useEnsAddress.d.ts.map +1 -1
- package/dist/types/hooks/useEnsAvatar.d.ts +3 -3
- package/dist/types/hooks/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/hooks/useEnsName.d.ts +3 -3
- package/dist/types/hooks/useEnsName.d.ts.map +1 -1
- package/dist/types/hooks/useEnsResolver.d.ts +3 -3
- package/dist/types/hooks/useEnsResolver.d.ts.map +1 -1
- package/dist/types/hooks/useEnsText.d.ts +3 -3
- package/dist/types/hooks/useEnsText.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts +3 -3
- package/dist/types/hooks/useEstimateFeesPerGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateGas.d.ts +3 -3
- package/dist/types/hooks/useEstimateGas.d.ts.map +1 -1
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts +3 -3
- package/dist/types/hooks/useEstimateMaxPriorityFeePerGas.d.ts.map +1 -1
- package/dist/types/hooks/useFeeHistory.d.ts +3 -3
- package/dist/types/hooks/useFeeHistory.d.ts.map +1 -1
- package/dist/types/hooks/useGasPrice.d.ts +3 -3
- package/dist/types/hooks/useGasPrice.d.ts.map +1 -1
- package/dist/types/hooks/usePrepareTransactionRequest.d.ts +3 -4
- package/dist/types/hooks/usePrepareTransactionRequest.d.ts.map +1 -1
- package/dist/types/hooks/useProof.d.ts +3 -4
- package/dist/types/hooks/useProof.d.ts.map +1 -1
- package/dist/types/hooks/useReadContract.d.ts +3 -3
- package/dist/types/hooks/useReadContract.d.ts.map +1 -1
- package/dist/types/hooks/useReadContracts.d.ts +3 -3
- package/dist/types/hooks/useReadContracts.d.ts.map +1 -1
- package/dist/types/hooks/useSimulateContract.d.ts +4 -4
- package/dist/types/hooks/useSimulateContract.d.ts.map +1 -1
- package/dist/types/hooks/useStorageAt.d.ts +3 -4
- package/dist/types/hooks/useStorageAt.d.ts.map +1 -1
- package/dist/types/hooks/useTransaction.d.ts +3 -3
- package/dist/types/hooks/useTransaction.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionConfirmations.d.ts +3 -3
- package/dist/types/hooks/useTransactionConfirmations.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionCount.d.ts +3 -4
- package/dist/types/hooks/useTransactionCount.d.ts.map +1 -1
- package/dist/types/hooks/useTransactionReceipt.d.ts +3 -4
- package/dist/types/hooks/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useVerifyMessage.d.ts +3 -4
- package/dist/types/hooks/useVerifyMessage.d.ts.map +1 -1
- package/dist/types/hooks/useVerifyTypedData.d.ts +3 -4
- package/dist/types/hooks/useVerifyTypedData.d.ts.map +1 -1
- package/dist/types/hooks/useWaitForCallsStatus.d.ts +3 -3
- package/dist/types/hooks/useWaitForCallsStatus.d.ts.map +1 -1
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts +3 -3
- package/dist/types/hooks/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/hooks/useWalletClient.d.ts +4 -6
- package/dist/types/hooks/useWalletClient.d.ts.map +1 -1
- package/dist/types/tempo/hooks/amm.d.ts +3 -3
- package/dist/types/tempo/hooks/amm.d.ts.map +1 -1
- package/dist/types/tempo/hooks/dex.d.ts +7 -7
- package/dist/types/tempo/hooks/dex.d.ts.map +1 -1
- package/dist/types/tempo/hooks/fee.d.ts +2 -2
- package/dist/types/tempo/hooks/fee.d.ts.map +1 -1
- package/dist/types/tempo/hooks/nonce.d.ts +2 -2
- package/dist/types/tempo/hooks/nonce.d.ts.map +1 -1
- package/dist/types/tempo/hooks/policy.d.ts +3 -3
- package/dist/types/tempo/hooks/policy.d.ts.map +1 -1
- package/dist/types/tempo/hooks/reward.d.ts +3 -3
- package/dist/types/tempo/hooks/reward.d.ts.map +1 -1
- package/dist/types/tempo/hooks/token.d.ts +6 -6
- package/dist/types/tempo/hooks/token.d.ts.map +1 -1
- package/dist/types/types/properties.d.ts +1 -4
- package/dist/types/types/properties.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/exports/internal.ts +1 -4
- package/src/hooks/codegen/createUseReadContract.ts +9 -10
- package/src/hooks/codegen/createUseSimulateContract.ts +9 -6
- package/src/hooks/useBalance.ts +4 -21
- package/src/hooks/useBlock.ts +13 -36
- package/src/hooks/useBlockNumber.ts +13 -26
- package/src/hooks/useBlockTransactionCount.ts +7 -21
- package/src/hooks/useBytecode.ts +4 -20
- package/src/hooks/useCall.ts +4 -20
- package/src/hooks/useCallsStatus.ts +10 -21
- package/src/hooks/useCapabilities.ts +7 -23
- package/src/hooks/useConnectorClient.ts +13 -50
- package/src/hooks/useEnsAddress.ts +4 -21
- package/src/hooks/useEnsAvatar.ts +4 -21
- package/src/hooks/useEnsName.ts +4 -21
- package/src/hooks/useEnsResolver.ts +4 -21
- package/src/hooks/useEnsText.ts +4 -21
- package/src/hooks/useEstimateFeesPerGas.ts +4 -18
- package/src/hooks/useEstimateGas.ts +8 -28
- package/src/hooks/useEstimateMaxPriorityFeePerGas.ts +5 -18
- package/src/hooks/useFeeHistory.ts +4 -21
- package/src/hooks/useGasPrice.ts +6 -21
- package/src/hooks/usePrepareTransactionRequest.ts +5 -28
- package/src/hooks/useProof.ts +4 -21
- package/src/hooks/useReadContract.ts +9 -33
- package/src/hooks/useReadContracts.ts +13 -45
- package/src/hooks/useSimulateContract.ts +19 -37
- package/src/hooks/useStorageAt.ts +4 -20
- package/src/hooks/useTransaction.ts +4 -25
- package/src/hooks/useTransactionConfirmations.ts +5 -23
- package/src/hooks/useTransactionCount.ts +4 -19
- package/src/hooks/useTransactionReceipt.ts +5 -22
- package/src/hooks/useVerifyMessage.ts +4 -22
- package/src/hooks/useVerifyTypedData.ts +9 -39
- package/src/hooks/useWaitForCallsStatus.ts +10 -22
- package/src/hooks/useWaitForTransactionReceipt.ts +5 -23
- package/src/hooks/useWalletClient.ts +15 -56
- package/src/tempo/hooks/amm.ts +5 -23
- package/src/tempo/hooks/dex.ts +13 -55
- package/src/tempo/hooks/fee.ts +3 -10
- package/src/tempo/hooks/nonce.ts +2 -11
- package/src/tempo/hooks/policy.ts +3 -21
- package/src/tempo/hooks/reward.ts +7 -25
- package/src/tempo/hooks/token.ts +6 -51
- package/src/types/properties.ts +1 -18
- package/src/version.ts +1 -1
package/src/tempo/hooks/dex.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
|
|
|
6
6
|
|
|
7
7
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
8
8
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
9
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
10
10
|
import {
|
|
11
11
|
type UseMutationParameters,
|
|
12
12
|
type UseQueryReturnType,
|
|
@@ -616,15 +616,8 @@ export declare namespace useBalance {
|
|
|
616
616
|
config extends Config = ResolvedRegister['config'],
|
|
617
617
|
selectData = Actions.dex.getBalance.ReturnValue,
|
|
618
618
|
> = ConfigParameter<config> &
|
|
619
|
-
|
|
620
|
-
Actions.dex.getBalance.
|
|
621
|
-
Actions.dex.getBalance.ErrorType,
|
|
622
|
-
selectData,
|
|
623
|
-
Actions.dex.getBalance.QueryKey<config>
|
|
624
|
-
> &
|
|
625
|
-
Omit<
|
|
626
|
-
Actions.dex.getBalance.queryOptions.Parameters<config, selectData>,
|
|
627
|
-
'query'
|
|
619
|
+
ExactPartial<
|
|
620
|
+
Actions.dex.getBalance.queryOptions.Parameters<config, selectData>
|
|
628
621
|
>
|
|
629
622
|
|
|
630
623
|
export type ReturnValue<selectData = Actions.dex.getBalance.ReturnValue> =
|
|
@@ -673,15 +666,8 @@ export declare namespace useBuyQuote {
|
|
|
673
666
|
config extends Config = ResolvedRegister['config'],
|
|
674
667
|
selectData = Actions.dex.getBuyQuote.ReturnValue,
|
|
675
668
|
> = ConfigParameter<config> &
|
|
676
|
-
|
|
677
|
-
Actions.dex.getBuyQuote.
|
|
678
|
-
Actions.dex.getBuyQuote.ErrorType,
|
|
679
|
-
selectData,
|
|
680
|
-
Actions.dex.getBuyQuote.QueryKey<config>
|
|
681
|
-
> &
|
|
682
|
-
Omit<
|
|
683
|
-
Actions.dex.getBuyQuote.queryOptions.Parameters<config, selectData>,
|
|
684
|
-
'query'
|
|
669
|
+
ExactPartial<
|
|
670
|
+
Actions.dex.getBuyQuote.queryOptions.Parameters<config, selectData>
|
|
685
671
|
>
|
|
686
672
|
|
|
687
673
|
export type ReturnValue<selectData = Actions.dex.getBuyQuote.ReturnValue> =
|
|
@@ -728,15 +714,8 @@ export declare namespace useOrder {
|
|
|
728
714
|
config extends Config = ResolvedRegister['config'],
|
|
729
715
|
selectData = Actions.dex.getOrder.ReturnValue,
|
|
730
716
|
> = ConfigParameter<config> &
|
|
731
|
-
|
|
732
|
-
Actions.dex.getOrder.
|
|
733
|
-
Actions.dex.getOrder.ErrorType,
|
|
734
|
-
selectData,
|
|
735
|
-
Actions.dex.getOrder.QueryKey<config>
|
|
736
|
-
> &
|
|
737
|
-
Omit<
|
|
738
|
-
Actions.dex.getOrder.queryOptions.Parameters<config, selectData>,
|
|
739
|
-
'query'
|
|
717
|
+
ExactPartial<
|
|
718
|
+
Actions.dex.getOrder.queryOptions.Parameters<config, selectData>
|
|
740
719
|
>
|
|
741
720
|
|
|
742
721
|
export type ReturnValue<selectData = Actions.dex.getOrder.ReturnValue> =
|
|
@@ -784,15 +763,8 @@ export declare namespace useOrderbook {
|
|
|
784
763
|
config extends Config = ResolvedRegister['config'],
|
|
785
764
|
selectData = Actions.dex.getOrderbook.ReturnValue,
|
|
786
765
|
> = ConfigParameter<config> &
|
|
787
|
-
|
|
788
|
-
Actions.dex.getOrderbook.
|
|
789
|
-
Actions.dex.getOrderbook.ErrorType,
|
|
790
|
-
selectData,
|
|
791
|
-
Actions.dex.getOrderbook.QueryKey<config>
|
|
792
|
-
> &
|
|
793
|
-
Omit<
|
|
794
|
-
Actions.dex.getOrderbook.queryOptions.Parameters<config, selectData>,
|
|
795
|
-
'query'
|
|
766
|
+
ExactPartial<
|
|
767
|
+
Actions.dex.getOrderbook.queryOptions.Parameters<config, selectData>
|
|
796
768
|
>
|
|
797
769
|
|
|
798
770
|
export type ReturnValue<selectData = Actions.dex.getOrderbook.ReturnValue> =
|
|
@@ -842,15 +814,8 @@ export declare namespace useTickLevel {
|
|
|
842
814
|
config extends Config = ResolvedRegister['config'],
|
|
843
815
|
selectData = Actions.dex.getTickLevel.ReturnValue,
|
|
844
816
|
> = ConfigParameter<config> &
|
|
845
|
-
|
|
846
|
-
Actions.dex.getTickLevel.
|
|
847
|
-
Actions.dex.getTickLevel.ErrorType,
|
|
848
|
-
selectData,
|
|
849
|
-
Actions.dex.getTickLevel.QueryKey<config>
|
|
850
|
-
> &
|
|
851
|
-
Omit<
|
|
852
|
-
Actions.dex.getTickLevel.queryOptions.Parameters<config, selectData>,
|
|
853
|
-
'query'
|
|
817
|
+
ExactPartial<
|
|
818
|
+
Actions.dex.getTickLevel.queryOptions.Parameters<config, selectData>
|
|
854
819
|
>
|
|
855
820
|
|
|
856
821
|
export type ReturnValue<selectData = Actions.dex.getTickLevel.ReturnValue> =
|
|
@@ -899,15 +864,8 @@ export declare namespace useSellQuote {
|
|
|
899
864
|
config extends Config = ResolvedRegister['config'],
|
|
900
865
|
selectData = Actions.dex.getSellQuote.ReturnValue,
|
|
901
866
|
> = ConfigParameter<config> &
|
|
902
|
-
|
|
903
|
-
Actions.dex.getSellQuote.
|
|
904
|
-
Actions.dex.getSellQuote.ErrorType,
|
|
905
|
-
selectData,
|
|
906
|
-
Actions.dex.getSellQuote.QueryKey<config>
|
|
907
|
-
> &
|
|
908
|
-
Omit<
|
|
909
|
-
Actions.dex.getSellQuote.queryOptions.Parameters<config, selectData>,
|
|
910
|
-
'query'
|
|
867
|
+
ExactPartial<
|
|
868
|
+
Actions.dex.getSellQuote.queryOptions.Parameters<config, selectData>
|
|
911
869
|
>
|
|
912
870
|
|
|
913
871
|
export type ReturnValue<selectData = Actions.dex.getSellQuote.ReturnValue> =
|
package/src/tempo/hooks/fee.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
|
|
|
6
6
|
|
|
7
7
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
8
8
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
9
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
10
10
|
import {
|
|
11
11
|
type UseMutationParameters,
|
|
12
12
|
type UseQueryReturnType,
|
|
@@ -54,15 +54,8 @@ export declare namespace useUserToken {
|
|
|
54
54
|
config extends Config = ResolvedRegister['config'],
|
|
55
55
|
selectData = Actions.fee.getUserToken.ReturnValue,
|
|
56
56
|
> = ConfigParameter<config> &
|
|
57
|
-
|
|
58
|
-
Actions.fee.getUserToken.
|
|
59
|
-
Actions.fee.getUserToken.ErrorType,
|
|
60
|
-
selectData,
|
|
61
|
-
Actions.fee.getUserToken.QueryKey<config>
|
|
62
|
-
> &
|
|
63
|
-
Omit<
|
|
64
|
-
Actions.fee.getUserToken.queryOptions.Parameters<config, selectData>,
|
|
65
|
-
'query'
|
|
57
|
+
ExactPartial<
|
|
58
|
+
Actions.fee.getUserToken.queryOptions.Parameters<config, selectData>
|
|
66
59
|
>
|
|
67
60
|
|
|
68
61
|
export type ReturnValue<selectData = Actions.fee.getUserToken.ReturnValue> =
|
package/src/tempo/hooks/nonce.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { useEffect } from 'react'
|
|
|
5
5
|
|
|
6
6
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
7
7
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
8
|
-
import type { ConfigParameter
|
|
8
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
9
9
|
import { type UseQueryReturnType, useQuery } from '../../utils/query.js'
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -49,17 +49,8 @@ export declare namespace useNonce {
|
|
|
49
49
|
config extends Config = ResolvedRegister['config'],
|
|
50
50
|
selectData = Actions.nonce.getNonce.ReturnValue,
|
|
51
51
|
> = ConfigParameter<config> &
|
|
52
|
-
QueryParameter<
|
|
53
|
-
Actions.nonce.getNonce.ReturnValue,
|
|
54
|
-
Actions.nonce.getNonce.ErrorType,
|
|
55
|
-
selectData,
|
|
56
|
-
Actions.nonce.getNonce.QueryKey<config>
|
|
57
|
-
> &
|
|
58
52
|
ExactPartial<
|
|
59
|
-
|
|
60
|
-
Actions.nonce.getNonce.queryOptions.Parameters<config, selectData>,
|
|
61
|
-
'query'
|
|
62
|
-
>
|
|
53
|
+
Actions.nonce.getNonce.queryOptions.Parameters<config, selectData>
|
|
63
54
|
>
|
|
64
55
|
|
|
65
56
|
export type ReturnValue<selectData = Actions.nonce.getNonce.ReturnValue> =
|
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
|
|
|
6
6
|
|
|
7
7
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
8
8
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
9
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
10
10
|
import {
|
|
11
11
|
type UseMutationParameters,
|
|
12
12
|
type UseQueryReturnType,
|
|
@@ -602,17 +602,8 @@ export declare namespace useData {
|
|
|
602
602
|
config extends Config = ResolvedRegister['config'],
|
|
603
603
|
selectData = Actions.policy.getData.ReturnValue,
|
|
604
604
|
> = ConfigParameter<config> &
|
|
605
|
-
QueryParameter<
|
|
606
|
-
Actions.policy.getData.ReturnValue,
|
|
607
|
-
Actions.policy.getData.ErrorType,
|
|
608
|
-
selectData,
|
|
609
|
-
Actions.policy.getData.QueryKey<config>
|
|
610
|
-
> &
|
|
611
605
|
ExactPartial<
|
|
612
|
-
|
|
613
|
-
Actions.policy.getData.queryOptions.Parameters<config, selectData>,
|
|
614
|
-
'query'
|
|
615
|
-
>
|
|
606
|
+
Actions.policy.getData.queryOptions.Parameters<config, selectData>
|
|
616
607
|
>
|
|
617
608
|
|
|
618
609
|
export type ReturnValue<selectData = Actions.policy.getData.ReturnValue> =
|
|
@@ -660,17 +651,8 @@ export declare namespace useIsAuthorized {
|
|
|
660
651
|
config extends Config = ResolvedRegister['config'],
|
|
661
652
|
selectData = Actions.policy.isAuthorized.ReturnValue,
|
|
662
653
|
> = ConfigParameter<config> &
|
|
663
|
-
QueryParameter<
|
|
664
|
-
Actions.policy.isAuthorized.ReturnValue,
|
|
665
|
-
Actions.policy.isAuthorized.ErrorType,
|
|
666
|
-
selectData,
|
|
667
|
-
Actions.policy.isAuthorized.QueryKey<config>
|
|
668
|
-
> &
|
|
669
654
|
ExactPartial<
|
|
670
|
-
|
|
671
|
-
Actions.policy.isAuthorized.queryOptions.Parameters<config, selectData>,
|
|
672
|
-
'query'
|
|
673
|
-
>
|
|
655
|
+
Actions.policy.isAuthorized.queryOptions.Parameters<config, selectData>
|
|
674
656
|
>
|
|
675
657
|
|
|
676
658
|
export type ReturnValue<
|
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
|
|
|
6
6
|
|
|
7
7
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
8
8
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
9
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
10
10
|
import {
|
|
11
11
|
type UseMutationParameters,
|
|
12
12
|
type UseQueryReturnType,
|
|
@@ -186,19 +186,10 @@ export declare namespace useGetGlobalRewardPerToken {
|
|
|
186
186
|
config extends Config = ResolvedRegister['config'],
|
|
187
187
|
selectData = Actions.reward.getGlobalRewardPerToken.ReturnValue,
|
|
188
188
|
> = ConfigParameter<config> &
|
|
189
|
-
QueryParameter<
|
|
190
|
-
Actions.reward.getGlobalRewardPerToken.ReturnValue,
|
|
191
|
-
Actions.reward.getGlobalRewardPerToken.ErrorType,
|
|
192
|
-
selectData,
|
|
193
|
-
Actions.reward.getGlobalRewardPerToken.QueryKey<config>
|
|
194
|
-
> &
|
|
195
189
|
ExactPartial<
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
selectData
|
|
200
|
-
>,
|
|
201
|
-
'query'
|
|
190
|
+
Actions.reward.getGlobalRewardPerToken.queryOptions.Parameters<
|
|
191
|
+
config,
|
|
192
|
+
selectData
|
|
202
193
|
>
|
|
203
194
|
>
|
|
204
195
|
|
|
@@ -254,19 +245,10 @@ export declare namespace useUserRewardInfo {
|
|
|
254
245
|
config extends Config = ResolvedRegister['config'],
|
|
255
246
|
selectData = Actions.reward.getUserRewardInfo.ReturnValue,
|
|
256
247
|
> = ConfigParameter<config> &
|
|
257
|
-
QueryParameter<
|
|
258
|
-
Actions.reward.getUserRewardInfo.ReturnValue,
|
|
259
|
-
Actions.reward.getUserRewardInfo.ErrorType,
|
|
260
|
-
selectData,
|
|
261
|
-
Actions.reward.getUserRewardInfo.QueryKey<config>
|
|
262
|
-
> &
|
|
263
248
|
ExactPartial<
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
selectData
|
|
268
|
-
>,
|
|
269
|
-
'query'
|
|
249
|
+
Actions.reward.getUserRewardInfo.queryOptions.Parameters<
|
|
250
|
+
config,
|
|
251
|
+
selectData
|
|
270
252
|
>
|
|
271
253
|
>
|
|
272
254
|
|
package/src/tempo/hooks/token.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { useEffect } from 'react'
|
|
|
6
6
|
|
|
7
7
|
import { useChainId } from '../../hooks/useChainId.js'
|
|
8
8
|
import { useConfig } from '../../hooks/useConfig.js'
|
|
9
|
-
import type { ConfigParameter
|
|
9
|
+
import type { ConfigParameter } from '../../types/properties.js'
|
|
10
10
|
import {
|
|
11
11
|
type UseMutationParameters,
|
|
12
12
|
type UseQueryReturnType,
|
|
@@ -877,17 +877,8 @@ export declare namespace useGetAllowance {
|
|
|
877
877
|
config extends Config = ResolvedRegister['config'],
|
|
878
878
|
selectData = Actions.token.getAllowance.ReturnValue,
|
|
879
879
|
> = ConfigParameter<config> &
|
|
880
|
-
QueryParameter<
|
|
881
|
-
Actions.token.getAllowance.ReturnValue,
|
|
882
|
-
Actions.token.getAllowance.ErrorType,
|
|
883
|
-
selectData,
|
|
884
|
-
Actions.token.getAllowance.QueryKey<config>
|
|
885
|
-
> &
|
|
886
880
|
ExactPartial<
|
|
887
|
-
|
|
888
|
-
Actions.token.getAllowance.queryOptions.Parameters<config, selectData>,
|
|
889
|
-
'query'
|
|
890
|
-
>
|
|
881
|
+
Actions.token.getAllowance.queryOptions.Parameters<config, selectData>
|
|
891
882
|
>
|
|
892
883
|
|
|
893
884
|
export type ReturnValue<selectData = Actions.token.getAllowance.ReturnValue> =
|
|
@@ -934,17 +925,8 @@ export declare namespace useGetBalance {
|
|
|
934
925
|
config extends Config = ResolvedRegister['config'],
|
|
935
926
|
selectData = Actions.token.getBalance.ReturnValue,
|
|
936
927
|
> = ConfigParameter<config> &
|
|
937
|
-
QueryParameter<
|
|
938
|
-
Actions.token.getBalance.ReturnValue,
|
|
939
|
-
Actions.token.getBalance.ErrorType,
|
|
940
|
-
selectData,
|
|
941
|
-
Actions.token.getBalance.QueryKey<config>
|
|
942
|
-
> &
|
|
943
928
|
ExactPartial<
|
|
944
|
-
|
|
945
|
-
Actions.token.getBalance.queryOptions.Parameters<config, selectData>,
|
|
946
|
-
'query'
|
|
947
|
-
>
|
|
929
|
+
Actions.token.getBalance.queryOptions.Parameters<config, selectData>
|
|
948
930
|
>
|
|
949
931
|
|
|
950
932
|
export type ReturnValue<selectData = Actions.token.getBalance.ReturnValue> =
|
|
@@ -991,17 +973,8 @@ export declare namespace useGetMetadata {
|
|
|
991
973
|
config extends Config = ResolvedRegister['config'],
|
|
992
974
|
selectData = Actions.token.getMetadata.ReturnValue,
|
|
993
975
|
> = ConfigParameter<config> &
|
|
994
|
-
QueryParameter<
|
|
995
|
-
Actions.token.getMetadata.ReturnValue,
|
|
996
|
-
Actions.token.getMetadata.ErrorType,
|
|
997
|
-
selectData,
|
|
998
|
-
Actions.token.getMetadata.QueryKey<config>
|
|
999
|
-
> &
|
|
1000
976
|
ExactPartial<
|
|
1001
|
-
|
|
1002
|
-
Actions.token.getMetadata.queryOptions.Parameters<config, selectData>,
|
|
1003
|
-
'query'
|
|
1004
|
-
>
|
|
977
|
+
Actions.token.getMetadata.queryOptions.Parameters<config, selectData>
|
|
1005
978
|
>
|
|
1006
979
|
|
|
1007
980
|
export type ReturnValue<selectData = Actions.token.getMetadata.ReturnValue> =
|
|
@@ -1049,17 +1022,8 @@ export declare namespace useGetRoleAdmin {
|
|
|
1049
1022
|
config extends Config = ResolvedRegister['config'],
|
|
1050
1023
|
selectData = Actions.token.getRoleAdmin.ReturnValue,
|
|
1051
1024
|
> = ConfigParameter<config> &
|
|
1052
|
-
QueryParameter<
|
|
1053
|
-
Actions.token.getRoleAdmin.ReturnValue,
|
|
1054
|
-
Actions.token.getRoleAdmin.ErrorType,
|
|
1055
|
-
selectData,
|
|
1056
|
-
Actions.token.getRoleAdmin.QueryKey<config>
|
|
1057
|
-
> &
|
|
1058
1025
|
ExactPartial<
|
|
1059
|
-
|
|
1060
|
-
Actions.token.getRoleAdmin.queryOptions.Parameters<config, selectData>,
|
|
1061
|
-
'query'
|
|
1062
|
-
>
|
|
1026
|
+
Actions.token.getRoleAdmin.queryOptions.Parameters<config, selectData>
|
|
1063
1027
|
>
|
|
1064
1028
|
|
|
1065
1029
|
export type ReturnValue<selectData = Actions.token.getRoleAdmin.ReturnValue> =
|
|
@@ -1245,17 +1209,8 @@ export declare namespace useHasRole {
|
|
|
1245
1209
|
config extends Config = ResolvedRegister['config'],
|
|
1246
1210
|
selectData = Actions.token.hasRole.ReturnValue,
|
|
1247
1211
|
> = ConfigParameter<config> &
|
|
1248
|
-
QueryParameter<
|
|
1249
|
-
Actions.token.hasRole.ReturnValue,
|
|
1250
|
-
Actions.token.hasRole.ErrorType,
|
|
1251
|
-
selectData,
|
|
1252
|
-
Actions.token.hasRole.QueryKey<config>
|
|
1253
|
-
> &
|
|
1254
1212
|
ExactPartial<
|
|
1255
|
-
|
|
1256
|
-
Actions.token.hasRole.queryOptions.Parameters<config, selectData>,
|
|
1257
|
-
'query'
|
|
1258
|
-
>
|
|
1213
|
+
Actions.token.hasRole.queryOptions.Parameters<config, selectData>
|
|
1259
1214
|
>
|
|
1260
1215
|
|
|
1261
1216
|
export type ReturnValue<selectData = Actions.token.hasRole.ReturnValue> =
|
package/src/types/properties.ts
CHANGED
|
@@ -2,10 +2,7 @@ import type { DefaultError, QueryKey } from '@tanstack/react-query'
|
|
|
2
2
|
import type { Config } from '@wagmi/core'
|
|
3
3
|
import type { Omit } from '@wagmi/core/internal'
|
|
4
4
|
|
|
5
|
-
import type {
|
|
6
|
-
UseInfiniteQueryParameters,
|
|
7
|
-
UseQueryParameters,
|
|
8
|
-
} from '../utils/query.js'
|
|
5
|
+
import type { UseInfiniteQueryParameters } from '../utils/query.js'
|
|
9
6
|
|
|
10
7
|
export type EnabledParameter = {
|
|
11
8
|
enabled?: boolean | undefined
|
|
@@ -15,20 +12,6 @@ export type ConfigParameter<config extends Config = Config> = {
|
|
|
15
12
|
config?: Config | config | undefined
|
|
16
13
|
}
|
|
17
14
|
|
|
18
|
-
export type QueryParameter<
|
|
19
|
-
queryFnData = unknown,
|
|
20
|
-
error = DefaultError,
|
|
21
|
-
data = queryFnData,
|
|
22
|
-
queryKey extends QueryKey = QueryKey,
|
|
23
|
-
> = {
|
|
24
|
-
query?:
|
|
25
|
-
| Omit<
|
|
26
|
-
UseQueryParameters<queryFnData, error, data, queryKey>,
|
|
27
|
-
'queryFn' | 'queryHash' | 'queryKey' | 'queryKeyHashFn' | 'throwOnError'
|
|
28
|
-
>
|
|
29
|
-
| undefined
|
|
30
|
-
}
|
|
31
|
-
|
|
32
15
|
export type InfiniteQueryParameter<
|
|
33
16
|
queryFnData = unknown,
|
|
34
17
|
error = DefaultError,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '3.3.
|
|
1
|
+
export const version = '3.3.2'
|