@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.
Files changed (91) hide show
  1. package/README.md +102 -18
  2. package/dist/{chunk-HTOMTEA3.cjs → chunk-23F7JIK5.cjs} +2 -2
  3. package/dist/{chunk-ECT3NL2L.js → chunk-3PQ2RFPC.js} +3 -3
  4. package/dist/{chunk-OLDGMKW2.cjs → chunk-3ZRHDTEX.cjs} +33 -0
  5. package/dist/chunk-5KHIQG7Y.cjs +2180 -0
  6. package/dist/{chunk-T5LVV3KY.cjs → chunk-FPQBFIUW.cjs} +3 -3
  7. package/dist/{chunk-QIHZVLIK.js → chunk-FXCW7LVB.js} +1 -1
  8. package/dist/{chunk-K6MFFDBJ.cjs → chunk-G7G75C46.cjs} +6 -6
  9. package/dist/{chunk-72YGZEQE.js → chunk-IR5AK5U5.js} +6 -8
  10. package/dist/{chunk-CMRETRZO.js → chunk-ITQBDRWX.js} +1 -1
  11. package/dist/{chunk-ZHFLRKFY.js → chunk-JJ4R5QXF.js} +1 -1
  12. package/dist/{chunk-COPFW5Z4.js → chunk-M7V2EDPB.js} +30 -1
  13. package/dist/{chunk-UOG4PJL5.js → chunk-OQZAZIAS.js} +8 -10
  14. package/dist/{chunk-SUOG3BQS.cjs → chunk-OYLZEEHF.cjs} +1 -2
  15. package/dist/chunk-QE7ZONJ2.js +2171 -0
  16. package/dist/{chunk-62DF53UQ.cjs → chunk-SAGJIEQK.cjs} +7 -9
  17. package/dist/{chunk-JFR5J4FL.cjs → chunk-SEKC7H5Y.cjs} +8 -8
  18. package/dist/{chunk-6ECAHP5O.cjs → chunk-SYHXDHWX.cjs} +9 -11
  19. package/dist/{chunk-QCA7O2Q5.cjs → chunk-W7JHOK7G.cjs} +4 -4
  20. package/dist/{chunk-52TC6BF7.js → chunk-X56UVEXS.js} +1 -2
  21. package/dist/{chunk-HGXNRR25.js → chunk-XWDVPV42.js} +2 -2
  22. package/dist/core/addresses.d.ts +22 -0
  23. package/dist/core/errors.d.ts +1 -1
  24. package/dist/core/telemetry.d.ts +0 -3
  25. package/dist/fhe/operators.d.ts +1 -1
  26. package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +3 -3
  27. package/dist/fhe-airdrop/advanced/index.cjs +5 -5
  28. package/dist/fhe-airdrop/advanced/index.d.cts +2 -2
  29. package/dist/fhe-airdrop/advanced/index.d.ts +2 -2
  30. package/dist/fhe-airdrop/advanced/index.js +3 -3
  31. package/dist/fhe-airdrop/advanced/react/index.cjs +8 -8
  32. package/dist/fhe-airdrop/advanced/react/index.d.cts +1 -1
  33. package/dist/fhe-airdrop/advanced/react/index.d.ts +1 -1
  34. package/dist/fhe-airdrop/advanced/react/index.js +4 -4
  35. package/dist/fhe-airdrop/factory.d.ts +8 -10
  36. package/dist/fhe-airdrop/index.cjs +9 -9
  37. package/dist/fhe-airdrop/index.js +2 -2
  38. package/dist/fhe-airdrop/react/index.cjs +69 -69
  39. package/dist/fhe-airdrop/react/index.js +4 -4
  40. package/dist/fhe-disperse/index.cjs +19 -19
  41. package/dist/fhe-disperse/index.js +2 -2
  42. package/dist/fhe-disperse/react/index.cjs +20 -20
  43. package/dist/fhe-disperse/react/index.js +3 -3
  44. package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +2 -2
  45. package/dist/fhe-vesting/advanced/factory-advanced.d.ts +2 -2
  46. package/dist/fhe-vesting/advanced/index.cjs +5 -5
  47. package/dist/fhe-vesting/advanced/index.d.cts +2 -2
  48. package/dist/fhe-vesting/advanced/index.d.ts +2 -2
  49. package/dist/fhe-vesting/advanced/index.js +3 -3
  50. package/dist/fhe-vesting/advanced/react/index.cjs +8 -8
  51. package/dist/fhe-vesting/advanced/react/index.d.cts +1 -1
  52. package/dist/fhe-vesting/advanced/react/index.d.ts +1 -1
  53. package/dist/fhe-vesting/advanced/react/index.js +5 -5
  54. package/dist/fhe-vesting/factory.d.ts +6 -8
  55. package/dist/fhe-vesting/index.cjs +25 -25
  56. package/dist/fhe-vesting/index.js +3 -3
  57. package/dist/fhe-vesting/manager.d.ts +1 -2
  58. package/dist/fhe-vesting/react/index.cjs +126 -126
  59. package/dist/fhe-vesting/react/index.js +4 -4
  60. package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +1 -1
  61. package/dist/fhe-vesting/types.d.ts +0 -2
  62. package/dist/index.cjs +27 -11
  63. package/dist/index.js +1 -1
  64. package/dist/testnet-faucet/abis/confidential-test-token.d.ts +1039 -0
  65. package/dist/testnet-faucet/abis/index.d.ts +2 -0
  66. package/dist/testnet-faucet/abis/test-token.d.ts +253 -0
  67. package/dist/testnet-faucet/errors.d.ts +21 -0
  68. package/dist/testnet-faucet/faucet.d.ts +173 -0
  69. package/dist/testnet-faucet/index.cjs +208 -0
  70. package/dist/testnet-faucet/index.d.cts +8 -0
  71. package/dist/testnet-faucet/index.d.ts +8 -0
  72. package/dist/testnet-faucet/index.js +7 -0
  73. package/dist/testnet-faucet/react/_shared.d.ts +61 -0
  74. package/dist/testnet-faucet/react/index.cjs +379 -0
  75. package/dist/testnet-faucet/react/index.d.cts +38 -0
  76. package/dist/testnet-faucet/react/index.d.ts +38 -0
  77. package/dist/testnet-faucet/react/index.js +219 -0
  78. package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +24 -0
  79. package/dist/testnet-faucet/react/useFaucetDecimals.d.ts +9 -0
  80. package/dist/testnet-faucet/react/useFaucetMetadata.d.ts +14 -0
  81. package/dist/testnet-faucet/react/useFaucetRate.d.ts +11 -0
  82. package/dist/testnet-faucet/react/useInferredTotalSupply.d.ts +11 -0
  83. package/dist/testnet-faucet/react/useMaxTotalSupply.d.ts +10 -0
  84. package/dist/testnet-faucet/react/useMintConfidential.d.ts +35 -0
  85. package/dist/testnet-faucet/react/useMintUnderlying.d.ts +31 -0
  86. package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +19 -0
  87. package/dist/testnet-faucet/react/useUnderlyingDecimals.d.ts +9 -0
  88. package/dist/testnet-faucet/react/useUnderlyingTokenAddress.d.ts +12 -0
  89. package/dist/testnet-faucet/types.d.ts +92 -0
  90. package/dist/testnet-faucet/validate.d.ts +44 -0
  91. package/package.json +77 -29
@@ -1,11 +1,11 @@
1
- import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-ECT3NL2L.js';
2
- export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-52TC6BF7.js';
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-72YGZEQE.js';
6
+ export { DisclosureType, FeeType } from '../../chunk-IR5AK5U5.js';
7
7
  import '../../chunk-JFLEEXKP.js';
8
- import '../../chunk-COPFW5Z4.js';
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 post-R08 S-4. Caller must hold `FEE_COLLECTOR_ROLE`.
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 chunkOLDGMKW2_cjs = require('./chunk-OLDGMKW2.cjs');
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 chunkOLDGMKW2_cjs.DEPLOYED_ADDRESSES; }
18
+ get: function () { return chunk3ZRHDTEX_cjs.DEPLOYED_ADDRESSES; }
19
19
  });
20
20
  Object.defineProperty(exports, "chainsWithDeployment", {
21
21
  enumerable: true,
22
- get: function () { return chunkOLDGMKW2_cjs.chainsWithDeployment; }
22
+ get: function () { return chunk3ZRHDTEX_cjs.chainsWithDeployment; }
23
23
  });
24
24
  Object.defineProperty(exports, "chainsWithKnownRegistryEntry", {
25
25
  enumerable: true,
26
- get: function () { return chunkOLDGMKW2_cjs.chainsWithKnownRegistryEntry; }
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 chunkOLDGMKW2_cjs.getDeployedAddress; }
34
+ get: function () { return chunk3ZRHDTEX_cjs.getDeployedAddress; }
31
35
  });
32
36
  Object.defineProperty(exports, "getFheAirdropFactoryAddress", {
33
37
  enumerable: true,
34
- get: function () { return chunkOLDGMKW2_cjs.getFheAirdropFactoryAddress; }
38
+ get: function () { return chunk3ZRHDTEX_cjs.getFheAirdropFactoryAddress; }
35
39
  });
36
40
  Object.defineProperty(exports, "getFheDisperseSingletonAddress", {
37
41
  enumerable: true,
38
- get: function () { return chunkOLDGMKW2_cjs.getFheDisperseSingletonAddress; }
42
+ get: function () { return chunk3ZRHDTEX_cjs.getFheDisperseSingletonAddress; }
39
43
  });
40
44
  Object.defineProperty(exports, "getFheVestingFactoryAddress", {
41
45
  enumerable: true,
42
- get: function () { return chunkOLDGMKW2_cjs.getFheVestingFactoryAddress; }
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 chunkOLDGMKW2_cjs.requireFheAirdropFactoryAddress; }
58
+ get: function () { return chunk3ZRHDTEX_cjs.requireFheAirdropFactoryAddress; }
47
59
  });
48
60
  Object.defineProperty(exports, "requireFheDisperseSingletonAddress", {
49
61
  enumerable: true,
50
- get: function () { return chunkOLDGMKW2_cjs.requireFheDisperseSingletonAddress; }
62
+ get: function () { return chunk3ZRHDTEX_cjs.requireFheDisperseSingletonAddress; }
51
63
  });
52
64
  Object.defineProperty(exports, "requireFheVestingFactoryAddress", {
53
65
  enumerable: true,
54
- get: function () { return chunkOLDGMKW2_cjs.requireFheVestingFactoryAddress; }
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-COPFW5Z4.js';
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';