@tokenops/sdk 1.6.0 → 2.0.0-alpha.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/CHANGELOG.md +48 -8
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SUPPORT.md +47 -0
- package/dist/{chunk-HETNKZEE.js → chunk-335Z2W67.js} +1 -1
- package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
- package/dist/chunk-456VDDA3.js +370 -0
- package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
- package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
- package/dist/{chunk-WUXUWTFW.cjs → chunk-5576FRT3.cjs} +31 -7
- package/dist/chunk-66IHPTOK.cjs +20 -0
- package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
- package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
- package/dist/{chunk-VHSNYUYV.js → chunk-6NAVMWZQ.js} +5 -5
- package/dist/{chunk-EUKPOXWR.cjs → chunk-6PXXGACR.cjs} +17 -15
- package/dist/{chunk-WTK6JDSI.js → chunk-74QFZ5MK.js} +6 -4
- package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
- package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
- package/dist/chunk-CTED3MTR.cjs +380 -0
- package/dist/{chunk-QKKBBH7I.js → chunk-DZHYSUGY.js} +28 -7
- package/dist/{chunk-V5D7BHW3.js → chunk-EAJ7SYHE.js} +6 -4
- package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/{chunk-7G7UOQV4.cjs → chunk-FGEB7RMY.cjs} +4 -4
- package/dist/chunk-GKKDAW44.js +8823 -0
- package/dist/{chunk-QET3Q4JP.js → chunk-H5POPGOZ.js} +8 -6
- package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-CBRL2PJA.cjs → chunk-JQYC66TO.cjs} +12 -12
- package/dist/{chunk-YFIWCYHC.cjs → chunk-JZLGCTGK.cjs} +56 -54
- package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/chunk-M4IT6DNJ.cjs +608 -0
- package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
- package/dist/chunk-NCVX3K2N.cjs +161 -0
- package/dist/chunk-NWFMBLSQ.js +4 -0
- package/dist/chunk-O5676ZWY.js +585 -0
- package/dist/chunk-PUX5VXDB.cjs +8845 -0
- package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
- package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
- package/dist/chunk-UG5RKLU2.cjs +6 -0
- package/dist/chunk-VP2B4WM2.js +154 -0
- package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
- package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
- package/dist/{chunk-AYGRYDBX.cjs → chunk-XAYGD4E4.cjs} +37 -35
- package/dist/{chunk-46T67CE2.js → chunk-ZA673I3O.js} +1 -1
- package/dist/{chunk-YPYCWLYP.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +14 -2
- package/dist/core/brands.d.ts +8 -2
- package/dist/core/errors.d.ts +71 -10
- package/dist/core/preflight.d.ts +1 -0
- package/dist/fhe/erc7984-abi.d.ts +1 -0
- package/dist/fhe/index.cjs +64 -63
- package/dist/fhe/index.js +7 -6
- package/dist/fhe/operators.d.ts +22 -5
- package/dist/fhe/react/index.cjs +13 -12
- package/dist/fhe/react/index.js +6 -5
- package/dist/fhe/types.d.ts +6 -0
- package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
- package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
- package/dist/fhe-airdrop/abis/index.d.ts +5 -2
- package/dist/fhe-airdrop/abis/merkle.d.ts +1238 -0
- package/dist/fhe-airdrop/advanced/index.cjs +11 -12
- package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
- package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
- package/dist/fhe-airdrop/advanced/index.js +3 -8
- package/dist/fhe-airdrop/advanced/react/index.cjs +37 -50
- package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.js +36 -50
- package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +600 -0
- package/dist/fhe-airdrop/campaign.d.ts +297 -0
- package/dist/fhe-airdrop/compliance.d.ts +302 -0
- package/dist/fhe-airdrop/constants.d.ts +33 -0
- package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
- package/dist/fhe-airdrop/encryption.d.ts +92 -14
- package/dist/fhe-airdrop/errors.d.ts +245 -15
- package/dist/fhe-airdrop/factory.d.ts +533 -274
- package/dist/fhe-airdrop/guards.d.ts +273 -0
- package/dist/fhe-airdrop/index.cjs +1131 -74
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +931 -8
- package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
- package/dist/fhe-airdrop/merkle.d.ts +180 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
- package/dist/fhe-airdrop/react/index.cjs +399 -459
- package/dist/fhe-airdrop/react/index.d.cts +53 -74
- package/dist/fhe-airdrop/react/index.d.ts +53 -74
- package/dist/fhe-airdrop/react/index.js +261 -374
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
- package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
- package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
- package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
- package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +23 -0
- package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
- package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +34 -0
- package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
- package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
- package/dist/fhe-airdrop/roles.d.ts +147 -0
- package/dist/fhe-airdrop/types.d.ts +67 -65
- package/dist/fhe-disperse/index.cjs +70 -68
- package/dist/fhe-disperse/index.js +10 -8
- package/dist/fhe-disperse/react/index.cjs +94 -92
- package/dist/fhe-disperse/react/index.js +13 -11
- package/dist/fhe-vesting/advanced/index.cjs +10 -8
- package/dist/fhe-vesting/advanced/index.js +8 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
- package/dist/fhe-vesting/advanced/react/index.js +13 -11
- package/dist/fhe-vesting/index.cjs +74 -72
- package/dist/fhe-vesting/index.js +11 -9
- package/dist/fhe-vesting/react/index.cjs +228 -226
- package/dist/fhe-vesting/react/index.js +15 -13
- package/dist/index.cjs +100 -87
- package/dist/index.js +3 -2
- package/dist/testnet-faucet/index.cjs +57 -55
- package/dist/testnet-faucet/index.js +7 -5
- package/dist/testnet-faucet/react/index.cjs +55 -53
- package/dist/testnet-faucet/react/index.js +9 -7
- package/package.json +6 -2
- package/dist/chunk-CNP4L3GF.js +0 -105
- package/dist/chunk-KSDSXJ34.js +0 -41
- package/dist/chunk-LBWRFZR3.cjs +0 -1681
- package/dist/chunk-OL6SHN3D.cjs +0 -44
- package/dist/chunk-S2XD75JM.js +0 -1637
- package/dist/chunk-SPGSO5SO.cjs +0 -1644
- package/dist/chunk-UE5XK2SY.js +0 -1673
- package/dist/chunk-WO72UBQD.cjs +0 -109
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
- package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
- package/dist/fhe-airdrop/airdrop.d.ts +0 -317
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
- package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
- package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
- package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
- package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
- package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +0 -51
- package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +0 -31
- package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
- package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
- package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7AFPOE7N_cjs = require('../../chunk-7AFPOE7N.cjs');
|
|
4
4
|
require('../../chunk-ZQUE2B3Q.cjs');
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
var
|
|
10
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-KFRDLKMA.cjs');
|
|
6
|
+
var chunkJQYC66TO_cjs = require('../../chunk-JQYC66TO.cjs');
|
|
7
|
+
var chunkWJLECC22_cjs = require('../../chunk-WJLECC22.cjs');
|
|
8
|
+
require('../../chunk-TEBM66WA.cjs');
|
|
9
|
+
var chunk3QHNYEQD_cjs = require('../../chunk-3QHNYEQD.cjs');
|
|
10
|
+
require('../../chunk-FAXIIH5R.cjs');
|
|
11
11
|
require('../../chunk-FWHYQZ5E.cjs');
|
|
12
|
-
var
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
require('../../chunk-
|
|
15
|
-
require('../../chunk-
|
|
16
|
-
|
|
12
|
+
var chunk6PXXGACR_cjs = require('../../chunk-6PXXGACR.cjs');
|
|
13
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
14
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
15
|
+
require('../../chunk-5576FRT3.cjs');
|
|
16
|
+
require('../../chunk-JK4XMMKM.cjs');
|
|
17
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
18
|
+
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
17
19
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
18
20
|
var reactQuery = require('@tanstack/react-query');
|
|
19
21
|
|
|
20
22
|
function useConfidentialVestingFactoryImplementation(options = {}) {
|
|
21
|
-
const { client, chainId, resolvedAddress } =
|
|
23
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
22
24
|
return reactQuery.useQuery({
|
|
23
|
-
queryKey:
|
|
25
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
24
26
|
queryFn: () => client.implementation(),
|
|
25
27
|
enabled: !!client,
|
|
26
28
|
staleTime: 0
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
31
|
function useFactoryDefaultGasFee(options = {}) {
|
|
30
|
-
const { client, chainId, resolvedAddress } =
|
|
32
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
31
33
|
return reactQuery.useQuery({
|
|
32
|
-
queryKey:
|
|
34
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
33
35
|
queryFn: () => client.defaultGasFee(),
|
|
34
36
|
enabled: !!client,
|
|
35
37
|
staleTime: 0
|
|
36
38
|
});
|
|
37
39
|
}
|
|
38
40
|
function useFactoryDefaultTokenFee(options = {}) {
|
|
39
|
-
const { client, chainId, resolvedAddress } =
|
|
41
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
40
42
|
return reactQuery.useQuery({
|
|
41
|
-
queryKey:
|
|
43
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:defaultTokenFee", chainId, resolvedAddress),
|
|
42
44
|
queryFn: () => client.defaultTokenFee(),
|
|
43
45
|
enabled: !!client,
|
|
44
46
|
staleTime: 0
|
|
45
47
|
});
|
|
46
48
|
}
|
|
47
49
|
function useFactoryDefaultFeeType(options = {}) {
|
|
48
|
-
const { client, chainId, resolvedAddress } =
|
|
50
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
49
51
|
return reactQuery.useQuery({
|
|
50
|
-
queryKey:
|
|
52
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:defaultFeeType", chainId, resolvedAddress),
|
|
51
53
|
queryFn: () => client.defaultFeeType(),
|
|
52
54
|
enabled: !!client,
|
|
53
55
|
staleTime: 0
|
|
54
56
|
});
|
|
55
57
|
}
|
|
56
58
|
function useFactoryFeeCollector(options = {}) {
|
|
57
|
-
const { client, chainId, resolvedAddress } =
|
|
59
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
58
60
|
return reactQuery.useQuery({
|
|
59
|
-
queryKey:
|
|
61
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
60
62
|
queryFn: () => client.feeCollector(),
|
|
61
63
|
enabled: !!client,
|
|
62
64
|
staleTime: 0
|
|
@@ -64,9 +66,9 @@ function useFactoryFeeCollector(options = {}) {
|
|
|
64
66
|
}
|
|
65
67
|
function useFactoryCustomFee(args = {}) {
|
|
66
68
|
const { creator, ...base } = args;
|
|
67
|
-
const { client, chainId, resolvedAddress } =
|
|
69
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(base);
|
|
68
70
|
return reactQuery.useQuery({
|
|
69
|
-
queryKey:
|
|
71
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
70
72
|
queryFn: () => client.getCustomFee(creator),
|
|
71
73
|
enabled: !!client && !!creator,
|
|
72
74
|
staleTime: 0
|
|
@@ -74,9 +76,9 @@ function useFactoryCustomFee(args = {}) {
|
|
|
74
76
|
}
|
|
75
77
|
function useFactoryInitCodeHash(args = {}) {
|
|
76
78
|
const { token, deployer, splitEnabled, pausableEnabled, ...base } = args;
|
|
77
|
-
const { client, chainId, resolvedAddress } =
|
|
79
|
+
const { client, chainId, resolvedAddress } = chunkJQYC66TO_cjs.useMemoFactoryClient(base);
|
|
78
80
|
return reactQuery.useQuery({
|
|
79
|
-
queryKey:
|
|
81
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey(
|
|
80
82
|
"factory:getInitCodeHash",
|
|
81
83
|
chainId,
|
|
82
84
|
resolvedAddress,
|
|
@@ -96,188 +98,188 @@ function useFactoryInitCodeHash(args = {}) {
|
|
|
96
98
|
});
|
|
97
99
|
}
|
|
98
100
|
function useCreateManagerAndGetAddress(options = {}) {
|
|
99
|
-
const { client, resolutionError } =
|
|
101
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
100
102
|
return reactQuery.useMutation({
|
|
101
103
|
mutationFn: async (args) => {
|
|
102
104
|
if (!client) {
|
|
103
|
-
throw resolutionError ?? new
|
|
105
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateManagerAndGetAddress", "factory");
|
|
104
106
|
}
|
|
105
107
|
return client.createManagerAndGetAddress(args);
|
|
106
108
|
}
|
|
107
109
|
});
|
|
108
110
|
}
|
|
109
111
|
function useCreateManager(options = {}) {
|
|
110
|
-
const { client, resolutionError } =
|
|
112
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
111
113
|
return reactQuery.useMutation({
|
|
112
114
|
mutationFn: async (args) => {
|
|
113
115
|
if (!client) {
|
|
114
|
-
throw resolutionError ?? new
|
|
116
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateManager", "factory");
|
|
115
117
|
}
|
|
116
118
|
return client.createManager(args);
|
|
117
119
|
}
|
|
118
120
|
});
|
|
119
121
|
}
|
|
120
122
|
function useSetDefaultGasFee(options = {}) {
|
|
121
|
-
const { client, resolutionError } =
|
|
123
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
122
124
|
return reactQuery.useMutation({
|
|
123
125
|
mutationFn: async ({ fee, account }) => {
|
|
124
126
|
if (!client)
|
|
125
|
-
throw resolutionError ?? new
|
|
127
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetDefaultGasFee", "factory");
|
|
126
128
|
return client.setDefaultGasFee(fee, account);
|
|
127
129
|
}
|
|
128
130
|
});
|
|
129
131
|
}
|
|
130
132
|
function useSetDefaultTokenFee(options = {}) {
|
|
131
|
-
const { client, resolutionError } =
|
|
133
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
132
134
|
return reactQuery.useMutation({
|
|
133
135
|
mutationFn: async ({ feeBps, account }) => {
|
|
134
136
|
if (!client)
|
|
135
|
-
throw resolutionError ?? new
|
|
137
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetDefaultTokenFee", "factory");
|
|
136
138
|
return client.setDefaultTokenFee(feeBps, account);
|
|
137
139
|
}
|
|
138
140
|
});
|
|
139
141
|
}
|
|
140
142
|
function useSetDefaultFeeType(options = {}) {
|
|
141
|
-
const { client, resolutionError } =
|
|
143
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
142
144
|
return reactQuery.useMutation({
|
|
143
145
|
mutationFn: async ({ feeType, account }) => {
|
|
144
146
|
if (!client)
|
|
145
|
-
throw resolutionError ?? new
|
|
147
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetDefaultFeeType", "factory");
|
|
146
148
|
return client.setDefaultFeeType(feeType, account);
|
|
147
149
|
}
|
|
148
150
|
});
|
|
149
151
|
}
|
|
150
152
|
function useResetGasFee(options = {}) {
|
|
151
|
-
const { client, resolutionError } =
|
|
153
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
152
154
|
return reactQuery.useMutation({
|
|
153
155
|
mutationFn: async (args) => {
|
|
154
|
-
if (!client) throw resolutionError ?? new
|
|
156
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useResetGasFee", "factory");
|
|
155
157
|
return client.resetGasFee(args?.account);
|
|
156
158
|
}
|
|
157
159
|
});
|
|
158
160
|
}
|
|
159
161
|
function useResetTokenFee(options = {}) {
|
|
160
|
-
const { client, resolutionError } =
|
|
162
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
161
163
|
return reactQuery.useMutation({
|
|
162
164
|
mutationFn: async (args) => {
|
|
163
|
-
if (!client) throw resolutionError ?? new
|
|
165
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useResetTokenFee", "factory");
|
|
164
166
|
return client.resetTokenFee(args?.account);
|
|
165
167
|
}
|
|
166
168
|
});
|
|
167
169
|
}
|
|
168
170
|
function useSetCustomFee(options = {}) {
|
|
169
|
-
const { client, resolutionError } =
|
|
171
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
170
172
|
return reactQuery.useMutation({
|
|
171
173
|
mutationFn: async ({ creator, feeType, gasFee, tokenFee, account }) => {
|
|
172
|
-
if (!client) throw resolutionError ?? new
|
|
174
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
173
175
|
return client.setCustomFee({ creator, feeType, gasFee, tokenFee }, account);
|
|
174
176
|
}
|
|
175
177
|
});
|
|
176
178
|
}
|
|
177
179
|
function useDisableCustomFee(options = {}) {
|
|
178
|
-
const { client, resolutionError } =
|
|
180
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
179
181
|
return reactQuery.useMutation({
|
|
180
182
|
mutationFn: async ({ creator, account }) => {
|
|
181
183
|
if (!client)
|
|
182
|
-
throw resolutionError ?? new
|
|
184
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDisableCustomFee", "factory");
|
|
183
185
|
return client.disableCustomFee(creator, account);
|
|
184
186
|
}
|
|
185
187
|
});
|
|
186
188
|
}
|
|
187
189
|
function useSetFeeCollector(options = {}) {
|
|
188
|
-
const { client, resolutionError } =
|
|
190
|
+
const { client, resolutionError } = chunkJQYC66TO_cjs.useMemoFactoryClient(options);
|
|
189
191
|
return reactQuery.useMutation({
|
|
190
192
|
mutationFn: async ({ newCollector, account }) => {
|
|
191
|
-
if (!client) throw resolutionError ?? new
|
|
193
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
192
194
|
return client.setFeeCollector(newCollector, account);
|
|
193
195
|
}
|
|
194
196
|
});
|
|
195
197
|
}
|
|
196
198
|
function useManagerToken(options) {
|
|
197
|
-
const { client, chainId } =
|
|
199
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
198
200
|
return reactQuery.useQuery({
|
|
199
|
-
queryKey:
|
|
201
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:TOKEN_ADDRESS", chainId, options.address),
|
|
200
202
|
queryFn: () => client.token(),
|
|
201
203
|
enabled: !!client,
|
|
202
204
|
staleTime: 0
|
|
203
205
|
});
|
|
204
206
|
}
|
|
205
207
|
function useManagerFeeType(options) {
|
|
206
|
-
const { client, chainId } =
|
|
208
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
207
209
|
return reactQuery.useQuery({
|
|
208
|
-
queryKey:
|
|
210
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:FEE_TYPE", chainId, options.address),
|
|
209
211
|
queryFn: () => client.feeType(),
|
|
210
212
|
enabled: !!client,
|
|
211
213
|
staleTime: 0
|
|
212
214
|
});
|
|
213
215
|
}
|
|
214
216
|
function useManagerFee(options) {
|
|
215
|
-
const { client, chainId } =
|
|
217
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
216
218
|
return reactQuery.useQuery({
|
|
217
|
-
queryKey:
|
|
219
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:FEE", chainId, options.address),
|
|
218
220
|
queryFn: () => client.fee(),
|
|
219
221
|
enabled: !!client,
|
|
220
222
|
staleTime: 0
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
225
|
function useManagerFeeInfo(options) {
|
|
224
|
-
const { client, chainId } =
|
|
226
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
225
227
|
return reactQuery.useQuery({
|
|
226
|
-
queryKey:
|
|
228
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getFeeInfo", chainId, options.address),
|
|
227
229
|
queryFn: () => client.getFeeInfo(),
|
|
228
230
|
enabled: !!client,
|
|
229
231
|
staleTime: 0
|
|
230
232
|
});
|
|
231
233
|
}
|
|
232
234
|
function useManagerDeploymentBlockNumber(options) {
|
|
233
|
-
const { client, chainId } =
|
|
235
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
234
236
|
return reactQuery.useQuery({
|
|
235
|
-
queryKey:
|
|
237
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:DEPLOYMENT_BLOCK_NUMBER", chainId, options.address),
|
|
236
238
|
queryFn: () => client.deploymentBlockNumber(),
|
|
237
239
|
enabled: !!client,
|
|
238
240
|
staleTime: 0
|
|
239
241
|
});
|
|
240
242
|
}
|
|
241
243
|
function useManagerIsSplitEnabled(options) {
|
|
242
|
-
const { client, chainId } =
|
|
244
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
243
245
|
return reactQuery.useQuery({
|
|
244
|
-
queryKey:
|
|
246
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:isSplitEnabled", chainId, options.address),
|
|
245
247
|
queryFn: () => client.isSplitEnabled(),
|
|
246
248
|
enabled: !!client,
|
|
247
249
|
staleTime: 0
|
|
248
250
|
});
|
|
249
251
|
}
|
|
250
252
|
function useManagerIsPausable(options) {
|
|
251
|
-
const { client, chainId } =
|
|
253
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
252
254
|
return reactQuery.useQuery({
|
|
253
|
-
queryKey:
|
|
255
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:isPausable", chainId, options.address),
|
|
254
256
|
queryFn: () => client.isPausable(),
|
|
255
257
|
enabled: !!client,
|
|
256
258
|
staleTime: 0
|
|
257
259
|
});
|
|
258
260
|
}
|
|
259
261
|
function useManagerPaused(options) {
|
|
260
|
-
const { client, chainId } =
|
|
262
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
261
263
|
return reactQuery.useQuery({
|
|
262
|
-
queryKey:
|
|
264
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:paused", chainId, options.address),
|
|
263
265
|
queryFn: () => client.paused(),
|
|
264
266
|
enabled: !!client,
|
|
265
267
|
staleTime: 0
|
|
266
268
|
});
|
|
267
269
|
}
|
|
268
270
|
function useManagerMaxBatchSize(options) {
|
|
269
|
-
const { client, chainId } =
|
|
271
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
270
272
|
return reactQuery.useQuery({
|
|
271
|
-
queryKey:
|
|
273
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:maxBatchSize", chainId, options.address),
|
|
272
274
|
queryFn: () => client.maxBatchSize(),
|
|
273
275
|
enabled: !!client,
|
|
274
276
|
staleTime: 0
|
|
275
277
|
});
|
|
276
278
|
}
|
|
277
279
|
function useManagerMaxRevokeBatchSize(options) {
|
|
278
|
-
const { client, chainId } =
|
|
280
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
279
281
|
return reactQuery.useQuery({
|
|
280
|
-
queryKey:
|
|
282
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:maxRevokeBatchSize", chainId, options.address),
|
|
281
283
|
queryFn: () => client.maxRevokeBatchSize(),
|
|
282
284
|
enabled: !!client,
|
|
283
285
|
staleTime: 0
|
|
@@ -285,27 +287,27 @@ function useManagerMaxRevokeBatchSize(options) {
|
|
|
285
287
|
}
|
|
286
288
|
function useVestingInfo(args) {
|
|
287
289
|
const { vestingId, ...base } = args;
|
|
288
|
-
const { client, chainId } =
|
|
290
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
289
291
|
return reactQuery.useQuery({
|
|
290
|
-
queryKey:
|
|
292
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getVestingInfo", chainId, base.address, vestingId),
|
|
291
293
|
queryFn: () => client.getVestingInfo(vestingId),
|
|
292
294
|
enabled: !!client && !!vestingId,
|
|
293
295
|
staleTime: 0
|
|
294
296
|
});
|
|
295
297
|
}
|
|
296
298
|
function useAllRecipients(options) {
|
|
297
|
-
const { client, chainId } =
|
|
299
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
298
300
|
return reactQuery.useQuery({
|
|
299
|
-
queryKey:
|
|
301
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getAllRecipients", chainId, options.address),
|
|
300
302
|
queryFn: () => client.getAllRecipients(),
|
|
301
303
|
enabled: !!client,
|
|
302
304
|
staleTime: 0
|
|
303
305
|
});
|
|
304
306
|
}
|
|
305
307
|
function useAllRecipientsLength(options) {
|
|
306
|
-
const { client, chainId } =
|
|
308
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
307
309
|
return reactQuery.useQuery({
|
|
308
|
-
queryKey:
|
|
310
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getAllRecipientsLength", chainId, options.address),
|
|
309
311
|
queryFn: () => client.getAllRecipientsLength(),
|
|
310
312
|
enabled: !!client,
|
|
311
313
|
staleTime: 0
|
|
@@ -313,9 +315,9 @@ function useAllRecipientsLength(options) {
|
|
|
313
315
|
}
|
|
314
316
|
function useAllRecipientsSliced(args) {
|
|
315
317
|
const { start, end, ...base } = args;
|
|
316
|
-
const { client, chainId } =
|
|
318
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
317
319
|
return reactQuery.useQuery({
|
|
318
|
-
queryKey:
|
|
320
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getAllRecipientsSliced", chainId, base.address, start, end),
|
|
319
321
|
queryFn: () => client.getAllRecipientsSliced(start, end),
|
|
320
322
|
enabled: !!client && start !== void 0 && end !== void 0,
|
|
321
323
|
staleTime: 0
|
|
@@ -323,9 +325,9 @@ function useAllRecipientsSliced(args) {
|
|
|
323
325
|
}
|
|
324
326
|
function useIsRecipient(args) {
|
|
325
327
|
const { account, ...base } = args;
|
|
326
|
-
const { client, chainId } =
|
|
328
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
327
329
|
return reactQuery.useQuery({
|
|
328
|
-
queryKey:
|
|
330
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:isRecipient", chainId, base.address, account),
|
|
329
331
|
queryFn: () => client.isRecipient(account),
|
|
330
332
|
enabled: !!client && !!account,
|
|
331
333
|
staleTime: 0
|
|
@@ -333,9 +335,9 @@ function useIsRecipient(args) {
|
|
|
333
335
|
}
|
|
334
336
|
function usePreflightCreateVesting(args) {
|
|
335
337
|
const { params, creator, ...base } = args;
|
|
336
|
-
const { client, chainId } =
|
|
338
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
337
339
|
return reactQuery.useQuery({
|
|
338
|
-
queryKey:
|
|
340
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey(
|
|
339
341
|
"manager:preflightCreateVesting",
|
|
340
342
|
chainId,
|
|
341
343
|
base.address,
|
|
@@ -349,9 +351,9 @@ function usePreflightCreateVesting(args) {
|
|
|
349
351
|
}
|
|
350
352
|
function useRecipientVestings(args) {
|
|
351
353
|
const { recipient, ...base } = args;
|
|
352
|
-
const { client, chainId } =
|
|
354
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
353
355
|
return reactQuery.useQuery({
|
|
354
|
-
queryKey:
|
|
356
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getAllRecipientVestings", chainId, base.address, recipient),
|
|
355
357
|
queryFn: () => client.getAllRecipientVestings(recipient),
|
|
356
358
|
enabled: !!client && !!recipient,
|
|
357
359
|
staleTime: 0
|
|
@@ -359,9 +361,9 @@ function useRecipientVestings(args) {
|
|
|
359
361
|
}
|
|
360
362
|
function useRecipientVestingsLength(args) {
|
|
361
363
|
const { recipient, ...base } = args;
|
|
362
|
-
const { client, chainId } =
|
|
364
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
363
365
|
return reactQuery.useQuery({
|
|
364
|
-
queryKey:
|
|
366
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey(
|
|
365
367
|
"manager:getAllRecipientVestingsLength",
|
|
366
368
|
chainId,
|
|
367
369
|
base.address,
|
|
@@ -374,9 +376,9 @@ function useRecipientVestingsLength(args) {
|
|
|
374
376
|
}
|
|
375
377
|
function useRecipientVestingsSliced(args) {
|
|
376
378
|
const { recipient, start, end, ...base } = args;
|
|
377
|
-
const { client, chainId } =
|
|
379
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
378
380
|
return reactQuery.useQuery({
|
|
379
|
-
queryKey:
|
|
381
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey(
|
|
380
382
|
"manager:getAllRecipientVestingsSliced",
|
|
381
383
|
chainId,
|
|
382
384
|
base.address,
|
|
@@ -391,9 +393,9 @@ function useRecipientVestingsSliced(args) {
|
|
|
391
393
|
}
|
|
392
394
|
function usePendingVestingTransfer(args) {
|
|
393
395
|
const { vestingId, ...base } = args;
|
|
394
|
-
const { client, chainId } =
|
|
396
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
395
397
|
return reactQuery.useQuery({
|
|
396
|
-
queryKey:
|
|
398
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:getPendingVestingTransfer", chainId, base.address, vestingId),
|
|
397
399
|
queryFn: () => client.getPendingVestingTransfer(vestingId),
|
|
398
400
|
enabled: !!client && !!vestingId,
|
|
399
401
|
staleTime: 0
|
|
@@ -401,392 +403,392 @@ function usePendingVestingTransfer(args) {
|
|
|
401
403
|
}
|
|
402
404
|
function useHasRole(args) {
|
|
403
405
|
const { role, account, ...base } = args;
|
|
404
|
-
const { client, chainId } =
|
|
406
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(base);
|
|
405
407
|
return reactQuery.useQuery({
|
|
406
|
-
queryKey:
|
|
408
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:hasRole", chainId, base.address, role, account),
|
|
407
409
|
queryFn: () => client.hasRole(role, account),
|
|
408
410
|
enabled: !!client && !!role && !!account,
|
|
409
411
|
staleTime: 0
|
|
410
412
|
});
|
|
411
413
|
}
|
|
412
414
|
function useRoleConstants(options) {
|
|
413
|
-
const { client, chainId } =
|
|
415
|
+
const { client, chainId } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
414
416
|
return reactQuery.useQuery({
|
|
415
|
-
queryKey:
|
|
417
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey("manager:roleConstants", chainId, options.address),
|
|
416
418
|
queryFn: () => client.roleConstants(),
|
|
417
419
|
enabled: !!client,
|
|
418
420
|
staleTime: 0
|
|
419
421
|
});
|
|
420
422
|
}
|
|
421
423
|
function useAccessVestedAmount(options) {
|
|
422
|
-
const { client } =
|
|
424
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
423
425
|
return reactQuery.useMutation({
|
|
424
426
|
mutationFn: async (args) => {
|
|
425
|
-
if (!client) throw new
|
|
427
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessVestedAmount", "manager");
|
|
426
428
|
return client.getVestedAmount(args);
|
|
427
429
|
}
|
|
428
430
|
});
|
|
429
431
|
}
|
|
430
432
|
var useGetVestedAmount = useAccessVestedAmount;
|
|
431
433
|
function useAccessClaimableAmount(options) {
|
|
432
|
-
const { client } =
|
|
434
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
433
435
|
return reactQuery.useMutation({
|
|
434
436
|
mutationFn: async (args) => {
|
|
435
|
-
if (!client) throw new
|
|
437
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessClaimableAmount", "manager");
|
|
436
438
|
return client.getClaimableAmount(args);
|
|
437
439
|
}
|
|
438
440
|
});
|
|
439
441
|
}
|
|
440
442
|
var useGetClaimableAmount = useAccessClaimableAmount;
|
|
441
443
|
function useAccessTotalAllocation(options) {
|
|
442
|
-
const { client } =
|
|
444
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
443
445
|
return reactQuery.useMutation({
|
|
444
446
|
mutationFn: async (args) => {
|
|
445
|
-
if (!client) throw new
|
|
447
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessTotalAllocation", "manager");
|
|
446
448
|
return client.getTotalAllocation(args);
|
|
447
449
|
}
|
|
448
450
|
});
|
|
449
451
|
}
|
|
450
452
|
var useGetTotalAllocation = useAccessTotalAllocation;
|
|
451
453
|
function useAccessSettledAmount(options) {
|
|
452
|
-
const { client } =
|
|
454
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
453
455
|
return reactQuery.useMutation({
|
|
454
456
|
mutationFn: async (args) => {
|
|
455
|
-
if (!client) throw new
|
|
457
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAccessSettledAmount", "manager");
|
|
456
458
|
return client.getSettledAmount(args);
|
|
457
459
|
}
|
|
458
460
|
});
|
|
459
461
|
}
|
|
460
462
|
var useGetSettledAmount = useAccessSettledAmount;
|
|
461
463
|
function useAdminGetVestedAmount(options) {
|
|
462
|
-
const { client } =
|
|
464
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
463
465
|
return reactQuery.useMutation({
|
|
464
466
|
mutationFn: async (args) => {
|
|
465
|
-
if (!client) throw new
|
|
467
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetVestedAmount", "manager");
|
|
466
468
|
return client.adminGetVestedAmount(args);
|
|
467
469
|
}
|
|
468
470
|
});
|
|
469
471
|
}
|
|
470
472
|
function useAdminGetClaimableAmount(options) {
|
|
471
|
-
const { client } =
|
|
473
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
472
474
|
return reactQuery.useMutation({
|
|
473
475
|
mutationFn: async (args) => {
|
|
474
|
-
if (!client) throw new
|
|
476
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetClaimableAmount", "manager");
|
|
475
477
|
return client.adminGetClaimableAmount(args);
|
|
476
478
|
}
|
|
477
479
|
});
|
|
478
480
|
}
|
|
479
481
|
function useAdminGetTotalAllocation(options) {
|
|
480
|
-
const { client } =
|
|
482
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
481
483
|
return reactQuery.useMutation({
|
|
482
484
|
mutationFn: async (args) => {
|
|
483
|
-
if (!client) throw new
|
|
485
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetTotalAllocation", "manager");
|
|
484
486
|
return client.adminGetTotalAllocation(args);
|
|
485
487
|
}
|
|
486
488
|
});
|
|
487
489
|
}
|
|
488
490
|
function useAdminGetSettledAmount(options) {
|
|
489
|
-
const { client } =
|
|
491
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
490
492
|
return reactQuery.useMutation({
|
|
491
493
|
mutationFn: async (args) => {
|
|
492
|
-
if (!client) throw new
|
|
494
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetSettledAmount", "manager");
|
|
493
495
|
return client.adminGetSettledAmount(args);
|
|
494
496
|
}
|
|
495
497
|
});
|
|
496
498
|
}
|
|
497
499
|
function useAdminGetTokenBalance(options) {
|
|
498
|
-
const { client } =
|
|
500
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
499
501
|
return reactQuery.useMutation({
|
|
500
502
|
mutationFn: async (args) => {
|
|
501
|
-
if (!client) throw new
|
|
503
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetTokenBalance", "manager");
|
|
502
504
|
return client.adminGetTokenBalance(args);
|
|
503
505
|
}
|
|
504
506
|
});
|
|
505
507
|
}
|
|
506
508
|
function useCreateVesting(options) {
|
|
507
|
-
const { client } =
|
|
509
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
508
510
|
return reactQuery.useMutation({
|
|
509
511
|
mutationFn: async (args) => {
|
|
510
|
-
if (!client) throw new
|
|
512
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useCreateVesting", "manager");
|
|
511
513
|
return client.createVesting(args);
|
|
512
514
|
}
|
|
513
515
|
});
|
|
514
516
|
}
|
|
515
517
|
function useBatchCreateVesting(options) {
|
|
516
|
-
const { client } =
|
|
518
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
517
519
|
return reactQuery.useMutation({
|
|
518
520
|
mutationFn: async (args) => {
|
|
519
|
-
if (!client) throw new
|
|
521
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchCreateVesting", "manager");
|
|
520
522
|
return client.batchCreateVesting(args);
|
|
521
523
|
}
|
|
522
524
|
});
|
|
523
525
|
}
|
|
524
526
|
function useClaim(options) {
|
|
525
|
-
const { client } =
|
|
527
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
526
528
|
return reactQuery.useMutation({
|
|
527
529
|
mutationFn: async (args) => {
|
|
528
|
-
if (!client) throw new
|
|
530
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useClaim", "manager");
|
|
529
531
|
return client.claim(args);
|
|
530
532
|
}
|
|
531
533
|
});
|
|
532
534
|
}
|
|
533
535
|
function useAdminClaim(options) {
|
|
534
|
-
const { client } =
|
|
536
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
535
537
|
return reactQuery.useMutation({
|
|
536
538
|
mutationFn: async (args) => {
|
|
537
|
-
if (!client) throw new
|
|
539
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminClaim", "manager");
|
|
538
540
|
return client.adminClaim(args);
|
|
539
541
|
}
|
|
540
542
|
});
|
|
541
543
|
}
|
|
542
544
|
function usePartialClaim(options) {
|
|
543
|
-
const { client } =
|
|
545
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
544
546
|
return reactQuery.useMutation({
|
|
545
547
|
mutationFn: async (args) => {
|
|
546
|
-
if (!client) throw new
|
|
548
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("usePartialClaim", "manager");
|
|
547
549
|
return client.partialClaim(args);
|
|
548
550
|
}
|
|
549
551
|
});
|
|
550
552
|
}
|
|
551
553
|
function useAdminPartialClaim(options) {
|
|
552
|
-
const { client } =
|
|
554
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
553
555
|
return reactQuery.useMutation({
|
|
554
556
|
mutationFn: async (args) => {
|
|
555
|
-
if (!client) throw new
|
|
557
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminPartialClaim", "manager");
|
|
556
558
|
return client.adminPartialClaim(args);
|
|
557
559
|
}
|
|
558
560
|
});
|
|
559
561
|
}
|
|
560
562
|
function useRevokeVesting(options) {
|
|
561
|
-
const { client } =
|
|
563
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
562
564
|
return reactQuery.useMutation({
|
|
563
565
|
mutationFn: async ({ vestingId, account }) => {
|
|
564
|
-
if (!client) throw new
|
|
566
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeVesting", "manager");
|
|
565
567
|
return client.revokeVesting(vestingId, account);
|
|
566
568
|
}
|
|
567
569
|
});
|
|
568
570
|
}
|
|
569
571
|
function useBatchRevokeVesting(options) {
|
|
570
|
-
const { client } =
|
|
572
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
571
573
|
return reactQuery.useMutation({
|
|
572
574
|
mutationFn: async ({ vestingIds, account }) => {
|
|
573
|
-
if (!client) throw new
|
|
575
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchRevokeVesting", "manager");
|
|
574
576
|
return client.batchRevokeVesting(vestingIds, account);
|
|
575
577
|
}
|
|
576
578
|
});
|
|
577
579
|
}
|
|
578
580
|
function useSplitVesting(options) {
|
|
579
|
-
const { client } =
|
|
581
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
580
582
|
return reactQuery.useMutation({
|
|
581
583
|
mutationFn: async (args) => {
|
|
582
|
-
if (!client) throw new
|
|
584
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSplitVesting", "manager");
|
|
583
585
|
return client.splitVesting(args);
|
|
584
586
|
}
|
|
585
587
|
});
|
|
586
588
|
}
|
|
587
589
|
function useInitiateVestingTransfer(options) {
|
|
588
|
-
const { client } =
|
|
590
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
589
591
|
return reactQuery.useMutation({
|
|
590
592
|
mutationFn: async (args) => {
|
|
591
|
-
if (!client) throw new
|
|
593
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useInitiateVestingTransfer", "manager");
|
|
592
594
|
return client.initiateVestingTransfer(args);
|
|
593
595
|
}
|
|
594
596
|
});
|
|
595
597
|
}
|
|
596
598
|
function useAcceptVestingTransfer(options) {
|
|
597
|
-
const { client } =
|
|
599
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
598
600
|
return reactQuery.useMutation({
|
|
599
601
|
mutationFn: async ({ vestingId, account }) => {
|
|
600
|
-
if (!client) throw new
|
|
602
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAcceptVestingTransfer", "manager");
|
|
601
603
|
return client.acceptVestingTransfer(vestingId, account);
|
|
602
604
|
}
|
|
603
605
|
});
|
|
604
606
|
}
|
|
605
607
|
function useCancelVestingTransfer(options) {
|
|
606
|
-
const { client } =
|
|
608
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
607
609
|
return reactQuery.useMutation({
|
|
608
610
|
mutationFn: async ({ vestingId, account }) => {
|
|
609
|
-
if (!client) throw new
|
|
611
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useCancelVestingTransfer", "manager");
|
|
610
612
|
return client.cancelVestingTransfer(vestingId, account);
|
|
611
613
|
}
|
|
612
614
|
});
|
|
613
615
|
}
|
|
614
616
|
function useDirectVestingTransfer(options) {
|
|
615
|
-
const { client } =
|
|
617
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
616
618
|
return reactQuery.useMutation({
|
|
617
619
|
mutationFn: async ({ vestingId, newOwner, account }) => {
|
|
618
|
-
if (!client) throw new
|
|
620
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDirectVestingTransfer", "manager");
|
|
619
621
|
return client.directVestingTransfer(vestingId, newOwner, account);
|
|
620
622
|
}
|
|
621
623
|
});
|
|
622
624
|
}
|
|
623
625
|
function useDiscloseToParty(options) {
|
|
624
|
-
const { client } =
|
|
626
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
625
627
|
return reactQuery.useMutation({
|
|
626
628
|
mutationFn: async (args) => {
|
|
627
|
-
if (!client) throw new
|
|
629
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseToParty", "manager");
|
|
628
630
|
return client.discloseToParty(args);
|
|
629
631
|
}
|
|
630
632
|
});
|
|
631
633
|
}
|
|
632
634
|
function useBatchDiscloseToParty(options) {
|
|
633
|
-
const { client } =
|
|
635
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
634
636
|
return reactQuery.useMutation({
|
|
635
637
|
mutationFn: async (args) => {
|
|
636
|
-
if (!client) throw new
|
|
638
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseToParty", "manager");
|
|
637
639
|
return client.batchDiscloseToParty(args);
|
|
638
640
|
}
|
|
639
641
|
});
|
|
640
642
|
}
|
|
641
643
|
function useAdminDiscloseToParty(options) {
|
|
642
|
-
const { client } =
|
|
644
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
643
645
|
return reactQuery.useMutation({
|
|
644
646
|
mutationFn: async (args) => {
|
|
645
|
-
if (!client) throw new
|
|
647
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseToParty", "manager");
|
|
646
648
|
return client.adminDiscloseToParty(args);
|
|
647
649
|
}
|
|
648
650
|
});
|
|
649
651
|
}
|
|
650
652
|
function useAdminBatchDiscloseToParty(options) {
|
|
651
|
-
const { client } =
|
|
653
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
652
654
|
return reactQuery.useMutation({
|
|
653
655
|
mutationFn: async (args) => {
|
|
654
|
-
if (!client) throw new
|
|
656
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseToParty", "manager");
|
|
655
657
|
return client.adminBatchDiscloseToParty(args);
|
|
656
658
|
}
|
|
657
659
|
});
|
|
658
660
|
}
|
|
659
661
|
function useDiscloseHandleToParty(options) {
|
|
660
|
-
const { client } =
|
|
662
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
661
663
|
return reactQuery.useMutation({
|
|
662
664
|
mutationFn: async ({ handle, party, account }) => {
|
|
663
|
-
if (!client) throw new
|
|
665
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "manager");
|
|
664
666
|
return client.discloseHandleToParty(handle, party, account);
|
|
665
667
|
}
|
|
666
668
|
});
|
|
667
669
|
}
|
|
668
670
|
function useBatchDiscloseHandlesToParty(options) {
|
|
669
|
-
const { client } =
|
|
671
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
670
672
|
return reactQuery.useMutation({
|
|
671
673
|
mutationFn: async ({ handles, party, account }) => {
|
|
672
|
-
if (!client) throw new
|
|
674
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "manager");
|
|
673
675
|
return client.batchDiscloseHandlesToParty(handles, party, account);
|
|
674
676
|
}
|
|
675
677
|
});
|
|
676
678
|
}
|
|
677
679
|
function useWithdrawAdmin(options) {
|
|
678
|
-
const { client } =
|
|
680
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
679
681
|
return reactQuery.useMutation({
|
|
680
682
|
mutationFn: async (args) => {
|
|
681
|
-
if (!client) throw new
|
|
683
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawAdmin", "manager");
|
|
682
684
|
return client.withdrawAdmin(args);
|
|
683
685
|
}
|
|
684
686
|
});
|
|
685
687
|
}
|
|
686
688
|
function useWithdrawOtherToken(options) {
|
|
687
|
-
const { client } =
|
|
689
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
688
690
|
return reactQuery.useMutation({
|
|
689
691
|
mutationFn: async ({ token, to, account }) => {
|
|
690
|
-
if (!client) throw new
|
|
692
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawOtherToken", "manager");
|
|
691
693
|
return client.withdrawOtherToken(token, to, account);
|
|
692
694
|
}
|
|
693
695
|
});
|
|
694
696
|
}
|
|
695
697
|
function useWithdrawOtherConfidentialToken(options) {
|
|
696
|
-
const { client } =
|
|
698
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
697
699
|
return reactQuery.useMutation({
|
|
698
700
|
mutationFn: async ({ token, to, account }) => {
|
|
699
|
-
if (!client) throw new
|
|
701
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "manager");
|
|
700
702
|
return client.withdrawOtherConfidentialToken(token, to, account);
|
|
701
703
|
}
|
|
702
704
|
});
|
|
703
705
|
}
|
|
704
706
|
function useWithdrawGasFee(options) {
|
|
705
|
-
const { client } =
|
|
707
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
706
708
|
return reactQuery.useMutation({
|
|
707
709
|
mutationFn: async ({ to, amount, account }) => {
|
|
708
|
-
if (!client) throw new
|
|
710
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "manager");
|
|
709
711
|
return client.withdrawGasFee(to, amount, account);
|
|
710
712
|
}
|
|
711
713
|
});
|
|
712
714
|
}
|
|
713
715
|
function useWithdrawTokenFee(options) {
|
|
714
|
-
const { client } =
|
|
716
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
715
717
|
return reactQuery.useMutation({
|
|
716
718
|
mutationFn: async (args) => {
|
|
717
|
-
if (!client) throw new
|
|
719
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawTokenFee", "manager");
|
|
718
720
|
return client.withdrawTokenFee(args);
|
|
719
721
|
}
|
|
720
722
|
});
|
|
721
723
|
}
|
|
722
724
|
function useSetMaxBatchSize(options) {
|
|
723
|
-
const { client } =
|
|
725
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
724
726
|
return reactQuery.useMutation({
|
|
725
727
|
mutationFn: async ({ newMax, account }) => {
|
|
726
|
-
if (!client) throw new
|
|
728
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSize", "manager");
|
|
727
729
|
return client.setMaxBatchSize(newMax, account);
|
|
728
730
|
}
|
|
729
731
|
});
|
|
730
732
|
}
|
|
731
733
|
function useSetMaxRevokeBatchSize(options) {
|
|
732
|
-
const { client } =
|
|
734
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
733
735
|
return reactQuery.useMutation({
|
|
734
736
|
mutationFn: async ({ newMax, account }) => {
|
|
735
|
-
if (!client) throw new
|
|
737
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useSetMaxRevokeBatchSize", "manager");
|
|
736
738
|
return client.setMaxRevokeBatchSize(newMax, account);
|
|
737
739
|
}
|
|
738
740
|
});
|
|
739
741
|
}
|
|
740
742
|
function useTransferFeeCollectorRole(options) {
|
|
741
|
-
const { client } =
|
|
743
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
742
744
|
return reactQuery.useMutation({
|
|
743
745
|
mutationFn: async ({ newCollector, account }) => {
|
|
744
|
-
if (!client) throw new
|
|
746
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useTransferFeeCollectorRole", "manager");
|
|
745
747
|
return client.transferFeeCollectorRole(newCollector, account);
|
|
746
748
|
}
|
|
747
749
|
});
|
|
748
750
|
}
|
|
749
751
|
function usePause(options) {
|
|
750
|
-
const { client } =
|
|
752
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
751
753
|
return reactQuery.useMutation({
|
|
752
754
|
mutationFn: async (args) => {
|
|
753
|
-
if (!client) throw new
|
|
755
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("usePause", "manager");
|
|
754
756
|
return client.pause(args?.account);
|
|
755
757
|
}
|
|
756
758
|
});
|
|
757
759
|
}
|
|
758
760
|
function useUnpause(options) {
|
|
759
|
-
const { client } =
|
|
761
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
760
762
|
return reactQuery.useMutation({
|
|
761
763
|
mutationFn: async (args) => {
|
|
762
|
-
if (!client) throw new
|
|
764
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useUnpause", "manager");
|
|
763
765
|
return client.unpause(args?.account);
|
|
764
766
|
}
|
|
765
767
|
});
|
|
766
768
|
}
|
|
767
769
|
function useGrantRole(options) {
|
|
768
|
-
const { client } =
|
|
770
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
769
771
|
return reactQuery.useMutation({
|
|
770
772
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
771
|
-
if (!client) throw new
|
|
773
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useGrantRole", "manager");
|
|
772
774
|
return client.grantRole(role, accountTarget, account);
|
|
773
775
|
}
|
|
774
776
|
});
|
|
775
777
|
}
|
|
776
778
|
function useRevokeRole(options) {
|
|
777
|
-
const { client } =
|
|
779
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
778
780
|
return reactQuery.useMutation({
|
|
779
781
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
780
|
-
if (!client) throw new
|
|
782
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeRole", "manager");
|
|
781
783
|
return client.revokeRole(role, accountTarget, account);
|
|
782
784
|
}
|
|
783
785
|
});
|
|
784
786
|
}
|
|
785
787
|
function useRenounceRole(options) {
|
|
786
|
-
const { client } =
|
|
788
|
+
const { client } = chunkJQYC66TO_cjs.useMemoManagerClient(options);
|
|
787
789
|
return reactQuery.useMutation({
|
|
788
790
|
mutationFn: async ({ role, callerConfirm, account }) => {
|
|
789
|
-
if (!client) throw new
|
|
791
|
+
if (!client) throw new chunk67OV5CX2_cjs.MissingClientError("useRenounceRole", "manager");
|
|
790
792
|
return client.renounceRole(role, callerConfirm, account);
|
|
791
793
|
}
|
|
792
794
|
});
|
|
@@ -794,219 +796,219 @@ function useRenounceRole(options) {
|
|
|
794
796
|
|
|
795
797
|
Object.defineProperty(exports, "useEnsureOperator", {
|
|
796
798
|
enumerable: true,
|
|
797
|
-
get: function () { return
|
|
799
|
+
get: function () { return chunk7AFPOE7N_cjs.useEnsureOperator; }
|
|
798
800
|
});
|
|
799
801
|
Object.defineProperty(exports, "useIsOperator", {
|
|
800
802
|
enumerable: true,
|
|
801
|
-
get: function () { return
|
|
803
|
+
get: function () { return chunk7AFPOE7N_cjs.useIsOperator; }
|
|
802
804
|
});
|
|
803
805
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
804
806
|
enumerable: true,
|
|
805
|
-
get: function () { return
|
|
807
|
+
get: function () { return chunkWJLECC22_cjs.ClaimLockedError; }
|
|
806
808
|
});
|
|
807
809
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
808
810
|
enumerable: true,
|
|
809
|
-
get: function () { return
|
|
811
|
+
get: function () { return chunkWJLECC22_cjs.NoPendingTransferError; }
|
|
810
812
|
});
|
|
811
813
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
812
814
|
enumerable: true,
|
|
813
|
-
get: function () { return
|
|
815
|
+
get: function () { return chunkWJLECC22_cjs.NotPendingRecipientError; }
|
|
814
816
|
});
|
|
815
817
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
816
818
|
enumerable: true,
|
|
817
|
-
get: function () { return
|
|
819
|
+
get: function () { return chunkWJLECC22_cjs.NotVestingRecipientError; }
|
|
818
820
|
});
|
|
819
821
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
820
822
|
enumerable: true,
|
|
821
|
-
get: function () { return
|
|
823
|
+
get: function () { return chunkWJLECC22_cjs.TransferAlreadyPendingError; }
|
|
822
824
|
});
|
|
823
825
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
824
826
|
enumerable: true,
|
|
825
|
-
get: function () { return
|
|
827
|
+
get: function () { return chunkWJLECC22_cjs.TransferExpiredError; }
|
|
826
828
|
});
|
|
827
829
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
828
830
|
enumerable: true,
|
|
829
|
-
get: function () { return
|
|
831
|
+
get: function () { return chunkWJLECC22_cjs.VestingExpiredError; }
|
|
830
832
|
});
|
|
831
833
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
832
834
|
enumerable: true,
|
|
833
|
-
get: function () { return
|
|
835
|
+
get: function () { return chunkWJLECC22_cjs.VestingNotFoundError; }
|
|
834
836
|
});
|
|
835
837
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
836
838
|
enumerable: true,
|
|
837
|
-
get: function () { return
|
|
839
|
+
get: function () { return chunkWJLECC22_cjs.VestingNotRevocableError; }
|
|
838
840
|
});
|
|
839
841
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
840
842
|
enumerable: true,
|
|
841
|
-
get: function () { return
|
|
843
|
+
get: function () { return chunkWJLECC22_cjs.VestingRevokedError; }
|
|
842
844
|
});
|
|
843
845
|
Object.defineProperty(exports, "encryptUint64", {
|
|
844
846
|
enumerable: true,
|
|
845
|
-
get: function () { return
|
|
847
|
+
get: function () { return chunk3QHNYEQD_cjs.encryptUint64; }
|
|
846
848
|
});
|
|
847
849
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
848
850
|
enumerable: true,
|
|
849
|
-
get: function () { return
|
|
851
|
+
get: function () { return chunk3QHNYEQD_cjs.encryptUint64Batch; }
|
|
850
852
|
});
|
|
851
853
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
852
854
|
enumerable: true,
|
|
853
|
-
get: function () { return
|
|
855
|
+
get: function () { return chunk3QHNYEQD_cjs.resolveEncryptor; }
|
|
854
856
|
});
|
|
855
857
|
Object.defineProperty(exports, "scaleRatio", {
|
|
856
858
|
enumerable: true,
|
|
857
|
-
get: function () { return
|
|
859
|
+
get: function () { return chunk3QHNYEQD_cjs.scaleRatio; }
|
|
858
860
|
});
|
|
859
861
|
Object.defineProperty(exports, "DisclosureType", {
|
|
860
862
|
enumerable: true,
|
|
861
|
-
get: function () { return
|
|
863
|
+
get: function () { return chunk6PXXGACR_cjs.DisclosureType; }
|
|
862
864
|
});
|
|
863
865
|
Object.defineProperty(exports, "FeeType", {
|
|
864
866
|
enumerable: true,
|
|
865
|
-
get: function () { return
|
|
867
|
+
get: function () { return chunk6PXXGACR_cjs.FeeType; }
|
|
866
868
|
});
|
|
867
869
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
868
870
|
enumerable: true,
|
|
869
|
-
get: function () { return
|
|
871
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
870
872
|
});
|
|
871
873
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
872
874
|
enumerable: true,
|
|
873
|
-
get: function () { return
|
|
875
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
874
876
|
});
|
|
875
877
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
876
878
|
enumerable: true,
|
|
877
|
-
get: function () { return
|
|
879
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
878
880
|
});
|
|
879
881
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
880
882
|
enumerable: true,
|
|
881
|
-
get: function () { return
|
|
883
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
882
884
|
});
|
|
883
885
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
884
886
|
enumerable: true,
|
|
885
|
-
get: function () { return
|
|
887
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
886
888
|
});
|
|
887
889
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
888
890
|
enumerable: true,
|
|
889
|
-
get: function () { return
|
|
891
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
890
892
|
});
|
|
891
893
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
892
894
|
enumerable: true,
|
|
893
|
-
get: function () { return
|
|
895
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
894
896
|
});
|
|
895
897
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
896
898
|
enumerable: true,
|
|
897
|
-
get: function () { return
|
|
899
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
898
900
|
});
|
|
899
901
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
900
902
|
enumerable: true,
|
|
901
|
-
get: function () { return
|
|
903
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
902
904
|
});
|
|
903
905
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
904
906
|
enumerable: true,
|
|
905
|
-
get: function () { return
|
|
907
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
906
908
|
});
|
|
907
909
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
908
910
|
enumerable: true,
|
|
909
|
-
get: function () { return
|
|
911
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
910
912
|
});
|
|
911
913
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
912
914
|
enumerable: true,
|
|
913
|
-
get: function () { return
|
|
915
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
914
916
|
});
|
|
915
917
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
916
918
|
enumerable: true,
|
|
917
|
-
get: function () { return
|
|
919
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
918
920
|
});
|
|
919
921
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
920
922
|
enumerable: true,
|
|
921
|
-
get: function () { return
|
|
923
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
922
924
|
});
|
|
923
925
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
924
926
|
enumerable: true,
|
|
925
|
-
get: function () { return
|
|
927
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
926
928
|
});
|
|
927
929
|
Object.defineProperty(exports, "MissingClientError", {
|
|
928
930
|
enumerable: true,
|
|
929
|
-
get: function () { return
|
|
931
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
930
932
|
});
|
|
931
933
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
932
934
|
enumerable: true,
|
|
933
|
-
get: function () { return
|
|
935
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
934
936
|
});
|
|
935
937
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
936
938
|
enumerable: true,
|
|
937
|
-
get: function () { return
|
|
939
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
938
940
|
});
|
|
939
941
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
940
942
|
enumerable: true,
|
|
941
|
-
get: function () { return
|
|
943
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
942
944
|
});
|
|
943
945
|
Object.defineProperty(exports, "NetworkError", {
|
|
944
946
|
enumerable: true,
|
|
945
|
-
get: function () { return
|
|
947
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
946
948
|
});
|
|
947
949
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
948
950
|
enumerable: true,
|
|
949
|
-
get: function () { return
|
|
951
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
950
952
|
});
|
|
951
953
|
Object.defineProperty(exports, "PausedError", {
|
|
952
954
|
enumerable: true,
|
|
953
|
-
get: function () { return
|
|
955
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
954
956
|
});
|
|
955
957
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
956
958
|
enumerable: true,
|
|
957
|
-
get: function () { return
|
|
959
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
958
960
|
});
|
|
959
961
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
960
962
|
enumerable: true,
|
|
961
|
-
get: function () { return
|
|
963
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
962
964
|
});
|
|
963
965
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
964
966
|
enumerable: true,
|
|
965
|
-
get: function () { return
|
|
967
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
966
968
|
});
|
|
967
969
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
968
970
|
enumerable: true,
|
|
969
|
-
get: function () { return
|
|
971
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
970
972
|
});
|
|
971
973
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
972
974
|
enumerable: true,
|
|
973
|
-
get: function () { return
|
|
975
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
974
976
|
});
|
|
975
977
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
976
978
|
enumerable: true,
|
|
977
|
-
get: function () { return
|
|
979
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
978
980
|
});
|
|
979
981
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
980
982
|
enumerable: true,
|
|
981
|
-
get: function () { return
|
|
983
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
982
984
|
});
|
|
983
985
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
984
986
|
enumerable: true,
|
|
985
|
-
get: function () { return
|
|
987
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
986
988
|
});
|
|
987
989
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
988
990
|
enumerable: true,
|
|
989
|
-
get: function () { return
|
|
991
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
990
992
|
});
|
|
991
993
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
992
994
|
enumerable: true,
|
|
993
|
-
get: function () { return
|
|
995
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
994
996
|
});
|
|
995
997
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
996
998
|
enumerable: true,
|
|
997
|
-
get: function () { return
|
|
999
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
998
1000
|
});
|
|
999
1001
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
1000
1002
|
enumerable: true,
|
|
1001
|
-
get: function () { return
|
|
1003
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
1002
1004
|
});
|
|
1003
1005
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
1004
1006
|
enumerable: true,
|
|
1005
|
-
get: function () { return
|
|
1007
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
1006
1008
|
});
|
|
1007
1009
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
1008
1010
|
enumerable: true,
|
|
1009
|
-
get: function () { return
|
|
1011
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
1010
1012
|
});
|
|
1011
1013
|
exports.useAcceptVestingTransfer = useAcceptVestingTransfer;
|
|
1012
1014
|
exports.useAccessClaimableAmount = useAccessClaimableAmount;
|