@tokenops/sdk 1.0.0 → 1.1.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 +102 -18
- package/dist/{chunk-HTOMTEA3.cjs → chunk-23F7JIK5.cjs} +2 -2
- package/dist/{chunk-ECT3NL2L.js → chunk-3PQ2RFPC.js} +3 -3
- package/dist/{chunk-OLDGMKW2.cjs → chunk-3ZRHDTEX.cjs} +33 -0
- package/dist/chunk-5KHIQG7Y.cjs +2180 -0
- package/dist/{chunk-T5LVV3KY.cjs → chunk-FPQBFIUW.cjs} +3 -3
- package/dist/{chunk-QIHZVLIK.js → chunk-FXCW7LVB.js} +1 -1
- package/dist/{chunk-K6MFFDBJ.cjs → chunk-G7G75C46.cjs} +6 -6
- package/dist/{chunk-72YGZEQE.js → chunk-IR5AK5U5.js} +6 -8
- package/dist/{chunk-CMRETRZO.js → chunk-ITQBDRWX.js} +1 -1
- package/dist/{chunk-ZHFLRKFY.js → chunk-JJ4R5QXF.js} +1 -1
- package/dist/{chunk-COPFW5Z4.js → chunk-M7V2EDPB.js} +30 -1
- package/dist/{chunk-UOG4PJL5.js → chunk-OQZAZIAS.js} +8 -10
- package/dist/{chunk-SUOG3BQS.cjs → chunk-OYLZEEHF.cjs} +1 -2
- package/dist/chunk-QE7ZONJ2.js +2171 -0
- package/dist/{chunk-62DF53UQ.cjs → chunk-SAGJIEQK.cjs} +7 -9
- package/dist/{chunk-JFR5J4FL.cjs → chunk-SEKC7H5Y.cjs} +8 -8
- package/dist/{chunk-6ECAHP5O.cjs → chunk-SYHXDHWX.cjs} +9 -11
- package/dist/{chunk-QCA7O2Q5.cjs → chunk-W7JHOK7G.cjs} +4 -4
- package/dist/{chunk-52TC6BF7.js → chunk-X56UVEXS.js} +1 -2
- package/dist/{chunk-HGXNRR25.js → chunk-XWDVPV42.js} +2 -2
- package/dist/core/addresses.d.ts +22 -0
- package/dist/core/errors.d.ts +1 -1
- package/dist/core/telemetry.d.ts +0 -3
- package/dist/fhe/operators.d.ts +1 -1
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +3 -3
- package/dist/fhe-airdrop/advanced/index.cjs +5 -5
- 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 +3 -3
- package/dist/fhe-airdrop/advanced/react/index.cjs +8 -8
- 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 +4 -4
- package/dist/fhe-airdrop/factory.d.ts +8 -10
- package/dist/fhe-airdrop/index.cjs +9 -9
- package/dist/fhe-airdrop/index.js +2 -2
- package/dist/fhe-airdrop/react/index.cjs +69 -69
- package/dist/fhe-airdrop/react/index.js +4 -4
- package/dist/fhe-disperse/index.cjs +19 -19
- package/dist/fhe-disperse/index.js +2 -2
- package/dist/fhe-disperse/react/index.cjs +20 -20
- package/dist/fhe-disperse/react/index.js +3 -3
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +2 -2
- package/dist/fhe-vesting/advanced/factory-advanced.d.ts +2 -2
- package/dist/fhe-vesting/advanced/index.cjs +5 -5
- 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 +3 -3
- package/dist/fhe-vesting/advanced/react/index.cjs +8 -8
- 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 +5 -5
- package/dist/fhe-vesting/factory.d.ts +6 -8
- package/dist/fhe-vesting/index.cjs +25 -25
- package/dist/fhe-vesting/index.js +3 -3
- package/dist/fhe-vesting/manager.d.ts +1 -2
- package/dist/fhe-vesting/react/index.cjs +126 -126
- package/dist/fhe-vesting/react/index.js +4 -4
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +1 -1
- package/dist/fhe-vesting/types.d.ts +0 -2
- package/dist/index.cjs +27 -11
- package/dist/index.js +1 -1
- 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 +208 -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 +379 -0
- package/dist/testnet-faucet/react/index.d.cts +38 -0
- package/dist/testnet-faucet/react/index.d.ts +38 -0
- package/dist/testnet-faucet/react/index.js +219 -0
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +24 -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 +77 -29
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk23F7JIK5_cjs = require('../../chunk-23F7JIK5.cjs');
|
|
4
4
|
require('../../chunk-ITQ7WKVC.cjs');
|
|
5
5
|
require('../../chunk-FWHYQZ5E.cjs');
|
|
6
6
|
require('../../chunk-NS44KBV5.cjs');
|
|
7
7
|
require('../../chunk-Q7ARQSUH.cjs');
|
|
8
8
|
require('../../chunk-VDXVNZCO.cjs');
|
|
9
|
-
var
|
|
9
|
+
var chunk3ZRHDTEX_cjs = require('../../chunk-3ZRHDTEX.cjs');
|
|
10
10
|
require('../../chunk-CQIPRNS7.cjs');
|
|
11
11
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
12
12
|
require('../../chunk-66IHPTOK.cjs');
|
|
@@ -20,7 +20,7 @@ var FHE_DISPERSE_NAMESPACE = "fhe-disperse";
|
|
|
20
20
|
function tryResolveSingletonAddress(override, chainId) {
|
|
21
21
|
if (override) return override;
|
|
22
22
|
if (chainId === void 0) return void 0;
|
|
23
|
-
return
|
|
23
|
+
return chunk3ZRHDTEX_cjs.getFheDisperseSingletonAddress(chainId);
|
|
24
24
|
}
|
|
25
25
|
function useMemoDisperseClient(opts = {}) {
|
|
26
26
|
const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
|
|
@@ -33,14 +33,14 @@ function useMemoDisperseClient(opts = {}) {
|
|
|
33
33
|
const client = react.useMemo(() => {
|
|
34
34
|
if (!publicClient) return void 0;
|
|
35
35
|
if (!resolvedAddress) return void 0;
|
|
36
|
-
return
|
|
36
|
+
return chunk23F7JIK5_cjs.createConfidentialDisperseClient({
|
|
37
37
|
publicClient,
|
|
38
38
|
...walletClient ? { walletClient } : {},
|
|
39
39
|
address: resolvedAddress,
|
|
40
40
|
...chainId !== void 0 ? { chainId } : {},
|
|
41
41
|
// Lazy — invoked per-encryption inside the headless client. Picks up
|
|
42
42
|
// whichever EncryptorSource the consumer last passed in.
|
|
43
|
-
encryptor: () =>
|
|
43
|
+
encryptor: () => chunk23F7JIK5_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
44
44
|
...opts.aclAddress ? { aclAddress: opts.aclAddress } : {}
|
|
45
45
|
});
|
|
46
46
|
}, [publicClient, walletClient, resolvedAddress, chainId, opts.aclAddress]);
|
|
@@ -63,7 +63,7 @@ function computeSingletonResolutionError(override, chainId) {
|
|
|
63
63
|
clientLabel: "ConfidentialDisperseClient"
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
|
-
const resolved =
|
|
66
|
+
const resolved = chunk3ZRHDTEX_cjs.getFheDisperseSingletonAddress(chainId);
|
|
67
67
|
if (!resolved) {
|
|
68
68
|
return new chunk56UI7LUR_cjs.DeploymentAddressUnavailableError({
|
|
69
69
|
reason: "registry-not-deployed",
|
|
@@ -469,7 +469,7 @@ function useWithdrawTokenFee(options = {}) {
|
|
|
469
469
|
});
|
|
470
470
|
}
|
|
471
471
|
const { token, to, amount, encryptor: encryptorSource, account } = args;
|
|
472
|
-
const eager = encryptorSource ?
|
|
472
|
+
const eager = encryptorSource ? chunk23F7JIK5_cjs.resolveEncryptor(encryptorSource) : void 0;
|
|
473
473
|
return client.withdrawTokenFee({
|
|
474
474
|
token,
|
|
475
475
|
to,
|
|
@@ -521,55 +521,55 @@ function useRevokeRole(options = {}) {
|
|
|
521
521
|
|
|
522
522
|
Object.defineProperty(exports, "AlreadyRegisteredError", {
|
|
523
523
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
524
|
+
get: function () { return chunk23F7JIK5_cjs.AlreadyRegisteredError; }
|
|
525
525
|
});
|
|
526
526
|
Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
|
|
527
527
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
528
|
+
get: function () { return chunk23F7JIK5_cjs.DEFAULT_ADMIN_ROLE; }
|
|
529
529
|
});
|
|
530
530
|
Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
|
|
531
531
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
532
|
+
get: function () { return chunk23F7JIK5_cjs.DisperseEncryptedReserveNotGrantedError; }
|
|
533
533
|
});
|
|
534
534
|
Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
|
|
535
535
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
536
|
+
get: function () { return chunk23F7JIK5_cjs.DisperseSubwalletNotFoundError; }
|
|
537
537
|
});
|
|
538
538
|
Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
|
|
539
539
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
540
|
+
get: function () { return chunk23F7JIK5_cjs.FEE_COLLECTOR_ROLE; }
|
|
541
541
|
});
|
|
542
542
|
Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
|
|
543
543
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
544
|
+
get: function () { return chunk23F7JIK5_cjs.FEE_MANAGER_ROLE; }
|
|
545
545
|
});
|
|
546
546
|
Object.defineProperty(exports, "NotRegisteredError", {
|
|
547
547
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
548
|
+
get: function () { return chunk23F7JIK5_cjs.NotRegisteredError; }
|
|
549
549
|
});
|
|
550
550
|
Object.defineProperty(exports, "PAUSER_ROLE", {
|
|
551
551
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
552
|
+
get: function () { return chunk23F7JIK5_cjs.PAUSER_ROLE; }
|
|
553
553
|
});
|
|
554
554
|
Object.defineProperty(exports, "WITHDRAWER_ROLE", {
|
|
555
555
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
556
|
+
get: function () { return chunk23F7JIK5_cjs.WITHDRAWER_ROLE; }
|
|
557
557
|
});
|
|
558
558
|
Object.defineProperty(exports, "computeSubtotals", {
|
|
559
559
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
560
|
+
get: function () { return chunk23F7JIK5_cjs.computeSubtotals; }
|
|
561
561
|
});
|
|
562
562
|
Object.defineProperty(exports, "encryptUint64", {
|
|
563
563
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
564
|
+
get: function () { return chunk23F7JIK5_cjs.encryptUint64; }
|
|
565
565
|
});
|
|
566
566
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
567
567
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
568
|
+
get: function () { return chunk23F7JIK5_cjs.encryptUint64Batch; }
|
|
569
569
|
});
|
|
570
570
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
571
571
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
572
|
+
get: function () { return chunk23F7JIK5_cjs.resolveEncryptor; }
|
|
573
573
|
});
|
|
574
574
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
575
575
|
enumerable: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
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-
|
|
1
|
+
import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-FXCW7LVB.js';
|
|
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-FXCW7LVB.js';
|
|
3
3
|
import '../../chunk-WRCUDSUJ.js';
|
|
4
4
|
import '../../chunk-7VELUOMI.js';
|
|
5
5
|
import '../../chunk-ZXCOJY2Z.js';
|
|
6
6
|
import '../../chunk-FYQ2UW4T.js';
|
|
7
7
|
import '../../chunk-JFLEEXKP.js';
|
|
8
|
-
import { getFheDisperseSingletonAddress } from '../../chunk-
|
|
8
|
+
import { getFheDisperseSingletonAddress } from '../../chunk-M7V2EDPB.js';
|
|
9
9
|
import '../../chunk-BE2AIZ3K.js';
|
|
10
10
|
import '../../chunk-Q2GP5UDC.js';
|
|
11
11
|
import '../../chunk-KWFFIJYX.js';
|
|
@@ -10,8 +10,8 @@ import { type DisperseHookOptions } from "./_shared.js";
|
|
|
10
10
|
* the discriminated SDK shape.
|
|
11
11
|
*
|
|
12
12
|
* `amount` and `encryptedInput` are XOR enforced by the underlying SDK call;
|
|
13
|
-
* the hook surface
|
|
14
|
-
*
|
|
13
|
+
* the hook surface accepts the relaxed shape and the mutate body routes to the
|
|
14
|
+
* right branch.
|
|
15
15
|
*/
|
|
16
16
|
export interface UseSingletonWithdrawTokenFeeArgs {
|
|
17
17
|
/** ERC-7984 token whose accumulated fee reserve to withdraw from. */
|
|
@@ -4,8 +4,8 @@ import { ConfidentialVestingFactoryClient, type ConfidentialVestingFactoryClient
|
|
|
4
4
|
* Advanced extension of {@link ConfidentialVestingFactoryClient} that re-exposes
|
|
5
5
|
* the CREATE2 address prediction read.
|
|
6
6
|
*
|
|
7
|
-
* **Why this is "advanced" surface.**
|
|
8
|
-
*
|
|
7
|
+
* **Why this is "advanced" surface.** `predictManagerAddress` is
|
|
8
|
+
* block-dependent on a live chain — the
|
|
9
9
|
* factory packs the deployment block number into the clone's immutable args,
|
|
10
10
|
* which feed into the CREATE2 init-code hash. Predict at block N, mine at
|
|
11
11
|
* N+1, and the addresses differ. The vast majority of consumers want
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../chunk-
|
|
3
|
+
var chunkW7JHOK7G_cjs = require('../../chunk-W7JHOK7G.cjs');
|
|
4
|
+
require('../../chunk-SAGJIEQK.cjs');
|
|
5
5
|
require('../../chunk-VDXVNZCO.cjs');
|
|
6
|
-
require('../../chunk-
|
|
6
|
+
require('../../chunk-3ZRHDTEX.cjs');
|
|
7
7
|
require('../../chunk-CQIPRNS7.cjs');
|
|
8
8
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
9
9
|
require('../../chunk-66IHPTOK.cjs');
|
|
@@ -13,9 +13,9 @@ require('../../chunk-56UI7LUR.cjs');
|
|
|
13
13
|
|
|
14
14
|
Object.defineProperty(exports, "ConfidentialVestingFactoryAdvancedClient", {
|
|
15
15
|
enumerable: true,
|
|
16
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkW7JHOK7G_cjs.ConfidentialVestingFactoryAdvancedClient; }
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "createConfidentialVestingFactoryAdvancedClient", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkW7JHOK7G_cjs.createConfidentialVestingFactoryAdvancedClient; }
|
|
21
21
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Advanced FHE-vesting primitives — power-user surface kept off the headline
|
|
3
|
-
* client to keep the
|
|
3
|
+
* client to keep the common path lean.
|
|
4
4
|
*
|
|
5
5
|
* Re-exports the {@link ConfidentialVestingFactoryAdvancedClient} subclass,
|
|
6
6
|
* which extends the headline factory client with `predictManagerAddress`. The
|
|
7
7
|
* predict read is block-dependent — see the subclass TSDoc. For the common
|
|
8
8
|
* "deploy and learn the address" case, the headline factory's
|
|
9
|
-
* `createManager` returns `{ hash, manager }` directly
|
|
9
|
+
* `createManager` returns `{ hash, manager }` directly.
|
|
10
10
|
*/
|
|
11
11
|
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient, } from "./factory-advanced.js";
|
|
12
12
|
export type { PredictManagerArgs } from "../factory.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Advanced FHE-vesting primitives — power-user surface kept off the headline
|
|
3
|
-
* client to keep the
|
|
3
|
+
* client to keep the common path lean.
|
|
4
4
|
*
|
|
5
5
|
* Re-exports the {@link ConfidentialVestingFactoryAdvancedClient} subclass,
|
|
6
6
|
* which extends the headline factory client with `predictManagerAddress`. The
|
|
7
7
|
* predict read is block-dependent — see the subclass TSDoc. For the common
|
|
8
8
|
* "deploy and learn the address" case, the headline factory's
|
|
9
|
-
* `createManager` returns `{ hash, manager }` directly
|
|
9
|
+
* `createManager` returns `{ hash, manager }` directly.
|
|
10
10
|
*/
|
|
11
11
|
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient, } from "./factory-advanced.js";
|
|
12
12
|
export type { PredictManagerArgs } from "../factory.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-
|
|
2
|
-
import '../../chunk-
|
|
1
|
+
export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-ITQBDRWX.js';
|
|
2
|
+
import '../../chunk-IR5AK5U5.js';
|
|
3
3
|
import '../../chunk-JFLEEXKP.js';
|
|
4
|
-
import '../../chunk-
|
|
4
|
+
import '../../chunk-M7V2EDPB.js';
|
|
5
5
|
import '../../chunk-BE2AIZ3K.js';
|
|
6
6
|
import '../../chunk-Q2GP5UDC.js';
|
|
7
7
|
import '../../chunk-KWFFIJYX.js';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../../../chunk-
|
|
3
|
+
var chunkSEKC7H5Y_cjs = require('../../../chunk-SEKC7H5Y.cjs');
|
|
4
|
+
require('../../../chunk-OYLZEEHF.cjs');
|
|
5
5
|
require('../../../chunk-NS44KBV5.cjs');
|
|
6
6
|
require('../../../chunk-5SGMJADP.cjs');
|
|
7
7
|
require('../../../chunk-Q7ARQSUH.cjs');
|
|
8
|
-
var
|
|
9
|
-
require('../../../chunk-
|
|
8
|
+
var chunkW7JHOK7G_cjs = require('../../../chunk-W7JHOK7G.cjs');
|
|
9
|
+
require('../../../chunk-SAGJIEQK.cjs');
|
|
10
10
|
require('../../../chunk-VDXVNZCO.cjs');
|
|
11
|
-
var
|
|
11
|
+
var chunk3ZRHDTEX_cjs = require('../../../chunk-3ZRHDTEX.cjs');
|
|
12
12
|
require('../../../chunk-CQIPRNS7.cjs');
|
|
13
13
|
require('../../../chunk-VJKZWYYJ.cjs');
|
|
14
14
|
require('../../../chunk-66IHPTOK.cjs');
|
|
@@ -35,12 +35,12 @@ function usePredictManagerAddress(args = {}) {
|
|
|
35
35
|
...chainId !== void 0 ? { chainId } : {}
|
|
36
36
|
});
|
|
37
37
|
const resolvedChainId = chainId ?? resolvedPublicClient?.chain?.id;
|
|
38
|
-
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 :
|
|
38
|
+
const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 : chunk3ZRHDTEX_cjs.DEPLOYED_ADDRESSES.fheVesting?.confidentialVestingFactory?.[resolvedChainId] ?? void 0);
|
|
39
39
|
react.useRef(void 0);
|
|
40
40
|
const client = react.useMemo(() => {
|
|
41
41
|
if (!resolvedPublicClient) return void 0;
|
|
42
42
|
if (!resolvedAddress) return void 0;
|
|
43
|
-
return
|
|
43
|
+
return chunkW7JHOK7G_cjs.createConfidentialVestingFactoryAdvancedClient({
|
|
44
44
|
publicClient: resolvedPublicClient,
|
|
45
45
|
...walletClient ? { walletClient } : {},
|
|
46
46
|
address: resolvedAddress,
|
|
@@ -48,7 +48,7 @@ function usePredictManagerAddress(args = {}) {
|
|
|
48
48
|
});
|
|
49
49
|
}, [resolvedPublicClient, walletClient, resolvedAddress, resolvedChainId]);
|
|
50
50
|
return reactQuery.useQuery({
|
|
51
|
-
queryKey:
|
|
51
|
+
queryKey: chunkSEKC7H5Y_cjs.buildQueryKey(
|
|
52
52
|
"factory:predictManagerAddress",
|
|
53
53
|
resolvedChainId,
|
|
54
54
|
resolvedAddress,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React hooks for `@tokenops/sdk/fhe-vesting/advanced`. The headline React
|
|
3
|
-
* subpath stays lean; pre-mine address prediction lives here
|
|
3
|
+
* subpath stays lean; pre-mine address prediction lives here.
|
|
4
4
|
*/
|
|
5
5
|
export { usePredictManagerAddress, type UsePredictManagerAddressArgs, } from "./usePredictManagerAddress.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React hooks for `@tokenops/sdk/fhe-vesting/advanced`. The headline React
|
|
3
|
-
* subpath stays lean; pre-mine address prediction lives here
|
|
3
|
+
* subpath stays lean; pre-mine address prediction lives here.
|
|
4
4
|
*/
|
|
5
5
|
export { usePredictManagerAddress, type UsePredictManagerAddressArgs, } from "./usePredictManagerAddress.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { buildQueryKey } from '../../../chunk-
|
|
2
|
-
import '../../../chunk-
|
|
1
|
+
import { buildQueryKey } from '../../../chunk-3PQ2RFPC.js';
|
|
2
|
+
import '../../../chunk-X56UVEXS.js';
|
|
3
3
|
import '../../../chunk-ZXCOJY2Z.js';
|
|
4
4
|
import '../../../chunk-XSNLAS5M.js';
|
|
5
5
|
import '../../../chunk-FYQ2UW4T.js';
|
|
6
|
-
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-
|
|
7
|
-
import '../../../chunk-
|
|
6
|
+
import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-ITQBDRWX.js';
|
|
7
|
+
import '../../../chunk-IR5AK5U5.js';
|
|
8
8
|
import '../../../chunk-JFLEEXKP.js';
|
|
9
|
-
import { DEPLOYED_ADDRESSES } from '../../../chunk-
|
|
9
|
+
import { DEPLOYED_ADDRESSES } from '../../../chunk-M7V2EDPB.js';
|
|
10
10
|
import '../../../chunk-BE2AIZ3K.js';
|
|
11
11
|
import '../../../chunk-Q2GP5UDC.js';
|
|
12
12
|
import '../../../chunk-KWFFIJYX.js';
|
|
@@ -72,7 +72,7 @@ export interface PredictManagerArgs {
|
|
|
72
72
|
* Rich-return shape from {@link ConfidentialVestingFactoryClient.createManager}.
|
|
73
73
|
*
|
|
74
74
|
* Branded `hash: TxHash` and `manager: Address` so consumers can't accidentally
|
|
75
|
-
* swap them at the destructure site
|
|
75
|
+
* swap them at the destructure site.
|
|
76
76
|
*/
|
|
77
77
|
export interface CreateManagerResult {
|
|
78
78
|
/** Transaction hash of the deploy. */
|
|
@@ -99,11 +99,10 @@ export declare class ConfidentialVestingFactoryClient {
|
|
|
99
99
|
* Deploy a new `ConfidentialVestingManager` clone via the factory and return
|
|
100
100
|
* its address, parsed from the `ManagerCreated` event in the tx receipt.
|
|
101
101
|
*
|
|
102
|
-
* **This is the headline factory entry point.**
|
|
103
|
-
*
|
|
104
|
-
* the address is only knowable after the tx mines (the factory packs
|
|
102
|
+
* **This is the headline factory entry point.** It returns one rich-return
|
|
103
|
+
* shape: the address is only knowable after the tx mines (the factory packs
|
|
105
104
|
* `block.number` into the clone's immutable args), so a hash-only variant
|
|
106
|
-
*
|
|
105
|
+
* would force consumers to re-derive what the SDK already had to compute.
|
|
107
106
|
*
|
|
108
107
|
* Calls `createManagerWithOptions` when `splitEnabled` or `pausableEnabled`
|
|
109
108
|
* is provided; otherwise calls the simpler `createManager` entry point.
|
|
@@ -178,9 +177,8 @@ export declare class ConfidentialVestingFactoryClient {
|
|
|
178
177
|
* Alias for {@link ConfidentialVestingFactoryClient.implementation} that matches
|
|
179
178
|
* the contract's storage field name (`_managerImplementation`).
|
|
180
179
|
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
* server devs reading the Solidity reach for `factory.managerImplementation()`
|
|
180
|
+
* Named for clarity: server devs reading the Solidity reach for
|
|
181
|
+
* `factory.managerImplementation()`
|
|
184
182
|
* via autocomplete (the contract storage slot name) and hit a TS2551. The
|
|
185
183
|
* canonical `implementation()` method is retained for backwards-compat and
|
|
186
184
|
* cross-factory uniformity (fhe-airdrop exposes the same shape).
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkOYLZEEHF_cjs = require('../chunk-OYLZEEHF.cjs');
|
|
5
5
|
require('../chunk-NS44KBV5.cjs');
|
|
6
6
|
var chunk5SGMJADP_cjs = require('../chunk-5SGMJADP.cjs');
|
|
7
7
|
require('../chunk-Q7ARQSUH.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkSAGJIEQK_cjs = require('../chunk-SAGJIEQK.cjs');
|
|
9
9
|
require('../chunk-VDXVNZCO.cjs');
|
|
10
|
-
require('../chunk-
|
|
10
|
+
require('../chunk-3ZRHDTEX.cjs');
|
|
11
11
|
require('../chunk-CQIPRNS7.cjs');
|
|
12
12
|
require('../chunk-VJKZWYYJ.cjs');
|
|
13
13
|
require('../chunk-66IHPTOK.cjs');
|
|
@@ -21,67 +21,67 @@ Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "ClaimLockedError", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkOYLZEEHF_cjs.ClaimLockedError; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkOYLZEEHF_cjs.ConfidentialVestingManagerClient; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkOYLZEEHF_cjs.NoPendingTransferError; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkOYLZEEHF_cjs.NotPendingRecipientError; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkOYLZEEHF_cjs.NotVestingRecipientError; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkOYLZEEHF_cjs.TransferAlreadyPendingError; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "TransferExpiredError", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkOYLZEEHF_cjs.TransferExpiredError; }
|
|
49
49
|
});
|
|
50
50
|
Object.defineProperty(exports, "VestingExpiredError", {
|
|
51
51
|
enumerable: true,
|
|
52
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingExpiredError; }
|
|
53
53
|
});
|
|
54
54
|
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
55
55
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingNotFoundError; }
|
|
57
57
|
});
|
|
58
58
|
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
59
59
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingNotRevocableError; }
|
|
61
61
|
});
|
|
62
62
|
Object.defineProperty(exports, "VestingRevokedError", {
|
|
63
63
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkOYLZEEHF_cjs.VestingRevokedError; }
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "confidentialVestingManagerAbi", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkOYLZEEHF_cjs.confidentialVestingManagerAbi; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkOYLZEEHF_cjs.createConfidentialVestingManagerClient; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "encryptUint64", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkOYLZEEHF_cjs.encryptUint64; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkOYLZEEHF_cjs.encryptUint64Batch; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkOYLZEEHF_cjs.resolveEncryptor; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
87
87
|
enumerable: true,
|
|
@@ -97,27 +97,27 @@ Object.defineProperty(exports, "share", {
|
|
|
97
97
|
});
|
|
98
98
|
Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
|
|
99
99
|
enumerable: true,
|
|
100
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkSAGJIEQK_cjs.ConfidentialVestingFactoryClient; }
|
|
101
101
|
});
|
|
102
102
|
Object.defineProperty(exports, "DisclosureType", {
|
|
103
103
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkSAGJIEQK_cjs.DisclosureType; }
|
|
105
105
|
});
|
|
106
106
|
Object.defineProperty(exports, "FeeType", {
|
|
107
107
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkSAGJIEQK_cjs.FeeType; }
|
|
109
109
|
});
|
|
110
110
|
Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
|
|
111
111
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkSAGJIEQK_cjs.confidentialVestingFactoryAbi; }
|
|
113
113
|
});
|
|
114
114
|
Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
|
|
115
115
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkSAGJIEQK_cjs.createConfidentialVestingFactoryClient; }
|
|
117
117
|
});
|
|
118
118
|
Object.defineProperty(exports, "feeTypeName", {
|
|
119
119
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunkSAGJIEQK_cjs.feeTypeName; }
|
|
121
121
|
});
|
|
122
122
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
123
123
|
enumerable: true,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
2
|
-
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-
|
|
2
|
+
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-X56UVEXS.js';
|
|
3
3
|
import '../chunk-ZXCOJY2Z.js';
|
|
4
4
|
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-XSNLAS5M.js';
|
|
5
5
|
import '../chunk-FYQ2UW4T.js';
|
|
6
|
-
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-
|
|
6
|
+
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-IR5AK5U5.js';
|
|
7
7
|
import '../chunk-JFLEEXKP.js';
|
|
8
|
-
import '../chunk-
|
|
8
|
+
import '../chunk-M7V2EDPB.js';
|
|
9
9
|
import '../chunk-BE2AIZ3K.js';
|
|
10
10
|
import '../chunk-Q2GP5UDC.js';
|
|
11
11
|
import '../chunk-KWFFIJYX.js';
|
|
@@ -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
|
/**
|