@tokenops/sdk 1.5.1 → 2.0.0-alpha.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 (222) hide show
  1. package/CHANGELOG.md +198 -2
  2. package/CONTRIBUTING.md +4 -2
  3. package/README.md +146 -90
  4. package/SECURITY.md +7 -1
  5. package/SUPPORT.md +47 -0
  6. package/dist/{chunk-YQIBBEFJ.js → chunk-335Z2W67.js} +1 -1
  7. package/dist/{chunk-2NCLOQ56.cjs → chunk-3QHNYEQD.cjs} +77 -0
  8. package/dist/chunk-456VDDA3.js +370 -0
  9. package/dist/{chunk-SG65XWH7.js → chunk-4RAAATVY.js} +1 -3
  10. package/dist/{chunk-6BMP4ICG.js → chunk-4TSDNZQ3.js} +60 -2
  11. package/dist/{chunk-PUPKNW3R.cjs → chunk-5576FRT3.cjs} +30 -6
  12. package/dist/{chunk-AOP6HMPW.js → chunk-6GNR22OV.js} +75 -1
  13. package/dist/{chunk-NTZY6IB7.js → chunk-6NAVMWZQ.js} +4 -3
  14. package/dist/{chunk-C7BRZXJA.cjs → chunk-6PXXGACR.cjs} +8 -7
  15. package/dist/{chunk-IJFQ5L4I.js → chunk-74QFZ5MK.js} +4 -3
  16. package/dist/chunk-7AFPOE7N.cjs +59 -0
  17. package/dist/chunk-AXIPOR3C.js +56 -0
  18. package/dist/chunk-CTED3MTR.cjs +380 -0
  19. package/dist/{chunk-XGGTQQFH.js → chunk-DZHYSUGY.js} +28 -7
  20. package/dist/{chunk-OXTLPTO3.js → chunk-EAJ7SYHE.js} +4 -3
  21. package/dist/{chunk-V2PXZVBF.cjs → chunk-FGEB7RMY.cjs} +4 -4
  22. package/dist/chunk-GKKDAW44.js +8823 -0
  23. package/dist/{chunk-2PWNH3UE.js → chunk-H5POPGOZ.js} +63 -5
  24. package/dist/{chunk-W7IGCOVL.cjs → chunk-JQYC66TO.cjs} +9 -8
  25. package/dist/{chunk-PFXURMBZ.cjs → chunk-JZLGCTGK.cjs} +68 -8
  26. package/dist/{chunk-JYOTGRSO.cjs → chunk-KFRDLKMA.cjs} +61 -1
  27. package/dist/chunk-M4IT6DNJ.cjs +608 -0
  28. package/dist/{chunk-KLKI352M.cjs → chunk-MVDQMV25.cjs} +0 -3
  29. package/dist/chunk-NCVX3K2N.cjs +161 -0
  30. package/dist/chunk-NWFMBLSQ.js +4 -0
  31. package/dist/chunk-O5676ZWY.js +585 -0
  32. package/dist/chunk-PUX5VXDB.cjs +8845 -0
  33. package/dist/{chunk-IXLO7GO5.js → chunk-TWT3STIX.js} +46 -80
  34. package/dist/chunk-UG5RKLU2.cjs +6 -0
  35. package/dist/chunk-VP2B4WM2.js +154 -0
  36. package/dist/{chunk-5X5WL5CU.cjs → chunk-WJLECC22.cjs} +51 -88
  37. package/dist/{chunk-WENHUPZC.cjs → chunk-XAYGD4E4.cjs} +9 -8
  38. package/dist/core/addresses.d.ts +15 -3
  39. package/dist/core/brands.d.ts +8 -2
  40. package/dist/core/errors.d.ts +71 -10
  41. package/dist/core/preflight.d.ts +1 -0
  42. package/dist/fhe/erc7984-abi.d.ts +1 -0
  43. package/dist/fhe/index.cjs +34 -13
  44. package/dist/fhe/index.d.cts +1 -0
  45. package/dist/fhe/index.d.ts +1 -0
  46. package/dist/fhe/index.js +19 -6
  47. package/dist/fhe/mock-erc7984.d.ts +4 -4
  48. package/dist/fhe/operators.d.ts +160 -3
  49. package/dist/fhe/react/index.cjs +14 -0
  50. package/dist/fhe/react/index.d.cts +2 -0
  51. package/dist/fhe/react/index.d.ts +2 -0
  52. package/dist/fhe/react/index.js +6 -0
  53. package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
  54. package/dist/fhe/react/useIsOperator.d.ts +54 -0
  55. package/dist/fhe/sepolia-encryptor-web.d.ts +18 -3
  56. package/dist/fhe/types.d.ts +6 -0
  57. package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
  58. package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
  59. package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
  60. package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
  61. package/dist/fhe-airdrop/abis/index.d.ts +5 -2
  62. package/dist/fhe-airdrop/abis/merkle.d.ts +1238 -0
  63. package/dist/fhe-airdrop/advanced/index.cjs +10 -12
  64. package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
  65. package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
  66. package/dist/fhe-airdrop/advanced/index.js +2 -8
  67. package/dist/fhe-airdrop/advanced/react/index.cjs +34 -48
  68. package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
  69. package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
  70. package/dist/fhe-airdrop/advanced/react/index.js +33 -48
  71. package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
  72. package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
  73. package/dist/fhe-airdrop/airdrop-base.d.ts +600 -0
  74. package/dist/fhe-airdrop/campaign.d.ts +297 -0
  75. package/dist/fhe-airdrop/compliance.d.ts +302 -0
  76. package/dist/fhe-airdrop/constants.d.ts +33 -0
  77. package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
  78. package/dist/fhe-airdrop/encryption.d.ts +92 -14
  79. package/dist/fhe-airdrop/errors.d.ts +245 -15
  80. package/dist/fhe-airdrop/factory.d.ts +533 -274
  81. package/dist/fhe-airdrop/guards.d.ts +273 -0
  82. package/dist/fhe-airdrop/index.cjs +1089 -33
  83. package/dist/fhe-airdrop/index.d.cts +46 -8
  84. package/dist/fhe-airdrop/index.d.ts +46 -8
  85. package/dist/fhe-airdrop/index.js +929 -7
  86. package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
  87. package/dist/fhe-airdrop/merkle.d.ts +180 -0
  88. package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
  89. package/dist/fhe-airdrop/react/index.cjs +364 -413
  90. package/dist/fhe-airdrop/react/index.d.cts +53 -72
  91. package/dist/fhe-airdrop/react/index.d.ts +53 -72
  92. package/dist/fhe-airdrop/react/index.js +258 -369
  93. package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
  94. package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
  95. package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
  96. package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
  97. package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
  98. package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
  99. package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
  100. package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
  101. package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
  102. package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
  103. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +23 -0
  104. package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
  105. package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
  106. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
  107. package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
  108. package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
  109. package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
  110. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +34 -0
  111. package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
  112. package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
  113. package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
  114. package/dist/fhe-airdrop/roles.d.ts +147 -0
  115. package/dist/fhe-airdrop/types.d.ts +68 -55
  116. package/dist/fhe-disperse/errors.d.ts +55 -0
  117. package/dist/fhe-disperse/index.cjs +34 -25
  118. package/dist/fhe-disperse/index.d.cts +1 -1
  119. package/dist/fhe-disperse/index.d.ts +1 -1
  120. package/dist/fhe-disperse/index.js +6 -5
  121. package/dist/fhe-disperse/react/index.cjs +42 -23
  122. package/dist/fhe-disperse/react/index.d.cts +3 -1
  123. package/dist/fhe-disperse/react/index.d.ts +3 -1
  124. package/dist/fhe-disperse/react/index.js +9 -6
  125. package/dist/fhe-vesting/advanced/index.cjs +8 -7
  126. package/dist/fhe-vesting/advanced/index.js +6 -5
  127. package/dist/fhe-vesting/advanced/react/index.cjs +12 -11
  128. package/dist/fhe-vesting/advanced/react/index.js +9 -8
  129. package/dist/fhe-vesting/index.cjs +35 -34
  130. package/dist/fhe-vesting/index.js +7 -6
  131. package/dist/fhe-vesting/manager.d.ts +19 -0
  132. package/dist/fhe-vesting/react/index.cjs +160 -140
  133. package/dist/fhe-vesting/react/index.d.cts +6 -4
  134. package/dist/fhe-vesting/react/index.d.ts +6 -4
  135. package/dist/fhe-vesting/react/index.js +24 -16
  136. package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
  137. package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
  138. package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
  139. package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
  140. package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
  141. package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
  142. package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
  143. package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
  144. package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +8 -0
  145. package/dist/fhe-vesting/react/useClaim.d.ts +1 -1
  146. package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
  147. package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
  148. package/dist/fhe-vesting/react/usePartialClaim.d.ts +1 -1
  149. package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
  150. package/dist/fhe-vesting/types.d.ts +12 -1
  151. package/dist/index.cjs +27 -15
  152. package/dist/index.js +1 -1
  153. package/dist/testnet-faucet/index.cjs +17 -16
  154. package/dist/testnet-faucet/index.js +5 -4
  155. package/dist/testnet-faucet/react/index.cjs +11 -10
  156. package/dist/testnet-faucet/react/index.js +6 -5
  157. package/package.json +18 -9
  158. package/dist/chunk-4WPGQSNT.cjs +0 -44
  159. package/dist/chunk-6R4KNAPK.js +0 -1630
  160. package/dist/chunk-DUZIIRPF.js +0 -1655
  161. package/dist/chunk-MCRBVJGZ.cjs +0 -1637
  162. package/dist/chunk-ODLTEGHB.js +0 -41
  163. package/dist/chunk-ORFTDNFZ.js +0 -105
  164. package/dist/chunk-T46YXSBP.cjs +0 -109
  165. package/dist/chunk-TIUKIY5V.cjs +0 -1663
  166. package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
  167. package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
  168. package/dist/fhe-airdrop/airdrop.d.ts +0 -310
  169. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -31
  170. package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
  171. package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -27
  172. package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
  173. package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
  174. package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
  175. package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
  176. package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
  177. package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
  178. package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
  179. package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
  180. package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
  181. package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
  182. package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
  183. package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
  184. package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
  185. package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +0 -16
  186. package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
  187. package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
  188. package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
  189. package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
  190. package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
  191. package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
  192. package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +0 -15
  193. package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
  194. package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
  195. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
  196. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
  197. package/dist/fhe-airdrop/react/useClaim.d.ts +0 -31
  198. package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
  199. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
  200. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
  201. package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
  202. package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
  203. package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
  204. package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
  205. package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
  206. package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
  207. package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
  208. package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
  209. package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
  210. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +0 -51
  211. package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
  212. package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
  213. package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
  214. package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
  215. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +0 -31
  216. package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
  217. package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
  218. package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
  219. package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
  220. package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
  221. package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
  222. package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
@@ -1,16 +1,19 @@
1
1
  'use strict';
2
2
 
3
- var chunkPFXURMBZ_cjs = require('../../chunk-PFXURMBZ.cjs');
4
- require('../../chunk-JYOTGRSO.cjs');
3
+ var chunkJZLGCTGK_cjs = require('../../chunk-JZLGCTGK.cjs');
4
+ var chunk7AFPOE7N_cjs = require('../../chunk-7AFPOE7N.cjs');
5
+ require('../../chunk-ZQUE2B3Q.cjs');
6
+ require('../../chunk-KFRDLKMA.cjs');
5
7
  require('../../chunk-TEBM66WA.cjs');
6
8
  require('../../chunk-FAXIIH5R.cjs');
7
9
  require('../../chunk-FWHYQZ5E.cjs');
8
- require('../../chunk-KLKI352M.cjs');
9
- var chunkPUPKNW3R_cjs = require('../../chunk-PUPKNW3R.cjs');
10
+ require('../../chunk-UG5RKLU2.cjs');
11
+ require('../../chunk-MVDQMV25.cjs');
12
+ var chunk5576FRT3_cjs = require('../../chunk-5576FRT3.cjs');
10
13
  require('../../chunk-JK4XMMKM.cjs');
11
- require('../../chunk-VJKZWYYJ.cjs');
12
14
  require('../../chunk-66IHPTOK.cjs');
13
15
  var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
16
+ require('../../chunk-VJKZWYYJ.cjs');
14
17
  var reactQuery = require('@tanstack/react-query');
15
18
  var react = require('react');
16
19
  var wagmi = require('wagmi');
@@ -20,7 +23,7 @@ var FHE_DISPERSE_NAMESPACE = "fhe-disperse";
20
23
  function tryResolveSingletonAddress(override, chainId) {
21
24
  if (override) return override;
22
25
  if (chainId === void 0) return void 0;
23
- return chunkPUPKNW3R_cjs.getFheDisperseSingletonAddress(chainId);
26
+ return chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
24
27
  }
25
28
  function useMemoDisperseClient(opts = {}) {
26
29
  const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
@@ -33,14 +36,14 @@ function useMemoDisperseClient(opts = {}) {
33
36
  const client = react.useMemo(() => {
34
37
  if (!publicClient) return void 0;
35
38
  if (!resolvedAddress) return void 0;
36
- return chunkPFXURMBZ_cjs.createConfidentialDisperseClient({
39
+ return chunkJZLGCTGK_cjs.createConfidentialDisperseClient({
37
40
  publicClient,
38
41
  ...walletClient ? { walletClient } : {},
39
42
  address: resolvedAddress,
40
43
  ...chainId !== void 0 ? { chainId } : {},
41
44
  // Lazy — invoked per-encryption inside the headless client. Picks up
42
45
  // whichever EncryptorSource the consumer last passed in.
43
- encryptor: () => chunkPFXURMBZ_cjs.resolveEncryptor(encryptorSourceRef.current),
46
+ encryptor: () => chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSourceRef.current),
44
47
  ...opts.aclAddress ? { aclAddress: opts.aclAddress } : {}
45
48
  });
46
49
  }, [publicClient, walletClient, resolvedAddress, chainId, opts.aclAddress]);
@@ -63,7 +66,7 @@ function computeSingletonResolutionError(override, chainId) {
63
66
  clientLabel: "ConfidentialDisperseClient"
64
67
  });
65
68
  }
66
- const resolved = chunkPUPKNW3R_cjs.getFheDisperseSingletonAddress(chainId);
69
+ const resolved = chunk5576FRT3_cjs.getFheDisperseSingletonAddress(chainId);
67
70
  if (!resolved) {
68
71
  return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
69
72
  reason: "registry-not-deployed",
@@ -469,7 +472,7 @@ function useWithdrawTokenFee(options = {}) {
469
472
  });
470
473
  }
471
474
  const { token, to, amount, encryptor: encryptorSource, account } = args;
472
- const eager = encryptorSource ? chunkPFXURMBZ_cjs.resolveEncryptor(encryptorSource) : void 0;
475
+ const eager = encryptorSource ? chunkJZLGCTGK_cjs.resolveEncryptor(encryptorSource) : void 0;
473
476
  return client.withdrawTokenFee({
474
477
  token,
475
478
  to,
@@ -521,55 +524,71 @@ function useRevokeRole(options = {}) {
521
524
 
522
525
  Object.defineProperty(exports, "AlreadyRegisteredError", {
523
526
  enumerable: true,
524
- get: function () { return chunkPFXURMBZ_cjs.AlreadyRegisteredError; }
527
+ get: function () { return chunkJZLGCTGK_cjs.AlreadyRegisteredError; }
525
528
  });
526
529
  Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
527
530
  enumerable: true,
528
- get: function () { return chunkPFXURMBZ_cjs.DEFAULT_ADMIN_ROLE; }
531
+ get: function () { return chunkJZLGCTGK_cjs.DEFAULT_ADMIN_ROLE; }
529
532
  });
530
533
  Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
531
534
  enumerable: true,
532
- get: function () { return chunkPFXURMBZ_cjs.DisperseEncryptedReserveNotGrantedError; }
535
+ get: function () { return chunkJZLGCTGK_cjs.DisperseEncryptedReserveNotGrantedError; }
533
536
  });
534
537
  Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
535
538
  enumerable: true,
536
- get: function () { return chunkPFXURMBZ_cjs.DisperseSubwalletNotFoundError; }
539
+ get: function () { return chunkJZLGCTGK_cjs.DisperseSubwalletNotFoundError; }
537
540
  });
538
541
  Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
539
542
  enumerable: true,
540
- get: function () { return chunkPFXURMBZ_cjs.FEE_COLLECTOR_ROLE; }
543
+ get: function () { return chunkJZLGCTGK_cjs.FEE_COLLECTOR_ROLE; }
541
544
  });
542
545
  Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
543
546
  enumerable: true,
544
- get: function () { return chunkPFXURMBZ_cjs.FEE_MANAGER_ROLE; }
547
+ get: function () { return chunkJZLGCTGK_cjs.FEE_MANAGER_ROLE; }
545
548
  });
546
549
  Object.defineProperty(exports, "NotRegisteredError", {
547
550
  enumerable: true,
548
- get: function () { return chunkPFXURMBZ_cjs.NotRegisteredError; }
551
+ get: function () { return chunkJZLGCTGK_cjs.NotRegisteredError; }
549
552
  });
550
553
  Object.defineProperty(exports, "PAUSER_ROLE", {
551
554
  enumerable: true,
552
- get: function () { return chunkPFXURMBZ_cjs.PAUSER_ROLE; }
555
+ get: function () { return chunkJZLGCTGK_cjs.PAUSER_ROLE; }
556
+ });
557
+ Object.defineProperty(exports, "SingletonNotApprovedError", {
558
+ enumerable: true,
559
+ get: function () { return chunkJZLGCTGK_cjs.SingletonNotApprovedError; }
560
+ });
561
+ Object.defineProperty(exports, "SubwalletsNotApprovedError", {
562
+ enumerable: true,
563
+ get: function () { return chunkJZLGCTGK_cjs.SubwalletsNotApprovedError; }
553
564
  });
554
565
  Object.defineProperty(exports, "WITHDRAWER_ROLE", {
555
566
  enumerable: true,
556
- get: function () { return chunkPFXURMBZ_cjs.WITHDRAWER_ROLE; }
567
+ get: function () { return chunkJZLGCTGK_cjs.WITHDRAWER_ROLE; }
557
568
  });
558
569
  Object.defineProperty(exports, "computeSubtotals", {
559
570
  enumerable: true,
560
- get: function () { return chunkPFXURMBZ_cjs.computeSubtotals; }
571
+ get: function () { return chunkJZLGCTGK_cjs.computeSubtotals; }
561
572
  });
562
573
  Object.defineProperty(exports, "encryptUint64", {
563
574
  enumerable: true,
564
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64; }
575
+ get: function () { return chunkJZLGCTGK_cjs.encryptUint64; }
565
576
  });
566
577
  Object.defineProperty(exports, "encryptUint64Batch", {
567
578
  enumerable: true,
568
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64Batch; }
579
+ get: function () { return chunkJZLGCTGK_cjs.encryptUint64Batch; }
569
580
  });
570
581
  Object.defineProperty(exports, "resolveEncryptor", {
571
582
  enumerable: true,
572
- get: function () { return chunkPFXURMBZ_cjs.resolveEncryptor; }
583
+ get: function () { return chunkJZLGCTGK_cjs.resolveEncryptor; }
584
+ });
585
+ Object.defineProperty(exports, "useEnsureOperator", {
586
+ enumerable: true,
587
+ get: function () { return chunk7AFPOE7N_cjs.useEnsureOperator; }
588
+ });
589
+ Object.defineProperty(exports, "useIsOperator", {
590
+ enumerable: true,
591
+ get: function () { return chunk7AFPOE7N_cjs.useIsOperator; }
573
592
  });
574
593
  Object.defineProperty(exports, "AccessDeniedError", {
575
594
  enumerable: true,
@@ -79,4 +79,6 @@ export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, ty
79
79
  export { DisperseSubwalletNotFoundError, DisperseEncryptedReserveNotGrantedError, type BatchDiscloseHandlesArgs, type BatchLimits, type CalculateFeeArgs, type CalculatedFee, type DiscloseHandleArgs, type DisperseArgs, type DisperseMode, type DisperseResult, type EncryptedInput, type EncryptedInputs, type EncryptedViewResult, type FeeConfig, type GetEncryptedFeeReserveArgs, type PreflightDisperseArgs, type PreflightReport, type RecipientCheck, type RegisterResult, type SubwalletApprovalState, type UserFees, } from "../types.js";
80
80
  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";
81
81
  export { type PreflightResult } from "../../core/preflight.js";
82
- export { NotRegisteredError, AlreadyRegisteredError } from "../errors.js";
82
+ export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "../errors.js";
83
+ export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
84
+ export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
@@ -79,4 +79,6 @@ export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, ty
79
79
  export { DisperseSubwalletNotFoundError, DisperseEncryptedReserveNotGrantedError, type BatchDiscloseHandlesArgs, type BatchLimits, type CalculateFeeArgs, type CalculatedFee, type DiscloseHandleArgs, type DisperseArgs, type DisperseMode, type DisperseResult, type EncryptedInput, type EncryptedInputs, type EncryptedViewResult, type FeeConfig, type GetEncryptedFeeReserveArgs, type PreflightDisperseArgs, type PreflightReport, type RecipientCheck, type RegisterResult, type SubwalletApprovalState, type UserFees, } from "../types.js";
80
80
  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";
81
81
  export { type PreflightResult } from "../../core/preflight.js";
82
- export { NotRegisteredError, AlreadyRegisteredError } from "../errors.js";
82
+ export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "../errors.js";
83
+ export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
84
+ export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
@@ -1,16 +1,19 @@
1
- import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-2PWNH3UE.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-2PWNH3UE.js';
3
- import '../../chunk-6BMP4ICG.js';
1
+ import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-H5POPGOZ.js';
2
+ export { AlreadyRegisteredError, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, SingletonNotApprovedError, SubwalletsNotApprovedError, WITHDRAWER_ROLE, computeSubtotals, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-H5POPGOZ.js';
3
+ export { useEnsureOperator, useIsOperator } from '../../chunk-AXIPOR3C.js';
4
+ import '../../chunk-FT4LNBOS.js';
5
+ import '../../chunk-4TSDNZQ3.js';
4
6
  import '../../chunk-WMACINXO.js';
5
7
  import '../../chunk-ZWXJTBZO.js';
6
8
  import '../../chunk-7VELUOMI.js';
7
- import '../../chunk-SG65XWH7.js';
8
- import { getFheDisperseSingletonAddress } from '../../chunk-XGGTQQFH.js';
9
+ import '../../chunk-NWFMBLSQ.js';
10
+ import '../../chunk-4RAAATVY.js';
11
+ import { getFheDisperseSingletonAddress } from '../../chunk-DZHYSUGY.js';
9
12
  import '../../chunk-ZA673I3O.js';
10
- import '../../chunk-Q2GP5UDC.js';
11
13
  import '../../chunk-KWFFIJYX.js';
12
14
  import { MissingClientError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
13
15
  export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsSdkError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-QBJ7O2B4.js';
16
+ import '../../chunk-Q2GP5UDC.js';
14
17
  import { useQuery, useMutation } from '@tanstack/react-query';
15
18
  import { useRef, useMemo } from 'react';
16
19
  import { usePublicClient, useWalletClient } from 'wagmi';
@@ -1,21 +1,22 @@
1
1
  'use strict';
2
2
 
3
- var chunkV2PXZVBF_cjs = require('../../chunk-V2PXZVBF.cjs');
4
- require('../../chunk-C7BRZXJA.cjs');
5
- require('../../chunk-KLKI352M.cjs');
6
- require('../../chunk-PUPKNW3R.cjs');
3
+ var chunkFGEB7RMY_cjs = require('../../chunk-FGEB7RMY.cjs');
4
+ require('../../chunk-6PXXGACR.cjs');
5
+ require('../../chunk-UG5RKLU2.cjs');
6
+ require('../../chunk-MVDQMV25.cjs');
7
+ require('../../chunk-5576FRT3.cjs');
7
8
  require('../../chunk-JK4XMMKM.cjs');
8
- require('../../chunk-VJKZWYYJ.cjs');
9
9
  require('../../chunk-66IHPTOK.cjs');
10
10
  require('../../chunk-67OV5CX2.cjs');
11
+ require('../../chunk-VJKZWYYJ.cjs');
11
12
 
12
13
 
13
14
 
14
15
  Object.defineProperty(exports, "ConfidentialVestingFactoryAdvancedClient", {
15
16
  enumerable: true,
16
- get: function () { return chunkV2PXZVBF_cjs.ConfidentialVestingFactoryAdvancedClient; }
17
+ get: function () { return chunkFGEB7RMY_cjs.ConfidentialVestingFactoryAdvancedClient; }
17
18
  });
18
19
  Object.defineProperty(exports, "createConfidentialVestingFactoryAdvancedClient", {
19
20
  enumerable: true,
20
- get: function () { return chunkV2PXZVBF_cjs.createConfidentialVestingFactoryAdvancedClient; }
21
+ get: function () { return chunkFGEB7RMY_cjs.createConfidentialVestingFactoryAdvancedClient; }
21
22
  });
@@ -1,8 +1,9 @@
1
- export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-YQIBBEFJ.js';
2
- import '../../chunk-OXTLPTO3.js';
3
- import '../../chunk-SG65XWH7.js';
4
- import '../../chunk-XGGTQQFH.js';
1
+ export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-335Z2W67.js';
2
+ import '../../chunk-EAJ7SYHE.js';
3
+ import '../../chunk-NWFMBLSQ.js';
4
+ import '../../chunk-4RAAATVY.js';
5
+ import '../../chunk-DZHYSUGY.js';
5
6
  import '../../chunk-ZA673I3O.js';
6
- import '../../chunk-Q2GP5UDC.js';
7
7
  import '../../chunk-KWFFIJYX.js';
8
8
  import '../../chunk-QBJ7O2B4.js';
9
+ import '../../chunk-Q2GP5UDC.js';
@@ -1,19 +1,20 @@
1
1
  'use strict';
2
2
 
3
- var chunkW7IGCOVL_cjs = require('../../../chunk-W7IGCOVL.cjs');
4
- require('../../../chunk-5X5WL5CU.cjs');
3
+ var chunkJQYC66TO_cjs = require('../../../chunk-JQYC66TO.cjs');
4
+ require('../../../chunk-WJLECC22.cjs');
5
5
  require('../../../chunk-TEBM66WA.cjs');
6
- require('../../../chunk-2NCLOQ56.cjs');
6
+ require('../../../chunk-3QHNYEQD.cjs');
7
7
  require('../../../chunk-FAXIIH5R.cjs');
8
8
  require('../../../chunk-FWHYQZ5E.cjs');
9
- var chunkV2PXZVBF_cjs = require('../../../chunk-V2PXZVBF.cjs');
10
- require('../../../chunk-C7BRZXJA.cjs');
11
- require('../../../chunk-KLKI352M.cjs');
12
- var chunkPUPKNW3R_cjs = require('../../../chunk-PUPKNW3R.cjs');
9
+ var chunkFGEB7RMY_cjs = require('../../../chunk-FGEB7RMY.cjs');
10
+ require('../../../chunk-6PXXGACR.cjs');
11
+ require('../../../chunk-UG5RKLU2.cjs');
12
+ require('../../../chunk-MVDQMV25.cjs');
13
+ var chunk5576FRT3_cjs = require('../../../chunk-5576FRT3.cjs');
13
14
  require('../../../chunk-JK4XMMKM.cjs');
14
- require('../../../chunk-VJKZWYYJ.cjs');
15
15
  require('../../../chunk-66IHPTOK.cjs');
16
16
  require('../../../chunk-67OV5CX2.cjs');
17
+ require('../../../chunk-VJKZWYYJ.cjs');
17
18
  var react = require('react');
18
19
  var reactQuery = require('@tanstack/react-query');
19
20
  var wagmi = require('wagmi');
@@ -36,12 +37,12 @@ function usePredictManagerAddress(args = {}) {
36
37
  ...chainId !== void 0 ? { chainId } : {}
37
38
  });
38
39
  const resolvedChainId = chainId ?? resolvedPublicClient?.chain?.id;
39
- const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 : chunkPUPKNW3R_cjs.DEPLOYED_ADDRESSES.fheVesting?.confidentialVestingFactory?.[resolvedChainId] ?? void 0);
40
+ const resolvedAddress = address ?? (resolvedChainId === void 0 ? void 0 : chunk5576FRT3_cjs.DEPLOYED_ADDRESSES.fheVesting?.confidentialVestingFactory?.[resolvedChainId] ?? void 0);
40
41
  react.useRef(void 0);
41
42
  const client = react.useMemo(() => {
42
43
  if (!resolvedPublicClient) return void 0;
43
44
  if (!resolvedAddress) return void 0;
44
- return chunkV2PXZVBF_cjs.createConfidentialVestingFactoryAdvancedClient({
45
+ return chunkFGEB7RMY_cjs.createConfidentialVestingFactoryAdvancedClient({
45
46
  publicClient: resolvedPublicClient,
46
47
  ...walletClient ? { walletClient } : {},
47
48
  address: resolvedAddress,
@@ -49,7 +50,7 @@ function usePredictManagerAddress(args = {}) {
49
50
  });
50
51
  }, [resolvedPublicClient, walletClient, resolvedAddress, resolvedChainId]);
51
52
  return reactQuery.useQuery({
52
- queryKey: chunkW7IGCOVL_cjs.buildQueryKey(
53
+ queryKey: chunkJQYC66TO_cjs.buildQueryKey(
53
54
  "factory:predictManagerAddress",
54
55
  resolvedChainId,
55
56
  resolvedAddress,
@@ -1,17 +1,18 @@
1
- import { buildQueryKey } from '../../../chunk-NTZY6IB7.js';
2
- import '../../../chunk-IXLO7GO5.js';
1
+ import { buildQueryKey } from '../../../chunk-6NAVMWZQ.js';
2
+ import '../../../chunk-TWT3STIX.js';
3
3
  import '../../../chunk-WMACINXO.js';
4
- import '../../../chunk-AOP6HMPW.js';
4
+ import '../../../chunk-6GNR22OV.js';
5
5
  import '../../../chunk-ZWXJTBZO.js';
6
6
  import '../../../chunk-7VELUOMI.js';
7
- import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-YQIBBEFJ.js';
8
- import '../../../chunk-OXTLPTO3.js';
9
- import '../../../chunk-SG65XWH7.js';
10
- import { DEPLOYED_ADDRESSES } from '../../../chunk-XGGTQQFH.js';
7
+ import { createConfidentialVestingFactoryAdvancedClient } from '../../../chunk-335Z2W67.js';
8
+ import '../../../chunk-EAJ7SYHE.js';
9
+ import '../../../chunk-NWFMBLSQ.js';
10
+ import '../../../chunk-4RAAATVY.js';
11
+ import { DEPLOYED_ADDRESSES } from '../../../chunk-DZHYSUGY.js';
11
12
  import '../../../chunk-ZA673I3O.js';
12
- import '../../../chunk-Q2GP5UDC.js';
13
13
  import '../../../chunk-KWFFIJYX.js';
14
14
  import '../../../chunk-QBJ7O2B4.js';
15
+ import '../../../chunk-Q2GP5UDC.js';
15
16
  import { useRef, useMemo } from 'react';
16
17
  import { useQuery } from '@tanstack/react-query';
17
18
  import { usePublicClient, useWalletClient } from 'wagmi';
@@ -1,95 +1,96 @@
1
1
  'use strict';
2
2
 
3
- var chunk5X5WL5CU_cjs = require('../chunk-5X5WL5CU.cjs');
3
+ var chunkWJLECC22_cjs = require('../chunk-WJLECC22.cjs');
4
4
  require('../chunk-TEBM66WA.cjs');
5
- var chunk2NCLOQ56_cjs = require('../chunk-2NCLOQ56.cjs');
5
+ var chunk3QHNYEQD_cjs = require('../chunk-3QHNYEQD.cjs');
6
6
  require('../chunk-FAXIIH5R.cjs');
7
7
  var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
8
- var chunkC7BRZXJA_cjs = require('../chunk-C7BRZXJA.cjs');
9
- require('../chunk-KLKI352M.cjs');
10
- require('../chunk-PUPKNW3R.cjs');
8
+ var chunk6PXXGACR_cjs = require('../chunk-6PXXGACR.cjs');
9
+ require('../chunk-UG5RKLU2.cjs');
10
+ require('../chunk-MVDQMV25.cjs');
11
+ require('../chunk-5576FRT3.cjs');
11
12
  require('../chunk-JK4XMMKM.cjs');
12
- require('../chunk-VJKZWYYJ.cjs');
13
13
  require('../chunk-66IHPTOK.cjs');
14
14
  var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
15
+ require('../chunk-VJKZWYYJ.cjs');
15
16
 
16
17
 
17
18
 
18
19
  Object.defineProperty(exports, "ClaimLockedError", {
19
20
  enumerable: true,
20
- get: function () { return chunk5X5WL5CU_cjs.ClaimLockedError; }
21
+ get: function () { return chunkWJLECC22_cjs.ClaimLockedError; }
21
22
  });
22
23
  Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
23
24
  enumerable: true,
24
- get: function () { return chunk5X5WL5CU_cjs.ConfidentialVestingManagerClient; }
25
+ get: function () { return chunkWJLECC22_cjs.ConfidentialVestingManagerClient; }
25
26
  });
26
27
  Object.defineProperty(exports, "NoPendingTransferError", {
27
28
  enumerable: true,
28
- get: function () { return chunk5X5WL5CU_cjs.NoPendingTransferError; }
29
+ get: function () { return chunkWJLECC22_cjs.NoPendingTransferError; }
29
30
  });
30
31
  Object.defineProperty(exports, "NotPendingRecipientError", {
31
32
  enumerable: true,
32
- get: function () { return chunk5X5WL5CU_cjs.NotPendingRecipientError; }
33
+ get: function () { return chunkWJLECC22_cjs.NotPendingRecipientError; }
33
34
  });
34
35
  Object.defineProperty(exports, "NotVestingRecipientError", {
35
36
  enumerable: true,
36
- get: function () { return chunk5X5WL5CU_cjs.NotVestingRecipientError; }
37
+ get: function () { return chunkWJLECC22_cjs.NotVestingRecipientError; }
37
38
  });
38
39
  Object.defineProperty(exports, "TransferAlreadyPendingError", {
39
40
  enumerable: true,
40
- get: function () { return chunk5X5WL5CU_cjs.TransferAlreadyPendingError; }
41
+ get: function () { return chunkWJLECC22_cjs.TransferAlreadyPendingError; }
41
42
  });
42
43
  Object.defineProperty(exports, "TransferExpiredError", {
43
44
  enumerable: true,
44
- get: function () { return chunk5X5WL5CU_cjs.TransferExpiredError; }
45
+ get: function () { return chunkWJLECC22_cjs.TransferExpiredError; }
45
46
  });
46
47
  Object.defineProperty(exports, "VestingExpiredError", {
47
48
  enumerable: true,
48
- get: function () { return chunk5X5WL5CU_cjs.VestingExpiredError; }
49
+ get: function () { return chunkWJLECC22_cjs.VestingExpiredError; }
49
50
  });
50
51
  Object.defineProperty(exports, "VestingNotFoundError", {
51
52
  enumerable: true,
52
- get: function () { return chunk5X5WL5CU_cjs.VestingNotFoundError; }
53
+ get: function () { return chunkWJLECC22_cjs.VestingNotFoundError; }
53
54
  });
54
55
  Object.defineProperty(exports, "VestingNotRevocableError", {
55
56
  enumerable: true,
56
- get: function () { return chunk5X5WL5CU_cjs.VestingNotRevocableError; }
57
+ get: function () { return chunkWJLECC22_cjs.VestingNotRevocableError; }
57
58
  });
58
59
  Object.defineProperty(exports, "VestingRevokedError", {
59
60
  enumerable: true,
60
- get: function () { return chunk5X5WL5CU_cjs.VestingRevokedError; }
61
+ get: function () { return chunkWJLECC22_cjs.VestingRevokedError; }
61
62
  });
62
63
  Object.defineProperty(exports, "confidentialVestingManagerAbi", {
63
64
  enumerable: true,
64
- get: function () { return chunk5X5WL5CU_cjs.confidentialVestingManagerAbi; }
65
+ get: function () { return chunkWJLECC22_cjs.confidentialVestingManagerAbi; }
65
66
  });
66
67
  Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
67
68
  enumerable: true,
68
- get: function () { return chunk5X5WL5CU_cjs.createConfidentialVestingManagerClient; }
69
+ get: function () { return chunkWJLECC22_cjs.createConfidentialVestingManagerClient; }
70
+ });
71
+ Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
72
+ enumerable: true,
73
+ get: function () { return chunk3QHNYEQD_cjs.FHE_SPLIT_DENOMINATOR; }
69
74
  });
70
75
  Object.defineProperty(exports, "encryptUint64", {
71
76
  enumerable: true,
72
- get: function () { return chunk5X5WL5CU_cjs.encryptUint64; }
77
+ get: function () { return chunk3QHNYEQD_cjs.encryptUint64; }
73
78
  });
74
79
  Object.defineProperty(exports, "encryptUint64Batch", {
75
80
  enumerable: true,
76
- get: function () { return chunk5X5WL5CU_cjs.encryptUint64Batch; }
81
+ get: function () { return chunk3QHNYEQD_cjs.encryptUint64Batch; }
77
82
  });
78
83
  Object.defineProperty(exports, "resolveEncryptor", {
79
84
  enumerable: true,
80
- get: function () { return chunk5X5WL5CU_cjs.resolveEncryptor; }
81
- });
82
- Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
83
- enumerable: true,
84
- get: function () { return chunk2NCLOQ56_cjs.FHE_SPLIT_DENOMINATOR; }
85
+ get: function () { return chunk3QHNYEQD_cjs.resolveEncryptor; }
85
86
  });
86
87
  Object.defineProperty(exports, "scaleRatio", {
87
88
  enumerable: true,
88
- get: function () { return chunk2NCLOQ56_cjs.scaleRatio; }
89
+ get: function () { return chunk3QHNYEQD_cjs.scaleRatio; }
89
90
  });
90
91
  Object.defineProperty(exports, "share", {
91
92
  enumerable: true,
92
- get: function () { return chunk2NCLOQ56_cjs.share; }
93
+ get: function () { return chunk3QHNYEQD_cjs.share; }
93
94
  });
94
95
  Object.defineProperty(exports, "erc7984OperatorAbi", {
95
96
  enumerable: true,
@@ -97,27 +98,27 @@ Object.defineProperty(exports, "erc7984OperatorAbi", {
97
98
  });
98
99
  Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
99
100
  enumerable: true,
100
- get: function () { return chunkC7BRZXJA_cjs.ConfidentialVestingFactoryClient; }
101
+ get: function () { return chunk6PXXGACR_cjs.ConfidentialVestingFactoryClient; }
101
102
  });
102
103
  Object.defineProperty(exports, "DisclosureType", {
103
104
  enumerable: true,
104
- get: function () { return chunkC7BRZXJA_cjs.DisclosureType; }
105
+ get: function () { return chunk6PXXGACR_cjs.DisclosureType; }
105
106
  });
106
107
  Object.defineProperty(exports, "FeeType", {
107
108
  enumerable: true,
108
- get: function () { return chunkC7BRZXJA_cjs.FeeType; }
109
+ get: function () { return chunk6PXXGACR_cjs.FeeType; }
109
110
  });
110
111
  Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
111
112
  enumerable: true,
112
- get: function () { return chunkC7BRZXJA_cjs.confidentialVestingFactoryAbi; }
113
+ get: function () { return chunk6PXXGACR_cjs.confidentialVestingFactoryAbi; }
113
114
  });
114
115
  Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
115
116
  enumerable: true,
116
- get: function () { return chunkC7BRZXJA_cjs.createConfidentialVestingFactoryClient; }
117
+ get: function () { return chunk6PXXGACR_cjs.createConfidentialVestingFactoryClient; }
117
118
  });
118
119
  Object.defineProperty(exports, "feeTypeName", {
119
120
  enumerable: true,
120
- get: function () { return chunkC7BRZXJA_cjs.feeTypeName; }
121
+ get: function () { return chunk6PXXGACR_cjs.feeTypeName; }
121
122
  });
122
123
  Object.defineProperty(exports, "AccessDeniedError", {
123
124
  enumerable: true,
@@ -1,12 +1,13 @@
1
- export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-IXLO7GO5.js';
1
+ export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient } from '../chunk-TWT3STIX.js';
2
2
  import '../chunk-WMACINXO.js';
3
- export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-AOP6HMPW.js';
3
+ export { FHE_SPLIT_DENOMINATOR, encryptUint64, encryptUint64Batch, resolveEncryptor, scaleRatio, share } from '../chunk-6GNR22OV.js';
4
4
  import '../chunk-ZWXJTBZO.js';
5
5
  export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
6
- export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-OXTLPTO3.js';
7
- import '../chunk-SG65XWH7.js';
8
- import '../chunk-XGGTQQFH.js';
6
+ export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } from '../chunk-EAJ7SYHE.js';
7
+ import '../chunk-NWFMBLSQ.js';
8
+ import '../chunk-4RAAATVY.js';
9
+ import '../chunk-DZHYSUGY.js';
9
10
  import '../chunk-ZA673I3O.js';
10
- import '../chunk-Q2GP5UDC.js';
11
11
  import '../chunk-KWFFIJYX.js';
12
12
  export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-QBJ7O2B4.js';
13
+ import '../chunk-Q2GP5UDC.js';
@@ -443,6 +443,11 @@ export declare class ConfidentialVestingManagerClient {
443
443
  * - Operator: creator has approved this manager as an ERC-7984 operator on
444
444
  * the distribution token, required for the manager's
445
445
  * `confidentialTransferFrom` pull ({@link OperatorNotApprovedError} blocker).
446
+ * If the bound `token` does not implement the ERC-7984 `isOperator`
447
+ * view — a revert, or a zero-data response for an EOA / undeployed
448
+ * address — operator status is undetermined rather than the call
449
+ * throwing: `isOperatorSet` reports `false` and the read failure becomes
450
+ * an {@link InvalidArgumentError} blocker on `token` instead (TOK-436).
446
451
  *
447
452
  * **Not preflight-detectable — read before trusting `ready: true`:**
448
453
  * - The creator's confidential token balance is an encrypted `euint64` the
@@ -533,6 +538,13 @@ export declare class ConfidentialVestingManagerClient {
533
538
  * for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
534
539
  * transparent TTT test token uses 18 decimals.
535
540
  *
541
+ * Prerequisites: caller must have set this manager as an operator on the
542
+ * token: `token.setOperator(managerAddress, deadline)` — or use
543
+ * `ensureOperator()` from `@tokenops/sdk/fhe`. Skipping it fails with
544
+ * {@link OperatorNotApprovedError} (the SDK's mapping of the on-chain
545
+ * `ERC7984UnauthorizedSpender` revert, whose message is the canonical
546
+ * `OPERATOR_NOT_APPROVED_REMEDIATION` copy).
547
+ *
536
548
  * @returns Transaction hash. Parse the `VestingCreated` event to extract the `vestingId`.
537
549
  * @example
538
550
  * const hash = await manager.createVesting({
@@ -557,6 +569,13 @@ export declare class ConfidentialVestingManagerClient {
557
569
  * for the CTTT test token (6 decimals) `1_000_000n` = 1 CTTT, while the
558
570
  * transparent TTT test token uses 18 decimals.
559
571
  *
572
+ * Prerequisites: caller must have set this manager as an operator on the
573
+ * token: `token.setOperator(managerAddress, deadline)` — or use
574
+ * `ensureOperator()` from `@tokenops/sdk/fhe`. Skipping it fails with
575
+ * {@link OperatorNotApprovedError} (the SDK's mapping of the on-chain
576
+ * `ERC7984UnauthorizedSpender` revert, whose message is the canonical
577
+ * `OPERATOR_NOT_APPROVED_REMEDIATION` copy).
578
+ *
560
579
  * @returns Transaction hash.
561
580
  */
562
581
  batchCreateVesting(args: BatchCreateVestingArgs): Promise<Hex>;