@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,16 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkJZLGCTGK_cjs = require('../../chunk-JZLGCTGK.cjs');
|
|
4
|
+
var chunk7AFPOE7N_cjs = require('../../chunk-7AFPOE7N.cjs');
|
|
5
5
|
require('../../chunk-ZQUE2B3Q.cjs');
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-KFRDLKMA.cjs');
|
|
7
|
+
require('../../chunk-TEBM66WA.cjs');
|
|
8
|
+
require('../../chunk-FAXIIH5R.cjs');
|
|
9
9
|
require('../../chunk-FWHYQZ5E.cjs');
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
|
|
10
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
11
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
12
|
+
var chunk5576FRT3_cjs = require('../../chunk-5576FRT3.cjs');
|
|
13
|
+
require('../../chunk-JK4XMMKM.cjs');
|
|
14
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
15
|
+
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
14
16
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
15
17
|
var reactQuery = require('@tanstack/react-query');
|
|
16
18
|
var react = require('react');
|
|
@@ -21,7 +23,7 @@ var FHE_DISPERSE_NAMESPACE = "fhe-disperse";
|
|
|
21
23
|
function tryResolveSingletonAddress(override, chainId) {
|
|
22
24
|
if (override) return override;
|
|
23
25
|
if (chainId === void 0) return void 0;
|
|
24
|
-
return
|
|
26
|
+
return chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
|
|
25
27
|
}
|
|
26
28
|
function useMemoDisperseClient(opts = {}) {
|
|
27
29
|
const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
|
|
@@ -34,14 +36,14 @@ function useMemoDisperseClient(opts = {}) {
|
|
|
34
36
|
const client = react.useMemo(() => {
|
|
35
37
|
if (!publicClient) return void 0;
|
|
36
38
|
if (!resolvedAddress) return void 0;
|
|
37
|
-
return
|
|
39
|
+
return chunkJZLGCTGK_cjs.createConfidentialDisperseClient({
|
|
38
40
|
publicClient,
|
|
39
41
|
...walletClient ? { walletClient } : {},
|
|
40
42
|
address: resolvedAddress,
|
|
41
43
|
...chainId !== void 0 ? { chainId } : {},
|
|
42
44
|
// Lazy — invoked per-encryption inside the headless client. Picks up
|
|
43
45
|
// whichever EncryptorSource the consumer last passed in.
|
|
44
|
-
encryptor: () =>
|
|
46
|
+
encryptor: () => chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
45
47
|
...opts.aclAddress ? { aclAddress: opts.aclAddress } : {}
|
|
46
48
|
});
|
|
47
49
|
}, [publicClient, walletClient, resolvedAddress, chainId, opts.aclAddress]);
|
|
@@ -57,16 +59,16 @@ function useMemoDisperseClient(opts = {}) {
|
|
|
57
59
|
function computeSingletonResolutionError(override, chainId) {
|
|
58
60
|
if (override) return void 0;
|
|
59
61
|
if (chainId === void 0) {
|
|
60
|
-
return new
|
|
62
|
+
return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
61
63
|
reason: "chain-id-missing",
|
|
62
64
|
product: "fheDisperse",
|
|
63
65
|
contract: "disperseConfidentialSingleton",
|
|
64
66
|
clientLabel: "ConfidentialDisperseClient"
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
|
-
const resolved =
|
|
69
|
+
const resolved = chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
|
|
68
70
|
if (!resolved) {
|
|
69
|
-
return new
|
|
71
|
+
return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
70
72
|
reason: "registry-not-deployed",
|
|
71
73
|
product: "fheDisperse",
|
|
72
74
|
contract: "disperseConfidentialSingleton",
|
|
@@ -269,7 +271,7 @@ function useRegister(options = {}) {
|
|
|
269
271
|
return reactQuery.useMutation({
|
|
270
272
|
mutationFn: async (args) => {
|
|
271
273
|
if (!client) {
|
|
272
|
-
throw resolutionError ?? new
|
|
274
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRegister", "disperse");
|
|
273
275
|
}
|
|
274
276
|
return client.register(args);
|
|
275
277
|
}
|
|
@@ -280,7 +282,7 @@ function useApproveTokenOnWallets(options = {}) {
|
|
|
280
282
|
return reactQuery.useMutation({
|
|
281
283
|
mutationFn: async (args) => {
|
|
282
284
|
if (!client) {
|
|
283
|
-
throw resolutionError ?? new
|
|
285
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useApproveTokenOnWallets", "disperse");
|
|
284
286
|
}
|
|
285
287
|
return client.approveTokenOnWallets(args);
|
|
286
288
|
}
|
|
@@ -291,7 +293,7 @@ function useRevokeTokenOnWallets(options = {}) {
|
|
|
291
293
|
return reactQuery.useMutation({
|
|
292
294
|
mutationFn: async (args) => {
|
|
293
295
|
if (!client) {
|
|
294
|
-
throw resolutionError ?? new
|
|
296
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRevokeTokenOnWallets", "disperse");
|
|
295
297
|
}
|
|
296
298
|
return client.revokeTokenOnWallets(args);
|
|
297
299
|
}
|
|
@@ -302,7 +304,7 @@ function useRecoverFromWallets(options = {}) {
|
|
|
302
304
|
return reactQuery.useMutation({
|
|
303
305
|
mutationFn: async (args) => {
|
|
304
306
|
if (!client) {
|
|
305
|
-
throw resolutionError ?? new
|
|
307
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRecoverFromWallets", "disperse");
|
|
306
308
|
}
|
|
307
309
|
return client.recoverFromWallets(args);
|
|
308
310
|
}
|
|
@@ -313,7 +315,7 @@ function useRecoverERC20FromWallets(options = {}) {
|
|
|
313
315
|
return reactQuery.useMutation({
|
|
314
316
|
mutationFn: async (args) => {
|
|
315
317
|
if (!client) {
|
|
316
|
-
throw resolutionError ?? new
|
|
318
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRecoverERC20FromWallets", "disperse");
|
|
317
319
|
}
|
|
318
320
|
return client.recoverERC20FromWallets(args);
|
|
319
321
|
}
|
|
@@ -324,7 +326,7 @@ function useDisperse(options = {}) {
|
|
|
324
326
|
return reactQuery.useMutation({
|
|
325
327
|
mutationFn: async (args) => {
|
|
326
328
|
if (!client) {
|
|
327
|
-
throw resolutionError ?? new
|
|
329
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDisperse", "disperse");
|
|
328
330
|
}
|
|
329
331
|
return client.disperse(args);
|
|
330
332
|
}
|
|
@@ -335,7 +337,7 @@ function useAccessEncryptedFeeReserve(options = {}) {
|
|
|
335
337
|
return reactQuery.useMutation({
|
|
336
338
|
mutationFn: async (args) => {
|
|
337
339
|
if (!client) {
|
|
338
|
-
throw resolutionError ?? new
|
|
340
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useAccessEncryptedFeeReserve", "disperse");
|
|
339
341
|
}
|
|
340
342
|
return client.getEncryptedFeeReserve(args);
|
|
341
343
|
}
|
|
@@ -347,7 +349,7 @@ function useDiscloseHandleToParty(options = {}) {
|
|
|
347
349
|
return reactQuery.useMutation({
|
|
348
350
|
mutationFn: async (args) => {
|
|
349
351
|
if (!client) {
|
|
350
|
-
throw resolutionError ?? new
|
|
352
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "disperse");
|
|
351
353
|
}
|
|
352
354
|
return client.discloseHandleToParty(args);
|
|
353
355
|
}
|
|
@@ -358,7 +360,7 @@ function useBatchDiscloseHandlesToParty(options = {}) {
|
|
|
358
360
|
return reactQuery.useMutation({
|
|
359
361
|
mutationFn: async (args) => {
|
|
360
362
|
if (!client) {
|
|
361
|
-
throw resolutionError ?? new
|
|
363
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "disperse");
|
|
362
364
|
}
|
|
363
365
|
return client.batchDiscloseHandlesToParty(args);
|
|
364
366
|
}
|
|
@@ -368,7 +370,7 @@ function usePause(options = {}) {
|
|
|
368
370
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
369
371
|
return reactQuery.useMutation({
|
|
370
372
|
mutationFn: async ({ account }) => {
|
|
371
|
-
if (!client) throw resolutionError ?? new
|
|
373
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePause", "disperse");
|
|
372
374
|
return client.pause(account);
|
|
373
375
|
}
|
|
374
376
|
});
|
|
@@ -377,7 +379,7 @@ function useUnpause(options = {}) {
|
|
|
377
379
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
378
380
|
return reactQuery.useMutation({
|
|
379
381
|
mutationFn: async ({ account }) => {
|
|
380
|
-
if (!client) throw resolutionError ?? new
|
|
382
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useUnpause", "disperse");
|
|
381
383
|
return client.unpause(account);
|
|
382
384
|
}
|
|
383
385
|
});
|
|
@@ -386,7 +388,7 @@ function useSetFeeConfig(options = {}) {
|
|
|
386
388
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
387
389
|
return reactQuery.useMutation({
|
|
388
390
|
mutationFn: async ({ config, account }) => {
|
|
389
|
-
if (!client) throw resolutionError ?? new
|
|
391
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetFeeConfig", "disperse");
|
|
390
392
|
return client.setFeeConfig(config, account);
|
|
391
393
|
}
|
|
392
394
|
});
|
|
@@ -395,7 +397,7 @@ function useSetCustomFee(options = {}) {
|
|
|
395
397
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
396
398
|
return reactQuery.useMutation({
|
|
397
399
|
mutationFn: async ({ user, gasFee, tokenFee, account }) => {
|
|
398
|
-
if (!client) throw resolutionError ?? new
|
|
400
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetCustomFee", "disperse");
|
|
399
401
|
return client.setCustomFee(user, gasFee, tokenFee, account);
|
|
400
402
|
}
|
|
401
403
|
});
|
|
@@ -405,7 +407,7 @@ function useDisableCustomFee(options = {}) {
|
|
|
405
407
|
return reactQuery.useMutation({
|
|
406
408
|
mutationFn: async ({ user, account }) => {
|
|
407
409
|
if (!client) {
|
|
408
|
-
throw resolutionError ?? new
|
|
410
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDisableCustomFee", "disperse");
|
|
409
411
|
}
|
|
410
412
|
return client.disableCustomFee(user, account);
|
|
411
413
|
}
|
|
@@ -416,7 +418,7 @@ function useSetMaxBatchSizeHolding(options = {}) {
|
|
|
416
418
|
return reactQuery.useMutation({
|
|
417
419
|
mutationFn: async ({ size, account }) => {
|
|
418
420
|
if (!client) {
|
|
419
|
-
throw resolutionError ?? new
|
|
421
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeHolding", "disperse");
|
|
420
422
|
}
|
|
421
423
|
return client.setMaxBatchSizeHolding(size, account);
|
|
422
424
|
}
|
|
@@ -427,7 +429,7 @@ function useSetMaxBatchSizeDirect(options = {}) {
|
|
|
427
429
|
return reactQuery.useMutation({
|
|
428
430
|
mutationFn: async ({ size, account }) => {
|
|
429
431
|
if (!client) {
|
|
430
|
-
throw resolutionError ?? new
|
|
432
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeDirect", "disperse");
|
|
431
433
|
}
|
|
432
434
|
return client.setMaxBatchSizeDirect(size, account);
|
|
433
435
|
}
|
|
@@ -438,7 +440,7 @@ function useSetMaxBatchSizeTokenFee(options = {}) {
|
|
|
438
440
|
return reactQuery.useMutation({
|
|
439
441
|
mutationFn: async ({ size, account }) => {
|
|
440
442
|
if (!client) {
|
|
441
|
-
throw resolutionError ?? new
|
|
443
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeTokenFee", "disperse");
|
|
442
444
|
}
|
|
443
445
|
return client.setMaxBatchSizeTokenFee(size, account);
|
|
444
446
|
}
|
|
@@ -448,7 +450,7 @@ function useWithdrawGasFee(options = {}) {
|
|
|
448
450
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
449
451
|
return reactQuery.useMutation({
|
|
450
452
|
mutationFn: async ({ to, amount, account }) => {
|
|
451
|
-
if (!client) throw resolutionError ?? new
|
|
453
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "disperse");
|
|
452
454
|
return client.withdrawGasFee(to, amount, account);
|
|
453
455
|
}
|
|
454
456
|
});
|
|
@@ -458,7 +460,7 @@ function useWithdrawTokenFee(options = {}) {
|
|
|
458
460
|
return reactQuery.useMutation({
|
|
459
461
|
mutationFn: async (args) => {
|
|
460
462
|
if (!client) {
|
|
461
|
-
throw resolutionError ?? new
|
|
463
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useWithdrawTokenFee", "disperse");
|
|
462
464
|
}
|
|
463
465
|
if (args.encryptedInput !== void 0) {
|
|
464
466
|
const { token: token2, to: to2, encryptedInput, account: account2 } = args;
|
|
@@ -470,7 +472,7 @@ function useWithdrawTokenFee(options = {}) {
|
|
|
470
472
|
});
|
|
471
473
|
}
|
|
472
474
|
const { token, to, amount, encryptor: encryptorSource, account } = args;
|
|
473
|
-
const eager = encryptorSource ?
|
|
475
|
+
const eager = encryptorSource ? chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSource) : void 0;
|
|
474
476
|
return client.withdrawTokenFee({
|
|
475
477
|
token,
|
|
476
478
|
to,
|
|
@@ -486,7 +488,7 @@ function useRescueConfidentialTokens(options = {}) {
|
|
|
486
488
|
return reactQuery.useMutation({
|
|
487
489
|
mutationFn: async ({ token, to, account }) => {
|
|
488
490
|
if (!client) {
|
|
489
|
-
throw resolutionError ?? new
|
|
491
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRescueConfidentialTokens", "disperse");
|
|
490
492
|
}
|
|
491
493
|
return client.rescueConfidentialTokens(token, to, account);
|
|
492
494
|
}
|
|
@@ -496,7 +498,7 @@ function useRescueERC20(options = {}) {
|
|
|
496
498
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
497
499
|
return reactQuery.useMutation({
|
|
498
500
|
mutationFn: async ({ token, to, account }) => {
|
|
499
|
-
if (!client) throw resolutionError ?? new
|
|
501
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "disperse");
|
|
500
502
|
return client.rescueERC20(token, to, account);
|
|
501
503
|
}
|
|
502
504
|
});
|
|
@@ -505,7 +507,7 @@ function useGrantRole(options = {}) {
|
|
|
505
507
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
506
508
|
return reactQuery.useMutation({
|
|
507
509
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
508
|
-
if (!client) throw resolutionError ?? new
|
|
510
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useGrantRole", "disperse");
|
|
509
511
|
return client.grantRole(role, accountTarget, account);
|
|
510
512
|
}
|
|
511
513
|
});
|
|
@@ -514,7 +516,7 @@ function useRevokeRole(options = {}) {
|
|
|
514
516
|
const { client, resolutionError } = useMemoDisperseClient(options);
|
|
515
517
|
return reactQuery.useMutation({
|
|
516
518
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
517
|
-
if (!client) throw resolutionError ?? new
|
|
519
|
+
if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRevokeRole", "disperse");
|
|
518
520
|
return client.revokeRole(role, accountTarget, account);
|
|
519
521
|
}
|
|
520
522
|
});
|
|
@@ -522,215 +524,215 @@ function useRevokeRole(options = {}) {
|
|
|
522
524
|
|
|
523
525
|
Object.defineProperty(exports, "AlreadyRegisteredError", {
|
|
524
526
|
enumerable: true,
|
|
525
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunkJZLGCTGK_cjs.AlreadyRegisteredError; }
|
|
526
528
|
});
|
|
527
529
|
Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
|
|
528
530
|
enumerable: true,
|
|
529
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunkJZLGCTGK_cjs.DEFAULT_ADMIN_ROLE; }
|
|
530
532
|
});
|
|
531
533
|
Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
|
|
532
534
|
enumerable: true,
|
|
533
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunkJZLGCTGK_cjs.DisperseEncryptedReserveNotGrantedError; }
|
|
534
536
|
});
|
|
535
537
|
Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
|
|
536
538
|
enumerable: true,
|
|
537
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunkJZLGCTGK_cjs.DisperseSubwalletNotFoundError; }
|
|
538
540
|
});
|
|
539
541
|
Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
|
|
540
542
|
enumerable: true,
|
|
541
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunkJZLGCTGK_cjs.FEE_COLLECTOR_ROLE; }
|
|
542
544
|
});
|
|
543
545
|
Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
|
|
544
546
|
enumerable: true,
|
|
545
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunkJZLGCTGK_cjs.FEE_MANAGER_ROLE; }
|
|
546
548
|
});
|
|
547
549
|
Object.defineProperty(exports, "NotRegisteredError", {
|
|
548
550
|
enumerable: true,
|
|
549
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunkJZLGCTGK_cjs.NotRegisteredError; }
|
|
550
552
|
});
|
|
551
553
|
Object.defineProperty(exports, "PAUSER_ROLE", {
|
|
552
554
|
enumerable: true,
|
|
553
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkJZLGCTGK_cjs.PAUSER_ROLE; }
|
|
554
556
|
});
|
|
555
557
|
Object.defineProperty(exports, "SingletonNotApprovedError", {
|
|
556
558
|
enumerable: true,
|
|
557
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunkJZLGCTGK_cjs.SingletonNotApprovedError; }
|
|
558
560
|
});
|
|
559
561
|
Object.defineProperty(exports, "SubwalletsNotApprovedError", {
|
|
560
562
|
enumerable: true,
|
|
561
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunkJZLGCTGK_cjs.SubwalletsNotApprovedError; }
|
|
562
564
|
});
|
|
563
565
|
Object.defineProperty(exports, "WITHDRAWER_ROLE", {
|
|
564
566
|
enumerable: true,
|
|
565
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkJZLGCTGK_cjs.WITHDRAWER_ROLE; }
|
|
566
568
|
});
|
|
567
569
|
Object.defineProperty(exports, "computeSubtotals", {
|
|
568
570
|
enumerable: true,
|
|
569
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkJZLGCTGK_cjs.computeSubtotals; }
|
|
570
572
|
});
|
|
571
573
|
Object.defineProperty(exports, "encryptUint64", {
|
|
572
574
|
enumerable: true,
|
|
573
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkJZLGCTGK_cjs.encryptUint64; }
|
|
574
576
|
});
|
|
575
577
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
576
578
|
enumerable: true,
|
|
577
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunkJZLGCTGK_cjs.encryptUint64Batch; }
|
|
578
580
|
});
|
|
579
581
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
580
582
|
enumerable: true,
|
|
581
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunkJZLGCTGK_cjs.resolveEncryptor; }
|
|
582
584
|
});
|
|
583
585
|
Object.defineProperty(exports, "useEnsureOperator", {
|
|
584
586
|
enumerable: true,
|
|
585
|
-
get: function () { return
|
|
587
|
+
get: function () { return chunk7AFPOE7N_cjs.useEnsureOperator; }
|
|
586
588
|
});
|
|
587
589
|
Object.defineProperty(exports, "useIsOperator", {
|
|
588
590
|
enumerable: true,
|
|
589
|
-
get: function () { return
|
|
591
|
+
get: function () { return chunk7AFPOE7N_cjs.useIsOperator; }
|
|
590
592
|
});
|
|
591
593
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
592
594
|
enumerable: true,
|
|
593
|
-
get: function () { return
|
|
595
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
594
596
|
});
|
|
595
597
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
596
598
|
enumerable: true,
|
|
597
|
-
get: function () { return
|
|
599
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
598
600
|
});
|
|
599
601
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
600
602
|
enumerable: true,
|
|
601
|
-
get: function () { return
|
|
603
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
602
604
|
});
|
|
603
605
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
604
606
|
enumerable: true,
|
|
605
|
-
get: function () { return
|
|
607
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
606
608
|
});
|
|
607
609
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
608
610
|
enumerable: true,
|
|
609
|
-
get: function () { return
|
|
611
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
610
612
|
});
|
|
611
613
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
612
614
|
enumerable: true,
|
|
613
|
-
get: function () { return
|
|
615
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
614
616
|
});
|
|
615
617
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
616
618
|
enumerable: true,
|
|
617
|
-
get: function () { return
|
|
619
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
618
620
|
});
|
|
619
621
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
620
622
|
enumerable: true,
|
|
621
|
-
get: function () { return
|
|
623
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
622
624
|
});
|
|
623
625
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
624
626
|
enumerable: true,
|
|
625
|
-
get: function () { return
|
|
627
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
626
628
|
});
|
|
627
629
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
628
630
|
enumerable: true,
|
|
629
|
-
get: function () { return
|
|
631
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
630
632
|
});
|
|
631
633
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
632
634
|
enumerable: true,
|
|
633
|
-
get: function () { return
|
|
635
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
634
636
|
});
|
|
635
637
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
636
638
|
enumerable: true,
|
|
637
|
-
get: function () { return
|
|
639
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
638
640
|
});
|
|
639
641
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
640
642
|
enumerable: true,
|
|
641
|
-
get: function () { return
|
|
643
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
642
644
|
});
|
|
643
645
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
644
646
|
enumerable: true,
|
|
645
|
-
get: function () { return
|
|
647
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
646
648
|
});
|
|
647
649
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
648
650
|
enumerable: true,
|
|
649
|
-
get: function () { return
|
|
651
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
650
652
|
});
|
|
651
653
|
Object.defineProperty(exports, "MissingClientError", {
|
|
652
654
|
enumerable: true,
|
|
653
|
-
get: function () { return
|
|
655
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
654
656
|
});
|
|
655
657
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
656
658
|
enumerable: true,
|
|
657
|
-
get: function () { return
|
|
659
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
658
660
|
});
|
|
659
661
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
660
662
|
enumerable: true,
|
|
661
|
-
get: function () { return
|
|
663
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
662
664
|
});
|
|
663
665
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
664
666
|
enumerable: true,
|
|
665
|
-
get: function () { return
|
|
667
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
666
668
|
});
|
|
667
669
|
Object.defineProperty(exports, "NetworkError", {
|
|
668
670
|
enumerable: true,
|
|
669
|
-
get: function () { return
|
|
671
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
670
672
|
});
|
|
671
673
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
672
674
|
enumerable: true,
|
|
673
|
-
get: function () { return
|
|
675
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
674
676
|
});
|
|
675
677
|
Object.defineProperty(exports, "PausedError", {
|
|
676
678
|
enumerable: true,
|
|
677
|
-
get: function () { return
|
|
679
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
678
680
|
});
|
|
679
681
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
680
682
|
enumerable: true,
|
|
681
|
-
get: function () { return
|
|
683
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
682
684
|
});
|
|
683
685
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
684
686
|
enumerable: true,
|
|
685
|
-
get: function () { return
|
|
687
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
686
688
|
});
|
|
687
689
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
688
690
|
enumerable: true,
|
|
689
|
-
get: function () { return
|
|
691
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
690
692
|
});
|
|
691
693
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
692
694
|
enumerable: true,
|
|
693
|
-
get: function () { return
|
|
695
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
694
696
|
});
|
|
695
697
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
696
698
|
enumerable: true,
|
|
697
|
-
get: function () { return
|
|
699
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
698
700
|
});
|
|
699
701
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
700
702
|
enumerable: true,
|
|
701
|
-
get: function () { return
|
|
703
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
702
704
|
});
|
|
703
705
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
704
706
|
enumerable: true,
|
|
705
|
-
get: function () { return
|
|
707
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
706
708
|
});
|
|
707
709
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
708
710
|
enumerable: true,
|
|
709
|
-
get: function () { return
|
|
711
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
710
712
|
});
|
|
711
713
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
712
714
|
enumerable: true,
|
|
713
|
-
get: function () { return
|
|
715
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
714
716
|
});
|
|
715
717
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
716
718
|
enumerable: true,
|
|
717
|
-
get: function () { return
|
|
719
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
718
720
|
});
|
|
719
721
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
720
722
|
enumerable: true,
|
|
721
|
-
get: function () { return
|
|
723
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
722
724
|
});
|
|
723
725
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
724
726
|
enumerable: true,
|
|
725
|
-
get: function () { return
|
|
727
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
726
728
|
});
|
|
727
729
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
728
730
|
enumerable: true,
|
|
729
|
-
get: function () { return
|
|
731
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
730
732
|
});
|
|
731
733
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
732
734
|
enumerable: true,
|
|
733
|
-
get: function () { return
|
|
735
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
734
736
|
});
|
|
735
737
|
exports.FHE_DISPERSE_KEY = FHE_DISPERSE_KEY;
|
|
736
738
|
exports.FHE_DISPERSE_NAMESPACE = FHE_DISPERSE_NAMESPACE;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-
|
|
2
|
-
export { AlreadyRegisteredError, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, SingletonNotApprovedError, SubwalletsNotApprovedError, WITHDRAWER_ROLE, computeSubtotals, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-
|
|
3
|
-
export { useEnsureOperator, useIsOperator } from '../../chunk-
|
|
1
|
+
import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-H5POPGOZ.js';
|
|
2
|
+
export { AlreadyRegisteredError, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, SingletonNotApprovedError, SubwalletsNotApprovedError, WITHDRAWER_ROLE, computeSubtotals, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-H5POPGOZ.js';
|
|
3
|
+
export { useEnsureOperator, useIsOperator } from '../../chunk-AXIPOR3C.js';
|
|
4
4
|
import '../../chunk-FT4LNBOS.js';
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import '../../chunk-
|
|
5
|
+
import '../../chunk-4TSDNZQ3.js';
|
|
6
|
+
import '../../chunk-WMACINXO.js';
|
|
7
|
+
import '../../chunk-ZWXJTBZO.js';
|
|
8
8
|
import '../../chunk-7VELUOMI.js';
|
|
9
|
-
import '../../chunk-
|
|
10
|
-
import
|
|
11
|
-
import '../../chunk-
|
|
12
|
-
import
|
|
13
|
-
|
|
9
|
+
import '../../chunk-NWFMBLSQ.js';
|
|
10
|
+
import '../../chunk-4RAAATVY.js';
|
|
11
|
+
import { getFheDisperseSingletonAddress } from '../../chunk-DZHYSUGY.js';
|
|
12
|
+
import '../../chunk-ZA673I3O.js';
|
|
13
|
+
import '../../chunk-KWFFIJYX.js';
|
|
14
|
+
import { MissingClientError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
|
|
15
|
+
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsSdkError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-QBJ7O2B4.js';
|
|
14
16
|
import '../../chunk-Q2GP5UDC.js';
|
|
15
17
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
16
18
|
import { useRef, useMemo } from 'react';
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
3
|
+
var chunkFGEB7RMY_cjs = require('../../chunk-FGEB7RMY.cjs');
|
|
4
|
+
require('../../chunk-6PXXGACR.cjs');
|
|
5
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
6
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
7
|
+
require('../../chunk-5576FRT3.cjs');
|
|
8
|
+
require('../../chunk-JK4XMMKM.cjs');
|
|
9
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
10
|
+
require('../../chunk-67OV5CX2.cjs');
|
|
9
11
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
|
|
13
15
|
Object.defineProperty(exports, "ConfidentialVestingFactoryAdvancedClient", {
|
|
14
16
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFGEB7RMY_cjs.ConfidentialVestingFactoryAdvancedClient; }
|
|
16
18
|
});
|
|
17
19
|
Object.defineProperty(exports, "createConfidentialVestingFactoryAdvancedClient", {
|
|
18
20
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFGEB7RMY_cjs.createConfidentialVestingFactoryAdvancedClient; }
|
|
20
22
|
});
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import '../../chunk-
|
|
6
|
-
import '../../chunk-
|
|
1
|
+
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-335Z2W67.js';
|
|
2
|
+
import '../../chunk-EAJ7SYHE.js';
|
|
3
|
+
import '../../chunk-NWFMBLSQ.js';
|
|
4
|
+
import '../../chunk-4RAAATVY.js';
|
|
5
|
+
import '../../chunk-DZHYSUGY.js';
|
|
6
|
+
import '../../chunk-ZA673I3O.js';
|
|
7
|
+
import '../../chunk-KWFFIJYX.js';
|
|
8
|
+
import '../../chunk-QBJ7O2B4.js';
|
|
7
9
|
import '../../chunk-Q2GP5UDC.js';
|