@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
@@ -71,7 +71,7 @@ export { useAirdropIsSignatureClaimed, type UseAirdropIsSignatureClaimedArgs, }
71
71
  export { useAirdropIsSignatureValid, type UseAirdropIsSignatureValidArgs, } from "./useAirdropIsSignatureValid.js";
72
72
  export { useAirdropHasRole, type UseAirdropHasRoleArgs } from "./useAirdropHasRole.js";
73
73
  export { useClaim } from "./useClaim.js";
74
- export { useGetClaimAmount } from "./useGetClaimAmount.js";
74
+ export { useAccessClaimAmount, useGetClaimAmount } from "./useAccessClaimAmount.js";
75
75
  export { useWithdraw, type UseWithdrawArgs } from "./useWithdraw.js";
76
76
  export { useSetPaused, type UseSetPausedArgs } from "./useSetPaused.js";
77
77
  export { useExtendClaimWindow, type UseExtendClaimWindowArgs } from "./useExtendClaimWindow.js";
@@ -89,3 +89,5 @@ export type { CreateAirdropResult, CreateAirdropArgs, CreateAndFundAirdropArgs,
89
89
  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";
90
90
  export { type PreflightResult } from "../../core/preflight.js";
91
91
  export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from "../errors.js";
92
+ export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
93
+ export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
@@ -71,7 +71,7 @@ export { useAirdropIsSignatureClaimed, type UseAirdropIsSignatureClaimedArgs, }
71
71
  export { useAirdropIsSignatureValid, type UseAirdropIsSignatureValidArgs, } from "./useAirdropIsSignatureValid.js";
72
72
  export { useAirdropHasRole, type UseAirdropHasRoleArgs } from "./useAirdropHasRole.js";
73
73
  export { useClaim } from "./useClaim.js";
74
- export { useGetClaimAmount } from "./useGetClaimAmount.js";
74
+ export { useAccessClaimAmount, useGetClaimAmount } from "./useAccessClaimAmount.js";
75
75
  export { useWithdraw, type UseWithdrawArgs } from "./useWithdraw.js";
76
76
  export { useSetPaused, type UseSetPausedArgs } from "./useSetPaused.js";
77
77
  export { useExtendClaimWindow, type UseExtendClaimWindowArgs } from "./useExtendClaimWindow.js";
@@ -89,3 +89,5 @@ export type { CreateAirdropResult, CreateAirdropArgs, CreateAndFundAirdropArgs,
89
89
  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";
90
90
  export { type PreflightResult } from "../../core/preflight.js";
91
91
  export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from "../errors.js";
92
+ export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
93
+ export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
@@ -1,17 +1,18 @@
1
- import { useMemoFactoryClient, buildQueryKey, useMemoAirdropClient } from '../../chunk-ORFTDNFZ.js';
2
- export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from '../../chunk-6R4KNAPK.js';
3
- import { signClaimAuthorization } from '../../chunk-DUZIIRPF.js';
4
- export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization } from '../../chunk-DUZIIRPF.js';
1
+ import { useMemoFactoryClient, buildQueryKey, useMemoAirdropClient } from '../../chunk-CNP4L3GF.js';
2
+ export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from '../../chunk-S2XD75JM.js';
3
+ import { signClaimAuthorization } from '../../chunk-UE5XK2SY.js';
4
+ export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization } from '../../chunk-UE5XK2SY.js';
5
+ export { useEnsureOperator, useIsOperator } from '../../chunk-U57COLUE.js';
5
6
  import { useWagmiAccount } from '../../chunk-FT4LNBOS.js';
6
- import '../../chunk-ZWXJTBZO.js';
7
+ import '../../chunk-4KJ66YRH.js';
8
+ import '../../chunk-YPYCWLYP.js';
7
9
  import '../../chunk-7VELUOMI.js';
8
- import '../../chunk-SG65XWH7.js';
9
- import '../../chunk-XGGTQQFH.js';
10
- import '../../chunk-ZA673I3O.js';
10
+ import '../../chunk-6WSNS3UV.js';
11
+ import '../../chunk-QKKBBH7I.js';
12
+ import '../../chunk-46T67CE2.js';
13
+ import { MissingClientError, MissingWalletClientError } from '../../chunk-DRSPMIZ7.js';
14
+ 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';
11
15
  import '../../chunk-Q2GP5UDC.js';
12
- import '../../chunk-KWFFIJYX.js';
13
- import { MissingClientError, MissingWalletClientError } from '../../chunk-QBJ7O2B4.js';
14
- 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';
15
16
  import { useQuery, useMutation } from '@tanstack/react-query';
16
17
  import { useWalletClient } from 'wagmi';
17
18
 
@@ -354,15 +355,16 @@ function useClaim(options) {
354
355
  }
355
356
  });
356
357
  }
357
- function useGetClaimAmount(options) {
358
+ function useAccessClaimAmount(options) {
358
359
  const { client } = useMemoAirdropClient(options);
359
360
  return useMutation({
360
361
  mutationFn: async (args) => {
361
- if (!client) throw new MissingClientError("useGetClaimAmount", "airdrop");
362
+ if (!client) throw new MissingClientError("useAccessClaimAmount", "airdrop");
362
363
  return client.getClaimAmount(args);
363
364
  }
364
365
  });
365
366
  }
367
+ var useGetClaimAmount = useAccessClaimAmount;
366
368
  function useWithdraw(options) {
367
369
  const { client } = useMemoAirdropClient(options);
368
370
  return useMutation({
@@ -452,4 +454,4 @@ function useSignClaimAuthorization(options = {}) {
452
454
  });
453
455
  }
454
456
 
455
- export { useAirdropCanExtendClaimWindow, useAirdropClaimTypehash, useAirdropClaimedSignatures, useAirdropDeploymentBlockNumber, useAirdropDomainSeparator, useAirdropEndTime, useAirdropGasFee, useAirdropGrantRole, useAirdropHasClaimEnded, useAirdropHasClaimStarted, useAirdropHasRole, useAirdropIsClaimWindowActive, useAirdropIsPaused, useAirdropIsSignatureClaimed, useAirdropIsSignatureValid, useAirdropRevokeRole, useAirdropStartTime, useAirdropToken, useAirdropWithdrawGasFee, useClaim, useConfidentialAirdropFactoryImplementation, useCreateAndFundConfidentialAirdrop, useCreateAndFundConfidentialAirdropAndGetAddress, useCreateConfidentialAirdrop, useCreateConfidentialAirdropAndGetAddress, useDisableCustomFee, useExtendClaimWindow, useFactoryCustomFee, useFactoryDefaultGasFee, useFactoryFeeCollector, useFactoryInitCodeHash, useFundConfidentialAirdrop, useGetClaimAmount, usePreflightCreateAirdrop, useSetCustomFee, useSetDefaultGasFee, useSetFeeCollector, useSetPaused, useSignClaimAuthorization, useWithdraw, useWithdrawOtherConfidentialToken, useWithdrawOtherToken };
457
+ export { useAccessClaimAmount, useAirdropCanExtendClaimWindow, useAirdropClaimTypehash, useAirdropClaimedSignatures, useAirdropDeploymentBlockNumber, useAirdropDomainSeparator, useAirdropEndTime, useAirdropGasFee, useAirdropGrantRole, useAirdropHasClaimEnded, useAirdropHasClaimStarted, useAirdropHasRole, useAirdropIsClaimWindowActive, useAirdropIsPaused, useAirdropIsSignatureClaimed, useAirdropIsSignatureValid, useAirdropRevokeRole, useAirdropStartTime, useAirdropToken, useAirdropWithdrawGasFee, useClaim, useConfidentialAirdropFactoryImplementation, useCreateAndFundConfidentialAirdrop, useCreateAndFundConfidentialAirdropAndGetAddress, useCreateConfidentialAirdrop, useCreateConfidentialAirdropAndGetAddress, useDisableCustomFee, useExtendClaimWindow, useFactoryCustomFee, useFactoryDefaultGasFee, useFactoryFeeCollector, useFactoryInitCodeHash, useFundConfidentialAirdrop, useGetClaimAmount, usePreflightCreateAirdrop, useSetCustomFee, useSetDefaultGasFee, useSetFeeCollector, useSetPaused, useSignClaimAuthorization, useWithdraw, useWithdrawOtherConfidentialToken, useWithdrawOtherToken };
@@ -12,20 +12,26 @@ import { type AirdropHookOptions } from "./_shared.js";
12
12
  * plaintext amount. The handle is only valid after the tx lands.
13
13
  *
14
14
  * Does **not** consume the claim (the `claimedSignatures` bit is not set).
15
- * Call {@link useAirdropClaim} when the user is ready to transfer tokens.
15
+ * Call {@link useClaim} when the user is ready to transfer tokens.
16
16
  *
17
- * **Encryptor resolution.** The hook-level `encryptor` (from
18
- * {@link AirdropHookOptions}) is forwarded lazily to the SDK client. You can
19
- * also pass `encryptor` per-mutation via `args.encryptor` to override it. If
20
- * neither is present, the SDK throws `Missing encryptor — pass encryptor…`
21
- * verbatim.
17
+ * Submits the admin-issued `{ encryptedInput, signature }` pair verbatim. The
18
+ * SDK does NOT re-encrypt — the signature commits to the exact handle.
22
19
  *
23
20
  * @example
24
- * // `signature` is the EIP-712 admin signature delivered to the recipient
25
- * // — same value the recipient passes to `useAirdropClaim`. Sourced from your
26
- * // server API or, for admin-dashboard flows, from `useSignClaimAuthorization`.
27
- * const view = useAccessClaimAmount({ address: airdropAddress, encryptor: () => useZamaSDK().relayer });
28
- * view.mutate({ amount: 1_000_000n, signature });
21
+ * // `encryptedInput` + `signature` are the admin-issued payload delivered to
22
+ * // the recipient (same pair the recipient passes to `useClaim`). Sourced
23
+ * // from your server API or, for admin-dashboard flows, by combining
24
+ * // `encryptUint64({ userAddress: recipient, ... })` with
25
+ * // `useSignClaimAuthorization`.
26
+ * const view = useAccessClaimAmount({ address: airdropAddress });
27
+ * view.mutate({ encryptedInput, signature });
29
28
  * // view.data → { handle: "0x...", hash: "0x..." }
30
29
  */
31
30
  export declare function useAccessClaimAmount(options: AirdropHookOptions): UseMutationResult<EncryptedViewResult, Error, GetClaimAmountArgs>;
31
+ /**
32
+ * @deprecated Renamed to {@link useAccessClaimAmount}. Both submit a transaction, and the
33
+ * `useGet*` name reads as a free query — which misled bounty builders. This
34
+ * is the same function object, not a wrapper: behavior, argument types and
35
+ * thrown errors are identical. Removed in the next major.
36
+ */
37
+ export declare const useGetClaimAmount: typeof useAccessClaimAmount;
@@ -24,6 +24,14 @@ import { type AirdropHookOptions } from "./_shared.js";
24
24
  *
25
25
  * **Silent-zero transfers.** ERC-7984 transfers do not revert when the sender's encrypted balance is insufficient — the transfer succeeds and moves an encrypted zero instead. This is by design: reverting would leak balance information. The transaction receipt alone cannot tell you whether value actually moved.
26
26
  *
27
+ * **An unfunded pool is the opposite case — it reverts loudly.** Do not
28
+ * generalize the silent-zero rule above to a clone whose pool was never
29
+ * funded: that claim throws {@link FheHandleNotAllowedError} (the FHEVM ACL
30
+ * rejects `FHE.allowTransient` on an uninitialized handle). It is not
31
+ * preflight-detectable either — the pool balance is an encrypted `euint64` the
32
+ * SDK cannot read in plaintext — so surface the error rather than reporting a
33
+ * silent no-op success. See `preflightClaim` for the same caveat.
34
+ *
27
35
  * @example
28
36
  * const claim = useClaim({ address: airdropAddress });
29
37
  * claim.mutate({ encryptedInput, signature });
@@ -16,7 +16,7 @@ export interface UseSignClaimAuthorizationOptions {
16
16
  * Sign a `Claim(address recipient, bytes32 encryptedAmount)` EIP-712
17
17
  * authorization. The signer (pulled from wagmi's `useWalletClient()`) must
18
18
  * hold `DEFAULT_ADMIN_ROLE` on the airdrop clone for the produced signature
19
- * to be accepted by {@link useClaim} / {@link useGetClaimAmount}.
19
+ * to be accepted by {@link useClaim} / {@link useAccessClaimAmount}.
20
20
  *
21
21
  * Mutation throws {@link TokenOpsSdkError} if no wallet is connected.
22
22
  *
@@ -27,8 +27,15 @@ export interface CustomFee {
27
27
  * - `isFactoryOperator` — `true` when the creator has approved the factory as
28
28
  * an ERC-7984 operator on `params.token`. Only required when funding in the
29
29
  * same transaction (`createAndFundConfidentialAirdrop` /
30
- * `fundConfidentialAirdrop`); `false` also when the token address was
31
- * structurally invalid and the read was skipped.
30
+ * `fundConfidentialAirdrop`).
31
+ *
32
+ * **`false` does not mean "not approved" on its own** — it is also `false`
33
+ * when approval could not be determined at all: the token address was
34
+ * structurally invalid (read skipped), or the address is not an ERC-7984
35
+ * token (read failed). Do not render an "approve the factory" prompt off
36
+ * this field alone; check `blockerErrors` for
37
+ * `TOKENOPS_OPERATOR_NOT_APPROVED` first, which is present only when the
38
+ * approval genuinely is the missing step.
32
39
  * - `gasFee` — the per-claim gas fee (wei) the factory will embed into the
33
40
  * clone for this creator: the creator's custom fee when one is enabled,
34
41
  * otherwise `defaultGasFee`. This is the `gasFee` to use for address
@@ -46,7 +53,11 @@ export interface CustomFee {
46
53
  * aligned with `blockers`. Branch on `error.code` to render UI.
47
54
  */
48
55
  export interface CreateAirdropPreflightReport {
49
- /** `true` when the creator has approved the factory as operator on `params.token`. */
56
+ /**
57
+ * `true` when the creator has approved the factory as operator on
58
+ * `params.token`. `false` also covers "could not determine" — an invalid or
59
+ * non-ERC-7984 token; branch on `blockerErrors` rather than this field alone.
60
+ */
50
61
  isFactoryOperator: boolean;
51
62
  /** Per-claim gas fee (wei) the factory will embed into the clone for this creator. */
52
63
  gasFee: bigint;
@@ -18,6 +18,61 @@ export declare class NotRegisteredError extends TokenOpsSdkError {
18
18
  cause?: unknown;
19
19
  });
20
20
  }
21
+ /**
22
+ * Wallet-mode disperse: the user's registered sub-wallet pair has not (fully)
23
+ * approved the singleton as an ERC-7984 operator on the token, so the
24
+ * singleton cannot move funds held by the sub-wallets. Surfaced by
25
+ * `preflightDisperse` in `wallet` / `wallet-token-fee` mode.
26
+ *
27
+ * Remediation: call `approveUserWalletsForToken(token)` on the singleton —
28
+ * the per-wallet approval states are in `context` (and mirrored on
29
+ * `PreflightReport.hasApprovedSubwallets`).
30
+ */
31
+ export declare class SubwalletsNotApprovedError extends TokenOpsSdkError {
32
+ readonly name = "SubwalletsNotApprovedError";
33
+ readonly context: {
34
+ method: string;
35
+ contractAddress: Address;
36
+ user: Address;
37
+ token: Address;
38
+ wallet0Approved: boolean;
39
+ wallet1Approved: boolean;
40
+ };
41
+ constructor(args: {
42
+ method: string;
43
+ contractAddress: Address;
44
+ user: Address;
45
+ token: Address;
46
+ wallet0Approved: boolean;
47
+ wallet1Approved: boolean;
48
+ cause?: unknown;
49
+ });
50
+ }
51
+ /**
52
+ * Direct-mode disperse: the sender has not approved the singleton as an
53
+ * ERC-7984 operator on the token, so `disperseConfidentialTokenDirect` would
54
+ * revert with the raw `ERC7984UnauthorizedSpender` selector (`0x79f2cb38`).
55
+ * Surfaced by `preflightDisperse` in `direct` mode.
56
+ *
57
+ * Remediation: call `setOperator()` / `ensureOperator()` (exported from
58
+ * `@tokenops/sdk/fhe`) with the singleton address before dispersing.
59
+ */
60
+ export declare class SingletonNotApprovedError extends TokenOpsSdkError {
61
+ readonly name = "SingletonNotApprovedError";
62
+ readonly context: {
63
+ method: string;
64
+ contractAddress: Address;
65
+ user: Address;
66
+ token: Address;
67
+ };
68
+ constructor(args: {
69
+ method: string;
70
+ contractAddress: Address;
71
+ user: Address;
72
+ token: Address;
73
+ cause?: unknown;
74
+ });
75
+ }
21
76
  /**
22
77
  * The user has already registered — `register(token)` is single-use per user.
23
78
  * Use `approveUserWalletsForToken(token)` to grant the existing wallet pair
@@ -1,98 +1,105 @@
1
1
  'use strict';
2
2
 
3
- var chunkPFXURMBZ_cjs = require('../chunk-PFXURMBZ.cjs');
4
- var chunkJYOTGRSO_cjs = require('../chunk-JYOTGRSO.cjs');
5
- require('../chunk-TEBM66WA.cjs');
6
- require('../chunk-FAXIIH5R.cjs');
3
+ var chunkYFIWCYHC_cjs = require('../chunk-YFIWCYHC.cjs');
4
+ var chunk4ZCXK4VI_cjs = require('../chunk-4ZCXK4VI.cjs');
5
+ require('../chunk-UJS4N2XM.cjs');
6
+ require('../chunk-SYHNZSZZ.cjs');
7
7
  var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
8
- require('../chunk-KLKI352M.cjs');
9
- require('../chunk-PUPKNW3R.cjs');
10
- require('../chunk-JK4XMMKM.cjs');
8
+ require('../chunk-43RFBQ73.cjs');
9
+ require('../chunk-WUXUWTFW.cjs');
10
+ require('../chunk-VR3FREBX.cjs');
11
+ var chunk2RNW4MIJ_cjs = require('../chunk-2RNW4MIJ.cjs');
11
12
  require('../chunk-VJKZWYYJ.cjs');
12
- require('../chunk-66IHPTOK.cjs');
13
- var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
14
13
 
15
14
 
16
15
 
17
16
  Object.defineProperty(exports, "AlreadyRegisteredError", {
18
17
  enumerable: true,
19
- get: function () { return chunkPFXURMBZ_cjs.AlreadyRegisteredError; }
18
+ get: function () { return chunkYFIWCYHC_cjs.AlreadyRegisteredError; }
20
19
  });
21
20
  Object.defineProperty(exports, "ConfidentialDisperseClient", {
22
21
  enumerable: true,
23
- get: function () { return chunkPFXURMBZ_cjs.ConfidentialDisperseClient; }
22
+ get: function () { return chunkYFIWCYHC_cjs.ConfidentialDisperseClient; }
24
23
  });
25
24
  Object.defineProperty(exports, "DEFAULT_ADMIN_ROLE", {
26
25
  enumerable: true,
27
- get: function () { return chunkPFXURMBZ_cjs.DEFAULT_ADMIN_ROLE; }
26
+ get: function () { return chunkYFIWCYHC_cjs.DEFAULT_ADMIN_ROLE; }
28
27
  });
29
28
  Object.defineProperty(exports, "DisperseEncryptedReserveNotGrantedError", {
30
29
  enumerable: true,
31
- get: function () { return chunkPFXURMBZ_cjs.DisperseEncryptedReserveNotGrantedError; }
30
+ get: function () { return chunkYFIWCYHC_cjs.DisperseEncryptedReserveNotGrantedError; }
32
31
  });
33
32
  Object.defineProperty(exports, "DisperseSubwalletNotFoundError", {
34
33
  enumerable: true,
35
- get: function () { return chunkPFXURMBZ_cjs.DisperseSubwalletNotFoundError; }
34
+ get: function () { return chunkYFIWCYHC_cjs.DisperseSubwalletNotFoundError; }
36
35
  });
37
36
  Object.defineProperty(exports, "FEE_COLLECTOR_ROLE", {
38
37
  enumerable: true,
39
- get: function () { return chunkPFXURMBZ_cjs.FEE_COLLECTOR_ROLE; }
38
+ get: function () { return chunkYFIWCYHC_cjs.FEE_COLLECTOR_ROLE; }
40
39
  });
41
40
  Object.defineProperty(exports, "FEE_MANAGER_ROLE", {
42
41
  enumerable: true,
43
- get: function () { return chunkPFXURMBZ_cjs.FEE_MANAGER_ROLE; }
42
+ get: function () { return chunkYFIWCYHC_cjs.FEE_MANAGER_ROLE; }
44
43
  });
45
44
  Object.defineProperty(exports, "NotRegisteredError", {
46
45
  enumerable: true,
47
- get: function () { return chunkPFXURMBZ_cjs.NotRegisteredError; }
46
+ get: function () { return chunkYFIWCYHC_cjs.NotRegisteredError; }
48
47
  });
49
48
  Object.defineProperty(exports, "PAUSER_ROLE", {
50
49
  enumerable: true,
51
- get: function () { return chunkPFXURMBZ_cjs.PAUSER_ROLE; }
50
+ get: function () { return chunkYFIWCYHC_cjs.PAUSER_ROLE; }
51
+ });
52
+ Object.defineProperty(exports, "SingletonNotApprovedError", {
53
+ enumerable: true,
54
+ get: function () { return chunkYFIWCYHC_cjs.SingletonNotApprovedError; }
55
+ });
56
+ Object.defineProperty(exports, "SubwalletsNotApprovedError", {
57
+ enumerable: true,
58
+ get: function () { return chunkYFIWCYHC_cjs.SubwalletsNotApprovedError; }
52
59
  });
53
60
  Object.defineProperty(exports, "WITHDRAWER_ROLE", {
54
61
  enumerable: true,
55
- get: function () { return chunkPFXURMBZ_cjs.WITHDRAWER_ROLE; }
62
+ get: function () { return chunkYFIWCYHC_cjs.WITHDRAWER_ROLE; }
56
63
  });
57
64
  Object.defineProperty(exports, "computeSubtotals", {
58
65
  enumerable: true,
59
- get: function () { return chunkPFXURMBZ_cjs.computeSubtotals; }
66
+ get: function () { return chunkYFIWCYHC_cjs.computeSubtotals; }
60
67
  });
61
68
  Object.defineProperty(exports, "createConfidentialDisperseClient", {
62
69
  enumerable: true,
63
- get: function () { return chunkPFXURMBZ_cjs.createConfidentialDisperseClient; }
70
+ get: function () { return chunkYFIWCYHC_cjs.createConfidentialDisperseClient; }
64
71
  });
65
72
  Object.defineProperty(exports, "disperseConfidentialAbi", {
66
73
  enumerable: true,
67
- get: function () { return chunkPFXURMBZ_cjs.disperseConfidentialAbi; }
74
+ get: function () { return chunkYFIWCYHC_cjs.disperseConfidentialAbi; }
68
75
  });
69
76
  Object.defineProperty(exports, "disperseWalletAbi", {
70
77
  enumerable: true,
71
- get: function () { return chunkPFXURMBZ_cjs.disperseWalletAbi; }
78
+ get: function () { return chunkYFIWCYHC_cjs.disperseWalletAbi; }
72
79
  });
73
80
  Object.defineProperty(exports, "encryptUint64", {
74
81
  enumerable: true,
75
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64; }
82
+ get: function () { return chunkYFIWCYHC_cjs.encryptUint64; }
76
83
  });
77
84
  Object.defineProperty(exports, "encryptUint64Batch", {
78
85
  enumerable: true,
79
- get: function () { return chunkPFXURMBZ_cjs.encryptUint64Batch; }
86
+ get: function () { return chunkYFIWCYHC_cjs.encryptUint64Batch; }
80
87
  });
81
88
  Object.defineProperty(exports, "resolveEncryptor", {
82
89
  enumerable: true,
83
- get: function () { return chunkPFXURMBZ_cjs.resolveEncryptor; }
90
+ get: function () { return chunkYFIWCYHC_cjs.resolveEncryptor; }
84
91
  });
85
92
  Object.defineProperty(exports, "ERC7984_OPERATOR_MAX_DEADLINE", {
86
93
  enumerable: true,
87
- get: function () { return chunkJYOTGRSO_cjs.ERC7984_OPERATOR_MAX_DEADLINE; }
94
+ get: function () { return chunk4ZCXK4VI_cjs.ERC7984_OPERATOR_MAX_DEADLINE; }
88
95
  });
89
96
  Object.defineProperty(exports, "revokeOperator", {
90
97
  enumerable: true,
91
- get: function () { return chunkJYOTGRSO_cjs.revokeOperator; }
98
+ get: function () { return chunk4ZCXK4VI_cjs.revokeOperator; }
92
99
  });
93
100
  Object.defineProperty(exports, "setOperator", {
94
101
  enumerable: true,
95
- get: function () { return chunkJYOTGRSO_cjs.setOperator; }
102
+ get: function () { return chunk4ZCXK4VI_cjs.setOperator; }
96
103
  });
97
104
  Object.defineProperty(exports, "erc7984OperatorAbi", {
98
105
  enumerable: true,
@@ -100,153 +107,153 @@ Object.defineProperty(exports, "erc7984OperatorAbi", {
100
107
  });
101
108
  Object.defineProperty(exports, "AccessDeniedError", {
102
109
  enumerable: true,
103
- get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
110
+ get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
104
111
  });
105
112
  Object.defineProperty(exports, "AlreadyInitializedError", {
106
113
  enumerable: true,
107
- get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
114
+ get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
108
115
  });
109
116
  Object.defineProperty(exports, "BatchTooLargeError", {
110
117
  enumerable: true,
111
- get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
118
+ get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
112
119
  });
113
120
  Object.defineProperty(exports, "ContractRevertError", {
114
121
  enumerable: true,
115
- get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
122
+ get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
116
123
  });
117
124
  Object.defineProperty(exports, "DecryptionFailedError", {
118
125
  enumerable: true,
119
- get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
126
+ get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
120
127
  });
121
128
  Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
122
129
  enumerable: true,
123
- get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
130
+ get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
124
131
  });
125
132
  Object.defineProperty(exports, "EncryptionFailedError", {
126
133
  enumerable: true,
127
- get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
134
+ get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
128
135
  });
129
136
  Object.defineProperty(exports, "FeatureDisabledError", {
130
137
  enumerable: true,
131
- get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
138
+ get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
132
139
  });
133
140
  Object.defineProperty(exports, "FheHandleNotAllowedError", {
134
141
  enumerable: true,
135
- get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
142
+ get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
136
143
  });
137
144
  Object.defineProperty(exports, "InsufficientBalanceError", {
138
145
  enumerable: true,
139
- get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
146
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
140
147
  });
141
148
  Object.defineProperty(exports, "InsufficientFeeError", {
142
149
  enumerable: true,
143
- get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
150
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
144
151
  });
145
152
  Object.defineProperty(exports, "InsufficientGasFundsError", {
146
153
  enumerable: true,
147
- get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
154
+ get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
148
155
  });
149
156
  Object.defineProperty(exports, "InvalidArgumentError", {
150
157
  enumerable: true,
151
- get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
158
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
152
159
  });
153
160
  Object.defineProperty(exports, "InvalidSignatureError", {
154
161
  enumerable: true,
155
- get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
162
+ get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
156
163
  });
157
164
  Object.defineProperty(exports, "MissingAccountError", {
158
165
  enumerable: true,
159
- get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
166
+ get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
160
167
  });
161
168
  Object.defineProperty(exports, "MissingClientError", {
162
169
  enumerable: true,
163
- get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
170
+ get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
164
171
  });
165
172
  Object.defineProperty(exports, "MissingEncryptorError", {
166
173
  enumerable: true,
167
- get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
174
+ get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
168
175
  });
169
176
  Object.defineProperty(exports, "MissingPublicClientError", {
170
177
  enumerable: true,
171
- get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
178
+ get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
172
179
  });
173
180
  Object.defineProperty(exports, "MissingWalletClientError", {
174
181
  enumerable: true,
175
- get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
182
+ get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
176
183
  });
177
184
  Object.defineProperty(exports, "NetworkError", {
178
185
  enumerable: true,
179
- get: function () { return chunk67OV5CX2_cjs.NetworkError; }
186
+ get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
180
187
  });
181
188
  Object.defineProperty(exports, "OperatorNotApprovedError", {
182
189
  enumerable: true,
183
- get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
190
+ get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
184
191
  });
185
192
  Object.defineProperty(exports, "PausedError", {
186
193
  enumerable: true,
187
- get: function () { return chunk67OV5CX2_cjs.PausedError; }
194
+ get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
188
195
  });
189
196
  Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
190
197
  enumerable: true,
191
- get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
198
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
192
199
  });
193
200
  Object.defineProperty(exports, "ReceiptEventNotFoundError", {
194
201
  enumerable: true,
195
- get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
202
+ get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
196
203
  });
197
204
  Object.defineProperty(exports, "ReentrancyError", {
198
205
  enumerable: true,
199
- get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
206
+ get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
200
207
  });
201
208
  Object.defineProperty(exports, "RelayerUnreachableError", {
202
209
  enumerable: true,
203
- get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
210
+ get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
204
211
  });
205
212
  Object.defineProperty(exports, "SigningFailedError", {
206
213
  enumerable: true,
207
- get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
214
+ get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
208
215
  });
209
216
  Object.defineProperty(exports, "TokenOpsContractError", {
210
217
  enumerable: true,
211
- get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
218
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsContractError; }
212
219
  });
213
220
  Object.defineProperty(exports, "TokenOpsSdkError", {
214
221
  enumerable: true,
215
- get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
222
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
216
223
  });
217
224
  Object.defineProperty(exports, "TokenOpsValidationError", {
218
225
  enumerable: true,
219
- get: function () { return chunk67OV5CX2_cjs.TokenOpsValidationError; }
226
+ get: function () { return chunk2RNW4MIJ_cjs.TokenOpsValidationError; }
220
227
  });
221
228
  Object.defineProperty(exports, "TransferFailedError", {
222
229
  enumerable: true,
223
- get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
230
+ get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
224
231
  });
225
232
  Object.defineProperty(exports, "UnknownWriteFailureError", {
226
233
  enumerable: true,
227
- get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
234
+ get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
228
235
  });
229
236
  Object.defineProperty(exports, "UnsupportedChainError", {
230
237
  enumerable: true,
231
- get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
238
+ get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
232
239
  });
233
240
  Object.defineProperty(exports, "UserDecryptNotAllowedError", {
234
241
  enumerable: true,
235
- get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
242
+ get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
236
243
  });
237
244
  Object.defineProperty(exports, "UserRejectedSignatureError", {
238
245
  enumerable: true,
239
- get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
246
+ get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
240
247
  });
241
248
  Object.defineProperty(exports, "WalletChainMismatchError", {
242
249
  enumerable: true,
243
- get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
250
+ get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
244
251
  });
245
252
  Object.defineProperty(exports, "WalletRejectedError", {
246
253
  enumerable: true,
247
- get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
254
+ get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
248
255
  });
249
256
  Object.defineProperty(exports, "isTokenOpsSdkError", {
250
257
  enumerable: true,
251
- get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
258
+ get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
252
259
  });
@@ -11,4 +11,4 @@ export declare const WITHDRAWER_ROLE: "0x10dac8c06a04bec0b551627dad28bc00d6516b0
11
11
  export declare const DEFAULT_ADMIN_ROLE: "0x0000000000000000000000000000000000000000000000000000000000000000";
12
12
  export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, 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";
13
13
  export { type PreflightResult } from "../core/preflight.js";
14
- export { NotRegisteredError, AlreadyRegisteredError } from "./errors.js";
14
+ export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "./errors.js";
@@ -11,4 +11,4 @@ export declare const WITHDRAWER_ROLE: "0x10dac8c06a04bec0b551627dad28bc00d6516b0
11
11
  export declare const DEFAULT_ADMIN_ROLE: "0x0000000000000000000000000000000000000000000000000000000000000000";
12
12
  export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, 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";
13
13
  export { type PreflightResult } from "../core/preflight.js";
14
- export { NotRegisteredError, AlreadyRegisteredError } from "./errors.js";
14
+ export { NotRegisteredError, AlreadyRegisteredError, SubwalletsNotApprovedError, SingletonNotApprovedError, } from "./errors.js";
@@ -1,11 +1,10 @@
1
- export { AlreadyRegisteredError, ConfidentialDisperseClient, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, WITHDRAWER_ROLE, computeSubtotals, createConfidentialDisperseClient, disperseConfidentialAbi, disperseWalletAbi, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-2PWNH3UE.js';
2
- export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator } from '../chunk-6BMP4ICG.js';
3
- import '../chunk-WMACINXO.js';
4
- import '../chunk-ZWXJTBZO.js';
1
+ export { AlreadyRegisteredError, ConfidentialDisperseClient, DEFAULT_ADMIN_ROLE, DisperseEncryptedReserveNotGrantedError, DisperseSubwalletNotFoundError, FEE_COLLECTOR_ROLE, FEE_MANAGER_ROLE, NotRegisteredError, PAUSER_ROLE, SingletonNotApprovedError, SubwalletsNotApprovedError, WITHDRAWER_ROLE, computeSubtotals, createConfidentialDisperseClient, disperseConfidentialAbi, disperseWalletAbi, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-QET3Q4JP.js';
2
+ export { ERC7984_OPERATOR_MAX_DEADLINE, revokeOperator, setOperator } from '../chunk-4KJ66YRH.js';
3
+ import '../chunk-NFW7AUEX.js';
4
+ import '../chunk-YPYCWLYP.js';
5
5
  export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
6
- import '../chunk-SG65XWH7.js';
7
- import '../chunk-XGGTQQFH.js';
8
- import '../chunk-ZA673I3O.js';
6
+ import '../chunk-6WSNS3UV.js';
7
+ import '../chunk-QKKBBH7I.js';
8
+ import '../chunk-46T67CE2.js';
9
+ 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-DRSPMIZ7.js';
9
10
  import '../chunk-Q2GP5UDC.js';
10
- import '../chunk-KWFFIJYX.js';
11
- 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';