@tokenops/sdk 1.0.0 → 1.1.1
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/README.md +102 -18
- package/dist/{chunk-HTOMTEA3.cjs → chunk-23F7JIK5.cjs} +2 -2
- package/dist/{chunk-ECT3NL2L.js → chunk-3PQ2RFPC.js} +3 -3
- package/dist/{chunk-OLDGMKW2.cjs → chunk-3ZRHDTEX.cjs} +33 -0
- package/dist/chunk-5KHIQG7Y.cjs +2180 -0
- package/dist/{chunk-T5LVV3KY.cjs → chunk-FPQBFIUW.cjs} +3 -3
- package/dist/{chunk-QIHZVLIK.js → chunk-FXCW7LVB.js} +1 -1
- package/dist/{chunk-K6MFFDBJ.cjs → chunk-G7G75C46.cjs} +6 -6
- package/dist/{chunk-72YGZEQE.js → chunk-IR5AK5U5.js} +6 -8
- package/dist/{chunk-CMRETRZO.js → chunk-ITQBDRWX.js} +1 -1
- package/dist/{chunk-ZHFLRKFY.js → chunk-JJ4R5QXF.js} +1 -1
- package/dist/{chunk-COPFW5Z4.js → chunk-M7V2EDPB.js} +30 -1
- package/dist/{chunk-UOG4PJL5.js → chunk-OQZAZIAS.js} +8 -10
- package/dist/{chunk-SUOG3BQS.cjs → chunk-OYLZEEHF.cjs} +1 -2
- package/dist/chunk-QE7ZONJ2.js +2171 -0
- package/dist/{chunk-62DF53UQ.cjs → chunk-SAGJIEQK.cjs} +7 -9
- package/dist/{chunk-JFR5J4FL.cjs → chunk-SEKC7H5Y.cjs} +8 -8
- package/dist/{chunk-6ECAHP5O.cjs → chunk-SYHXDHWX.cjs} +9 -11
- package/dist/{chunk-QCA7O2Q5.cjs → chunk-W7JHOK7G.cjs} +4 -4
- package/dist/{chunk-52TC6BF7.js → chunk-X56UVEXS.js} +1 -2
- package/dist/{chunk-HGXNRR25.js → chunk-XWDVPV42.js} +2 -2
- package/dist/core/addresses.d.ts +22 -0
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/fhe/operators.d.ts +1 -1
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +3 -3
- package/dist/fhe-airdrop/advanced/index.cjs +5 -5
- package/dist/fhe-airdrop/advanced/index.d.cts +2 -2
- package/dist/fhe-airdrop/advanced/index.d.ts +2 -2
- package/dist/fhe-airdrop/advanced/index.js +3 -3
- package/dist/fhe-airdrop/advanced/react/index.cjs +8 -8
- package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.js +4 -4
- package/dist/fhe-airdrop/factory.d.ts +8 -10
- package/dist/fhe-airdrop/index.cjs +9 -9
- package/dist/fhe-airdrop/index.js +2 -2
- package/dist/fhe-airdrop/react/index.cjs +69 -69
- package/dist/fhe-airdrop/react/index.js +4 -4
- package/dist/fhe-disperse/index.cjs +19 -19
- package/dist/fhe-disperse/index.js +2 -2
- package/dist/fhe-disperse/react/index.cjs +20 -20
- package/dist/fhe-disperse/react/index.js +3 -3
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +2 -2
- package/dist/fhe-vesting/advanced/factory-advanced.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.cjs +5 -5
- package/dist/fhe-vesting/advanced/index.d.cts +2 -2
- package/dist/fhe-vesting/advanced/index.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.js +3 -3
- package/dist/fhe-vesting/advanced/react/index.cjs +8 -8
- package/dist/fhe-vesting/advanced/react/index.d.cts +1 -1
- package/dist/fhe-vesting/advanced/react/index.d.ts +1 -1
- package/dist/fhe-vesting/advanced/react/index.js +5 -5
- package/dist/fhe-vesting/factory.d.ts +6 -8
- package/dist/fhe-vesting/index.cjs +25 -25
- package/dist/fhe-vesting/index.js +3 -3
- package/dist/fhe-vesting/manager.d.ts +1 -2
- package/dist/fhe-vesting/react/index.cjs +126 -126
- package/dist/fhe-vesting/react/index.js +4 -4
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +1 -1
- package/dist/fhe-vesting/types.d.ts +0 -2
- package/dist/index.cjs +27 -11
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/abis/confidential-test-token.d.ts +1039 -0
- package/dist/testnet-faucet/abis/index.d.ts +2 -0
- package/dist/testnet-faucet/abis/test-token.d.ts +253 -0
- package/dist/testnet-faucet/errors.d.ts +21 -0
- package/dist/testnet-faucet/faucet.d.ts +173 -0
- package/dist/testnet-faucet/index.cjs +208 -0
- package/dist/testnet-faucet/index.d.cts +8 -0
- package/dist/testnet-faucet/index.d.ts +8 -0
- package/dist/testnet-faucet/index.js +7 -0
- package/dist/testnet-faucet/react/_shared.d.ts +61 -0
- package/dist/testnet-faucet/react/index.cjs +379 -0
- package/dist/testnet-faucet/react/index.d.cts +38 -0
- package/dist/testnet-faucet/react/index.d.ts +38 -0
- package/dist/testnet-faucet/react/index.js +219 -0
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +24 -0
- package/dist/testnet-faucet/react/useFaucetDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useFaucetMetadata.d.ts +14 -0
- package/dist/testnet-faucet/react/useFaucetRate.d.ts +11 -0
- package/dist/testnet-faucet/react/useInferredTotalSupply.d.ts +11 -0
- package/dist/testnet-faucet/react/useMaxTotalSupply.d.ts +10 -0
- package/dist/testnet-faucet/react/useMintConfidential.d.ts +35 -0
- package/dist/testnet-faucet/react/useMintUnderlying.d.ts +31 -0
- package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +19 -0
- package/dist/testnet-faucet/react/useUnderlyingDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useUnderlyingTokenAddress.d.ts +12 -0
- package/dist/testnet-faucet/types.d.ts +92 -0
- package/dist/testnet-faucet/validate.d.ts +44 -0
- package/package.json +77 -29
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkG7G75C46_cjs = require('../../chunk-G7G75C46.cjs');
|
|
4
4
|
var chunk5SA2HF2W_cjs = require('../../chunk-5SA2HF2W.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkSYHXDHWX_cjs = require('../../chunk-SYHXDHWX.cjs');
|
|
6
6
|
require('../../chunk-Q7ARQSUH.cjs');
|
|
7
7
|
require('../../chunk-VDXVNZCO.cjs');
|
|
8
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-3ZRHDTEX.cjs');
|
|
9
9
|
require('../../chunk-CQIPRNS7.cjs');
|
|
10
10
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
11
11
|
require('../../chunk-66IHPTOK.cjs');
|
|
@@ -14,27 +14,27 @@ var reactQuery = require('@tanstack/react-query');
|
|
|
14
14
|
var wagmi = require('wagmi');
|
|
15
15
|
|
|
16
16
|
function useConfidentialAirdropFactoryImplementation(options = {}) {
|
|
17
|
-
const { client, chainId, resolvedAddress } =
|
|
17
|
+
const { client, chainId, resolvedAddress } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
18
18
|
return reactQuery.useQuery({
|
|
19
|
-
queryKey:
|
|
19
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
20
20
|
queryFn: () => client.implementation(),
|
|
21
21
|
enabled: !!client,
|
|
22
22
|
staleTime: 0
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
function useFactoryDefaultGasFee(options = {}) {
|
|
26
|
-
const { client, chainId, resolvedAddress } =
|
|
26
|
+
const { client, chainId, resolvedAddress } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
27
27
|
return reactQuery.useQuery({
|
|
28
|
-
queryKey:
|
|
28
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
29
29
|
queryFn: () => client.defaultGasFee(),
|
|
30
30
|
enabled: !!client,
|
|
31
31
|
staleTime: 0
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
function useFactoryFeeCollector(options = {}) {
|
|
35
|
-
const { client, chainId, resolvedAddress } =
|
|
35
|
+
const { client, chainId, resolvedAddress } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
36
36
|
return reactQuery.useQuery({
|
|
37
|
-
queryKey:
|
|
37
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
38
38
|
queryFn: () => client.feeCollector(),
|
|
39
39
|
enabled: !!client,
|
|
40
40
|
staleTime: 0
|
|
@@ -42,9 +42,9 @@ function useFactoryFeeCollector(options = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
function useFactoryCustomFee(args = {}) {
|
|
44
44
|
const { creator, ...base } = args;
|
|
45
|
-
const { client, chainId, resolvedAddress } =
|
|
45
|
+
const { client, chainId, resolvedAddress } = chunkG7G75C46_cjs.useMemoFactoryClient(base);
|
|
46
46
|
return reactQuery.useQuery({
|
|
47
|
-
queryKey:
|
|
47
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
48
48
|
queryFn: () => client.getCustomFee(creator),
|
|
49
49
|
enabled: !!client && !!creator,
|
|
50
50
|
staleTime: 0
|
|
@@ -52,16 +52,16 @@ function useFactoryCustomFee(args = {}) {
|
|
|
52
52
|
}
|
|
53
53
|
function useFactoryInitCodeHash(args = {}) {
|
|
54
54
|
const { params, gasFee, ...base } = args;
|
|
55
|
-
const { client, chainId, resolvedAddress } =
|
|
55
|
+
const { client, chainId, resolvedAddress } = chunkG7G75C46_cjs.useMemoFactoryClient(base);
|
|
56
56
|
return reactQuery.useQuery({
|
|
57
|
-
queryKey:
|
|
57
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("factory:getInitCodeHash", chainId, resolvedAddress, params, gasFee),
|
|
58
58
|
queryFn: () => client.getInitCodeHash({ params, gasFee }),
|
|
59
59
|
enabled: !!client && !!params && gasFee !== void 0,
|
|
60
60
|
staleTime: 0
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
function useCreateConfidentialAirdropAndGetAddress(options = {}) {
|
|
64
|
-
const { client, resolutionError } =
|
|
64
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
65
65
|
return reactQuery.useMutation({
|
|
66
66
|
mutationFn: async (args) => {
|
|
67
67
|
if (!client) {
|
|
@@ -72,7 +72,7 @@ function useCreateConfidentialAirdropAndGetAddress(options = {}) {
|
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
function useCreateConfidentialAirdrop(options = {}) {
|
|
75
|
-
const { client, resolutionError } =
|
|
75
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
76
76
|
return reactQuery.useMutation({
|
|
77
77
|
mutationFn: async (args) => {
|
|
78
78
|
if (!client) {
|
|
@@ -83,7 +83,7 @@ function useCreateConfidentialAirdrop(options = {}) {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
function useCreateAndFundConfidentialAirdrop(options = {}) {
|
|
86
|
-
const { client, resolutionError } =
|
|
86
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
87
87
|
return reactQuery.useMutation({
|
|
88
88
|
mutationFn: async (args) => {
|
|
89
89
|
if (!client) {
|
|
@@ -94,7 +94,7 @@ function useCreateAndFundConfidentialAirdrop(options = {}) {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
|
|
97
|
-
const { client, resolutionError } =
|
|
97
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
98
98
|
return reactQuery.useMutation({
|
|
99
99
|
mutationFn: async (args) => {
|
|
100
100
|
if (!client) {
|
|
@@ -105,7 +105,7 @@ function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
function useFundConfidentialAirdrop(options = {}) {
|
|
108
|
-
const { client, resolutionError } =
|
|
108
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
109
109
|
return reactQuery.useMutation({
|
|
110
110
|
mutationFn: async (args) => {
|
|
111
111
|
if (!client) {
|
|
@@ -116,7 +116,7 @@ function useFundConfidentialAirdrop(options = {}) {
|
|
|
116
116
|
});
|
|
117
117
|
}
|
|
118
118
|
function useSetFeeCollector(options = {}) {
|
|
119
|
-
const { client, resolutionError } =
|
|
119
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
120
120
|
return reactQuery.useMutation({
|
|
121
121
|
mutationFn: async ({ newFeeCollector, account }) => {
|
|
122
122
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
@@ -125,7 +125,7 @@ function useSetFeeCollector(options = {}) {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
function useSetDefaultGasFee(options = {}) {
|
|
128
|
-
const { client, resolutionError } =
|
|
128
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
129
129
|
return reactQuery.useMutation({
|
|
130
130
|
mutationFn: async ({ newGasFee, account }) => {
|
|
131
131
|
if (!client)
|
|
@@ -135,7 +135,7 @@ function useSetDefaultGasFee(options = {}) {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
function useSetCustomFee(options = {}) {
|
|
138
|
-
const { client, resolutionError } =
|
|
138
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
139
139
|
return reactQuery.useMutation({
|
|
140
140
|
mutationFn: async ({ campaignCreator, gasFee, account }) => {
|
|
141
141
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
@@ -144,7 +144,7 @@ function useSetCustomFee(options = {}) {
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
function useDisableCustomFee(options = {}) {
|
|
147
|
-
const { client, resolutionError } =
|
|
147
|
+
const { client, resolutionError } = chunkG7G75C46_cjs.useMemoFactoryClient(options);
|
|
148
148
|
return reactQuery.useMutation({
|
|
149
149
|
mutationFn: async ({ campaignCreator, account }) => {
|
|
150
150
|
if (!client)
|
|
@@ -154,108 +154,108 @@ function useDisableCustomFee(options = {}) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
function useAirdropToken(options) {
|
|
157
|
-
const { client, chainId } =
|
|
157
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
158
158
|
return reactQuery.useQuery({
|
|
159
|
-
queryKey:
|
|
159
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:TOKEN", chainId, options.address),
|
|
160
160
|
queryFn: () => client.token(),
|
|
161
161
|
enabled: !!client,
|
|
162
162
|
staleTime: 0
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function useAirdropGasFee(options) {
|
|
166
|
-
const { client, chainId } =
|
|
166
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
167
167
|
return reactQuery.useQuery({
|
|
168
|
-
queryKey:
|
|
168
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:GAS_FEE", chainId, options.address),
|
|
169
169
|
queryFn: () => client.gasFee(),
|
|
170
170
|
enabled: !!client,
|
|
171
171
|
staleTime: 0
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function useAirdropStartTime(options) {
|
|
175
|
-
const { client, chainId } =
|
|
175
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
176
176
|
return reactQuery.useQuery({
|
|
177
|
-
queryKey:
|
|
177
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:START_TIME", chainId, options.address),
|
|
178
178
|
queryFn: () => client.startTime(),
|
|
179
179
|
enabled: !!client,
|
|
180
180
|
staleTime: 0
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
183
|
function useAirdropCanExtendClaimWindow(options) {
|
|
184
|
-
const { client, chainId } =
|
|
184
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
185
185
|
return reactQuery.useQuery({
|
|
186
|
-
queryKey:
|
|
186
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:CAN_EXTEND_CLAIM_WINDOW", chainId, options.address),
|
|
187
187
|
queryFn: () => client.canExtendClaimWindow(),
|
|
188
188
|
enabled: !!client,
|
|
189
189
|
staleTime: 0
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
function useAirdropEndTime(options) {
|
|
193
|
-
const { client, chainId } =
|
|
193
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
194
194
|
return reactQuery.useQuery({
|
|
195
|
-
queryKey:
|
|
195
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:endTime", chainId, options.address),
|
|
196
196
|
queryFn: () => client.endTime(),
|
|
197
197
|
enabled: !!client,
|
|
198
198
|
staleTime: 0
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
function useAirdropIsPaused(options) {
|
|
202
|
-
const { client, chainId } =
|
|
202
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
203
203
|
return reactQuery.useQuery({
|
|
204
|
-
queryKey:
|
|
204
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:isPaused", chainId, options.address),
|
|
205
205
|
queryFn: () => client.isPaused(),
|
|
206
206
|
enabled: !!client,
|
|
207
207
|
staleTime: 0
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
210
|
function useAirdropDeploymentBlockNumber(options) {
|
|
211
|
-
const { client, chainId } =
|
|
211
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
212
212
|
return reactQuery.useQuery({
|
|
213
|
-
queryKey:
|
|
213
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:deploymentBlockNumber", chainId, options.address),
|
|
214
214
|
queryFn: () => client.deploymentBlockNumber(),
|
|
215
215
|
enabled: !!client,
|
|
216
216
|
staleTime: 0
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
function useAirdropDomainSeparator(options) {
|
|
220
|
-
const { client, chainId } =
|
|
220
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
221
221
|
return reactQuery.useQuery({
|
|
222
|
-
queryKey:
|
|
222
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:DOMAIN_SEPARATOR", chainId, options.address),
|
|
223
223
|
queryFn: () => client.domainSeparator(),
|
|
224
224
|
enabled: !!client,
|
|
225
225
|
staleTime: 0
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
228
|
function useAirdropClaimTypehash(options) {
|
|
229
|
-
const { client, chainId } =
|
|
229
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
230
230
|
return reactQuery.useQuery({
|
|
231
|
-
queryKey:
|
|
231
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:CLAIM_TYPEHASH", chainId, options.address),
|
|
232
232
|
queryFn: () => client.claimTypehash(),
|
|
233
233
|
enabled: !!client,
|
|
234
234
|
staleTime: 0
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
function useAirdropIsClaimWindowActive(options) {
|
|
238
|
-
const { client, chainId } =
|
|
238
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
239
239
|
return reactQuery.useQuery({
|
|
240
|
-
queryKey:
|
|
240
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:isClaimWindowActive", chainId, options.address),
|
|
241
241
|
queryFn: () => client.isClaimWindowActive(),
|
|
242
242
|
enabled: !!client,
|
|
243
243
|
staleTime: 0
|
|
244
244
|
});
|
|
245
245
|
}
|
|
246
246
|
function useAirdropHasClaimStarted(options) {
|
|
247
|
-
const { client, chainId } =
|
|
247
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
248
248
|
return reactQuery.useQuery({
|
|
249
|
-
queryKey:
|
|
249
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:hasClaimStarted", chainId, options.address),
|
|
250
250
|
queryFn: () => client.hasClaimStarted(),
|
|
251
251
|
enabled: !!client,
|
|
252
252
|
staleTime: 0
|
|
253
253
|
});
|
|
254
254
|
}
|
|
255
255
|
function useAirdropHasClaimEnded(options) {
|
|
256
|
-
const { client, chainId } =
|
|
256
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
257
257
|
return reactQuery.useQuery({
|
|
258
|
-
queryKey:
|
|
258
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:hasClaimEnded", chainId, options.address),
|
|
259
259
|
queryFn: () => client.hasClaimEnded(),
|
|
260
260
|
enabled: !!client,
|
|
261
261
|
staleTime: 0
|
|
@@ -263,9 +263,9 @@ function useAirdropHasClaimEnded(options) {
|
|
|
263
263
|
}
|
|
264
264
|
function useAirdropClaimedSignatures(args) {
|
|
265
265
|
const { signatureHash, ...base } = args;
|
|
266
|
-
const { client, chainId } =
|
|
266
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(base);
|
|
267
267
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
268
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:claimedSignatures", chainId, base.address, signatureHash),
|
|
269
269
|
queryFn: () => client.claimedSignatures(signatureHash),
|
|
270
270
|
enabled: !!client && !!signatureHash,
|
|
271
271
|
staleTime: 0
|
|
@@ -273,9 +273,9 @@ function useAirdropClaimedSignatures(args) {
|
|
|
273
273
|
}
|
|
274
274
|
function useAirdropIsSignatureClaimed(args) {
|
|
275
275
|
const { user, encryptedAmountHandle, ...base } = args;
|
|
276
|
-
const { client, chainId } =
|
|
276
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(base);
|
|
277
277
|
return reactQuery.useQuery({
|
|
278
|
-
queryKey:
|
|
278
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey(
|
|
279
279
|
"airdrop:isSignatureClaimed",
|
|
280
280
|
chainId,
|
|
281
281
|
base.address,
|
|
@@ -289,11 +289,11 @@ function useAirdropIsSignatureClaimed(args) {
|
|
|
289
289
|
}
|
|
290
290
|
function useAirdropIsSignatureValid(args) {
|
|
291
291
|
const { encryptedAmountHandle, signature, caller, ...base } = args;
|
|
292
|
-
const { client, chainId } =
|
|
292
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(base);
|
|
293
293
|
const { address: connectedAddress } = wagmi.useAccount();
|
|
294
294
|
const resolvedCaller = caller ?? connectedAddress;
|
|
295
295
|
return reactQuery.useQuery({
|
|
296
|
-
queryKey:
|
|
296
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey(
|
|
297
297
|
"airdrop:isSignatureValid",
|
|
298
298
|
chainId,
|
|
299
299
|
base.address,
|
|
@@ -312,16 +312,16 @@ function useAirdropIsSignatureValid(args) {
|
|
|
312
312
|
}
|
|
313
313
|
function useAirdropHasRole(args) {
|
|
314
314
|
const { role, account, ...base } = args;
|
|
315
|
-
const { client, chainId } =
|
|
315
|
+
const { client, chainId } = chunkG7G75C46_cjs.useMemoAirdropClient(base);
|
|
316
316
|
return reactQuery.useQuery({
|
|
317
|
-
queryKey:
|
|
317
|
+
queryKey: chunkG7G75C46_cjs.buildQueryKey("airdrop:hasRole", chainId, base.address, role, account),
|
|
318
318
|
queryFn: () => client.hasRole(role, account),
|
|
319
319
|
enabled: !!client && !!role && !!account,
|
|
320
320
|
staleTime: 0
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
function useClaim(options) {
|
|
324
|
-
const { client } =
|
|
324
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
325
325
|
return reactQuery.useMutation({
|
|
326
326
|
mutationFn: async (args) => {
|
|
327
327
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useClaim", "airdrop");
|
|
@@ -330,7 +330,7 @@ function useClaim(options) {
|
|
|
330
330
|
});
|
|
331
331
|
}
|
|
332
332
|
function useGetClaimAmount(options) {
|
|
333
|
-
const { client } =
|
|
333
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
334
334
|
return reactQuery.useMutation({
|
|
335
335
|
mutationFn: async (args) => {
|
|
336
336
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetClaimAmount", "airdrop");
|
|
@@ -339,7 +339,7 @@ function useGetClaimAmount(options) {
|
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
341
|
function useWithdraw(options) {
|
|
342
|
-
const { client } =
|
|
342
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
343
343
|
return reactQuery.useMutation({
|
|
344
344
|
mutationFn: async ({ recipient, account }) => {
|
|
345
345
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdraw", "airdrop");
|
|
@@ -348,7 +348,7 @@ function useWithdraw(options) {
|
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
350
|
function useSetPaused(options) {
|
|
351
|
-
const { client } =
|
|
351
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
352
352
|
return reactQuery.useMutation({
|
|
353
353
|
mutationFn: async ({ paused, account }) => {
|
|
354
354
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useSetPaused", "airdrop");
|
|
@@ -357,7 +357,7 @@ function useSetPaused(options) {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
function useExtendClaimWindow(options) {
|
|
360
|
-
const { client } =
|
|
360
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
361
361
|
return reactQuery.useMutation({
|
|
362
362
|
mutationFn: async ({ newEndTime, account }) => {
|
|
363
363
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
|
|
@@ -366,7 +366,7 @@ function useExtendClaimWindow(options) {
|
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
function useWithdrawOtherToken(options) {
|
|
369
|
-
const { client } =
|
|
369
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
370
370
|
return reactQuery.useMutation({
|
|
371
371
|
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
372
372
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherToken", "airdrop");
|
|
@@ -375,7 +375,7 @@ function useWithdrawOtherToken(options) {
|
|
|
375
375
|
});
|
|
376
376
|
}
|
|
377
377
|
function useWithdrawOtherConfidentialToken(options) {
|
|
378
|
-
const { client } =
|
|
378
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
379
379
|
return reactQuery.useMutation({
|
|
380
380
|
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
381
381
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "airdrop");
|
|
@@ -384,7 +384,7 @@ function useWithdrawOtherConfidentialToken(options) {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
function useAirdropWithdrawGasFee(options) {
|
|
387
|
-
const { client } =
|
|
387
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
388
388
|
return reactQuery.useMutation({
|
|
389
389
|
mutationFn: async ({ recipient, amount, account }) => {
|
|
390
390
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropWithdrawGasFee", "airdrop");
|
|
@@ -393,7 +393,7 @@ function useAirdropWithdrawGasFee(options) {
|
|
|
393
393
|
});
|
|
394
394
|
}
|
|
395
395
|
function useAirdropGrantRole(options) {
|
|
396
|
-
const { client } =
|
|
396
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
397
397
|
return reactQuery.useMutation({
|
|
398
398
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
399
399
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropGrantRole", "airdrop");
|
|
@@ -402,7 +402,7 @@ function useAirdropGrantRole(options) {
|
|
|
402
402
|
});
|
|
403
403
|
}
|
|
404
404
|
function useAirdropRevokeRole(options) {
|
|
405
|
-
const { client } =
|
|
405
|
+
const { client } = chunkG7G75C46_cjs.useMemoAirdropClient(options);
|
|
406
406
|
return reactQuery.useMutation({
|
|
407
407
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
408
408
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropRevokeRole", "airdrop");
|
|
@@ -417,7 +417,7 @@ function useSignClaimAuthorization(options = {}) {
|
|
|
417
417
|
if (!walletClient) {
|
|
418
418
|
throw new chunk56UI7LUR_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
419
419
|
}
|
|
420
|
-
return
|
|
420
|
+
return chunkSYHXDHWX_cjs.signClaimAuthorization({
|
|
421
421
|
walletClient,
|
|
422
422
|
airdropAddress: args.airdropAddress,
|
|
423
423
|
recipient: args.recipient,
|
|
@@ -441,19 +441,19 @@ Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
|
441
441
|
});
|
|
442
442
|
Object.defineProperty(exports, "encryptUint64", {
|
|
443
443
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
444
|
+
get: function () { return chunkSYHXDHWX_cjs.encryptUint64; }
|
|
445
445
|
});
|
|
446
446
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
447
447
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
448
|
+
get: function () { return chunkSYHXDHWX_cjs.encryptUint64Batch; }
|
|
449
449
|
});
|
|
450
450
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
451
451
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
452
|
+
get: function () { return chunkSYHXDHWX_cjs.resolveEncryptor; }
|
|
453
453
|
});
|
|
454
454
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
455
455
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
456
|
+
get: function () { return chunkSYHXDHWX_cjs.signClaimAuthorization; }
|
|
457
457
|
});
|
|
458
458
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
459
459
|
enumerable: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { useMemoFactoryClient, buildQueryKey, useMemoAirdropClient } from '../../chunk-
|
|
1
|
+
import { useMemoFactoryClient, buildQueryKey, useMemoAirdropClient } from '../../chunk-XWDVPV42.js';
|
|
2
2
|
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from '../../chunk-XXXDQSHE.js';
|
|
3
|
-
import { signClaimAuthorization } from '../../chunk-
|
|
4
|
-
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization } from '../../chunk-
|
|
3
|
+
import { signClaimAuthorization } from '../../chunk-OQZAZIAS.js';
|
|
4
|
+
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization } from '../../chunk-OQZAZIAS.js';
|
|
5
5
|
import '../../chunk-FYQ2UW4T.js';
|
|
6
6
|
import '../../chunk-JFLEEXKP.js';
|
|
7
|
-
import '../../chunk-
|
|
7
|
+
import '../../chunk-M7V2EDPB.js';
|
|
8
8
|
import '../../chunk-BE2AIZ3K.js';
|
|
9
9
|
import '../../chunk-Q2GP5UDC.js';
|
|
10
10
|
import '../../chunk-KWFFIJYX.js';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk23F7JIK5_cjs = require('../chunk-23F7JIK5.cjs');
|
|
4
4
|
var chunkITQ7WKVC_cjs = require('../chunk-ITQ7WKVC.cjs');
|
|
5
5
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
6
6
|
require('../chunk-NS44KBV5.cjs');
|
|
7
7
|
require('../chunk-Q7ARQSUH.cjs');
|
|
8
8
|
require('../chunk-VDXVNZCO.cjs');
|
|
9
|
-
require('../chunk-
|
|
9
|
+
require('../chunk-3ZRHDTEX.cjs');
|
|
10
10
|
require('../chunk-CQIPRNS7.cjs');
|
|
11
11
|
require('../chunk-VJKZWYYJ.cjs');
|
|
12
12
|
require('../chunk-66IHPTOK.cjs');
|
|
@@ -16,71 +16,71 @@ var chunk56UI7LUR_cjs = require('../chunk-56UI7LUR.cjs');
|
|
|
16
16
|
|
|
17
17
|
Object.defineProperty(exports, "AlreadyRegisteredError", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunk23F7JIK5_cjs.AlreadyRegisteredError; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "ConfidentialDisperseClient", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunk23F7JIK5_cjs.ConfidentialDisperseClient; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunk23F7JIK5_cjs.DEFAULT_ADMIN_ROLE; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunk23F7JIK5_cjs.DisperseEncryptedReserveNotGrantedError; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunk23F7JIK5_cjs.DisperseSubwalletNotFoundError; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunk23F7JIK5_cjs.FEE_COLLECTOR_ROLE; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunk23F7JIK5_cjs.FEE_MANAGER_ROLE; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "NotRegisteredError", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunk23F7JIK5_cjs.NotRegisteredError; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "PAUSER_ROLE", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunk23F7JIK5_cjs.PAUSER_ROLE; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "WITHDRAWER_ROLE", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunk23F7JIK5_cjs.WITHDRAWER_ROLE; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "computeSubtotals", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunk23F7JIK5_cjs.computeSubtotals; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "createConfidentialDisperseClient", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunk23F7JIK5_cjs.createConfidentialDisperseClient; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "disperseConfidentialAbi", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunk23F7JIK5_cjs.disperseConfidentialAbi; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "disperseWalletAbi", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunk23F7JIK5_cjs.disperseWalletAbi; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "encryptUint64", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunk23F7JIK5_cjs.encryptUint64; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunk23F7JIK5_cjs.encryptUint64Batch; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunk23F7JIK5_cjs.resolveEncryptor; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "ERC7984_OPERATOR_MAX_DEADLINE", {
|
|
86
86
|
enumerable: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { AlreadyRegisteredError, ConfidentialDisperseClient, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, WITHDRAWER_ROLE, computeSubtotals, createConfidentialDisperseClient, disperseConfidentialAbi, disperseWalletAbi, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-
|
|
1
|
+
export { AlreadyRegisteredError, ConfidentialDisperseClient, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, WITHDRAWER_ROLE, computeSubtotals, createConfidentialDisperseClient, disperseConfidentialAbi, disperseWalletAbi, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-FXCW7LVB.js';
|
|
2
2
|
export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator } from '../chunk-WRCUDSUJ.js';
|
|
3
3
|
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
4
4
|
import '../chunk-ZXCOJY2Z.js';
|
|
5
5
|
import '../chunk-FYQ2UW4T.js';
|
|
6
6
|
import '../chunk-JFLEEXKP.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-M7V2EDPB.js';
|
|
8
8
|
import '../chunk-BE2AIZ3K.js';
|
|
9
9
|
import '../chunk-Q2GP5UDC.js';
|
|
10
10
|
import '../chunk-KWFFIJYX.js';
|