@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,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkSEKC7H5Y_cjs = require('../../chunk-SEKC7H5Y.cjs');
|
|
4
|
+
var chunkOYLZEEHF_cjs = require('../../chunk-OYLZEEHF.cjs');
|
|
5
5
|
require('../../chunk-NS44KBV5.cjs');
|
|
6
6
|
var chunk5SGMJADP_cjs = require('../../chunk-5SGMJADP.cjs');
|
|
7
7
|
require('../../chunk-Q7ARQSUH.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkSAGJIEQK_cjs = require('../../chunk-SAGJIEQK.cjs');
|
|
9
9
|
require('../../chunk-VDXVNZCO.cjs');
|
|
10
|
-
require('../../chunk-
|
|
10
|
+
require('../../chunk-3ZRHDTEX.cjs');
|
|
11
11
|
require('../../chunk-CQIPRNS7.cjs');
|
|
12
12
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
13
13
|
require('../../chunk-66IHPTOK.cjs');
|
|
@@ -15,45 +15,45 @@ var chunk56UI7LUR_cjs = require('../../chunk-56UI7LUR.cjs');
|
|
|
15
15
|
var reactQuery = require('@tanstack/react-query');
|
|
16
16
|
|
|
17
17
|
function useConfidentialVestingFactoryImplementation(options = {}) {
|
|
18
|
-
const { client, chainId, resolvedAddress } =
|
|
18
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
19
19
|
return reactQuery.useQuery({
|
|
20
|
-
queryKey:
|
|
20
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
21
21
|
queryFn: () => client.implementation(),
|
|
22
22
|
enabled: !!client,
|
|
23
23
|
staleTime: 0
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
function useFactoryDefaultGasFee(options = {}) {
|
|
27
|
-
const { client, chainId, resolvedAddress } =
|
|
27
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
28
28
|
return reactQuery.useQuery({
|
|
29
|
-
queryKey:
|
|
29
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
30
30
|
queryFn: () => client.defaultGasFee(),
|
|
31
31
|
enabled: !!client,
|
|
32
32
|
staleTime: 0
|
|
33
33
|
});
|
|
34
34
|
}
|
|
35
35
|
function useFactoryDefaultTokenFee(options = {}) {
|
|
36
|
-
const { client, chainId, resolvedAddress } =
|
|
36
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
37
37
|
return reactQuery.useQuery({
|
|
38
|
-
queryKey:
|
|
38
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:defaultTokenFee", chainId, resolvedAddress),
|
|
39
39
|
queryFn: () => client.defaultTokenFee(),
|
|
40
40
|
enabled: !!client,
|
|
41
41
|
staleTime: 0
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
function useFactoryDefaultFeeType(options = {}) {
|
|
45
|
-
const { client, chainId, resolvedAddress } =
|
|
45
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
46
46
|
return reactQuery.useQuery({
|
|
47
|
-
queryKey:
|
|
47
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:defaultFeeType", chainId, resolvedAddress),
|
|
48
48
|
queryFn: () => client.defaultFeeType(),
|
|
49
49
|
enabled: !!client,
|
|
50
50
|
staleTime: 0
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
53
|
function useFactoryFeeCollector(options = {}) {
|
|
54
|
-
const { client, chainId, resolvedAddress } =
|
|
54
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
55
55
|
return reactQuery.useQuery({
|
|
56
|
-
queryKey:
|
|
56
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
57
57
|
queryFn: () => client.feeCollector(),
|
|
58
58
|
enabled: !!client,
|
|
59
59
|
staleTime: 0
|
|
@@ -61,9 +61,9 @@ function useFactoryFeeCollector(options = {}) {
|
|
|
61
61
|
}
|
|
62
62
|
function useFactoryCustomFee(args = {}) {
|
|
63
63
|
const { creator, ...base } = args;
|
|
64
|
-
const { client, chainId, resolvedAddress } =
|
|
64
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(base);
|
|
65
65
|
return reactQuery.useQuery({
|
|
66
|
-
queryKey:
|
|
66
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
67
67
|
queryFn: () => client.getCustomFee(creator),
|
|
68
68
|
enabled: !!client && !!creator,
|
|
69
69
|
staleTime: 0
|
|
@@ -71,9 +71,9 @@ function useFactoryCustomFee(args = {}) {
|
|
|
71
71
|
}
|
|
72
72
|
function useFactoryInitCodeHash(args = {}) {
|
|
73
73
|
const { token, deployer, splitEnabled, pausableEnabled, ...base } = args;
|
|
74
|
-
const { client, chainId, resolvedAddress } =
|
|
74
|
+
const { client, chainId, resolvedAddress } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(base);
|
|
75
75
|
return reactQuery.useQuery({
|
|
76
|
-
queryKey:
|
|
76
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey(
|
|
77
77
|
"factory:getInitCodeHash",
|
|
78
78
|
chainId,
|
|
79
79
|
resolvedAddress,
|
|
@@ -93,7 +93,7 @@ function useFactoryInitCodeHash(args = {}) {
|
|
|
93
93
|
});
|
|
94
94
|
}
|
|
95
95
|
function useCreateManagerAndGetAddress(options = {}) {
|
|
96
|
-
const { client, resolutionError } =
|
|
96
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
97
97
|
return reactQuery.useMutation({
|
|
98
98
|
mutationFn: async (args) => {
|
|
99
99
|
if (!client) {
|
|
@@ -104,7 +104,7 @@ function useCreateManagerAndGetAddress(options = {}) {
|
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
106
|
function useCreateManager(options = {}) {
|
|
107
|
-
const { client, resolutionError } =
|
|
107
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
108
108
|
return reactQuery.useMutation({
|
|
109
109
|
mutationFn: async (args) => {
|
|
110
110
|
if (!client) {
|
|
@@ -115,7 +115,7 @@ function useCreateManager(options = {}) {
|
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
function useSetDefaultGasFee(options = {}) {
|
|
118
|
-
const { client, resolutionError } =
|
|
118
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
119
119
|
return reactQuery.useMutation({
|
|
120
120
|
mutationFn: async ({ fee, account }) => {
|
|
121
121
|
if (!client)
|
|
@@ -125,7 +125,7 @@ function useSetDefaultGasFee(options = {}) {
|
|
|
125
125
|
});
|
|
126
126
|
}
|
|
127
127
|
function useSetDefaultTokenFee(options = {}) {
|
|
128
|
-
const { client, resolutionError } =
|
|
128
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
129
129
|
return reactQuery.useMutation({
|
|
130
130
|
mutationFn: async ({ feeBps, account }) => {
|
|
131
131
|
if (!client)
|
|
@@ -135,7 +135,7 @@ function useSetDefaultTokenFee(options = {}) {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
function useSetDefaultFeeType(options = {}) {
|
|
138
|
-
const { client, resolutionError } =
|
|
138
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
139
139
|
return reactQuery.useMutation({
|
|
140
140
|
mutationFn: async ({ feeType, account }) => {
|
|
141
141
|
if (!client)
|
|
@@ -145,7 +145,7 @@ function useSetDefaultFeeType(options = {}) {
|
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
function useResetGasFee(options = {}) {
|
|
148
|
-
const { client, resolutionError } =
|
|
148
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
149
149
|
return reactQuery.useMutation({
|
|
150
150
|
mutationFn: async (args) => {
|
|
151
151
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useResetGasFee", "factory");
|
|
@@ -154,7 +154,7 @@ function useResetGasFee(options = {}) {
|
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
function useResetTokenFee(options = {}) {
|
|
157
|
-
const { client, resolutionError } =
|
|
157
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
158
158
|
return reactQuery.useMutation({
|
|
159
159
|
mutationFn: async (args) => {
|
|
160
160
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useResetTokenFee", "factory");
|
|
@@ -163,7 +163,7 @@ function useResetTokenFee(options = {}) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
function useSetCustomFee(options = {}) {
|
|
166
|
-
const { client, resolutionError } =
|
|
166
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
167
167
|
return reactQuery.useMutation({
|
|
168
168
|
mutationFn: async ({ creator, feeType, gasFee, tokenFee, account }) => {
|
|
169
169
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
@@ -172,7 +172,7 @@ function useSetCustomFee(options = {}) {
|
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
174
|
function useDisableCustomFee(options = {}) {
|
|
175
|
-
const { client, resolutionError } =
|
|
175
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
176
176
|
return reactQuery.useMutation({
|
|
177
177
|
mutationFn: async ({ creator, account }) => {
|
|
178
178
|
if (!client)
|
|
@@ -182,7 +182,7 @@ function useDisableCustomFee(options = {}) {
|
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
184
|
function useSetFeeCollector(options = {}) {
|
|
185
|
-
const { client, resolutionError } =
|
|
185
|
+
const { client, resolutionError } = chunkSEKC7H5Y_cjs.useMemoFactoryClient(options);
|
|
186
186
|
return reactQuery.useMutation({
|
|
187
187
|
mutationFn: async ({ newCollector, account }) => {
|
|
188
188
|
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
@@ -191,90 +191,90 @@ function useSetFeeCollector(options = {}) {
|
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
193
|
function useManagerToken(options) {
|
|
194
|
-
const { client, chainId } =
|
|
194
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
195
195
|
return reactQuery.useQuery({
|
|
196
|
-
queryKey:
|
|
196
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:TOKEN_ADDRESS", chainId, options.address),
|
|
197
197
|
queryFn: () => client.token(),
|
|
198
198
|
enabled: !!client,
|
|
199
199
|
staleTime: 0
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
function useManagerFeeType(options) {
|
|
203
|
-
const { client, chainId } =
|
|
203
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
204
204
|
return reactQuery.useQuery({
|
|
205
|
-
queryKey:
|
|
205
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:FEE_TYPE", chainId, options.address),
|
|
206
206
|
queryFn: () => client.feeType(),
|
|
207
207
|
enabled: !!client,
|
|
208
208
|
staleTime: 0
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
211
|
function useManagerFee(options) {
|
|
212
|
-
const { client, chainId } =
|
|
212
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
213
213
|
return reactQuery.useQuery({
|
|
214
|
-
queryKey:
|
|
214
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:FEE", chainId, options.address),
|
|
215
215
|
queryFn: () => client.fee(),
|
|
216
216
|
enabled: !!client,
|
|
217
217
|
staleTime: 0
|
|
218
218
|
});
|
|
219
219
|
}
|
|
220
220
|
function useManagerFeeInfo(options) {
|
|
221
|
-
const { client, chainId } =
|
|
221
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
222
222
|
return reactQuery.useQuery({
|
|
223
|
-
queryKey:
|
|
223
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getFeeInfo", chainId, options.address),
|
|
224
224
|
queryFn: () => client.getFeeInfo(),
|
|
225
225
|
enabled: !!client,
|
|
226
226
|
staleTime: 0
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
229
|
function useManagerDeploymentBlockNumber(options) {
|
|
230
|
-
const { client, chainId } =
|
|
230
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
231
231
|
return reactQuery.useQuery({
|
|
232
|
-
queryKey:
|
|
232
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:DEPLOYMENT_BLOCK_NUMBER", chainId, options.address),
|
|
233
233
|
queryFn: () => client.deploymentBlockNumber(),
|
|
234
234
|
enabled: !!client,
|
|
235
235
|
staleTime: 0
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
function useManagerIsSplitEnabled(options) {
|
|
239
|
-
const { client, chainId } =
|
|
239
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
240
240
|
return reactQuery.useQuery({
|
|
241
|
-
queryKey:
|
|
241
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:isSplitEnabled", chainId, options.address),
|
|
242
242
|
queryFn: () => client.isSplitEnabled(),
|
|
243
243
|
enabled: !!client,
|
|
244
244
|
staleTime: 0
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
function useManagerIsPausable(options) {
|
|
248
|
-
const { client, chainId } =
|
|
248
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
249
249
|
return reactQuery.useQuery({
|
|
250
|
-
queryKey:
|
|
250
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:isPausable", chainId, options.address),
|
|
251
251
|
queryFn: () => client.isPausable(),
|
|
252
252
|
enabled: !!client,
|
|
253
253
|
staleTime: 0
|
|
254
254
|
});
|
|
255
255
|
}
|
|
256
256
|
function useManagerPaused(options) {
|
|
257
|
-
const { client, chainId } =
|
|
257
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
258
258
|
return reactQuery.useQuery({
|
|
259
|
-
queryKey:
|
|
259
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:paused", chainId, options.address),
|
|
260
260
|
queryFn: () => client.paused(),
|
|
261
261
|
enabled: !!client,
|
|
262
262
|
staleTime: 0
|
|
263
263
|
});
|
|
264
264
|
}
|
|
265
265
|
function useManagerMaxBatchSize(options) {
|
|
266
|
-
const { client, chainId } =
|
|
266
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
267
267
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
268
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:maxBatchSize", chainId, options.address),
|
|
269
269
|
queryFn: () => client.maxBatchSize(),
|
|
270
270
|
enabled: !!client,
|
|
271
271
|
staleTime: 0
|
|
272
272
|
});
|
|
273
273
|
}
|
|
274
274
|
function useManagerMaxRevokeBatchSize(options) {
|
|
275
|
-
const { client, chainId } =
|
|
275
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
276
276
|
return reactQuery.useQuery({
|
|
277
|
-
queryKey:
|
|
277
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:maxRevokeBatchSize", chainId, options.address),
|
|
278
278
|
queryFn: () => client.maxRevokeBatchSize(),
|
|
279
279
|
enabled: !!client,
|
|
280
280
|
staleTime: 0
|
|
@@ -282,27 +282,27 @@ function useManagerMaxRevokeBatchSize(options) {
|
|
|
282
282
|
}
|
|
283
283
|
function useVestingInfo(args) {
|
|
284
284
|
const { vestingId, ...base } = args;
|
|
285
|
-
const { client, chainId } =
|
|
285
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
286
286
|
return reactQuery.useQuery({
|
|
287
|
-
queryKey:
|
|
287
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getVestingInfo", chainId, base.address, vestingId),
|
|
288
288
|
queryFn: () => client.getVestingInfo(vestingId),
|
|
289
289
|
enabled: !!client && !!vestingId,
|
|
290
290
|
staleTime: 0
|
|
291
291
|
});
|
|
292
292
|
}
|
|
293
293
|
function useAllRecipients(options) {
|
|
294
|
-
const { client, chainId } =
|
|
294
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
295
295
|
return reactQuery.useQuery({
|
|
296
|
-
queryKey:
|
|
296
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getAllRecipients", chainId, options.address),
|
|
297
297
|
queryFn: () => client.getAllRecipients(),
|
|
298
298
|
enabled: !!client,
|
|
299
299
|
staleTime: 0
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
function useAllRecipientsLength(options) {
|
|
303
|
-
const { client, chainId } =
|
|
303
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
304
304
|
return reactQuery.useQuery({
|
|
305
|
-
queryKey:
|
|
305
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getAllRecipientsLength", chainId, options.address),
|
|
306
306
|
queryFn: () => client.getAllRecipientsLength(),
|
|
307
307
|
enabled: !!client,
|
|
308
308
|
staleTime: 0
|
|
@@ -310,9 +310,9 @@ function useAllRecipientsLength(options) {
|
|
|
310
310
|
}
|
|
311
311
|
function useAllRecipientsSliced(args) {
|
|
312
312
|
const { start, end, ...base } = args;
|
|
313
|
-
const { client, chainId } =
|
|
313
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
314
314
|
return reactQuery.useQuery({
|
|
315
|
-
queryKey:
|
|
315
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getAllRecipientsSliced", chainId, base.address, start, end),
|
|
316
316
|
queryFn: () => client.getAllRecipientsSliced(start, end),
|
|
317
317
|
enabled: !!client && start !== void 0 && end !== void 0,
|
|
318
318
|
staleTime: 0
|
|
@@ -320,9 +320,9 @@ function useAllRecipientsSliced(args) {
|
|
|
320
320
|
}
|
|
321
321
|
function useIsRecipient(args) {
|
|
322
322
|
const { account, ...base } = args;
|
|
323
|
-
const { client, chainId } =
|
|
323
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
324
324
|
return reactQuery.useQuery({
|
|
325
|
-
queryKey:
|
|
325
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:isRecipient", chainId, base.address, account),
|
|
326
326
|
queryFn: () => client.isRecipient(account),
|
|
327
327
|
enabled: !!client && !!account,
|
|
328
328
|
staleTime: 0
|
|
@@ -330,9 +330,9 @@ function useIsRecipient(args) {
|
|
|
330
330
|
}
|
|
331
331
|
function useRecipientVestings(args) {
|
|
332
332
|
const { recipient, ...base } = args;
|
|
333
|
-
const { client, chainId } =
|
|
333
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
334
334
|
return reactQuery.useQuery({
|
|
335
|
-
queryKey:
|
|
335
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getAllRecipientVestings", chainId, base.address, recipient),
|
|
336
336
|
queryFn: () => client.getAllRecipientVestings(recipient),
|
|
337
337
|
enabled: !!client && !!recipient,
|
|
338
338
|
staleTime: 0
|
|
@@ -340,9 +340,9 @@ function useRecipientVestings(args) {
|
|
|
340
340
|
}
|
|
341
341
|
function useRecipientVestingsLength(args) {
|
|
342
342
|
const { recipient, ...base } = args;
|
|
343
|
-
const { client, chainId } =
|
|
343
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
344
344
|
return reactQuery.useQuery({
|
|
345
|
-
queryKey:
|
|
345
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey(
|
|
346
346
|
"manager:getAllRecipientVestingsLength",
|
|
347
347
|
chainId,
|
|
348
348
|
base.address,
|
|
@@ -355,9 +355,9 @@ function useRecipientVestingsLength(args) {
|
|
|
355
355
|
}
|
|
356
356
|
function useRecipientVestingsSliced(args) {
|
|
357
357
|
const { recipient, start, end, ...base } = args;
|
|
358
|
-
const { client, chainId } =
|
|
358
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
359
359
|
return reactQuery.useQuery({
|
|
360
|
-
queryKey:
|
|
360
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey(
|
|
361
361
|
"manager:getAllRecipientVestingsSliced",
|
|
362
362
|
chainId,
|
|
363
363
|
base.address,
|
|
@@ -372,9 +372,9 @@ function useRecipientVestingsSliced(args) {
|
|
|
372
372
|
}
|
|
373
373
|
function usePendingVestingTransfer(args) {
|
|
374
374
|
const { vestingId, ...base } = args;
|
|
375
|
-
const { client, chainId } =
|
|
375
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
376
376
|
return reactQuery.useQuery({
|
|
377
|
-
queryKey:
|
|
377
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:getPendingVestingTransfer", chainId, base.address, vestingId),
|
|
378
378
|
queryFn: () => client.getPendingVestingTransfer(vestingId),
|
|
379
379
|
enabled: !!client && !!vestingId,
|
|
380
380
|
staleTime: 0
|
|
@@ -382,25 +382,25 @@ function usePendingVestingTransfer(args) {
|
|
|
382
382
|
}
|
|
383
383
|
function useHasRole(args) {
|
|
384
384
|
const { role, account, ...base } = args;
|
|
385
|
-
const { client, chainId } =
|
|
385
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(base);
|
|
386
386
|
return reactQuery.useQuery({
|
|
387
|
-
queryKey:
|
|
387
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:hasRole", chainId, base.address, role, account),
|
|
388
388
|
queryFn: () => client.hasRole(role, account),
|
|
389
389
|
enabled: !!client && !!role && !!account,
|
|
390
390
|
staleTime: 0
|
|
391
391
|
});
|
|
392
392
|
}
|
|
393
393
|
function useRoleConstants(options) {
|
|
394
|
-
const { client, chainId } =
|
|
394
|
+
const { client, chainId } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
395
395
|
return reactQuery.useQuery({
|
|
396
|
-
queryKey:
|
|
396
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey("manager:roleConstants", chainId, options.address),
|
|
397
397
|
queryFn: () => client.roleConstants(),
|
|
398
398
|
enabled: !!client,
|
|
399
399
|
staleTime: 0
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
function useGetVestedAmount(options) {
|
|
403
|
-
const { client } =
|
|
403
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
404
404
|
return reactQuery.useMutation({
|
|
405
405
|
mutationFn: async (args) => {
|
|
406
406
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetVestedAmount", "manager");
|
|
@@ -409,7 +409,7 @@ function useGetVestedAmount(options) {
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
function useGetClaimableAmount(options) {
|
|
412
|
-
const { client } =
|
|
412
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
413
413
|
return reactQuery.useMutation({
|
|
414
414
|
mutationFn: async (args) => {
|
|
415
415
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetClaimableAmount", "manager");
|
|
@@ -418,7 +418,7 @@ function useGetClaimableAmount(options) {
|
|
|
418
418
|
});
|
|
419
419
|
}
|
|
420
420
|
function useGetTotalAllocation(options) {
|
|
421
|
-
const { client } =
|
|
421
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
422
422
|
return reactQuery.useMutation({
|
|
423
423
|
mutationFn: async (args) => {
|
|
424
424
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetTotalAllocation", "manager");
|
|
@@ -427,7 +427,7 @@ function useGetTotalAllocation(options) {
|
|
|
427
427
|
});
|
|
428
428
|
}
|
|
429
429
|
function useGetSettledAmount(options) {
|
|
430
|
-
const { client } =
|
|
430
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
431
431
|
return reactQuery.useMutation({
|
|
432
432
|
mutationFn: async (args) => {
|
|
433
433
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetSettledAmount", "manager");
|
|
@@ -436,7 +436,7 @@ function useGetSettledAmount(options) {
|
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
function useAdminGetVestedAmount(options) {
|
|
439
|
-
const { client } =
|
|
439
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
440
440
|
return reactQuery.useMutation({
|
|
441
441
|
mutationFn: async (args) => {
|
|
442
442
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminGetVestedAmount", "manager");
|
|
@@ -445,7 +445,7 @@ function useAdminGetVestedAmount(options) {
|
|
|
445
445
|
});
|
|
446
446
|
}
|
|
447
447
|
function useAdminGetClaimableAmount(options) {
|
|
448
|
-
const { client } =
|
|
448
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
449
449
|
return reactQuery.useMutation({
|
|
450
450
|
mutationFn: async (args) => {
|
|
451
451
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminGetClaimableAmount", "manager");
|
|
@@ -454,7 +454,7 @@ function useAdminGetClaimableAmount(options) {
|
|
|
454
454
|
});
|
|
455
455
|
}
|
|
456
456
|
function useAdminGetTotalAllocation(options) {
|
|
457
|
-
const { client } =
|
|
457
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
458
458
|
return reactQuery.useMutation({
|
|
459
459
|
mutationFn: async (args) => {
|
|
460
460
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminGetTotalAllocation", "manager");
|
|
@@ -463,7 +463,7 @@ function useAdminGetTotalAllocation(options) {
|
|
|
463
463
|
});
|
|
464
464
|
}
|
|
465
465
|
function useAdminGetSettledAmount(options) {
|
|
466
|
-
const { client } =
|
|
466
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
467
467
|
return reactQuery.useMutation({
|
|
468
468
|
mutationFn: async (args) => {
|
|
469
469
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminGetSettledAmount", "manager");
|
|
@@ -472,7 +472,7 @@ function useAdminGetSettledAmount(options) {
|
|
|
472
472
|
});
|
|
473
473
|
}
|
|
474
474
|
function useAdminGetTokenBalance(options) {
|
|
475
|
-
const { client } =
|
|
475
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
476
476
|
return reactQuery.useMutation({
|
|
477
477
|
mutationFn: async (args) => {
|
|
478
478
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminGetTokenBalance", "manager");
|
|
@@ -481,7 +481,7 @@ function useAdminGetTokenBalance(options) {
|
|
|
481
481
|
});
|
|
482
482
|
}
|
|
483
483
|
function useCreateVesting(options) {
|
|
484
|
-
const { client } =
|
|
484
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
485
485
|
return reactQuery.useMutation({
|
|
486
486
|
mutationFn: async (args) => {
|
|
487
487
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useCreateVesting", "manager");
|
|
@@ -490,7 +490,7 @@ function useCreateVesting(options) {
|
|
|
490
490
|
});
|
|
491
491
|
}
|
|
492
492
|
function useBatchCreateVesting(options) {
|
|
493
|
-
const { client } =
|
|
493
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
494
494
|
return reactQuery.useMutation({
|
|
495
495
|
mutationFn: async (args) => {
|
|
496
496
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useBatchCreateVesting", "manager");
|
|
@@ -499,7 +499,7 @@ function useBatchCreateVesting(options) {
|
|
|
499
499
|
});
|
|
500
500
|
}
|
|
501
501
|
function useClaim(options) {
|
|
502
|
-
const { client } =
|
|
502
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
503
503
|
return reactQuery.useMutation({
|
|
504
504
|
mutationFn: async (args) => {
|
|
505
505
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useClaim", "manager");
|
|
@@ -508,7 +508,7 @@ function useClaim(options) {
|
|
|
508
508
|
});
|
|
509
509
|
}
|
|
510
510
|
function useAdminClaim(options) {
|
|
511
|
-
const { client } =
|
|
511
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
512
512
|
return reactQuery.useMutation({
|
|
513
513
|
mutationFn: async (args) => {
|
|
514
514
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminClaim", "manager");
|
|
@@ -517,7 +517,7 @@ function useAdminClaim(options) {
|
|
|
517
517
|
});
|
|
518
518
|
}
|
|
519
519
|
function usePartialClaim(options) {
|
|
520
|
-
const { client } =
|
|
520
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
521
521
|
return reactQuery.useMutation({
|
|
522
522
|
mutationFn: async (args) => {
|
|
523
523
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("usePartialClaim", "manager");
|
|
@@ -526,7 +526,7 @@ function usePartialClaim(options) {
|
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
function useAdminPartialClaim(options) {
|
|
529
|
-
const { client } =
|
|
529
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
530
530
|
return reactQuery.useMutation({
|
|
531
531
|
mutationFn: async (args) => {
|
|
532
532
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminPartialClaim", "manager");
|
|
@@ -535,7 +535,7 @@ function useAdminPartialClaim(options) {
|
|
|
535
535
|
});
|
|
536
536
|
}
|
|
537
537
|
function useRevokeVesting(options) {
|
|
538
|
-
const { client } =
|
|
538
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
539
539
|
return reactQuery.useMutation({
|
|
540
540
|
mutationFn: async ({ vestingId, account }) => {
|
|
541
541
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useRevokeVesting", "manager");
|
|
@@ -544,7 +544,7 @@ function useRevokeVesting(options) {
|
|
|
544
544
|
});
|
|
545
545
|
}
|
|
546
546
|
function useBatchRevokeVesting(options) {
|
|
547
|
-
const { client } =
|
|
547
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
548
548
|
return reactQuery.useMutation({
|
|
549
549
|
mutationFn: async ({ vestingIds, account }) => {
|
|
550
550
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useBatchRevokeVesting", "manager");
|
|
@@ -553,7 +553,7 @@ function useBatchRevokeVesting(options) {
|
|
|
553
553
|
});
|
|
554
554
|
}
|
|
555
555
|
function useSplitVesting(options) {
|
|
556
|
-
const { client } =
|
|
556
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
557
557
|
return reactQuery.useMutation({
|
|
558
558
|
mutationFn: async (args) => {
|
|
559
559
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useSplitVesting", "manager");
|
|
@@ -562,7 +562,7 @@ function useSplitVesting(options) {
|
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
564
|
function useInitiateVestingTransfer(options) {
|
|
565
|
-
const { client } =
|
|
565
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
566
566
|
return reactQuery.useMutation({
|
|
567
567
|
mutationFn: async (args) => {
|
|
568
568
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useInitiateVestingTransfer", "manager");
|
|
@@ -571,7 +571,7 @@ function useInitiateVestingTransfer(options) {
|
|
|
571
571
|
});
|
|
572
572
|
}
|
|
573
573
|
function useAcceptVestingTransfer(options) {
|
|
574
|
-
const { client } =
|
|
574
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
575
575
|
return reactQuery.useMutation({
|
|
576
576
|
mutationFn: async ({ vestingId, account }) => {
|
|
577
577
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAcceptVestingTransfer", "manager");
|
|
@@ -580,7 +580,7 @@ function useAcceptVestingTransfer(options) {
|
|
|
580
580
|
});
|
|
581
581
|
}
|
|
582
582
|
function useCancelVestingTransfer(options) {
|
|
583
|
-
const { client } =
|
|
583
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
584
584
|
return reactQuery.useMutation({
|
|
585
585
|
mutationFn: async ({ vestingId, account }) => {
|
|
586
586
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useCancelVestingTransfer", "manager");
|
|
@@ -589,7 +589,7 @@ function useCancelVestingTransfer(options) {
|
|
|
589
589
|
});
|
|
590
590
|
}
|
|
591
591
|
function useDirectVestingTransfer(options) {
|
|
592
|
-
const { client } =
|
|
592
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
593
593
|
return reactQuery.useMutation({
|
|
594
594
|
mutationFn: async ({ vestingId, newOwner, account }) => {
|
|
595
595
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useDirectVestingTransfer", "manager");
|
|
@@ -598,7 +598,7 @@ function useDirectVestingTransfer(options) {
|
|
|
598
598
|
});
|
|
599
599
|
}
|
|
600
600
|
function useDiscloseToParty(options) {
|
|
601
|
-
const { client } =
|
|
601
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
602
602
|
return reactQuery.useMutation({
|
|
603
603
|
mutationFn: async (args) => {
|
|
604
604
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useDiscloseToParty", "manager");
|
|
@@ -607,7 +607,7 @@ function useDiscloseToParty(options) {
|
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
609
|
function useBatchDiscloseToParty(options) {
|
|
610
|
-
const { client } =
|
|
610
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
611
611
|
return reactQuery.useMutation({
|
|
612
612
|
mutationFn: async (args) => {
|
|
613
613
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useBatchDiscloseToParty", "manager");
|
|
@@ -616,7 +616,7 @@ function useBatchDiscloseToParty(options) {
|
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
function useAdminDiscloseToParty(options) {
|
|
619
|
-
const { client } =
|
|
619
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
620
620
|
return reactQuery.useMutation({
|
|
621
621
|
mutationFn: async (args) => {
|
|
622
622
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminDiscloseToParty", "manager");
|
|
@@ -625,7 +625,7 @@ function useAdminDiscloseToParty(options) {
|
|
|
625
625
|
});
|
|
626
626
|
}
|
|
627
627
|
function useAdminBatchDiscloseToParty(options) {
|
|
628
|
-
const { client } =
|
|
628
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
629
629
|
return reactQuery.useMutation({
|
|
630
630
|
mutationFn: async (args) => {
|
|
631
631
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAdminBatchDiscloseToParty", "manager");
|
|
@@ -634,7 +634,7 @@ function useAdminBatchDiscloseToParty(options) {
|
|
|
634
634
|
});
|
|
635
635
|
}
|
|
636
636
|
function useDiscloseHandleToParty(options) {
|
|
637
|
-
const { client } =
|
|
637
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
638
638
|
return reactQuery.useMutation({
|
|
639
639
|
mutationFn: async ({ handle, party, account }) => {
|
|
640
640
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useDiscloseHandleToParty", "manager");
|
|
@@ -643,7 +643,7 @@ function useDiscloseHandleToParty(options) {
|
|
|
643
643
|
});
|
|
644
644
|
}
|
|
645
645
|
function useBatchDiscloseHandlesToParty(options) {
|
|
646
|
-
const { client } =
|
|
646
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
647
647
|
return reactQuery.useMutation({
|
|
648
648
|
mutationFn: async ({ handles, party, account }) => {
|
|
649
649
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "manager");
|
|
@@ -652,7 +652,7 @@ function useBatchDiscloseHandlesToParty(options) {
|
|
|
652
652
|
});
|
|
653
653
|
}
|
|
654
654
|
function useWithdrawAdmin(options) {
|
|
655
|
-
const { client } =
|
|
655
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
656
656
|
return reactQuery.useMutation({
|
|
657
657
|
mutationFn: async (args) => {
|
|
658
658
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawAdmin", "manager");
|
|
@@ -661,7 +661,7 @@ function useWithdrawAdmin(options) {
|
|
|
661
661
|
});
|
|
662
662
|
}
|
|
663
663
|
function useWithdrawOtherToken(options) {
|
|
664
|
-
const { client } =
|
|
664
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
665
665
|
return reactQuery.useMutation({
|
|
666
666
|
mutationFn: async ({ token, to, account }) => {
|
|
667
667
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherToken", "manager");
|
|
@@ -670,7 +670,7 @@ function useWithdrawOtherToken(options) {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
function useWithdrawOtherConfidentialToken(options) {
|
|
673
|
-
const { client } =
|
|
673
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
674
674
|
return reactQuery.useMutation({
|
|
675
675
|
mutationFn: async ({ token, to, account }) => {
|
|
676
676
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "manager");
|
|
@@ -679,7 +679,7 @@ function useWithdrawOtherConfidentialToken(options) {
|
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
681
|
function useWithdrawGasFee(options) {
|
|
682
|
-
const { client } =
|
|
682
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
683
683
|
return reactQuery.useMutation({
|
|
684
684
|
mutationFn: async ({ to, amount, account }) => {
|
|
685
685
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawGasFee", "manager");
|
|
@@ -688,7 +688,7 @@ function useWithdrawGasFee(options) {
|
|
|
688
688
|
});
|
|
689
689
|
}
|
|
690
690
|
function useWithdrawTokenFee(options) {
|
|
691
|
-
const { client } =
|
|
691
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
692
692
|
return reactQuery.useMutation({
|
|
693
693
|
mutationFn: async (args) => {
|
|
694
694
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawTokenFee", "manager");
|
|
@@ -697,7 +697,7 @@ function useWithdrawTokenFee(options) {
|
|
|
697
697
|
});
|
|
698
698
|
}
|
|
699
699
|
function useSetMaxBatchSize(options) {
|
|
700
|
-
const { client } =
|
|
700
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
701
701
|
return reactQuery.useMutation({
|
|
702
702
|
mutationFn: async ({ newMax, account }) => {
|
|
703
703
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useSetMaxBatchSize", "manager");
|
|
@@ -706,7 +706,7 @@ function useSetMaxBatchSize(options) {
|
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
708
|
function useSetMaxRevokeBatchSize(options) {
|
|
709
|
-
const { client } =
|
|
709
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
710
710
|
return reactQuery.useMutation({
|
|
711
711
|
mutationFn: async ({ newMax, account }) => {
|
|
712
712
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useSetMaxRevokeBatchSize", "manager");
|
|
@@ -715,7 +715,7 @@ function useSetMaxRevokeBatchSize(options) {
|
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
717
|
function useTransferFeeCollectorRole(options) {
|
|
718
|
-
const { client } =
|
|
718
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
719
719
|
return reactQuery.useMutation({
|
|
720
720
|
mutationFn: async ({ newCollector, account }) => {
|
|
721
721
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useTransferFeeCollectorRole", "manager");
|
|
@@ -724,7 +724,7 @@ function useTransferFeeCollectorRole(options) {
|
|
|
724
724
|
});
|
|
725
725
|
}
|
|
726
726
|
function usePause(options) {
|
|
727
|
-
const { client } =
|
|
727
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
728
728
|
return reactQuery.useMutation({
|
|
729
729
|
mutationFn: async (args) => {
|
|
730
730
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("usePause", "manager");
|
|
@@ -733,7 +733,7 @@ function usePause(options) {
|
|
|
733
733
|
});
|
|
734
734
|
}
|
|
735
735
|
function useUnpause(options) {
|
|
736
|
-
const { client } =
|
|
736
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
737
737
|
return reactQuery.useMutation({
|
|
738
738
|
mutationFn: async (args) => {
|
|
739
739
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useUnpause", "manager");
|
|
@@ -742,7 +742,7 @@ function useUnpause(options) {
|
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
function useGrantRole(options) {
|
|
745
|
-
const { client } =
|
|
745
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
746
746
|
return reactQuery.useMutation({
|
|
747
747
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
748
748
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGrantRole", "manager");
|
|
@@ -751,7 +751,7 @@ function useGrantRole(options) {
|
|
|
751
751
|
});
|
|
752
752
|
}
|
|
753
753
|
function useRevokeRole(options) {
|
|
754
|
-
const { client } =
|
|
754
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
755
755
|
return reactQuery.useMutation({
|
|
756
756
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
757
757
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useRevokeRole", "manager");
|
|
@@ -760,7 +760,7 @@ function useRevokeRole(options) {
|
|
|
760
760
|
});
|
|
761
761
|
}
|
|
762
762
|
function useRenounceRole(options) {
|
|
763
|
-
const { client } =
|
|
763
|
+
const { client } = chunkSEKC7H5Y_cjs.useMemoManagerClient(options);
|
|
764
764
|
return reactQuery.useMutation({
|
|
765
765
|
mutationFn: async ({ role, callerConfirm, account }) => {
|
|
766
766
|
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useRenounceRole", "manager");
|
|
@@ -771,55 +771,55 @@ function useRenounceRole(options) {
|
|
|
771
771
|
|
|
772
772
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
773
773
|
enumerable: true,
|
|
774
|
-
get: function () { return
|
|
774
|
+
get: function () { return chunkOYLZEEHF_cjs.ClaimLockedError; }
|
|
775
775
|
});
|
|
776
776
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
777
777
|
enumerable: true,
|
|
778
|
-
get: function () { return
|
|
778
|
+
get: function () { return chunkOYLZEEHF_cjs.NoPendingTransferError; }
|
|
779
779
|
});
|
|
780
780
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
781
781
|
enumerable: true,
|
|
782
|
-
get: function () { return
|
|
782
|
+
get: function () { return chunkOYLZEEHF_cjs.NotPendingRecipientError; }
|
|
783
783
|
});
|
|
784
784
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
785
785
|
enumerable: true,
|
|
786
|
-
get: function () { return
|
|
786
|
+
get: function () { return chunkOYLZEEHF_cjs.NotVestingRecipientError; }
|
|
787
787
|
});
|
|
788
788
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
789
789
|
enumerable: true,
|
|
790
|
-
get: function () { return
|
|
790
|
+
get: function () { return chunkOYLZEEHF_cjs.TransferAlreadyPendingError; }
|
|
791
791
|
});
|
|
792
792
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
793
793
|
enumerable: true,
|
|
794
|
-
get: function () { return
|
|
794
|
+
get: function () { return chunkOYLZEEHF_cjs.TransferExpiredError; }
|
|
795
795
|
});
|
|
796
796
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
797
797
|
enumerable: true,
|
|
798
|
-
get: function () { return
|
|
798
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingExpiredError; }
|
|
799
799
|
});
|
|
800
800
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
801
801
|
enumerable: true,
|
|
802
|
-
get: function () { return
|
|
802
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingNotFoundError; }
|
|
803
803
|
});
|
|
804
804
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
805
805
|
enumerable: true,
|
|
806
|
-
get: function () { return
|
|
806
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingNotRevocableError; }
|
|
807
807
|
});
|
|
808
808
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
809
809
|
enumerable: true,
|
|
810
|
-
get: function () { return
|
|
810
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingRevokedError; }
|
|
811
811
|
});
|
|
812
812
|
Object.defineProperty(exports, "encryptUint64", {
|
|
813
813
|
enumerable: true,
|
|
814
|
-
get: function () { return
|
|
814
|
+
get: function () { return chunkOYLZEEHF_cjs.encryptUint64; }
|
|
815
815
|
});
|
|
816
816
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
817
817
|
enumerable: true,
|
|
818
|
-
get: function () { return
|
|
818
|
+
get: function () { return chunkOYLZEEHF_cjs.encryptUint64Batch; }
|
|
819
819
|
});
|
|
820
820
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
821
821
|
enumerable: true,
|
|
822
|
-
get: function () { return
|
|
822
|
+
get: function () { return chunkOYLZEEHF_cjs.resolveEncryptor; }
|
|
823
823
|
});
|
|
824
824
|
Object.defineProperty(exports, "scaleRatio", {
|
|
825
825
|
enumerable: true,
|
|
@@ -827,11 +827,11 @@ Object.defineProperty(exports, "scaleRatio", {
|
|
|
827
827
|
});
|
|
828
828
|
Object.defineProperty(exports, "DisclosureType", {
|
|
829
829
|
enumerable: true,
|
|
830
|
-
get: function () { return
|
|
830
|
+
get: function () { return chunkSAGJIEQK_cjs.DisclosureType; }
|
|
831
831
|
});
|
|
832
832
|
Object.defineProperty(exports, "FeeType", {
|
|
833
833
|
enumerable: true,
|
|
834
|
-
get: function () { return
|
|
834
|
+
get: function () { return chunkSAGJIEQK_cjs.FeeType; }
|
|
835
835
|
});
|
|
836
836
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
837
837
|
enumerable: true,
|