@tokenops/sdk 1.5.1 → 1.6.0
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 +158 -2
- package/SECURITY.md +7 -1
- package/dist/{chunk-67OV5CX2.cjs → chunk-2RNW4MIJ.cjs} +18 -0
- package/dist/{chunk-KLKI352M.cjs → chunk-43RFBQ73.cjs} +29 -29
- package/dist/{chunk-ZA673I3O.js → chunk-46T67CE2.js} +1 -1
- package/dist/{chunk-6BMP4ICG.js → chunk-4KJ66YRH.js} +61 -3
- package/dist/{chunk-JYOTGRSO.cjs → chunk-4ZCXK4VI.cjs} +68 -8
- package/dist/{chunk-SG65XWH7.js → chunk-6WSNS3UV.js} +1 -1
- package/dist/{chunk-V2PXZVBF.cjs → chunk-7G7UOQV4.cjs} +4 -4
- package/dist/{chunk-WENHUPZC.cjs → chunk-AYGRYDBX.cjs} +35 -36
- package/dist/{chunk-2NCLOQ56.cjs → chunk-BD4LZBVF.cjs} +85 -9
- package/dist/{chunk-5X5WL5CU.cjs → chunk-BK7YIVLK.cjs} +110 -149
- package/dist/{chunk-W7IGCOVL.cjs → chunk-CBRL2PJA.cjs} +12 -11
- package/dist/{chunk-ORFTDNFZ.js → chunk-CNP4L3GF.js} +4 -4
- package/dist/{chunk-QBJ7O2B4.js → chunk-DRSPMIZ7.js} +11 -1
- package/dist/{chunk-C7BRZXJA.cjs → chunk-EUKPOXWR.cjs} +15 -16
- package/dist/{chunk-YQIBBEFJ.js → chunk-HETNKZEE.js} +1 -1
- package/dist/{chunk-ODLTEGHB.js → chunk-KSDSXJ34.js} +1 -1
- package/dist/{chunk-TIUKIY5V.cjs → chunk-LBWRFZR3.cjs} +58 -40
- package/dist/{chunk-WMACINXO.js → chunk-NFW7AUEX.js} +1 -1
- package/dist/{chunk-4WPGQSNT.cjs → chunk-OL6SHN3D.cjs} +3 -3
- package/dist/{chunk-AOP6HMPW.js → chunk-PD7ME2BT.js} +75 -2
- package/dist/{chunk-2PWNH3UE.js → chunk-QET3Q4JP.js} +65 -9
- package/dist/{chunk-XGGTQQFH.js → chunk-QKKBBH7I.js} +2 -2
- package/dist/{chunk-6R4KNAPK.js → chunk-S2XD75JM.js} +10 -3
- package/dist/{chunk-MCRBVJGZ.cjs → chunk-SPGSO5SO.cjs} +29 -22
- package/dist/{chunk-FAXIIH5R.cjs → chunk-SYHNZSZZ.cjs} +3 -3
- package/dist/{chunk-IXLO7GO5.js → chunk-TN65XNTI.js} +47 -83
- package/dist/chunk-U57COLUE.js +56 -0
- package/dist/{chunk-DUZIIRPF.js → chunk-UE5XK2SY.js} +27 -9
- package/dist/{chunk-TEBM66WA.cjs → chunk-UJS4N2XM.cjs} +12 -12
- package/dist/{chunk-OXTLPTO3.js → chunk-V5D7BHW3.js} +4 -5
- package/dist/{chunk-NTZY6IB7.js → chunk-VHSNYUYV.js} +5 -4
- package/dist/{chunk-JK4XMMKM.cjs → chunk-VR3FREBX.cjs} +3 -3
- package/dist/{chunk-T46YXSBP.cjs → chunk-WO72UBQD.cjs} +11 -11
- package/dist/chunk-WOEETTH7.cjs +59 -0
- package/dist/{chunk-IJFQ5L4I.js → chunk-WTK6JDSI.js} +4 -5
- package/dist/{chunk-PUPKNW3R.cjs → chunk-WUXUWTFW.cjs} +3 -3
- package/dist/{chunk-PFXURMBZ.cjs → chunk-YFIWCYHC.cjs} +112 -54
- package/dist/{chunk-ZWXJTBZO.js → chunk-YPYCWLYP.js} +1 -1
- package/dist/core/addresses.d.ts +1 -1
- package/dist/core/errors.d.ts +1 -1
- package/dist/fhe/index.cjs +84 -64
- package/dist/fhe/index.d.cts +1 -0
- package/dist/fhe/index.d.ts +1 -0
- package/dist/fhe/index.js +21 -9
- package/dist/fhe/mock-erc7984.d.ts +4 -4
- package/dist/fhe/operators.d.ts +142 -2
- package/dist/fhe/react/index.cjs +21 -8
- package/dist/fhe/react/index.d.cts +2 -0
- package/dist/fhe/react/index.d.ts +2 -0
- package/dist/fhe/react/index.js +8 -3
- 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-airdrop/advanced/index.cjs +8 -9
- package/dist/fhe-airdrop/advanced/index.js +6 -7
- package/dist/fhe-airdrop/advanced/react/index.cjs +13 -14
- package/dist/fhe-airdrop/advanced/react/index.js +9 -10
- package/dist/fhe-airdrop/airdrop.d.ts +7 -0
- package/dist/fhe-airdrop/index.cjs +66 -67
- package/dist/fhe-airdrop/index.js +7 -8
- package/dist/fhe-airdrop/react/index.cjs +148 -137
- package/dist/fhe-airdrop/react/index.d.cts +3 -1
- package/dist/fhe-airdrop/react/index.d.ts +3 -1
- package/dist/fhe-airdrop/react/index.js +16 -14
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +17 -11
- package/dist/fhe-airdrop/react/useClaim.d.ts +8 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +1 -1
- package/dist/fhe-airdrop/types.d.ts +14 -3
- package/dist/fhe-disperse/errors.d.ts +55 -0
- package/dist/fhe-disperse/index.cjs +74 -67
- package/dist/fhe-disperse/index.d.cts +1 -1
- package/dist/fhe-disperse/index.d.ts +1 -1
- package/dist/fhe-disperse/index.js +8 -9
- package/dist/fhe-disperse/react/index.cjs +105 -88
- 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 +12 -11
- package/dist/fhe-vesting/advanced/index.cjs +8 -9
- package/dist/fhe-vesting/advanced/index.js +6 -7
- package/dist/fhe-vesting/advanced/react/index.cjs +14 -15
- package/dist/fhe-vesting/advanced/react/index.js +11 -12
- package/dist/fhe-vesting/index.cjs +75 -76
- package/dist/fhe-vesting/index.js +9 -10
- package/dist/fhe-vesting/manager.d.ts +19 -0
- package/dist/fhe-vesting/react/index.cjs +245 -227
- 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 +27 -21
- 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 +87 -88
- package/dist/index.js +2 -3
- package/dist/testnet-faucet/index.cjs +55 -56
- package/dist/testnet-faucet/index.js +5 -6
- package/dist/testnet-faucet/react/index.cjs +53 -54
- package/dist/testnet-faucet/react/index.js +7 -8
- package/package.json +13 -8
- package/dist/chunk-66IHPTOK.cjs +0 -20
- package/dist/chunk-KWFFIJYX.js +0 -11
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -27
- package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
- 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,19 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
5
|
-
require('../../../chunk-
|
|
6
|
-
require('../../../chunk-
|
|
7
|
-
require('../../../chunk-
|
|
3
|
+
var chunkCBRL2PJA_cjs = require('../../../chunk-CBRL2PJA.cjs');
|
|
4
|
+
require('../../../chunk-BK7YIVLK.cjs');
|
|
5
|
+
require('../../../chunk-UJS4N2XM.cjs');
|
|
6
|
+
require('../../../chunk-BD4LZBVF.cjs');
|
|
7
|
+
require('../../../chunk-SYHNZSZZ.cjs');
|
|
8
8
|
require('../../../chunk-FWHYQZ5E.cjs');
|
|
9
|
-
var
|
|
10
|
-
require('../../../chunk-
|
|
11
|
-
require('../../../chunk-
|
|
12
|
-
var
|
|
13
|
-
require('../../../chunk-
|
|
9
|
+
var chunk7G7UOQV4_cjs = require('../../../chunk-7G7UOQV4.cjs');
|
|
10
|
+
require('../../../chunk-EUKPOXWR.cjs');
|
|
11
|
+
require('../../../chunk-43RFBQ73.cjs');
|
|
12
|
+
var chunkWUXUWTFW_cjs = require('../../../chunk-WUXUWTFW.cjs');
|
|
13
|
+
require('../../../chunk-VR3FREBX.cjs');
|
|
14
|
+
require('../../../chunk-2RNW4MIJ.cjs');
|
|
14
15
|
require('../../../chunk-VJKZWYYJ.cjs');
|
|
15
|
-
require('../../../chunk-66IHPTOK.cjs');
|
|
16
|
-
require('../../../chunk-67OV5CX2.cjs');
|
|
17
16
|
var react = require('react');
|
|
18
17
|
var reactQuery = require('@tanstack/react-query');
|
|
19
18
|
var wagmi = require('wagmi');
|
|
@@ -36,12 +35,12 @@ function usePredictManagerAddress(args = {}) {
|
|
|
36
35
|
...chainId !== void 0 ? { chainId } : {}
|
|
37
36
|
});
|
|
38
37
|
const resolvedChainId = chainId ?? resolvedPublicClient?.chain?.id;
|
|
39
|
-
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 :
|
|
38
|
+
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 : chunkWUXUWTFW_cjs.DEPLOYED_ADDRESSES.fheVesting?.confidentialVestingFactory?.[resolvedChainId] ?? void 0);
|
|
40
39
|
react.useRef(void 0);
|
|
41
40
|
const client = react.useMemo(() => {
|
|
42
41
|
if (!resolvedPublicClient) return void 0;
|
|
43
42
|
if (!resolvedAddress) return void 0;
|
|
44
|
-
return
|
|
43
|
+
return chunk7G7UOQV4_cjs.createConfidentialVestingFactoryAdvancedClient({
|
|
45
44
|
publicClient: resolvedPublicClient,
|
|
46
45
|
...walletClient ? { walletClient } : {},
|
|
47
46
|
address: resolvedAddress,
|
|
@@ -49,7 +48,7 @@ function usePredictManagerAddress(args = {}) {
|
|
|
49
48
|
});
|
|
50
49
|
}, [resolvedPublicClient, walletClient, resolvedAddress, resolvedChainId]);
|
|
51
50
|
return reactQuery.useQuery({
|
|
52
|
-
queryKey:
|
|
51
|
+
queryKey: chunkCBRL2PJA_cjs.buildQueryKey(
|
|
53
52
|
"factory:predictManagerAddress",
|
|
54
53
|
resolvedChainId,
|
|
55
54
|
resolvedAddress,
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { buildQueryKey } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
3
|
-
import '../../../chunk-
|
|
4
|
-
import '../../../chunk-
|
|
5
|
-
import '../../../chunk-
|
|
1
|
+
import { buildQueryKey } from '../../../chunk-VHSNYUYV.js';
|
|
2
|
+
import '../../../chunk-TN65XNTI.js';
|
|
3
|
+
import '../../../chunk-NFW7AUEX.js';
|
|
4
|
+
import '../../../chunk-PD7ME2BT.js';
|
|
5
|
+
import '../../../chunk-YPYCWLYP.js';
|
|
6
6
|
import '../../../chunk-7VELUOMI.js';
|
|
7
|
-
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-
|
|
8
|
-
import '../../../chunk-
|
|
9
|
-
import '../../../chunk-
|
|
10
|
-
import { DEPLOYED_ADDRESSES } from '../../../chunk-
|
|
11
|
-
import '../../../chunk-
|
|
7
|
+
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-HETNKZEE.js';
|
|
8
|
+
import '../../../chunk-V5D7BHW3.js';
|
|
9
|
+
import '../../../chunk-6WSNS3UV.js';
|
|
10
|
+
import { DEPLOYED_ADDRESSES } from '../../../chunk-QKKBBH7I.js';
|
|
11
|
+
import '../../../chunk-46T67CE2.js';
|
|
12
|
+
import '../../../chunk-DRSPMIZ7.js';
|
|
12
13
|
import '../../../chunk-Q2GP5UDC.js';
|
|
13
|
-
import '../../../chunk-KWFFIJYX.js';
|
|
14
|
-
import '../../../chunk-QBJ7O2B4.js';
|
|
15
14
|
import { useRef, useMemo } from 'react';
|
|
16
15
|
import { useQuery } from '@tanstack/react-query';
|
|
17
16
|
import { usePublicClient, useWalletClient } from 'wagmi';
|
|
@@ -1,95 +1,94 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
var
|
|
6
|
-
require('../chunk-
|
|
3
|
+
var chunkBK7YIVLK_cjs = require('../chunk-BK7YIVLK.cjs');
|
|
4
|
+
require('../chunk-UJS4N2XM.cjs');
|
|
5
|
+
var chunkBD4LZBVF_cjs = require('../chunk-BD4LZBVF.cjs');
|
|
6
|
+
require('../chunk-SYHNZSZZ.cjs');
|
|
7
7
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
8
|
-
var
|
|
9
|
-
require('../chunk-
|
|
10
|
-
require('../chunk-
|
|
11
|
-
require('../chunk-
|
|
8
|
+
var chunkEUKPOXWR_cjs = require('../chunk-EUKPOXWR.cjs');
|
|
9
|
+
require('../chunk-43RFBQ73.cjs');
|
|
10
|
+
require('../chunk-WUXUWTFW.cjs');
|
|
11
|
+
require('../chunk-VR3FREBX.cjs');
|
|
12
|
+
var chunk2RNW4MIJ_cjs = require('../chunk-2RNW4MIJ.cjs');
|
|
12
13
|
require('../chunk-VJKZWYYJ.cjs');
|
|
13
|
-
require('../chunk-66IHPTOK.cjs');
|
|
14
|
-
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
|
|
18
17
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
19
18
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkBK7YIVLK_cjs.ClaimLockedError; }
|
|
21
20
|
});
|
|
22
21
|
Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
|
|
23
22
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkBK7YIVLK_cjs.ConfidentialVestingManagerClient; }
|
|
25
24
|
});
|
|
26
25
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
27
26
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkBK7YIVLK_cjs.NoPendingTransferError; }
|
|
29
28
|
});
|
|
30
29
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
31
30
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkBK7YIVLK_cjs.NotPendingRecipientError; }
|
|
33
32
|
});
|
|
34
33
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
35
34
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkBK7YIVLK_cjs.NotVestingRecipientError; }
|
|
37
36
|
});
|
|
38
37
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
39
38
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkBK7YIVLK_cjs.TransferAlreadyPendingError; }
|
|
41
40
|
});
|
|
42
41
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
43
42
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkBK7YIVLK_cjs.TransferExpiredError; }
|
|
45
44
|
});
|
|
46
45
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
47
46
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkBK7YIVLK_cjs.VestingExpiredError; }
|
|
49
48
|
});
|
|
50
49
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
51
50
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkBK7YIVLK_cjs.VestingNotFoundError; }
|
|
53
52
|
});
|
|
54
53
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
55
54
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkBK7YIVLK_cjs.VestingNotRevocableError; }
|
|
57
56
|
});
|
|
58
57
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
59
58
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkBK7YIVLK_cjs.VestingRevokedError; }
|
|
61
60
|
});
|
|
62
61
|
Object.defineProperty(exports, "confidentialVestingManagerAbi", {
|
|
63
62
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkBK7YIVLK_cjs.confidentialVestingManagerAbi; }
|
|
65
64
|
});
|
|
66
65
|
Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
|
|
67
66
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkBK7YIVLK_cjs.createConfidentialVestingManagerClient; }
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () { return chunkBD4LZBVF_cjs.FHE_SPLIT_DENOMINATOR; }
|
|
69
72
|
});
|
|
70
73
|
Object.defineProperty(exports, "encryptUint64", {
|
|
71
74
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkBD4LZBVF_cjs.encryptUint64; }
|
|
73
76
|
});
|
|
74
77
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
75
78
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkBD4LZBVF_cjs.encryptUint64Batch; }
|
|
77
80
|
});
|
|
78
81
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
79
82
|
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; }
|
|
83
|
+
get: function () { return chunkBD4LZBVF_cjs.resolveEncryptor; }
|
|
85
84
|
});
|
|
86
85
|
Object.defineProperty(exports, "scaleRatio", {
|
|
87
86
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkBD4LZBVF_cjs.scaleRatio; }
|
|
89
88
|
});
|
|
90
89
|
Object.defineProperty(exports, "share", {
|
|
91
90
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkBD4LZBVF_cjs.share; }
|
|
93
92
|
});
|
|
94
93
|
Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
95
94
|
enumerable: true,
|
|
@@ -97,177 +96,177 @@ Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
|
97
96
|
});
|
|
98
97
|
Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
|
|
99
98
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkEUKPOXWR_cjs.ConfidentialVestingFactoryClient; }
|
|
101
100
|
});
|
|
102
101
|
Object.defineProperty(exports, "DisclosureType", {
|
|
103
102
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkEUKPOXWR_cjs.DisclosureType; }
|
|
105
104
|
});
|
|
106
105
|
Object.defineProperty(exports, "FeeType", {
|
|
107
106
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkEUKPOXWR_cjs.FeeType; }
|
|
109
108
|
});
|
|
110
109
|
Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
|
|
111
110
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkEUKPOXWR_cjs.confidentialVestingFactoryAbi; }
|
|
113
112
|
});
|
|
114
113
|
Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
|
|
115
114
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkEUKPOXWR_cjs.createConfidentialVestingFactoryClient; }
|
|
117
116
|
});
|
|
118
117
|
Object.defineProperty(exports, "feeTypeName", {
|
|
119
118
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkEUKPOXWR_cjs.feeTypeName; }
|
|
121
120
|
});
|
|
122
121
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
123
122
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
|
|
125
124
|
});
|
|
126
125
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
127
126
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
|
|
129
128
|
});
|
|
130
129
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
131
130
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
|
|
133
132
|
});
|
|
134
133
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
135
134
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
|
|
137
136
|
});
|
|
138
137
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
139
138
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
|
|
141
140
|
});
|
|
142
141
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
143
142
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
|
|
145
144
|
});
|
|
146
145
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
147
146
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
|
|
149
148
|
});
|
|
150
149
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
151
150
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
|
|
153
152
|
});
|
|
154
153
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
155
154
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
|
|
157
156
|
});
|
|
158
157
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
159
158
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
|
|
161
160
|
});
|
|
162
161
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
163
162
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
|
|
165
164
|
});
|
|
166
165
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
167
166
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
|
|
169
168
|
});
|
|
170
169
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
171
170
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
|
|
173
172
|
});
|
|
174
173
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
175
174
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
|
|
177
176
|
});
|
|
178
177
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
179
178
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
|
|
181
180
|
});
|
|
182
181
|
Object.defineProperty(exports, "MissingClientError", {
|
|
183
182
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
|
|
185
184
|
});
|
|
186
185
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
187
186
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
|
|
189
188
|
});
|
|
190
189
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
191
190
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
|
|
193
192
|
});
|
|
194
193
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
195
194
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
195
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
|
|
197
196
|
});
|
|
198
197
|
Object.defineProperty(exports, "NetworkError", {
|
|
199
198
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
199
|
+
get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
|
|
201
200
|
});
|
|
202
201
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
203
202
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
|
|
205
204
|
});
|
|
206
205
|
Object.defineProperty(exports, "PausedError", {
|
|
207
206
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
207
|
+
get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
|
|
209
208
|
});
|
|
210
209
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
211
210
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
211
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
|
|
213
212
|
});
|
|
214
213
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
215
214
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
215
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
|
|
217
216
|
});
|
|
218
217
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
219
218
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
219
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
|
|
221
220
|
});
|
|
222
221
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
223
222
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
|
|
225
224
|
});
|
|
226
225
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
227
226
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
|
|
229
228
|
});
|
|
230
229
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
231
230
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsContractError; }
|
|
233
232
|
});
|
|
234
233
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
235
234
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
|
|
237
236
|
});
|
|
238
237
|
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
239
238
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsValidationError; }
|
|
241
240
|
});
|
|
242
241
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
243
242
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
|
|
245
244
|
});
|
|
246
245
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
247
246
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
|
|
249
248
|
});
|
|
250
249
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
251
250
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
|
|
253
252
|
});
|
|
254
253
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
255
254
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
|
|
257
256
|
});
|
|
258
257
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
259
258
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
|
|
261
260
|
});
|
|
262
261
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
263
262
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
|
|
265
264
|
});
|
|
266
265
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
267
266
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
|
|
269
268
|
});
|
|
270
269
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
271
270
|
enumerable: true,
|
|
272
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
|
|
273
272
|
});
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient
|
|
2
|
-
import '../chunk-
|
|
3
|
-
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient } from '../chunk-TN65XNTI.js';
|
|
2
|
+
import '../chunk-NFW7AUEX.js';
|
|
3
|
+
export { FHE_SPLIT_DENOMINATOR, encryptUint64, encryptUint64Batch, resolveEncryptor, scaleRatio, share } from '../chunk-PD7ME2BT.js';
|
|
4
|
+
import '../chunk-YPYCWLYP.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-
|
|
9
|
-
import '../chunk-
|
|
6
|
+
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-V5D7BHW3.js';
|
|
7
|
+
import '../chunk-6WSNS3UV.js';
|
|
8
|
+
import '../chunk-QKKBBH7I.js';
|
|
9
|
+
import '../chunk-46T67CE2.js';
|
|
10
|
+
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-DRSPMIZ7.js';
|
|
10
11
|
import '../chunk-Q2GP5UDC.js';
|
|
11
|
-
import '../chunk-KWFFIJYX.js';
|
|
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';
|
|
@@ -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>;
|