@tokenops/sdk 1.1.1 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (163) hide show
  1. package/CHANGELOG.md +158 -2
  2. package/README.md +18 -8
  3. package/SECURITY.md +7 -1
  4. package/dist/{chunk-56UI7LUR.cjs → chunk-2RNW4MIJ.cjs} +37 -0
  5. package/dist/{chunk-VDXVNZCO.cjs → chunk-43RFBQ73.cjs} +85 -29
  6. package/dist/{chunk-BE2AIZ3K.js → chunk-46T67CE2.js} +1 -1
  7. package/dist/{chunk-WRCUDSUJ.js → chunk-4KJ66YRH.js} +61 -3
  8. package/dist/{chunk-ITQ7WKVC.cjs → chunk-4ZCXK4VI.cjs} +68 -8
  9. package/dist/{chunk-JFLEEXKP.js → chunk-6WSNS3UV.js} +58 -2
  10. package/dist/{chunk-W7JHOK7G.cjs → chunk-7G7UOQV4.cjs} +4 -4
  11. package/dist/{chunk-5KHIQG7Y.cjs → chunk-AYGRYDBX.cjs} +35 -36
  12. package/dist/{chunk-5SGMJADP.cjs → chunk-BD4LZBVF.cjs} +85 -9
  13. package/dist/{chunk-OYLZEEHF.cjs → chunk-BK7YIVLK.cjs} +304 -179
  14. package/dist/{chunk-SEKC7H5Y.cjs → chunk-CBRL2PJA.cjs} +12 -11
  15. package/dist/{chunk-XWDVPV42.js → chunk-CNP4L3GF.js} +4 -4
  16. package/dist/{chunk-IVE3QEGD.js → chunk-DRSPMIZ7.js} +28 -1
  17. package/dist/{chunk-SAGJIEQK.cjs → chunk-EUKPOXWR.cjs} +15 -16
  18. package/dist/chunk-FT4LNBOS.js +11 -0
  19. package/dist/{chunk-ITQBDRWX.js → chunk-HETNKZEE.js} +1 -1
  20. package/dist/{chunk-JJ4R5QXF.js → chunk-KSDSXJ34.js} +1 -1
  21. package/dist/{chunk-SYHXDHWX.cjs → chunk-LBWRFZR3.cjs} +218 -31
  22. package/dist/{chunk-ZXCOJY2Z.js → chunk-NFW7AUEX.js} +1 -1
  23. package/dist/{chunk-FPQBFIUW.cjs → chunk-OL6SHN3D.cjs} +3 -3
  24. package/dist/{chunk-XSNLAS5M.js → chunk-PD7ME2BT.js} +75 -2
  25. package/dist/{chunk-FXCW7LVB.js → chunk-QET3Q4JP.js} +94 -9
  26. package/dist/{chunk-M7V2EDPB.js → chunk-QKKBBH7I.js} +2 -2
  27. package/dist/{chunk-XXXDQSHE.js → chunk-S2XD75JM.js} +12 -3
  28. package/dist/{chunk-5SA2HF2W.cjs → chunk-SPGSO5SO.cjs} +31 -22
  29. package/dist/{chunk-Q7ARQSUH.cjs → chunk-SYHNZSZZ.cjs} +3 -3
  30. package/dist/{chunk-X56UVEXS.js → chunk-TN65XNTI.js} +248 -120
  31. package/dist/chunk-U57COLUE.js +56 -0
  32. package/dist/{chunk-OQZAZIAS.js → chunk-UE5XK2SY.js} +193 -6
  33. package/dist/{chunk-NS44KBV5.cjs → chunk-UJS4N2XM.cjs} +12 -12
  34. package/dist/{chunk-IR5AK5U5.js → chunk-V5D7BHW3.js} +4 -5
  35. package/dist/{chunk-3PQ2RFPC.js → chunk-VHSNYUYV.js} +5 -4
  36. package/dist/{chunk-CQIPRNS7.cjs → chunk-VR3FREBX.cjs} +3 -3
  37. package/dist/{chunk-G7G75C46.cjs → chunk-WO72UBQD.cjs} +11 -11
  38. package/dist/chunk-WOEETTH7.cjs +59 -0
  39. package/dist/{chunk-QE7ZONJ2.js → chunk-WTK6JDSI.js} +4 -5
  40. package/dist/{chunk-3ZRHDTEX.cjs → chunk-WUXUWTFW.cjs} +3 -3
  41. package/dist/{chunk-23F7JIK5.cjs → chunk-YFIWCYHC.cjs} +141 -54
  42. package/dist/{chunk-FYQ2UW4T.js → chunk-YPYCWLYP.js} +1 -1
  43. package/dist/chunk-ZQUE2B3Q.cjs +33 -0
  44. package/dist/core/addresses.d.ts +1 -1
  45. package/dist/core/errors.d.ts +41 -1
  46. package/dist/core/revert-mapper.d.ts +77 -0
  47. package/dist/core/wagmi-compat.d.ts +40 -0
  48. package/dist/fhe/index.cjs +134 -68
  49. package/dist/fhe/index.d.cts +2 -1
  50. package/dist/fhe/index.d.ts +2 -1
  51. package/dist/fhe/index.js +64 -10
  52. package/dist/fhe/mock-erc7984.d.ts +4 -4
  53. package/dist/fhe/operators.d.ts +142 -2
  54. package/dist/fhe/react/index.cjs +21 -8
  55. package/dist/fhe/react/index.d.cts +2 -0
  56. package/dist/fhe/react/index.d.ts +2 -0
  57. package/dist/fhe/react/index.js +8 -3
  58. package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
  59. package/dist/fhe/react/useIsOperator.d.ts +54 -0
  60. package/dist/fhe/sepolia-encryptor-web.d.ts +45 -4
  61. package/dist/fhe/sepolia-encryptor.d.ts +38 -0
  62. package/dist/fhe-airdrop/advanced/index.cjs +9 -9
  63. package/dist/fhe-airdrop/advanced/index.js +7 -7
  64. package/dist/fhe-airdrop/advanced/react/index.cjs +14 -14
  65. package/dist/fhe-airdrop/advanced/react/index.js +10 -10
  66. package/dist/fhe-airdrop/airdrop.d.ts +9 -0
  67. package/dist/fhe-airdrop/encryption.d.ts +8 -0
  68. package/dist/fhe-airdrop/factory.d.ts +86 -1
  69. package/dist/fhe-airdrop/index.cjs +69 -66
  70. package/dist/fhe-airdrop/index.d.cts +3 -3
  71. package/dist/fhe-airdrop/index.d.ts +3 -3
  72. package/dist/fhe-airdrop/index.js +7 -8
  73. package/dist/fhe-airdrop/react/index.cjs +176 -135
  74. package/dist/fhe-airdrop/react/index.d.cts +7 -4
  75. package/dist/fhe-airdrop/react/index.d.ts +7 -4
  76. package/dist/fhe-airdrop/react/index.js +43 -16
  77. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +17 -11
  78. package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +3 -2
  79. package/dist/fhe-airdrop/react/useClaim.d.ts +10 -0
  80. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +8 -0
  81. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +8 -0
  82. package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +8 -0
  83. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -0
  84. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +1 -1
  85. package/dist/fhe-airdrop/types.d.ts +56 -0
  86. package/dist/fhe-disperse/encryption.d.ts +8 -0
  87. package/dist/fhe-disperse/errors.d.ts +55 -0
  88. package/dist/fhe-disperse/index.cjs +77 -66
  89. package/dist/fhe-disperse/index.d.cts +2 -2
  90. package/dist/fhe-disperse/index.d.ts +2 -2
  91. package/dist/fhe-disperse/index.js +8 -9
  92. package/dist/fhe-disperse/react/index.cjs +108 -87
  93. package/dist/fhe-disperse/react/index.d.cts +4 -2
  94. package/dist/fhe-disperse/react/index.d.ts +4 -2
  95. package/dist/fhe-disperse/react/index.js +12 -11
  96. package/dist/fhe-disperse/react/useCalculateFee.d.ts +7 -0
  97. package/dist/fhe-disperse/react/useDisperse.d.ts +9 -0
  98. package/dist/fhe-disperse/react/usePreflightDisperse.d.ts +7 -0
  99. package/dist/fhe-disperse/react/useSingletonCalculateFee.d.ts +7 -0
  100. package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +6 -0
  101. package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +6 -0
  102. package/dist/fhe-disperse/singleton.d.ts +29 -0
  103. package/dist/fhe-disperse/subtotals.d.ts +6 -0
  104. package/dist/fhe-vesting/advanced/index.cjs +8 -9
  105. package/dist/fhe-vesting/advanced/index.js +6 -7
  106. package/dist/fhe-vesting/advanced/react/index.cjs +15 -15
  107. package/dist/fhe-vesting/advanced/react/index.js +12 -12
  108. package/dist/fhe-vesting/encryption.d.ts +8 -0
  109. package/dist/fhe-vesting/index.cjs +82 -79
  110. package/dist/fhe-vesting/index.d.cts +2 -2
  111. package/dist/fhe-vesting/index.d.ts +2 -2
  112. package/dist/fhe-vesting/index.js +9 -10
  113. package/dist/fhe-vesting/manager.d.ts +119 -1
  114. package/dist/fhe-vesting/react/index.cjs +264 -224
  115. package/dist/fhe-vesting/react/index.d.cts +9 -6
  116. package/dist/fhe-vesting/react/index.d.ts +9 -6
  117. package/dist/fhe-vesting/react/index.js +44 -21
  118. package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
  119. package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
  120. package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
  121. package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
  122. package/dist/fhe-vesting/react/useAdminClaim.d.ts +2 -0
  123. package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
  124. package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
  125. package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
  126. package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
  127. package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +10 -0
  128. package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +8 -0
  129. package/dist/fhe-vesting/react/useClaim.d.ts +3 -1
  130. package/dist/fhe-vesting/react/useCreateVesting.d.ts +8 -0
  131. package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
  132. package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
  133. package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +6 -0
  134. package/dist/fhe-vesting/react/usePartialClaim.d.ts +9 -1
  135. package/dist/fhe-vesting/react/usePreflightCreateVesting.d.ts +37 -0
  136. package/dist/fhe-vesting/react/useVestingClaim.d.ts +2 -0
  137. package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
  138. package/dist/fhe-vesting/react/useWithdrawAdmin.d.ts +6 -0
  139. package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +6 -0
  140. package/dist/fhe-vesting/types.d.ts +45 -0
  141. package/dist/index.cjs +93 -86
  142. package/dist/index.d.cts +1 -1
  143. package/dist/index.d.ts +1 -1
  144. package/dist/index.js +2 -3
  145. package/dist/testnet-faucet/index.cjs +58 -55
  146. package/dist/testnet-faucet/index.d.cts +1 -1
  147. package/dist/testnet-faucet/index.d.ts +1 -1
  148. package/dist/testnet-faucet/index.js +5 -6
  149. package/dist/testnet-faucet/react/index.cjs +60 -56
  150. package/dist/testnet-faucet/react/index.d.cts +3 -2
  151. package/dist/testnet-faucet/react/index.d.ts +3 -2
  152. package/dist/testnet-faucet/react/index.js +11 -11
  153. package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +3 -2
  154. package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +2 -2
  155. package/package.json +14 -8
  156. package/dist/chunk-66IHPTOK.cjs +0 -20
  157. package/dist/chunk-KWFFIJYX.js +0 -11
  158. package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -25
  159. package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
  160. package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
  161. package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
  162. package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
  163. package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
@@ -1,4 +1,5 @@
1
1
  import type { Address } from "viem";
2
+ import type { TokenOpsSdkError } from "../core/errors.js";
2
3
  export type { EncryptedInput, EncryptedInputs, EncryptedViewResult } from "../fhe/types.js";
3
4
  /**
4
5
  * Plaintext mirror of `IConfidentialVestingManagerTypes.VestingParams`. Field
@@ -68,3 +69,47 @@ export interface PendingTransfer {
68
69
  initiatedAt: number;
69
70
  expiresAt: number;
70
71
  }
72
+ /**
73
+ * Report returned by `ConfidentialVestingManagerClient.preflightCreateVesting`.
74
+ *
75
+ * Fields:
76
+ * - `token` — the ERC-7984 distribution token this manager clone is bound to.
77
+ * - `hasCreatorRole` — `true` when the creator holds `VESTING_CREATOR_ROLE` on
78
+ * the manager.
79
+ * - `isOperatorSet` — `true` when the creator has approved the manager as an
80
+ * ERC-7984 operator on `token` (required for the manager's
81
+ * `confidentialTransferFrom` pull).
82
+ *
83
+ * **`false` does not mean "not approved" on its own** — it is also `false`
84
+ * when approval could not be determined at all: the bound `token` is not an
85
+ * ERC-7984 token, so the `isOperator` read failed. Do not render an
86
+ * "approve the manager" prompt off this field alone; check `blockerErrors`
87
+ * for `TOKENOPS_OPERATOR_NOT_APPROVED` first, which is present only when
88
+ * the approval genuinely is the missing step.
89
+ * - `ready` — `true` when no blockers were detected.
90
+ * - `blockers` — human-readable blocker descriptions. Empty when
91
+ * `ready === true`.
92
+ * - `blockerErrors` — the same blockers as typed `TokenOpsSdkError`s, index-
93
+ * aligned with `blockers`. Branch on `error.code` to render UI.
94
+ */
95
+ export interface CreateVestingPreflightReport {
96
+ /** The ERC-7984 distribution token the manager clone is bound to. */
97
+ token: Address;
98
+ /** `true` when the creator holds `VESTING_CREATOR_ROLE` on the manager. */
99
+ hasCreatorRole: boolean;
100
+ /**
101
+ * `true` when the creator has approved the manager as operator on `token`.
102
+ * Also `false` when approval could not be determined (non-ERC-7984 token);
103
+ * branch on `blockerErrors` rather than this field alone.
104
+ */
105
+ isOperatorSet: boolean;
106
+ /** `true` when no blockers were detected — green light to submit the write. */
107
+ ready: boolean;
108
+ /** Human-readable blocker descriptions. Empty when `ready === true`. */
109
+ blockers: string[];
110
+ /**
111
+ * Typed errors that would otherwise surface at write time, index-aligned
112
+ * with `blockers`. Empty when `ready === true`.
113
+ */
114
+ blockerErrors: TokenOpsSdkError[];
115
+ }
package/dist/index.cjs CHANGED
@@ -1,8 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunk3ZRHDTEX_cjs = require('./chunk-3ZRHDTEX.cjs');
4
- var chunk66IHPTOK_cjs = require('./chunk-66IHPTOK.cjs');
5
- var chunk56UI7LUR_cjs = require('./chunk-56UI7LUR.cjs');
3
+ var chunkWUXUWTFW_cjs = require('./chunk-WUXUWTFW.cjs');
4
+ var chunk2RNW4MIJ_cjs = require('./chunk-2RNW4MIJ.cjs');
6
5
  var chains = require('viem/chains');
7
6
 
8
7
  var SUPPORTED_CHAINS = {
@@ -15,239 +14,247 @@ function isSupportedChainId(chainId) {
15
14
 
16
15
  Object.defineProperty(exports, "DEPLOYED_ADDRESSES", {
17
16
  enumerable: true,
18
- get: function () { return chunk3ZRHDTEX_cjs.DEPLOYED_ADDRESSES; }
17
+ get: function () { return chunkWUXUWTFW_cjs.DEPLOYED_ADDRESSES; }
19
18
  });
20
19
  Object.defineProperty(exports, "chainsWithDeployment", {
21
20
  enumerable: true,
22
- get: function () { return chunk3ZRHDTEX_cjs.chainsWithDeployment; }
21
+ get: function () { return chunkWUXUWTFW_cjs.chainsWithDeployment; }
23
22
  });
24
23
  Object.defineProperty(exports, "chainsWithKnownRegistryEntry", {
25
24
  enumerable: true,
26
- get: function () { return chunk3ZRHDTEX_cjs.chainsWithKnownRegistryEntry; }
25
+ get: function () { return chunkWUXUWTFW_cjs.chainsWithKnownRegistryEntry; }
27
26
  });
28
27
  Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
29
28
  enumerable: true,
30
- get: function () { return chunk3ZRHDTEX_cjs.getConfidentialTestTokenAddress; }
29
+ get: function () { return chunkWUXUWTFW_cjs.getConfidentialTestTokenAddress; }
31
30
  });
32
31
  Object.defineProperty(exports, "getDeployedAddress", {
33
32
  enumerable: true,
34
- get: function () { return chunk3ZRHDTEX_cjs.getDeployedAddress; }
33
+ get: function () { return chunkWUXUWTFW_cjs.getDeployedAddress; }
35
34
  });
36
35
  Object.defineProperty(exports, "getFheAirdropFactoryAddress", {
37
36
  enumerable: true,
38
- get: function () { return chunk3ZRHDTEX_cjs.getFheAirdropFactoryAddress; }
37
+ get: function () { return chunkWUXUWTFW_cjs.getFheAirdropFactoryAddress; }
39
38
  });
40
39
  Object.defineProperty(exports, "getFheDisperseSingletonAddress", {
41
40
  enumerable: true,
42
- get: function () { return chunk3ZRHDTEX_cjs.getFheDisperseSingletonAddress; }
41
+ get: function () { return chunkWUXUWTFW_cjs.getFheDisperseSingletonAddress; }
43
42
  });
44
43
  Object.defineProperty(exports, "getFheVestingFactoryAddress", {
45
44
  enumerable: true,
46
- get: function () { return chunk3ZRHDTEX_cjs.getFheVestingFactoryAddress; }
45
+ get: function () { return chunkWUXUWTFW_cjs.getFheVestingFactoryAddress; }
47
46
  });
48
47
  Object.defineProperty(exports, "getTestTokenAddress", {
49
48
  enumerable: true,
50
- get: function () { return chunk3ZRHDTEX_cjs.getTestTokenAddress; }
49
+ get: function () { return chunkWUXUWTFW_cjs.getTestTokenAddress; }
51
50
  });
52
51
  Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
53
52
  enumerable: true,
54
- get: function () { return chunk3ZRHDTEX_cjs.requireConfidentialTestTokenAddress; }
53
+ get: function () { return chunkWUXUWTFW_cjs.requireConfidentialTestTokenAddress; }
55
54
  });
56
55
  Object.defineProperty(exports, "requireFheAirdropFactoryAddress", {
57
56
  enumerable: true,
58
- get: function () { return chunk3ZRHDTEX_cjs.requireFheAirdropFactoryAddress; }
57
+ get: function () { return chunkWUXUWTFW_cjs.requireFheAirdropFactoryAddress; }
59
58
  });
60
59
  Object.defineProperty(exports, "requireFheDisperseSingletonAddress", {
61
60
  enumerable: true,
62
- get: function () { return chunk3ZRHDTEX_cjs.requireFheDisperseSingletonAddress; }
61
+ get: function () { return chunkWUXUWTFW_cjs.requireFheDisperseSingletonAddress; }
63
62
  });
64
63
  Object.defineProperty(exports, "requireFheVestingFactoryAddress", {
65
64
  enumerable: true,
66
- get: function () { return chunk3ZRHDTEX_cjs.requireFheVestingFactoryAddress; }
65
+ get: function () { return chunkWUXUWTFW_cjs.requireFheVestingFactoryAddress; }
67
66
  });
68
67
  Object.defineProperty(exports, "requireTestTokenAddress", {
69
68
  enumerable: true,
70
- get: function () { return chunk3ZRHDTEX_cjs.requireTestTokenAddress; }
71
- });
72
- Object.defineProperty(exports, "asAirdropId", {
73
- enumerable: true,
74
- get: function () { return chunk66IHPTOK_cjs.asAirdropId; }
75
- });
76
- Object.defineProperty(exports, "asDisperseId", {
77
- enumerable: true,
78
- get: function () { return chunk66IHPTOK_cjs.asDisperseId; }
79
- });
80
- Object.defineProperty(exports, "asEncryptedHandle", {
81
- enumerable: true,
82
- get: function () { return chunk66IHPTOK_cjs.asEncryptedHandle; }
83
- });
84
- Object.defineProperty(exports, "asExternalInputProof", {
85
- enumerable: true,
86
- get: function () { return chunk66IHPTOK_cjs.asExternalInputProof; }
87
- });
88
- Object.defineProperty(exports, "asRole", {
89
- enumerable: true,
90
- get: function () { return chunk66IHPTOK_cjs.asRole; }
91
- });
92
- Object.defineProperty(exports, "asSignature", {
93
- enumerable: true,
94
- get: function () { return chunk66IHPTOK_cjs.asSignature; }
95
- });
96
- Object.defineProperty(exports, "asTxHash", {
97
- enumerable: true,
98
- get: function () { return chunk66IHPTOK_cjs.asTxHash; }
99
- });
100
- Object.defineProperty(exports, "asVestingId", {
101
- enumerable: true,
102
- get: function () { return chunk66IHPTOK_cjs.asVestingId; }
69
+ get: function () { return chunkWUXUWTFW_cjs.requireTestTokenAddress; }
103
70
  });
104
71
  Object.defineProperty(exports, "AccessDeniedError", {
105
72
  enumerable: true,
106
- get: function () { return chunk56UI7LUR_cjs.AccessDeniedError; }
73
+ get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
107
74
  });
108
75
  Object.defineProperty(exports, "AlreadyInitializedError", {
109
76
  enumerable: true,
110
- get: function () { return chunk56UI7LUR_cjs.AlreadyInitializedError; }
77
+ get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
111
78
  });
112
79
  Object.defineProperty(exports, "BatchTooLargeError", {
113
80
  enumerable: true,
114
- get: function () { return chunk56UI7LUR_cjs.BatchTooLargeError; }
81
+ get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
115
82
  });
116
83
  Object.defineProperty(exports, "ContractRevertError", {
117
84
  enumerable: true,
118
- get: function () { return chunk56UI7LUR_cjs.ContractRevertError; }
85
+ get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
119
86
  });
120
87
  Object.defineProperty(exports, "DecryptionFailedError", {
121
88
  enumerable: true,
122
- get: function () { return chunk56UI7LUR_cjs.DecryptionFailedError; }
89
+ get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
123
90
  });
124
91
  Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
125
92
  enumerable: true,
126
- get: function () { return chunk56UI7LUR_cjs.DeploymentAddressUnavailableError; }
93
+ get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
127
94
  });
128
95
  Object.defineProperty(exports, "EncryptionFailedError", {
129
96
  enumerable: true,
130
- get: function () { return chunk56UI7LUR_cjs.EncryptionFailedError; }
97
+ get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
131
98
  });
132
99
  Object.defineProperty(exports, "FeatureDisabledError", {
133
100
  enumerable: true,
134
- get: function () { return chunk56UI7LUR_cjs.FeatureDisabledError; }
101
+ get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
135
102
  });
136
103
  Object.defineProperty(exports, "FheHandleNotAllowedError", {
137
104
  enumerable: true,
138
- get: function () { return chunk56UI7LUR_cjs.FheHandleNotAllowedError; }
105
+ get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
139
106
  });
140
107
  Object.defineProperty(exports, "InsufficientBalanceError", {
141
108
  enumerable: true,
142
- get: function () { return chunk56UI7LUR_cjs.InsufficientBalanceError; }
109
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
143
110
  });
144
111
  Object.defineProperty(exports, "InsufficientFeeError", {
145
112
  enumerable: true,
146
- get: function () { return chunk56UI7LUR_cjs.InsufficientFeeError; }
113
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
147
114
  });
148
115
  Object.defineProperty(exports, "InsufficientGasFundsError", {
149
116
  enumerable: true,
150
- get: function () { return chunk56UI7LUR_cjs.InsufficientGasFundsError; }
117
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
151
118
  });
152
119
  Object.defineProperty(exports, "InvalidArgumentError", {
153
120
  enumerable: true,
154
- get: function () { return chunk56UI7LUR_cjs.InvalidArgumentError; }
121
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
155
122
  });
156
123
  Object.defineProperty(exports, "InvalidSignatureError", {
157
124
  enumerable: true,
158
- get: function () { return chunk56UI7LUR_cjs.InvalidSignatureError; }
125
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
159
126
  });
160
127
  Object.defineProperty(exports, "MissingAccountError", {
161
128
  enumerable: true,
162
- get: function () { return chunk56UI7LUR_cjs.MissingAccountError; }
129
+ get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
163
130
  });
164
131
  Object.defineProperty(exports, "MissingClientError", {
165
132
  enumerable: true,
166
- get: function () { return chunk56UI7LUR_cjs.MissingClientError; }
133
+ get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
167
134
  });
168
135
  Object.defineProperty(exports, "MissingEncryptorError", {
169
136
  enumerable: true,
170
- get: function () { return chunk56UI7LUR_cjs.MissingEncryptorError; }
137
+ get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
171
138
  });
172
139
  Object.defineProperty(exports, "MissingPublicClientError", {
173
140
  enumerable: true,
174
- get: function () { return chunk56UI7LUR_cjs.MissingPublicClientError; }
141
+ get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
175
142
  });
176
143
  Object.defineProperty(exports, "MissingWalletClientError", {
177
144
  enumerable: true,
178
- get: function () { return chunk56UI7LUR_cjs.MissingWalletClientError; }
145
+ get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
179
146
  });
180
147
  Object.defineProperty(exports, "NetworkError", {
181
148
  enumerable: true,
182
- get: function () { return chunk56UI7LUR_cjs.NetworkError; }
149
+ get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
150
+ });
151
+ Object.defineProperty(exports, "OPERATOR_NOT_APPROVED_REMEDIATION", {
152
+ enumerable: true,
153
+ get: function () { return chunk2RNW4MIJ_cjs.OPERATOR_NOT_APPROVED_REMEDIATION; }
154
+ });
155
+ Object.defineProperty(exports, "OperatorNotApprovedError", {
156
+ enumerable: true,
157
+ get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
183
158
  });
184
159
  Object.defineProperty(exports, "PausedError", {
185
160
  enumerable: true,
186
- get: function () { return chunk56UI7LUR_cjs.PausedError; }
161
+ get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
187
162
  });
188
163
  Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
189
164
  enumerable: true,
190
- get: function () { return chunk56UI7LUR_cjs.ReceiptEventAmbiguousError; }
165
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
191
166
  });
192
167
  Object.defineProperty(exports, "ReceiptEventNotFoundError", {
193
168
  enumerable: true,
194
- get: function () { return chunk56UI7LUR_cjs.ReceiptEventNotFoundError; }
169
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
195
170
  });
196
171
  Object.defineProperty(exports, "ReentrancyError", {
197
172
  enumerable: true,
198
- get: function () { return chunk56UI7LUR_cjs.ReentrancyError; }
173
+ get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
199
174
  });
200
175
  Object.defineProperty(exports, "RelayerUnreachableError", {
201
176
  enumerable: true,
202
- get: function () { return chunk56UI7LUR_cjs.RelayerUnreachableError; }
177
+ get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
203
178
  });
204
179
  Object.defineProperty(exports, "SigningFailedError", {
205
180
  enumerable: true,
206
- get: function () { return chunk56UI7LUR_cjs.SigningFailedError; }
181
+ get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
207
182
  });
208
183
  Object.defineProperty(exports, "TokenOpsContractError", {
209
184
  enumerable: true,
210
- get: function () { return chunk56UI7LUR_cjs.TokenOpsContractError; }
185
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsContractError; }
211
186
  });
212
187
  Object.defineProperty(exports, "TokenOpsSdkError", {
213
188
  enumerable: true,
214
- get: function () { return chunk56UI7LUR_cjs.TokenOpsSdkError; }
189
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
215
190
  });
216
191
  Object.defineProperty(exports, "TokenOpsValidationError", {
217
192
  enumerable: true,
218
- get: function () { return chunk56UI7LUR_cjs.TokenOpsValidationError; }
193
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsValidationError; }
219
194
  });
220
195
  Object.defineProperty(exports, "TransferFailedError", {
221
196
  enumerable: true,
222
- get: function () { return chunk56UI7LUR_cjs.TransferFailedError; }
197
+ get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
223
198
  });
224
199
  Object.defineProperty(exports, "UnknownWriteFailureError", {
225
200
  enumerable: true,
226
- get: function () { return chunk56UI7LUR_cjs.UnknownWriteFailureError; }
201
+ get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
227
202
  });
228
203
  Object.defineProperty(exports, "UnsupportedChainError", {
229
204
  enumerable: true,
230
- get: function () { return chunk56UI7LUR_cjs.UnsupportedChainError; }
205
+ get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
231
206
  });
232
207
  Object.defineProperty(exports, "UserDecryptNotAllowedError", {
233
208
  enumerable: true,
234
- get: function () { return chunk56UI7LUR_cjs.UserDecryptNotAllowedError; }
209
+ get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
235
210
  });
236
211
  Object.defineProperty(exports, "UserRejectedSignatureError", {
237
212
  enumerable: true,
238
- get: function () { return chunk56UI7LUR_cjs.UserRejectedSignatureError; }
213
+ get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
239
214
  });
240
215
  Object.defineProperty(exports, "WalletChainMismatchError", {
241
216
  enumerable: true,
242
- get: function () { return chunk56UI7LUR_cjs.WalletChainMismatchError; }
217
+ get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
243
218
  });
244
219
  Object.defineProperty(exports, "WalletRejectedError", {
245
220
  enumerable: true,
246
- get: function () { return chunk56UI7LUR_cjs.WalletRejectedError; }
221
+ get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
222
+ });
223
+ Object.defineProperty(exports, "asAirdropId", {
224
+ enumerable: true,
225
+ get: function () { return chunk2RNW4MIJ_cjs.asAirdropId; }
226
+ });
227
+ Object.defineProperty(exports, "asDisperseId", {
228
+ enumerable: true,
229
+ get: function () { return chunk2RNW4MIJ_cjs.asDisperseId; }
230
+ });
231
+ Object.defineProperty(exports, "asEncryptedHandle", {
232
+ enumerable: true,
233
+ get: function () { return chunk2RNW4MIJ_cjs.asEncryptedHandle; }
234
+ });
235
+ Object.defineProperty(exports, "asExternalInputProof", {
236
+ enumerable: true,
237
+ get: function () { return chunk2RNW4MIJ_cjs.asExternalInputProof; }
238
+ });
239
+ Object.defineProperty(exports, "asRole", {
240
+ enumerable: true,
241
+ get: function () { return chunk2RNW4MIJ_cjs.asRole; }
242
+ });
243
+ Object.defineProperty(exports, "asSignature", {
244
+ enumerable: true,
245
+ get: function () { return chunk2RNW4MIJ_cjs.asSignature; }
246
+ });
247
+ Object.defineProperty(exports, "asTxHash", {
248
+ enumerable: true,
249
+ get: function () { return chunk2RNW4MIJ_cjs.asTxHash; }
250
+ });
251
+ Object.defineProperty(exports, "asVestingId", {
252
+ enumerable: true,
253
+ get: function () { return chunk2RNW4MIJ_cjs.asVestingId; }
247
254
  });
248
255
  Object.defineProperty(exports, "isTokenOpsSdkError", {
249
256
  enumerable: true,
250
- get: function () { return chunk56UI7LUR_cjs.isTokenOpsSdkError; }
257
+ get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
251
258
  });
252
259
  exports.SUPPORTED_CHAINS = SUPPORTED_CHAINS;
253
260
  exports.isSupportedChainId = isSupportedChainId;
package/dist/index.d.cts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./core/index.js";
2
- export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, 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";
2
+ export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, 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";
3
3
  export { type PreflightResult } from "./core/preflight.js";
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from "./core/index.js";
2
- export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, 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";
2
+ export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, 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";
3
3
  export { type PreflightResult } from "./core/preflight.js";
package/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
- export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getConfidentialTestTokenAddress, getDeployedAddress, getFheAirdropFactoryAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress, requireTestTokenAddress } from './chunk-M7V2EDPB.js';
2
- export { asAirdropId, asDisperseId, asEncryptedHandle, asExternalInputProof, asRole, asSignature, asTxHash, asVestingId } from './chunk-KWFFIJYX.js';
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';
1
+ export { DEPLOYED_ADDRESSES, chainsWithDeployment, chainsWithKnownRegistryEntry, getConfidentialTestTokenAddress, getDeployedAddress, getFheAirdropFactoryAddress, getFheDisperseSingletonAddress, getFheVestingFactoryAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireFheAirdropFactoryAddress, requireFheDisperseSingletonAddress, requireFheVestingFactoryAddress, requireTestTokenAddress } from './chunk-QKKBBH7I.js';
2
+ export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OPERATOR_NOT_APPROVED_REMEDIATION, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, asAirdropId, asDisperseId, asEncryptedHandle, asExternalInputProof, asRole, asSignature, asTxHash, asVestingId, isTokenOpsSdkError } from './chunk-DRSPMIZ7.js';
4
3
  import { sepolia, mainnet } from 'viem/chains';
5
4
 
6
5
  var SUPPORTED_CHAINS = {