@tokenops/sdk 2.0.0-alpha.2 → 2.0.0-alpha.4
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 +92 -3
- package/README.md +76 -34
- package/SUPPORT.md +1 -1
- package/dist/{chunk-PYYSB5ZN.js → chunk-2ND7US2I.js} +1 -1
- package/dist/{chunk-EYDA6Q6C.js → chunk-3ZSPRHR3.js} +63 -12
- package/dist/{chunk-X7WBPCEU.js → chunk-67Q6KSVV.js} +4578 -3383
- package/dist/{chunk-UHHMVBLU.cjs → chunk-6AYJRUGP.cjs} +7 -50
- package/dist/{chunk-FEDX7B6T.cjs → chunk-6FUHF73F.cjs} +5 -5
- package/dist/{chunk-NWFMBLSQ.js → chunk-7KY4K4PH.js} +1 -1
- package/dist/{chunk-FHWSBGWE.cjs → chunk-ARZ5C3FS.cjs} +7 -7
- package/dist/{chunk-SPLNGUFF.js → chunk-AX6MQAWU.js} +2 -2
- package/dist/{chunk-IGO5XSPS.js → chunk-BSXEX2SH.js} +3 -3
- package/dist/{chunk-44YJPMQC.js → chunk-CHGY6B7L.js} +34 -81
- package/dist/{chunk-IUKKNJ2R.cjs → chunk-DFK5GCJP.cjs} +55 -72
- package/dist/{chunk-PZZK3O3S.cjs → chunk-E4IV4M4E.cjs} +4598 -3403
- package/dist/{chunk-A4DCEE33.js → chunk-GHGF65LN.js} +16 -12
- package/dist/{chunk-TWT3STIX.js → chunk-K3R27WX4.js} +8 -46
- package/dist/{chunk-GADGBQJO.js → chunk-KJUNBOJQ.js} +52 -71
- package/dist/{chunk-MM5BV5CS.cjs → chunk-PO3A2AQX.cjs} +4 -4
- package/dist/{chunk-EBLBPUPI.cjs → chunk-QHDMPT7I.cjs} +72 -19
- package/dist/{chunk-3YHBO2DL.cjs → chunk-S47IBDTA.cjs} +36 -83
- package/dist/{chunk-UG5RKLU2.cjs → chunk-SUYBAF27.cjs} +1 -1
- package/dist/{chunk-WJMEBBU7.js → chunk-TWU7L5H7.js} +5 -48
- package/dist/{chunk-WJLECC22.cjs → chunk-UUSSWOPR.cjs} +9 -47
- package/dist/{chunk-AREQJHKA.cjs → chunk-VHKMWWBA.cjs} +428 -22
- package/dist/{chunk-FT5H2Q7Y.cjs → chunk-YAL6JSAZ.cjs} +16 -12
- package/dist/{chunk-VW356KR3.js → chunk-YMWMIWBP.js} +421 -25
- package/dist/core/addresses.d.ts +4 -4
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/pending.d.ts +57 -0
- package/dist/core/version.d.ts +1 -1
- package/dist/fhe/operators.d.ts +6 -5
- package/dist/fhe/types.d.ts +1 -1
- package/dist/fhe-airdrop/abis/airdrop-base.d.ts +97 -1
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +117 -1
- package/dist/fhe-airdrop/abis/factory.d.ts +332 -1
- package/dist/fhe-airdrop/abis/merkle.d.ts +116 -1
- package/dist/fhe-airdrop/advanced/index.cjs +8 -4
- package/dist/fhe-airdrop/advanced/index.d.cts +1 -0
- package/dist/fhe-airdrop/advanced/index.d.ts +1 -0
- package/dist/fhe-airdrop/advanced/index.js +1 -1
- package/dist/fhe-airdrop/advanced/react/index.cjs +145 -137
- package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -0
- package/dist/fhe-airdrop/advanced/react/index.js +85 -78
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +4 -1
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +2 -4
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +4 -3
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +9 -7
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +6 -5
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +7 -7
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +3 -1
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +2 -1
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +4 -1
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +5 -4
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +7 -3
- package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +142 -18
- package/dist/fhe-airdrop/campaign.d.ts +37 -73
- package/dist/fhe-airdrop/compliance-clone.d.ts +21 -0
- package/dist/fhe-airdrop/constants.d.ts +11 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +79 -26
- package/dist/fhe-airdrop/encryption.d.ts +19 -6
- package/dist/fhe-airdrop/errors.d.ts +136 -2
- package/dist/fhe-airdrop/factory-params.d.ts +2361 -0
- package/dist/fhe-airdrop/factory.d.ts +189 -75
- package/dist/fhe-airdrop/guards.d.ts +183 -19
- package/dist/fhe-airdrop/index.cjs +88 -56
- package/dist/fhe-airdrop/index.d.cts +12 -10
- package/dist/fhe-airdrop/index.d.ts +12 -10
- package/dist/fhe-airdrop/index.js +5 -5
- package/dist/fhe-airdrop/merkle-tree.d.ts +9 -9
- package/dist/fhe-airdrop/merkle.d.ts +32 -11
- package/dist/fhe-airdrop/react/_shared.d.ts +12 -6
- package/dist/fhe-airdrop/react/index.cjs +336 -240
- package/dist/fhe-airdrop/react/index.d.cts +19 -9
- package/dist/fhe-airdrop/react/index.d.ts +19 -9
- package/dist/fhe-airdrop/react/index.js +158 -97
- package/dist/fhe-airdrop/react/keys.d.ts +54 -7
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +6 -3
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +2 -2
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +8 -3
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +5 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +4 -6
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +2 -2
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +1 -2
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +16 -11
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +23 -7
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +13 -8
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +27 -7
- package/dist/fhe-airdrop/react/useDedupMode.d.ts +16 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +4 -3
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +6 -4
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +15 -8
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +1 -1
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +5 -7
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +4 -1
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +11 -4
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +3 -4
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +2 -1
- package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -0
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +5 -4
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +4 -1
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +14 -3
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +18 -3
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +1 -1
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +34 -13
- package/dist/fhe-airdrop/react/useRefreshComplianceBalance.d.ts +36 -0
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +3 -3
- package/dist/fhe-airdrop/react/useRescueNativeToken.d.ts +23 -0
- package/dist/fhe-airdrop/react/useResolveGasFee.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +5 -2
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +4 -0
- package/dist/fhe-airdrop/react/useTokenOf.d.ts +29 -0
- package/dist/fhe-airdrop/react/useUnwrapRequest.d.ts +25 -0
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +4 -0
- package/dist/fhe-airdrop/roles.d.ts +82 -7
- package/dist/fhe-airdrop/types.d.ts +122 -14
- package/dist/fhe-disperse/errors.d.ts +3 -3
- package/dist/fhe-disperse/index.cjs +22 -22
- package/dist/fhe-disperse/index.d.cts +2 -1
- package/dist/fhe-disperse/index.d.ts +2 -1
- package/dist/fhe-disperse/index.js +3 -3
- package/dist/fhe-disperse/react/index.cjs +27 -25
- package/dist/fhe-disperse/react/index.d.cts +2 -1
- package/dist/fhe-disperse/react/index.d.ts +2 -1
- package/dist/fhe-disperse/react/index.js +8 -6
- package/dist/fhe-disperse/react/useDisperse.d.ts +6 -2
- package/dist/fhe-disperse/react/useRegister.d.ts +9 -3
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +7 -2
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +7 -2
- package/dist/fhe-disperse/singleton.d.ts +33 -19
- package/dist/fhe-disperse/types.d.ts +48 -8
- package/dist/fhe-vesting/advanced/index.cjs +6 -6
- package/dist/fhe-vesting/advanced/index.js +4 -4
- package/dist/fhe-vesting/advanced/react/index.cjs +9 -9
- package/dist/fhe-vesting/advanced/react/index.js +6 -6
- package/dist/fhe-vesting/factory.d.ts +31 -8
- package/dist/fhe-vesting/index.cjs +23 -23
- package/dist/fhe-vesting/index.d.cts +3 -2
- package/dist/fhe-vesting/index.d.ts +3 -2
- package/dist/fhe-vesting/index.js +4 -4
- package/dist/fhe-vesting/manager.d.ts +27 -2
- package/dist/fhe-vesting/react/index.cjs +126 -126
- package/dist/fhe-vesting/react/index.d.cts +3 -2
- package/dist/fhe-vesting/react/index.d.ts +3 -2
- package/dist/fhe-vesting/react/index.js +5 -5
- package/dist/fhe-vesting/react/useCreateManager.d.ts +16 -9
- package/dist/fhe-vesting/react/useCreateManagerAndGetAddress.d.ts +9 -5
- package/dist/fhe-vesting/react/useSplitVesting.d.ts +9 -3
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/faucet.d.ts +3 -0
- package/dist/testnet-faucet/index.cjs +15 -15
- package/dist/testnet-faucet/index.js +3 -3
- package/dist/testnet-faucet/react/index.cjs +9 -9
- package/dist/testnet-faucet/react/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
3
|
+
var chunkDFK5GCJP_cjs = require('../../chunk-DFK5GCJP.cjs');
|
|
4
|
+
var chunkQHDMPT7I_cjs = require('../../chunk-QHDMPT7I.cjs');
|
|
5
|
+
var chunkE4IV4M4E_cjs = require('../../chunk-E4IV4M4E.cjs');
|
|
6
|
+
var chunkVHKMWWBA_cjs = require('../../chunk-VHKMWWBA.cjs');
|
|
7
7
|
require('../../chunk-FAXIIH5R.cjs');
|
|
8
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-SUYBAF27.cjs');
|
|
9
9
|
require('../../chunk-MVDQMV25.cjs');
|
|
10
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-YAL6JSAZ.cjs');
|
|
11
11
|
require('../../chunk-JK4XMMKM.cjs');
|
|
12
12
|
require('../../chunk-66IHPTOK.cjs');
|
|
13
13
|
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
@@ -16,19 +16,19 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
16
16
|
var react = require('react');
|
|
17
17
|
|
|
18
18
|
function useAirdropToken(args) {
|
|
19
|
-
const { client, chainId } =
|
|
19
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
20
20
|
return reactQuery.useQuery({
|
|
21
21
|
...args.query,
|
|
22
|
-
queryKey:
|
|
22
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
|
|
23
23
|
queryFn: () => client.token(),
|
|
24
24
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
25
25
|
});
|
|
26
26
|
}
|
|
27
27
|
function useAirdropWindow(args) {
|
|
28
|
-
const { client, chainId } =
|
|
28
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
29
29
|
return reactQuery.useQuery({
|
|
30
30
|
...args.query,
|
|
31
|
-
queryKey:
|
|
31
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.window({ chainId, address: args.address }),
|
|
32
32
|
queryFn: async () => {
|
|
33
33
|
const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
|
|
34
34
|
client.startTime(),
|
|
@@ -43,67 +43,57 @@ function useAirdropWindow(args) {
|
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
function useAirdropPaused(args) {
|
|
46
|
-
const { client, chainId } =
|
|
46
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
47
47
|
return reactQuery.useQuery({
|
|
48
48
|
...args.query,
|
|
49
|
-
queryKey:
|
|
49
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.paused({ chainId, address: args.address }),
|
|
50
50
|
queryFn: () => client.paused(),
|
|
51
51
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
function useAirdropGasFee(args) {
|
|
55
|
-
const { client, chainId } =
|
|
55
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
56
56
|
return reactQuery.useQuery({
|
|
57
57
|
...args.query,
|
|
58
|
-
queryKey:
|
|
58
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.gasFee({ chainId, address: args.address }),
|
|
59
59
|
queryFn: () => client.gasFee(),
|
|
60
60
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function useAirdropHasRole(args) {
|
|
64
64
|
const { role, holder, ...base } = args;
|
|
65
|
-
const { client, chainId } =
|
|
65
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(base);
|
|
66
66
|
return reactQuery.useQuery({
|
|
67
67
|
...args.query,
|
|
68
|
-
queryKey:
|
|
69
|
-
chainId,
|
|
70
|
-
address: args.address,
|
|
71
|
-
fn: "hasRole",
|
|
72
|
-
args: [role, holder]
|
|
73
|
-
}),
|
|
68
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.hasRole({ chainId, address: args.address }, role, holder),
|
|
74
69
|
queryFn: () => client.hasRole({ role, holder }),
|
|
75
70
|
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
76
71
|
});
|
|
77
72
|
}
|
|
78
73
|
function useMerkleRoot(args) {
|
|
79
|
-
const { client, chainId } =
|
|
74
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(args);
|
|
80
75
|
return reactQuery.useQuery({
|
|
81
76
|
...args.query,
|
|
82
|
-
queryKey:
|
|
77
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleRoot({ chainId, address: args.address }),
|
|
83
78
|
queryFn: () => client.merkleRoot(),
|
|
84
79
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
85
80
|
});
|
|
86
81
|
}
|
|
87
82
|
function useClaimedAmount(args) {
|
|
88
83
|
const { account, ...base } = args;
|
|
89
|
-
const { client, chainId } =
|
|
84
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(base);
|
|
90
85
|
return reactQuery.useQuery({
|
|
91
86
|
...args.query,
|
|
92
|
-
queryKey:
|
|
93
|
-
chainId,
|
|
94
|
-
address: args.address,
|
|
95
|
-
fn: "getClaimedAmount",
|
|
96
|
-
args: [account]
|
|
97
|
-
}),
|
|
87
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.claimedAmount({ chainId, address: args.address }, account),
|
|
98
88
|
queryFn: () => client.getClaimedAmount(account),
|
|
99
89
|
enabled: Boolean(client && account && (args.query?.enabled ?? true))
|
|
100
90
|
});
|
|
101
91
|
}
|
|
102
92
|
function useComplianceManager(args) {
|
|
103
|
-
const { client, chainId } =
|
|
93
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
104
94
|
return reactQuery.useQuery({
|
|
105
95
|
...args.query,
|
|
106
|
-
queryKey:
|
|
96
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
107
97
|
chainId,
|
|
108
98
|
address: args.address,
|
|
109
99
|
fn: "complianceManager",
|
|
@@ -114,31 +104,42 @@ function useComplianceManager(args) {
|
|
|
114
104
|
});
|
|
115
105
|
}
|
|
116
106
|
function useFactoryFees(args = {}) {
|
|
117
|
-
const { client, chainId, resolvedAddress } =
|
|
107
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(args);
|
|
118
108
|
return reactQuery.useQuery({
|
|
119
109
|
...args.query,
|
|
120
|
-
queryKey:
|
|
110
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.fees({ chainId, address: resolvedAddress }),
|
|
121
111
|
queryFn: async () => {
|
|
122
|
-
const [feeCollector, defaultGasFee] = await Promise.all([
|
|
112
|
+
const [feeCollector, defaultGasFee, maxGasFee] = await Promise.all([
|
|
123
113
|
client.feeCollector(),
|
|
124
|
-
client.defaultGasFee()
|
|
114
|
+
client.defaultGasFee(),
|
|
115
|
+
client.maxGasFee()
|
|
125
116
|
]);
|
|
126
|
-
return { feeCollector, defaultGasFee };
|
|
117
|
+
return { feeCollector, defaultGasFee, maxGasFee };
|
|
127
118
|
},
|
|
128
119
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
129
120
|
});
|
|
130
121
|
}
|
|
131
|
-
function
|
|
132
|
-
const {
|
|
133
|
-
const { client, chainId, resolvedAddress } =
|
|
122
|
+
function useResolveGasFee(args = {}) {
|
|
123
|
+
const { creator, ...base } = args;
|
|
124
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
134
125
|
return reactQuery.useQuery({
|
|
135
126
|
...args.query,
|
|
136
|
-
queryKey:
|
|
127
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
137
128
|
chainId,
|
|
138
129
|
address: resolvedAddress,
|
|
139
|
-
fn:
|
|
140
|
-
args: [
|
|
130
|
+
fn: chunkQHDMPT7I_cjs.AIRDROP_FN.resolvedGasFee,
|
|
131
|
+
args: [creator]
|
|
141
132
|
}),
|
|
133
|
+
queryFn: () => client.resolveGasFee(creator),
|
|
134
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function useFactoryRegistry(args = {}) {
|
|
138
|
+
const { offset = 0n, limit = 50n, ...base } = args;
|
|
139
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
140
|
+
return reactQuery.useQuery({
|
|
141
|
+
...args.query,
|
|
142
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.registry({ chainId, address: resolvedAddress }, offset, limit),
|
|
142
143
|
queryFn: async () => {
|
|
143
144
|
const [count, items] = await Promise.all([
|
|
144
145
|
client.airdropCount(),
|
|
@@ -149,34 +150,57 @@ function useFactoryRegistry(args = {}) {
|
|
|
149
150
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
150
151
|
});
|
|
151
152
|
}
|
|
152
|
-
function
|
|
153
|
-
const {
|
|
154
|
-
const { client, chainId, resolvedAddress } =
|
|
153
|
+
function useIsAirdrop(args = {}) {
|
|
154
|
+
const { candidate, ...base } = args;
|
|
155
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
155
156
|
return reactQuery.useQuery({
|
|
157
|
+
// Per-result, not blanket: `true` is immutable (append-only registry),
|
|
158
|
+
// `false` is not. See the TSDoc above.
|
|
159
|
+
staleTime: (query) => query.state.data === true ? Infinity : 0,
|
|
156
160
|
...args.query,
|
|
157
|
-
queryKey:
|
|
161
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
158
162
|
chainId,
|
|
159
163
|
address: resolvedAddress,
|
|
160
|
-
fn:
|
|
161
|
-
args: [
|
|
164
|
+
fn: chunkQHDMPT7I_cjs.AIRDROP_FN.isAirdrop,
|
|
165
|
+
args: [candidate]
|
|
162
166
|
}),
|
|
167
|
+
queryFn: () => client.isAirdrop(candidate),
|
|
168
|
+
enabled: Boolean(client && candidate && (args.query?.enabled ?? true))
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function useEffectiveUpgradeable(args = {}) {
|
|
172
|
+
const { creator, ...base } = args;
|
|
173
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
174
|
+
return reactQuery.useQuery({
|
|
175
|
+
...args.query,
|
|
176
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveUpgradeable({ chainId, address: resolvedAddress }, creator),
|
|
163
177
|
queryFn: () => client.effectiveUpgradeable(creator),
|
|
164
178
|
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
165
179
|
});
|
|
166
180
|
}
|
|
167
181
|
function useAirdropConfig(args) {
|
|
168
|
-
const { client, chainId } =
|
|
182
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
169
183
|
return reactQuery.useQuery({
|
|
170
184
|
staleTime: Infinity,
|
|
171
185
|
...args.query,
|
|
172
|
-
queryKey:
|
|
186
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.config({ chainId, address: args.address }),
|
|
173
187
|
queryFn: async () => {
|
|
174
|
-
const [
|
|
188
|
+
const [
|
|
189
|
+
token,
|
|
190
|
+
airdropType,
|
|
191
|
+
unwrappable,
|
|
192
|
+
complianceManager,
|
|
193
|
+
gasFee,
|
|
194
|
+
canExtendClaimWindow,
|
|
195
|
+
deploymentBlockNumber
|
|
196
|
+
] = await Promise.all([
|
|
175
197
|
client.token(),
|
|
176
198
|
client.airdropType(),
|
|
177
199
|
client.unwrappable(),
|
|
178
200
|
client.complianceManager(),
|
|
179
|
-
client.gasFee()
|
|
201
|
+
client.gasFee(),
|
|
202
|
+
client.canExtendClaimWindow(),
|
|
203
|
+
client.deploymentBlockNumber()
|
|
180
204
|
]);
|
|
181
205
|
return {
|
|
182
206
|
token,
|
|
@@ -184,18 +208,20 @@ function useAirdropConfig(args) {
|
|
|
184
208
|
variant: airdropType === 1 ? "merkle" : "ecdsa",
|
|
185
209
|
unwrappable,
|
|
186
210
|
complianceManager,
|
|
187
|
-
gasFee
|
|
211
|
+
gasFee,
|
|
212
|
+
canExtendClaimWindow,
|
|
213
|
+
deploymentBlockNumber
|
|
188
214
|
};
|
|
189
215
|
},
|
|
190
216
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
191
217
|
});
|
|
192
218
|
}
|
|
193
219
|
function useAirdropDeploymentMode(args) {
|
|
194
|
-
const { client, chainId } =
|
|
220
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
195
221
|
return reactQuery.useQuery({
|
|
196
222
|
staleTime: Infinity,
|
|
197
223
|
...args.query,
|
|
198
|
-
queryKey:
|
|
224
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
199
225
|
chainId,
|
|
200
226
|
address: args.address,
|
|
201
227
|
fn: "deploymentMode",
|
|
@@ -207,12 +233,12 @@ function useAirdropDeploymentMode(args) {
|
|
|
207
233
|
}
|
|
208
234
|
function useAirdropRoleAdmin(args) {
|
|
209
235
|
const { role, ...base } = args;
|
|
210
|
-
const { client, chainId } =
|
|
236
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(base);
|
|
211
237
|
return reactQuery.useQuery({
|
|
212
238
|
// A default, not a lock: `query.staleTime` still wins.
|
|
213
239
|
staleTime: Infinity,
|
|
214
240
|
...args.query,
|
|
215
|
-
queryKey:
|
|
241
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
216
242
|
chainId,
|
|
217
243
|
address: args.address,
|
|
218
244
|
fn: "getRoleAdmin",
|
|
@@ -224,9 +250,9 @@ function useAirdropRoleAdmin(args) {
|
|
|
224
250
|
}
|
|
225
251
|
function useAirdropRoleConstants(args) {
|
|
226
252
|
const { variant, dedupMode, ...base } = args;
|
|
227
|
-
const { client, chainId } =
|
|
228
|
-
const { client: merkleClient } =
|
|
229
|
-
const { client: ecdsaClient } =
|
|
253
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(base);
|
|
254
|
+
const { client: merkleClient } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(base);
|
|
255
|
+
const { client: ecdsaClient } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient({
|
|
230
256
|
...base,
|
|
231
257
|
dedupMode: dedupMode ?? "none"
|
|
232
258
|
});
|
|
@@ -236,7 +262,7 @@ function useAirdropRoleConstants(args) {
|
|
|
236
262
|
...args.query,
|
|
237
263
|
// `variant` is in the key because it changes the SHAPE of the result -
|
|
238
264
|
// the merkle and ecdsa responses must not share a cache slot.
|
|
239
|
-
queryKey:
|
|
265
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
240
266
|
chainId,
|
|
241
267
|
address: args.address,
|
|
242
268
|
fn: "roleConstants",
|
|
@@ -282,10 +308,10 @@ function useAirdropRoleConstants(args) {
|
|
|
282
308
|
}
|
|
283
309
|
function useAirdropRoleMembers(args) {
|
|
284
310
|
const { role, ...base } = args;
|
|
285
|
-
const { client, chainId } =
|
|
311
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(base);
|
|
286
312
|
return reactQuery.useQuery({
|
|
287
313
|
...args.query,
|
|
288
|
-
queryKey:
|
|
314
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.roleMembers({ chainId, address: args.address }, role),
|
|
289
315
|
queryFn: async () => {
|
|
290
316
|
const [members, count] = await Promise.all([
|
|
291
317
|
client.getRoleMembers(role),
|
|
@@ -298,19 +324,19 @@ function useAirdropRoleMembers(args) {
|
|
|
298
324
|
}
|
|
299
325
|
function useComplianceHasRole(args) {
|
|
300
326
|
const { role, holder, ...base } = args;
|
|
301
|
-
const { client, chainId } =
|
|
327
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(base);
|
|
302
328
|
return reactQuery.useQuery({
|
|
303
329
|
...args.query,
|
|
304
|
-
queryKey:
|
|
330
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceHasRole({ chainId, address: args.address }, role, holder),
|
|
305
331
|
queryFn: () => client.hasRole({ role, holder }),
|
|
306
332
|
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
307
333
|
});
|
|
308
334
|
}
|
|
309
335
|
function useComplianceInfo(args) {
|
|
310
|
-
const { client, chainId } =
|
|
336
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(args);
|
|
311
337
|
return reactQuery.useQuery({
|
|
312
338
|
...args.query,
|
|
313
|
-
queryKey:
|
|
339
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceInfo({ chainId, address: args.address }),
|
|
314
340
|
queryFn: async () => {
|
|
315
341
|
const [airdrop, platformDelegate, clientDelegates] = await Promise.all([
|
|
316
342
|
client.airdrop(),
|
|
@@ -324,27 +350,22 @@ function useComplianceInfo(args) {
|
|
|
324
350
|
}
|
|
325
351
|
function useComplianceManagerOf(args = {}) {
|
|
326
352
|
const { airdrop, ...base } = args;
|
|
327
|
-
const { client, chainId, resolvedAddress } =
|
|
353
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
328
354
|
return reactQuery.useQuery({
|
|
329
|
-
staleTime:
|
|
355
|
+
staleTime: chunkQHDMPT7I_cjs.staleUntilNonZeroAddress,
|
|
330
356
|
...args.query,
|
|
331
|
-
queryKey:
|
|
332
|
-
chainId,
|
|
333
|
-
address: resolvedAddress,
|
|
334
|
-
fn: "complianceManagerOf",
|
|
335
|
-
args: [airdrop]
|
|
336
|
-
}),
|
|
357
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceManagerOf({ chainId, address: resolvedAddress }, airdrop),
|
|
337
358
|
queryFn: () => client.complianceManagerOf(airdrop),
|
|
338
359
|
enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
|
|
339
360
|
});
|
|
340
361
|
}
|
|
341
362
|
function useComplianceRoleConstants(args) {
|
|
342
|
-
const { client, chainId } =
|
|
363
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(args);
|
|
343
364
|
return reactQuery.useQuery({
|
|
344
365
|
// A default, not a lock: `query.staleTime` still wins.
|
|
345
366
|
staleTime: Infinity,
|
|
346
367
|
...args.query,
|
|
347
|
-
queryKey:
|
|
368
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
348
369
|
chainId,
|
|
349
370
|
address: args.address,
|
|
350
371
|
fn: "complianceRoleConstants",
|
|
@@ -362,10 +383,10 @@ function useComplianceRoleConstants(args) {
|
|
|
362
383
|
}
|
|
363
384
|
function useComplianceRoleMembers(args) {
|
|
364
385
|
const { role, ...base } = args;
|
|
365
|
-
const { client, chainId } =
|
|
386
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(base);
|
|
366
387
|
return reactQuery.useQuery({
|
|
367
388
|
...args.query,
|
|
368
|
-
queryKey:
|
|
389
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceRoleMembers({ chainId, address: args.address }, role),
|
|
369
390
|
queryFn: async () => {
|
|
370
391
|
const [members, count] = await Promise.all([
|
|
371
392
|
client.getRoleMembers(role),
|
|
@@ -376,14 +397,24 @@ function useComplianceRoleMembers(args) {
|
|
|
376
397
|
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
377
398
|
});
|
|
378
399
|
}
|
|
400
|
+
function useDedupMode(args) {
|
|
401
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(args);
|
|
402
|
+
return reactQuery.useQuery({
|
|
403
|
+
staleTime: Infinity,
|
|
404
|
+
...args.query,
|
|
405
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.dedupMode({ chainId, address: args.address }),
|
|
406
|
+
queryFn: () => client.readDedupMode(),
|
|
407
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
408
|
+
});
|
|
409
|
+
}
|
|
379
410
|
function useEcdsaDomain(args) {
|
|
380
|
-
const { client, chainId } =
|
|
411
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(args);
|
|
381
412
|
return reactQuery.useQuery({
|
|
382
413
|
staleTime: Infinity,
|
|
383
414
|
...args.query,
|
|
384
415
|
// `dedupMode` is a client-construction concern only; it moves no value
|
|
385
416
|
// read here, so it stays out of the key.
|
|
386
|
-
queryKey:
|
|
417
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({ chainId, address: args.address, fn: "ecdsaDomain", args: [] }),
|
|
387
418
|
queryFn: async () => {
|
|
388
419
|
const [claimTypehash, domainSeparator, domain] = await Promise.all([
|
|
389
420
|
client.claimTypehash(),
|
|
@@ -397,49 +428,47 @@ function useEcdsaDomain(args) {
|
|
|
397
428
|
}
|
|
398
429
|
function useEffectiveDelegateToCompliance(args = {}) {
|
|
399
430
|
const { creator, ...base } = args;
|
|
400
|
-
const { client, chainId, resolvedAddress } =
|
|
431
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
401
432
|
return reactQuery.useQuery({
|
|
402
433
|
...args.query,
|
|
403
|
-
queryKey:
|
|
404
|
-
chainId,
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
args: [creator]
|
|
408
|
-
}),
|
|
434
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.effectiveDelegateToCompliance(
|
|
435
|
+
{ chainId, address: resolvedAddress },
|
|
436
|
+
creator
|
|
437
|
+
),
|
|
409
438
|
queryFn: () => client.effectiveDelegateToCompliance(creator),
|
|
410
439
|
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
411
440
|
});
|
|
412
441
|
}
|
|
413
442
|
function useIsActiveDelegate(args) {
|
|
414
443
|
const { delegate, ...base } = args;
|
|
415
|
-
const { client, chainId } =
|
|
444
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(base);
|
|
416
445
|
return reactQuery.useQuery({
|
|
417
446
|
...args.query,
|
|
418
|
-
queryKey:
|
|
447
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.activeDelegate({ chainId, address: args.address }, delegate),
|
|
419
448
|
queryFn: () => client.isActiveDelegate(delegate),
|
|
420
449
|
enabled: Boolean(client && delegate && (args.query?.enabled ?? true))
|
|
421
450
|
});
|
|
422
451
|
}
|
|
423
452
|
function useIsMerkleRootMutable(args) {
|
|
424
|
-
const { client, chainId } =
|
|
453
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(args);
|
|
425
454
|
return reactQuery.useQuery({
|
|
426
455
|
// Before the spread so a consumer can still opt into refetching.
|
|
427
456
|
staleTime: Infinity,
|
|
428
457
|
...args.query,
|
|
429
|
-
queryKey:
|
|
458
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleRootMutable({ chainId, address: args.address }),
|
|
430
459
|
queryFn: () => client.isMerkleRootMutable(),
|
|
431
460
|
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
432
461
|
});
|
|
433
462
|
}
|
|
434
463
|
function useIsSignatureValid(args) {
|
|
435
464
|
const { recipient, encryptedAmountHandle, dedupId, deadline, signer, signature, ...base } = args;
|
|
436
|
-
const { client, chainId } =
|
|
465
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(base);
|
|
437
466
|
return reactQuery.useQuery({
|
|
438
467
|
...args.query,
|
|
439
|
-
queryKey:
|
|
468
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
440
469
|
chainId,
|
|
441
470
|
address: args.address,
|
|
442
|
-
fn:
|
|
471
|
+
fn: chunkQHDMPT7I_cjs.AIRDROP_FN.isSignatureValid,
|
|
443
472
|
args: [recipient, encryptedAmountHandle, dedupId, deadline, signer, signature]
|
|
444
473
|
}),
|
|
445
474
|
queryFn: () => client.isSignatureValid({
|
|
@@ -457,21 +486,21 @@ function useIsSignatureValid(args) {
|
|
|
457
486
|
}
|
|
458
487
|
function usePreflightClaim(args) {
|
|
459
488
|
const { variant, dedupMode, claimant, account, to, entrypoint, signature, ...base } = args;
|
|
460
|
-
const { client: merkleClient, chainId } =
|
|
461
|
-
const { client: ecdsaClient } =
|
|
489
|
+
const { client: merkleClient, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(base);
|
|
490
|
+
const { client: ecdsaClient } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient({
|
|
462
491
|
...base,
|
|
463
492
|
dedupMode: dedupMode ?? "none"
|
|
464
493
|
});
|
|
465
494
|
const client = variant === "ecdsa" ? ecdsaClient : merkleClient;
|
|
466
495
|
return reactQuery.useQuery({
|
|
467
496
|
...args.query,
|
|
468
|
-
queryKey:
|
|
497
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
469
498
|
chainId,
|
|
470
499
|
address: args.address,
|
|
471
500
|
fn: "preflightClaim",
|
|
472
501
|
args: [variant, claimant, account, to, entrypoint, signature]
|
|
473
502
|
}),
|
|
474
|
-
queryFn: () =>
|
|
503
|
+
queryFn: () => chunkVHKMWWBA_cjs.preflightClaim({
|
|
475
504
|
airdrop: client,
|
|
476
505
|
claimant,
|
|
477
506
|
account,
|
|
@@ -483,19 +512,26 @@ function usePreflightClaim(args) {
|
|
|
483
512
|
});
|
|
484
513
|
}
|
|
485
514
|
function usePreflightCreateAirdrop(args = {}) {
|
|
486
|
-
const { client, chainId, resolvedAddress } =
|
|
515
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(args);
|
|
487
516
|
return reactQuery.useQuery({
|
|
488
517
|
...args.query,
|
|
489
|
-
queryKey:
|
|
518
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
490
519
|
chainId,
|
|
491
520
|
address: resolvedAddress,
|
|
492
|
-
fn:
|
|
521
|
+
fn: chunkQHDMPT7I_cjs.AIRDROP_FN.preflightCreate,
|
|
493
522
|
args: [
|
|
494
523
|
args.variant,
|
|
495
524
|
args.mode,
|
|
496
525
|
args.creator,
|
|
497
526
|
args.userSalt,
|
|
498
527
|
args.expectedInitCodeHash,
|
|
528
|
+
// Pinned commitments change the reported quote.
|
|
529
|
+
args.expected,
|
|
530
|
+
// A plan pins three scalars; `entries` never changes the verdict, and
|
|
531
|
+
// keying on it would hash every ciphertext on each render.
|
|
532
|
+
args.variant === "merkle" ? args.plan?.predictedAddress : void 0,
|
|
533
|
+
args.variant === "merkle" ? args.plan?.root : void 0,
|
|
534
|
+
args.variant === "merkle" ? args.plan?.initCodeHashAfter : void 0,
|
|
499
535
|
// `params` IS key-affecting here, unlike in the predict hooks: the
|
|
500
536
|
// stock-wrapper probe reads `common.token` / `common.unwrappable`.
|
|
501
537
|
args.params
|
|
@@ -507,17 +543,29 @@ function usePreflightCreateAirdrop(args = {}) {
|
|
|
507
543
|
mode: args.mode,
|
|
508
544
|
creator: args.creator,
|
|
509
545
|
userSalt: args.userSalt,
|
|
510
|
-
expectedInitCodeHash: args.expectedInitCodeHash
|
|
546
|
+
expectedInitCodeHash: args.expectedInitCodeHash,
|
|
547
|
+
expected: args.expected
|
|
511
548
|
};
|
|
512
|
-
return args.variant === "merkle" ?
|
|
549
|
+
return args.variant === "merkle" ? chunkVHKMWWBA_cjs.preflightCreate({ ...common, variant: "merkle", params: args.params, plan: args.plan }) : chunkVHKMWWBA_cjs.preflightCreate({ ...common, variant: "ecdsa", params: args.params });
|
|
513
550
|
},
|
|
514
551
|
enabled: Boolean(
|
|
515
552
|
client && args.variant && args.params && args.mode && args.creator && args.userSalt && (args.query?.enabled ?? true)
|
|
516
553
|
)
|
|
517
554
|
});
|
|
518
555
|
}
|
|
556
|
+
function useTokenOf(args = {}) {
|
|
557
|
+
const { airdrop, ...base } = args;
|
|
558
|
+
const { client, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(base);
|
|
559
|
+
return reactQuery.useQuery({
|
|
560
|
+
staleTime: chunkQHDMPT7I_cjs.staleUntilNonZeroAddress,
|
|
561
|
+
...args.query,
|
|
562
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.tokenOf({ chainId, address: resolvedAddress }, airdrop),
|
|
563
|
+
queryFn: () => client.tokenOf(airdrop),
|
|
564
|
+
enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
|
|
565
|
+
});
|
|
566
|
+
}
|
|
519
567
|
function useCreateEcdsaAirdrop(options = {}) {
|
|
520
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
568
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
521
569
|
const queryClient = reactQuery.useQueryClient();
|
|
522
570
|
return reactQuery.useMutation({
|
|
523
571
|
mutationFn: async (args) => {
|
|
@@ -526,15 +574,13 @@ function useCreateEcdsaAirdrop(options = {}) {
|
|
|
526
574
|
}
|
|
527
575
|
return client.createEcdsaAirdrop(args);
|
|
528
576
|
},
|
|
529
|
-
onSuccess: () => {
|
|
530
|
-
|
|
531
|
-
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
532
|
-
});
|
|
577
|
+
onSuccess: (result) => {
|
|
578
|
+
chunkQHDMPT7I_cjs.invalidateAfterCreate(queryClient, { chainId, address: resolvedAddress }, result.airdrop);
|
|
533
579
|
}
|
|
534
580
|
});
|
|
535
581
|
}
|
|
536
582
|
function useCreateMerkleAirdrop(options = {}) {
|
|
537
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
583
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
538
584
|
const queryClient = reactQuery.useQueryClient();
|
|
539
585
|
return reactQuery.useMutation({
|
|
540
586
|
mutationFn: async (args) => {
|
|
@@ -543,15 +589,13 @@ function useCreateMerkleAirdrop(options = {}) {
|
|
|
543
589
|
}
|
|
544
590
|
return client.createMerkleAirdrop(args);
|
|
545
591
|
},
|
|
546
|
-
onSuccess: () => {
|
|
547
|
-
|
|
548
|
-
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
549
|
-
});
|
|
592
|
+
onSuccess: (result) => {
|
|
593
|
+
chunkQHDMPT7I_cjs.invalidateAfterCreate(queryClient, { chainId, address: resolvedAddress }, result.airdrop);
|
|
550
594
|
}
|
|
551
595
|
});
|
|
552
596
|
}
|
|
553
597
|
function useFundAirdrop(options = {}) {
|
|
554
|
-
const { client, resolutionError } =
|
|
598
|
+
const { client, resolutionError } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
555
599
|
return reactQuery.useMutation({
|
|
556
600
|
mutationFn: async (args) => {
|
|
557
601
|
if (!client) {
|
|
@@ -562,7 +606,7 @@ function useFundAirdrop(options = {}) {
|
|
|
562
606
|
});
|
|
563
607
|
}
|
|
564
608
|
function useEcdsaClaim(options) {
|
|
565
|
-
const { client, chainId } =
|
|
609
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(options);
|
|
566
610
|
const queryClient = reactQuery.useQueryClient();
|
|
567
611
|
return reactQuery.useMutation({
|
|
568
612
|
mutationFn: async (args) => {
|
|
@@ -573,13 +617,13 @@ function useEcdsaClaim(options) {
|
|
|
573
617
|
},
|
|
574
618
|
onSuccess: () => {
|
|
575
619
|
void queryClient.invalidateQueries({
|
|
576
|
-
queryKey:
|
|
620
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
577
621
|
});
|
|
578
622
|
}
|
|
579
623
|
});
|
|
580
624
|
}
|
|
581
625
|
function useMerkleClaim(options) {
|
|
582
|
-
const { client, chainId } =
|
|
626
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(options);
|
|
583
627
|
const queryClient = reactQuery.useQueryClient();
|
|
584
628
|
return reactQuery.useMutation({
|
|
585
629
|
mutationFn: async (args) => {
|
|
@@ -592,18 +636,13 @@ function useMerkleClaim(options) {
|
|
|
592
636
|
onSuccess: (_hash, _variables, context) => {
|
|
593
637
|
if (!context?.account) return;
|
|
594
638
|
void queryClient.invalidateQueries({
|
|
595
|
-
queryKey:
|
|
596
|
-
chainId,
|
|
597
|
-
address: options.address,
|
|
598
|
-
fn: "getClaimedAmount",
|
|
599
|
-
args: [context.account]
|
|
600
|
-
})
|
|
639
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.account)
|
|
601
640
|
});
|
|
602
641
|
}
|
|
603
642
|
});
|
|
604
643
|
}
|
|
605
644
|
function useSetMerkleRoot(options) {
|
|
606
|
-
const { client, chainId } =
|
|
645
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(options);
|
|
607
646
|
const queryClient = reactQuery.useQueryClient();
|
|
608
647
|
return reactQuery.useMutation({
|
|
609
648
|
mutationFn: async (args) => {
|
|
@@ -614,25 +653,20 @@ function useSetMerkleRoot(options) {
|
|
|
614
653
|
},
|
|
615
654
|
onSuccess: () => {
|
|
616
655
|
void queryClient.invalidateQueries({
|
|
617
|
-
queryKey:
|
|
618
|
-
chainId,
|
|
619
|
-
address: options.address,
|
|
620
|
-
fn: "merkleRoot",
|
|
621
|
-
args: []
|
|
622
|
-
})
|
|
656
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
|
|
623
657
|
});
|
|
624
658
|
}
|
|
625
659
|
});
|
|
626
660
|
}
|
|
627
661
|
function useGrantInstanceRoles(options) {
|
|
628
|
-
const { client, chainId } =
|
|
662
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
629
663
|
const queryClient = reactQuery.useQueryClient();
|
|
630
664
|
return reactQuery.useMutation({
|
|
631
665
|
mutationFn: async (args) => {
|
|
632
666
|
if (!client) {
|
|
633
667
|
throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
|
|
634
668
|
}
|
|
635
|
-
return
|
|
669
|
+
return chunkDFK5GCJP_cjs.grantInstanceRoles({
|
|
636
670
|
airdrop: client,
|
|
637
671
|
assignment: args.assignment,
|
|
638
672
|
...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
|
|
@@ -640,13 +674,13 @@ function useGrantInstanceRoles(options) {
|
|
|
640
674
|
},
|
|
641
675
|
onSuccess: () => {
|
|
642
676
|
const scope = { chainId, address: options.address };
|
|
643
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
644
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
677
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.hasRoleAll(scope) });
|
|
678
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.roleMembersAll(scope) });
|
|
645
679
|
}
|
|
646
680
|
});
|
|
647
681
|
}
|
|
648
682
|
function useAirdropPause(options) {
|
|
649
|
-
const { client, chainId } =
|
|
683
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
650
684
|
const queryClient = reactQuery.useQueryClient();
|
|
651
685
|
return reactQuery.useMutation({
|
|
652
686
|
mutationFn: async ({ paused, ...rest }) => {
|
|
@@ -656,17 +690,14 @@ function useAirdropPause(options) {
|
|
|
656
690
|
return paused ? client.pause(rest) : client.unpause(rest);
|
|
657
691
|
},
|
|
658
692
|
onSuccess: () => {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
});
|
|
662
|
-
void queryClient.invalidateQueries({
|
|
663
|
-
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
664
|
-
});
|
|
693
|
+
const scope = { chainId, address: options.address };
|
|
694
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.paused(scope) });
|
|
695
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.window(scope) });
|
|
665
696
|
}
|
|
666
697
|
});
|
|
667
698
|
}
|
|
668
699
|
function useExtendClaimWindow(options) {
|
|
669
|
-
const { client, chainId } =
|
|
700
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
670
701
|
const queryClient = reactQuery.useQueryClient();
|
|
671
702
|
return reactQuery.useMutation({
|
|
672
703
|
mutationFn: async (args) => {
|
|
@@ -677,13 +708,13 @@ function useExtendClaimWindow(options) {
|
|
|
677
708
|
},
|
|
678
709
|
onSuccess: () => {
|
|
679
710
|
void queryClient.invalidateQueries({
|
|
680
|
-
queryKey:
|
|
711
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.window({ chainId, address: options.address })
|
|
681
712
|
});
|
|
682
713
|
}
|
|
683
714
|
});
|
|
684
715
|
}
|
|
685
716
|
function useWithdrawConfidential(options) {
|
|
686
|
-
const { client } =
|
|
717
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
687
718
|
return reactQuery.useMutation({
|
|
688
719
|
mutationFn: async (args) => {
|
|
689
720
|
if (!client) {
|
|
@@ -693,8 +724,19 @@ function useWithdrawConfidential(options) {
|
|
|
693
724
|
}
|
|
694
725
|
});
|
|
695
726
|
}
|
|
727
|
+
function useRescueNativeToken(options) {
|
|
728
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
729
|
+
return reactQuery.useMutation({
|
|
730
|
+
mutationFn: async (args) => {
|
|
731
|
+
if (!client) {
|
|
732
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueNativeToken", "airdrop-base");
|
|
733
|
+
}
|
|
734
|
+
return client.rescueNativeToken(args);
|
|
735
|
+
}
|
|
736
|
+
});
|
|
737
|
+
}
|
|
696
738
|
function useAddComplianceDelegate(options) {
|
|
697
|
-
const { client, chainId } =
|
|
739
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(options);
|
|
698
740
|
const queryClient = reactQuery.useQueryClient();
|
|
699
741
|
return reactQuery.useMutation({
|
|
700
742
|
mutationFn: async (args) => {
|
|
@@ -705,15 +747,15 @@ function useAddComplianceDelegate(options) {
|
|
|
705
747
|
},
|
|
706
748
|
onSuccess: (_hash, variables) => {
|
|
707
749
|
const scope = { chainId, address: options.address };
|
|
708
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
750
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceInfo(scope) });
|
|
709
751
|
void queryClient.invalidateQueries({
|
|
710
|
-
queryKey:
|
|
752
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
711
753
|
});
|
|
712
754
|
}
|
|
713
755
|
});
|
|
714
756
|
}
|
|
715
757
|
function useAirdropGrantRole(options) {
|
|
716
|
-
const { client, chainId } =
|
|
758
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
717
759
|
const queryClient = reactQuery.useQueryClient();
|
|
718
760
|
return reactQuery.useMutation({
|
|
719
761
|
mutationFn: async (args) => {
|
|
@@ -725,16 +767,16 @@ function useAirdropGrantRole(options) {
|
|
|
725
767
|
onSuccess: (_hash, variables) => {
|
|
726
768
|
const scope = { chainId, address: options.address };
|
|
727
769
|
void queryClient.invalidateQueries({
|
|
728
|
-
queryKey:
|
|
770
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
729
771
|
});
|
|
730
772
|
void queryClient.invalidateQueries({
|
|
731
|
-
queryKey:
|
|
773
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
732
774
|
});
|
|
733
775
|
}
|
|
734
776
|
});
|
|
735
777
|
}
|
|
736
778
|
function useAirdropRenounceRole(options) {
|
|
737
|
-
const { client, chainId } =
|
|
779
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
738
780
|
const queryClient = reactQuery.useQueryClient();
|
|
739
781
|
return reactQuery.useMutation({
|
|
740
782
|
mutationFn: async (args) => {
|
|
@@ -745,15 +787,15 @@ function useAirdropRenounceRole(options) {
|
|
|
745
787
|
},
|
|
746
788
|
onSuccess: (_hash, variables) => {
|
|
747
789
|
const scope = { chainId, address: options.address };
|
|
748
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
790
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.hasRoleAll(scope) });
|
|
749
791
|
void queryClient.invalidateQueries({
|
|
750
|
-
queryKey:
|
|
792
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
751
793
|
});
|
|
752
794
|
}
|
|
753
795
|
});
|
|
754
796
|
}
|
|
755
797
|
function useAirdropRevokeRole(options) {
|
|
756
|
-
const { client, chainId } =
|
|
798
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
757
799
|
const queryClient = reactQuery.useQueryClient();
|
|
758
800
|
return reactQuery.useMutation({
|
|
759
801
|
mutationFn: async (args) => {
|
|
@@ -765,16 +807,16 @@ function useAirdropRevokeRole(options) {
|
|
|
765
807
|
onSuccess: (_hash, variables) => {
|
|
766
808
|
const scope = { chainId, address: options.address };
|
|
767
809
|
void queryClient.invalidateQueries({
|
|
768
|
-
queryKey:
|
|
810
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
769
811
|
});
|
|
770
812
|
void queryClient.invalidateQueries({
|
|
771
|
-
queryKey:
|
|
813
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
772
814
|
});
|
|
773
815
|
}
|
|
774
816
|
});
|
|
775
817
|
}
|
|
776
818
|
function useAirdropUpgradeToAndCall(options) {
|
|
777
|
-
const { client } =
|
|
819
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
778
820
|
return reactQuery.useMutation({
|
|
779
821
|
mutationFn: async (args) => {
|
|
780
822
|
if (!client) {
|
|
@@ -785,7 +827,7 @@ function useAirdropUpgradeToAndCall(options) {
|
|
|
785
827
|
});
|
|
786
828
|
}
|
|
787
829
|
function useBatchDiscloseHandlesToParty(options) {
|
|
788
|
-
const { client } =
|
|
830
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
789
831
|
return reactQuery.useMutation({
|
|
790
832
|
mutationFn: async (args) => {
|
|
791
833
|
if (!client) {
|
|
@@ -799,16 +841,15 @@ function useBuildMerkleCampaign(options = {}) {
|
|
|
799
841
|
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
800
842
|
encryptorSourceRef.current = options.encryptor;
|
|
801
843
|
return reactQuery.useMutation({
|
|
802
|
-
mutationFn: async (args) =>
|
|
844
|
+
mutationFn: async (args) => chunkDFK5GCJP_cjs.buildMerkleCampaign({
|
|
803
845
|
instance: args.instance,
|
|
804
846
|
recipients: args.recipients,
|
|
805
|
-
encryptor: () =>
|
|
806
|
-
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
847
|
+
encryptor: () => chunkE4IV4M4E_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
807
848
|
})
|
|
808
849
|
});
|
|
809
850
|
}
|
|
810
851
|
function useComplianceGrantRole(options) {
|
|
811
|
-
const { client, chainId } =
|
|
852
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(options);
|
|
812
853
|
const queryClient = reactQuery.useQueryClient();
|
|
813
854
|
return reactQuery.useMutation({
|
|
814
855
|
mutationFn: async (args) => {
|
|
@@ -820,16 +861,16 @@ function useComplianceGrantRole(options) {
|
|
|
820
861
|
onSuccess: (_hash, variables) => {
|
|
821
862
|
const scope = { chainId, address: options.address };
|
|
822
863
|
void queryClient.invalidateQueries({
|
|
823
|
-
queryKey:
|
|
864
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
824
865
|
});
|
|
825
866
|
void queryClient.invalidateQueries({
|
|
826
|
-
queryKey:
|
|
867
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
827
868
|
});
|
|
828
869
|
}
|
|
829
870
|
});
|
|
830
871
|
}
|
|
831
872
|
function useComplianceRenounceRole(options) {
|
|
832
|
-
const { client, chainId } =
|
|
873
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(options);
|
|
833
874
|
const queryClient = reactQuery.useQueryClient();
|
|
834
875
|
return reactQuery.useMutation({
|
|
835
876
|
mutationFn: async (args) => {
|
|
@@ -840,15 +881,15 @@ function useComplianceRenounceRole(options) {
|
|
|
840
881
|
},
|
|
841
882
|
onSuccess: (_hash, variables) => {
|
|
842
883
|
const scope = { chainId, address: options.address };
|
|
843
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
884
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceHasRoleAll(scope) });
|
|
844
885
|
void queryClient.invalidateQueries({
|
|
845
|
-
queryKey:
|
|
886
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
846
887
|
});
|
|
847
888
|
}
|
|
848
889
|
});
|
|
849
890
|
}
|
|
850
891
|
function useComplianceRevokeRole(options) {
|
|
851
|
-
const { client, chainId } =
|
|
892
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(options);
|
|
852
893
|
const queryClient = reactQuery.useQueryClient();
|
|
853
894
|
return reactQuery.useMutation({
|
|
854
895
|
mutationFn: async (args) => {
|
|
@@ -860,16 +901,16 @@ function useComplianceRevokeRole(options) {
|
|
|
860
901
|
onSuccess: (_hash, variables) => {
|
|
861
902
|
const scope = { chainId, address: options.address };
|
|
862
903
|
void queryClient.invalidateQueries({
|
|
863
|
-
queryKey:
|
|
904
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
864
905
|
});
|
|
865
906
|
void queryClient.invalidateQueries({
|
|
866
|
-
queryKey:
|
|
907
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
867
908
|
});
|
|
868
909
|
}
|
|
869
910
|
});
|
|
870
911
|
}
|
|
871
912
|
function useCreateAndFundEcdsaAirdrop(options = {}) {
|
|
872
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
913
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
873
914
|
const queryClient = reactQuery.useQueryClient();
|
|
874
915
|
return reactQuery.useMutation({
|
|
875
916
|
mutationFn: async (args) => {
|
|
@@ -878,15 +919,13 @@ function useCreateAndFundEcdsaAirdrop(options = {}) {
|
|
|
878
919
|
}
|
|
879
920
|
return client.createAndFundEcdsaAirdrop(args);
|
|
880
921
|
},
|
|
881
|
-
onSuccess: () => {
|
|
882
|
-
|
|
883
|
-
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
884
|
-
});
|
|
922
|
+
onSuccess: (result) => {
|
|
923
|
+
chunkQHDMPT7I_cjs.invalidateAfterCreate(queryClient, { chainId, address: resolvedAddress }, result.airdrop);
|
|
885
924
|
}
|
|
886
925
|
});
|
|
887
926
|
}
|
|
888
927
|
function useCreateAndFundMerkleAirdrop(options = {}) {
|
|
889
|
-
const { client, resolutionError, chainId, resolvedAddress } =
|
|
928
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
890
929
|
const queryClient = reactQuery.useQueryClient();
|
|
891
930
|
return reactQuery.useMutation({
|
|
892
931
|
mutationFn: async (args) => {
|
|
@@ -895,15 +934,13 @@ function useCreateAndFundMerkleAirdrop(options = {}) {
|
|
|
895
934
|
}
|
|
896
935
|
return client.createAndFundMerkleAirdrop(args);
|
|
897
936
|
},
|
|
898
|
-
onSuccess: () => {
|
|
899
|
-
|
|
900
|
-
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
901
|
-
});
|
|
937
|
+
onSuccess: (result) => {
|
|
938
|
+
chunkQHDMPT7I_cjs.invalidateAfterCreate(queryClient, { chainId, address: resolvedAddress }, result.airdrop);
|
|
902
939
|
}
|
|
903
940
|
});
|
|
904
941
|
}
|
|
905
942
|
function useDiscloseHandleToParty(options) {
|
|
906
|
-
const { client } =
|
|
943
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
907
944
|
return reactQuery.useMutation({
|
|
908
945
|
mutationFn: async (args) => {
|
|
909
946
|
if (!client) {
|
|
@@ -914,7 +951,7 @@ function useDiscloseHandleToParty(options) {
|
|
|
914
951
|
});
|
|
915
952
|
}
|
|
916
953
|
function useEcdsaClaimAndUnwrap(options) {
|
|
917
|
-
const { client, chainId } =
|
|
954
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(options);
|
|
918
955
|
const queryClient = reactQuery.useQueryClient();
|
|
919
956
|
return reactQuery.useMutation({
|
|
920
957
|
mutationFn: async (args) => {
|
|
@@ -925,7 +962,7 @@ function useEcdsaClaimAndUnwrap(options) {
|
|
|
925
962
|
},
|
|
926
963
|
onSuccess: () => {
|
|
927
964
|
void queryClient.invalidateQueries({
|
|
928
|
-
queryKey:
|
|
965
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
929
966
|
});
|
|
930
967
|
}
|
|
931
968
|
});
|
|
@@ -934,16 +971,15 @@ function useEncryptCampaignAmounts(options = {}) {
|
|
|
934
971
|
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
935
972
|
encryptorSourceRef.current = options.encryptor;
|
|
936
973
|
return reactQuery.useMutation({
|
|
937
|
-
mutationFn: async (args) =>
|
|
974
|
+
mutationFn: async (args) => chunkDFK5GCJP_cjs.encryptCampaignAmounts({
|
|
938
975
|
instance: args.instance,
|
|
939
976
|
recipients: args.recipients,
|
|
940
|
-
encryptor: () =>
|
|
941
|
-
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
977
|
+
encryptor: () => chunkE4IV4M4E_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
942
978
|
})
|
|
943
979
|
});
|
|
944
980
|
}
|
|
945
981
|
function useMerkleClaimAndUnwrap(options) {
|
|
946
|
-
const { client, walletClient, chainId } =
|
|
982
|
+
const { client, walletClient, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(options);
|
|
947
983
|
const queryClient = reactQuery.useQueryClient();
|
|
948
984
|
return reactQuery.useMutation({
|
|
949
985
|
mutationFn: async (args) => {
|
|
@@ -963,13 +999,28 @@ function useMerkleClaimAndUnwrap(options) {
|
|
|
963
999
|
onSuccess: (_hash, _variables, context) => {
|
|
964
1000
|
if (!context?.sender) return;
|
|
965
1001
|
void queryClient.invalidateQueries({
|
|
966
|
-
queryKey:
|
|
1002
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.sender)
|
|
967
1003
|
});
|
|
968
1004
|
}
|
|
969
1005
|
});
|
|
970
1006
|
}
|
|
1007
|
+
function useUnwrapRequest(args) {
|
|
1008
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(args);
|
|
1009
|
+
return reactQuery.useQuery({
|
|
1010
|
+
staleTime: Infinity,
|
|
1011
|
+
...args.query,
|
|
1012
|
+
queryKey: chunkQHDMPT7I_cjs.airdropQueryKey({
|
|
1013
|
+
chainId,
|
|
1014
|
+
address: args.address,
|
|
1015
|
+
fn: "unwrapRequest",
|
|
1016
|
+
args: [args.hash]
|
|
1017
|
+
}),
|
|
1018
|
+
queryFn: () => client.readUnwrapRequest(args.hash),
|
|
1019
|
+
enabled: Boolean(client && args.hash && (args.query?.enabled ?? true))
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
971
1022
|
function usePlanMerkleCampaign(options = {}) {
|
|
972
|
-
const { client, resolutionError } =
|
|
1023
|
+
const { client, resolutionError } = chunkQHDMPT7I_cjs.useMemoAirdropFactoryClient(options);
|
|
973
1024
|
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
974
1025
|
encryptorSourceRef.current = options.encryptor;
|
|
975
1026
|
return reactQuery.useMutation({
|
|
@@ -977,16 +1028,16 @@ function usePlanMerkleCampaign(options = {}) {
|
|
|
977
1028
|
if (!client) {
|
|
978
1029
|
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePlanMerkleCampaign", "factory");
|
|
979
1030
|
}
|
|
980
|
-
return
|
|
1031
|
+
return chunkDFK5GCJP_cjs.planMerkleCampaign({
|
|
981
1032
|
factory: client,
|
|
982
1033
|
...args,
|
|
983
|
-
encryptor: () =>
|
|
1034
|
+
encryptor: () => chunkE4IV4M4E_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
984
1035
|
});
|
|
985
1036
|
}
|
|
986
1037
|
});
|
|
987
1038
|
}
|
|
988
1039
|
function useRescueERC20(options) {
|
|
989
|
-
const { client } =
|
|
1040
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
990
1041
|
return reactQuery.useMutation({
|
|
991
1042
|
mutationFn: async (args) => {
|
|
992
1043
|
if (!client) {
|
|
@@ -997,7 +1048,7 @@ function useRescueERC20(options) {
|
|
|
997
1048
|
});
|
|
998
1049
|
}
|
|
999
1050
|
function useRescueOtherConfidentialToken(options) {
|
|
1000
|
-
const { client } =
|
|
1051
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1001
1052
|
return reactQuery.useMutation({
|
|
1002
1053
|
mutationFn: async (args) => {
|
|
1003
1054
|
if (!client) {
|
|
@@ -1008,7 +1059,7 @@ function useRescueOtherConfidentialToken(options) {
|
|
|
1008
1059
|
});
|
|
1009
1060
|
}
|
|
1010
1061
|
function useRevokeComplianceDelegate(options) {
|
|
1011
|
-
const { client, chainId } =
|
|
1062
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoComplianceManagerClient(options);
|
|
1012
1063
|
const queryClient = reactQuery.useQueryClient();
|
|
1013
1064
|
return reactQuery.useMutation({
|
|
1014
1065
|
mutationFn: async (args) => {
|
|
@@ -1019,15 +1070,15 @@ function useRevokeComplianceDelegate(options) {
|
|
|
1019
1070
|
},
|
|
1020
1071
|
onSuccess: (_hash, variables) => {
|
|
1021
1072
|
const scope = { chainId, address: options.address };
|
|
1022
|
-
void queryClient.invalidateQueries({ queryKey:
|
|
1073
|
+
void queryClient.invalidateQueries({ queryKey: chunkQHDMPT7I_cjs.airdropKeys.complianceInfo(scope) });
|
|
1023
1074
|
void queryClient.invalidateQueries({
|
|
1024
|
-
queryKey:
|
|
1075
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
1025
1076
|
});
|
|
1026
1077
|
}
|
|
1027
1078
|
});
|
|
1028
1079
|
}
|
|
1029
1080
|
function useRotateMerkleRoot(options) {
|
|
1030
|
-
const { client, chainId } =
|
|
1081
|
+
const { client, chainId } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(options);
|
|
1031
1082
|
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
1032
1083
|
encryptorSourceRef.current = options.encryptor;
|
|
1033
1084
|
const queryClient = reactQuery.useQueryClient();
|
|
@@ -1036,23 +1087,22 @@ function useRotateMerkleRoot(options) {
|
|
|
1036
1087
|
if (!client) {
|
|
1037
1088
|
throw new chunk67OV5CX2_cjs.MissingClientError("useRotateMerkleRoot", "merkle-airdrop");
|
|
1038
1089
|
}
|
|
1039
|
-
return
|
|
1090
|
+
return chunkDFK5GCJP_cjs.rotateMerkleRoot({
|
|
1040
1091
|
airdrop: client,
|
|
1041
1092
|
recipients: args.recipients,
|
|
1042
|
-
encryptor: () =>
|
|
1043
|
-
...args.submitter !== void 0 ? { submitter: args.submitter } : {},
|
|
1093
|
+
encryptor: () => chunkE4IV4M4E_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
1044
1094
|
...args.account !== void 0 ? { account: args.account } : {}
|
|
1045
1095
|
});
|
|
1046
1096
|
},
|
|
1047
1097
|
onSuccess: () => {
|
|
1048
1098
|
void queryClient.invalidateQueries({
|
|
1049
|
-
queryKey:
|
|
1099
|
+
queryKey: chunkQHDMPT7I_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
|
|
1050
1100
|
});
|
|
1051
1101
|
}
|
|
1052
1102
|
});
|
|
1053
1103
|
}
|
|
1054
1104
|
function useSignClaimAuthorization(options) {
|
|
1055
|
-
const { walletClient, chainId } =
|
|
1105
|
+
const { walletClient, chainId } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1056
1106
|
return reactQuery.useMutation({
|
|
1057
1107
|
mutationFn: async (args) => {
|
|
1058
1108
|
if (!walletClient) {
|
|
@@ -1061,7 +1111,7 @@ function useSignClaimAuthorization(options) {
|
|
|
1061
1111
|
if (chainId === void 0) {
|
|
1062
1112
|
throw new chunk67OV5CX2_cjs.MissingClientError("useSignClaimAuthorization", "airdrop-base");
|
|
1063
1113
|
}
|
|
1064
|
-
return
|
|
1114
|
+
return chunkE4IV4M4E_cjs.signClaimAuthorization({
|
|
1065
1115
|
walletClient,
|
|
1066
1116
|
airdrop: options.address,
|
|
1067
1117
|
chainId,
|
|
@@ -1075,7 +1125,7 @@ function useSignClaimAuthorization(options) {
|
|
|
1075
1125
|
});
|
|
1076
1126
|
}
|
|
1077
1127
|
function useWithdrawGasFee(options) {
|
|
1078
|
-
const { client } =
|
|
1128
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1079
1129
|
return reactQuery.useMutation({
|
|
1080
1130
|
mutationFn: async (args) => {
|
|
1081
1131
|
if (!client) {
|
|
@@ -1086,7 +1136,7 @@ function useWithdrawGasFee(options) {
|
|
|
1086
1136
|
});
|
|
1087
1137
|
}
|
|
1088
1138
|
function useAdminBatchDiscloseBalanceToParties(options) {
|
|
1089
|
-
const { client } =
|
|
1139
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1090
1140
|
return reactQuery.useMutation({
|
|
1091
1141
|
mutationFn: async (args) => {
|
|
1092
1142
|
if (!client) {
|
|
@@ -1097,7 +1147,7 @@ function useAdminBatchDiscloseBalanceToParties(options) {
|
|
|
1097
1147
|
});
|
|
1098
1148
|
}
|
|
1099
1149
|
function useAdminDiscloseBalanceToParty(options) {
|
|
1100
|
-
const { client } =
|
|
1150
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1101
1151
|
return reactQuery.useMutation({
|
|
1102
1152
|
mutationFn: async (args) => {
|
|
1103
1153
|
if (!client) {
|
|
@@ -1108,7 +1158,7 @@ function useAdminDiscloseBalanceToParty(options) {
|
|
|
1108
1158
|
});
|
|
1109
1159
|
}
|
|
1110
1160
|
function useAdminGetCurrentBalance(options) {
|
|
1111
|
-
const { client } =
|
|
1161
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1112
1162
|
return reactQuery.useMutation({
|
|
1113
1163
|
mutationFn: async (args) => {
|
|
1114
1164
|
if (!client) {
|
|
@@ -1118,8 +1168,19 @@ function useAdminGetCurrentBalance(options) {
|
|
|
1118
1168
|
}
|
|
1119
1169
|
});
|
|
1120
1170
|
}
|
|
1171
|
+
function useRefreshComplianceBalance(options) {
|
|
1172
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoAirdropBaseClient(options);
|
|
1173
|
+
return reactQuery.useMutation({
|
|
1174
|
+
mutationFn: async (args) => {
|
|
1175
|
+
if (!client) {
|
|
1176
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRefreshComplianceBalance", "airdrop-base");
|
|
1177
|
+
}
|
|
1178
|
+
return client.refreshComplianceBalance(args ?? {});
|
|
1179
|
+
}
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1121
1182
|
function useAccessEcdsaClaimAmount(options) {
|
|
1122
|
-
const { client } =
|
|
1183
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoEcdsaAirdropClient(options);
|
|
1123
1184
|
return reactQuery.useMutation({
|
|
1124
1185
|
mutationFn: async (args) => {
|
|
1125
1186
|
if (!client) {
|
|
@@ -1130,7 +1191,7 @@ function useAccessEcdsaClaimAmount(options) {
|
|
|
1130
1191
|
});
|
|
1131
1192
|
}
|
|
1132
1193
|
function useAccessMerkleClaimAmount(options) {
|
|
1133
|
-
const { client } =
|
|
1194
|
+
const { client } = chunkQHDMPT7I_cjs.useMemoMerkleAirdropClient(options);
|
|
1134
1195
|
return reactQuery.useMutation({
|
|
1135
1196
|
mutationFn: async (args) => {
|
|
1136
1197
|
if (!client) {
|
|
@@ -1141,121 +1202,149 @@ function useAccessMerkleClaimAmount(options) {
|
|
|
1141
1202
|
});
|
|
1142
1203
|
}
|
|
1143
1204
|
|
|
1205
|
+
Object.defineProperty(exports, "MERKLE_BATCH_LIMIT", {
|
|
1206
|
+
enumerable: true,
|
|
1207
|
+
get: function () { return chunkDFK5GCJP_cjs.MERKLE_BATCH_LIMIT; }
|
|
1208
|
+
});
|
|
1144
1209
|
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
1145
1210
|
enumerable: true,
|
|
1146
|
-
get: function () { return
|
|
1211
|
+
get: function () { return chunkDFK5GCJP_cjs.buildMerkleCampaign; }
|
|
1147
1212
|
});
|
|
1148
1213
|
Object.defineProperty(exports, "buildMerkleTree", {
|
|
1149
1214
|
enumerable: true,
|
|
1150
|
-
get: function () { return
|
|
1215
|
+
get: function () { return chunkDFK5GCJP_cjs.buildMerkleTree; }
|
|
1151
1216
|
});
|
|
1152
1217
|
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
1153
1218
|
enumerable: true,
|
|
1154
|
-
get: function () { return
|
|
1219
|
+
get: function () { return chunkDFK5GCJP_cjs.encryptCampaignAmounts; }
|
|
1155
1220
|
});
|
|
1156
1221
|
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
1157
1222
|
enumerable: true,
|
|
1158
|
-
get: function () { return
|
|
1223
|
+
get: function () { return chunkDFK5GCJP_cjs.grantInstanceRoles; }
|
|
1159
1224
|
});
|
|
1160
1225
|
Object.defineProperty(exports, "leafOf", {
|
|
1161
1226
|
enumerable: true,
|
|
1162
|
-
get: function () { return
|
|
1227
|
+
get: function () { return chunkDFK5GCJP_cjs.leafOf; }
|
|
1163
1228
|
});
|
|
1164
1229
|
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
1165
1230
|
enumerable: true,
|
|
1166
|
-
get: function () { return
|
|
1231
|
+
get: function () { return chunkDFK5GCJP_cjs.planInstanceRoleSplit; }
|
|
1167
1232
|
});
|
|
1168
1233
|
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
1169
1234
|
enumerable: true,
|
|
1170
|
-
get: function () { return
|
|
1235
|
+
get: function () { return chunkDFK5GCJP_cjs.planMerkleCampaign; }
|
|
1171
1236
|
});
|
|
1172
1237
|
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
1173
1238
|
enumerable: true,
|
|
1174
|
-
get: function () { return
|
|
1239
|
+
get: function () { return chunkDFK5GCJP_cjs.rotateMerkleRoot; }
|
|
1175
1240
|
});
|
|
1176
1241
|
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
1177
1242
|
enumerable: true,
|
|
1178
|
-
get: function () { return
|
|
1243
|
+
get: function () { return chunkDFK5GCJP_cjs.validateCampaignRecipients; }
|
|
1179
1244
|
});
|
|
1180
1245
|
Object.defineProperty(exports, "airdropQueryKey", {
|
|
1181
1246
|
enumerable: true,
|
|
1182
|
-
get: function () { return
|
|
1247
|
+
get: function () { return chunkQHDMPT7I_cjs.airdropQueryKey; }
|
|
1183
1248
|
});
|
|
1184
1249
|
Object.defineProperty(exports, "airdropQueryKeyPrefix", {
|
|
1185
1250
|
enumerable: true,
|
|
1186
|
-
get: function () { return
|
|
1251
|
+
get: function () { return chunkQHDMPT7I_cjs.airdropQueryKeyPrefix; }
|
|
1187
1252
|
});
|
|
1188
1253
|
Object.defineProperty(exports, "encryptUint64", {
|
|
1189
1254
|
enumerable: true,
|
|
1190
|
-
get: function () { return
|
|
1255
|
+
get: function () { return chunkE4IV4M4E_cjs.encryptUint64; }
|
|
1191
1256
|
});
|
|
1192
1257
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
1193
1258
|
enumerable: true,
|
|
1194
|
-
get: function () { return
|
|
1259
|
+
get: function () { return chunkE4IV4M4E_cjs.encryptUint64Batch; }
|
|
1195
1260
|
});
|
|
1196
1261
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
1197
1262
|
enumerable: true,
|
|
1198
|
-
get: function () { return
|
|
1263
|
+
get: function () { return chunkE4IV4M4E_cjs.resolveEncryptor; }
|
|
1199
1264
|
});
|
|
1200
1265
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
1201
1266
|
enumerable: true,
|
|
1202
|
-
get: function () { return
|
|
1267
|
+
get: function () { return chunkE4IV4M4E_cjs.signClaimAuthorization; }
|
|
1203
1268
|
});
|
|
1204
1269
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
1205
1270
|
enumerable: true,
|
|
1206
|
-
get: function () { return
|
|
1271
|
+
get: function () { return chunkVHKMWWBA_cjs.AlreadyClaimedError; }
|
|
1207
1272
|
});
|
|
1208
1273
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
1209
1274
|
enumerable: true,
|
|
1210
|
-
get: function () { return
|
|
1275
|
+
get: function () { return chunkVHKMWWBA_cjs.ClaimNotStartedError; }
|
|
1211
1276
|
});
|
|
1212
1277
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
1213
1278
|
enumerable: true,
|
|
1214
|
-
get: function () { return
|
|
1279
|
+
get: function () { return chunkVHKMWWBA_cjs.ClaimWindowClosedError; }
|
|
1280
|
+
});
|
|
1281
|
+
Object.defineProperty(exports, "ClawbackRequiresPauseError", {
|
|
1282
|
+
enumerable: true,
|
|
1283
|
+
get: function () { return chunkVHKMWWBA_cjs.ClawbackRequiresPauseError; }
|
|
1284
|
+
});
|
|
1285
|
+
Object.defineProperty(exports, "CreateCommitmentMismatchError", {
|
|
1286
|
+
enumerable: true,
|
|
1287
|
+
get: function () { return chunkVHKMWWBA_cjs.CreateCommitmentMismatchError; }
|
|
1215
1288
|
});
|
|
1216
1289
|
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
1217
1290
|
enumerable: true,
|
|
1218
|
-
get: function () { return
|
|
1291
|
+
get: function () { return chunkVHKMWWBA_cjs.DedupIdConsumedError; }
|
|
1219
1292
|
});
|
|
1220
1293
|
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
1221
1294
|
enumerable: true,
|
|
1222
|
-
get: function () { return
|
|
1295
|
+
get: function () { return chunkVHKMWWBA_cjs.FeeCollectorSelfAdministeredError; }
|
|
1296
|
+
});
|
|
1297
|
+
Object.defineProperty(exports, "GasFeeNotAcceptedError", {
|
|
1298
|
+
enumerable: true,
|
|
1299
|
+
get: function () { return chunkVHKMWWBA_cjs.GasFeeNotAcceptedError; }
|
|
1223
1300
|
});
|
|
1224
1301
|
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
1225
1302
|
enumerable: true,
|
|
1226
|
-
get: function () { return
|
|
1303
|
+
get: function () { return chunkVHKMWWBA_cjs.MerkleUupsUnsupportedError; }
|
|
1304
|
+
});
|
|
1305
|
+
Object.defineProperty(exports, "NativeRescueRequiresZeroFeeError", {
|
|
1306
|
+
enumerable: true,
|
|
1307
|
+
get: function () { return chunkVHKMWWBA_cjs.NativeRescueRequiresZeroFeeError; }
|
|
1227
1308
|
});
|
|
1228
1309
|
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
1229
1310
|
enumerable: true,
|
|
1230
|
-
get: function () { return
|
|
1311
|
+
get: function () { return chunkVHKMWWBA_cjs.NonStockWrapperError; }
|
|
1231
1312
|
});
|
|
1232
1313
|
Object.defineProperty(exports, "PredictionDriftError", {
|
|
1233
1314
|
enumerable: true,
|
|
1234
|
-
get: function () { return
|
|
1315
|
+
get: function () { return chunkVHKMWWBA_cjs.PredictionDriftError; }
|
|
1235
1316
|
});
|
|
1236
1317
|
Object.defineProperty(exports, "SaltCollisionError", {
|
|
1237
1318
|
enumerable: true,
|
|
1238
|
-
get: function () { return
|
|
1319
|
+
get: function () { return chunkVHKMWWBA_cjs.SaltCollisionError; }
|
|
1239
1320
|
});
|
|
1240
1321
|
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
1241
1322
|
enumerable: true,
|
|
1242
|
-
get: function () { return
|
|
1323
|
+
get: function () { return chunkVHKMWWBA_cjs.SignatureExpiredError; }
|
|
1324
|
+
});
|
|
1325
|
+
Object.defineProperty(exports, "UINT96_MAX", {
|
|
1326
|
+
enumerable: true,
|
|
1327
|
+
get: function () { return chunkVHKMWWBA_cjs.UINT96_MAX; }
|
|
1243
1328
|
});
|
|
1244
1329
|
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
1245
1330
|
enumerable: true,
|
|
1246
|
-
get: function () { return
|
|
1331
|
+
get: function () { return chunkVHKMWWBA_cjs.UnauthorizedRedirectError; }
|
|
1332
|
+
});
|
|
1333
|
+
Object.defineProperty(exports, "UnrecognisedAirdropError", {
|
|
1334
|
+
enumerable: true,
|
|
1335
|
+
get: function () { return chunkVHKMWWBA_cjs.UnrecognisedAirdropError; }
|
|
1247
1336
|
});
|
|
1248
1337
|
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
1249
1338
|
enumerable: true,
|
|
1250
|
-
get: function () { return
|
|
1339
|
+
get: function () { return chunkVHKMWWBA_cjs.UpgradeabilityNotAllowedError; }
|
|
1251
1340
|
});
|
|
1252
1341
|
Object.defineProperty(exports, "preflightClaim", {
|
|
1253
1342
|
enumerable: true,
|
|
1254
|
-
get: function () { return
|
|
1343
|
+
get: function () { return chunkVHKMWWBA_cjs.preflightClaim; }
|
|
1255
1344
|
});
|
|
1256
1345
|
Object.defineProperty(exports, "preflightCreate", {
|
|
1257
1346
|
enumerable: true,
|
|
1258
|
-
get: function () { return
|
|
1347
|
+
get: function () { return chunkVHKMWWBA_cjs.preflightCreate; }
|
|
1259
1348
|
});
|
|
1260
1349
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
1261
1350
|
enumerable: true,
|
|
@@ -1438,6 +1527,7 @@ exports.useCreateAndFundEcdsaAirdrop = useCreateAndFundEcdsaAirdrop;
|
|
|
1438
1527
|
exports.useCreateAndFundMerkleAirdrop = useCreateAndFundMerkleAirdrop;
|
|
1439
1528
|
exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
|
|
1440
1529
|
exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
|
|
1530
|
+
exports.useDedupMode = useDedupMode;
|
|
1441
1531
|
exports.useDiscloseHandleToParty = useDiscloseHandleToParty;
|
|
1442
1532
|
exports.useEcdsaClaim = useEcdsaClaim;
|
|
1443
1533
|
exports.useEcdsaClaimAndUnwrap = useEcdsaClaimAndUnwrap;
|
|
@@ -1451,6 +1541,7 @@ exports.useFactoryRegistry = useFactoryRegistry;
|
|
|
1451
1541
|
exports.useFundAirdrop = useFundAirdrop;
|
|
1452
1542
|
exports.useGrantInstanceRoles = useGrantInstanceRoles;
|
|
1453
1543
|
exports.useIsActiveDelegate = useIsActiveDelegate;
|
|
1544
|
+
exports.useIsAirdrop = useIsAirdrop;
|
|
1454
1545
|
exports.useIsMerkleRootMutable = useIsMerkleRootMutable;
|
|
1455
1546
|
exports.useIsSignatureValid = useIsSignatureValid;
|
|
1456
1547
|
exports.useMerkleClaim = useMerkleClaim;
|
|
@@ -1459,11 +1550,16 @@ exports.useMerkleRoot = useMerkleRoot;
|
|
|
1459
1550
|
exports.usePlanMerkleCampaign = usePlanMerkleCampaign;
|
|
1460
1551
|
exports.usePreflightClaim = usePreflightClaim;
|
|
1461
1552
|
exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
|
|
1553
|
+
exports.useRefreshComplianceBalance = useRefreshComplianceBalance;
|
|
1462
1554
|
exports.useRescueERC20 = useRescueERC20;
|
|
1555
|
+
exports.useRescueNativeToken = useRescueNativeToken;
|
|
1463
1556
|
exports.useRescueOtherConfidentialToken = useRescueOtherConfidentialToken;
|
|
1557
|
+
exports.useResolveGasFee = useResolveGasFee;
|
|
1464
1558
|
exports.useRevokeComplianceDelegate = useRevokeComplianceDelegate;
|
|
1465
1559
|
exports.useRotateMerkleRoot = useRotateMerkleRoot;
|
|
1466
1560
|
exports.useSetMerkleRoot = useSetMerkleRoot;
|
|
1467
1561
|
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
1562
|
+
exports.useTokenOf = useTokenOf;
|
|
1563
|
+
exports.useUnwrapRequest = useUnwrapRequest;
|
|
1468
1564
|
exports.useWithdrawConfidential = useWithdrawConfidential;
|
|
1469
1565
|
exports.useWithdrawGasFee = useWithdrawGasFee;
|