@tokenops/sdk 1.0.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +120 -26
- package/dist/{chunk-5SGMJADP.cjs → chunk-2NCLOQ56.cjs} +9 -9
- package/dist/{chunk-QIHZVLIK.js → chunk-2PWNH3UE.js} +35 -6
- package/dist/{chunk-T5LVV3KY.cjs → chunk-4WPGQSNT.cjs} +3 -3
- package/dist/{chunk-SUOG3BQS.cjs → chunk-5X5WL5CU.cjs} +266 -103
- package/dist/{chunk-56UI7LUR.cjs → chunk-67OV5CX2.cjs} +19 -0
- package/dist/{chunk-WRCUDSUJ.js → chunk-6BMP4ICG.js} +2 -2
- package/dist/{chunk-XXXDQSHE.js → chunk-6R4KNAPK.js} +5 -3
- package/dist/{chunk-XSNLAS5M.js → chunk-AOP6HMPW.js} +1 -1
- package/dist/{chunk-62DF53UQ.cjs → chunk-C7BRZXJA.cjs} +19 -21
- package/dist/{chunk-UOG4PJL5.js → chunk-DUZIIRPF.js} +181 -14
- package/dist/{chunk-Q7ARQSUH.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/chunk-FT4LNBOS.js +11 -0
- package/dist/chunk-IJFQ5L4I.js +2171 -0
- package/dist/{chunk-52TC6BF7.js → chunk-IXLO7GO5.js} +210 -47
- package/dist/{chunk-CQIPRNS7.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-ITQ7WKVC.cjs → chunk-JYOTGRSO.cjs} +8 -8
- package/dist/{chunk-VDXVNZCO.cjs → chunk-KLKI352M.cjs} +85 -29
- package/dist/{chunk-5SA2HF2W.cjs → chunk-MCRBVJGZ.cjs} +24 -22
- package/dist/{chunk-ECT3NL2L.js → chunk-NTZY6IB7.js} +4 -4
- package/dist/{chunk-ZHFLRKFY.js → chunk-ODLTEGHB.js} +1 -1
- package/dist/{chunk-HGXNRR25.js → chunk-ORFTDNFZ.js} +4 -4
- package/dist/{chunk-72YGZEQE.js → chunk-OXTLPTO3.js} +9 -11
- package/dist/{chunk-HTOMTEA3.cjs → chunk-PFXURMBZ.cjs} +77 -48
- package/dist/{chunk-OLDGMKW2.cjs → chunk-PUPKNW3R.cjs} +35 -2
- package/dist/{chunk-IVE3QEGD.js → chunk-QBJ7O2B4.js} +18 -1
- package/dist/{chunk-JFLEEXKP.js → chunk-SG65XWH7.js} +58 -2
- package/dist/{chunk-K6MFFDBJ.cjs → chunk-T46YXSBP.cjs} +11 -11
- package/dist/{chunk-NS44KBV5.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-6ECAHP5O.cjs → chunk-TIUKIY5V.cjs} +200 -33
- package/dist/{chunk-QCA7O2Q5.cjs → chunk-V2PXZVBF.cjs} +4 -4
- package/dist/{chunk-JFR5J4FL.cjs → chunk-W7IGCOVL.cjs} +11 -11
- package/dist/chunk-WENHUPZC.cjs +2180 -0
- package/dist/{chunk-ZXCOJY2Z.js → chunk-WMACINXO.js} +1 -1
- package/dist/{chunk-COPFW5Z4.js → chunk-XGGTQQFH.js} +31 -2
- package/dist/{chunk-CMRETRZO.js → chunk-YQIBBEFJ.js} +1 -1
- package/dist/{chunk-BE2AIZ3K.js → chunk-ZA673I3O.js} +1 -1
- package/dist/chunk-ZQUE2B3Q.cjs +33 -0
- package/dist/{chunk-FYQ2UW4T.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +22 -0
- package/dist/core/errors.d.ts +41 -1
- package/dist/core/revert-mapper.d.ts +77 -0
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/core/wagmi-compat.d.ts +40 -0
- package/dist/fhe/index.cjs +112 -66
- package/dist/fhe/index.d.cts +1 -1
- package/dist/fhe/index.d.ts +1 -1
- package/dist/fhe/index.js +50 -8
- package/dist/fhe/operators.d.ts +1 -1
- package/dist/fhe/react/index.cjs +7 -7
- package/dist/fhe/react/index.js +2 -2
- package/dist/fhe/sepolia-encryptor-web.d.ts +27 -1
- package/dist/fhe/sepolia-encryptor.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +3 -3
- package/dist/fhe-airdrop/advanced/index.cjs +9 -8
- package/dist/fhe-airdrop/advanced/index.d.cts +2 -2
- package/dist/fhe-airdrop/advanced/index.d.ts +2 -2
- package/dist/fhe-airdrop/advanced/index.js +7 -6
- package/dist/fhe-airdrop/advanced/react/index.cjs +14 -13
- package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -1
- package/dist/fhe-airdrop/advanced/react/index.js +10 -9
- package/dist/fhe-airdrop/airdrop.d.ts +2 -0
- package/dist/fhe-airdrop/encryption.d.ts +8 -0
- package/dist/fhe-airdrop/factory.d.ts +94 -11
- package/dist/fhe-airdrop/index.cjs +61 -57
- package/dist/fhe-airdrop/index.d.cts +3 -3
- package/dist/fhe-airdrop/index.d.ts +3 -3
- package/dist/fhe-airdrop/index.js +7 -7
- package/dist/fhe-airdrop/react/index.cjs +163 -133
- package/dist/fhe-airdrop/react/index.d.cts +4 -3
- package/dist/fhe-airdrop/react/index.d.ts +4 -3
- package/dist/fhe-airdrop/react/index.js +38 -13
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +2 -0
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +3 -2
- package/dist/fhe-airdrop/react/useClaim.d.ts +2 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +8 -0
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -0
- package/dist/fhe-airdrop/types.d.ts +45 -0
- package/dist/fhe-disperse/encryption.d.ts +8 -0
- package/dist/fhe-disperse/index.cjs +69 -65
- 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 -8
- package/dist/fhe-disperse/react/index.cjs +90 -86
- package/dist/fhe-disperse/react/index.d.cts +1 -1
- package/dist/fhe-disperse/react/index.d.ts +1 -1
- package/dist/fhe-disperse/react/index.js +10 -10
- package/dist/fhe-disperse/react/useCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useDisperse.d.ts +9 -0
- package/dist/fhe-disperse/react/usePreflightDisperse.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +8 -2
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-disperse/singleton.d.ts +29 -0
- package/dist/fhe-disperse/subtotals.d.ts +6 -0
- package/dist/fhe-vesting/advanced/factory-advanced.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.cjs +8 -8
- package/dist/fhe-vesting/advanced/index.d.cts +2 -2
- package/dist/fhe-vesting/advanced/index.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.js +6 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +15 -14
- package/dist/fhe-vesting/advanced/react/index.d.cts +1 -1
- package/dist/fhe-vesting/advanced/react/index.d.ts +1 -1
- package/dist/fhe-vesting/advanced/react/index.js +12 -11
- package/dist/fhe-vesting/encryption.d.ts +8 -0
- package/dist/fhe-vesting/factory.d.ts +6 -8
- package/dist/fhe-vesting/index.cjs +79 -75
- package/dist/fhe-vesting/index.d.cts +2 -2
- package/dist/fhe-vesting/index.d.ts +2 -2
- package/dist/fhe-vesting/index.js +9 -9
- package/dist/fhe-vesting/manager.d.ts +101 -3
- package/dist/fhe-vesting/react/index.cjs +241 -219
- package/dist/fhe-vesting/react/index.d.cts +3 -2
- package/dist/fhe-vesting/react/index.d.ts +3 -2
- package/dist/fhe-vesting/react/index.js +29 -12
- package/dist/fhe-vesting/react/useAdminClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +7 -1
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +8 -0
- package/dist/fhe-vesting/react/usePreflightCreateVesting.d.ts +37 -0
- package/dist/fhe-vesting/react/useVestingClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useWithdrawAdmin.d.ts +6 -0
- package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/types.d.ts +34 -2
- package/dist/index.cjs +73 -49
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/testnet-faucet/abis/confidential-test-token.d.ts +1039 -0
- package/dist/testnet-faucet/abis/index.d.ts +2 -0
- package/dist/testnet-faucet/abis/test-token.d.ts +253 -0
- package/dist/testnet-faucet/errors.d.ts +21 -0
- package/dist/testnet-faucet/faucet.d.ts +173 -0
- package/dist/testnet-faucet/index.cjs +212 -0
- package/dist/testnet-faucet/index.d.cts +8 -0
- package/dist/testnet-faucet/index.d.ts +8 -0
- package/dist/testnet-faucet/index.js +7 -0
- package/dist/testnet-faucet/react/_shared.d.ts +61 -0
- package/dist/testnet-faucet/react/index.cjs +384 -0
- package/dist/testnet-faucet/react/index.d.cts +39 -0
- package/dist/testnet-faucet/react/index.d.ts +39 -0
- package/dist/testnet-faucet/react/index.js +220 -0
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +25 -0
- package/dist/testnet-faucet/react/useFaucetDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useFaucetMetadata.d.ts +14 -0
- package/dist/testnet-faucet/react/useFaucetRate.d.ts +11 -0
- package/dist/testnet-faucet/react/useInferredTotalSupply.d.ts +11 -0
- package/dist/testnet-faucet/react/useMaxTotalSupply.d.ts +10 -0
- package/dist/testnet-faucet/react/useMintConfidential.d.ts +35 -0
- package/dist/testnet-faucet/react/useMintUnderlying.d.ts +31 -0
- package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +19 -0
- package/dist/testnet-faucet/react/useUnderlyingDecimals.d.ts +9 -0
- package/dist/testnet-faucet/react/useUnderlyingTokenAddress.d.ts +12 -0
- package/dist/testnet-faucet/types.d.ts +92 -0
- package/dist/testnet-faucet/validate.d.ts +44 -0
- package/package.json +79 -30
|
@@ -1,269 +1,273 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunk5X5WL5CU_cjs = require('../chunk-5X5WL5CU.cjs');
|
|
4
|
+
require('../chunk-TEBM66WA.cjs');
|
|
5
|
+
var chunk2NCLOQ56_cjs = require('../chunk-2NCLOQ56.cjs');
|
|
6
|
+
require('../chunk-FAXIIH5R.cjs');
|
|
3
7
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
4
|
-
var
|
|
5
|
-
require('../chunk-
|
|
6
|
-
|
|
7
|
-
require('../chunk-
|
|
8
|
-
var chunk62DF53UQ_cjs = require('../chunk-62DF53UQ.cjs');
|
|
9
|
-
require('../chunk-VDXVNZCO.cjs');
|
|
10
|
-
require('../chunk-OLDGMKW2.cjs');
|
|
11
|
-
require('../chunk-CQIPRNS7.cjs');
|
|
8
|
+
var chunkC7BRZXJA_cjs = require('../chunk-C7BRZXJA.cjs');
|
|
9
|
+
require('../chunk-KLKI352M.cjs');
|
|
10
|
+
require('../chunk-PUPKNW3R.cjs');
|
|
11
|
+
require('../chunk-JK4XMMKM.cjs');
|
|
12
12
|
require('../chunk-VJKZWYYJ.cjs');
|
|
13
13
|
require('../chunk-66IHPTOK.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () { return chunkFWHYQZ5E_cjs.erc7984OperatorAbi; }
|
|
21
|
-
});
|
|
22
18
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
23
19
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunk5X5WL5CU_cjs.ClaimLockedError; }
|
|
25
21
|
});
|
|
26
22
|
Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
|
|
27
23
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunk5X5WL5CU_cjs.ConfidentialVestingManagerClient; }
|
|
29
25
|
});
|
|
30
26
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
31
27
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunk5X5WL5CU_cjs.NoPendingTransferError; }
|
|
33
29
|
});
|
|
34
30
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
35
31
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunk5X5WL5CU_cjs.NotPendingRecipientError; }
|
|
37
33
|
});
|
|
38
34
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
39
35
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunk5X5WL5CU_cjs.NotVestingRecipientError; }
|
|
41
37
|
});
|
|
42
38
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
43
39
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunk5X5WL5CU_cjs.TransferAlreadyPendingError; }
|
|
45
41
|
});
|
|
46
42
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
47
43
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunk5X5WL5CU_cjs.TransferExpiredError; }
|
|
49
45
|
});
|
|
50
46
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
51
47
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunk5X5WL5CU_cjs.VestingExpiredError; }
|
|
53
49
|
});
|
|
54
50
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
55
51
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunk5X5WL5CU_cjs.VestingNotFoundError; }
|
|
57
53
|
});
|
|
58
54
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
59
55
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunk5X5WL5CU_cjs.VestingNotRevocableError; }
|
|
61
57
|
});
|
|
62
58
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
63
59
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunk5X5WL5CU_cjs.VestingRevokedError; }
|
|
65
61
|
});
|
|
66
62
|
Object.defineProperty(exports, "confidentialVestingManagerAbi", {
|
|
67
63
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk5X5WL5CU_cjs.confidentialVestingManagerAbi; }
|
|
69
65
|
});
|
|
70
66
|
Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
|
|
71
67
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk5X5WL5CU_cjs.createConfidentialVestingManagerClient; }
|
|
73
69
|
});
|
|
74
70
|
Object.defineProperty(exports, "encryptUint64", {
|
|
75
71
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk5X5WL5CU_cjs.encryptUint64; }
|
|
77
73
|
});
|
|
78
74
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
79
75
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk5X5WL5CU_cjs.encryptUint64Batch; }
|
|
81
77
|
});
|
|
82
78
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
83
79
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk5X5WL5CU_cjs.resolveEncryptor; }
|
|
85
81
|
});
|
|
86
82
|
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
87
83
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk2NCLOQ56_cjs.FHE_SPLIT_DENOMINATOR; }
|
|
89
85
|
});
|
|
90
86
|
Object.defineProperty(exports, "scaleRatio", {
|
|
91
87
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk2NCLOQ56_cjs.scaleRatio; }
|
|
93
89
|
});
|
|
94
90
|
Object.defineProperty(exports, "share", {
|
|
95
91
|
enumerable: true,
|
|
96
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk2NCLOQ56_cjs.share; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunkFWHYQZ5E_cjs.erc7984OperatorAbi; }
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkC7BRZXJA_cjs.ConfidentialVestingFactoryClient; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "DisclosureType", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkC7BRZXJA_cjs.DisclosureType; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "FeeType", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkC7BRZXJA_cjs.FeeType; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkC7BRZXJA_cjs.confidentialVestingFactoryAbi; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkC7BRZXJA_cjs.createConfidentialVestingFactoryClient; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "feeTypeName", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkC7BRZXJA_cjs.feeTypeName; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
123
123
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
125
125
|
});
|
|
126
126
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
127
127
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
129
129
|
});
|
|
130
130
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
131
131
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
133
133
|
});
|
|
134
134
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
135
135
|
enumerable: true,
|
|
136
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
137
137
|
});
|
|
138
138
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
139
139
|
enumerable: true,
|
|
140
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
141
141
|
});
|
|
142
142
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
143
143
|
enumerable: true,
|
|
144
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
145
145
|
});
|
|
146
146
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
147
147
|
enumerable: true,
|
|
148
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
149
149
|
});
|
|
150
150
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
151
151
|
enumerable: true,
|
|
152
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
153
153
|
});
|
|
154
154
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
155
155
|
enumerable: true,
|
|
156
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
157
157
|
});
|
|
158
158
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
159
159
|
enumerable: true,
|
|
160
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
161
161
|
});
|
|
162
162
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
163
163
|
enumerable: true,
|
|
164
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
165
165
|
});
|
|
166
166
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
167
167
|
enumerable: true,
|
|
168
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
169
169
|
});
|
|
170
170
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
171
171
|
enumerable: true,
|
|
172
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
173
173
|
});
|
|
174
174
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
175
175
|
enumerable: true,
|
|
176
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
177
177
|
});
|
|
178
178
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
179
179
|
enumerable: true,
|
|
180
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
181
181
|
});
|
|
182
182
|
Object.defineProperty(exports, "MissingClientError", {
|
|
183
183
|
enumerable: true,
|
|
184
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
185
185
|
});
|
|
186
186
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
187
187
|
enumerable: true,
|
|
188
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
189
189
|
});
|
|
190
190
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
191
191
|
enumerable: true,
|
|
192
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
193
193
|
});
|
|
194
194
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
195
195
|
enumerable: true,
|
|
196
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
197
197
|
});
|
|
198
198
|
Object.defineProperty(exports, "NetworkError", {
|
|
199
199
|
enumerable: true,
|
|
200
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
201
205
|
});
|
|
202
206
|
Object.defineProperty(exports, "PausedError", {
|
|
203
207
|
enumerable: true,
|
|
204
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
205
209
|
});
|
|
206
210
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
207
211
|
enumerable: true,
|
|
208
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
209
213
|
});
|
|
210
214
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
211
215
|
enumerable: true,
|
|
212
|
-
get: function () { return
|
|
216
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
213
217
|
});
|
|
214
218
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
215
219
|
enumerable: true,
|
|
216
|
-
get: function () { return
|
|
220
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
217
221
|
});
|
|
218
222
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
219
223
|
enumerable: true,
|
|
220
|
-
get: function () { return
|
|
224
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
221
225
|
});
|
|
222
226
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
223
227
|
enumerable: true,
|
|
224
|
-
get: function () { return
|
|
228
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
225
229
|
});
|
|
226
230
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
227
231
|
enumerable: true,
|
|
228
|
-
get: function () { return
|
|
232
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
|
|
229
233
|
});
|
|
230
234
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
231
235
|
enumerable: true,
|
|
232
|
-
get: function () { return
|
|
236
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
233
237
|
});
|
|
234
238
|
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
235
239
|
enumerable: true,
|
|
236
|
-
get: function () { return
|
|
240
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsValidationError; }
|
|
237
241
|
});
|
|
238
242
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
239
243
|
enumerable: true,
|
|
240
|
-
get: function () { return
|
|
244
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
241
245
|
});
|
|
242
246
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
243
247
|
enumerable: true,
|
|
244
|
-
get: function () { return
|
|
248
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
245
249
|
});
|
|
246
250
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
247
251
|
enumerable: true,
|
|
248
|
-
get: function () { return
|
|
252
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
249
253
|
});
|
|
250
254
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
251
255
|
enumerable: true,
|
|
252
|
-
get: function () { return
|
|
256
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
253
257
|
});
|
|
254
258
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
255
259
|
enumerable: true,
|
|
256
|
-
get: function () { return
|
|
260
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
257
261
|
});
|
|
258
262
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
259
263
|
enumerable: true,
|
|
260
|
-
get: function () { return
|
|
264
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
261
265
|
});
|
|
262
266
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
263
267
|
enumerable: true,
|
|
264
|
-
get: function () { return
|
|
268
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
265
269
|
});
|
|
266
270
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
267
271
|
enumerable: true,
|
|
268
|
-
get: function () { return
|
|
272
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
269
273
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { ConfidentialVestingFactoryClient, createConfidentialVestingFactoryClient, type ConfidentialVestingFactoryClientConfig, type CreateManagerArgs, type CreateManagerResult, } from "./factory.js";
|
|
2
2
|
export { ConfidentialVestingManagerClient, createConfidentialVestingManagerClient, type BatchCreateVestingArgs, type BatchDiscloseToPartyResult, type ClaimArgs, type ConfidentialVestingManagerClientConfig, type CreateVestingArgs, type DiscloseArgs, type DiscloseToPartyResult, type EncryptedViewResult, type InitiateTransferArgs, type PartialClaimArgs, type SplitVestingArgs, type SplitVestingResult, } from "./manager.js";
|
|
3
3
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
4
|
-
export { DisclosureType, FeeType, feeTypeName, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
4
|
+
export { DisclosureType, FeeType, feeTypeName, type CreateVestingPreflightReport, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
5
5
|
export { confidentialVestingFactoryAbi, confidentialVestingManagerAbi, erc7984OperatorAbi, } from "./abis/index.js";
|
|
6
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
6
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, 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";
|
|
7
7
|
export { type PreflightResult } from "../core/preflight.js";
|
|
8
8
|
export { VestingNotFoundError, NotVestingRecipientError, ClaimLockedError, VestingRevokedError, VestingNotRevocableError, VestingExpiredError, TransferAlreadyPendingError, NoPendingTransferError, NotPendingRecipientError, TransferExpiredError, } from "./errors.js";
|
|
9
9
|
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share, type ScaleRatioArgs, type ScaleRatioWidth, type ScaledRatio, } from "../fhe/scale-ratio.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { ConfidentialVestingFactoryClient, createConfidentialVestingFactoryClient, type ConfidentialVestingFactoryClientConfig, type CreateManagerArgs, type CreateManagerResult, } from "./factory.js";
|
|
2
2
|
export { ConfidentialVestingManagerClient, createConfidentialVestingManagerClient, type BatchCreateVestingArgs, type BatchDiscloseToPartyResult, type ClaimArgs, type ConfidentialVestingManagerClientConfig, type CreateVestingArgs, type DiscloseArgs, type DiscloseToPartyResult, type EncryptedViewResult, type InitiateTransferArgs, type PartialClaimArgs, type SplitVestingArgs, type SplitVestingResult, } from "./manager.js";
|
|
3
3
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
4
|
-
export { DisclosureType, FeeType, feeTypeName, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
4
|
+
export { DisclosureType, FeeType, feeTypeName, type CreateVestingPreflightReport, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
5
5
|
export { confidentialVestingFactoryAbi, confidentialVestingManagerAbi, erc7984OperatorAbi, } from "./abis/index.js";
|
|
6
|
-
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, 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";
|
|
6
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, 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";
|
|
7
7
|
export { type PreflightResult } from "../core/preflight.js";
|
|
8
8
|
export { VestingNotFoundError, NotVestingRecipientError, ClaimLockedError, VestingRevokedError, VestingNotRevocableError, VestingExpiredError, TransferAlreadyPendingError, NoPendingTransferError, NotPendingRecipientError, TransferExpiredError, } from "./errors.js";
|
|
9
9
|
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share, type ScaleRatioArgs, type ScaleRatioWidth, type ScaledRatio, } from "../fhe/scale-ratio.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
+
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-IXLO7GO5.js';
|
|
2
|
+
import '../chunk-WMACINXO.js';
|
|
3
|
+
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-AOP6HMPW.js';
|
|
4
|
+
import '../chunk-ZWXJTBZO.js';
|
|
1
5
|
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
2
|
-
export {
|
|
3
|
-
import '../chunk-
|
|
4
|
-
|
|
5
|
-
import '../chunk-
|
|
6
|
-
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-72YGZEQE.js';
|
|
7
|
-
import '../chunk-JFLEEXKP.js';
|
|
8
|
-
import '../chunk-COPFW5Z4.js';
|
|
9
|
-
import '../chunk-BE2AIZ3K.js';
|
|
6
|
+
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-OXTLPTO3.js';
|
|
7
|
+
import '../chunk-SG65XWH7.js';
|
|
8
|
+
import '../chunk-XGGTQQFH.js';
|
|
9
|
+
import '../chunk-ZA673I3O.js';
|
|
10
10
|
import '../chunk-Q2GP5UDC.js';
|
|
11
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, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-
|
|
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';
|
|
@@ -3,7 +3,7 @@ import { type PreflightResult } from "../core/preflight.js";
|
|
|
3
3
|
import { type EncryptedHandle, type Role, type TxHash, type VestingId } from "../core/brands.js";
|
|
4
4
|
import { type SdkTelemetry } from "../core/telemetry.js";
|
|
5
5
|
import { type Encryptor, type EncryptorSource } from "./encryption.js";
|
|
6
|
-
import { FeeType, type DisclosureType, type EncryptedInput, type EncryptedViewResult, type PendingTransfer, type VestingInfo, type VestingParams } from "./types.js";
|
|
6
|
+
import { FeeType, type CreateVestingPreflightReport, type DisclosureType, type EncryptedInput, type EncryptedViewResult, type PendingTransfer, type VestingInfo, type VestingParams } from "./types.js";
|
|
7
7
|
export type { EncryptedViewResult } from "./types.js";
|
|
8
8
|
export interface ConfidentialVestingManagerClientConfig {
|
|
9
9
|
publicClient: PublicClient;
|
|
@@ -361,8 +361,7 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
361
361
|
* Accepts `bigint | number` for `start` / `end` for ergonomics on read paths
|
|
362
362
|
* — CI scripts typically derive these from `Number(process.env.X)` and
|
|
363
363
|
* forcing bigint coercion at the call site is a pure paper cut. The
|
|
364
|
-
* underlying contract reads through unchanged (viem coerces).
|
|
365
|
-
* devops-integrator MINOR-4; R25 close.
|
|
364
|
+
* underlying contract reads through unchanged (viem coerces).
|
|
366
365
|
*/
|
|
367
366
|
getAllRecipientsSliced(start: bigint | number, end: bigint | number): Promise<readonly Address[]>;
|
|
368
367
|
/**
|
|
@@ -420,6 +419,51 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
420
419
|
vestingId: Hex;
|
|
421
420
|
caller: Address;
|
|
422
421
|
}): Promise<PreflightResult>;
|
|
422
|
+
/**
|
|
423
|
+
* Read-only preflight for {@link createVesting} / {@link batchCreateVesting}.
|
|
424
|
+
* Runs the deterministic-from-off-chain checks and reports blockers both as
|
|
425
|
+
* human-readable strings (`blockers`) and as typed {@link TokenOpsSdkError}s
|
|
426
|
+
* (`blockerErrors`), index-aligned.
|
|
427
|
+
*
|
|
428
|
+
* Preflight is **opt-in**. Consumers who have already validated state can
|
|
429
|
+
* skip this call and invoke the write directly — they'll receive the same
|
|
430
|
+
* typed errors at write time via the revert mapper.
|
|
431
|
+
*
|
|
432
|
+
* Report fields: `token`, `hasCreatorRole`, `isOperatorSet`, `ready`,
|
|
433
|
+
* `blockers`, `blockerErrors` — see {@link CreateVestingPreflightReport} for
|
|
434
|
+
* the meaning of each.
|
|
435
|
+
*
|
|
436
|
+
* Checks performed (all read-only, no gas):
|
|
437
|
+
* - Structural `params` validation mirroring the contract's
|
|
438
|
+
* `_validateVestingParams` (`InvalidArgumentError` blockers): recipient is
|
|
439
|
+
* a checksummed non-zero address, `startTimestamp < endTimestamp`, cliff
|
|
440
|
+
* within the window, `initialUnlockBps + cliffAmountBps ≤ 10000`.
|
|
441
|
+
* - Role: creator holds `VESTING_CREATOR_ROLE`
|
|
442
|
+
* ({@link AccessDeniedError} blocker).
|
|
443
|
+
* - Operator: creator has approved this manager as an ERC-7984 operator on
|
|
444
|
+
* the distribution token, required for the manager's
|
|
445
|
+
* `confidentialTransferFrom` pull ({@link OperatorNotApprovedError} blocker).
|
|
446
|
+
*
|
|
447
|
+
* **Not preflight-detectable — read before trusting `ready: true`:**
|
|
448
|
+
* - The creator's confidential token balance is an encrypted `euint64` the
|
|
449
|
+
* SDK cannot read in plaintext. An underfunded create does **not** revert:
|
|
450
|
+
* the contract's all-or-nothing `FHE.select` pattern silently zeroes the
|
|
451
|
+
* vesting amounts instead. Confirm the creator's balance covers the total
|
|
452
|
+
* before submitting.
|
|
453
|
+
* - `batchCreateVesting` additionally enforces `items.length ≤ maxBatchSize()`
|
|
454
|
+
* on-chain; check {@link maxBatchSize} for batches.
|
|
455
|
+
*
|
|
456
|
+
* Pausing the manager does NOT block vesting creation (only claims), so
|
|
457
|
+
* paused state is intentionally not a blocker here.
|
|
458
|
+
*
|
|
459
|
+
* @param args.params The vesting schedule parameters to validate.
|
|
460
|
+
* @param args.creator The address that will send the create transaction.
|
|
461
|
+
* @returns A {@link CreateVestingPreflightReport}.
|
|
462
|
+
*/
|
|
463
|
+
preflightCreateVesting(args: {
|
|
464
|
+
params: VestingParams;
|
|
465
|
+
creator: Address;
|
|
466
|
+
}): Promise<CreateVestingPreflightReport>;
|
|
423
467
|
/**
|
|
424
468
|
* Get the vested amount at a given timestamp as an encrypted handle.
|
|
425
469
|
*
|
|
@@ -481,6 +525,14 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
481
525
|
*
|
|
482
526
|
* Pass `encryptedInput` to bypass the encryptor when you manage encryption yourself.
|
|
483
527
|
*
|
|
528
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
529
|
+
*
|
|
530
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
531
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
532
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
533
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
534
|
+
* transparent TTT test token uses 18 decimals.
|
|
535
|
+
*
|
|
484
536
|
* @returns Transaction hash. Parse the `VestingCreated` event to extract the `vestingId`.
|
|
485
537
|
* @example
|
|
486
538
|
* const hash = await manager.createVesting({
|
|
@@ -497,12 +549,23 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
497
549
|
*
|
|
498
550
|
* Respects `maxBatchSize` — check before calling on large lists.
|
|
499
551
|
*
|
|
552
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
553
|
+
*
|
|
554
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
555
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
556
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
557
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
558
|
+
* transparent TTT test token uses 18 decimals.
|
|
559
|
+
*
|
|
500
560
|
* @returns Transaction hash.
|
|
501
561
|
*/
|
|
502
562
|
batchCreateVesting(args: BatchCreateVestingArgs): Promise<Hex>;
|
|
503
563
|
/**
|
|
504
564
|
* Claim all currently vested tokens for `vestingId`.
|
|
505
565
|
* For `FeeType.Gas` managers, pass `value` (gas fee in wei from `getFeeInfo()`).
|
|
566
|
+
*
|
|
567
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
568
|
+
*
|
|
506
569
|
* @param args Discriminated by `feeType`: pass `{ feeType, vestingId, value }` for Gas, `{ feeType, vestingId }` for DistributionToken.
|
|
507
570
|
* @returns Transaction hash.
|
|
508
571
|
* @example
|
|
@@ -515,6 +578,9 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
515
578
|
/**
|
|
516
579
|
* Admin variant of `claim` — callable by the manager admin on behalf of any recipient.
|
|
517
580
|
* Useful for gas-sponsored claim flows. Same fee rules as `claim`.
|
|
581
|
+
*
|
|
582
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
583
|
+
*
|
|
518
584
|
* @param args Same discriminated union as `claim`.
|
|
519
585
|
* @returns Transaction hash.
|
|
520
586
|
*/
|
|
@@ -522,12 +588,30 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
522
588
|
/**
|
|
523
589
|
* Claim a specific encrypted amount from a vesting schedule rather than the full claimable balance.
|
|
524
590
|
* The SDK encrypts `amount` — pass plaintext. Alternatively pass `encryptedInput` to bypass encryption.
|
|
591
|
+
*
|
|
592
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
593
|
+
*
|
|
594
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
595
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
596
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
597
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
598
|
+
* transparent TTT test token uses 18 decimals.
|
|
599
|
+
*
|
|
525
600
|
* @param args Includes `vestingId`, `amount` or `encryptedInput`, and optional `value` for Gas-fee managers.
|
|
526
601
|
* @returns Transaction hash.
|
|
527
602
|
*/
|
|
528
603
|
partialClaim(args: PartialClaimArgs): Promise<Hex>;
|
|
529
604
|
/**
|
|
530
605
|
* Admin variant of `partialClaim` — callable by the manager admin on behalf of any recipient.
|
|
606
|
+
*
|
|
607
|
+
* **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
|
|
608
|
+
*
|
|
609
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
610
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
611
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
612
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
613
|
+
* transparent TTT test token uses 18 decimals.
|
|
614
|
+
*
|
|
531
615
|
* @param args Same as `partialClaim`.
|
|
532
616
|
* @returns Transaction hash.
|
|
533
617
|
*/
|
|
@@ -674,6 +758,13 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
674
758
|
/**
|
|
675
759
|
* Withdraw a confidential token amount from the manager's balance back to the admin.
|
|
676
760
|
* The SDK encrypts `amount` — pass plaintext. Alternatively pass `encryptedInput`.
|
|
761
|
+
*
|
|
762
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
763
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
764
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
765
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
766
|
+
* transparent TTT test token uses 18 decimals.
|
|
767
|
+
*
|
|
677
768
|
* @param args `{ amount }` (plaintext, SDK encrypts) or `{ encryptedInput }` (pre-encrypted).
|
|
678
769
|
* @returns Transaction hash.
|
|
679
770
|
*/
|
|
@@ -709,6 +800,13 @@ export declare class ConfidentialVestingManagerClient {
|
|
|
709
800
|
/**
|
|
710
801
|
* Withdraw accumulated token fees from a `FeeType.DistributionToken` manager. Admin only.
|
|
711
802
|
* The SDK encrypts `amount` — pass plaintext. Alternatively pass `encryptedInput`.
|
|
803
|
+
*
|
|
804
|
+
* **Amount units:** TokenOps confidential (ERC-7984) tokens use a 6-decimals
|
|
805
|
+
* convention (1 token = 1_000_000 base units), not the 18 decimals typical of
|
|
806
|
+
* ERC-20. Amount parameters are base units of the token's actual decimals:
|
|
807
|
+
* for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
|
|
808
|
+
* transparent TTT test token uses 18 decimals.
|
|
809
|
+
*
|
|
712
810
|
* @param args `{ to, amount }` (plaintext, SDK encrypts) or `{ to, encryptedInput }` (pre-encrypted).
|
|
713
811
|
* @returns Transaction hash.
|
|
714
812
|
*/
|