@tokenops/sdk 2.0.0-alpha.1 → 2.0.0-alpha.3
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 +67 -2
- package/README.md +14 -8
- package/dist/{chunk-PUX5VXDB.cjs → chunk-4AWQJQXY.cjs} +1415 -69
- package/dist/{chunk-74QFZ5MK.js → chunk-4IB4IY5Y.js} +1 -1
- package/dist/{chunk-DZHYSUGY.js → chunk-6HCT4QIX.js} +12 -5
- package/dist/{chunk-FGEB7RMY.cjs → chunk-6XOAYDC6.cjs} +4 -4
- package/dist/{chunk-XAYGD4E4.cjs → chunk-AHU2HMNE.cjs} +3 -3
- package/dist/{chunk-6NAVMWZQ.js → chunk-BPIVVCSQ.js} +2 -2
- package/dist/{chunk-GKKDAW44.js → chunk-BXX5TETM.js} +1401 -59
- package/dist/{chunk-456VDDA3.js → chunk-GCJFAY4X.js} +78 -25
- package/dist/{chunk-CTED3MTR.cjs → chunk-GKYZQJGP.cjs} +82 -29
- package/dist/{chunk-JZLGCTGK.cjs → chunk-IEKTGJ4J.cjs} +2 -2
- package/dist/{chunk-6PXXGACR.cjs → chunk-JVNJSDQ4.cjs} +2 -2
- package/dist/{chunk-O5676ZWY.js → chunk-LEYYG4RF.js} +232 -6
- package/dist/{chunk-335Z2W67.js → chunk-NGU4JYIR.js} +1 -1
- package/dist/{chunk-5576FRT3.cjs → chunk-PG3WXT3K.cjs} +12 -5
- package/dist/{chunk-H5POPGOZ.js → chunk-PK6Q6J5F.js} +1 -1
- package/dist/chunk-TND5NDV7.cjs +263 -0
- package/dist/chunk-U3TBQRT7.js +253 -0
- package/dist/{chunk-EAJ7SYHE.js → chunk-WRWRA4TN.js} +1 -1
- package/dist/{chunk-JQYC66TO.cjs → chunk-YABHXJNH.cjs} +5 -5
- package/dist/{chunk-M4IT6DNJ.cjs → chunk-YTIYTV4K.cjs} +236 -4
- 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/airdrop-base.d.ts +19 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +19 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +113 -0
- package/dist/fhe-airdrop/abis/merkle.d.ts +43 -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 +620 -9
- package/dist/fhe-airdrop/advanced/react/index.d.cts +35 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +35 -0
- package/dist/fhe-airdrop/advanced/react/index.js +590 -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 +26 -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 +37 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +37 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +48 -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 +29 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +30 -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/useSetMaxGasFee.d.ts +33 -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 +55 -8
- package/dist/fhe-airdrop/campaign.d.ts +61 -20
- package/dist/fhe-airdrop/constants.d.ts +9 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +13 -0
- package/dist/fhe-airdrop/errors.d.ts +87 -0
- package/dist/fhe-airdrop/factory.d.ts +62 -22
- package/dist/fhe-airdrop/guards.d.ts +133 -4
- package/dist/fhe-airdrop/index.cjs +86 -971
- package/dist/fhe-airdrop/index.d.cts +4 -4
- package/dist/fhe-airdrop/index.d.ts +4 -4
- 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 +997 -87
- package/dist/fhe-airdrop/react/index.d.cts +53 -4
- package/dist/fhe-airdrop/react/index.d.ts +53 -4
- package/dist/fhe-airdrop/react/index.js +887 -27
- package/dist/fhe-airdrop/react/keys.d.ts +98 -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/useFactoryFees.d.ts +11 -4
- package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
- package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -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/useRefreshComplianceBalance.d.ts +36 -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/useResolveGasFee.d.ts +30 -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 +27 -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 chunkGKYZQJGP_cjs = require('../../chunk-GKYZQJGP.cjs');
|
|
4
|
+
var chunkTND5NDV7_cjs = require('../../chunk-TND5NDV7.cjs');
|
|
5
|
+
var chunk4AWQJQXY_cjs = require('../../chunk-4AWQJQXY.cjs');
|
|
6
|
+
var chunkYTIYTV4K_cjs = require('../../chunk-YTIYTV4K.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-PG3WXT3K.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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
19
20
|
return reactQuery.useQuery({
|
|
20
21
|
...args.query,
|
|
21
|
-
queryKey:
|
|
22
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
28
29
|
return reactQuery.useQuery({
|
|
29
30
|
...args.query,
|
|
30
|
-
queryKey:
|
|
31
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
46
47
|
return reactQuery.useQuery({
|
|
47
48
|
...args.query,
|
|
48
|
-
queryKey:
|
|
49
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
55
56
|
return reactQuery.useQuery({
|
|
56
57
|
...args.query,
|
|
57
|
-
queryKey:
|
|
58
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(base);
|
|
65
66
|
return reactQuery.useQuery({
|
|
66
67
|
...args.query,
|
|
67
|
-
queryKey:
|
|
68
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(args);
|
|
79
80
|
return reactQuery.useQuery({
|
|
80
81
|
...args.query,
|
|
81
|
-
queryKey:
|
|
82
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(base);
|
|
89
90
|
return reactQuery.useQuery({
|
|
90
91
|
...args.query,
|
|
91
|
-
queryKey:
|
|
92
|
+
queryKey: chunkTND5NDV7_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 } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
103
104
|
return reactQuery.useQuery({
|
|
104
105
|
...args.query,
|
|
105
|
-
queryKey:
|
|
106
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
106
107
|
chainId,
|
|
107
108
|
address: args.address,
|
|
108
109
|
fn: "complianceManager",
|
|
@@ -113,26 +114,42 @@ function useComplianceManager(args) {
|
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
116
|
function useFactoryFees(args = {}) {
|
|
116
|
-
const { client, chainId, resolvedAddress } =
|
|
117
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
|
|
117
118
|
return reactQuery.useQuery({
|
|
118
119
|
...args.query,
|
|
119
|
-
queryKey:
|
|
120
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
|
|
120
121
|
queryFn: async () => {
|
|
121
|
-
const [feeCollector, defaultGasFee] = await Promise.all([
|
|
122
|
+
const [feeCollector, defaultGasFee, maxGasFee] = await Promise.all([
|
|
122
123
|
client.feeCollector(),
|
|
123
|
-
client.defaultGasFee()
|
|
124
|
+
client.defaultGasFee(),
|
|
125
|
+
client.maxGasFee()
|
|
124
126
|
]);
|
|
125
|
-
return { feeCollector, defaultGasFee };
|
|
127
|
+
return { feeCollector, defaultGasFee, maxGasFee };
|
|
126
128
|
},
|
|
127
129
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
128
130
|
});
|
|
129
131
|
}
|
|
132
|
+
function useResolveGasFee(args = {}) {
|
|
133
|
+
const { creator, ...base } = args;
|
|
134
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
135
|
+
return reactQuery.useQuery({
|
|
136
|
+
...args.query,
|
|
137
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
138
|
+
chainId,
|
|
139
|
+
address: resolvedAddress,
|
|
140
|
+
fn: chunkTND5NDV7_cjs.AIRDROP_FN.resolvedGasFee,
|
|
141
|
+
args: [creator]
|
|
142
|
+
}),
|
|
143
|
+
queryFn: () => client.resolveGasFee(creator),
|
|
144
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
145
|
+
});
|
|
146
|
+
}
|
|
130
147
|
function useFactoryRegistry(args = {}) {
|
|
131
148
|
const { offset = 0n, limit = 50n, ...base } = args;
|
|
132
|
-
const { client, chainId, resolvedAddress } =
|
|
149
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
133
150
|
return reactQuery.useQuery({
|
|
134
151
|
...args.query,
|
|
135
|
-
queryKey:
|
|
152
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
136
153
|
chainId,
|
|
137
154
|
address: resolvedAddress,
|
|
138
155
|
fn: "registry",
|
|
@@ -148,12 +165,30 @@ function useFactoryRegistry(args = {}) {
|
|
|
148
165
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
149
166
|
});
|
|
150
167
|
}
|
|
168
|
+
function useIsAirdrop(args = {}) {
|
|
169
|
+
const { candidate, ...base } = args;
|
|
170
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
171
|
+
return reactQuery.useQuery({
|
|
172
|
+
// Per-result, not blanket: `true` is immutable (append-only registry),
|
|
173
|
+
// `false` is not. See the TSDoc above.
|
|
174
|
+
staleTime: (query) => query.state.data === true ? Infinity : 0,
|
|
175
|
+
...args.query,
|
|
176
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
177
|
+
chainId,
|
|
178
|
+
address: resolvedAddress,
|
|
179
|
+
fn: chunkTND5NDV7_cjs.AIRDROP_FN.isAirdrop,
|
|
180
|
+
args: [candidate]
|
|
181
|
+
}),
|
|
182
|
+
queryFn: () => client.isAirdrop(candidate),
|
|
183
|
+
enabled: Boolean(client && candidate && (args.query?.enabled ?? true))
|
|
184
|
+
});
|
|
185
|
+
}
|
|
151
186
|
function useEffectiveUpgradeable(args = {}) {
|
|
152
187
|
const { creator, ...base } = args;
|
|
153
|
-
const { client, chainId, resolvedAddress } =
|
|
188
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
154
189
|
return reactQuery.useQuery({
|
|
155
190
|
...args.query,
|
|
156
|
-
queryKey:
|
|
191
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
157
192
|
chainId,
|
|
158
193
|
address: resolvedAddress,
|
|
159
194
|
fn: "effectiveUpgradeable",
|
|
@@ -163,8 +198,360 @@ function useEffectiveUpgradeable(args = {}) {
|
|
|
163
198
|
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
164
199
|
});
|
|
165
200
|
}
|
|
201
|
+
function useAirdropConfig(args) {
|
|
202
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
203
|
+
return reactQuery.useQuery({
|
|
204
|
+
staleTime: Infinity,
|
|
205
|
+
...args.query,
|
|
206
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.config({ chainId, address: args.address }),
|
|
207
|
+
queryFn: async () => {
|
|
208
|
+
const [token, airdropType, unwrappable, complianceManager, gasFee] = await Promise.all([
|
|
209
|
+
client.token(),
|
|
210
|
+
client.airdropType(),
|
|
211
|
+
client.unwrappable(),
|
|
212
|
+
client.complianceManager(),
|
|
213
|
+
client.gasFee()
|
|
214
|
+
]);
|
|
215
|
+
return {
|
|
216
|
+
token,
|
|
217
|
+
airdropType,
|
|
218
|
+
variant: airdropType === 1 ? "merkle" : "ecdsa",
|
|
219
|
+
unwrappable,
|
|
220
|
+
complianceManager,
|
|
221
|
+
gasFee
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
function useAirdropDeploymentMode(args) {
|
|
228
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(args);
|
|
229
|
+
return reactQuery.useQuery({
|
|
230
|
+
staleTime: Infinity,
|
|
231
|
+
...args.query,
|
|
232
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
233
|
+
chainId,
|
|
234
|
+
address: args.address,
|
|
235
|
+
fn: "deploymentMode",
|
|
236
|
+
args: []
|
|
237
|
+
}),
|
|
238
|
+
queryFn: () => client.deploymentMode(),
|
|
239
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
function useAirdropRoleAdmin(args) {
|
|
243
|
+
const { role, ...base } = args;
|
|
244
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(base);
|
|
245
|
+
return reactQuery.useQuery({
|
|
246
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
247
|
+
staleTime: Infinity,
|
|
248
|
+
...args.query,
|
|
249
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
250
|
+
chainId,
|
|
251
|
+
address: args.address,
|
|
252
|
+
fn: "getRoleAdmin",
|
|
253
|
+
args: [role]
|
|
254
|
+
}),
|
|
255
|
+
queryFn: () => client.getRoleAdmin(role),
|
|
256
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
function useAirdropRoleConstants(args) {
|
|
260
|
+
const { variant, dedupMode, ...base } = args;
|
|
261
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(base);
|
|
262
|
+
const { client: merkleClient } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(base);
|
|
263
|
+
const { client: ecdsaClient } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient({
|
|
264
|
+
...base,
|
|
265
|
+
dedupMode: dedupMode ?? "none"
|
|
266
|
+
});
|
|
267
|
+
return reactQuery.useQuery({
|
|
268
|
+
// A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
|
|
269
|
+
staleTime: Infinity,
|
|
270
|
+
...args.query,
|
|
271
|
+
// `variant` is in the key because it changes the SHAPE of the result -
|
|
272
|
+
// the merkle and ecdsa responses must not share a cache slot.
|
|
273
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
274
|
+
chainId,
|
|
275
|
+
address: args.address,
|
|
276
|
+
fn: "roleConstants",
|
|
277
|
+
args: [variant]
|
|
278
|
+
}),
|
|
279
|
+
queryFn: async () => {
|
|
280
|
+
const [
|
|
281
|
+
PAUSER_ROLE,
|
|
282
|
+
WINDOW_ADMIN_ROLE,
|
|
283
|
+
TREASURY_ROLE,
|
|
284
|
+
RESCUER_ROLE,
|
|
285
|
+
FEE_COLLECTOR_ROLE,
|
|
286
|
+
UPGRADER_ROLE,
|
|
287
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
288
|
+
DEFAULT_ADMIN_ROLE,
|
|
289
|
+
variantRole
|
|
290
|
+
] = await Promise.all([
|
|
291
|
+
client.PAUSER_ROLE(),
|
|
292
|
+
client.WINDOW_ADMIN_ROLE(),
|
|
293
|
+
client.TREASURY_ROLE(),
|
|
294
|
+
client.RESCUER_ROLE(),
|
|
295
|
+
client.FEE_COLLECTOR_ROLE(),
|
|
296
|
+
client.UPGRADER_ROLE(),
|
|
297
|
+
client.DISCLOSURE_ADMIN_ROLE(),
|
|
298
|
+
client.DEFAULT_ADMIN_ROLE(),
|
|
299
|
+
variant === "merkle" ? merkleClient.MERKLE_ADMIN_ROLE() : variant === "ecdsa" ? ecdsaClient.SIGNER_ROLE() : Promise.resolve(void 0)
|
|
300
|
+
]);
|
|
301
|
+
return {
|
|
302
|
+
PAUSER_ROLE,
|
|
303
|
+
WINDOW_ADMIN_ROLE,
|
|
304
|
+
TREASURY_ROLE,
|
|
305
|
+
RESCUER_ROLE,
|
|
306
|
+
FEE_COLLECTOR_ROLE,
|
|
307
|
+
UPGRADER_ROLE,
|
|
308
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
309
|
+
DEFAULT_ADMIN_ROLE,
|
|
310
|
+
...variant === "merkle" && variantRole ? { MERKLE_ADMIN_ROLE: variantRole } : {},
|
|
311
|
+
...variant === "ecdsa" && variantRole ? { SIGNER_ROLE: variantRole } : {}
|
|
312
|
+
};
|
|
313
|
+
},
|
|
314
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
315
|
+
});
|
|
316
|
+
}
|
|
317
|
+
function useAirdropRoleMembers(args) {
|
|
318
|
+
const { role, ...base } = args;
|
|
319
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(base);
|
|
320
|
+
return reactQuery.useQuery({
|
|
321
|
+
...args.query,
|
|
322
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.roleMembers({ chainId, address: args.address }, role),
|
|
323
|
+
queryFn: async () => {
|
|
324
|
+
const [members, count] = await Promise.all([
|
|
325
|
+
client.getRoleMembers(role),
|
|
326
|
+
client.getRoleMemberCount(role)
|
|
327
|
+
]);
|
|
328
|
+
return { members, count };
|
|
329
|
+
},
|
|
330
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
function useComplianceHasRole(args) {
|
|
334
|
+
const { role, holder, ...base } = args;
|
|
335
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(base);
|
|
336
|
+
return reactQuery.useQuery({
|
|
337
|
+
...args.query,
|
|
338
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceHasRole({ chainId, address: args.address }, role, holder),
|
|
339
|
+
queryFn: () => client.hasRole({ role, holder }),
|
|
340
|
+
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
function useComplianceInfo(args) {
|
|
344
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(args);
|
|
345
|
+
return reactQuery.useQuery({
|
|
346
|
+
...args.query,
|
|
347
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceInfo({ chainId, address: args.address }),
|
|
348
|
+
queryFn: async () => {
|
|
349
|
+
const [airdrop, platformDelegate, clientDelegates] = await Promise.all([
|
|
350
|
+
client.airdrop(),
|
|
351
|
+
client.complianceDelegate(),
|
|
352
|
+
client.clientDelegates()
|
|
353
|
+
]);
|
|
354
|
+
return { airdrop, platformDelegate, clientDelegates };
|
|
355
|
+
},
|
|
356
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function useComplianceManagerOf(args = {}) {
|
|
360
|
+
const { airdrop, ...base } = args;
|
|
361
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
362
|
+
return reactQuery.useQuery({
|
|
363
|
+
staleTime: Infinity,
|
|
364
|
+
...args.query,
|
|
365
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
366
|
+
chainId,
|
|
367
|
+
address: resolvedAddress,
|
|
368
|
+
fn: "complianceManagerOf",
|
|
369
|
+
args: [airdrop]
|
|
370
|
+
}),
|
|
371
|
+
queryFn: () => client.complianceManagerOf(airdrop),
|
|
372
|
+
enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
function useComplianceRoleConstants(args) {
|
|
376
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(args);
|
|
377
|
+
return reactQuery.useQuery({
|
|
378
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
379
|
+
staleTime: Infinity,
|
|
380
|
+
...args.query,
|
|
381
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
382
|
+
chainId,
|
|
383
|
+
address: args.address,
|
|
384
|
+
fn: "complianceRoleConstants",
|
|
385
|
+
args: []
|
|
386
|
+
}),
|
|
387
|
+
queryFn: async () => {
|
|
388
|
+
const [DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE] = await Promise.all([
|
|
389
|
+
client.DELEGATION_ADMIN_ROLE(),
|
|
390
|
+
client.DEFAULT_ADMIN_ROLE()
|
|
391
|
+
]);
|
|
392
|
+
return { DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE };
|
|
393
|
+
},
|
|
394
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
function useComplianceRoleMembers(args) {
|
|
398
|
+
const { role, ...base } = args;
|
|
399
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(base);
|
|
400
|
+
return reactQuery.useQuery({
|
|
401
|
+
...args.query,
|
|
402
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceRoleMembers({ chainId, address: args.address }, role),
|
|
403
|
+
queryFn: async () => {
|
|
404
|
+
const [members, count] = await Promise.all([
|
|
405
|
+
client.getRoleMembers(role),
|
|
406
|
+
client.getRoleMemberCount(role)
|
|
407
|
+
]);
|
|
408
|
+
return { members, count };
|
|
409
|
+
},
|
|
410
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
function useEcdsaDomain(args) {
|
|
414
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient(args);
|
|
415
|
+
return reactQuery.useQuery({
|
|
416
|
+
staleTime: Infinity,
|
|
417
|
+
...args.query,
|
|
418
|
+
// `dedupMode` is a client-construction concern only; it moves no value
|
|
419
|
+
// read here, so it stays out of the key.
|
|
420
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({ chainId, address: args.address, fn: "ecdsaDomain", args: [] }),
|
|
421
|
+
queryFn: async () => {
|
|
422
|
+
const [claimTypehash, domainSeparator, domain] = await Promise.all([
|
|
423
|
+
client.claimTypehash(),
|
|
424
|
+
client.domainSeparator(),
|
|
425
|
+
client.eip712Domain()
|
|
426
|
+
]);
|
|
427
|
+
return { claimTypehash, domainSeparator, domain };
|
|
428
|
+
},
|
|
429
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
function useEffectiveDelegateToCompliance(args = {}) {
|
|
433
|
+
const { creator, ...base } = args;
|
|
434
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(base);
|
|
435
|
+
return reactQuery.useQuery({
|
|
436
|
+
...args.query,
|
|
437
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
438
|
+
chainId,
|
|
439
|
+
address: resolvedAddress,
|
|
440
|
+
fn: "effectiveDelegateToCompliance",
|
|
441
|
+
args: [creator]
|
|
442
|
+
}),
|
|
443
|
+
queryFn: () => client.effectiveDelegateToCompliance(creator),
|
|
444
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
function useIsActiveDelegate(args) {
|
|
448
|
+
const { delegate, ...base } = args;
|
|
449
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(base);
|
|
450
|
+
return reactQuery.useQuery({
|
|
451
|
+
...args.query,
|
|
452
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.activeDelegate({ chainId, address: args.address }, delegate),
|
|
453
|
+
queryFn: () => client.isActiveDelegate(delegate),
|
|
454
|
+
enabled: Boolean(client && delegate && (args.query?.enabled ?? true))
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
function useIsMerkleRootMutable(args) {
|
|
458
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(args);
|
|
459
|
+
return reactQuery.useQuery({
|
|
460
|
+
// Before the spread so a consumer can still opt into refetching.
|
|
461
|
+
staleTime: Infinity,
|
|
462
|
+
...args.query,
|
|
463
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.merkleRootMutable({ chainId, address: args.address }),
|
|
464
|
+
queryFn: () => client.isMerkleRootMutable(),
|
|
465
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
function useIsSignatureValid(args) {
|
|
469
|
+
const { recipient, encryptedAmountHandle, dedupId, deadline, signer, signature, ...base } = args;
|
|
470
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient(base);
|
|
471
|
+
return reactQuery.useQuery({
|
|
472
|
+
...args.query,
|
|
473
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
474
|
+
chainId,
|
|
475
|
+
address: args.address,
|
|
476
|
+
fn: chunkTND5NDV7_cjs.AIRDROP_FN.isSignatureValid,
|
|
477
|
+
args: [recipient, encryptedAmountHandle, dedupId, deadline, signer, signature]
|
|
478
|
+
}),
|
|
479
|
+
queryFn: () => client.isSignatureValid({
|
|
480
|
+
recipient,
|
|
481
|
+
encryptedAmountHandle,
|
|
482
|
+
dedupId,
|
|
483
|
+
deadline,
|
|
484
|
+
signer,
|
|
485
|
+
signature
|
|
486
|
+
}),
|
|
487
|
+
enabled: Boolean(
|
|
488
|
+
client && recipient && encryptedAmountHandle && dedupId && deadline !== void 0 && signer && signature && (args.query?.enabled ?? true)
|
|
489
|
+
)
|
|
490
|
+
});
|
|
491
|
+
}
|
|
492
|
+
function usePreflightClaim(args) {
|
|
493
|
+
const { variant, dedupMode, claimant, account, to, entrypoint, signature, ...base } = args;
|
|
494
|
+
const { client: merkleClient, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(base);
|
|
495
|
+
const { client: ecdsaClient } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient({
|
|
496
|
+
...base,
|
|
497
|
+
dedupMode: dedupMode ?? "none"
|
|
498
|
+
});
|
|
499
|
+
const client = variant === "ecdsa" ? ecdsaClient : merkleClient;
|
|
500
|
+
return reactQuery.useQuery({
|
|
501
|
+
...args.query,
|
|
502
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
503
|
+
chainId,
|
|
504
|
+
address: args.address,
|
|
505
|
+
fn: "preflightClaim",
|
|
506
|
+
args: [variant, claimant, account, to, entrypoint, signature]
|
|
507
|
+
}),
|
|
508
|
+
queryFn: () => chunkYTIYTV4K_cjs.preflightClaim({
|
|
509
|
+
airdrop: client,
|
|
510
|
+
claimant,
|
|
511
|
+
account,
|
|
512
|
+
to,
|
|
513
|
+
entrypoint,
|
|
514
|
+
signature
|
|
515
|
+
}),
|
|
516
|
+
enabled: Boolean(client && claimant && (args.query?.enabled ?? true))
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
function usePreflightCreateAirdrop(args = {}) {
|
|
520
|
+
const { client, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(args);
|
|
521
|
+
return reactQuery.useQuery({
|
|
522
|
+
...args.query,
|
|
523
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
524
|
+
chainId,
|
|
525
|
+
address: resolvedAddress,
|
|
526
|
+
fn: chunkTND5NDV7_cjs.AIRDROP_FN.preflightCreate,
|
|
527
|
+
args: [
|
|
528
|
+
args.variant,
|
|
529
|
+
args.mode,
|
|
530
|
+
args.creator,
|
|
531
|
+
args.userSalt,
|
|
532
|
+
args.expectedInitCodeHash,
|
|
533
|
+
// `params` IS key-affecting here, unlike in the predict hooks: the
|
|
534
|
+
// stock-wrapper probe reads `common.token` / `common.unwrappable`.
|
|
535
|
+
args.params
|
|
536
|
+
]
|
|
537
|
+
}),
|
|
538
|
+
queryFn: () => {
|
|
539
|
+
const common = {
|
|
540
|
+
factory: client,
|
|
541
|
+
mode: args.mode,
|
|
542
|
+
creator: args.creator,
|
|
543
|
+
userSalt: args.userSalt,
|
|
544
|
+
expectedInitCodeHash: args.expectedInitCodeHash
|
|
545
|
+
};
|
|
546
|
+
return args.variant === "merkle" ? chunkYTIYTV4K_cjs.preflightCreate({ ...common, variant: "merkle", params: args.params }) : chunkYTIYTV4K_cjs.preflightCreate({ ...common, variant: "ecdsa", params: args.params });
|
|
547
|
+
},
|
|
548
|
+
enabled: Boolean(
|
|
549
|
+
client && args.variant && args.params && args.mode && args.creator && args.userSalt && (args.query?.enabled ?? true)
|
|
550
|
+
)
|
|
551
|
+
});
|
|
552
|
+
}
|
|
166
553
|
function useCreateEcdsaAirdrop(options = {}) {
|
|
167
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
554
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
168
555
|
const queryClient = reactQuery.useQueryClient();
|
|
169
556
|
return reactQuery.useMutation({
|
|
170
557
|
mutationFn: async (args) => {
|
|
@@ -175,13 +562,16 @@ function useCreateEcdsaAirdrop(options = {}) {
|
|
|
175
562
|
},
|
|
176
563
|
onSuccess: () => {
|
|
177
564
|
void queryClient.invalidateQueries({
|
|
178
|
-
queryKey:
|
|
565
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
566
|
+
});
|
|
567
|
+
void queryClient.invalidateQueries({
|
|
568
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isAirdropAll({ chainId, address: resolvedAddress })
|
|
179
569
|
});
|
|
180
570
|
}
|
|
181
571
|
});
|
|
182
572
|
}
|
|
183
573
|
function useCreateMerkleAirdrop(options = {}) {
|
|
184
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
574
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
185
575
|
const queryClient = reactQuery.useQueryClient();
|
|
186
576
|
return reactQuery.useMutation({
|
|
187
577
|
mutationFn: async (args) => {
|
|
@@ -192,13 +582,16 @@ function useCreateMerkleAirdrop(options = {}) {
|
|
|
192
582
|
},
|
|
193
583
|
onSuccess: () => {
|
|
194
584
|
void queryClient.invalidateQueries({
|
|
195
|
-
queryKey:
|
|
585
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
586
|
+
});
|
|
587
|
+
void queryClient.invalidateQueries({
|
|
588
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isAirdropAll({ chainId, address: resolvedAddress })
|
|
196
589
|
});
|
|
197
590
|
}
|
|
198
591
|
});
|
|
199
592
|
}
|
|
200
593
|
function useFundAirdrop(options = {}) {
|
|
201
|
-
const { client, resolutionError } =
|
|
594
|
+
const { client, resolutionError } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
202
595
|
return reactQuery.useMutation({
|
|
203
596
|
mutationFn: async (args) => {
|
|
204
597
|
if (!client) {
|
|
@@ -209,18 +602,24 @@ function useFundAirdrop(options = {}) {
|
|
|
209
602
|
});
|
|
210
603
|
}
|
|
211
604
|
function useEcdsaClaim(options) {
|
|
212
|
-
const { client } =
|
|
605
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient(options);
|
|
606
|
+
const queryClient = reactQuery.useQueryClient();
|
|
213
607
|
return reactQuery.useMutation({
|
|
214
608
|
mutationFn: async (args) => {
|
|
215
609
|
if (!client) {
|
|
216
610
|
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
|
|
217
611
|
}
|
|
218
612
|
return client.claim(args);
|
|
613
|
+
},
|
|
614
|
+
onSuccess: () => {
|
|
615
|
+
void queryClient.invalidateQueries({
|
|
616
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
617
|
+
});
|
|
219
618
|
}
|
|
220
619
|
});
|
|
221
620
|
}
|
|
222
621
|
function useMerkleClaim(options) {
|
|
223
|
-
const { client, chainId
|
|
622
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(options);
|
|
224
623
|
const queryClient = reactQuery.useQueryClient();
|
|
225
624
|
return reactQuery.useMutation({
|
|
226
625
|
mutationFn: async (args) => {
|
|
@@ -229,27 +628,22 @@ function useMerkleClaim(options) {
|
|
|
229
628
|
}
|
|
230
629
|
return client.claim(args);
|
|
231
630
|
},
|
|
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
|
-
},
|
|
631
|
+
onMutate: (variables) => ({ account: variables.entry.account }),
|
|
238
632
|
onSuccess: (_hash, _variables, context) => {
|
|
239
|
-
if (!context?.
|
|
633
|
+
if (!context?.account) return;
|
|
240
634
|
void queryClient.invalidateQueries({
|
|
241
|
-
queryKey:
|
|
635
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
242
636
|
chainId,
|
|
243
637
|
address: options.address,
|
|
244
638
|
fn: "getClaimedAmount",
|
|
245
|
-
args: [context.
|
|
639
|
+
args: [context.account]
|
|
246
640
|
})
|
|
247
641
|
});
|
|
248
642
|
}
|
|
249
643
|
});
|
|
250
644
|
}
|
|
251
645
|
function useSetMerkleRoot(options) {
|
|
252
|
-
const { client, chainId } =
|
|
646
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(options);
|
|
253
647
|
const queryClient = reactQuery.useQueryClient();
|
|
254
648
|
return reactQuery.useMutation({
|
|
255
649
|
mutationFn: async (args) => {
|
|
@@ -260,7 +654,7 @@ function useSetMerkleRoot(options) {
|
|
|
260
654
|
},
|
|
261
655
|
onSuccess: () => {
|
|
262
656
|
void queryClient.invalidateQueries({
|
|
263
|
-
queryKey:
|
|
657
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({
|
|
264
658
|
chainId,
|
|
265
659
|
address: options.address,
|
|
266
660
|
fn: "merkleRoot",
|
|
@@ -271,28 +665,28 @@ function useSetMerkleRoot(options) {
|
|
|
271
665
|
});
|
|
272
666
|
}
|
|
273
667
|
function useGrantInstanceRoles(options) {
|
|
274
|
-
const { client, chainId } =
|
|
668
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
275
669
|
const queryClient = reactQuery.useQueryClient();
|
|
276
670
|
return reactQuery.useMutation({
|
|
277
671
|
mutationFn: async (args) => {
|
|
278
672
|
if (!client) {
|
|
279
673
|
throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
|
|
280
674
|
}
|
|
281
|
-
return
|
|
675
|
+
return chunkGKYZQJGP_cjs.grantInstanceRoles({
|
|
282
676
|
airdrop: client,
|
|
283
677
|
assignment: args.assignment,
|
|
284
678
|
...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
|
|
285
679
|
});
|
|
286
680
|
},
|
|
287
681
|
onSuccess: () => {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
});
|
|
682
|
+
const scope = { chainId, address: options.address };
|
|
683
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.hasRoleAll(scope) });
|
|
684
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.roleMembersAll(scope) });
|
|
291
685
|
}
|
|
292
686
|
});
|
|
293
687
|
}
|
|
294
688
|
function useAirdropPause(options) {
|
|
295
|
-
const { client, chainId } =
|
|
689
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
296
690
|
const queryClient = reactQuery.useQueryClient();
|
|
297
691
|
return reactQuery.useMutation({
|
|
298
692
|
mutationFn: async ({ paused, ...rest }) => {
|
|
@@ -303,16 +697,16 @@ function useAirdropPause(options) {
|
|
|
303
697
|
},
|
|
304
698
|
onSuccess: () => {
|
|
305
699
|
void queryClient.invalidateQueries({
|
|
306
|
-
queryKey:
|
|
700
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
|
|
307
701
|
});
|
|
308
702
|
void queryClient.invalidateQueries({
|
|
309
|
-
queryKey:
|
|
703
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
310
704
|
});
|
|
311
705
|
}
|
|
312
706
|
});
|
|
313
707
|
}
|
|
314
708
|
function useExtendClaimWindow(options) {
|
|
315
|
-
const { client, chainId } =
|
|
709
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
316
710
|
const queryClient = reactQuery.useQueryClient();
|
|
317
711
|
return reactQuery.useMutation({
|
|
318
712
|
mutationFn: async (args) => {
|
|
@@ -323,13 +717,13 @@ function useExtendClaimWindow(options) {
|
|
|
323
717
|
},
|
|
324
718
|
onSuccess: () => {
|
|
325
719
|
void queryClient.invalidateQueries({
|
|
326
|
-
queryKey:
|
|
720
|
+
queryKey: chunkTND5NDV7_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
327
721
|
});
|
|
328
722
|
}
|
|
329
723
|
});
|
|
330
724
|
}
|
|
331
725
|
function useWithdrawConfidential(options) {
|
|
332
|
-
const { client } =
|
|
726
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
333
727
|
return reactQuery.useMutation({
|
|
334
728
|
mutationFn: async (args) => {
|
|
335
729
|
if (!client) {
|
|
@@ -339,118 +733,586 @@ function useWithdrawConfidential(options) {
|
|
|
339
733
|
}
|
|
340
734
|
});
|
|
341
735
|
}
|
|
736
|
+
function useAddComplianceDelegate(options) {
|
|
737
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(options);
|
|
738
|
+
const queryClient = reactQuery.useQueryClient();
|
|
739
|
+
return reactQuery.useMutation({
|
|
740
|
+
mutationFn: async (args) => {
|
|
741
|
+
if (!client) {
|
|
742
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAddComplianceDelegate", "compliance-manager");
|
|
743
|
+
}
|
|
744
|
+
return client.addDelegate(args);
|
|
745
|
+
},
|
|
746
|
+
onSuccess: (_hash, variables) => {
|
|
747
|
+
const scope = { chainId, address: options.address };
|
|
748
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceInfo(scope) });
|
|
749
|
+
void queryClient.invalidateQueries({
|
|
750
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
function useAirdropGrantRole(options) {
|
|
756
|
+
const { client, chainId } = chunkTND5NDV7_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("useAirdropGrantRole", "airdrop-base");
|
|
762
|
+
}
|
|
763
|
+
return client.grantRole(args);
|
|
764
|
+
},
|
|
765
|
+
onSuccess: (_hash, variables) => {
|
|
766
|
+
const scope = { chainId, address: options.address };
|
|
767
|
+
void queryClient.invalidateQueries({
|
|
768
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
769
|
+
});
|
|
770
|
+
void queryClient.invalidateQueries({
|
|
771
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
772
|
+
});
|
|
773
|
+
}
|
|
774
|
+
});
|
|
775
|
+
}
|
|
776
|
+
function useAirdropRenounceRole(options) {
|
|
777
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
778
|
+
const queryClient = reactQuery.useQueryClient();
|
|
779
|
+
return reactQuery.useMutation({
|
|
780
|
+
mutationFn: async (args) => {
|
|
781
|
+
if (!client) {
|
|
782
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRenounceRole", "airdrop-base");
|
|
783
|
+
}
|
|
784
|
+
return client.renounceRole(args);
|
|
785
|
+
},
|
|
786
|
+
onSuccess: (_hash, variables) => {
|
|
787
|
+
const scope = { chainId, address: options.address };
|
|
788
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.hasRoleAll(scope) });
|
|
789
|
+
void queryClient.invalidateQueries({
|
|
790
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
});
|
|
794
|
+
}
|
|
795
|
+
function useAirdropRevokeRole(options) {
|
|
796
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
797
|
+
const queryClient = reactQuery.useQueryClient();
|
|
798
|
+
return reactQuery.useMutation({
|
|
799
|
+
mutationFn: async (args) => {
|
|
800
|
+
if (!client) {
|
|
801
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRevokeRole", "airdrop-base");
|
|
802
|
+
}
|
|
803
|
+
return client.revokeRole(args);
|
|
804
|
+
},
|
|
805
|
+
onSuccess: (_hash, variables) => {
|
|
806
|
+
const scope = { chainId, address: options.address };
|
|
807
|
+
void queryClient.invalidateQueries({
|
|
808
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
809
|
+
});
|
|
810
|
+
void queryClient.invalidateQueries({
|
|
811
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
});
|
|
815
|
+
}
|
|
816
|
+
function useAirdropUpgradeToAndCall(options) {
|
|
817
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
818
|
+
return reactQuery.useMutation({
|
|
819
|
+
mutationFn: async (args) => {
|
|
820
|
+
if (!client) {
|
|
821
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropUpgradeToAndCall", "airdrop-base");
|
|
822
|
+
}
|
|
823
|
+
return client.upgradeToAndCall(args);
|
|
824
|
+
}
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
function useBatchDiscloseHandlesToParty(options) {
|
|
828
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
829
|
+
return reactQuery.useMutation({
|
|
830
|
+
mutationFn: async (args) => {
|
|
831
|
+
if (!client) {
|
|
832
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "airdrop-base");
|
|
833
|
+
}
|
|
834
|
+
return client.batchDiscloseHandlesToParty(args);
|
|
835
|
+
}
|
|
836
|
+
});
|
|
837
|
+
}
|
|
838
|
+
function useBuildMerkleCampaign(options = {}) {
|
|
839
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
840
|
+
encryptorSourceRef.current = options.encryptor;
|
|
841
|
+
return reactQuery.useMutation({
|
|
842
|
+
mutationFn: async (args) => chunkGKYZQJGP_cjs.buildMerkleCampaign({
|
|
843
|
+
instance: args.instance,
|
|
844
|
+
recipients: args.recipients,
|
|
845
|
+
encryptor: () => chunk4AWQJQXY_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
846
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
847
|
+
})
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
function useComplianceGrantRole(options) {
|
|
851
|
+
const { client, chainId } = chunkTND5NDV7_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("useComplianceGrantRole", "compliance-manager");
|
|
857
|
+
}
|
|
858
|
+
return client.grantRole(args);
|
|
859
|
+
},
|
|
860
|
+
onSuccess: (_hash, variables) => {
|
|
861
|
+
const scope = { chainId, address: options.address };
|
|
862
|
+
void queryClient.invalidateQueries({
|
|
863
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
864
|
+
});
|
|
865
|
+
void queryClient.invalidateQueries({
|
|
866
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
867
|
+
});
|
|
868
|
+
}
|
|
869
|
+
});
|
|
870
|
+
}
|
|
871
|
+
function useComplianceRenounceRole(options) {
|
|
872
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(options);
|
|
873
|
+
const queryClient = reactQuery.useQueryClient();
|
|
874
|
+
return reactQuery.useMutation({
|
|
875
|
+
mutationFn: async (args) => {
|
|
876
|
+
if (!client) {
|
|
877
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRenounceRole", "compliance-manager");
|
|
878
|
+
}
|
|
879
|
+
return client.renounceRole(args);
|
|
880
|
+
},
|
|
881
|
+
onSuccess: (_hash, variables) => {
|
|
882
|
+
const scope = { chainId, address: options.address };
|
|
883
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceHasRoleAll(scope) });
|
|
884
|
+
void queryClient.invalidateQueries({
|
|
885
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
});
|
|
889
|
+
}
|
|
890
|
+
function useComplianceRevokeRole(options) {
|
|
891
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(options);
|
|
892
|
+
const queryClient = reactQuery.useQueryClient();
|
|
893
|
+
return reactQuery.useMutation({
|
|
894
|
+
mutationFn: async (args) => {
|
|
895
|
+
if (!client) {
|
|
896
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRevokeRole", "compliance-manager");
|
|
897
|
+
}
|
|
898
|
+
return client.revokeRole(args);
|
|
899
|
+
},
|
|
900
|
+
onSuccess: (_hash, variables) => {
|
|
901
|
+
const scope = { chainId, address: options.address };
|
|
902
|
+
void queryClient.invalidateQueries({
|
|
903
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
904
|
+
});
|
|
905
|
+
void queryClient.invalidateQueries({
|
|
906
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
907
|
+
});
|
|
908
|
+
}
|
|
909
|
+
});
|
|
910
|
+
}
|
|
911
|
+
function useCreateAndFundEcdsaAirdrop(options = {}) {
|
|
912
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
913
|
+
const queryClient = reactQuery.useQueryClient();
|
|
914
|
+
return reactQuery.useMutation({
|
|
915
|
+
mutationFn: async (args) => {
|
|
916
|
+
if (!client) {
|
|
917
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundEcdsaAirdrop", "factory");
|
|
918
|
+
}
|
|
919
|
+
return client.createAndFundEcdsaAirdrop(args);
|
|
920
|
+
},
|
|
921
|
+
onSuccess: () => {
|
|
922
|
+
void queryClient.invalidateQueries({
|
|
923
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
924
|
+
});
|
|
925
|
+
void queryClient.invalidateQueries({
|
|
926
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isAirdropAll({ chainId, address: resolvedAddress })
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
});
|
|
930
|
+
}
|
|
931
|
+
function useCreateAndFundMerkleAirdrop(options = {}) {
|
|
932
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
933
|
+
const queryClient = reactQuery.useQueryClient();
|
|
934
|
+
return reactQuery.useMutation({
|
|
935
|
+
mutationFn: async (args) => {
|
|
936
|
+
if (!client) {
|
|
937
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundMerkleAirdrop", "factory");
|
|
938
|
+
}
|
|
939
|
+
return client.createAndFundMerkleAirdrop(args);
|
|
940
|
+
},
|
|
941
|
+
onSuccess: () => {
|
|
942
|
+
void queryClient.invalidateQueries({
|
|
943
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
944
|
+
});
|
|
945
|
+
void queryClient.invalidateQueries({
|
|
946
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isAirdropAll({ chainId, address: resolvedAddress })
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
function useDiscloseHandleToParty(options) {
|
|
952
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
953
|
+
return reactQuery.useMutation({
|
|
954
|
+
mutationFn: async (args) => {
|
|
955
|
+
if (!client) {
|
|
956
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "airdrop-base");
|
|
957
|
+
}
|
|
958
|
+
return client.discloseHandleToParty(args);
|
|
959
|
+
}
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
function useEcdsaClaimAndUnwrap(options) {
|
|
963
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient(options);
|
|
964
|
+
const queryClient = reactQuery.useQueryClient();
|
|
965
|
+
return reactQuery.useMutation({
|
|
966
|
+
mutationFn: async (args) => {
|
|
967
|
+
if (!client) {
|
|
968
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaimAndUnwrap", "ecdsa-airdrop");
|
|
969
|
+
}
|
|
970
|
+
return client.claimAndUnwrap(args);
|
|
971
|
+
},
|
|
972
|
+
onSuccess: () => {
|
|
973
|
+
void queryClient.invalidateQueries({
|
|
974
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
});
|
|
978
|
+
}
|
|
979
|
+
function useEncryptCampaignAmounts(options = {}) {
|
|
980
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
981
|
+
encryptorSourceRef.current = options.encryptor;
|
|
982
|
+
return reactQuery.useMutation({
|
|
983
|
+
mutationFn: async (args) => chunkGKYZQJGP_cjs.encryptCampaignAmounts({
|
|
984
|
+
instance: args.instance,
|
|
985
|
+
recipients: args.recipients,
|
|
986
|
+
encryptor: () => chunk4AWQJQXY_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
987
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
988
|
+
})
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
function useMerkleClaimAndUnwrap(options) {
|
|
992
|
+
const { client, walletClient, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(options);
|
|
993
|
+
const queryClient = reactQuery.useQueryClient();
|
|
994
|
+
return reactQuery.useMutation({
|
|
995
|
+
mutationFn: async (args) => {
|
|
996
|
+
if (!client) {
|
|
997
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaimAndUnwrap", "merkle-airdrop");
|
|
998
|
+
}
|
|
999
|
+
return client.claimAndUnwrap(args);
|
|
1000
|
+
},
|
|
1001
|
+
// Resolved here rather than in `onSuccess`: a mutation outlives several
|
|
1002
|
+
// re-renders of its own component and `useWalletClient().data` can read back
|
|
1003
|
+
// transiently empty across them, which would silently skip the invalidation.
|
|
1004
|
+
onMutate: (variables) => {
|
|
1005
|
+
const account = variables.account ?? walletClient?.account;
|
|
1006
|
+
if (!account) return {};
|
|
1007
|
+
return { sender: typeof account === "string" ? account : account.address };
|
|
1008
|
+
},
|
|
1009
|
+
onSuccess: (_hash, _variables, context) => {
|
|
1010
|
+
if (!context?.sender) return;
|
|
1011
|
+
void queryClient.invalidateQueries({
|
|
1012
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.sender)
|
|
1013
|
+
});
|
|
1014
|
+
}
|
|
1015
|
+
});
|
|
1016
|
+
}
|
|
1017
|
+
function usePlanMerkleCampaign(options = {}) {
|
|
1018
|
+
const { client, resolutionError } = chunkTND5NDV7_cjs.useMemoAirdropFactoryClient(options);
|
|
1019
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
1020
|
+
encryptorSourceRef.current = options.encryptor;
|
|
1021
|
+
return reactQuery.useMutation({
|
|
1022
|
+
mutationFn: async (args) => {
|
|
1023
|
+
if (!client) {
|
|
1024
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePlanMerkleCampaign", "factory");
|
|
1025
|
+
}
|
|
1026
|
+
return chunkGKYZQJGP_cjs.planMerkleCampaign({
|
|
1027
|
+
factory: client,
|
|
1028
|
+
...args,
|
|
1029
|
+
encryptor: () => chunk4AWQJQXY_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
});
|
|
1033
|
+
}
|
|
1034
|
+
function useRescueERC20(options) {
|
|
1035
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1036
|
+
return reactQuery.useMutation({
|
|
1037
|
+
mutationFn: async (args) => {
|
|
1038
|
+
if (!client) {
|
|
1039
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "airdrop-base");
|
|
1040
|
+
}
|
|
1041
|
+
return client.rescueERC20(args);
|
|
1042
|
+
}
|
|
1043
|
+
});
|
|
1044
|
+
}
|
|
1045
|
+
function useRescueOtherConfidentialToken(options) {
|
|
1046
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1047
|
+
return reactQuery.useMutation({
|
|
1048
|
+
mutationFn: async (args) => {
|
|
1049
|
+
if (!client) {
|
|
1050
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueOtherConfidentialToken", "airdrop-base");
|
|
1051
|
+
}
|
|
1052
|
+
return client.rescueOtherConfidentialToken(args);
|
|
1053
|
+
}
|
|
1054
|
+
});
|
|
1055
|
+
}
|
|
1056
|
+
function useRevokeComplianceDelegate(options) {
|
|
1057
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoComplianceManagerClient(options);
|
|
1058
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1059
|
+
return reactQuery.useMutation({
|
|
1060
|
+
mutationFn: async (args) => {
|
|
1061
|
+
if (!client) {
|
|
1062
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeComplianceDelegate", "compliance-manager");
|
|
1063
|
+
}
|
|
1064
|
+
return client.revokeDelegate(args);
|
|
1065
|
+
},
|
|
1066
|
+
onSuccess: (_hash, variables) => {
|
|
1067
|
+
const scope = { chainId, address: options.address };
|
|
1068
|
+
void queryClient.invalidateQueries({ queryKey: chunkTND5NDV7_cjs.airdropKeys.complianceInfo(scope) });
|
|
1069
|
+
void queryClient.invalidateQueries({
|
|
1070
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
1071
|
+
});
|
|
1072
|
+
}
|
|
1073
|
+
});
|
|
1074
|
+
}
|
|
1075
|
+
function useRotateMerkleRoot(options) {
|
|
1076
|
+
const { client, chainId } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(options);
|
|
1077
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
1078
|
+
encryptorSourceRef.current = options.encryptor;
|
|
1079
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1080
|
+
return reactQuery.useMutation({
|
|
1081
|
+
mutationFn: async (args) => {
|
|
1082
|
+
if (!client) {
|
|
1083
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRotateMerkleRoot", "merkle-airdrop");
|
|
1084
|
+
}
|
|
1085
|
+
return chunkGKYZQJGP_cjs.rotateMerkleRoot({
|
|
1086
|
+
airdrop: client,
|
|
1087
|
+
recipients: args.recipients,
|
|
1088
|
+
encryptor: () => chunk4AWQJQXY_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
1089
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {},
|
|
1090
|
+
...args.account !== void 0 ? { account: args.account } : {}
|
|
1091
|
+
});
|
|
1092
|
+
},
|
|
1093
|
+
onSuccess: () => {
|
|
1094
|
+
void queryClient.invalidateQueries({
|
|
1095
|
+
queryKey: chunkTND5NDV7_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
function useSignClaimAuthorization(options) {
|
|
1101
|
+
const { walletClient, chainId } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1102
|
+
return reactQuery.useMutation({
|
|
1103
|
+
mutationFn: async (args) => {
|
|
1104
|
+
if (!walletClient) {
|
|
1105
|
+
throw new chunk67OV5CX2_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
1106
|
+
}
|
|
1107
|
+
if (chainId === void 0) {
|
|
1108
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useSignClaimAuthorization", "airdrop-base");
|
|
1109
|
+
}
|
|
1110
|
+
return chunk4AWQJQXY_cjs.signClaimAuthorization({
|
|
1111
|
+
walletClient,
|
|
1112
|
+
airdrop: options.address,
|
|
1113
|
+
chainId,
|
|
1114
|
+
recipient: args.recipient,
|
|
1115
|
+
encryptedAmountHandle: args.encryptedAmountHandle,
|
|
1116
|
+
dedupId: args.dedupId,
|
|
1117
|
+
deadline: args.deadline,
|
|
1118
|
+
account: args.account
|
|
1119
|
+
});
|
|
1120
|
+
}
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
function useWithdrawGasFee(options) {
|
|
1124
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1125
|
+
return reactQuery.useMutation({
|
|
1126
|
+
mutationFn: async (args) => {
|
|
1127
|
+
if (!client) {
|
|
1128
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "airdrop-base");
|
|
1129
|
+
}
|
|
1130
|
+
return client.withdrawGasFee(args);
|
|
1131
|
+
}
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
function useAdminBatchDiscloseBalanceToParties(options) {
|
|
1135
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1136
|
+
return reactQuery.useMutation({
|
|
1137
|
+
mutationFn: async (args) => {
|
|
1138
|
+
if (!client) {
|
|
1139
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseBalanceToParties", "airdrop-base");
|
|
1140
|
+
}
|
|
1141
|
+
return client.adminBatchDiscloseBalanceToParties(args);
|
|
1142
|
+
}
|
|
1143
|
+
});
|
|
1144
|
+
}
|
|
1145
|
+
function useAdminDiscloseBalanceToParty(options) {
|
|
1146
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1147
|
+
return reactQuery.useMutation({
|
|
1148
|
+
mutationFn: async (args) => {
|
|
1149
|
+
if (!client) {
|
|
1150
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseBalanceToParty", "airdrop-base");
|
|
1151
|
+
}
|
|
1152
|
+
return client.adminDiscloseBalanceToParty(args);
|
|
1153
|
+
}
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
function useAdminGetCurrentBalance(options) {
|
|
1157
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1158
|
+
return reactQuery.useMutation({
|
|
1159
|
+
mutationFn: async (args) => {
|
|
1160
|
+
if (!client) {
|
|
1161
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetCurrentBalance", "airdrop-base");
|
|
1162
|
+
}
|
|
1163
|
+
return client.adminGetCurrentBalance(args ?? {});
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
function useRefreshComplianceBalance(options) {
|
|
1168
|
+
const { client } = chunkTND5NDV7_cjs.useMemoAirdropBaseClient(options);
|
|
1169
|
+
return reactQuery.useMutation({
|
|
1170
|
+
mutationFn: async (args) => {
|
|
1171
|
+
if (!client) {
|
|
1172
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRefreshComplianceBalance", "airdrop-base");
|
|
1173
|
+
}
|
|
1174
|
+
return client.refreshComplianceBalance(args ?? {});
|
|
1175
|
+
}
|
|
1176
|
+
});
|
|
1177
|
+
}
|
|
1178
|
+
function useAccessEcdsaClaimAmount(options) {
|
|
1179
|
+
const { client } = chunkTND5NDV7_cjs.useMemoEcdsaAirdropClient(options);
|
|
1180
|
+
return reactQuery.useMutation({
|
|
1181
|
+
mutationFn: async (args) => {
|
|
1182
|
+
if (!client) {
|
|
1183
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessEcdsaClaimAmount", "ecdsa-airdrop");
|
|
1184
|
+
}
|
|
1185
|
+
return client.getClaimAmount(args);
|
|
1186
|
+
}
|
|
1187
|
+
});
|
|
1188
|
+
}
|
|
1189
|
+
function useAccessMerkleClaimAmount(options) {
|
|
1190
|
+
const { client } = chunkTND5NDV7_cjs.useMemoMerkleAirdropClient(options);
|
|
1191
|
+
return reactQuery.useMutation({
|
|
1192
|
+
mutationFn: async (args) => {
|
|
1193
|
+
if (!client) {
|
|
1194
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessMerkleClaimAmount", "merkle-airdrop");
|
|
1195
|
+
}
|
|
1196
|
+
return client.getClaimAmount(args);
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
342
1200
|
|
|
343
1201
|
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
344
1202
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
1203
|
+
get: function () { return chunkGKYZQJGP_cjs.buildMerkleCampaign; }
|
|
346
1204
|
});
|
|
347
1205
|
Object.defineProperty(exports, "buildMerkleTree", {
|
|
348
1206
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
1207
|
+
get: function () { return chunkGKYZQJGP_cjs.buildMerkleTree; }
|
|
350
1208
|
});
|
|
351
1209
|
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
352
1210
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
1211
|
+
get: function () { return chunkGKYZQJGP_cjs.encryptCampaignAmounts; }
|
|
354
1212
|
});
|
|
355
1213
|
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
356
1214
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
1215
|
+
get: function () { return chunkGKYZQJGP_cjs.grantInstanceRoles; }
|
|
358
1216
|
});
|
|
359
1217
|
Object.defineProperty(exports, "leafOf", {
|
|
360
1218
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
1219
|
+
get: function () { return chunkGKYZQJGP_cjs.leafOf; }
|
|
362
1220
|
});
|
|
363
1221
|
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
364
1222
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
1223
|
+
get: function () { return chunkGKYZQJGP_cjs.planInstanceRoleSplit; }
|
|
366
1224
|
});
|
|
367
1225
|
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
368
1226
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
1227
|
+
get: function () { return chunkGKYZQJGP_cjs.planMerkleCampaign; }
|
|
370
1228
|
});
|
|
371
1229
|
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
372
1230
|
enumerable: true,
|
|
373
|
-
get: function () { return
|
|
1231
|
+
get: function () { return chunkGKYZQJGP_cjs.rotateMerkleRoot; }
|
|
374
1232
|
});
|
|
375
1233
|
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
376
1234
|
enumerable: true,
|
|
377
|
-
get: function () { return
|
|
1235
|
+
get: function () { return chunkGKYZQJGP_cjs.validateCampaignRecipients; }
|
|
378
1236
|
});
|
|
379
1237
|
Object.defineProperty(exports, "airdropQueryKey", {
|
|
380
1238
|
enumerable: true,
|
|
381
|
-
get: function () { return
|
|
1239
|
+
get: function () { return chunkTND5NDV7_cjs.airdropQueryKey; }
|
|
382
1240
|
});
|
|
383
1241
|
Object.defineProperty(exports, "airdropQueryKeyPrefix", {
|
|
384
1242
|
enumerable: true,
|
|
385
|
-
get: function () { return
|
|
1243
|
+
get: function () { return chunkTND5NDV7_cjs.airdropQueryKeyPrefix; }
|
|
386
1244
|
});
|
|
387
1245
|
Object.defineProperty(exports, "encryptUint64", {
|
|
388
1246
|
enumerable: true,
|
|
389
|
-
get: function () { return
|
|
1247
|
+
get: function () { return chunk4AWQJQXY_cjs.encryptUint64; }
|
|
390
1248
|
});
|
|
391
1249
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
392
1250
|
enumerable: true,
|
|
393
|
-
get: function () { return
|
|
1251
|
+
get: function () { return chunk4AWQJQXY_cjs.encryptUint64Batch; }
|
|
394
1252
|
});
|
|
395
1253
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
396
1254
|
enumerable: true,
|
|
397
|
-
get: function () { return
|
|
1255
|
+
get: function () { return chunk4AWQJQXY_cjs.resolveEncryptor; }
|
|
398
1256
|
});
|
|
399
1257
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
400
1258
|
enumerable: true,
|
|
401
|
-
get: function () { return
|
|
1259
|
+
get: function () { return chunk4AWQJQXY_cjs.signClaimAuthorization; }
|
|
402
1260
|
});
|
|
403
1261
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
404
1262
|
enumerable: true,
|
|
405
|
-
get: function () { return
|
|
1263
|
+
get: function () { return chunkYTIYTV4K_cjs.AlreadyClaimedError; }
|
|
406
1264
|
});
|
|
407
1265
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
408
1266
|
enumerable: true,
|
|
409
|
-
get: function () { return
|
|
1267
|
+
get: function () { return chunkYTIYTV4K_cjs.ClaimNotStartedError; }
|
|
410
1268
|
});
|
|
411
1269
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
412
1270
|
enumerable: true,
|
|
413
|
-
get: function () { return
|
|
1271
|
+
get: function () { return chunkYTIYTV4K_cjs.ClaimWindowClosedError; }
|
|
414
1272
|
});
|
|
415
1273
|
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
416
1274
|
enumerable: true,
|
|
417
|
-
get: function () { return
|
|
1275
|
+
get: function () { return chunkYTIYTV4K_cjs.DedupIdConsumedError; }
|
|
418
1276
|
});
|
|
419
1277
|
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
420
1278
|
enumerable: true,
|
|
421
|
-
get: function () { return
|
|
1279
|
+
get: function () { return chunkYTIYTV4K_cjs.FeeCollectorSelfAdministeredError; }
|
|
422
1280
|
});
|
|
423
1281
|
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
424
1282
|
enumerable: true,
|
|
425
|
-
get: function () { return
|
|
1283
|
+
get: function () { return chunkYTIYTV4K_cjs.MerkleUupsUnsupportedError; }
|
|
426
1284
|
});
|
|
427
1285
|
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
428
1286
|
enumerable: true,
|
|
429
|
-
get: function () { return
|
|
1287
|
+
get: function () { return chunkYTIYTV4K_cjs.NonStockWrapperError; }
|
|
430
1288
|
});
|
|
431
1289
|
Object.defineProperty(exports, "PredictionDriftError", {
|
|
432
1290
|
enumerable: true,
|
|
433
|
-
get: function () { return
|
|
1291
|
+
get: function () { return chunkYTIYTV4K_cjs.PredictionDriftError; }
|
|
434
1292
|
});
|
|
435
1293
|
Object.defineProperty(exports, "SaltCollisionError", {
|
|
436
1294
|
enumerable: true,
|
|
437
|
-
get: function () { return
|
|
1295
|
+
get: function () { return chunkYTIYTV4K_cjs.SaltCollisionError; }
|
|
438
1296
|
});
|
|
439
1297
|
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
440
1298
|
enumerable: true,
|
|
441
|
-
get: function () { return
|
|
1299
|
+
get: function () { return chunkYTIYTV4K_cjs.SignatureExpiredError; }
|
|
1300
|
+
});
|
|
1301
|
+
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
1302
|
+
enumerable: true,
|
|
1303
|
+
get: function () { return chunkYTIYTV4K_cjs.UnauthorizedRedirectError; }
|
|
442
1304
|
});
|
|
443
1305
|
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
444
1306
|
enumerable: true,
|
|
445
|
-
get: function () { return
|
|
1307
|
+
get: function () { return chunkYTIYTV4K_cjs.UpgradeabilityNotAllowedError; }
|
|
446
1308
|
});
|
|
447
1309
|
Object.defineProperty(exports, "preflightClaim", {
|
|
448
1310
|
enumerable: true,
|
|
449
|
-
get: function () { return
|
|
1311
|
+
get: function () { return chunkYTIYTV4K_cjs.preflightClaim; }
|
|
450
1312
|
});
|
|
451
1313
|
Object.defineProperty(exports, "preflightCreate", {
|
|
452
1314
|
enumerable: true,
|
|
453
|
-
get: function () { return
|
|
1315
|
+
get: function () { return chunkYTIYTV4K_cjs.preflightCreate; }
|
|
454
1316
|
});
|
|
455
1317
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
456
1318
|
enumerable: true,
|
|
@@ -596,24 +1458,72 @@ Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
|
596
1458
|
enumerable: true,
|
|
597
1459
|
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
598
1460
|
});
|
|
1461
|
+
exports.useAccessEcdsaClaimAmount = useAccessEcdsaClaimAmount;
|
|
1462
|
+
exports.useAccessMerkleClaimAmount = useAccessMerkleClaimAmount;
|
|
1463
|
+
exports.useAddComplianceDelegate = useAddComplianceDelegate;
|
|
1464
|
+
exports.useAdminBatchDiscloseBalanceToParties = useAdminBatchDiscloseBalanceToParties;
|
|
1465
|
+
exports.useAdminDiscloseBalanceToParty = useAdminDiscloseBalanceToParty;
|
|
1466
|
+
exports.useAdminGetCurrentBalance = useAdminGetCurrentBalance;
|
|
1467
|
+
exports.useAirdropConfig = useAirdropConfig;
|
|
1468
|
+
exports.useAirdropDeploymentMode = useAirdropDeploymentMode;
|
|
599
1469
|
exports.useAirdropGasFee = useAirdropGasFee;
|
|
1470
|
+
exports.useAirdropGrantRole = useAirdropGrantRole;
|
|
600
1471
|
exports.useAirdropHasRole = useAirdropHasRole;
|
|
601
1472
|
exports.useAirdropPause = useAirdropPause;
|
|
602
1473
|
exports.useAirdropPaused = useAirdropPaused;
|
|
1474
|
+
exports.useAirdropRenounceRole = useAirdropRenounceRole;
|
|
1475
|
+
exports.useAirdropRevokeRole = useAirdropRevokeRole;
|
|
1476
|
+
exports.useAirdropRoleAdmin = useAirdropRoleAdmin;
|
|
1477
|
+
exports.useAirdropRoleConstants = useAirdropRoleConstants;
|
|
1478
|
+
exports.useAirdropRoleMembers = useAirdropRoleMembers;
|
|
603
1479
|
exports.useAirdropToken = useAirdropToken;
|
|
1480
|
+
exports.useAirdropUpgradeToAndCall = useAirdropUpgradeToAndCall;
|
|
604
1481
|
exports.useAirdropWindow = useAirdropWindow;
|
|
1482
|
+
exports.useBatchDiscloseHandlesToParty = useBatchDiscloseHandlesToParty;
|
|
1483
|
+
exports.useBuildMerkleCampaign = useBuildMerkleCampaign;
|
|
605
1484
|
exports.useClaimedAmount = useClaimedAmount;
|
|
1485
|
+
exports.useComplianceGrantRole = useComplianceGrantRole;
|
|
1486
|
+
exports.useComplianceHasRole = useComplianceHasRole;
|
|
1487
|
+
exports.useComplianceInfo = useComplianceInfo;
|
|
606
1488
|
exports.useComplianceManager = useComplianceManager;
|
|
1489
|
+
exports.useComplianceManagerOf = useComplianceManagerOf;
|
|
1490
|
+
exports.useComplianceRenounceRole = useComplianceRenounceRole;
|
|
1491
|
+
exports.useComplianceRevokeRole = useComplianceRevokeRole;
|
|
1492
|
+
exports.useComplianceRoleConstants = useComplianceRoleConstants;
|
|
1493
|
+
exports.useComplianceRoleMembers = useComplianceRoleMembers;
|
|
1494
|
+
exports.useCreateAndFundEcdsaAirdrop = useCreateAndFundEcdsaAirdrop;
|
|
1495
|
+
exports.useCreateAndFundMerkleAirdrop = useCreateAndFundMerkleAirdrop;
|
|
607
1496
|
exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
|
|
608
1497
|
exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
|
|
1498
|
+
exports.useDiscloseHandleToParty = useDiscloseHandleToParty;
|
|
609
1499
|
exports.useEcdsaClaim = useEcdsaClaim;
|
|
1500
|
+
exports.useEcdsaClaimAndUnwrap = useEcdsaClaimAndUnwrap;
|
|
1501
|
+
exports.useEcdsaDomain = useEcdsaDomain;
|
|
1502
|
+
exports.useEffectiveDelegateToCompliance = useEffectiveDelegateToCompliance;
|
|
610
1503
|
exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
|
|
1504
|
+
exports.useEncryptCampaignAmounts = useEncryptCampaignAmounts;
|
|
611
1505
|
exports.useExtendClaimWindow = useExtendClaimWindow;
|
|
612
1506
|
exports.useFactoryFees = useFactoryFees;
|
|
613
1507
|
exports.useFactoryRegistry = useFactoryRegistry;
|
|
614
1508
|
exports.useFundAirdrop = useFundAirdrop;
|
|
615
1509
|
exports.useGrantInstanceRoles = useGrantInstanceRoles;
|
|
1510
|
+
exports.useIsActiveDelegate = useIsActiveDelegate;
|
|
1511
|
+
exports.useIsAirdrop = useIsAirdrop;
|
|
1512
|
+
exports.useIsMerkleRootMutable = useIsMerkleRootMutable;
|
|
1513
|
+
exports.useIsSignatureValid = useIsSignatureValid;
|
|
616
1514
|
exports.useMerkleClaim = useMerkleClaim;
|
|
1515
|
+
exports.useMerkleClaimAndUnwrap = useMerkleClaimAndUnwrap;
|
|
617
1516
|
exports.useMerkleRoot = useMerkleRoot;
|
|
1517
|
+
exports.usePlanMerkleCampaign = usePlanMerkleCampaign;
|
|
1518
|
+
exports.usePreflightClaim = usePreflightClaim;
|
|
1519
|
+
exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
|
|
1520
|
+
exports.useRefreshComplianceBalance = useRefreshComplianceBalance;
|
|
1521
|
+
exports.useRescueERC20 = useRescueERC20;
|
|
1522
|
+
exports.useRescueOtherConfidentialToken = useRescueOtherConfidentialToken;
|
|
1523
|
+
exports.useResolveGasFee = useResolveGasFee;
|
|
1524
|
+
exports.useRevokeComplianceDelegate = useRevokeComplianceDelegate;
|
|
1525
|
+
exports.useRotateMerkleRoot = useRotateMerkleRoot;
|
|
618
1526
|
exports.useSetMerkleRoot = useSetMerkleRoot;
|
|
1527
|
+
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
619
1528
|
exports.useWithdrawConfidential = useWithdrawConfidential;
|
|
1529
|
+
exports.useWithdrawGasFee = useWithdrawGasFee;
|