@tokenops/sdk 2.0.0-alpha.1 → 2.0.0-alpha.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/CHANGELOG.md +29 -0
- package/README.md +5 -5
- package/dist/{chunk-JZLGCTGK.cjs → chunk-3YHBO2DL.cjs} +2 -2
- package/dist/{chunk-H5POPGOZ.js → chunk-44YJPMQC.js} +1 -1
- package/dist/{chunk-DZHYSUGY.js → chunk-A4DCEE33.js} +11 -5
- package/dist/{chunk-M4IT6DNJ.cjs → chunk-AREQJHKA.cjs} +108 -3
- package/dist/chunk-EBLBPUPI.cjs +255 -0
- package/dist/chunk-EYDA6Q6C.js +245 -0
- package/dist/{chunk-XAYGD4E4.cjs → chunk-FEDX7B6T.cjs} +3 -3
- package/dist/{chunk-JQYC66TO.cjs → chunk-FHWSBGWE.cjs} +5 -5
- package/dist/{chunk-5576FRT3.cjs → chunk-FT5H2Q7Y.cjs} +11 -5
- package/dist/{chunk-456VDDA3.js → chunk-GADGBQJO.js} +78 -25
- package/dist/{chunk-6NAVMWZQ.js → chunk-IGO5XSPS.js} +2 -2
- package/dist/{chunk-CTED3MTR.cjs → chunk-IUKKNJ2R.cjs} +82 -29
- package/dist/{chunk-FGEB7RMY.cjs → chunk-MM5BV5CS.cjs} +4 -4
- package/dist/{chunk-335Z2W67.js → chunk-PYYSB5ZN.js} +1 -1
- package/dist/{chunk-PUX5VXDB.cjs → chunk-PZZK3O3S.cjs} +1040 -42
- package/dist/{chunk-74QFZ5MK.js → chunk-SPLNGUFF.js} +1 -1
- package/dist/{chunk-6PXXGACR.cjs → chunk-UHHMVBLU.cjs} +2 -2
- package/dist/{chunk-O5676ZWY.js → chunk-VW356KR3.js} +108 -5
- package/dist/{chunk-EAJ7SYHE.js → chunk-WJMEBBU7.js} +1 -1
- package/dist/{chunk-GKKDAW44.js → chunk-X7WBPCEU.js} +1026 -32
- package/dist/core/addresses.d.ts +4 -4
- package/dist/core/errors.d.ts +1 -1
- package/dist/fhe/types.d.ts +2 -2
- package/dist/fhe-airdrop/abis/merkle.d.ts +24 -12
- package/dist/fhe-airdrop/advanced/index.cjs +4 -4
- package/dist/fhe-airdrop/advanced/index.js +1 -1
- package/dist/fhe-airdrop/advanced/react/index.cjs +590 -9
- package/dist/fhe-airdrop/advanced/react/index.d.cts +34 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +34 -0
- package/dist/fhe-airdrop/advanced/react/index.js +561 -7
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +35 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +47 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
- package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
- package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +8 -0
- package/dist/fhe-airdrop/campaign.d.ts +61 -20
- package/dist/fhe-airdrop/constants.d.ts +1 -1
- package/dist/fhe-airdrop/errors.d.ts +28 -0
- package/dist/fhe-airdrop/guards.d.ts +46 -2
- package/dist/fhe-airdrop/index.cjs +74 -971
- package/dist/fhe-airdrop/index.d.cts +2 -2
- package/dist/fhe-airdrop/index.d.ts +2 -2
- package/dist/fhe-airdrop/index.js +8 -927
- package/dist/fhe-airdrop/merkle-tree.d.ts +32 -38
- package/dist/fhe-airdrop/merkle.d.ts +52 -31
- package/dist/fhe-airdrop/react/_shared.d.ts +13 -0
- package/dist/fhe-airdrop/react/index.cjs +934 -84
- package/dist/fhe-airdrop/react/index.d.cts +49 -3
- package/dist/fhe-airdrop/react/index.d.ts +49 -3
- package/dist/fhe-airdrop/react/index.js +825 -22
- package/dist/fhe-airdrop/react/keys.d.ts +90 -0
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
- package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +35 -0
- package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +33 -0
- package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
- package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
- package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
- package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
- package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
- package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
- package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +4 -3
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
- package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
- package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
- package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +7 -19
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +67 -0
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
- package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +42 -0
- package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/types.d.ts +14 -1
- package/dist/fhe-disperse/index.cjs +21 -21
- package/dist/fhe-disperse/index.js +2 -2
- package/dist/fhe-disperse/react/index.cjs +22 -22
- package/dist/fhe-disperse/react/index.js +3 -3
- package/dist/fhe-vesting/advanced/index.cjs +5 -5
- package/dist/fhe-vesting/advanced/index.js +3 -3
- package/dist/fhe-vesting/advanced/react/index.cjs +7 -7
- package/dist/fhe-vesting/advanced/react/index.js +4 -4
- package/dist/fhe-vesting/index.cjs +8 -8
- package/dist/fhe-vesting/index.js +2 -2
- package/dist/fhe-vesting/react/index.cjs +114 -114
- package/dist/fhe-vesting/react/index.js +3 -3
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/index.cjs +14 -14
- package/dist/testnet-faucet/index.js +2 -2
- package/dist/testnet-faucet/react/index.cjs +8 -8
- package/dist/testnet-faucet/react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-NCVX3K2N.cjs +0 -161
- package/dist/chunk-VP2B4WM2.js +0 -154
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkIUKKNJ2R_cjs = require('../../chunk-IUKKNJ2R.cjs');
|
|
4
|
+
var chunkEBLBPUPI_cjs = require('../../chunk-EBLBPUPI.cjs');
|
|
5
|
+
var chunkPZZK3O3S_cjs = require('../../chunk-PZZK3O3S.cjs');
|
|
6
|
+
var chunkAREQJHKA_cjs = require('../../chunk-AREQJHKA.cjs');
|
|
7
7
|
require('../../chunk-FAXIIH5R.cjs');
|
|
8
8
|
require('../../chunk-UG5RKLU2.cjs');
|
|
9
9
|
require('../../chunk-MVDQMV25.cjs');
|
|
10
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-FT5H2Q7Y.cjs');
|
|
11
11
|
require('../../chunk-JK4XMMKM.cjs');
|
|
12
12
|
require('../../chunk-66IHPTOK.cjs');
|
|
13
13
|
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
14
14
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
15
15
|
var reactQuery = require('@tanstack/react-query');
|
|
16
|
+
var react = require('react');
|
|
16
17
|
|
|
17
18
|
function useAirdropToken(args) {
|
|
18
|
-
const { client, chainId } =
|
|
19
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
19
20
|
return reactQuery.useQuery({
|
|
20
21
|
...args.query,
|
|
21
|
-
queryKey:
|
|
22
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
|
|
22
23
|
queryFn: () => client.token(),
|
|
23
24
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
27
|
function useAirdropWindow(args) {
|
|
27
|
-
const { client, chainId } =
|
|
28
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
28
29
|
return reactQuery.useQuery({
|
|
29
30
|
...args.query,
|
|
30
|
-
queryKey:
|
|
31
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "window", args: [] }),
|
|
31
32
|
queryFn: async () => {
|
|
32
33
|
const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
|
|
33
34
|
client.startTime(),
|
|
@@ -42,29 +43,29 @@ function useAirdropWindow(args) {
|
|
|
42
43
|
});
|
|
43
44
|
}
|
|
44
45
|
function useAirdropPaused(args) {
|
|
45
|
-
const { client, chainId } =
|
|
46
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
46
47
|
return reactQuery.useQuery({
|
|
47
48
|
...args.query,
|
|
48
|
-
queryKey:
|
|
49
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "paused", args: [] }),
|
|
49
50
|
queryFn: () => client.paused(),
|
|
50
51
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
51
52
|
});
|
|
52
53
|
}
|
|
53
54
|
function useAirdropGasFee(args) {
|
|
54
|
-
const { client, chainId } =
|
|
55
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
55
56
|
return reactQuery.useQuery({
|
|
56
57
|
...args.query,
|
|
57
|
-
queryKey:
|
|
58
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "gasFee", args: [] }),
|
|
58
59
|
queryFn: () => client.gasFee(),
|
|
59
60
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
function useAirdropHasRole(args) {
|
|
63
64
|
const { role, holder, ...base } = args;
|
|
64
|
-
const { client, chainId } =
|
|
65
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
65
66
|
return reactQuery.useQuery({
|
|
66
67
|
...args.query,
|
|
67
|
-
queryKey:
|
|
68
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
68
69
|
chainId,
|
|
69
70
|
address: args.address,
|
|
70
71
|
fn: "hasRole",
|
|
@@ -75,20 +76,20 @@ function useAirdropHasRole(args) {
|
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
function useMerkleRoot(args) {
|
|
78
|
-
const { client, chainId } =
|
|
79
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
|
|
79
80
|
return reactQuery.useQuery({
|
|
80
81
|
...args.query,
|
|
81
|
-
queryKey:
|
|
82
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "merkleRoot", args: [] }),
|
|
82
83
|
queryFn: () => client.merkleRoot(),
|
|
83
84
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
84
85
|
});
|
|
85
86
|
}
|
|
86
87
|
function useClaimedAmount(args) {
|
|
87
88
|
const { account, ...base } = args;
|
|
88
|
-
const { client, chainId } =
|
|
89
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
89
90
|
return reactQuery.useQuery({
|
|
90
91
|
...args.query,
|
|
91
|
-
queryKey:
|
|
92
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
92
93
|
chainId,
|
|
93
94
|
address: args.address,
|
|
94
95
|
fn: "getClaimedAmount",
|
|
@@ -99,10 +100,10 @@ function useClaimedAmount(args) {
|
|
|
99
100
|
});
|
|
100
101
|
}
|
|
101
102
|
function useComplianceManager(args) {
|
|
102
|
-
const { client, chainId } =
|
|
103
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
103
104
|
return reactQuery.useQuery({
|
|
104
105
|
...args.query,
|
|
105
|
-
queryKey:
|
|
106
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
106
107
|
chainId,
|
|
107
108
|
address: args.address,
|
|
108
109
|
fn: "complianceManager",
|
|
@@ -113,10 +114,10 @@ function useComplianceManager(args) {
|
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
116
|
function useFactoryFees(args = {}) {
|
|
116
|
-
const { client, chainId, resolvedAddress } =
|
|
117
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
|
|
117
118
|
return reactQuery.useQuery({
|
|
118
119
|
...args.query,
|
|
119
|
-
queryKey:
|
|
120
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
|
|
120
121
|
queryFn: async () => {
|
|
121
122
|
const [feeCollector, defaultGasFee] = await Promise.all([
|
|
122
123
|
client.feeCollector(),
|
|
@@ -129,10 +130,10 @@ function useFactoryFees(args = {}) {
|
|
|
129
130
|
}
|
|
130
131
|
function useFactoryRegistry(args = {}) {
|
|
131
132
|
const { offset = 0n, limit = 50n, ...base } = args;
|
|
132
|
-
const { client, chainId, resolvedAddress } =
|
|
133
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
133
134
|
return reactQuery.useQuery({
|
|
134
135
|
...args.query,
|
|
135
|
-
queryKey:
|
|
136
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
136
137
|
chainId,
|
|
137
138
|
address: resolvedAddress,
|
|
138
139
|
fn: "registry",
|
|
@@ -150,10 +151,10 @@ function useFactoryRegistry(args = {}) {
|
|
|
150
151
|
}
|
|
151
152
|
function useEffectiveUpgradeable(args = {}) {
|
|
152
153
|
const { creator, ...base } = args;
|
|
153
|
-
const { client, chainId, resolvedAddress } =
|
|
154
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
154
155
|
return reactQuery.useQuery({
|
|
155
156
|
...args.query,
|
|
156
|
-
queryKey:
|
|
157
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
157
158
|
chainId,
|
|
158
159
|
address: resolvedAddress,
|
|
159
160
|
fn: "effectiveUpgradeable",
|
|
@@ -163,8 +164,360 @@ function useEffectiveUpgradeable(args = {}) {
|
|
|
163
164
|
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
164
165
|
});
|
|
165
166
|
}
|
|
167
|
+
function useAirdropConfig(args) {
|
|
168
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
169
|
+
return reactQuery.useQuery({
|
|
170
|
+
staleTime: Infinity,
|
|
171
|
+
...args.query,
|
|
172
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.config({ chainId, address: args.address }),
|
|
173
|
+
queryFn: async () => {
|
|
174
|
+
const [token, airdropType, unwrappable, complianceManager, gasFee] = await Promise.all([
|
|
175
|
+
client.token(),
|
|
176
|
+
client.airdropType(),
|
|
177
|
+
client.unwrappable(),
|
|
178
|
+
client.complianceManager(),
|
|
179
|
+
client.gasFee()
|
|
180
|
+
]);
|
|
181
|
+
return {
|
|
182
|
+
token,
|
|
183
|
+
airdropType,
|
|
184
|
+
variant: airdropType === 1 ? "merkle" : "ecdsa",
|
|
185
|
+
unwrappable,
|
|
186
|
+
complianceManager,
|
|
187
|
+
gasFee
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
function useAirdropDeploymentMode(args) {
|
|
194
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
195
|
+
return reactQuery.useQuery({
|
|
196
|
+
staleTime: Infinity,
|
|
197
|
+
...args.query,
|
|
198
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
199
|
+
chainId,
|
|
200
|
+
address: args.address,
|
|
201
|
+
fn: "deploymentMode",
|
|
202
|
+
args: []
|
|
203
|
+
}),
|
|
204
|
+
queryFn: () => client.deploymentMode(),
|
|
205
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function useAirdropRoleAdmin(args) {
|
|
209
|
+
const { role, ...base } = args;
|
|
210
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
211
|
+
return reactQuery.useQuery({
|
|
212
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
213
|
+
staleTime: Infinity,
|
|
214
|
+
...args.query,
|
|
215
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
216
|
+
chainId,
|
|
217
|
+
address: args.address,
|
|
218
|
+
fn: "getRoleAdmin",
|
|
219
|
+
args: [role]
|
|
220
|
+
}),
|
|
221
|
+
queryFn: () => client.getRoleAdmin(role),
|
|
222
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
function useAirdropRoleConstants(args) {
|
|
226
|
+
const { variant, dedupMode, ...base } = args;
|
|
227
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
228
|
+
const { client: merkleClient } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
229
|
+
const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
|
|
230
|
+
...base,
|
|
231
|
+
dedupMode: dedupMode ?? "none"
|
|
232
|
+
});
|
|
233
|
+
return reactQuery.useQuery({
|
|
234
|
+
// A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
|
|
235
|
+
staleTime: Infinity,
|
|
236
|
+
...args.query,
|
|
237
|
+
// `variant` is in the key because it changes the SHAPE of the result -
|
|
238
|
+
// the merkle and ecdsa responses must not share a cache slot.
|
|
239
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
240
|
+
chainId,
|
|
241
|
+
address: args.address,
|
|
242
|
+
fn: "roleConstants",
|
|
243
|
+
args: [variant]
|
|
244
|
+
}),
|
|
245
|
+
queryFn: async () => {
|
|
246
|
+
const [
|
|
247
|
+
PAUSER_ROLE,
|
|
248
|
+
WINDOW_ADMIN_ROLE,
|
|
249
|
+
TREASURY_ROLE,
|
|
250
|
+
RESCUER_ROLE,
|
|
251
|
+
FEE_COLLECTOR_ROLE,
|
|
252
|
+
UPGRADER_ROLE,
|
|
253
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
254
|
+
DEFAULT_ADMIN_ROLE,
|
|
255
|
+
variantRole
|
|
256
|
+
] = await Promise.all([
|
|
257
|
+
client.PAUSER_ROLE(),
|
|
258
|
+
client.WINDOW_ADMIN_ROLE(),
|
|
259
|
+
client.TREASURY_ROLE(),
|
|
260
|
+
client.RESCUER_ROLE(),
|
|
261
|
+
client.FEE_COLLECTOR_ROLE(),
|
|
262
|
+
client.UPGRADER_ROLE(),
|
|
263
|
+
client.DISCLOSURE_ADMIN_ROLE(),
|
|
264
|
+
client.DEFAULT_ADMIN_ROLE(),
|
|
265
|
+
variant === "merkle" ? merkleClient.MERKLE_ADMIN_ROLE() : variant === "ecdsa" ? ecdsaClient.SIGNER_ROLE() : Promise.resolve(void 0)
|
|
266
|
+
]);
|
|
267
|
+
return {
|
|
268
|
+
PAUSER_ROLE,
|
|
269
|
+
WINDOW_ADMIN_ROLE,
|
|
270
|
+
TREASURY_ROLE,
|
|
271
|
+
RESCUER_ROLE,
|
|
272
|
+
FEE_COLLECTOR_ROLE,
|
|
273
|
+
UPGRADER_ROLE,
|
|
274
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
275
|
+
DEFAULT_ADMIN_ROLE,
|
|
276
|
+
...variant === "merkle" && variantRole ? { MERKLE_ADMIN_ROLE: variantRole } : {},
|
|
277
|
+
...variant === "ecdsa" && variantRole ? { SIGNER_ROLE: variantRole } : {}
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function useAirdropRoleMembers(args) {
|
|
284
|
+
const { role, ...base } = args;
|
|
285
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
286
|
+
return reactQuery.useQuery({
|
|
287
|
+
...args.query,
|
|
288
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers({ chainId, address: args.address }, role),
|
|
289
|
+
queryFn: async () => {
|
|
290
|
+
const [members, count] = await Promise.all([
|
|
291
|
+
client.getRoleMembers(role),
|
|
292
|
+
client.getRoleMemberCount(role)
|
|
293
|
+
]);
|
|
294
|
+
return { members, count };
|
|
295
|
+
},
|
|
296
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function useComplianceHasRole(args) {
|
|
300
|
+
const { role, holder, ...base } = args;
|
|
301
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
302
|
+
return reactQuery.useQuery({
|
|
303
|
+
...args.query,
|
|
304
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole({ chainId, address: args.address }, role, holder),
|
|
305
|
+
queryFn: () => client.hasRole({ role, holder }),
|
|
306
|
+
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function useComplianceInfo(args) {
|
|
310
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
|
|
311
|
+
return reactQuery.useQuery({
|
|
312
|
+
...args.query,
|
|
313
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo({ chainId, address: args.address }),
|
|
314
|
+
queryFn: async () => {
|
|
315
|
+
const [airdrop, platformDelegate, clientDelegates] = await Promise.all([
|
|
316
|
+
client.airdrop(),
|
|
317
|
+
client.complianceDelegate(),
|
|
318
|
+
client.clientDelegates()
|
|
319
|
+
]);
|
|
320
|
+
return { airdrop, platformDelegate, clientDelegates };
|
|
321
|
+
},
|
|
322
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
function useComplianceManagerOf(args = {}) {
|
|
326
|
+
const { airdrop, ...base } = args;
|
|
327
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
328
|
+
return reactQuery.useQuery({
|
|
329
|
+
staleTime: Infinity,
|
|
330
|
+
...args.query,
|
|
331
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
332
|
+
chainId,
|
|
333
|
+
address: resolvedAddress,
|
|
334
|
+
fn: "complianceManagerOf",
|
|
335
|
+
args: [airdrop]
|
|
336
|
+
}),
|
|
337
|
+
queryFn: () => client.complianceManagerOf(airdrop),
|
|
338
|
+
enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function useComplianceRoleConstants(args) {
|
|
342
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
|
|
343
|
+
return reactQuery.useQuery({
|
|
344
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
345
|
+
staleTime: Infinity,
|
|
346
|
+
...args.query,
|
|
347
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
348
|
+
chainId,
|
|
349
|
+
address: args.address,
|
|
350
|
+
fn: "complianceRoleConstants",
|
|
351
|
+
args: []
|
|
352
|
+
}),
|
|
353
|
+
queryFn: async () => {
|
|
354
|
+
const [DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE] = await Promise.all([
|
|
355
|
+
client.DELEGATION_ADMIN_ROLE(),
|
|
356
|
+
client.DEFAULT_ADMIN_ROLE()
|
|
357
|
+
]);
|
|
358
|
+
return { DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE };
|
|
359
|
+
},
|
|
360
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
function useComplianceRoleMembers(args) {
|
|
364
|
+
const { role, ...base } = args;
|
|
365
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
366
|
+
return reactQuery.useQuery({
|
|
367
|
+
...args.query,
|
|
368
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers({ chainId, address: args.address }, role),
|
|
369
|
+
queryFn: async () => {
|
|
370
|
+
const [members, count] = await Promise.all([
|
|
371
|
+
client.getRoleMembers(role),
|
|
372
|
+
client.getRoleMemberCount(role)
|
|
373
|
+
]);
|
|
374
|
+
return { members, count };
|
|
375
|
+
},
|
|
376
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function useEcdsaDomain(args) {
|
|
380
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(args);
|
|
381
|
+
return reactQuery.useQuery({
|
|
382
|
+
staleTime: Infinity,
|
|
383
|
+
...args.query,
|
|
384
|
+
// `dedupMode` is a client-construction concern only; it moves no value
|
|
385
|
+
// read here, so it stays out of the key.
|
|
386
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "ecdsaDomain", args: [] }),
|
|
387
|
+
queryFn: async () => {
|
|
388
|
+
const [claimTypehash, domainSeparator, domain] = await Promise.all([
|
|
389
|
+
client.claimTypehash(),
|
|
390
|
+
client.domainSeparator(),
|
|
391
|
+
client.eip712Domain()
|
|
392
|
+
]);
|
|
393
|
+
return { claimTypehash, domainSeparator, domain };
|
|
394
|
+
},
|
|
395
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
function useEffectiveDelegateToCompliance(args = {}) {
|
|
399
|
+
const { creator, ...base } = args;
|
|
400
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
401
|
+
return reactQuery.useQuery({
|
|
402
|
+
...args.query,
|
|
403
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
404
|
+
chainId,
|
|
405
|
+
address: resolvedAddress,
|
|
406
|
+
fn: "effectiveDelegateToCompliance",
|
|
407
|
+
args: [creator]
|
|
408
|
+
}),
|
|
409
|
+
queryFn: () => client.effectiveDelegateToCompliance(creator),
|
|
410
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
function useIsActiveDelegate(args) {
|
|
414
|
+
const { delegate, ...base } = args;
|
|
415
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
416
|
+
return reactQuery.useQuery({
|
|
417
|
+
...args.query,
|
|
418
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate({ chainId, address: args.address }, delegate),
|
|
419
|
+
queryFn: () => client.isActiveDelegate(delegate),
|
|
420
|
+
enabled: Boolean(client && delegate && (args.query?.enabled ?? true))
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
function useIsMerkleRootMutable(args) {
|
|
424
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
|
|
425
|
+
return reactQuery.useQuery({
|
|
426
|
+
// Before the spread so a consumer can still opt into refetching.
|
|
427
|
+
staleTime: Infinity,
|
|
428
|
+
...args.query,
|
|
429
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRootMutable({ chainId, address: args.address }),
|
|
430
|
+
queryFn: () => client.isMerkleRootMutable(),
|
|
431
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
function useIsSignatureValid(args) {
|
|
435
|
+
const { recipient, encryptedAmountHandle, dedupId, deadline, signer, signature, ...base } = args;
|
|
436
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(base);
|
|
437
|
+
return reactQuery.useQuery({
|
|
438
|
+
...args.query,
|
|
439
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
440
|
+
chainId,
|
|
441
|
+
address: args.address,
|
|
442
|
+
fn: chunkEBLBPUPI_cjs.AIRDROP_FN.isSignatureValid,
|
|
443
|
+
args: [recipient, encryptedAmountHandle, dedupId, deadline, signer, signature]
|
|
444
|
+
}),
|
|
445
|
+
queryFn: () => client.isSignatureValid({
|
|
446
|
+
recipient,
|
|
447
|
+
encryptedAmountHandle,
|
|
448
|
+
dedupId,
|
|
449
|
+
deadline,
|
|
450
|
+
signer,
|
|
451
|
+
signature
|
|
452
|
+
}),
|
|
453
|
+
enabled: Boolean(
|
|
454
|
+
client && recipient && encryptedAmountHandle && dedupId && deadline !== void 0 && signer && signature && (args.query?.enabled ?? true)
|
|
455
|
+
)
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
function usePreflightClaim(args) {
|
|
459
|
+
const { variant, dedupMode, claimant, account, to, entrypoint, signature, ...base } = args;
|
|
460
|
+
const { client: merkleClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
461
|
+
const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
|
|
462
|
+
...base,
|
|
463
|
+
dedupMode: dedupMode ?? "none"
|
|
464
|
+
});
|
|
465
|
+
const client = variant === "ecdsa" ? ecdsaClient : merkleClient;
|
|
466
|
+
return reactQuery.useQuery({
|
|
467
|
+
...args.query,
|
|
468
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
469
|
+
chainId,
|
|
470
|
+
address: args.address,
|
|
471
|
+
fn: "preflightClaim",
|
|
472
|
+
args: [variant, claimant, account, to, entrypoint, signature]
|
|
473
|
+
}),
|
|
474
|
+
queryFn: () => chunkAREQJHKA_cjs.preflightClaim({
|
|
475
|
+
airdrop: client,
|
|
476
|
+
claimant,
|
|
477
|
+
account,
|
|
478
|
+
to,
|
|
479
|
+
entrypoint,
|
|
480
|
+
signature
|
|
481
|
+
}),
|
|
482
|
+
enabled: Boolean(client && claimant && (args.query?.enabled ?? true))
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
function usePreflightCreateAirdrop(args = {}) {
|
|
486
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
|
|
487
|
+
return reactQuery.useQuery({
|
|
488
|
+
...args.query,
|
|
489
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
490
|
+
chainId,
|
|
491
|
+
address: resolvedAddress,
|
|
492
|
+
fn: chunkEBLBPUPI_cjs.AIRDROP_FN.preflightCreate,
|
|
493
|
+
args: [
|
|
494
|
+
args.variant,
|
|
495
|
+
args.mode,
|
|
496
|
+
args.creator,
|
|
497
|
+
args.userSalt,
|
|
498
|
+
args.expectedInitCodeHash,
|
|
499
|
+
// `params` IS key-affecting here, unlike in the predict hooks: the
|
|
500
|
+
// stock-wrapper probe reads `common.token` / `common.unwrappable`.
|
|
501
|
+
args.params
|
|
502
|
+
]
|
|
503
|
+
}),
|
|
504
|
+
queryFn: () => {
|
|
505
|
+
const common = {
|
|
506
|
+
factory: client,
|
|
507
|
+
mode: args.mode,
|
|
508
|
+
creator: args.creator,
|
|
509
|
+
userSalt: args.userSalt,
|
|
510
|
+
expectedInitCodeHash: args.expectedInitCodeHash
|
|
511
|
+
};
|
|
512
|
+
return args.variant === "merkle" ? chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "merkle", params: args.params }) : chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "ecdsa", params: args.params });
|
|
513
|
+
},
|
|
514
|
+
enabled: Boolean(
|
|
515
|
+
client && args.variant && args.params && args.mode && args.creator && args.userSalt && (args.query?.enabled ?? true)
|
|
516
|
+
)
|
|
517
|
+
});
|
|
518
|
+
}
|
|
166
519
|
function useCreateEcdsaAirdrop(options = {}) {
|
|
167
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
520
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
168
521
|
const queryClient = reactQuery.useQueryClient();
|
|
169
522
|
return reactQuery.useMutation({
|
|
170
523
|
mutationFn: async (args) => {
|
|
@@ -175,13 +528,13 @@ function useCreateEcdsaAirdrop(options = {}) {
|
|
|
175
528
|
},
|
|
176
529
|
onSuccess: () => {
|
|
177
530
|
void queryClient.invalidateQueries({
|
|
178
|
-
queryKey:
|
|
531
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
179
532
|
});
|
|
180
533
|
}
|
|
181
534
|
});
|
|
182
535
|
}
|
|
183
536
|
function useCreateMerkleAirdrop(options = {}) {
|
|
184
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
537
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
185
538
|
const queryClient = reactQuery.useQueryClient();
|
|
186
539
|
return reactQuery.useMutation({
|
|
187
540
|
mutationFn: async (args) => {
|
|
@@ -192,13 +545,13 @@ function useCreateMerkleAirdrop(options = {}) {
|
|
|
192
545
|
},
|
|
193
546
|
onSuccess: () => {
|
|
194
547
|
void queryClient.invalidateQueries({
|
|
195
|
-
queryKey:
|
|
548
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
196
549
|
});
|
|
197
550
|
}
|
|
198
551
|
});
|
|
199
552
|
}
|
|
200
553
|
function useFundAirdrop(options = {}) {
|
|
201
|
-
const { client, resolutionError } =
|
|
554
|
+
const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
202
555
|
return reactQuery.useMutation({
|
|
203
556
|
mutationFn: async (args) => {
|
|
204
557
|
if (!client) {
|
|
@@ -209,18 +562,24 @@ function useFundAirdrop(options = {}) {
|
|
|
209
562
|
});
|
|
210
563
|
}
|
|
211
564
|
function useEcdsaClaim(options) {
|
|
212
|
-
const { client } =
|
|
565
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
566
|
+
const queryClient = reactQuery.useQueryClient();
|
|
213
567
|
return reactQuery.useMutation({
|
|
214
568
|
mutationFn: async (args) => {
|
|
215
569
|
if (!client) {
|
|
216
570
|
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
|
|
217
571
|
}
|
|
218
572
|
return client.claim(args);
|
|
573
|
+
},
|
|
574
|
+
onSuccess: () => {
|
|
575
|
+
void queryClient.invalidateQueries({
|
|
576
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
577
|
+
});
|
|
219
578
|
}
|
|
220
579
|
});
|
|
221
580
|
}
|
|
222
581
|
function useMerkleClaim(options) {
|
|
223
|
-
const { client, chainId
|
|
582
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
224
583
|
const queryClient = reactQuery.useQueryClient();
|
|
225
584
|
return reactQuery.useMutation({
|
|
226
585
|
mutationFn: async (args) => {
|
|
@@ -229,27 +588,22 @@ function useMerkleClaim(options) {
|
|
|
229
588
|
}
|
|
230
589
|
return client.claim(args);
|
|
231
590
|
},
|
|
232
|
-
onMutate: (variables) => {
|
|
233
|
-
const account = variables.account ?? walletClient?.account;
|
|
234
|
-
return {
|
|
235
|
-
claimant: account ? typeof account === "string" ? account : account.address : void 0
|
|
236
|
-
};
|
|
237
|
-
},
|
|
591
|
+
onMutate: (variables) => ({ account: variables.entry.account }),
|
|
238
592
|
onSuccess: (_hash, _variables, context) => {
|
|
239
|
-
if (!context?.
|
|
593
|
+
if (!context?.account) return;
|
|
240
594
|
void queryClient.invalidateQueries({
|
|
241
|
-
queryKey:
|
|
595
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
242
596
|
chainId,
|
|
243
597
|
address: options.address,
|
|
244
598
|
fn: "getClaimedAmount",
|
|
245
|
-
args: [context.
|
|
599
|
+
args: [context.account]
|
|
246
600
|
})
|
|
247
601
|
});
|
|
248
602
|
}
|
|
249
603
|
});
|
|
250
604
|
}
|
|
251
605
|
function useSetMerkleRoot(options) {
|
|
252
|
-
const { client, chainId } =
|
|
606
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
253
607
|
const queryClient = reactQuery.useQueryClient();
|
|
254
608
|
return reactQuery.useMutation({
|
|
255
609
|
mutationFn: async (args) => {
|
|
@@ -260,7 +614,7 @@ function useSetMerkleRoot(options) {
|
|
|
260
614
|
},
|
|
261
615
|
onSuccess: () => {
|
|
262
616
|
void queryClient.invalidateQueries({
|
|
263
|
-
queryKey:
|
|
617
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
264
618
|
chainId,
|
|
265
619
|
address: options.address,
|
|
266
620
|
fn: "merkleRoot",
|
|
@@ -271,28 +625,28 @@ function useSetMerkleRoot(options) {
|
|
|
271
625
|
});
|
|
272
626
|
}
|
|
273
627
|
function useGrantInstanceRoles(options) {
|
|
274
|
-
const { client, chainId } =
|
|
628
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
275
629
|
const queryClient = reactQuery.useQueryClient();
|
|
276
630
|
return reactQuery.useMutation({
|
|
277
631
|
mutationFn: async (args) => {
|
|
278
632
|
if (!client) {
|
|
279
633
|
throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
|
|
280
634
|
}
|
|
281
|
-
return
|
|
635
|
+
return chunkIUKKNJ2R_cjs.grantInstanceRoles({
|
|
282
636
|
airdrop: client,
|
|
283
637
|
assignment: args.assignment,
|
|
284
638
|
...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
|
|
285
639
|
});
|
|
286
640
|
},
|
|
287
641
|
onSuccess: () => {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
});
|
|
642
|
+
const scope = { chainId, address: options.address };
|
|
643
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
|
|
644
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembersAll(scope) });
|
|
291
645
|
}
|
|
292
646
|
});
|
|
293
647
|
}
|
|
294
648
|
function useAirdropPause(options) {
|
|
295
|
-
const { client, chainId } =
|
|
649
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
296
650
|
const queryClient = reactQuery.useQueryClient();
|
|
297
651
|
return reactQuery.useMutation({
|
|
298
652
|
mutationFn: async ({ paused, ...rest }) => {
|
|
@@ -303,16 +657,16 @@ function useAirdropPause(options) {
|
|
|
303
657
|
},
|
|
304
658
|
onSuccess: () => {
|
|
305
659
|
void queryClient.invalidateQueries({
|
|
306
|
-
queryKey:
|
|
660
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
|
|
307
661
|
});
|
|
308
662
|
void queryClient.invalidateQueries({
|
|
309
|
-
queryKey:
|
|
663
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
310
664
|
});
|
|
311
665
|
}
|
|
312
666
|
});
|
|
313
667
|
}
|
|
314
668
|
function useExtendClaimWindow(options) {
|
|
315
|
-
const { client, chainId } =
|
|
669
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
316
670
|
const queryClient = reactQuery.useQueryClient();
|
|
317
671
|
return reactQuery.useMutation({
|
|
318
672
|
mutationFn: async (args) => {
|
|
@@ -323,13 +677,13 @@ function useExtendClaimWindow(options) {
|
|
|
323
677
|
},
|
|
324
678
|
onSuccess: () => {
|
|
325
679
|
void queryClient.invalidateQueries({
|
|
326
|
-
queryKey:
|
|
680
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
327
681
|
});
|
|
328
682
|
}
|
|
329
683
|
});
|
|
330
684
|
}
|
|
331
685
|
function useWithdrawConfidential(options) {
|
|
332
|
-
const { client } =
|
|
686
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
333
687
|
return reactQuery.useMutation({
|
|
334
688
|
mutationFn: async (args) => {
|
|
335
689
|
if (!client) {
|
|
@@ -339,118 +693,569 @@ function useWithdrawConfidential(options) {
|
|
|
339
693
|
}
|
|
340
694
|
});
|
|
341
695
|
}
|
|
696
|
+
function useAddComplianceDelegate(options) {
|
|
697
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
698
|
+
const queryClient = reactQuery.useQueryClient();
|
|
699
|
+
return reactQuery.useMutation({
|
|
700
|
+
mutationFn: async (args) => {
|
|
701
|
+
if (!client) {
|
|
702
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAddComplianceDelegate", "compliance-manager");
|
|
703
|
+
}
|
|
704
|
+
return client.addDelegate(args);
|
|
705
|
+
},
|
|
706
|
+
onSuccess: (_hash, variables) => {
|
|
707
|
+
const scope = { chainId, address: options.address };
|
|
708
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
|
|
709
|
+
void queryClient.invalidateQueries({
|
|
710
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
711
|
+
});
|
|
712
|
+
}
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
function useAirdropGrantRole(options) {
|
|
716
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
717
|
+
const queryClient = reactQuery.useQueryClient();
|
|
718
|
+
return reactQuery.useMutation({
|
|
719
|
+
mutationFn: async (args) => {
|
|
720
|
+
if (!client) {
|
|
721
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropGrantRole", "airdrop-base");
|
|
722
|
+
}
|
|
723
|
+
return client.grantRole(args);
|
|
724
|
+
},
|
|
725
|
+
onSuccess: (_hash, variables) => {
|
|
726
|
+
const scope = { chainId, address: options.address };
|
|
727
|
+
void queryClient.invalidateQueries({
|
|
728
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
729
|
+
});
|
|
730
|
+
void queryClient.invalidateQueries({
|
|
731
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
function useAirdropRenounceRole(options) {
|
|
737
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
738
|
+
const queryClient = reactQuery.useQueryClient();
|
|
739
|
+
return reactQuery.useMutation({
|
|
740
|
+
mutationFn: async (args) => {
|
|
741
|
+
if (!client) {
|
|
742
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRenounceRole", "airdrop-base");
|
|
743
|
+
}
|
|
744
|
+
return client.renounceRole(args);
|
|
745
|
+
},
|
|
746
|
+
onSuccess: (_hash, variables) => {
|
|
747
|
+
const scope = { chainId, address: options.address };
|
|
748
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
|
|
749
|
+
void queryClient.invalidateQueries({
|
|
750
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function useAirdropRevokeRole(options) {
|
|
756
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
757
|
+
const queryClient = reactQuery.useQueryClient();
|
|
758
|
+
return reactQuery.useMutation({
|
|
759
|
+
mutationFn: async (args) => {
|
|
760
|
+
if (!client) {
|
|
761
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRevokeRole", "airdrop-base");
|
|
762
|
+
}
|
|
763
|
+
return client.revokeRole(args);
|
|
764
|
+
},
|
|
765
|
+
onSuccess: (_hash, variables) => {
|
|
766
|
+
const scope = { chainId, address: options.address };
|
|
767
|
+
void queryClient.invalidateQueries({
|
|
768
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
769
|
+
});
|
|
770
|
+
void queryClient.invalidateQueries({
|
|
771
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
function useAirdropUpgradeToAndCall(options) {
|
|
777
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
778
|
+
return reactQuery.useMutation({
|
|
779
|
+
mutationFn: async (args) => {
|
|
780
|
+
if (!client) {
|
|
781
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropUpgradeToAndCall", "airdrop-base");
|
|
782
|
+
}
|
|
783
|
+
return client.upgradeToAndCall(args);
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
}
|
|
787
|
+
function useBatchDiscloseHandlesToParty(options) {
|
|
788
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
789
|
+
return reactQuery.useMutation({
|
|
790
|
+
mutationFn: async (args) => {
|
|
791
|
+
if (!client) {
|
|
792
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "airdrop-base");
|
|
793
|
+
}
|
|
794
|
+
return client.batchDiscloseHandlesToParty(args);
|
|
795
|
+
}
|
|
796
|
+
});
|
|
797
|
+
}
|
|
798
|
+
function useBuildMerkleCampaign(options = {}) {
|
|
799
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
800
|
+
encryptorSourceRef.current = options.encryptor;
|
|
801
|
+
return reactQuery.useMutation({
|
|
802
|
+
mutationFn: async (args) => chunkIUKKNJ2R_cjs.buildMerkleCampaign({
|
|
803
|
+
instance: args.instance,
|
|
804
|
+
recipients: args.recipients,
|
|
805
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
806
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
807
|
+
})
|
|
808
|
+
});
|
|
809
|
+
}
|
|
810
|
+
function useComplianceGrantRole(options) {
|
|
811
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
812
|
+
const queryClient = reactQuery.useQueryClient();
|
|
813
|
+
return reactQuery.useMutation({
|
|
814
|
+
mutationFn: async (args) => {
|
|
815
|
+
if (!client) {
|
|
816
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceGrantRole", "compliance-manager");
|
|
817
|
+
}
|
|
818
|
+
return client.grantRole(args);
|
|
819
|
+
},
|
|
820
|
+
onSuccess: (_hash, variables) => {
|
|
821
|
+
const scope = { chainId, address: options.address };
|
|
822
|
+
void queryClient.invalidateQueries({
|
|
823
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
824
|
+
});
|
|
825
|
+
void queryClient.invalidateQueries({
|
|
826
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
827
|
+
});
|
|
828
|
+
}
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
function useComplianceRenounceRole(options) {
|
|
832
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
833
|
+
const queryClient = reactQuery.useQueryClient();
|
|
834
|
+
return reactQuery.useMutation({
|
|
835
|
+
mutationFn: async (args) => {
|
|
836
|
+
if (!client) {
|
|
837
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRenounceRole", "compliance-manager");
|
|
838
|
+
}
|
|
839
|
+
return client.renounceRole(args);
|
|
840
|
+
},
|
|
841
|
+
onSuccess: (_hash, variables) => {
|
|
842
|
+
const scope = { chainId, address: options.address };
|
|
843
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRoleAll(scope) });
|
|
844
|
+
void queryClient.invalidateQueries({
|
|
845
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
function useComplianceRevokeRole(options) {
|
|
851
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
852
|
+
const queryClient = reactQuery.useQueryClient();
|
|
853
|
+
return reactQuery.useMutation({
|
|
854
|
+
mutationFn: async (args) => {
|
|
855
|
+
if (!client) {
|
|
856
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRevokeRole", "compliance-manager");
|
|
857
|
+
}
|
|
858
|
+
return client.revokeRole(args);
|
|
859
|
+
},
|
|
860
|
+
onSuccess: (_hash, variables) => {
|
|
861
|
+
const scope = { chainId, address: options.address };
|
|
862
|
+
void queryClient.invalidateQueries({
|
|
863
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
864
|
+
});
|
|
865
|
+
void queryClient.invalidateQueries({
|
|
866
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
function useCreateAndFundEcdsaAirdrop(options = {}) {
|
|
872
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
873
|
+
const queryClient = reactQuery.useQueryClient();
|
|
874
|
+
return reactQuery.useMutation({
|
|
875
|
+
mutationFn: async (args) => {
|
|
876
|
+
if (!client) {
|
|
877
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundEcdsaAirdrop", "factory");
|
|
878
|
+
}
|
|
879
|
+
return client.createAndFundEcdsaAirdrop(args);
|
|
880
|
+
},
|
|
881
|
+
onSuccess: () => {
|
|
882
|
+
void queryClient.invalidateQueries({
|
|
883
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
function useCreateAndFundMerkleAirdrop(options = {}) {
|
|
889
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
890
|
+
const queryClient = reactQuery.useQueryClient();
|
|
891
|
+
return reactQuery.useMutation({
|
|
892
|
+
mutationFn: async (args) => {
|
|
893
|
+
if (!client) {
|
|
894
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundMerkleAirdrop", "factory");
|
|
895
|
+
}
|
|
896
|
+
return client.createAndFundMerkleAirdrop(args);
|
|
897
|
+
},
|
|
898
|
+
onSuccess: () => {
|
|
899
|
+
void queryClient.invalidateQueries({
|
|
900
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
901
|
+
});
|
|
902
|
+
}
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
function useDiscloseHandleToParty(options) {
|
|
906
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
907
|
+
return reactQuery.useMutation({
|
|
908
|
+
mutationFn: async (args) => {
|
|
909
|
+
if (!client) {
|
|
910
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "airdrop-base");
|
|
911
|
+
}
|
|
912
|
+
return client.discloseHandleToParty(args);
|
|
913
|
+
}
|
|
914
|
+
});
|
|
915
|
+
}
|
|
916
|
+
function useEcdsaClaimAndUnwrap(options) {
|
|
917
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
918
|
+
const queryClient = reactQuery.useQueryClient();
|
|
919
|
+
return reactQuery.useMutation({
|
|
920
|
+
mutationFn: async (args) => {
|
|
921
|
+
if (!client) {
|
|
922
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaimAndUnwrap", "ecdsa-airdrop");
|
|
923
|
+
}
|
|
924
|
+
return client.claimAndUnwrap(args);
|
|
925
|
+
},
|
|
926
|
+
onSuccess: () => {
|
|
927
|
+
void queryClient.invalidateQueries({
|
|
928
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
function useEncryptCampaignAmounts(options = {}) {
|
|
934
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
935
|
+
encryptorSourceRef.current = options.encryptor;
|
|
936
|
+
return reactQuery.useMutation({
|
|
937
|
+
mutationFn: async (args) => chunkIUKKNJ2R_cjs.encryptCampaignAmounts({
|
|
938
|
+
instance: args.instance,
|
|
939
|
+
recipients: args.recipients,
|
|
940
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
941
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
942
|
+
})
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
function useMerkleClaimAndUnwrap(options) {
|
|
946
|
+
const { client, walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
947
|
+
const queryClient = reactQuery.useQueryClient();
|
|
948
|
+
return reactQuery.useMutation({
|
|
949
|
+
mutationFn: async (args) => {
|
|
950
|
+
if (!client) {
|
|
951
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaimAndUnwrap", "merkle-airdrop");
|
|
952
|
+
}
|
|
953
|
+
return client.claimAndUnwrap(args);
|
|
954
|
+
},
|
|
955
|
+
// Resolved here rather than in `onSuccess`: a mutation outlives several
|
|
956
|
+
// re-renders of its own component and `useWalletClient().data` can read back
|
|
957
|
+
// transiently empty across them, which would silently skip the invalidation.
|
|
958
|
+
onMutate: (variables) => {
|
|
959
|
+
const account = variables.account ?? walletClient?.account;
|
|
960
|
+
if (!account) return {};
|
|
961
|
+
return { sender: typeof account === "string" ? account : account.address };
|
|
962
|
+
},
|
|
963
|
+
onSuccess: (_hash, _variables, context) => {
|
|
964
|
+
if (!context?.sender) return;
|
|
965
|
+
void queryClient.invalidateQueries({
|
|
966
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.sender)
|
|
967
|
+
});
|
|
968
|
+
}
|
|
969
|
+
});
|
|
970
|
+
}
|
|
971
|
+
function usePlanMerkleCampaign(options = {}) {
|
|
972
|
+
const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
973
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
974
|
+
encryptorSourceRef.current = options.encryptor;
|
|
975
|
+
return reactQuery.useMutation({
|
|
976
|
+
mutationFn: async (args) => {
|
|
977
|
+
if (!client) {
|
|
978
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePlanMerkleCampaign", "factory");
|
|
979
|
+
}
|
|
980
|
+
return chunkIUKKNJ2R_cjs.planMerkleCampaign({
|
|
981
|
+
factory: client,
|
|
982
|
+
...args,
|
|
983
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
function useRescueERC20(options) {
|
|
989
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
990
|
+
return reactQuery.useMutation({
|
|
991
|
+
mutationFn: async (args) => {
|
|
992
|
+
if (!client) {
|
|
993
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "airdrop-base");
|
|
994
|
+
}
|
|
995
|
+
return client.rescueERC20(args);
|
|
996
|
+
}
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
function useRescueOtherConfidentialToken(options) {
|
|
1000
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1001
|
+
return reactQuery.useMutation({
|
|
1002
|
+
mutationFn: async (args) => {
|
|
1003
|
+
if (!client) {
|
|
1004
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueOtherConfidentialToken", "airdrop-base");
|
|
1005
|
+
}
|
|
1006
|
+
return client.rescueOtherConfidentialToken(args);
|
|
1007
|
+
}
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
function useRevokeComplianceDelegate(options) {
|
|
1011
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
1012
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1013
|
+
return reactQuery.useMutation({
|
|
1014
|
+
mutationFn: async (args) => {
|
|
1015
|
+
if (!client) {
|
|
1016
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeComplianceDelegate", "compliance-manager");
|
|
1017
|
+
}
|
|
1018
|
+
return client.revokeDelegate(args);
|
|
1019
|
+
},
|
|
1020
|
+
onSuccess: (_hash, variables) => {
|
|
1021
|
+
const scope = { chainId, address: options.address };
|
|
1022
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
|
|
1023
|
+
void queryClient.invalidateQueries({
|
|
1024
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
function useRotateMerkleRoot(options) {
|
|
1030
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
1031
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
1032
|
+
encryptorSourceRef.current = options.encryptor;
|
|
1033
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1034
|
+
return reactQuery.useMutation({
|
|
1035
|
+
mutationFn: async (args) => {
|
|
1036
|
+
if (!client) {
|
|
1037
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRotateMerkleRoot", "merkle-airdrop");
|
|
1038
|
+
}
|
|
1039
|
+
return chunkIUKKNJ2R_cjs.rotateMerkleRoot({
|
|
1040
|
+
airdrop: client,
|
|
1041
|
+
recipients: args.recipients,
|
|
1042
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
1043
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {},
|
|
1044
|
+
...args.account !== void 0 ? { account: args.account } : {}
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
1047
|
+
onSuccess: () => {
|
|
1048
|
+
void queryClient.invalidateQueries({
|
|
1049
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
1054
|
+
function useSignClaimAuthorization(options) {
|
|
1055
|
+
const { walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1056
|
+
return reactQuery.useMutation({
|
|
1057
|
+
mutationFn: async (args) => {
|
|
1058
|
+
if (!walletClient) {
|
|
1059
|
+
throw new chunk67OV5CX2_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
1060
|
+
}
|
|
1061
|
+
if (chainId === void 0) {
|
|
1062
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useSignClaimAuthorization", "airdrop-base");
|
|
1063
|
+
}
|
|
1064
|
+
return chunkPZZK3O3S_cjs.signClaimAuthorization({
|
|
1065
|
+
walletClient,
|
|
1066
|
+
airdrop: options.address,
|
|
1067
|
+
chainId,
|
|
1068
|
+
recipient: args.recipient,
|
|
1069
|
+
encryptedAmountHandle: args.encryptedAmountHandle,
|
|
1070
|
+
dedupId: args.dedupId,
|
|
1071
|
+
deadline: args.deadline,
|
|
1072
|
+
account: args.account
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
function useWithdrawGasFee(options) {
|
|
1078
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1079
|
+
return reactQuery.useMutation({
|
|
1080
|
+
mutationFn: async (args) => {
|
|
1081
|
+
if (!client) {
|
|
1082
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "airdrop-base");
|
|
1083
|
+
}
|
|
1084
|
+
return client.withdrawGasFee(args);
|
|
1085
|
+
}
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1088
|
+
function useAdminBatchDiscloseBalanceToParties(options) {
|
|
1089
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1090
|
+
return reactQuery.useMutation({
|
|
1091
|
+
mutationFn: async (args) => {
|
|
1092
|
+
if (!client) {
|
|
1093
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseBalanceToParties", "airdrop-base");
|
|
1094
|
+
}
|
|
1095
|
+
return client.adminBatchDiscloseBalanceToParties(args);
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
function useAdminDiscloseBalanceToParty(options) {
|
|
1100
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1101
|
+
return reactQuery.useMutation({
|
|
1102
|
+
mutationFn: async (args) => {
|
|
1103
|
+
if (!client) {
|
|
1104
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseBalanceToParty", "airdrop-base");
|
|
1105
|
+
}
|
|
1106
|
+
return client.adminDiscloseBalanceToParty(args);
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
function useAdminGetCurrentBalance(options) {
|
|
1111
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1112
|
+
return reactQuery.useMutation({
|
|
1113
|
+
mutationFn: async (args) => {
|
|
1114
|
+
if (!client) {
|
|
1115
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetCurrentBalance", "airdrop-base");
|
|
1116
|
+
}
|
|
1117
|
+
return client.adminGetCurrentBalance(args ?? {});
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
function useAccessEcdsaClaimAmount(options) {
|
|
1122
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
1123
|
+
return reactQuery.useMutation({
|
|
1124
|
+
mutationFn: async (args) => {
|
|
1125
|
+
if (!client) {
|
|
1126
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessEcdsaClaimAmount", "ecdsa-airdrop");
|
|
1127
|
+
}
|
|
1128
|
+
return client.getClaimAmount(args);
|
|
1129
|
+
}
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1132
|
+
function useAccessMerkleClaimAmount(options) {
|
|
1133
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
1134
|
+
return reactQuery.useMutation({
|
|
1135
|
+
mutationFn: async (args) => {
|
|
1136
|
+
if (!client) {
|
|
1137
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessMerkleClaimAmount", "merkle-airdrop");
|
|
1138
|
+
}
|
|
1139
|
+
return client.getClaimAmount(args);
|
|
1140
|
+
}
|
|
1141
|
+
});
|
|
1142
|
+
}
|
|
342
1143
|
|
|
343
1144
|
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
344
1145
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
1146
|
+
get: function () { return chunkIUKKNJ2R_cjs.buildMerkleCampaign; }
|
|
346
1147
|
});
|
|
347
1148
|
Object.defineProperty(exports, "buildMerkleTree", {
|
|
348
1149
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
1150
|
+
get: function () { return chunkIUKKNJ2R_cjs.buildMerkleTree; }
|
|
350
1151
|
});
|
|
351
1152
|
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
352
1153
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
1154
|
+
get: function () { return chunkIUKKNJ2R_cjs.encryptCampaignAmounts; }
|
|
354
1155
|
});
|
|
355
1156
|
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
356
1157
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
1158
|
+
get: function () { return chunkIUKKNJ2R_cjs.grantInstanceRoles; }
|
|
358
1159
|
});
|
|
359
1160
|
Object.defineProperty(exports, "leafOf", {
|
|
360
1161
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
1162
|
+
get: function () { return chunkIUKKNJ2R_cjs.leafOf; }
|
|
362
1163
|
});
|
|
363
1164
|
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
364
1165
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
1166
|
+
get: function () { return chunkIUKKNJ2R_cjs.planInstanceRoleSplit; }
|
|
366
1167
|
});
|
|
367
1168
|
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
368
1169
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
1170
|
+
get: function () { return chunkIUKKNJ2R_cjs.planMerkleCampaign; }
|
|
370
1171
|
});
|
|
371
1172
|
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
372
1173
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
1174
|
+
get: function () { return chunkIUKKNJ2R_cjs.rotateMerkleRoot; }
|
|
374
1175
|
});
|
|
375
1176
|
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
376
1177
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
1178
|
+
get: function () { return chunkIUKKNJ2R_cjs.validateCampaignRecipients; }
|
|
378
1179
|
});
|
|
379
1180
|
Object.defineProperty(exports, "airdropQueryKey", {
|
|
380
1181
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
1182
|
+
get: function () { return chunkEBLBPUPI_cjs.airdropQueryKey; }
|
|
382
1183
|
});
|
|
383
1184
|
Object.defineProperty(exports, "airdropQueryKeyPrefix", {
|
|
384
1185
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
1186
|
+
get: function () { return chunkEBLBPUPI_cjs.airdropQueryKeyPrefix; }
|
|
386
1187
|
});
|
|
387
1188
|
Object.defineProperty(exports, "encryptUint64", {
|
|
388
1189
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
1190
|
+
get: function () { return chunkPZZK3O3S_cjs.encryptUint64; }
|
|
390
1191
|
});
|
|
391
1192
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
392
1193
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
1194
|
+
get: function () { return chunkPZZK3O3S_cjs.encryptUint64Batch; }
|
|
394
1195
|
});
|
|
395
1196
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
396
1197
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
1198
|
+
get: function () { return chunkPZZK3O3S_cjs.resolveEncryptor; }
|
|
398
1199
|
});
|
|
399
1200
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
400
1201
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
1202
|
+
get: function () { return chunkPZZK3O3S_cjs.signClaimAuthorization; }
|
|
402
1203
|
});
|
|
403
1204
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
404
1205
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
1206
|
+
get: function () { return chunkAREQJHKA_cjs.AlreadyClaimedError; }
|
|
406
1207
|
});
|
|
407
1208
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
408
1209
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
1210
|
+
get: function () { return chunkAREQJHKA_cjs.ClaimNotStartedError; }
|
|
410
1211
|
});
|
|
411
1212
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
412
1213
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
1214
|
+
get: function () { return chunkAREQJHKA_cjs.ClaimWindowClosedError; }
|
|
414
1215
|
});
|
|
415
1216
|
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
416
1217
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
1218
|
+
get: function () { return chunkAREQJHKA_cjs.DedupIdConsumedError; }
|
|
418
1219
|
});
|
|
419
1220
|
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
420
1221
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
1222
|
+
get: function () { return chunkAREQJHKA_cjs.FeeCollectorSelfAdministeredError; }
|
|
422
1223
|
});
|
|
423
1224
|
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
424
1225
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
1226
|
+
get: function () { return chunkAREQJHKA_cjs.MerkleUupsUnsupportedError; }
|
|
426
1227
|
});
|
|
427
1228
|
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
428
1229
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
1230
|
+
get: function () { return chunkAREQJHKA_cjs.NonStockWrapperError; }
|
|
430
1231
|
});
|
|
431
1232
|
Object.defineProperty(exports, "PredictionDriftError", {
|
|
432
1233
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
1234
|
+
get: function () { return chunkAREQJHKA_cjs.PredictionDriftError; }
|
|
434
1235
|
});
|
|
435
1236
|
Object.defineProperty(exports, "SaltCollisionError", {
|
|
436
1237
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
1238
|
+
get: function () { return chunkAREQJHKA_cjs.SaltCollisionError; }
|
|
438
1239
|
});
|
|
439
1240
|
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
440
1241
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
1242
|
+
get: function () { return chunkAREQJHKA_cjs.SignatureExpiredError; }
|
|
1243
|
+
});
|
|
1244
|
+
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
1245
|
+
enumerable: true,
|
|
1246
|
+
get: function () { return chunkAREQJHKA_cjs.UnauthorizedRedirectError; }
|
|
442
1247
|
});
|
|
443
1248
|
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
444
1249
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
1250
|
+
get: function () { return chunkAREQJHKA_cjs.UpgradeabilityNotAllowedError; }
|
|
446
1251
|
});
|
|
447
1252
|
Object.defineProperty(exports, "preflightClaim", {
|
|
448
1253
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
1254
|
+
get: function () { return chunkAREQJHKA_cjs.preflightClaim; }
|
|
450
1255
|
});
|
|
451
1256
|
Object.defineProperty(exports, "preflightCreate", {
|
|
452
1257
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
1258
|
+
get: function () { return chunkAREQJHKA_cjs.preflightCreate; }
|
|
454
1259
|
});
|
|
455
1260
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
456
1261
|
enumerable: true,
|
|
@@ -596,24 +1401,69 @@ Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
|
596
1401
|
enumerable: true,
|
|
597
1402
|
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
598
1403
|
});
|
|
1404
|
+
exports.useAccessEcdsaClaimAmount = useAccessEcdsaClaimAmount;
|
|
1405
|
+
exports.useAccessMerkleClaimAmount = useAccessMerkleClaimAmount;
|
|
1406
|
+
exports.useAddComplianceDelegate = useAddComplianceDelegate;
|
|
1407
|
+
exports.useAdminBatchDiscloseBalanceToParties = useAdminBatchDiscloseBalanceToParties;
|
|
1408
|
+
exports.useAdminDiscloseBalanceToParty = useAdminDiscloseBalanceToParty;
|
|
1409
|
+
exports.useAdminGetCurrentBalance = useAdminGetCurrentBalance;
|
|
1410
|
+
exports.useAirdropConfig = useAirdropConfig;
|
|
1411
|
+
exports.useAirdropDeploymentMode = useAirdropDeploymentMode;
|
|
599
1412
|
exports.useAirdropGasFee = useAirdropGasFee;
|
|
1413
|
+
exports.useAirdropGrantRole = useAirdropGrantRole;
|
|
600
1414
|
exports.useAirdropHasRole = useAirdropHasRole;
|
|
601
1415
|
exports.useAirdropPause = useAirdropPause;
|
|
602
1416
|
exports.useAirdropPaused = useAirdropPaused;
|
|
1417
|
+
exports.useAirdropRenounceRole = useAirdropRenounceRole;
|
|
1418
|
+
exports.useAirdropRevokeRole = useAirdropRevokeRole;
|
|
1419
|
+
exports.useAirdropRoleAdmin = useAirdropRoleAdmin;
|
|
1420
|
+
exports.useAirdropRoleConstants = useAirdropRoleConstants;
|
|
1421
|
+
exports.useAirdropRoleMembers = useAirdropRoleMembers;
|
|
603
1422
|
exports.useAirdropToken = useAirdropToken;
|
|
1423
|
+
exports.useAirdropUpgradeToAndCall = useAirdropUpgradeToAndCall;
|
|
604
1424
|
exports.useAirdropWindow = useAirdropWindow;
|
|
1425
|
+
exports.useBatchDiscloseHandlesToParty = useBatchDiscloseHandlesToParty;
|
|
1426
|
+
exports.useBuildMerkleCampaign = useBuildMerkleCampaign;
|
|
605
1427
|
exports.useClaimedAmount = useClaimedAmount;
|
|
1428
|
+
exports.useComplianceGrantRole = useComplianceGrantRole;
|
|
1429
|
+
exports.useComplianceHasRole = useComplianceHasRole;
|
|
1430
|
+
exports.useComplianceInfo = useComplianceInfo;
|
|
606
1431
|
exports.useComplianceManager = useComplianceManager;
|
|
1432
|
+
exports.useComplianceManagerOf = useComplianceManagerOf;
|
|
1433
|
+
exports.useComplianceRenounceRole = useComplianceRenounceRole;
|
|
1434
|
+
exports.useComplianceRevokeRole = useComplianceRevokeRole;
|
|
1435
|
+
exports.useComplianceRoleConstants = useComplianceRoleConstants;
|
|
1436
|
+
exports.useComplianceRoleMembers = useComplianceRoleMembers;
|
|
1437
|
+
exports.useCreateAndFundEcdsaAirdrop = useCreateAndFundEcdsaAirdrop;
|
|
1438
|
+
exports.useCreateAndFundMerkleAirdrop = useCreateAndFundMerkleAirdrop;
|
|
607
1439
|
exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
|
|
608
1440
|
exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
|
|
1441
|
+
exports.useDiscloseHandleToParty = useDiscloseHandleToParty;
|
|
609
1442
|
exports.useEcdsaClaim = useEcdsaClaim;
|
|
1443
|
+
exports.useEcdsaClaimAndUnwrap = useEcdsaClaimAndUnwrap;
|
|
1444
|
+
exports.useEcdsaDomain = useEcdsaDomain;
|
|
1445
|
+
exports.useEffectiveDelegateToCompliance = useEffectiveDelegateToCompliance;
|
|
610
1446
|
exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
|
|
1447
|
+
exports.useEncryptCampaignAmounts = useEncryptCampaignAmounts;
|
|
611
1448
|
exports.useExtendClaimWindow = useExtendClaimWindow;
|
|
612
1449
|
exports.useFactoryFees = useFactoryFees;
|
|
613
1450
|
exports.useFactoryRegistry = useFactoryRegistry;
|
|
614
1451
|
exports.useFundAirdrop = useFundAirdrop;
|
|
615
1452
|
exports.useGrantInstanceRoles = useGrantInstanceRoles;
|
|
1453
|
+
exports.useIsActiveDelegate = useIsActiveDelegate;
|
|
1454
|
+
exports.useIsMerkleRootMutable = useIsMerkleRootMutable;
|
|
1455
|
+
exports.useIsSignatureValid = useIsSignatureValid;
|
|
616
1456
|
exports.useMerkleClaim = useMerkleClaim;
|
|
1457
|
+
exports.useMerkleClaimAndUnwrap = useMerkleClaimAndUnwrap;
|
|
617
1458
|
exports.useMerkleRoot = useMerkleRoot;
|
|
1459
|
+
exports.usePlanMerkleCampaign = usePlanMerkleCampaign;
|
|
1460
|
+
exports.usePreflightClaim = usePreflightClaim;
|
|
1461
|
+
exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
|
|
1462
|
+
exports.useRescueERC20 = useRescueERC20;
|
|
1463
|
+
exports.useRescueOtherConfidentialToken = useRescueOtherConfidentialToken;
|
|
1464
|
+
exports.useRevokeComplianceDelegate = useRevokeComplianceDelegate;
|
|
1465
|
+
exports.useRotateMerkleRoot = useRotateMerkleRoot;
|
|
618
1466
|
exports.useSetMerkleRoot = useSetMerkleRoot;
|
|
1467
|
+
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
619
1468
|
exports.useWithdrawConfidential = useWithdrawConfidential;
|
|
1469
|
+
exports.useWithdrawGasFee = useWithdrawGasFee;
|