@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,11 +1,11 @@
|
|
|
1
|
-
import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-
|
|
2
|
-
export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-
|
|
1
|
+
import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-3PQ2RFPC.js';
|
|
2
|
+
export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-X56UVEXS.js';
|
|
3
3
|
import '../../chunk-ZXCOJY2Z.js';
|
|
4
4
|
export { scaleRatio } from '../../chunk-XSNLAS5M.js';
|
|
5
5
|
import '../../chunk-FYQ2UW4T.js';
|
|
6
|
-
export { DisclosureType, FeeType } from '../../chunk-
|
|
6
|
+
export { DisclosureType, FeeType } 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';
|
|
@@ -6,6 +6,6 @@ import { type ManagerHookOptions } from "./_shared.js";
|
|
|
6
6
|
* Fee collector: withdraw collected distribution-token fees
|
|
7
7
|
* (`FeeType.DistributionToken` managers). Pass `encryptor` (SDK encrypts
|
|
8
8
|
* `amount`) XOR `encryptedInput` (pre-built) — discriminated union enforced
|
|
9
|
-
* by TS
|
|
9
|
+
* by TS. Caller must hold `FEE_COLLECTOR_ROLE`.
|
|
10
10
|
*/
|
|
11
11
|
export declare function useManagerWithdrawTokenFee(options: ManagerHookOptions): UseMutationResult<TxHash, Error, WithdrawTokenFeeArgs>;
|
|
@@ -44,8 +44,6 @@ export declare enum FeeType {
|
|
|
44
44
|
* (which is also less type-safe — the reverse lookup returns
|
|
45
45
|
* `string | undefined`).
|
|
46
46
|
*
|
|
47
|
-
* R22 devops-integrator MINOR-2; R25 close.
|
|
48
|
-
*
|
|
49
47
|
* @example
|
|
50
48
|
* const { feeType, fee } = await manager.getFeeInfo();
|
|
51
49
|
* const summary = { fee: fee.toString(), feeType, feeTypeName: feeTypeName(feeType) };
|
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk3ZRHDTEX_cjs = require('./chunk-3ZRHDTEX.cjs');
|
|
4
4
|
var chunk66IHPTOK_cjs = require('./chunk-66IHPTOK.cjs');
|
|
5
5
|
var chunk56UI7LUR_cjs = require('./chunk-56UI7LUR.cjs');
|
|
6
6
|
var chains = require('viem/chains');
|
|
@@ -15,43 +15,59 @@ function isSupportedChainId(chainId) {
|
|
|
15
15
|
|
|
16
16
|
Object.defineProperty(exports, "DEPLOYED_ADDRESSES", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunk3ZRHDTEX_cjs.DEPLOYED_ADDRESSES; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "chainsWithDeployment", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunk3ZRHDTEX_cjs.chainsWithDeployment; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "chainsWithKnownRegistryEntry", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunk3ZRHDTEX_cjs.chainsWithKnownRegistryEntry; }
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () { return chunk3ZRHDTEX_cjs.getConfidentialTestTokenAddress; }
|
|
27
31
|
});
|
|
28
32
|
Object.defineProperty(exports, "getDeployedAddress", {
|
|
29
33
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunk3ZRHDTEX_cjs.getDeployedAddress; }
|
|
31
35
|
});
|
|
32
36
|
Object.defineProperty(exports, "getFheAirdropFactoryAddress", {
|
|
33
37
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunk3ZRHDTEX_cjs.getFheAirdropFactoryAddress; }
|
|
35
39
|
});
|
|
36
40
|
Object.defineProperty(exports, "getFheDisperseSingletonAddress", {
|
|
37
41
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunk3ZRHDTEX_cjs.getFheDisperseSingletonAddress; }
|
|
39
43
|
});
|
|
40
44
|
Object.defineProperty(exports, "getFheVestingFactoryAddress", {
|
|
41
45
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunk3ZRHDTEX_cjs.getFheVestingFactoryAddress; }
|
|
47
|
+
});
|
|
48
|
+
Object.defineProperty(exports, "getTestTokenAddress", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
get: function () { return chunk3ZRHDTEX_cjs.getTestTokenAddress; }
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () { return chunk3ZRHDTEX_cjs.requireConfidentialTestTokenAddress; }
|
|
43
55
|
});
|
|
44
56
|
Object.defineProperty(exports, "requireFheAirdropFactoryAddress", {
|
|
45
57
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunk3ZRHDTEX_cjs.requireFheAirdropFactoryAddress; }
|
|
47
59
|
});
|
|
48
60
|
Object.defineProperty(exports, "requireFheDisperseSingletonAddress", {
|
|
49
61
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk3ZRHDTEX_cjs.requireFheDisperseSingletonAddress; }
|
|
51
63
|
});
|
|
52
64
|
Object.defineProperty(exports, "requireFheVestingFactoryAddress", {
|
|
53
65
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk3ZRHDTEX_cjs.requireFheVestingFactoryAddress; }
|
|
67
|
+
});
|
|
68
|
+
Object.defineProperty(exports, "requireTestTokenAddress", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function () { return chunk3ZRHDTEX_cjs.requireTestTokenAddress; }
|
|
55
71
|
});
|
|
56
72
|
Object.defineProperty(exports, "asAirdropId", {
|
|
57
73
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getDeployedAddress, getFheAirdropFactoryAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress } from './chunk-
|
|
1
|
+
export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getConfidentialTestTokenAddress, getDeployedAddress, getFheAirdropFactoryAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress, requireTestTokenAddress } from './chunk-M7V2EDPB.js';
|
|
2
2
|
export { asAirdropId, asDisperseId, asEncryptedHandle, asExternalInputProof, asRole, asSignature, asTxHash, asVestingId } from './chunk-KWFFIJYX.js';
|
|
3
3
|
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-IVE3QEGD.js';
|
|
4
4
|
import { sepolia, mainnet } from 'viem/chains';
|