@tokenops/sdk 1.5.1 → 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 +198 -2
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SECURITY.md +7 -1
- package/SUPPORT.md +47 -0
- package/dist/{chunk-YQIBBEFJ.js → chunk-335Z2W67.js} +1 -1
- package/dist/{chunk-2NCLOQ56.cjs → chunk-3QHNYEQD.cjs} +77 -0
- package/dist/chunk-456VDDA3.js +370 -0
- package/dist/{chunk-SG65XWH7.js → chunk-4RAAATVY.js} +1 -3
- package/dist/{chunk-6BMP4ICG.js → chunk-4TSDNZQ3.js} +60 -2
- package/dist/{chunk-PUPKNW3R.cjs → chunk-5576FRT3.cjs} +30 -6
- package/dist/{chunk-AOP6HMPW.js → chunk-6GNR22OV.js} +75 -1
- package/dist/{chunk-NTZY6IB7.js → chunk-6NAVMWZQ.js} +4 -3
- package/dist/{chunk-C7BRZXJA.cjs → chunk-6PXXGACR.cjs} +8 -7
- package/dist/{chunk-IJFQ5L4I.js → chunk-74QFZ5MK.js} +4 -3
- package/dist/chunk-7AFPOE7N.cjs +59 -0
- package/dist/chunk-AXIPOR3C.js +56 -0
- package/dist/chunk-CTED3MTR.cjs +380 -0
- package/dist/{chunk-XGGTQQFH.js → chunk-DZHYSUGY.js} +28 -7
- package/dist/{chunk-OXTLPTO3.js → chunk-EAJ7SYHE.js} +4 -3
- package/dist/{chunk-V2PXZVBF.cjs → chunk-FGEB7RMY.cjs} +4 -4
- package/dist/chunk-GKKDAW44.js +8823 -0
- package/dist/{chunk-2PWNH3UE.js → chunk-H5POPGOZ.js} +63 -5
- package/dist/{chunk-W7IGCOVL.cjs → chunk-JQYC66TO.cjs} +9 -8
- package/dist/{chunk-PFXURMBZ.cjs → chunk-JZLGCTGK.cjs} +68 -8
- package/dist/{chunk-JYOTGRSO.cjs → chunk-KFRDLKMA.cjs} +61 -1
- package/dist/chunk-M4IT6DNJ.cjs +608 -0
- package/dist/{chunk-KLKI352M.cjs → chunk-MVDQMV25.cjs} +0 -3
- 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-IXLO7GO5.js → chunk-TWT3STIX.js} +46 -80
- package/dist/chunk-UG5RKLU2.cjs +6 -0
- package/dist/chunk-VP2B4WM2.js +154 -0
- package/dist/{chunk-5X5WL5CU.cjs → chunk-WJLECC22.cjs} +51 -88
- package/dist/{chunk-WENHUPZC.cjs → chunk-XAYGD4E4.cjs} +9 -8
- package/dist/core/addresses.d.ts +15 -3
- 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 +34 -13
- package/dist/fhe/index.d.cts +1 -0
- package/dist/fhe/index.d.ts +1 -0
- package/dist/fhe/index.js +19 -6
- package/dist/fhe/mock-erc7984.d.ts +4 -4
- package/dist/fhe/operators.d.ts +160 -3
- package/dist/fhe/react/index.cjs +14 -0
- package/dist/fhe/react/index.d.cts +2 -0
- package/dist/fhe/react/index.d.ts +2 -0
- package/dist/fhe/react/index.js +6 -0
- package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
- package/dist/fhe/react/useIsOperator.d.ts +54 -0
- package/dist/fhe/sepolia-encryptor-web.d.ts +18 -3
- 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 +10 -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 +2 -8
- package/dist/fhe-airdrop/advanced/react/index.cjs +34 -48
- 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 +33 -48
- 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 +1089 -33
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +929 -7
- 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 +364 -413
- package/dist/fhe-airdrop/react/index.d.cts +53 -72
- package/dist/fhe-airdrop/react/index.d.ts +53 -72
- package/dist/fhe-airdrop/react/index.js +258 -369
- 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 +68 -55
- package/dist/fhe-disperse/errors.d.ts +55 -0
- package/dist/fhe-disperse/index.cjs +34 -25
- package/dist/fhe-disperse/index.d.cts +1 -1
- package/dist/fhe-disperse/index.d.ts +1 -1
- package/dist/fhe-disperse/index.js +6 -5
- package/dist/fhe-disperse/react/index.cjs +42 -23
- package/dist/fhe-disperse/react/index.d.cts +3 -1
- package/dist/fhe-disperse/react/index.d.ts +3 -1
- package/dist/fhe-disperse/react/index.js +9 -6
- package/dist/fhe-vesting/advanced/index.cjs +8 -7
- package/dist/fhe-vesting/advanced/index.js +6 -5
- package/dist/fhe-vesting/advanced/react/index.cjs +12 -11
- package/dist/fhe-vesting/advanced/react/index.js +9 -8
- package/dist/fhe-vesting/index.cjs +35 -34
- package/dist/fhe-vesting/index.js +7 -6
- package/dist/fhe-vesting/manager.d.ts +19 -0
- package/dist/fhe-vesting/react/index.cjs +160 -140
- package/dist/fhe-vesting/react/index.d.cts +6 -4
- package/dist/fhe-vesting/react/index.d.ts +6 -4
- package/dist/fhe-vesting/react/index.js +24 -16
- package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +8 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +1 -1
- package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +1 -1
- package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
- package/dist/fhe-vesting/types.d.ts +12 -1
- package/dist/index.cjs +27 -15
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/index.cjs +17 -16
- package/dist/testnet-faucet/index.js +5 -4
- package/dist/testnet-faucet/react/index.cjs +11 -10
- package/dist/testnet-faucet/react/index.js +6 -5
- package/package.json +18 -9
- package/dist/chunk-4WPGQSNT.cjs +0 -44
- package/dist/chunk-6R4KNAPK.js +0 -1630
- package/dist/chunk-DUZIIRPF.js +0 -1655
- package/dist/chunk-MCRBVJGZ.cjs +0 -1637
- package/dist/chunk-ODLTEGHB.js +0 -41
- package/dist/chunk-ORFTDNFZ.js +0 -105
- package/dist/chunk-T46YXSBP.cjs +0 -109
- package/dist/chunk-TIUKIY5V.cjs +0 -1663
- 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 -310
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -31
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -27
- 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 -31
- 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/useGetClaimAmount.d.ts +0 -30
- 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
- package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
- package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkJZLGCTGK_cjs = require('../../chunk-JZLGCTGK.cjs');
|
|
4
|
+
var chunk7AFPOE7N_cjs = require('../../chunk-7AFPOE7N.cjs');
|
|
5
|
+
require('../../chunk-ZQUE2B3Q.cjs');
|
|
6
|
+
require('../../chunk-KFRDLKMA.cjs');
|
|
5
7
|
require('../../chunk-TEBM66WA.cjs');
|
|
6
8
|
require('../../chunk-FAXIIH5R.cjs');
|
|
7
9
|
require('../../chunk-FWHYQZ5E.cjs');
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
|
|
10
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
11
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
12
|
+
var chunk5576FRT3_cjs = require('../../chunk-5576FRT3.cjs');
|
|
10
13
|
require('../../chunk-JK4XMMKM.cjs');
|
|
11
|
-
require('../../chunk-VJKZWYYJ.cjs');
|
|
12
14
|
require('../../chunk-66IHPTOK.cjs');
|
|
13
15
|
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
16
|
+
require('../../chunk-VJKZWYYJ.cjs');
|
|
14
17
|
var reactQuery = require('@tanstack/react-query');
|
|
15
18
|
var react = require('react');
|
|
16
19
|
var wagmi = require('wagmi');
|
|
@@ -20,7 +23,7 @@ var FHE_DISPERSE_NAMESPACE = "fhe-disperse";
|
|
|
20
23
|
function tryResolveSingletonAddress(override, chainId) {
|
|
21
24
|
if (override) return override;
|
|
22
25
|
if (chainId === void 0) return void 0;
|
|
23
|
-
return
|
|
26
|
+
return chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
|
|
24
27
|
}
|
|
25
28
|
function useMemoDisperseClient(opts = {}) {
|
|
26
29
|
const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
|
|
@@ -33,14 +36,14 @@ function useMemoDisperseClient(opts = {}) {
|
|
|
33
36
|
const client = react.useMemo(() => {
|
|
34
37
|
if (!publicClient) return void 0;
|
|
35
38
|
if (!resolvedAddress) return void 0;
|
|
36
|
-
return
|
|
39
|
+
return chunkJZLGCTGK_cjs.createConfidentialDisperseClient({
|
|
37
40
|
publicClient,
|
|
38
41
|
...walletClient ? { walletClient } : {},
|
|
39
42
|
address: resolvedAddress,
|
|
40
43
|
...chainId !== void 0 ? { chainId } : {},
|
|
41
44
|
// Lazy — invoked per-encryption inside the headless client. Picks up
|
|
42
45
|
// whichever EncryptorSource the consumer last passed in.
|
|
43
|
-
encryptor: () =>
|
|
46
|
+
encryptor: () => chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
44
47
|
...opts.aclAddress ? { aclAddress: opts.aclAddress } : {}
|
|
45
48
|
});
|
|
46
49
|
}, [publicClient, walletClient, resolvedAddress, chainId, opts.aclAddress]);
|
|
@@ -63,7 +66,7 @@ function computeSingletonResolutionError(override, chainId) {
|
|
|
63
66
|
clientLabel: "ConfidentialDisperseClient"
|
|
64
67
|
});
|
|
65
68
|
}
|
|
66
|
-
const resolved =
|
|
69
|
+
const resolved = chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
|
|
67
70
|
if (!resolved) {
|
|
68
71
|
return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
69
72
|
reason: "registry-not-deployed",
|
|
@@ -469,7 +472,7 @@ function useWithdrawTokenFee(options = {}) {
|
|
|
469
472
|
});
|
|
470
473
|
}
|
|
471
474
|
const { token, to, amount, encryptor: encryptorSource, account } = args;
|
|
472
|
-
const eager = encryptorSource ?
|
|
475
|
+
const eager = encryptorSource ? chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSource) : void 0;
|
|
473
476
|
return client.withdrawTokenFee({
|
|
474
477
|
token,
|
|
475
478
|
to,
|
|
@@ -521,55 +524,71 @@ function useRevokeRole(options = {}) {
|
|
|
521
524
|
|
|
522
525
|
Object.defineProperty(exports, "AlreadyRegisteredError", {
|
|
523
526
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunkJZLGCTGK_cjs.AlreadyRegisteredError; }
|
|
525
528
|
});
|
|
526
529
|
Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
|
|
527
530
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunkJZLGCTGK_cjs.DEFAULT_ADMIN_ROLE; }
|
|
529
532
|
});
|
|
530
533
|
Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
|
|
531
534
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunkJZLGCTGK_cjs.DisperseEncryptedReserveNotGrantedError; }
|
|
533
536
|
});
|
|
534
537
|
Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
|
|
535
538
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunkJZLGCTGK_cjs.DisperseSubwalletNotFoundError; }
|
|
537
540
|
});
|
|
538
541
|
Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
|
|
539
542
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunkJZLGCTGK_cjs.FEE_COLLECTOR_ROLE; }
|
|
541
544
|
});
|
|
542
545
|
Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
|
|
543
546
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunkJZLGCTGK_cjs.FEE_MANAGER_ROLE; }
|
|
545
548
|
});
|
|
546
549
|
Object.defineProperty(exports, "NotRegisteredError", {
|
|
547
550
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunkJZLGCTGK_cjs.NotRegisteredError; }
|
|
549
552
|
});
|
|
550
553
|
Object.defineProperty(exports, "PAUSER_ROLE", {
|
|
551
554
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunkJZLGCTGK_cjs.PAUSER_ROLE; }
|
|
556
|
+
});
|
|
557
|
+
Object.defineProperty(exports, "SingletonNotApprovedError", {
|
|
558
|
+
enumerable: true,
|
|
559
|
+
get: function () { return chunkJZLGCTGK_cjs.SingletonNotApprovedError; }
|
|
560
|
+
});
|
|
561
|
+
Object.defineProperty(exports, "SubwalletsNotApprovedError", {
|
|
562
|
+
enumerable: true,
|
|
563
|
+
get: function () { return chunkJZLGCTGK_cjs.SubwalletsNotApprovedError; }
|
|
553
564
|
});
|
|
554
565
|
Object.defineProperty(exports, "WITHDRAWER_ROLE", {
|
|
555
566
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunkJZLGCTGK_cjs.WITHDRAWER_ROLE; }
|
|
557
568
|
});
|
|
558
569
|
Object.defineProperty(exports, "computeSubtotals", {
|
|
559
570
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunkJZLGCTGK_cjs.computeSubtotals; }
|
|
561
572
|
});
|
|
562
573
|
Object.defineProperty(exports, "encryptUint64", {
|
|
563
574
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
575
|
+
get: function () { return chunkJZLGCTGK_cjs.encryptUint64; }
|
|
565
576
|
});
|
|
566
577
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
567
578
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunkJZLGCTGK_cjs.encryptUint64Batch; }
|
|
569
580
|
});
|
|
570
581
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
571
582
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunkJZLGCTGK_cjs.resolveEncryptor; }
|
|
584
|
+
});
|
|
585
|
+
Object.defineProperty(exports, "useEnsureOperator", {
|
|
586
|
+
enumerable: true,
|
|
587
|
+
get: function () { return chunk7AFPOE7N_cjs.useEnsureOperator; }
|
|
588
|
+
});
|
|
589
|
+
Object.defineProperty(exports, "useIsOperator", {
|
|
590
|
+
enumerable: true,
|
|
591
|
+
get: function () { return chunk7AFPOE7N_cjs.useIsOperator; }
|
|
573
592
|
});
|
|
574
593
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
575
594
|
enumerable: true,
|
|
@@ -79,4 +79,6 @@ export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, ty
|
|
|
79
79
|
export { DisperseSubwalletNotFoundError, DisperseEncryptedReserveNotGrantedError, type BatchDiscloseHandlesArgs, type BatchLimits, type CalculateFeeArgs, type CalculatedFee, type DiscloseHandleArgs, type DisperseArgs, type DisperseMode, type DisperseResult, type EncryptedInput, type EncryptedInputs, type EncryptedViewResult, type FeeConfig, type GetEncryptedFeeReserveArgs, type PreflightDisperseArgs, type PreflightReport, type RecipientCheck, type RegisterResult, type SubwalletApprovalState, type UserFees, } from "../types.js";
|
|
80
80
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../../core/errors.js";
|
|
81
81
|
export { type PreflightResult } from "../../core/preflight.js";
|
|
82
|
-
export { NotRegisteredError, AlreadyRegisteredError } from "../errors.js";
|
|
82
|
+
export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "../errors.js";
|
|
83
|
+
export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
|
|
84
|
+
export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
|
|
@@ -79,4 +79,6 @@ export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, ty
|
|
|
79
79
|
export { DisperseSubwalletNotFoundError, DisperseEncryptedReserveNotGrantedError, type BatchDiscloseHandlesArgs, type BatchLimits, type CalculateFeeArgs, type CalculatedFee, type DiscloseHandleArgs, type DisperseArgs, type DisperseMode, type DisperseResult, type EncryptedInput, type EncryptedInputs, type EncryptedViewResult, type FeeConfig, type GetEncryptedFeeReserveArgs, type PreflightDisperseArgs, type PreflightReport, type RecipientCheck, type RegisterResult, type SubwalletApprovalState, type UserFees, } from "../types.js";
|
|
80
80
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../../core/errors.js";
|
|
81
81
|
export { type PreflightResult } from "../../core/preflight.js";
|
|
82
|
-
export { NotRegisteredError, AlreadyRegisteredError } from "../errors.js";
|
|
82
|
+
export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "../errors.js";
|
|
83
|
+
export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
|
|
84
|
+
export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-
|
|
2
|
-
export { AlreadyRegisteredError, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, WITHDRAWER_ROLE, computeSubtotals, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-
|
|
3
|
-
|
|
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
|
+
import '../../chunk-FT4LNBOS.js';
|
|
5
|
+
import '../../chunk-4TSDNZQ3.js';
|
|
4
6
|
import '../../chunk-WMACINXO.js';
|
|
5
7
|
import '../../chunk-ZWXJTBZO.js';
|
|
6
8
|
import '../../chunk-7VELUOMI.js';
|
|
7
|
-
import '../../chunk-
|
|
8
|
-
import
|
|
9
|
+
import '../../chunk-NWFMBLSQ.js';
|
|
10
|
+
import '../../chunk-4RAAATVY.js';
|
|
11
|
+
import { getFheDisperseSingletonAddress } from '../../chunk-DZHYSUGY.js';
|
|
9
12
|
import '../../chunk-ZA673I3O.js';
|
|
10
|
-
import '../../chunk-Q2GP5UDC.js';
|
|
11
13
|
import '../../chunk-KWFFIJYX.js';
|
|
12
14
|
import { MissingClientError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
|
|
13
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';
|
|
16
|
+
import '../../chunk-Q2GP5UDC.js';
|
|
14
17
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
15
18
|
import { useRef, useMemo } from 'react';
|
|
16
19
|
import { usePublicClient, useWalletClient } from 'wagmi';
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
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');
|
|
7
8
|
require('../../chunk-JK4XMMKM.cjs');
|
|
8
|
-
require('../../chunk-VJKZWYYJ.cjs');
|
|
9
9
|
require('../../chunk-66IHPTOK.cjs');
|
|
10
10
|
require('../../chunk-67OV5CX2.cjs');
|
|
11
|
+
require('../../chunk-VJKZWYYJ.cjs');
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
Object.defineProperty(exports, "ConfidentialVestingFactoryAdvancedClient", {
|
|
15
16
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkFGEB7RMY_cjs.ConfidentialVestingFactoryAdvancedClient; }
|
|
17
18
|
});
|
|
18
19
|
Object.defineProperty(exports, "createConfidentialVestingFactoryAdvancedClient", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkFGEB7RMY_cjs.createConfidentialVestingFactoryAdvancedClient; }
|
|
21
22
|
});
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
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';
|
|
5
6
|
import '../../chunk-ZA673I3O.js';
|
|
6
|
-
import '../../chunk-Q2GP5UDC.js';
|
|
7
7
|
import '../../chunk-KWFFIJYX.js';
|
|
8
8
|
import '../../chunk-QBJ7O2B4.js';
|
|
9
|
+
import '../../chunk-Q2GP5UDC.js';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var chunkJQYC66TO_cjs = require('../../../chunk-JQYC66TO.cjs');
|
|
4
|
+
require('../../../chunk-WJLECC22.cjs');
|
|
5
5
|
require('../../../chunk-TEBM66WA.cjs');
|
|
6
|
-
require('../../../chunk-
|
|
6
|
+
require('../../../chunk-3QHNYEQD.cjs');
|
|
7
7
|
require('../../../chunk-FAXIIH5R.cjs');
|
|
8
8
|
require('../../../chunk-FWHYQZ5E.cjs');
|
|
9
|
-
var
|
|
10
|
-
require('../../../chunk-
|
|
11
|
-
require('../../../chunk-
|
|
12
|
-
|
|
9
|
+
var chunkFGEB7RMY_cjs = require('../../../chunk-FGEB7RMY.cjs');
|
|
10
|
+
require('../../../chunk-6PXXGACR.cjs');
|
|
11
|
+
require('../../../chunk-UG5RKLU2.cjs');
|
|
12
|
+
require('../../../chunk-MVDQMV25.cjs');
|
|
13
|
+
var chunk5576FRT3_cjs = require('../../../chunk-5576FRT3.cjs');
|
|
13
14
|
require('../../../chunk-JK4XMMKM.cjs');
|
|
14
|
-
require('../../../chunk-VJKZWYYJ.cjs');
|
|
15
15
|
require('../../../chunk-66IHPTOK.cjs');
|
|
16
16
|
require('../../../chunk-67OV5CX2.cjs');
|
|
17
|
+
require('../../../chunk-VJKZWYYJ.cjs');
|
|
17
18
|
var react = require('react');
|
|
18
19
|
var reactQuery = require('@tanstack/react-query');
|
|
19
20
|
var wagmi = require('wagmi');
|
|
@@ -36,12 +37,12 @@ function usePredictManagerAddress(args = {}) {
|
|
|
36
37
|
...chainId !== void 0 ? { chainId } : {}
|
|
37
38
|
});
|
|
38
39
|
const resolvedChainId = chainId ?? resolvedPublicClient?.chain?.id;
|
|
39
|
-
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 :
|
|
40
|
+
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 : chunk5576FRT3_cjs.DEPLOYED_ADDRESSES.fheVesting?.confidentialVestingFactory?.[resolvedChainId] ?? void 0);
|
|
40
41
|
react.useRef(void 0);
|
|
41
42
|
const client = react.useMemo(() => {
|
|
42
43
|
if (!resolvedPublicClient) return void 0;
|
|
43
44
|
if (!resolvedAddress) return void 0;
|
|
44
|
-
return
|
|
45
|
+
return chunkFGEB7RMY_cjs.createConfidentialVestingFactoryAdvancedClient({
|
|
45
46
|
publicClient: resolvedPublicClient,
|
|
46
47
|
...walletClient ? { walletClient } : {},
|
|
47
48
|
address: resolvedAddress,
|
|
@@ -49,7 +50,7 @@ function usePredictManagerAddress(args = {}) {
|
|
|
49
50
|
});
|
|
50
51
|
}, [resolvedPublicClient, walletClient, resolvedAddress, resolvedChainId]);
|
|
51
52
|
return reactQuery.useQuery({
|
|
52
|
-
queryKey:
|
|
53
|
+
queryKey: chunkJQYC66TO_cjs.buildQueryKey(
|
|
53
54
|
"factory:predictManagerAddress",
|
|
54
55
|
resolvedChainId,
|
|
55
56
|
resolvedAddress,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { buildQueryKey } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { buildQueryKey } from '../../../chunk-6NAVMWZQ.js';
|
|
2
|
+
import '../../../chunk-TWT3STIX.js';
|
|
3
3
|
import '../../../chunk-WMACINXO.js';
|
|
4
|
-
import '../../../chunk-
|
|
4
|
+
import '../../../chunk-6GNR22OV.js';
|
|
5
5
|
import '../../../chunk-ZWXJTBZO.js';
|
|
6
6
|
import '../../../chunk-7VELUOMI.js';
|
|
7
|
-
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
10
|
-
import
|
|
7
|
+
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-335Z2W67.js';
|
|
8
|
+
import '../../../chunk-EAJ7SYHE.js';
|
|
9
|
+
import '../../../chunk-NWFMBLSQ.js';
|
|
10
|
+
import '../../../chunk-4RAAATVY.js';
|
|
11
|
+
import { DEPLOYED_ADDRESSES } from '../../../chunk-DZHYSUGY.js';
|
|
11
12
|
import '../../../chunk-ZA673I3O.js';
|
|
12
|
-
import '../../../chunk-Q2GP5UDC.js';
|
|
13
13
|
import '../../../chunk-KWFFIJYX.js';
|
|
14
14
|
import '../../../chunk-QBJ7O2B4.js';
|
|
15
|
+
import '../../../chunk-Q2GP5UDC.js';
|
|
15
16
|
import { useRef, useMemo } from 'react';
|
|
16
17
|
import { useQuery } from '@tanstack/react-query';
|
|
17
18
|
import { usePublicClient, useWalletClient } from 'wagmi';
|
|
@@ -1,95 +1,96 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkWJLECC22_cjs = require('../chunk-WJLECC22.cjs');
|
|
4
4
|
require('../chunk-TEBM66WA.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunk3QHNYEQD_cjs = require('../chunk-3QHNYEQD.cjs');
|
|
6
6
|
require('../chunk-FAXIIH5R.cjs');
|
|
7
7
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
8
|
+
var chunk6PXXGACR_cjs = require('../chunk-6PXXGACR.cjs');
|
|
9
|
+
require('../chunk-UG5RKLU2.cjs');
|
|
10
|
+
require('../chunk-MVDQMV25.cjs');
|
|
11
|
+
require('../chunk-5576FRT3.cjs');
|
|
11
12
|
require('../chunk-JK4XMMKM.cjs');
|
|
12
|
-
require('../chunk-VJKZWYYJ.cjs');
|
|
13
13
|
require('../chunk-66IHPTOK.cjs');
|
|
14
14
|
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
15
|
+
require('../chunk-VJKZWYYJ.cjs');
|
|
15
16
|
|
|
16
17
|
|
|
17
18
|
|
|
18
19
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
19
20
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkWJLECC22_cjs.ClaimLockedError; }
|
|
21
22
|
});
|
|
22
23
|
Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
|
|
23
24
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkWJLECC22_cjs.ConfidentialVestingManagerClient; }
|
|
25
26
|
});
|
|
26
27
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
27
28
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkWJLECC22_cjs.NoPendingTransferError; }
|
|
29
30
|
});
|
|
30
31
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
31
32
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkWJLECC22_cjs.NotPendingRecipientError; }
|
|
33
34
|
});
|
|
34
35
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
35
36
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkWJLECC22_cjs.NotVestingRecipientError; }
|
|
37
38
|
});
|
|
38
39
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
39
40
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkWJLECC22_cjs.TransferAlreadyPendingError; }
|
|
41
42
|
});
|
|
42
43
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
43
44
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkWJLECC22_cjs.TransferExpiredError; }
|
|
45
46
|
});
|
|
46
47
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
47
48
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkWJLECC22_cjs.VestingExpiredError; }
|
|
49
50
|
});
|
|
50
51
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
51
52
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkWJLECC22_cjs.VestingNotFoundError; }
|
|
53
54
|
});
|
|
54
55
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
55
56
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunkWJLECC22_cjs.VestingNotRevocableError; }
|
|
57
58
|
});
|
|
58
59
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
59
60
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunkWJLECC22_cjs.VestingRevokedError; }
|
|
61
62
|
});
|
|
62
63
|
Object.defineProperty(exports, "confidentialVestingManagerAbi", {
|
|
63
64
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunkWJLECC22_cjs.confidentialVestingManagerAbi; }
|
|
65
66
|
});
|
|
66
67
|
Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
|
|
67
68
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunkWJLECC22_cjs.createConfidentialVestingManagerClient; }
|
|
70
|
+
});
|
|
71
|
+
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
get: function () { return chunk3QHNYEQD_cjs.FHE_SPLIT_DENOMINATOR; }
|
|
69
74
|
});
|
|
70
75
|
Object.defineProperty(exports, "encryptUint64", {
|
|
71
76
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk3QHNYEQD_cjs.encryptUint64; }
|
|
73
78
|
});
|
|
74
79
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
75
80
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk3QHNYEQD_cjs.encryptUint64Batch; }
|
|
77
82
|
});
|
|
78
83
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
79
84
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
81
|
-
});
|
|
82
|
-
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
83
|
-
enumerable: true,
|
|
84
|
-
get: function () { return chunk2NCLOQ56_cjs.FHE_SPLIT_DENOMINATOR; }
|
|
85
|
+
get: function () { return chunk3QHNYEQD_cjs.resolveEncryptor; }
|
|
85
86
|
});
|
|
86
87
|
Object.defineProperty(exports, "scaleRatio", {
|
|
87
88
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk3QHNYEQD_cjs.scaleRatio; }
|
|
89
90
|
});
|
|
90
91
|
Object.defineProperty(exports, "share", {
|
|
91
92
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk3QHNYEQD_cjs.share; }
|
|
93
94
|
});
|
|
94
95
|
Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
95
96
|
enumerable: true,
|
|
@@ -97,27 +98,27 @@ Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
|
97
98
|
});
|
|
98
99
|
Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
|
|
99
100
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk6PXXGACR_cjs.ConfidentialVestingFactoryClient; }
|
|
101
102
|
});
|
|
102
103
|
Object.defineProperty(exports, "DisclosureType", {
|
|
103
104
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk6PXXGACR_cjs.DisclosureType; }
|
|
105
106
|
});
|
|
106
107
|
Object.defineProperty(exports, "FeeType", {
|
|
107
108
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk6PXXGACR_cjs.FeeType; }
|
|
109
110
|
});
|
|
110
111
|
Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
|
|
111
112
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunk6PXXGACR_cjs.confidentialVestingFactoryAbi; }
|
|
113
114
|
});
|
|
114
115
|
Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
|
|
115
116
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk6PXXGACR_cjs.createConfidentialVestingFactoryClient; }
|
|
117
118
|
});
|
|
118
119
|
Object.defineProperty(exports, "feeTypeName", {
|
|
119
120
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk6PXXGACR_cjs.feeTypeName; }
|
|
121
122
|
});
|
|
122
123
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
123
124
|
enumerable: true,
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient
|
|
1
|
+
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient } from '../chunk-TWT3STIX.js';
|
|
2
2
|
import '../chunk-WMACINXO.js';
|
|
3
|
-
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-
|
|
3
|
+
export { FHE_SPLIT_DENOMINATOR, encryptUint64, encryptUint64Batch, resolveEncryptor, scaleRatio, share } from '../chunk-6GNR22OV.js';
|
|
4
4
|
import '../chunk-ZWXJTBZO.js';
|
|
5
5
|
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
6
|
-
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-
|
|
7
|
-
import '../chunk-
|
|
8
|
-
import '../chunk-
|
|
6
|
+
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-EAJ7SYHE.js';
|
|
7
|
+
import '../chunk-NWFMBLSQ.js';
|
|
8
|
+
import '../chunk-4RAAATVY.js';
|
|
9
|
+
import '../chunk-DZHYSUGY.js';
|
|
9
10
|
import '../chunk-ZA673I3O.js';
|
|
10
|
-
import '../chunk-Q2GP5UDC.js';
|
|
11
11
|
import '../chunk-KWFFIJYX.js';
|
|
12
12
|
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, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-QBJ7O2B4.js';
|
|
13
|
+
import '../chunk-Q2GP5UDC.js';
|
|
@@ -443,6 +443,11 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
443
443
|
* - Operator: creator has approved this manager as an ERC-7984 operator on
|
|
444
444
|
* the distribution token, required for the manager's
|
|
445
445
|
* `confidentialTransferFrom` pull ({@link OperatorNotApprovedError} blocker).
|
|
446
|
+
* If the bound `token` does not implement the ERC-7984 `isOperator`
|
|
447
|
+
* view — a revert, or a zero-data response for an EOA / undeployed
|
|
448
|
+
* address — operator status is undetermined rather than the call
|
|
449
|
+
* throwing: `isOperatorSet` reports `false` and the read failure becomes
|
|
450
|
+
* an {@link InvalidArgumentError} blocker on `token` instead (TOK-436).
|
|
446
451
|
*
|
|
447
452
|
* **Not preflight-detectable — read before trusting `ready: true`:**
|
|
448
453
|
* - The creator's confidential token balance is an encrypted `euint64` the
|
|
@@ -533,6 +538,13 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
533
538
|
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
534
539
|
* transparent TTT test token uses 18 decimals.
|
|
535
540
|
*
|
|
541
|
+
* Prerequisites: caller must have set this manager as an operator on the
|
|
542
|
+
* token: `token.setOperator(managerAddress, deadline)` — or use
|
|
543
|
+
* `ensureOperator()` from `@tokenops/sdk/fhe`. Skipping it fails with
|
|
544
|
+
* {@link OperatorNotApprovedError} (the SDK's mapping of the on-chain
|
|
545
|
+
* `ERC7984UnauthorizedSpender` revert, whose message is the canonical
|
|
546
|
+
* `OPERATOR_NOT_APPROVED_REMEDIATION` copy).
|
|
547
|
+
*
|
|
536
548
|
* @returns Transaction hash. Parse the `VestingCreated` event to extract the `vestingId`.
|
|
537
549
|
* @example
|
|
538
550
|
* const hash = await manager.createVesting({
|
|
@@ -557,6 +569,13 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
557
569
|
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
558
570
|
* transparent TTT test token uses 18 decimals.
|
|
559
571
|
*
|
|
572
|
+
* Prerequisites: caller must have set this manager as an operator on the
|
|
573
|
+
* token: `token.setOperator(managerAddress, deadline)` — or use
|
|
574
|
+
* `ensureOperator()` from `@tokenops/sdk/fhe`. Skipping it fails with
|
|
575
|
+
* {@link OperatorNotApprovedError} (the SDK's mapping of the on-chain
|
|
576
|
+
* `ERC7984UnauthorizedSpender` revert, whose message is the canonical
|
|
577
|
+
* `OPERATOR_NOT_APPROVED_REMEDIATION` copy).
|
|
578
|
+
*
|
|
560
579
|
* @returns Transaction hash.
|
|
561
580
|
*/
|
|
562
581
|
batchCreateVesting(args: BatchCreateVestingArgs): Promise<Hex>;
|