@tokenops/sdk 2.0.0-alpha.2 → 2.0.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -3
- package/README.md +11 -5
- package/dist/{chunk-PZZK3O3S.cjs → chunk-4AWQJQXY.cjs} +391 -43
- package/dist/{chunk-SPLNGUFF.js → chunk-4IB4IY5Y.js} +1 -1
- package/dist/{chunk-A4DCEE33.js → chunk-6HCT4QIX.js} +11 -10
- package/dist/{chunk-MM5BV5CS.cjs → chunk-6XOAYDC6.cjs} +4 -4
- package/dist/{chunk-FEDX7B6T.cjs → chunk-AHU2HMNE.cjs} +3 -3
- package/dist/{chunk-IGO5XSPS.js → chunk-BPIVVCSQ.js} +2 -2
- package/dist/{chunk-X7WBPCEU.js → chunk-BXX5TETM.js} +375 -27
- package/dist/{chunk-GADGBQJO.js → chunk-GCJFAY4X.js} +2 -2
- package/dist/{chunk-IUKKNJ2R.cjs → chunk-GKYZQJGP.cjs} +7 -7
- package/dist/{chunk-3YHBO2DL.cjs → chunk-IEKTGJ4J.cjs} +2 -2
- package/dist/{chunk-UHHMVBLU.cjs → chunk-JVNJSDQ4.cjs} +2 -2
- package/dist/{chunk-VW356KR3.js → chunk-LEYYG4RF.js} +126 -3
- package/dist/{chunk-PYYSB5ZN.js → chunk-NGU4JYIR.js} +1 -1
- package/dist/{chunk-FT5H2Q7Y.cjs → chunk-PG3WXT3K.cjs} +11 -10
- package/dist/{chunk-44YJPMQC.js → chunk-PK6Q6J5F.js} +1 -1
- package/dist/{chunk-EBLBPUPI.cjs → chunk-TND5NDV7.cjs} +18 -10
- package/dist/{chunk-EYDA6Q6C.js → chunk-U3TBQRT7.js} +10 -2
- package/dist/{chunk-WJMEBBU7.js → chunk-WRWRA4TN.js} +1 -1
- package/dist/{chunk-FHWSBGWE.cjs → chunk-YABHXJNH.cjs} +5 -5
- package/dist/{chunk-AREQJHKA.cjs → chunk-YTIYTV4K.cjs} +129 -2
- package/dist/core/addresses.d.ts +4 -4
- package/dist/core/errors.d.ts +1 -1
- package/dist/fhe-airdrop/abis/airdrop-base.d.ts +19 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +19 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +113 -0
- package/dist/fhe-airdrop/abis/merkle.d.ts +19 -0
- package/dist/fhe-airdrop/advanced/index.cjs +4 -4
- package/dist/fhe-airdrop/advanced/index.js +1 -1
- package/dist/fhe-airdrop/advanced/react/index.cjs +110 -80
- 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 +34 -5
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +2 -1
- 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/useSetCustomFee.d.ts +2 -1
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +5 -3
- package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +33 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +47 -8
- package/dist/fhe-airdrop/constants.d.ts +9 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +13 -0
- package/dist/fhe-airdrop/errors.d.ts +59 -0
- package/dist/fhe-airdrop/factory.d.ts +62 -22
- package/dist/fhe-airdrop/guards.d.ts +87 -2
- package/dist/fhe-airdrop/index.cjs +67 -55
- package/dist/fhe-airdrop/index.d.cts +3 -3
- package/dist/fhe-airdrop/index.d.ts +3 -3
- package/dist/fhe-airdrop/index.js +4 -4
- package/dist/fhe-airdrop/react/index.cjs +237 -177
- package/dist/fhe-airdrop/react/index.d.cts +4 -1
- package/dist/fhe-airdrop/react/index.d.ts +4 -1
- package/dist/fhe-airdrop/react/index.js +72 -15
- package/dist/fhe-airdrop/react/keys.d.ts +8 -0
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +11 -4
- package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -0
- package/dist/fhe-airdrop/react/useRefreshComplianceBalance.d.ts +36 -0
- package/dist/fhe-airdrop/react/useResolveGasFee.d.ts +30 -0
- package/dist/fhe-airdrop/types.d.ts +13 -0
- package/dist/fhe-disperse/index.cjs +21 -21
- package/dist/fhe-disperse/index.js +2 -2
- package/dist/fhe-disperse/react/index.cjs +22 -22
- package/dist/fhe-disperse/react/index.js +3 -3
- package/dist/fhe-vesting/advanced/index.cjs +5 -5
- package/dist/fhe-vesting/advanced/index.js +3 -3
- package/dist/fhe-vesting/advanced/react/index.cjs +7 -7
- package/dist/fhe-vesting/advanced/react/index.js +4 -4
- package/dist/fhe-vesting/index.cjs +8 -8
- package/dist/fhe-vesting/index.js +2 -2
- package/dist/fhe-vesting/react/index.cjs +114 -114
- package/dist/fhe-vesting/react/index.js +3 -3
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/index.cjs +14 -14
- package/dist/testnet-faucet/index.js +2 -2
- package/dist/testnet-faucet/react/index.cjs +8 -8
- package/dist/testnet-faucet/react/index.js +3 -3
- package/package.json +1 -1
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var chunk7AFPOE7N_cjs = require('../../chunk-7AFPOE7N.cjs');
|
|
4
4
|
require('../../chunk-ZQUE2B3Q.cjs');
|
|
5
5
|
require('../../chunk-KFRDLKMA.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkYABHXJNH_cjs = require('../../chunk-YABHXJNH.cjs');
|
|
7
7
|
var chunkWJLECC22_cjs = require('../../chunk-WJLECC22.cjs');
|
|
8
8
|
require('../../chunk-TEBM66WA.cjs');
|
|
9
9
|
var chunk3QHNYEQD_cjs = require('../../chunk-3QHNYEQD.cjs');
|
|
10
10
|
require('../../chunk-FAXIIH5R.cjs');
|
|
11
11
|
require('../../chunk-FWHYQZ5E.cjs');
|
|
12
|
-
var
|
|
12
|
+
var chunkJVNJSDQ4_cjs = require('../../chunk-JVNJSDQ4.cjs');
|
|
13
13
|
require('../../chunk-UG5RKLU2.cjs');
|
|
14
14
|
require('../../chunk-MVDQMV25.cjs');
|
|
15
|
-
require('../../chunk-
|
|
15
|
+
require('../../chunk-PG3WXT3K.cjs');
|
|
16
16
|
require('../../chunk-JK4XMMKM.cjs');
|
|
17
17
|
require('../../chunk-66IHPTOK.cjs');
|
|
18
18
|
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
@@ -20,45 +20,45 @@ require('../../chunk-VJKZWYYJ.cjs');
|
|
|
20
20
|
var reactQuery = require('@tanstack/react-query');
|
|
21
21
|
|
|
22
22
|
function useConfidentialVestingFactoryImplementation(options = {}) {
|
|
23
|
-
const { client, chainId, resolvedAddress } =
|
|
23
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
24
24
|
return reactQuery.useQuery({
|
|
25
|
-
queryKey:
|
|
25
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
26
26
|
queryFn: () => client.implementation(),
|
|
27
27
|
enabled: !!client,
|
|
28
28
|
staleTime: 0
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
function useFactoryDefaultGasFee(options = {}) {
|
|
32
|
-
const { client, chainId, resolvedAddress } =
|
|
32
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
33
33
|
return reactQuery.useQuery({
|
|
34
|
-
queryKey:
|
|
34
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
35
35
|
queryFn: () => client.defaultGasFee(),
|
|
36
36
|
enabled: !!client,
|
|
37
37
|
staleTime: 0
|
|
38
38
|
});
|
|
39
39
|
}
|
|
40
40
|
function useFactoryDefaultTokenFee(options = {}) {
|
|
41
|
-
const { client, chainId, resolvedAddress } =
|
|
41
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
42
42
|
return reactQuery.useQuery({
|
|
43
|
-
queryKey:
|
|
43
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:defaultTokenFee", chainId, resolvedAddress),
|
|
44
44
|
queryFn: () => client.defaultTokenFee(),
|
|
45
45
|
enabled: !!client,
|
|
46
46
|
staleTime: 0
|
|
47
47
|
});
|
|
48
48
|
}
|
|
49
49
|
function useFactoryDefaultFeeType(options = {}) {
|
|
50
|
-
const { client, chainId, resolvedAddress } =
|
|
50
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
51
51
|
return reactQuery.useQuery({
|
|
52
|
-
queryKey:
|
|
52
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:defaultFeeType", chainId, resolvedAddress),
|
|
53
53
|
queryFn: () => client.defaultFeeType(),
|
|
54
54
|
enabled: !!client,
|
|
55
55
|
staleTime: 0
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
58
|
function useFactoryFeeCollector(options = {}) {
|
|
59
|
-
const { client, chainId, resolvedAddress } =
|
|
59
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
60
60
|
return reactQuery.useQuery({
|
|
61
|
-
queryKey:
|
|
61
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
62
62
|
queryFn: () => client.feeCollector(),
|
|
63
63
|
enabled: !!client,
|
|
64
64
|
staleTime: 0
|
|
@@ -66,9 +66,9 @@ function useFactoryFeeCollector(options = {}) {
|
|
|
66
66
|
}
|
|
67
67
|
function useFactoryCustomFee(args = {}) {
|
|
68
68
|
const { creator, ...base } = args;
|
|
69
|
-
const { client, chainId, resolvedAddress } =
|
|
69
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(base);
|
|
70
70
|
return reactQuery.useQuery({
|
|
71
|
-
queryKey:
|
|
71
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
72
72
|
queryFn: () => client.getCustomFee(creator),
|
|
73
73
|
enabled: !!client && !!creator,
|
|
74
74
|
staleTime: 0
|
|
@@ -76,9 +76,9 @@ function useFactoryCustomFee(args = {}) {
|
|
|
76
76
|
}
|
|
77
77
|
function useFactoryInitCodeHash(args = {}) {
|
|
78
78
|
const { token, deployer, splitEnabled, pausableEnabled, ...base } = args;
|
|
79
|
-
const { client, chainId, resolvedAddress } =
|
|
79
|
+
const { client, chainId, resolvedAddress } = chunkYABHXJNH_cjs.useMemoFactoryClient(base);
|
|
80
80
|
return reactQuery.useQuery({
|
|
81
|
-
queryKey:
|
|
81
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey(
|
|
82
82
|
"factory:getInitCodeHash",
|
|
83
83
|
chainId,
|
|
84
84
|
resolvedAddress,
|
|
@@ -98,7 +98,7 @@ function useFactoryInitCodeHash(args = {}) {
|
|
|
98
98
|
});
|
|
99
99
|
}
|
|
100
100
|
function useCreateManagerAndGetAddress(options = {}) {
|
|
101
|
-
const { client, resolutionError } =
|
|
101
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
102
102
|
return reactQuery.useMutation({
|
|
103
103
|
mutationFn: async (args) => {
|
|
104
104
|
if (!client) {
|
|
@@ -109,7 +109,7 @@ function useCreateManagerAndGetAddress(options = {}) {
|
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
function useCreateManager(options = {}) {
|
|
112
|
-
const { client, resolutionError } =
|
|
112
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
113
113
|
return reactQuery.useMutation({
|
|
114
114
|
mutationFn: async (args) => {
|
|
115
115
|
if (!client) {
|
|
@@ -120,7 +120,7 @@ function useCreateManager(options = {}) {
|
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
122
|
function useSetDefaultGasFee(options = {}) {
|
|
123
|
-
const { client, resolutionError } =
|
|
123
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
124
124
|
return reactQuery.useMutation({
|
|
125
125
|
mutationFn: async ({ fee, account }) => {
|
|
126
126
|
if (!client)
|
|
@@ -130,7 +130,7 @@ function useSetDefaultGasFee(options = {}) {
|
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
function useSetDefaultTokenFee(options = {}) {
|
|
133
|
-
const { client, resolutionError } =
|
|
133
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
134
134
|
return reactQuery.useMutation({
|
|
135
135
|
mutationFn: async ({ feeBps, account }) => {
|
|
136
136
|
if (!client)
|
|
@@ -140,7 +140,7 @@ function useSetDefaultTokenFee(options = {}) {
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
function useSetDefaultFeeType(options = {}) {
|
|
143
|
-
const { client, resolutionError } =
|
|
143
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
144
144
|
return reactQuery.useMutation({
|
|
145
145
|
mutationFn: async ({ feeType, account }) => {
|
|
146
146
|
if (!client)
|
|
@@ -150,7 +150,7 @@ function useSetDefaultFeeType(options = {}) {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function useResetGasFee(options = {}) {
|
|
153
|
-
const { client, resolutionError } =
|
|
153
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
154
154
|
return reactQuery.useMutation({
|
|
155
155
|
mutationFn: async (args) => {
|
|
156
156
|
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useResetGasFee", "factory");
|
|
@@ -159,7 +159,7 @@ function useResetGasFee(options = {}) {
|
|
|
159
159
|
});
|
|
160
160
|
}
|
|
161
161
|
function useResetTokenFee(options = {}) {
|
|
162
|
-
const { client, resolutionError } =
|
|
162
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
163
163
|
return reactQuery.useMutation({
|
|
164
164
|
mutationFn: async (args) => {
|
|
165
165
|
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useResetTokenFee", "factory");
|
|
@@ -168,7 +168,7 @@ function useResetTokenFee(options = {}) {
|
|
|
168
168
|
});
|
|
169
169
|
}
|
|
170
170
|
function useSetCustomFee(options = {}) {
|
|
171
|
-
const { client, resolutionError } =
|
|
171
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
172
172
|
return reactQuery.useMutation({
|
|
173
173
|
mutationFn: async ({ creator, feeType, gasFee, tokenFee, account }) => {
|
|
174
174
|
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
@@ -177,7 +177,7 @@ function useSetCustomFee(options = {}) {
|
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
179
|
function useDisableCustomFee(options = {}) {
|
|
180
|
-
const { client, resolutionError } =
|
|
180
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
181
181
|
return reactQuery.useMutation({
|
|
182
182
|
mutationFn: async ({ creator, account }) => {
|
|
183
183
|
if (!client)
|
|
@@ -187,7 +187,7 @@ function useDisableCustomFee(options = {}) {
|
|
|
187
187
|
});
|
|
188
188
|
}
|
|
189
189
|
function useSetFeeCollector(options = {}) {
|
|
190
|
-
const { client, resolutionError } =
|
|
190
|
+
const { client, resolutionError } = chunkYABHXJNH_cjs.useMemoFactoryClient(options);
|
|
191
191
|
return reactQuery.useMutation({
|
|
192
192
|
mutationFn: async ({ newCollector, account }) => {
|
|
193
193
|
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
@@ -196,90 +196,90 @@ function useSetFeeCollector(options = {}) {
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
function useManagerToken(options) {
|
|
199
|
-
const { client, chainId } =
|
|
199
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
200
200
|
return reactQuery.useQuery({
|
|
201
|
-
queryKey:
|
|
201
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:TOKEN_ADDRESS", chainId, options.address),
|
|
202
202
|
queryFn: () => client.token(),
|
|
203
203
|
enabled: !!client,
|
|
204
204
|
staleTime: 0
|
|
205
205
|
});
|
|
206
206
|
}
|
|
207
207
|
function useManagerFeeType(options) {
|
|
208
|
-
const { client, chainId } =
|
|
208
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
209
209
|
return reactQuery.useQuery({
|
|
210
|
-
queryKey:
|
|
210
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:FEE_TYPE", chainId, options.address),
|
|
211
211
|
queryFn: () => client.feeType(),
|
|
212
212
|
enabled: !!client,
|
|
213
213
|
staleTime: 0
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
function useManagerFee(options) {
|
|
217
|
-
const { client, chainId } =
|
|
217
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
218
218
|
return reactQuery.useQuery({
|
|
219
|
-
queryKey:
|
|
219
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:FEE", chainId, options.address),
|
|
220
220
|
queryFn: () => client.fee(),
|
|
221
221
|
enabled: !!client,
|
|
222
222
|
staleTime: 0
|
|
223
223
|
});
|
|
224
224
|
}
|
|
225
225
|
function useManagerFeeInfo(options) {
|
|
226
|
-
const { client, chainId } =
|
|
226
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
227
227
|
return reactQuery.useQuery({
|
|
228
|
-
queryKey:
|
|
228
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getFeeInfo", chainId, options.address),
|
|
229
229
|
queryFn: () => client.getFeeInfo(),
|
|
230
230
|
enabled: !!client,
|
|
231
231
|
staleTime: 0
|
|
232
232
|
});
|
|
233
233
|
}
|
|
234
234
|
function useManagerDeploymentBlockNumber(options) {
|
|
235
|
-
const { client, chainId } =
|
|
235
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
236
236
|
return reactQuery.useQuery({
|
|
237
|
-
queryKey:
|
|
237
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:DEPLOYMENT_BLOCK_NUMBER", chainId, options.address),
|
|
238
238
|
queryFn: () => client.deploymentBlockNumber(),
|
|
239
239
|
enabled: !!client,
|
|
240
240
|
staleTime: 0
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
function useManagerIsSplitEnabled(options) {
|
|
244
|
-
const { client, chainId } =
|
|
244
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
245
245
|
return reactQuery.useQuery({
|
|
246
|
-
queryKey:
|
|
246
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:isSplitEnabled", chainId, options.address),
|
|
247
247
|
queryFn: () => client.isSplitEnabled(),
|
|
248
248
|
enabled: !!client,
|
|
249
249
|
staleTime: 0
|
|
250
250
|
});
|
|
251
251
|
}
|
|
252
252
|
function useManagerIsPausable(options) {
|
|
253
|
-
const { client, chainId } =
|
|
253
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
254
254
|
return reactQuery.useQuery({
|
|
255
|
-
queryKey:
|
|
255
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:isPausable", chainId, options.address),
|
|
256
256
|
queryFn: () => client.isPausable(),
|
|
257
257
|
enabled: !!client,
|
|
258
258
|
staleTime: 0
|
|
259
259
|
});
|
|
260
260
|
}
|
|
261
261
|
function useManagerPaused(options) {
|
|
262
|
-
const { client, chainId } =
|
|
262
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
263
263
|
return reactQuery.useQuery({
|
|
264
|
-
queryKey:
|
|
264
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:paused", chainId, options.address),
|
|
265
265
|
queryFn: () => client.paused(),
|
|
266
266
|
enabled: !!client,
|
|
267
267
|
staleTime: 0
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
function useManagerMaxBatchSize(options) {
|
|
271
|
-
const { client, chainId } =
|
|
271
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
272
272
|
return reactQuery.useQuery({
|
|
273
|
-
queryKey:
|
|
273
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:maxBatchSize", chainId, options.address),
|
|
274
274
|
queryFn: () => client.maxBatchSize(),
|
|
275
275
|
enabled: !!client,
|
|
276
276
|
staleTime: 0
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
function useManagerMaxRevokeBatchSize(options) {
|
|
280
|
-
const { client, chainId } =
|
|
280
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
281
281
|
return reactQuery.useQuery({
|
|
282
|
-
queryKey:
|
|
282
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:maxRevokeBatchSize", chainId, options.address),
|
|
283
283
|
queryFn: () => client.maxRevokeBatchSize(),
|
|
284
284
|
enabled: !!client,
|
|
285
285
|
staleTime: 0
|
|
@@ -287,27 +287,27 @@ function useManagerMaxRevokeBatchSize(options) {
|
|
|
287
287
|
}
|
|
288
288
|
function useVestingInfo(args) {
|
|
289
289
|
const { vestingId, ...base } = args;
|
|
290
|
-
const { client, chainId } =
|
|
290
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
291
291
|
return reactQuery.useQuery({
|
|
292
|
-
queryKey:
|
|
292
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getVestingInfo", chainId, base.address, vestingId),
|
|
293
293
|
queryFn: () => client.getVestingInfo(vestingId),
|
|
294
294
|
enabled: !!client && !!vestingId,
|
|
295
295
|
staleTime: 0
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
function useAllRecipients(options) {
|
|
299
|
-
const { client, chainId } =
|
|
299
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
300
300
|
return reactQuery.useQuery({
|
|
301
|
-
queryKey:
|
|
301
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getAllRecipients", chainId, options.address),
|
|
302
302
|
queryFn: () => client.getAllRecipients(),
|
|
303
303
|
enabled: !!client,
|
|
304
304
|
staleTime: 0
|
|
305
305
|
});
|
|
306
306
|
}
|
|
307
307
|
function useAllRecipientsLength(options) {
|
|
308
|
-
const { client, chainId } =
|
|
308
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
309
309
|
return reactQuery.useQuery({
|
|
310
|
-
queryKey:
|
|
310
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getAllRecipientsLength", chainId, options.address),
|
|
311
311
|
queryFn: () => client.getAllRecipientsLength(),
|
|
312
312
|
enabled: !!client,
|
|
313
313
|
staleTime: 0
|
|
@@ -315,9 +315,9 @@ function useAllRecipientsLength(options) {
|
|
|
315
315
|
}
|
|
316
316
|
function useAllRecipientsSliced(args) {
|
|
317
317
|
const { start, end, ...base } = args;
|
|
318
|
-
const { client, chainId } =
|
|
318
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
319
319
|
return reactQuery.useQuery({
|
|
320
|
-
queryKey:
|
|
320
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getAllRecipientsSliced", chainId, base.address, start, end),
|
|
321
321
|
queryFn: () => client.getAllRecipientsSliced(start, end),
|
|
322
322
|
enabled: !!client && start !== void 0 && end !== void 0,
|
|
323
323
|
staleTime: 0
|
|
@@ -325,9 +325,9 @@ function useAllRecipientsSliced(args) {
|
|
|
325
325
|
}
|
|
326
326
|
function useIsRecipient(args) {
|
|
327
327
|
const { account, ...base } = args;
|
|
328
|
-
const { client, chainId } =
|
|
328
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
329
329
|
return reactQuery.useQuery({
|
|
330
|
-
queryKey:
|
|
330
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:isRecipient", chainId, base.address, account),
|
|
331
331
|
queryFn: () => client.isRecipient(account),
|
|
332
332
|
enabled: !!client && !!account,
|
|
333
333
|
staleTime: 0
|
|
@@ -335,9 +335,9 @@ function useIsRecipient(args) {
|
|
|
335
335
|
}
|
|
336
336
|
function usePreflightCreateVesting(args) {
|
|
337
337
|
const { params, creator, ...base } = args;
|
|
338
|
-
const { client, chainId } =
|
|
338
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
339
339
|
return reactQuery.useQuery({
|
|
340
|
-
queryKey:
|
|
340
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey(
|
|
341
341
|
"manager:preflightCreateVesting",
|
|
342
342
|
chainId,
|
|
343
343
|
base.address,
|
|
@@ -351,9 +351,9 @@ function usePreflightCreateVesting(args) {
|
|
|
351
351
|
}
|
|
352
352
|
function useRecipientVestings(args) {
|
|
353
353
|
const { recipient, ...base } = args;
|
|
354
|
-
const { client, chainId } =
|
|
354
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
355
355
|
return reactQuery.useQuery({
|
|
356
|
-
queryKey:
|
|
356
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getAllRecipientVestings", chainId, base.address, recipient),
|
|
357
357
|
queryFn: () => client.getAllRecipientVestings(recipient),
|
|
358
358
|
enabled: !!client && !!recipient,
|
|
359
359
|
staleTime: 0
|
|
@@ -361,9 +361,9 @@ function useRecipientVestings(args) {
|
|
|
361
361
|
}
|
|
362
362
|
function useRecipientVestingsLength(args) {
|
|
363
363
|
const { recipient, ...base } = args;
|
|
364
|
-
const { client, chainId } =
|
|
364
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
365
365
|
return reactQuery.useQuery({
|
|
366
|
-
queryKey:
|
|
366
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey(
|
|
367
367
|
"manager:getAllRecipientVestingsLength",
|
|
368
368
|
chainId,
|
|
369
369
|
base.address,
|
|
@@ -376,9 +376,9 @@ function useRecipientVestingsLength(args) {
|
|
|
376
376
|
}
|
|
377
377
|
function useRecipientVestingsSliced(args) {
|
|
378
378
|
const { recipient, start, end, ...base } = args;
|
|
379
|
-
const { client, chainId } =
|
|
379
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
380
380
|
return reactQuery.useQuery({
|
|
381
|
-
queryKey:
|
|
381
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey(
|
|
382
382
|
"manager:getAllRecipientVestingsSliced",
|
|
383
383
|
chainId,
|
|
384
384
|
base.address,
|
|
@@ -393,9 +393,9 @@ function useRecipientVestingsSliced(args) {
|
|
|
393
393
|
}
|
|
394
394
|
function usePendingVestingTransfer(args) {
|
|
395
395
|
const { vestingId, ...base } = args;
|
|
396
|
-
const { client, chainId } =
|
|
396
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
397
397
|
return reactQuery.useQuery({
|
|
398
|
-
queryKey:
|
|
398
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:getPendingVestingTransfer", chainId, base.address, vestingId),
|
|
399
399
|
queryFn: () => client.getPendingVestingTransfer(vestingId),
|
|
400
400
|
enabled: !!client && !!vestingId,
|
|
401
401
|
staleTime: 0
|
|
@@ -403,25 +403,25 @@ function usePendingVestingTransfer(args) {
|
|
|
403
403
|
}
|
|
404
404
|
function useHasRole(args) {
|
|
405
405
|
const { role, account, ...base } = args;
|
|
406
|
-
const { client, chainId } =
|
|
406
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(base);
|
|
407
407
|
return reactQuery.useQuery({
|
|
408
|
-
queryKey:
|
|
408
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:hasRole", chainId, base.address, role, account),
|
|
409
409
|
queryFn: () => client.hasRole(role, account),
|
|
410
410
|
enabled: !!client && !!role && !!account,
|
|
411
411
|
staleTime: 0
|
|
412
412
|
});
|
|
413
413
|
}
|
|
414
414
|
function useRoleConstants(options) {
|
|
415
|
-
const { client, chainId } =
|
|
415
|
+
const { client, chainId } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
416
416
|
return reactQuery.useQuery({
|
|
417
|
-
queryKey:
|
|
417
|
+
queryKey: chunkYABHXJNH_cjs.buildQueryKey("manager:roleConstants", chainId, options.address),
|
|
418
418
|
queryFn: () => client.roleConstants(),
|
|
419
419
|
enabled: !!client,
|
|
420
420
|
staleTime: 0
|
|
421
421
|
});
|
|
422
422
|
}
|
|
423
423
|
function useAccessVestedAmount(options) {
|
|
424
|
-
const { client } =
|
|
424
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
425
425
|
return reactQuery.useMutation({
|
|
426
426
|
mutationFn: async (args) => {
|
|
427
427
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessVestedAmount", "manager");
|
|
@@ -431,7 +431,7 @@ function useAccessVestedAmount(options) {
|
|
|
431
431
|
}
|
|
432
432
|
var useGetVestedAmount = useAccessVestedAmount;
|
|
433
433
|
function useAccessClaimableAmount(options) {
|
|
434
|
-
const { client } =
|
|
434
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
435
435
|
return reactQuery.useMutation({
|
|
436
436
|
mutationFn: async (args) => {
|
|
437
437
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessClaimableAmount", "manager");
|
|
@@ -441,7 +441,7 @@ function useAccessClaimableAmount(options) {
|
|
|
441
441
|
}
|
|
442
442
|
var useGetClaimableAmount = useAccessClaimableAmount;
|
|
443
443
|
function useAccessTotalAllocation(options) {
|
|
444
|
-
const { client } =
|
|
444
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
445
445
|
return reactQuery.useMutation({
|
|
446
446
|
mutationFn: async (args) => {
|
|
447
447
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessTotalAllocation", "manager");
|
|
@@ -451,7 +451,7 @@ function useAccessTotalAllocation(options) {
|
|
|
451
451
|
}
|
|
452
452
|
var useGetTotalAllocation = useAccessTotalAllocation;
|
|
453
453
|
function useAccessSettledAmount(options) {
|
|
454
|
-
const { client } =
|
|
454
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
455
455
|
return reactQuery.useMutation({
|
|
456
456
|
mutationFn: async (args) => {
|
|
457
457
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessSettledAmount", "manager");
|
|
@@ -461,7 +461,7 @@ function useAccessSettledAmount(options) {
|
|
|
461
461
|
}
|
|
462
462
|
var useGetSettledAmount = useAccessSettledAmount;
|
|
463
463
|
function useAdminGetVestedAmount(options) {
|
|
464
|
-
const { client } =
|
|
464
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
465
465
|
return reactQuery.useMutation({
|
|
466
466
|
mutationFn: async (args) => {
|
|
467
467
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetVestedAmount", "manager");
|
|
@@ -470,7 +470,7 @@ function useAdminGetVestedAmount(options) {
|
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
472
|
function useAdminGetClaimableAmount(options) {
|
|
473
|
-
const { client } =
|
|
473
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
474
474
|
return reactQuery.useMutation({
|
|
475
475
|
mutationFn: async (args) => {
|
|
476
476
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetClaimableAmount", "manager");
|
|
@@ -479,7 +479,7 @@ function useAdminGetClaimableAmount(options) {
|
|
|
479
479
|
});
|
|
480
480
|
}
|
|
481
481
|
function useAdminGetTotalAllocation(options) {
|
|
482
|
-
const { client } =
|
|
482
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
483
483
|
return reactQuery.useMutation({
|
|
484
484
|
mutationFn: async (args) => {
|
|
485
485
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetTotalAllocation", "manager");
|
|
@@ -488,7 +488,7 @@ function useAdminGetTotalAllocation(options) {
|
|
|
488
488
|
});
|
|
489
489
|
}
|
|
490
490
|
function useAdminGetSettledAmount(options) {
|
|
491
|
-
const { client } =
|
|
491
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
492
492
|
return reactQuery.useMutation({
|
|
493
493
|
mutationFn: async (args) => {
|
|
494
494
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetSettledAmount", "manager");
|
|
@@ -497,7 +497,7 @@ function useAdminGetSettledAmount(options) {
|
|
|
497
497
|
});
|
|
498
498
|
}
|
|
499
499
|
function useAdminGetTokenBalance(options) {
|
|
500
|
-
const { client } =
|
|
500
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
501
501
|
return reactQuery.useMutation({
|
|
502
502
|
mutationFn: async (args) => {
|
|
503
503
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetTokenBalance", "manager");
|
|
@@ -506,7 +506,7 @@ function useAdminGetTokenBalance(options) {
|
|
|
506
506
|
});
|
|
507
507
|
}
|
|
508
508
|
function useCreateVesting(options) {
|
|
509
|
-
const { client } =
|
|
509
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
510
510
|
return reactQuery.useMutation({
|
|
511
511
|
mutationFn: async (args) => {
|
|
512
512
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useCreateVesting", "manager");
|
|
@@ -515,7 +515,7 @@ function useCreateVesting(options) {
|
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
function useBatchCreateVesting(options) {
|
|
518
|
-
const { client } =
|
|
518
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
519
519
|
return reactQuery.useMutation({
|
|
520
520
|
mutationFn: async (args) => {
|
|
521
521
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchCreateVesting", "manager");
|
|
@@ -524,7 +524,7 @@ function useBatchCreateVesting(options) {
|
|
|
524
524
|
});
|
|
525
525
|
}
|
|
526
526
|
function useClaim(options) {
|
|
527
|
-
const { client } =
|
|
527
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
528
528
|
return reactQuery.useMutation({
|
|
529
529
|
mutationFn: async (args) => {
|
|
530
530
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useClaim", "manager");
|
|
@@ -533,7 +533,7 @@ function useClaim(options) {
|
|
|
533
533
|
});
|
|
534
534
|
}
|
|
535
535
|
function useAdminClaim(options) {
|
|
536
|
-
const { client } =
|
|
536
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
537
537
|
return reactQuery.useMutation({
|
|
538
538
|
mutationFn: async (args) => {
|
|
539
539
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminClaim", "manager");
|
|
@@ -542,7 +542,7 @@ function useAdminClaim(options) {
|
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
function usePartialClaim(options) {
|
|
545
|
-
const { client } =
|
|
545
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
546
546
|
return reactQuery.useMutation({
|
|
547
547
|
mutationFn: async (args) => {
|
|
548
548
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("usePartialClaim", "manager");
|
|
@@ -551,7 +551,7 @@ function usePartialClaim(options) {
|
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
553
|
function useAdminPartialClaim(options) {
|
|
554
|
-
const { client } =
|
|
554
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
555
555
|
return reactQuery.useMutation({
|
|
556
556
|
mutationFn: async (args) => {
|
|
557
557
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminPartialClaim", "manager");
|
|
@@ -560,7 +560,7 @@ function useAdminPartialClaim(options) {
|
|
|
560
560
|
});
|
|
561
561
|
}
|
|
562
562
|
function useRevokeVesting(options) {
|
|
563
|
-
const { client } =
|
|
563
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
564
564
|
return reactQuery.useMutation({
|
|
565
565
|
mutationFn: async ({ vestingId, account }) => {
|
|
566
566
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeVesting", "manager");
|
|
@@ -569,7 +569,7 @@ function useRevokeVesting(options) {
|
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
571
|
function useBatchRevokeVesting(options) {
|
|
572
|
-
const { client } =
|
|
572
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
573
573
|
return reactQuery.useMutation({
|
|
574
574
|
mutationFn: async ({ vestingIds, account }) => {
|
|
575
575
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchRevokeVesting", "manager");
|
|
@@ -578,7 +578,7 @@ function useBatchRevokeVesting(options) {
|
|
|
578
578
|
});
|
|
579
579
|
}
|
|
580
580
|
function useSplitVesting(options) {
|
|
581
|
-
const { client } =
|
|
581
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
582
582
|
return reactQuery.useMutation({
|
|
583
583
|
mutationFn: async (args) => {
|
|
584
584
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSplitVesting", "manager");
|
|
@@ -587,7 +587,7 @@ function useSplitVesting(options) {
|
|
|
587
587
|
});
|
|
588
588
|
}
|
|
589
589
|
function useInitiateVestingTransfer(options) {
|
|
590
|
-
const { client } =
|
|
590
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
591
591
|
return reactQuery.useMutation({
|
|
592
592
|
mutationFn: async (args) => {
|
|
593
593
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useInitiateVestingTransfer", "manager");
|
|
@@ -596,7 +596,7 @@ function useInitiateVestingTransfer(options) {
|
|
|
596
596
|
});
|
|
597
597
|
}
|
|
598
598
|
function useAcceptVestingTransfer(options) {
|
|
599
|
-
const { client } =
|
|
599
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
600
600
|
return reactQuery.useMutation({
|
|
601
601
|
mutationFn: async ({ vestingId, account }) => {
|
|
602
602
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAcceptVestingTransfer", "manager");
|
|
@@ -605,7 +605,7 @@ function useAcceptVestingTransfer(options) {
|
|
|
605
605
|
});
|
|
606
606
|
}
|
|
607
607
|
function useCancelVestingTransfer(options) {
|
|
608
|
-
const { client } =
|
|
608
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
609
609
|
return reactQuery.useMutation({
|
|
610
610
|
mutationFn: async ({ vestingId, account }) => {
|
|
611
611
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useCancelVestingTransfer", "manager");
|
|
@@ -614,7 +614,7 @@ function useCancelVestingTransfer(options) {
|
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
616
|
function useDirectVestingTransfer(options) {
|
|
617
|
-
const { client } =
|
|
617
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
618
618
|
return reactQuery.useMutation({
|
|
619
619
|
mutationFn: async ({ vestingId, newOwner, account }) => {
|
|
620
620
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDirectVestingTransfer", "manager");
|
|
@@ -623,7 +623,7 @@ function useDirectVestingTransfer(options) {
|
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
625
|
function useDiscloseToParty(options) {
|
|
626
|
-
const { client } =
|
|
626
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
627
627
|
return reactQuery.useMutation({
|
|
628
628
|
mutationFn: async (args) => {
|
|
629
629
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseToParty", "manager");
|
|
@@ -632,7 +632,7 @@ function useDiscloseToParty(options) {
|
|
|
632
632
|
});
|
|
633
633
|
}
|
|
634
634
|
function useBatchDiscloseToParty(options) {
|
|
635
|
-
const { client } =
|
|
635
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
636
636
|
return reactQuery.useMutation({
|
|
637
637
|
mutationFn: async (args) => {
|
|
638
638
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseToParty", "manager");
|
|
@@ -641,7 +641,7 @@ function useBatchDiscloseToParty(options) {
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
function useAdminDiscloseToParty(options) {
|
|
644
|
-
const { client } =
|
|
644
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
645
645
|
return reactQuery.useMutation({
|
|
646
646
|
mutationFn: async (args) => {
|
|
647
647
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseToParty", "manager");
|
|
@@ -650,7 +650,7 @@ function useAdminDiscloseToParty(options) {
|
|
|
650
650
|
});
|
|
651
651
|
}
|
|
652
652
|
function useAdminBatchDiscloseToParty(options) {
|
|
653
|
-
const { client } =
|
|
653
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
654
654
|
return reactQuery.useMutation({
|
|
655
655
|
mutationFn: async (args) => {
|
|
656
656
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseToParty", "manager");
|
|
@@ -659,7 +659,7 @@ function useAdminBatchDiscloseToParty(options) {
|
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
661
|
function useDiscloseHandleToParty(options) {
|
|
662
|
-
const { client } =
|
|
662
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
663
663
|
return reactQuery.useMutation({
|
|
664
664
|
mutationFn: async ({ handle, party, account }) => {
|
|
665
665
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "manager");
|
|
@@ -668,7 +668,7 @@ function useDiscloseHandleToParty(options) {
|
|
|
668
668
|
});
|
|
669
669
|
}
|
|
670
670
|
function useBatchDiscloseHandlesToParty(options) {
|
|
671
|
-
const { client } =
|
|
671
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
672
672
|
return reactQuery.useMutation({
|
|
673
673
|
mutationFn: async ({ handles, party, account }) => {
|
|
674
674
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "manager");
|
|
@@ -677,7 +677,7 @@ function useBatchDiscloseHandlesToParty(options) {
|
|
|
677
677
|
});
|
|
678
678
|
}
|
|
679
679
|
function useWithdrawAdmin(options) {
|
|
680
|
-
const { client } =
|
|
680
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
681
681
|
return reactQuery.useMutation({
|
|
682
682
|
mutationFn: async (args) => {
|
|
683
683
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawAdmin", "manager");
|
|
@@ -686,7 +686,7 @@ function useWithdrawAdmin(options) {
|
|
|
686
686
|
});
|
|
687
687
|
}
|
|
688
688
|
function useWithdrawOtherToken(options) {
|
|
689
|
-
const { client } =
|
|
689
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
690
690
|
return reactQuery.useMutation({
|
|
691
691
|
mutationFn: async ({ token, to, account }) => {
|
|
692
692
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawOtherToken", "manager");
|
|
@@ -695,7 +695,7 @@ function useWithdrawOtherToken(options) {
|
|
|
695
695
|
});
|
|
696
696
|
}
|
|
697
697
|
function useWithdrawOtherConfidentialToken(options) {
|
|
698
|
-
const { client } =
|
|
698
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
699
699
|
return reactQuery.useMutation({
|
|
700
700
|
mutationFn: async ({ token, to, account }) => {
|
|
701
701
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "manager");
|
|
@@ -704,7 +704,7 @@ function useWithdrawOtherConfidentialToken(options) {
|
|
|
704
704
|
});
|
|
705
705
|
}
|
|
706
706
|
function useWithdrawGasFee(options) {
|
|
707
|
-
const { client } =
|
|
707
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
708
708
|
return reactQuery.useMutation({
|
|
709
709
|
mutationFn: async ({ to, amount, account }) => {
|
|
710
710
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "manager");
|
|
@@ -713,7 +713,7 @@ function useWithdrawGasFee(options) {
|
|
|
713
713
|
});
|
|
714
714
|
}
|
|
715
715
|
function useWithdrawTokenFee(options) {
|
|
716
|
-
const { client } =
|
|
716
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
717
717
|
return reactQuery.useMutation({
|
|
718
718
|
mutationFn: async (args) => {
|
|
719
719
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawTokenFee", "manager");
|
|
@@ -722,7 +722,7 @@ function useWithdrawTokenFee(options) {
|
|
|
722
722
|
});
|
|
723
723
|
}
|
|
724
724
|
function useSetMaxBatchSize(options) {
|
|
725
|
-
const { client } =
|
|
725
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
726
726
|
return reactQuery.useMutation({
|
|
727
727
|
mutationFn: async ({ newMax, account }) => {
|
|
728
728
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSize", "manager");
|
|
@@ -731,7 +731,7 @@ function useSetMaxBatchSize(options) {
|
|
|
731
731
|
});
|
|
732
732
|
}
|
|
733
733
|
function useSetMaxRevokeBatchSize(options) {
|
|
734
|
-
const { client } =
|
|
734
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
735
735
|
return reactQuery.useMutation({
|
|
736
736
|
mutationFn: async ({ newMax, account }) => {
|
|
737
737
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSetMaxRevokeBatchSize", "manager");
|
|
@@ -740,7 +740,7 @@ function useSetMaxRevokeBatchSize(options) {
|
|
|
740
740
|
});
|
|
741
741
|
}
|
|
742
742
|
function useTransferFeeCollectorRole(options) {
|
|
743
|
-
const { client } =
|
|
743
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
744
744
|
return reactQuery.useMutation({
|
|
745
745
|
mutationFn: async ({ newCollector, account }) => {
|
|
746
746
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useTransferFeeCollectorRole", "manager");
|
|
@@ -749,7 +749,7 @@ function useTransferFeeCollectorRole(options) {
|
|
|
749
749
|
});
|
|
750
750
|
}
|
|
751
751
|
function usePause(options) {
|
|
752
|
-
const { client } =
|
|
752
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
753
753
|
return reactQuery.useMutation({
|
|
754
754
|
mutationFn: async (args) => {
|
|
755
755
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("usePause", "manager");
|
|
@@ -758,7 +758,7 @@ function usePause(options) {
|
|
|
758
758
|
});
|
|
759
759
|
}
|
|
760
760
|
function useUnpause(options) {
|
|
761
|
-
const { client } =
|
|
761
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
762
762
|
return reactQuery.useMutation({
|
|
763
763
|
mutationFn: async (args) => {
|
|
764
764
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useUnpause", "manager");
|
|
@@ -767,7 +767,7 @@ function useUnpause(options) {
|
|
|
767
767
|
});
|
|
768
768
|
}
|
|
769
769
|
function useGrantRole(options) {
|
|
770
|
-
const { client } =
|
|
770
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
771
771
|
return reactQuery.useMutation({
|
|
772
772
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
773
773
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useGrantRole", "manager");
|
|
@@ -776,7 +776,7 @@ function useGrantRole(options) {
|
|
|
776
776
|
});
|
|
777
777
|
}
|
|
778
778
|
function useRevokeRole(options) {
|
|
779
|
-
const { client } =
|
|
779
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
780
780
|
return reactQuery.useMutation({
|
|
781
781
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
782
782
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeRole", "manager");
|
|
@@ -785,7 +785,7 @@ function useRevokeRole(options) {
|
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
function useRenounceRole(options) {
|
|
788
|
-
const { client } =
|
|
788
|
+
const { client } = chunkYABHXJNH_cjs.useMemoManagerClient(options);
|
|
789
789
|
return reactQuery.useMutation({
|
|
790
790
|
mutationFn: async ({ role, callerConfirm, account }) => {
|
|
791
791
|
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRenounceRole", "manager");
|
|
@@ -860,11 +860,11 @@ Object.defineProperty(exports, "scaleRatio", {
|
|
|
860
860
|
});
|
|
861
861
|
Object.defineProperty(exports, "DisclosureType", {
|
|
862
862
|
enumerable: true,
|
|
863
|
-
get: function () { return
|
|
863
|
+
get: function () { return chunkJVNJSDQ4_cjs.DisclosureType; }
|
|
864
864
|
});
|
|
865
865
|
Object.defineProperty(exports, "FeeType", {
|
|
866
866
|
enumerable: true,
|
|
867
|
-
get: function () { return
|
|
867
|
+
get: function () { return chunkJVNJSDQ4_cjs.FeeType; }
|
|
868
868
|
});
|
|
869
869
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
870
870
|
enumerable: true,
|