@tokenops/sdk 1.5.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 (120) hide show
  1. package/CHANGELOG.md +158 -2
  2. package/SECURITY.md +7 -1
  3. package/dist/{chunk-67OV5CX2.cjs → chunk-2RNW4MIJ.cjs} +18 -0
  4. package/dist/{chunk-KLKI352M.cjs → chunk-43RFBQ73.cjs} +29 -29
  5. package/dist/{chunk-ZA673I3O.js → chunk-46T67CE2.js} +1 -1
  6. package/dist/{chunk-6BMP4ICG.js → chunk-4KJ66YRH.js} +61 -3
  7. package/dist/{chunk-JYOTGRSO.cjs → chunk-4ZCXK4VI.cjs} +68 -8
  8. package/dist/{chunk-SG65XWH7.js → chunk-6WSNS3UV.js} +1 -1
  9. package/dist/{chunk-V2PXZVBF.cjs → chunk-7G7UOQV4.cjs} +4 -4
  10. package/dist/{chunk-WENHUPZC.cjs → chunk-AYGRYDBX.cjs} +35 -36
  11. package/dist/{chunk-2NCLOQ56.cjs → chunk-BD4LZBVF.cjs} +85 -9
  12. package/dist/{chunk-5X5WL5CU.cjs → chunk-BK7YIVLK.cjs} +110 -149
  13. package/dist/{chunk-W7IGCOVL.cjs → chunk-CBRL2PJA.cjs} +12 -11
  14. package/dist/{chunk-ORFTDNFZ.js → chunk-CNP4L3GF.js} +4 -4
  15. package/dist/{chunk-QBJ7O2B4.js → chunk-DRSPMIZ7.js} +11 -1
  16. package/dist/{chunk-C7BRZXJA.cjs → chunk-EUKPOXWR.cjs} +15 -16
  17. package/dist/{chunk-YQIBBEFJ.js → chunk-HETNKZEE.js} +1 -1
  18. package/dist/{chunk-ODLTEGHB.js → chunk-KSDSXJ34.js} +1 -1
  19. package/dist/{chunk-TIUKIY5V.cjs → chunk-LBWRFZR3.cjs} +58 -40
  20. package/dist/{chunk-WMACINXO.js → chunk-NFW7AUEX.js} +1 -1
  21. package/dist/{chunk-4WPGQSNT.cjs → chunk-OL6SHN3D.cjs} +3 -3
  22. package/dist/{chunk-AOP6HMPW.js → chunk-PD7ME2BT.js} +75 -2
  23. package/dist/{chunk-2PWNH3UE.js → chunk-QET3Q4JP.js} +65 -9
  24. package/dist/{chunk-XGGTQQFH.js → chunk-QKKBBH7I.js} +2 -2
  25. package/dist/{chunk-6R4KNAPK.js → chunk-S2XD75JM.js} +10 -3
  26. package/dist/{chunk-MCRBVJGZ.cjs → chunk-SPGSO5SO.cjs} +29 -22
  27. package/dist/{chunk-FAXIIH5R.cjs → chunk-SYHNZSZZ.cjs} +3 -3
  28. package/dist/{chunk-IXLO7GO5.js → chunk-TN65XNTI.js} +47 -83
  29. package/dist/chunk-U57COLUE.js +56 -0
  30. package/dist/{chunk-DUZIIRPF.js → chunk-UE5XK2SY.js} +27 -9
  31. package/dist/{chunk-TEBM66WA.cjs → chunk-UJS4N2XM.cjs} +12 -12
  32. package/dist/{chunk-OXTLPTO3.js → chunk-V5D7BHW3.js} +4 -5
  33. package/dist/{chunk-NTZY6IB7.js → chunk-VHSNYUYV.js} +5 -4
  34. package/dist/{chunk-JK4XMMKM.cjs → chunk-VR3FREBX.cjs} +3 -3
  35. package/dist/{chunk-T46YXSBP.cjs → chunk-WO72UBQD.cjs} +11 -11
  36. package/dist/chunk-WOEETTH7.cjs +59 -0
  37. package/dist/{chunk-IJFQ5L4I.js → chunk-WTK6JDSI.js} +4 -5
  38. package/dist/{chunk-PUPKNW3R.cjs → chunk-WUXUWTFW.cjs} +3 -3
  39. package/dist/{chunk-PFXURMBZ.cjs → chunk-YFIWCYHC.cjs} +112 -54
  40. package/dist/{chunk-ZWXJTBZO.js → chunk-YPYCWLYP.js} +1 -1
  41. package/dist/core/addresses.d.ts +1 -1
  42. package/dist/core/errors.d.ts +1 -1
  43. package/dist/fhe/index.cjs +84 -64
  44. package/dist/fhe/index.d.cts +1 -0
  45. package/dist/fhe/index.d.ts +1 -0
  46. package/dist/fhe/index.js +21 -9
  47. package/dist/fhe/mock-erc7984.d.ts +4 -4
  48. package/dist/fhe/operators.d.ts +142 -2
  49. package/dist/fhe/react/index.cjs +21 -8
  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 +8 -3
  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-airdrop/advanced/index.cjs +8 -9
  57. package/dist/fhe-airdrop/advanced/index.js +6 -7
  58. package/dist/fhe-airdrop/advanced/react/index.cjs +13 -14
  59. package/dist/fhe-airdrop/advanced/react/index.js +9 -10
  60. package/dist/fhe-airdrop/airdrop.d.ts +7 -0
  61. package/dist/fhe-airdrop/index.cjs +66 -67
  62. package/dist/fhe-airdrop/index.js +7 -8
  63. package/dist/fhe-airdrop/react/index.cjs +148 -137
  64. package/dist/fhe-airdrop/react/index.d.cts +3 -1
  65. package/dist/fhe-airdrop/react/index.d.ts +3 -1
  66. package/dist/fhe-airdrop/react/index.js +16 -14
  67. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +17 -11
  68. package/dist/fhe-airdrop/react/useClaim.d.ts +8 -0
  69. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +1 -1
  70. package/dist/fhe-airdrop/types.d.ts +14 -3
  71. package/dist/fhe-disperse/errors.d.ts +55 -0
  72. package/dist/fhe-disperse/index.cjs +74 -67
  73. package/dist/fhe-disperse/index.d.cts +1 -1
  74. package/dist/fhe-disperse/index.d.ts +1 -1
  75. package/dist/fhe-disperse/index.js +8 -9
  76. package/dist/fhe-disperse/react/index.cjs +105 -88
  77. package/dist/fhe-disperse/react/index.d.cts +3 -1
  78. package/dist/fhe-disperse/react/index.d.ts +3 -1
  79. package/dist/fhe-disperse/react/index.js +12 -11
  80. package/dist/fhe-vesting/advanced/index.cjs +8 -9
  81. package/dist/fhe-vesting/advanced/index.js +6 -7
  82. package/dist/fhe-vesting/advanced/react/index.cjs +14 -15
  83. package/dist/fhe-vesting/advanced/react/index.js +11 -12
  84. package/dist/fhe-vesting/index.cjs +75 -76
  85. package/dist/fhe-vesting/index.js +9 -10
  86. package/dist/fhe-vesting/manager.d.ts +19 -0
  87. package/dist/fhe-vesting/react/index.cjs +245 -227
  88. package/dist/fhe-vesting/react/index.d.cts +6 -4
  89. package/dist/fhe-vesting/react/index.d.ts +6 -4
  90. package/dist/fhe-vesting/react/index.js +27 -21
  91. package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
  92. package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
  93. package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
  94. package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
  95. package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
  96. package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
  97. package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
  98. package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
  99. package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +8 -0
  100. package/dist/fhe-vesting/react/useClaim.d.ts +1 -1
  101. package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
  102. package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
  103. package/dist/fhe-vesting/react/usePartialClaim.d.ts +1 -1
  104. package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
  105. package/dist/fhe-vesting/types.d.ts +12 -1
  106. package/dist/index.cjs +87 -88
  107. package/dist/index.js +2 -3
  108. package/dist/testnet-faucet/index.cjs +55 -56
  109. package/dist/testnet-faucet/index.js +5 -6
  110. package/dist/testnet-faucet/react/index.cjs +53 -54
  111. package/dist/testnet-faucet/react/index.js +7 -8
  112. package/package.json +13 -8
  113. package/dist/chunk-66IHPTOK.cjs +0 -20
  114. package/dist/chunk-KWFFIJYX.js +0 -11
  115. package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -27
  116. package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
  117. package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
  118. package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
  119. package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
  120. package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
@@ -1,16 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var chunkPFXURMBZ_cjs = require('../../chunk-PFXURMBZ.cjs');
4
- require('../../chunk-JYOTGRSO.cjs');
5
- require('../../chunk-TEBM66WA.cjs');
6
- require('../../chunk-FAXIIH5R.cjs');
3
+ var chunkYFIWCYHC_cjs = require('../../chunk-YFIWCYHC.cjs');
4
+ var chunkWOEETTH7_cjs = require('../../chunk-WOEETTH7.cjs');
5
+ require('../../chunk-ZQUE2B3Q.cjs');
6
+ require('../../chunk-4ZCXK4VI.cjs');
7
+ require('../../chunk-UJS4N2XM.cjs');
8
+ require('../../chunk-SYHNZSZZ.cjs');
7
9
  require('../../chunk-FWHYQZ5E.cjs');
8
- require('../../chunk-KLKI352M.cjs');
9
- var chunkPUPKNW3R_cjs = require('../../chunk-PUPKNW3R.cjs');
10
- require('../../chunk-JK4XMMKM.cjs');
10
+ require('../../chunk-43RFBQ73.cjs');
11
+ var chunkWUXUWTFW_cjs = require('../../chunk-WUXUWTFW.cjs');
12
+ require('../../chunk-VR3FREBX.cjs');
13
+ var chunk2RNW4MIJ_cjs = require('../../chunk-2RNW4MIJ.cjs');
11
14
  require('../../chunk-VJKZWYYJ.cjs');
12
- require('../../chunk-66IHPTOK.cjs');
13
- var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
14
15
  var reactQuery = require('@tanstack/react-query');
15
16
  var react = require('react');
16
17
  var wagmi = require('wagmi');
@@ -20,7 +21,7 @@ var FHE_DISPERSE_NAMESPACE = "fhe-disperse";
20
21
  function tryResolveSingletonAddress(override, chainId) {
21
22
  if (override) return override;
22
23
  if (chainId === void 0) return void 0;
23
- return chunkPUPKNW3R_cjs.getFheDisperseSingletonAddress(chainId);
24
+ return chunkWUXUWTFW_cjs.getFheDisperseSingletonAddress(chainId);
24
25
  }
25
26
  function useMemoDisperseClient(opts = {}) {
26
27
  const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
@@ -33,14 +34,14 @@ function useMemoDisperseClient(opts = {}) {
33
34
  const client = react.useMemo(() => {
34
35
  if (!publicClient) return void 0;
35
36
  if (!resolvedAddress) return void 0;
36
- return chunkPFXURMBZ_cjs.createConfidentialDisperseClient({
37
+ return chunkYFIWCYHC_cjs.createConfidentialDisperseClient({
37
38
  publicClient,
38
39
  ...walletClient ? { walletClient } : {},
39
40
  address: resolvedAddress,
40
41
  ...chainId !== void 0 ? { chainId } : {},
41
42
  // Lazy — invoked per-encryption inside the headless client. Picks up
42
43
  // whichever EncryptorSource the consumer last passed in.
43
- encryptor: () => chunkPFXURMBZ_cjs.resolveEncryptor(encryptorSourceRef.current),
44
+ encryptor: () => chunkYFIWCYHC_cjs.resolveEncryptor(encryptorSourceRef.current),
44
45
  ...opts.aclAddress ? { aclAddress: opts.aclAddress } : {}
45
46
  });
46
47
  }, [publicClient, walletClient, resolvedAddress, chainId, opts.aclAddress]);
@@ -56,16 +57,16 @@ function useMemoDisperseClient(opts = {}) {
56
57
  function computeSingletonResolutionError(override, chainId) {
57
58
  if (override) return void 0;
58
59
  if (chainId === void 0) {
59
- return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
60
+ return new chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError({
60
61
  reason: "chain-id-missing",
61
62
  product: "fheDisperse",
62
63
  contract: "disperseConfidentialSingleton",
63
64
  clientLabel: "ConfidentialDisperseClient"
64
65
  });
65
66
  }
66
- const resolved = chunkPUPKNW3R_cjs.getFheDisperseSingletonAddress(chainId);
67
+ const resolved = chunkWUXUWTFW_cjs.getFheDisperseSingletonAddress(chainId);
67
68
  if (!resolved) {
68
- return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
69
+ return new chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError({
69
70
  reason: "registry-not-deployed",
70
71
  product: "fheDisperse",
71
72
  contract: "disperseConfidentialSingleton",
@@ -268,7 +269,7 @@ function useRegister(options = {}) {
268
269
  return reactQuery.useMutation({
269
270
  mutationFn: async (args) => {
270
271
  if (!client) {
271
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRegister", "disperse");
272
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRegister", "disperse");
272
273
  }
273
274
  return client.register(args);
274
275
  }
@@ -279,7 +280,7 @@ function useApproveTokenOnWallets(options = {}) {
279
280
  return reactQuery.useMutation({
280
281
  mutationFn: async (args) => {
281
282
  if (!client) {
282
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useApproveTokenOnWallets", "disperse");
283
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useApproveTokenOnWallets", "disperse");
283
284
  }
284
285
  return client.approveTokenOnWallets(args);
285
286
  }
@@ -290,7 +291,7 @@ function useRevokeTokenOnWallets(options = {}) {
290
291
  return reactQuery.useMutation({
291
292
  mutationFn: async (args) => {
292
293
  if (!client) {
293
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRevokeTokenOnWallets", "disperse");
294
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRevokeTokenOnWallets", "disperse");
294
295
  }
295
296
  return client.revokeTokenOnWallets(args);
296
297
  }
@@ -301,7 +302,7 @@ function useRecoverFromWallets(options = {}) {
301
302
  return reactQuery.useMutation({
302
303
  mutationFn: async (args) => {
303
304
  if (!client) {
304
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRecoverFromWallets", "disperse");
305
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRecoverFromWallets", "disperse");
305
306
  }
306
307
  return client.recoverFromWallets(args);
307
308
  }
@@ -312,7 +313,7 @@ function useRecoverERC20FromWallets(options = {}) {
312
313
  return reactQuery.useMutation({
313
314
  mutationFn: async (args) => {
314
315
  if (!client) {
315
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRecoverERC20FromWallets", "disperse");
316
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRecoverERC20FromWallets", "disperse");
316
317
  }
317
318
  return client.recoverERC20FromWallets(args);
318
319
  }
@@ -323,7 +324,7 @@ function useDisperse(options = {}) {
323
324
  return reactQuery.useMutation({
324
325
  mutationFn: async (args) => {
325
326
  if (!client) {
326
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDisperse", "disperse");
327
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDisperse", "disperse");
327
328
  }
328
329
  return client.disperse(args);
329
330
  }
@@ -334,7 +335,7 @@ function useAccessEncryptedFeeReserve(options = {}) {
334
335
  return reactQuery.useMutation({
335
336
  mutationFn: async (args) => {
336
337
  if (!client) {
337
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useAccessEncryptedFeeReserve", "disperse");
338
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useAccessEncryptedFeeReserve", "disperse");
338
339
  }
339
340
  return client.getEncryptedFeeReserve(args);
340
341
  }
@@ -346,7 +347,7 @@ function useDiscloseHandleToParty(options = {}) {
346
347
  return reactQuery.useMutation({
347
348
  mutationFn: async (args) => {
348
349
  if (!client) {
349
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "disperse");
350
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDiscloseHandleToParty", "disperse");
350
351
  }
351
352
  return client.discloseHandleToParty(args);
352
353
  }
@@ -357,7 +358,7 @@ function useBatchDiscloseHandlesToParty(options = {}) {
357
358
  return reactQuery.useMutation({
358
359
  mutationFn: async (args) => {
359
360
  if (!client) {
360
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "disperse");
361
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "disperse");
361
362
  }
362
363
  return client.batchDiscloseHandlesToParty(args);
363
364
  }
@@ -367,7 +368,7 @@ function usePause(options = {}) {
367
368
  const { client, resolutionError } = useMemoDisperseClient(options);
368
369
  return reactQuery.useMutation({
369
370
  mutationFn: async ({ account }) => {
370
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePause", "disperse");
371
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("usePause", "disperse");
371
372
  return client.pause(account);
372
373
  }
373
374
  });
@@ -376,7 +377,7 @@ function useUnpause(options = {}) {
376
377
  const { client, resolutionError } = useMemoDisperseClient(options);
377
378
  return reactQuery.useMutation({
378
379
  mutationFn: async ({ account }) => {
379
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useUnpause", "disperse");
380
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useUnpause", "disperse");
380
381
  return client.unpause(account);
381
382
  }
382
383
  });
@@ -385,7 +386,7 @@ function useSetFeeConfig(options = {}) {
385
386
  const { client, resolutionError } = useMemoDisperseClient(options);
386
387
  return reactQuery.useMutation({
387
388
  mutationFn: async ({ config, account }) => {
388
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetFeeConfig", "disperse");
389
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetFeeConfig", "disperse");
389
390
  return client.setFeeConfig(config, account);
390
391
  }
391
392
  });
@@ -394,7 +395,7 @@ function useSetCustomFee(options = {}) {
394
395
  const { client, resolutionError } = useMemoDisperseClient(options);
395
396
  return reactQuery.useMutation({
396
397
  mutationFn: async ({ user, gasFee, tokenFee, account }) => {
397
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetCustomFee", "disperse");
398
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetCustomFee", "disperse");
398
399
  return client.setCustomFee(user, gasFee, tokenFee, account);
399
400
  }
400
401
  });
@@ -404,7 +405,7 @@ function useDisableCustomFee(options = {}) {
404
405
  return reactQuery.useMutation({
405
406
  mutationFn: async ({ user, account }) => {
406
407
  if (!client) {
407
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useDisableCustomFee", "disperse");
408
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDisableCustomFee", "disperse");
408
409
  }
409
410
  return client.disableCustomFee(user, account);
410
411
  }
@@ -415,7 +416,7 @@ function useSetMaxBatchSizeHolding(options = {}) {
415
416
  return reactQuery.useMutation({
416
417
  mutationFn: async ({ size, account }) => {
417
418
  if (!client) {
418
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeHolding", "disperse");
419
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetMaxBatchSizeHolding", "disperse");
419
420
  }
420
421
  return client.setMaxBatchSizeHolding(size, account);
421
422
  }
@@ -426,7 +427,7 @@ function useSetMaxBatchSizeDirect(options = {}) {
426
427
  return reactQuery.useMutation({
427
428
  mutationFn: async ({ size, account }) => {
428
429
  if (!client) {
429
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeDirect", "disperse");
430
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetMaxBatchSizeDirect", "disperse");
430
431
  }
431
432
  return client.setMaxBatchSizeDirect(size, account);
432
433
  }
@@ -437,7 +438,7 @@ function useSetMaxBatchSizeTokenFee(options = {}) {
437
438
  return reactQuery.useMutation({
438
439
  mutationFn: async ({ size, account }) => {
439
440
  if (!client) {
440
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useSetMaxBatchSizeTokenFee", "disperse");
441
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetMaxBatchSizeTokenFee", "disperse");
441
442
  }
442
443
  return client.setMaxBatchSizeTokenFee(size, account);
443
444
  }
@@ -447,7 +448,7 @@ function useWithdrawGasFee(options = {}) {
447
448
  const { client, resolutionError } = useMemoDisperseClient(options);
448
449
  return reactQuery.useMutation({
449
450
  mutationFn: async ({ to, amount, account }) => {
450
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "disperse");
451
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawGasFee", "disperse");
451
452
  return client.withdrawGasFee(to, amount, account);
452
453
  }
453
454
  });
@@ -457,7 +458,7 @@ function useWithdrawTokenFee(options = {}) {
457
458
  return reactQuery.useMutation({
458
459
  mutationFn: async (args) => {
459
460
  if (!client) {
460
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useWithdrawTokenFee", "disperse");
461
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawTokenFee", "disperse");
461
462
  }
462
463
  if (args.encryptedInput !== void 0) {
463
464
  const { token: token2, to: to2, encryptedInput, account: account2 } = args;
@@ -469,7 +470,7 @@ function useWithdrawTokenFee(options = {}) {
469
470
  });
470
471
  }
471
472
  const { token, to, amount, encryptor: encryptorSource, account } = args;
472
- const eager = encryptorSource ? chunkPFXURMBZ_cjs.resolveEncryptor(encryptorSource) : void 0;
473
+ const eager = encryptorSource ? chunkYFIWCYHC_cjs.resolveEncryptor(encryptorSource) : void 0;
473
474
  return client.withdrawTokenFee({
474
475
  token,
475
476
  to,
@@ -485,7 +486,7 @@ function useRescueConfidentialTokens(options = {}) {
485
486
  return reactQuery.useMutation({
486
487
  mutationFn: async ({ token, to, account }) => {
487
488
  if (!client) {
488
- throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRescueConfidentialTokens", "disperse");
489
+ throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRescueConfidentialTokens", "disperse");
489
490
  }
490
491
  return client.rescueConfidentialTokens(token, to, account);
491
492
  }
@@ -495,7 +496,7 @@ function useRescueERC20(options = {}) {
495
496
  const { client, resolutionError } = useMemoDisperseClient(options);
496
497
  return reactQuery.useMutation({
497
498
  mutationFn: async ({ token, to, account }) => {
498
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "disperse");
499
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRescueERC20", "disperse");
499
500
  return client.rescueERC20(token, to, account);
500
501
  }
501
502
  });
@@ -504,7 +505,7 @@ function useGrantRole(options = {}) {
504
505
  const { client, resolutionError } = useMemoDisperseClient(options);
505
506
  return reactQuery.useMutation({
506
507
  mutationFn: async ({ role, accountTarget, account }) => {
507
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useGrantRole", "disperse");
508
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useGrantRole", "disperse");
508
509
  return client.grantRole(role, accountTarget, account);
509
510
  }
510
511
  });
@@ -513,7 +514,7 @@ function useRevokeRole(options = {}) {
513
514
  const { client, resolutionError } = useMemoDisperseClient(options);
514
515
  return reactQuery.useMutation({
515
516
  mutationFn: async ({ role, accountTarget, account }) => {
516
- if (!client) throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useRevokeRole", "disperse");
517
+ if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useRevokeRole", "disperse");
517
518
  return client.revokeRole(role, accountTarget, account);
518
519
  }
519
520
  });
@@ -521,199 +522,215 @@ function useRevokeRole(options = {}) {
521
522
 
522
523
  Object.defineProperty(exports, "AlreadyRegisteredError", {
523
524
  enumerable: true,
524
- get: function () { return chunkPFXURMBZ_cjs.AlreadyRegisteredError; }
525
+ get: function () { return chunkYFIWCYHC_cjs.AlreadyRegisteredError; }
525
526
  });
526
527
  Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
527
528
  enumerable: true,
528
- get: function () { return chunkPFXURMBZ_cjs.DEFAULT_ADMIN_ROLE; }
529
+ get: function () { return chunkYFIWCYHC_cjs.DEFAULT_ADMIN_ROLE; }
529
530
  });
530
531
  Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
531
532
  enumerable: true,
532
- get: function () { return chunkPFXURMBZ_cjs.DisperseEncryptedReserveNotGrantedError; }
533
+ get: function () { return chunkYFIWCYHC_cjs.DisperseEncryptedReserveNotGrantedError; }
533
534
  });
534
535
  Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
535
536
  enumerable: true,
536
- get: function () { return chunkPFXURMBZ_cjs.DisperseSubwalletNotFoundError; }
537
+ get: function () { return chunkYFIWCYHC_cjs.DisperseSubwalletNotFoundError; }
537
538
  });
538
539
  Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
539
540
  enumerable: true,
540
- get: function () { return chunkPFXURMBZ_cjs.FEE_COLLECTOR_ROLE; }
541
+ get: function () { return chunkYFIWCYHC_cjs.FEE_COLLECTOR_ROLE; }
541
542
  });
542
543
  Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
543
544
  enumerable: true,
544
- get: function () { return chunkPFXURMBZ_cjs.FEE_MANAGER_ROLE; }
545
+ get: function () { return chunkYFIWCYHC_cjs.FEE_MANAGER_ROLE; }
545
546
  });
546
547
  Object.defineProperty(exports, "NotRegisteredError", {
547
548
  enumerable: true,
548
- get: function () { return chunkPFXURMBZ_cjs.NotRegisteredError; }
549
+ get: function () { return chunkYFIWCYHC_cjs.NotRegisteredError; }
549
550
  });
550
551
  Object.defineProperty(exports, "PAUSER_ROLE", {
551
552
  enumerable: true,
552
- get: function () { return chunkPFXURMBZ_cjs.PAUSER_ROLE; }
553
+ get: function () { return chunkYFIWCYHC_cjs.PAUSER_ROLE; }
554
+ });
555
+ Object.defineProperty(exports, "SingletonNotApprovedError", {
556
+ enumerable: true,
557
+ get: function () { return chunkYFIWCYHC_cjs.SingletonNotApprovedError; }
558
+ });
559
+ Object.defineProperty(exports, "SubwalletsNotApprovedError", {
560
+ enumerable: true,
561
+ get: function () { return chunkYFIWCYHC_cjs.SubwalletsNotApprovedError; }
553
562
  });
554
563
  Object.defineProperty(exports, "WITHDRAWER_ROLE", {
555
564
  enumerable: true,
556
- get: function () { return chunkPFXURMBZ_cjs.WITHDRAWER_ROLE; }
565
+ get: function () { return chunkYFIWCYHC_cjs.WITHDRAWER_ROLE; }
557
566
  });
558
567
  Object.defineProperty(exports, "computeSubtotals", {
559
568
  enumerable: true,
560
- get: function () { return chunkPFXURMBZ_cjs.computeSubtotals; }
569
+ get: function () { return chunkYFIWCYHC_cjs.computeSubtotals; }
561
570
  });
562
571
  Object.defineProperty(exports, "encryptUint64", {
563
572
  enumerable: true,
564
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64; }
573
+ get: function () { return chunkYFIWCYHC_cjs.encryptUint64; }
565
574
  });
566
575
  Object.defineProperty(exports, "encryptUint64Batch", {
567
576
  enumerable: true,
568
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64Batch; }
577
+ get: function () { return chunkYFIWCYHC_cjs.encryptUint64Batch; }
569
578
  });
570
579
  Object.defineProperty(exports, "resolveEncryptor", {
571
580
  enumerable: true,
572
- get: function () { return chunkPFXURMBZ_cjs.resolveEncryptor; }
581
+ get: function () { return chunkYFIWCYHC_cjs.resolveEncryptor; }
582
+ });
583
+ Object.defineProperty(exports, "useEnsureOperator", {
584
+ enumerable: true,
585
+ get: function () { return chunkWOEETTH7_cjs.useEnsureOperator; }
586
+ });
587
+ Object.defineProperty(exports, "useIsOperator", {
588
+ enumerable: true,
589
+ get: function () { return chunkWOEETTH7_cjs.useIsOperator; }
573
590
  });
574
591
  Object.defineProperty(exports, "AccessDeniedError", {
575
592
  enumerable: true,
576
- get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
593
+ get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
577
594
  });
578
595
  Object.defineProperty(exports, "AlreadyInitializedError", {
579
596
  enumerable: true,
580
- get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
597
+ get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
581
598
  });
582
599
  Object.defineProperty(exports, "BatchTooLargeError", {
583
600
  enumerable: true,
584
- get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
601
+ get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
585
602
  });
586
603
  Object.defineProperty(exports, "ContractRevertError", {
587
604
  enumerable: true,
588
- get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
605
+ get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
589
606
  });
590
607
  Object.defineProperty(exports, "DecryptionFailedError", {
591
608
  enumerable: true,
592
- get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
609
+ get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
593
610
  });
594
611
  Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
595
612
  enumerable: true,
596
- get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
613
+ get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
597
614
  });
598
615
  Object.defineProperty(exports, "EncryptionFailedError", {
599
616
  enumerable: true,
600
- get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
617
+ get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
601
618
  });
602
619
  Object.defineProperty(exports, "FeatureDisabledError", {
603
620
  enumerable: true,
604
- get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
621
+ get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
605
622
  });
606
623
  Object.defineProperty(exports, "FheHandleNotAllowedError", {
607
624
  enumerable: true,
608
- get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
625
+ get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
609
626
  });
610
627
  Object.defineProperty(exports, "InsufficientBalanceError", {
611
628
  enumerable: true,
612
- get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
629
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
613
630
  });
614
631
  Object.defineProperty(exports, "InsufficientFeeError", {
615
632
  enumerable: true,
616
- get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
633
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
617
634
  });
618
635
  Object.defineProperty(exports, "InsufficientGasFundsError", {
619
636
  enumerable: true,
620
- get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
637
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
621
638
  });
622
639
  Object.defineProperty(exports, "InvalidArgumentError", {
623
640
  enumerable: true,
624
- get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
641
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
625
642
  });
626
643
  Object.defineProperty(exports, "InvalidSignatureError", {
627
644
  enumerable: true,
628
- get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
645
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
629
646
  });
630
647
  Object.defineProperty(exports, "MissingAccountError", {
631
648
  enumerable: true,
632
- get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
649
+ get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
633
650
  });
634
651
  Object.defineProperty(exports, "MissingClientError", {
635
652
  enumerable: true,
636
- get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
653
+ get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
637
654
  });
638
655
  Object.defineProperty(exports, "MissingEncryptorError", {
639
656
  enumerable: true,
640
- get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
657
+ get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
641
658
  });
642
659
  Object.defineProperty(exports, "MissingPublicClientError", {
643
660
  enumerable: true,
644
- get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
661
+ get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
645
662
  });
646
663
  Object.defineProperty(exports, "MissingWalletClientError", {
647
664
  enumerable: true,
648
- get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
665
+ get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
649
666
  });
650
667
  Object.defineProperty(exports, "NetworkError", {
651
668
  enumerable: true,
652
- get: function () { return chunk67OV5CX2_cjs.NetworkError; }
669
+ get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
653
670
  });
654
671
  Object.defineProperty(exports, "OperatorNotApprovedError", {
655
672
  enumerable: true,
656
- get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
673
+ get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
657
674
  });
658
675
  Object.defineProperty(exports, "PausedError", {
659
676
  enumerable: true,
660
- get: function () { return chunk67OV5CX2_cjs.PausedError; }
677
+ get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
661
678
  });
662
679
  Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
663
680
  enumerable: true,
664
- get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
681
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
665
682
  });
666
683
  Object.defineProperty(exports, "ReceiptEventNotFoundError", {
667
684
  enumerable: true,
668
- get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
685
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
669
686
  });
670
687
  Object.defineProperty(exports, "ReentrancyError", {
671
688
  enumerable: true,
672
- get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
689
+ get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
673
690
  });
674
691
  Object.defineProperty(exports, "RelayerUnreachableError", {
675
692
  enumerable: true,
676
- get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
693
+ get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
677
694
  });
678
695
  Object.defineProperty(exports, "SigningFailedError", {
679
696
  enumerable: true,
680
- get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
697
+ get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
681
698
  });
682
699
  Object.defineProperty(exports, "TokenOpsSdkError", {
683
700
  enumerable: true,
684
- get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
701
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
685
702
  });
686
703
  Object.defineProperty(exports, "TransferFailedError", {
687
704
  enumerable: true,
688
- get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
705
+ get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
689
706
  });
690
707
  Object.defineProperty(exports, "UnknownWriteFailureError", {
691
708
  enumerable: true,
692
- get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
709
+ get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
693
710
  });
694
711
  Object.defineProperty(exports, "UnsupportedChainError", {
695
712
  enumerable: true,
696
- get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
713
+ get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
697
714
  });
698
715
  Object.defineProperty(exports, "UserDecryptNotAllowedError", {
699
716
  enumerable: true,
700
- get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
717
+ get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
701
718
  });
702
719
  Object.defineProperty(exports, "UserRejectedSignatureError", {
703
720
  enumerable: true,
704
- get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
721
+ get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
705
722
  });
706
723
  Object.defineProperty(exports, "WalletChainMismatchError", {
707
724
  enumerable: true,
708
- get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
725
+ get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
709
726
  });
710
727
  Object.defineProperty(exports, "WalletRejectedError", {
711
728
  enumerable: true,
712
- get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
729
+ get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
713
730
  });
714
731
  Object.defineProperty(exports, "isTokenOpsSdkError", {
715
732
  enumerable: true,
716
- get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
733
+ get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
717
734
  });
718
735
  exports.FHE_DISPERSE_KEY = FHE_DISPERSE_KEY;
719
736
  exports.FHE_DISPERSE_NAMESPACE = FHE_DISPERSE_NAMESPACE;
@@ -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,17 @@
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';
4
- import '../../chunk-WMACINXO.js';
5
- import '../../chunk-ZWXJTBZO.js';
1
+ import { resolveEncryptor, createConfidentialDisperseClient } from '../../chunk-QET3Q4JP.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-QET3Q4JP.js';
3
+ export { useEnsureOperator, useIsOperator } from '../../chunk-U57COLUE.js';
4
+ import '../../chunk-FT4LNBOS.js';
5
+ import '../../chunk-4KJ66YRH.js';
6
+ import '../../chunk-NFW7AUEX.js';
7
+ import '../../chunk-YPYCWLYP.js';
6
8
  import '../../chunk-7VELUOMI.js';
7
- import '../../chunk-SG65XWH7.js';
8
- import { getFheDisperseSingletonAddress } from '../../chunk-XGGTQQFH.js';
9
- import '../../chunk-ZA673I3O.js';
9
+ import '../../chunk-6WSNS3UV.js';
10
+ import { getFheDisperseSingletonAddress } from '../../chunk-QKKBBH7I.js';
11
+ import '../../chunk-46T67CE2.js';
12
+ import { MissingClientError, DeploymentAddressUnavailableError } from '../../chunk-DRSPMIZ7.js';
13
+ 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-DRSPMIZ7.js';
10
14
  import '../../chunk-Q2GP5UDC.js';
11
- import '../../chunk-KWFFIJYX.js';
12
- import { MissingClientError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
13
- 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';
14
15
  import { useQuery, useMutation } from '@tanstack/react-query';
15
16
  import { useRef, useMemo } from 'react';
16
17
  import { usePublicClient, useWalletClient } from 'wagmi';
@@ -1,21 +1,20 @@
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');
7
- require('../../chunk-JK4XMMKM.cjs');
3
+ var chunk7G7UOQV4_cjs = require('../../chunk-7G7UOQV4.cjs');
4
+ require('../../chunk-EUKPOXWR.cjs');
5
+ require('../../chunk-43RFBQ73.cjs');
6
+ require('../../chunk-WUXUWTFW.cjs');
7
+ require('../../chunk-VR3FREBX.cjs');
8
+ require('../../chunk-2RNW4MIJ.cjs');
8
9
  require('../../chunk-VJKZWYYJ.cjs');
9
- require('../../chunk-66IHPTOK.cjs');
10
- require('../../chunk-67OV5CX2.cjs');
11
10
 
12
11
 
13
12
 
14
13
  Object.defineProperty(exports, "ConfidentialVestingFactoryAdvancedClient", {
15
14
  enumerable: true,
16
- get: function () { return chunkV2PXZVBF_cjs.ConfidentialVestingFactoryAdvancedClient; }
15
+ get: function () { return chunk7G7UOQV4_cjs.ConfidentialVestingFactoryAdvancedClient; }
17
16
  });
18
17
  Object.defineProperty(exports, "createConfidentialVestingFactoryAdvancedClient", {
19
18
  enumerable: true,
20
- get: function () { return chunkV2PXZVBF_cjs.createConfidentialVestingFactoryAdvancedClient; }
19
+ get: function () { return chunk7G7UOQV4_cjs.createConfidentialVestingFactoryAdvancedClient; }
21
20
  });
@@ -1,8 +1,7 @@
1
- export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-YQIBBEFJ.js';
2
- import '../../chunk-OXTLPTO3.js';
3
- import '../../chunk-SG65XWH7.js';
4
- import '../../chunk-XGGTQQFH.js';
5
- import '../../chunk-ZA673I3O.js';
1
+ export { ConfidentialVestingFactoryAdvancedClient, createConfidentialVestingFactoryAdvancedClient } from '../../chunk-HETNKZEE.js';
2
+ import '../../chunk-V5D7BHW3.js';
3
+ import '../../chunk-6WSNS3UV.js';
4
+ import '../../chunk-QKKBBH7I.js';
5
+ import '../../chunk-46T67CE2.js';
6
+ import '../../chunk-DRSPMIZ7.js';
6
7
  import '../../chunk-Q2GP5UDC.js';
7
- import '../../chunk-KWFFIJYX.js';
8
- import '../../chunk-QBJ7O2B4.js';