@tokenops/sdk 1.5.1 → 2.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/CHANGELOG.md +198 -2
  2. package/CONTRIBUTING.md +4 -2
  3. package/README.md +146 -90
  4. package/SECURITY.md +7 -1
  5. package/SUPPORT.md +47 -0
  6. package/dist/{chunk-YQIBBEFJ.js → chunk-335Z2W67.js} +1 -1
  7. package/dist/{chunk-2NCLOQ56.cjs → chunk-3QHNYEQD.cjs} +77 -0
  8. package/dist/chunk-456VDDA3.js +370 -0
  9. package/dist/{chunk-SG65XWH7.js → chunk-4RAAATVY.js} +1 -3
  10. package/dist/{chunk-6BMP4ICG.js → chunk-4TSDNZQ3.js} +60 -2
  11. package/dist/{chunk-PUPKNW3R.cjs → chunk-5576FRT3.cjs} +30 -6
  12. package/dist/{chunk-AOP6HMPW.js → chunk-6GNR22OV.js} +75 -1
  13. package/dist/{chunk-NTZY6IB7.js → chunk-6NAVMWZQ.js} +4 -3
  14. package/dist/{chunk-C7BRZXJA.cjs → chunk-6PXXGACR.cjs} +8 -7
  15. package/dist/{chunk-IJFQ5L4I.js → chunk-74QFZ5MK.js} +4 -3
  16. package/dist/chunk-7AFPOE7N.cjs +59 -0
  17. package/dist/chunk-AXIPOR3C.js +56 -0
  18. package/dist/chunk-CTED3MTR.cjs +380 -0
  19. package/dist/{chunk-XGGTQQFH.js → chunk-DZHYSUGY.js} +28 -7
  20. package/dist/{chunk-OXTLPTO3.js → chunk-EAJ7SYHE.js} +4 -3
  21. package/dist/{chunk-V2PXZVBF.cjs → chunk-FGEB7RMY.cjs} +4 -4
  22. package/dist/chunk-GKKDAW44.js +8823 -0
  23. package/dist/{chunk-2PWNH3UE.js → chunk-H5POPGOZ.js} +63 -5
  24. package/dist/{chunk-W7IGCOVL.cjs → chunk-JQYC66TO.cjs} +9 -8
  25. package/dist/{chunk-PFXURMBZ.cjs → chunk-JZLGCTGK.cjs} +68 -8
  26. package/dist/{chunk-JYOTGRSO.cjs → chunk-KFRDLKMA.cjs} +61 -1
  27. package/dist/chunk-M4IT6DNJ.cjs +608 -0
  28. package/dist/{chunk-KLKI352M.cjs → chunk-MVDQMV25.cjs} +0 -3
  29. package/dist/chunk-NCVX3K2N.cjs +161 -0
  30. package/dist/chunk-NWFMBLSQ.js +4 -0
  31. package/dist/chunk-O5676ZWY.js +585 -0
  32. package/dist/chunk-PUX5VXDB.cjs +8845 -0
  33. package/dist/{chunk-IXLO7GO5.js → chunk-TWT3STIX.js} +46 -80
  34. package/dist/chunk-UG5RKLU2.cjs +6 -0
  35. package/dist/chunk-VP2B4WM2.js +154 -0
  36. package/dist/{chunk-5X5WL5CU.cjs → chunk-WJLECC22.cjs} +51 -88
  37. package/dist/{chunk-WENHUPZC.cjs → chunk-XAYGD4E4.cjs} +9 -8
  38. package/dist/core/addresses.d.ts +15 -3
  39. package/dist/core/brands.d.ts +8 -2
  40. package/dist/core/errors.d.ts +71 -10
  41. package/dist/core/preflight.d.ts +1 -0
  42. package/dist/fhe/erc7984-abi.d.ts +1 -0
  43. package/dist/fhe/index.cjs +34 -13
  44. package/dist/fhe/index.d.cts +1 -0
  45. package/dist/fhe/index.d.ts +1 -0
  46. package/dist/fhe/index.js +19 -6
  47. package/dist/fhe/mock-erc7984.d.ts +4 -4
  48. package/dist/fhe/operators.d.ts +160 -3
  49. package/dist/fhe/react/index.cjs +14 -0
  50. package/dist/fhe/react/index.d.cts +2 -0
  51. package/dist/fhe/react/index.d.ts +2 -0
  52. package/dist/fhe/react/index.js +6 -0
  53. package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
  54. package/dist/fhe/react/useIsOperator.d.ts +54 -0
  55. package/dist/fhe/sepolia-encryptor-web.d.ts +18 -3
  56. package/dist/fhe/types.d.ts +6 -0
  57. package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
  58. package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
  59. package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
  60. package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
  61. package/dist/fhe-airdrop/abis/index.d.ts +5 -2
  62. package/dist/fhe-airdrop/abis/merkle.d.ts +1238 -0
  63. package/dist/fhe-airdrop/advanced/index.cjs +10 -12
  64. package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
  65. package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
  66. package/dist/fhe-airdrop/advanced/index.js +2 -8
  67. package/dist/fhe-airdrop/advanced/react/index.cjs +34 -48
  68. package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
  69. package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
  70. package/dist/fhe-airdrop/advanced/react/index.js +33 -48
  71. package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
  72. package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
  73. package/dist/fhe-airdrop/airdrop-base.d.ts +600 -0
  74. package/dist/fhe-airdrop/campaign.d.ts +297 -0
  75. package/dist/fhe-airdrop/compliance.d.ts +302 -0
  76. package/dist/fhe-airdrop/constants.d.ts +33 -0
  77. package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
  78. package/dist/fhe-airdrop/encryption.d.ts +92 -14
  79. package/dist/fhe-airdrop/errors.d.ts +245 -15
  80. package/dist/fhe-airdrop/factory.d.ts +533 -274
  81. package/dist/fhe-airdrop/guards.d.ts +273 -0
  82. package/dist/fhe-airdrop/index.cjs +1089 -33
  83. package/dist/fhe-airdrop/index.d.cts +46 -8
  84. package/dist/fhe-airdrop/index.d.ts +46 -8
  85. package/dist/fhe-airdrop/index.js +929 -7
  86. package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
  87. package/dist/fhe-airdrop/merkle.d.ts +180 -0
  88. package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
  89. package/dist/fhe-airdrop/react/index.cjs +364 -413
  90. package/dist/fhe-airdrop/react/index.d.cts +53 -72
  91. package/dist/fhe-airdrop/react/index.d.ts +53 -72
  92. package/dist/fhe-airdrop/react/index.js +258 -369
  93. package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
  94. package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
  95. package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
  96. package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
  97. package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
  98. package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
  99. package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
  100. package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
  101. package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
  102. package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
  103. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +23 -0
  104. package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
  105. package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
  106. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
  107. package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
  108. package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
  109. package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
  110. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +34 -0
  111. package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
  112. package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
  113. package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
  114. package/dist/fhe-airdrop/roles.d.ts +147 -0
  115. package/dist/fhe-airdrop/types.d.ts +68 -55
  116. package/dist/fhe-disperse/errors.d.ts +55 -0
  117. package/dist/fhe-disperse/index.cjs +34 -25
  118. package/dist/fhe-disperse/index.d.cts +1 -1
  119. package/dist/fhe-disperse/index.d.ts +1 -1
  120. package/dist/fhe-disperse/index.js +6 -5
  121. package/dist/fhe-disperse/react/index.cjs +42 -23
  122. package/dist/fhe-disperse/react/index.d.cts +3 -1
  123. package/dist/fhe-disperse/react/index.d.ts +3 -1
  124. package/dist/fhe-disperse/react/index.js +9 -6
  125. package/dist/fhe-vesting/advanced/index.cjs +8 -7
  126. package/dist/fhe-vesting/advanced/index.js +6 -5
  127. package/dist/fhe-vesting/advanced/react/index.cjs +12 -11
  128. package/dist/fhe-vesting/advanced/react/index.js +9 -8
  129. package/dist/fhe-vesting/index.cjs +35 -34
  130. package/dist/fhe-vesting/index.js +7 -6
  131. package/dist/fhe-vesting/manager.d.ts +19 -0
  132. package/dist/fhe-vesting/react/index.cjs +160 -140
  133. package/dist/fhe-vesting/react/index.d.cts +6 -4
  134. package/dist/fhe-vesting/react/index.d.ts +6 -4
  135. package/dist/fhe-vesting/react/index.js +24 -16
  136. package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
  137. package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
  138. package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
  139. package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
  140. package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
  141. package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
  142. package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
  143. package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
  144. package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +8 -0
  145. package/dist/fhe-vesting/react/useClaim.d.ts +1 -1
  146. package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
  147. package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
  148. package/dist/fhe-vesting/react/usePartialClaim.d.ts +1 -1
  149. package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
  150. package/dist/fhe-vesting/types.d.ts +12 -1
  151. package/dist/index.cjs +27 -15
  152. package/dist/index.js +1 -1
  153. package/dist/testnet-faucet/index.cjs +17 -16
  154. package/dist/testnet-faucet/index.js +5 -4
  155. package/dist/testnet-faucet/react/index.cjs +11 -10
  156. package/dist/testnet-faucet/react/index.js +6 -5
  157. package/package.json +18 -9
  158. package/dist/chunk-4WPGQSNT.cjs +0 -44
  159. package/dist/chunk-6R4KNAPK.js +0 -1630
  160. package/dist/chunk-DUZIIRPF.js +0 -1655
  161. package/dist/chunk-MCRBVJGZ.cjs +0 -1637
  162. package/dist/chunk-ODLTEGHB.js +0 -41
  163. package/dist/chunk-ORFTDNFZ.js +0 -105
  164. package/dist/chunk-T46YXSBP.cjs +0 -109
  165. package/dist/chunk-TIUKIY5V.cjs +0 -1663
  166. package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
  167. package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
  168. package/dist/fhe-airdrop/airdrop.d.ts +0 -310
  169. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -31
  170. package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
  171. package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -27
  172. package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
  173. package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
  174. package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
  175. package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
  176. package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
  177. package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
  178. package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
  179. package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
  180. package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
  181. package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
  182. package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
  183. package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
  184. package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
  185. package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +0 -16
  186. package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
  187. package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
  188. package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
  189. package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
  190. package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
  191. package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
  192. package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +0 -15
  193. package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
  194. package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
  195. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
  196. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
  197. package/dist/fhe-airdrop/react/useClaim.d.ts +0 -31
  198. package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
  199. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
  200. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
  201. package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
  202. package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
  203. package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
  204. package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
  205. package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
  206. package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
  207. package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
  208. package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
  209. package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
  210. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +0 -51
  211. package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
  212. package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
  213. package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
  214. package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
  215. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +0 -31
  216. package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
  217. package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
  218. package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
  219. package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
  220. package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
  221. package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
  222. package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
@@ -1,13 +1,14 @@
1
1
  'use strict';
2
2
 
3
+ var chunkXAYGD4E4_cjs = require('../../chunk-XAYGD4E4.cjs');
3
4
  var chunkZQUE2B3Q_cjs = require('../../chunk-ZQUE2B3Q.cjs');
4
- var chunkWENHUPZC_cjs = require('../../chunk-WENHUPZC.cjs');
5
- require('../../chunk-KLKI352M.cjs');
6
- var chunkPUPKNW3R_cjs = require('../../chunk-PUPKNW3R.cjs');
5
+ require('../../chunk-UG5RKLU2.cjs');
6
+ require('../../chunk-MVDQMV25.cjs');
7
+ var chunk5576FRT3_cjs = require('../../chunk-5576FRT3.cjs');
7
8
  require('../../chunk-JK4XMMKM.cjs');
8
- require('../../chunk-VJKZWYYJ.cjs');
9
9
  require('../../chunk-66IHPTOK.cjs');
10
10
  var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
11
+ require('../../chunk-VJKZWYYJ.cjs');
11
12
  var reactQuery = require('@tanstack/react-query');
12
13
  var react = require('react');
13
14
  var wagmi = require('wagmi');
@@ -15,10 +16,10 @@ var wagmi = require('wagmi');
15
16
  var TESTNET_FAUCET_KEY = "tokenops-sdk";
16
17
  var TESTNET_FAUCET_NAMESPACE = "testnet-faucet";
17
18
  function tryResolveSingletonAddress(override, chainId) {
18
- if (chainId !== void 0 && !chunkWENHUPZC_cjs.isTestnetFaucetChainId(chainId)) return void 0;
19
+ if (chainId !== void 0 && !chunkXAYGD4E4_cjs.isTestnetFaucetChainId(chainId)) return void 0;
19
20
  if (override) return override;
20
21
  if (chainId === void 0) return void 0;
21
- return chunkPUPKNW3R_cjs.getConfidentialTestTokenAddress(chainId);
22
+ return chunk5576FRT3_cjs.getConfidentialTestTokenAddress(chainId);
22
23
  }
23
24
  function useMemoFaucetClient(opts = {}) {
24
25
  const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
@@ -29,7 +30,7 @@ function useMemoFaucetClient(opts = {}) {
29
30
  const client = react.useMemo(() => {
30
31
  if (!publicClient) return void 0;
31
32
  if (!resolvedAddress) return void 0;
32
- return chunkWENHUPZC_cjs.createTestnetFaucetClient({
33
+ return chunkXAYGD4E4_cjs.createTestnetFaucetClient({
33
34
  publicClient,
34
35
  ...walletClient ? { walletClient } : {},
35
36
  ...opts.address ? { address: resolvedAddress } : {},
@@ -46,7 +47,7 @@ function useMemoFaucetClient(opts = {}) {
46
47
  };
47
48
  }
48
49
  function computeSingletonResolutionError(override, chainId) {
49
- if (chainId !== void 0 && !chunkWENHUPZC_cjs.isTestnetFaucetChainId(chainId)) {
50
+ if (chainId !== void 0 && !chunkXAYGD4E4_cjs.isTestnetFaucetChainId(chainId)) {
50
51
  return new chunk67OV5CX2_cjs.UnsupportedChainError(chainId);
51
52
  }
52
53
  if (override) return void 0;
@@ -58,7 +59,7 @@ function computeSingletonResolutionError(override, chainId) {
58
59
  clientLabel: "TestnetFaucetClient"
59
60
  });
60
61
  }
61
- const resolved = chunkPUPKNW3R_cjs.getConfidentialTestTokenAddress(chainId);
62
+ const resolved = chunk5576FRT3_cjs.getConfidentialTestTokenAddress(chainId);
62
63
  if (!resolved) {
63
64
  return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
64
65
  reason: "registry-not-deployed",
@@ -219,7 +220,7 @@ function useMintUnderlying(options = {}) {
219
220
 
220
221
  Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
221
222
  enumerable: true,
222
- get: function () { return chunkWENHUPZC_cjs.FaucetSupplyExhaustedError; }
223
+ get: function () { return chunkXAYGD4E4_cjs.FaucetSupplyExhaustedError; }
223
224
  });
224
225
  Object.defineProperty(exports, "AccessDeniedError", {
225
226
  enumerable: true,
@@ -1,13 +1,14 @@
1
+ import { createTestnetFaucetClient, isTestnetFaucetChainId } from '../../chunk-74QFZ5MK.js';
2
+ export { FaucetSupplyExhaustedError } from '../../chunk-74QFZ5MK.js';
1
3
  import { useWagmiAccount } from '../../chunk-FT4LNBOS.js';
2
- import { createTestnetFaucetClient, isTestnetFaucetChainId } from '../../chunk-IJFQ5L4I.js';
3
- export { FaucetSupplyExhaustedError } from '../../chunk-IJFQ5L4I.js';
4
- import '../../chunk-SG65XWH7.js';
5
- import { getConfidentialTestTokenAddress } from '../../chunk-XGGTQQFH.js';
4
+ import '../../chunk-NWFMBLSQ.js';
5
+ import '../../chunk-4RAAATVY.js';
6
+ import { getConfidentialTestTokenAddress } from '../../chunk-DZHYSUGY.js';
6
7
  import '../../chunk-ZA673I3O.js';
7
- import '../../chunk-Q2GP5UDC.js';
8
8
  import '../../chunk-KWFFIJYX.js';
9
9
  import { MissingClientError, UnsupportedChainError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
10
10
  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, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-QBJ7O2B4.js';
11
+ import '../../chunk-Q2GP5UDC.js';
11
12
  import { useQuery, useMutation } from '@tanstack/react-query';
12
13
  import { useMemo } from 'react';
13
14
  import { usePublicClient, useWalletClient } from 'wagmi';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenops/sdk",
3
- "version": "1.5.1",
3
+ "version": "2.0.0-alpha.1",
4
4
  "description": "Typed viem-first SDK for TokenOps FHEVM contracts (confidential vesting, confidential airdrops, confidential disperse, plus a testnet faucet for the ERC-7984 test-token pair TTT + CTTT) — consumed by tokenops-app (Next.js) and tokenops-api (Express).",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -223,7 +223,8 @@
223
223
  "LICENSE",
224
224
  "CHANGELOG.md",
225
225
  "CONTRIBUTING.md",
226
- "SECURITY.md"
226
+ "SECURITY.md",
227
+ "SUPPORT.md"
227
228
  ],
228
229
  "publishConfig": {
229
230
  "registry": "https://registry.npmjs.org",
@@ -262,12 +263,13 @@
262
263
  "build:watch": "NODE_OPTIONS=\"--max-old-space-size=4096\" tsup --watch --no-dts",
263
264
  "clean": "rm -rf dist dist-types coverage",
264
265
  "typecheck": "tsc --noEmit",
266
+ "typecheck:fast": "tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tokenops-typecheck.tsbuildinfo",
265
267
  "typecheck:build": "tsc --noEmit -p tsconfig.build.json",
266
268
  "test": "vitest run",
267
269
  "test:watch": "vitest",
268
270
  "test:coverage": "vitest run --coverage",
269
271
  "test:unit": "vitest run src",
270
- "test:hooks": "vitest run src/core/wagmi-compat.test.ts test/fhe-vesting/react test/fhe-airdrop/react test/fhe-disperse/react test/testnet-faucet/react",
272
+ "test:hooks": "vitest run src/core/wagmi-compat.test.ts test/fhe-vesting/react test/fhe-airdrop/react test/fhe-disperse/react test/testnet-faucet/react test/fhe/react test/react",
271
273
  "test:local": "vitest run test",
272
274
  "test:local-all": "./scripts/run-local-fhevm-tests.sh",
273
275
  "test:sepolia": "vitest run test --reporter=verbose",
@@ -281,6 +283,7 @@
281
283
  "api:update": "node scripts/api-extractor/run.mjs --local",
282
284
  "check-dts": "node scripts/check-dts.mjs",
283
285
  "doctor": "node scripts/doctor.mjs",
286
+ "setup:claude": "node scripts/setup-claude.mjs",
284
287
  "prepare": "husky",
285
288
  "prepublishOnly": "pnpm clean && pnpm build && pnpm typecheck && pnpm lint && pnpm test"
286
289
  },
@@ -310,31 +313,37 @@
310
313
  }
311
314
  },
312
315
  "dependencies": {
316
+ "@openzeppelin/merkle-tree": "^1.0.8",
313
317
  "abitype": "^1.0.8"
314
318
  },
315
319
  "pnpm": {
316
320
  "overrides": {
317
321
  "@types/react": "19.2.15",
318
322
  "@types/react-dom": "19.2.3",
319
- "axios@<1.15.2": "^1.16.1",
323
+ "axios@<1.18.0": "^1.18.0",
320
324
  "form-data@<4.0.6": "^4.0.6",
321
325
  "dompurify@<3.4.11": "^3.4.11",
322
326
  "ws@>=8.0.0 <8.20.1": "^8.21.0",
323
327
  "ws@>=7.0.0 <7.5.11": "^7.5.11",
324
- "postcss@>=8.0.0 <8.5.10": "^8.5.15",
328
+ "postcss@<8.5.18": "8.5.23",
325
329
  "esbuild@<0.28.1": "^0.28.1",
326
330
  "vite@<6.4.3": "^6.4.3",
327
- "hono@<4.12.25": "^4.12.25",
328
- "js-yaml@<4.2.0": "^4.2.0",
331
+ "hono@<4.12.27": "^4.12.27",
332
+ "js-yaml@<4.3.0": "^4.3.0",
329
333
  "uuid@<11.1.1": "^11.1.1",
330
334
  "linkifyjs@<4.3.2": "^4.3.3",
335
+ "linkify-it@<5.0.2": "^5.0.2",
336
+ "fast-uri@>=3.0.0 <3.1.4": "^3.1.4",
337
+ "brace-expansion@<1.1.16": "^1.1.16",
338
+ "brace-expansion@>=2.0.0 <2.1.3": "^2.1.3",
339
+ "brace-expansion@>=3.0.0 <5.0.8": "^5.0.8",
331
340
  "@privy-io/js-sdk-core@<0.56.0": "^0.56.4"
332
341
  }
333
342
  },
334
343
  "devDependencies": {
335
344
  "@commitlint/cli": "^20.0.0",
336
345
  "@commitlint/config-conventional": "^20.0.0",
337
- "@eslint/js": "^9.0.0",
346
+ "@eslint/js": "^10.0.1",
338
347
  "@fhevm/mock-utils": "^0.4.2",
339
348
  "@microsoft/api-extractor": "^7.58.7",
340
349
  "@tanstack/react-query": "^5.100.11",
@@ -344,7 +353,7 @@
344
353
  "@types/react-dom": "^18.3.7",
345
354
  "@vitest/coverage-v8": "^3.2.6",
346
355
  "@zama-fhe/sdk": "^3.0.0",
347
- "eslint": "^9.0.0",
356
+ "eslint": "^10.8.0",
348
357
  "eslint-config-prettier": "^10.0.0",
349
358
  "ethers": "^6.16.0",
350
359
  "happy-dom": "^20.9.0",
@@ -1,44 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkTIUKIY5V_cjs = require('./chunk-TIUKIY5V.cjs');
4
-
5
- // src/fhe-airdrop/advanced/factory-advanced.ts
6
- var ConfidentialAirdropFactoryAdvancedClient = class extends chunkTIUKIY5V_cjs.ConfidentialAirdropFactoryClient {
7
- /**
8
- * Compute the deterministic CREATE2 address for an airdrop clone without
9
- * deploying it.
10
- *
11
- * Note: `gasFee` must match what the factory would charge the deployer at
12
- * deploy time (custom fee if set, otherwise `defaultGasFee`). Use
13
- * `getCustomFee(deployer)` and `defaultGasFee()` to resolve it correctly —
14
- * a mismatch silently targets the wrong address.
15
- *
16
- * For the common "deploy a clone and learn its address" flow, use the
17
- * headline `factory.createConfidentialAirdrop` instead — it parses the
18
- * address from the tx receipt's `ConfidentialAirdropCreated` event without
19
- * any `gasFee` guessing.
20
- */
21
- async predictAirdropAddress(args) {
22
- return this.publicClient.readContract({
23
- address: this.address,
24
- abi: chunkTIUKIY5V_cjs.confidentialAirdropFactoryAbi,
25
- functionName: "predictAirdropAddress",
26
- args: [toAbiParams(args.params), args.userSalt, args.deployer, args.gasFee]
27
- });
28
- }
29
- };
30
- function createConfidentialAirdropFactoryAdvancedClient(config) {
31
- return new ConfidentialAirdropFactoryAdvancedClient(config);
32
- }
33
- function toAbiParams(params) {
34
- return {
35
- token: params.token,
36
- startTime: params.startTimestamp,
37
- endTime: params.endTimestamp,
38
- canExtendClaimWindow: params.canExtendClaimWindow,
39
- admin: params.admin
40
- };
41
- }
42
-
43
- exports.ConfidentialAirdropFactoryAdvancedClient = ConfidentialAirdropFactoryAdvancedClient;
44
- exports.createConfidentialAirdropFactoryAdvancedClient = createConfidentialAirdropFactoryAdvancedClient;