@tokenops/sdk 1.6.0 → 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 (194) hide show
  1. package/CHANGELOG.md +48 -8
  2. package/CONTRIBUTING.md +4 -2
  3. package/README.md +146 -90
  4. package/SUPPORT.md +47 -0
  5. package/dist/{chunk-HETNKZEE.js → chunk-335Z2W67.js} +1 -1
  6. package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
  7. package/dist/chunk-456VDDA3.js +370 -0
  8. package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
  9. package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
  10. package/dist/{chunk-WUXUWTFW.cjs → chunk-5576FRT3.cjs} +31 -7
  11. package/dist/chunk-66IHPTOK.cjs +20 -0
  12. package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
  13. package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
  14. package/dist/{chunk-VHSNYUYV.js → chunk-6NAVMWZQ.js} +5 -5
  15. package/dist/{chunk-EUKPOXWR.cjs → chunk-6PXXGACR.cjs} +17 -15
  16. package/dist/{chunk-WTK6JDSI.js → chunk-74QFZ5MK.js} +6 -4
  17. package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
  18. package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
  19. package/dist/chunk-CTED3MTR.cjs +380 -0
  20. package/dist/{chunk-QKKBBH7I.js → chunk-DZHYSUGY.js} +28 -7
  21. package/dist/{chunk-V5D7BHW3.js → chunk-EAJ7SYHE.js} +6 -4
  22. package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
  23. package/dist/{chunk-7G7UOQV4.cjs → chunk-FGEB7RMY.cjs} +4 -4
  24. package/dist/chunk-GKKDAW44.js +8823 -0
  25. package/dist/{chunk-QET3Q4JP.js → chunk-H5POPGOZ.js} +8 -6
  26. package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
  27. package/dist/{chunk-CBRL2PJA.cjs → chunk-JQYC66TO.cjs} +12 -12
  28. package/dist/{chunk-YFIWCYHC.cjs → chunk-JZLGCTGK.cjs} +56 -54
  29. package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
  30. package/dist/chunk-KWFFIJYX.js +11 -0
  31. package/dist/chunk-M4IT6DNJ.cjs +608 -0
  32. package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
  33. package/dist/chunk-NCVX3K2N.cjs +161 -0
  34. package/dist/chunk-NWFMBLSQ.js +4 -0
  35. package/dist/chunk-O5676ZWY.js +585 -0
  36. package/dist/chunk-PUX5VXDB.cjs +8845 -0
  37. package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
  38. package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
  39. package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
  40. package/dist/chunk-UG5RKLU2.cjs +6 -0
  41. package/dist/chunk-VP2B4WM2.js +154 -0
  42. package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
  43. package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
  44. package/dist/{chunk-AYGRYDBX.cjs → chunk-XAYGD4E4.cjs} +37 -35
  45. package/dist/{chunk-46T67CE2.js → chunk-ZA673I3O.js} +1 -1
  46. package/dist/{chunk-YPYCWLYP.js → chunk-ZWXJTBZO.js} +1 -1
  47. package/dist/core/addresses.d.ts +14 -2
  48. package/dist/core/brands.d.ts +8 -2
  49. package/dist/core/errors.d.ts +71 -10
  50. package/dist/core/preflight.d.ts +1 -0
  51. package/dist/fhe/erc7984-abi.d.ts +1 -0
  52. package/dist/fhe/index.cjs +64 -63
  53. package/dist/fhe/index.js +7 -6
  54. package/dist/fhe/operators.d.ts +22 -5
  55. package/dist/fhe/react/index.cjs +13 -12
  56. package/dist/fhe/react/index.js +6 -5
  57. package/dist/fhe/types.d.ts +6 -0
  58. package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
  59. package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
  60. package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
  61. package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
  62. package/dist/fhe-airdrop/abis/index.d.ts +5 -2
  63. package/dist/fhe-airdrop/abis/merkle.d.ts +1238 -0
  64. package/dist/fhe-airdrop/advanced/index.cjs +11 -12
  65. package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
  66. package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
  67. package/dist/fhe-airdrop/advanced/index.js +3 -8
  68. package/dist/fhe-airdrop/advanced/react/index.cjs +37 -50
  69. package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
  70. package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
  71. package/dist/fhe-airdrop/advanced/react/index.js +36 -50
  72. package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
  73. package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
  74. package/dist/fhe-airdrop/airdrop-base.d.ts +600 -0
  75. package/dist/fhe-airdrop/campaign.d.ts +297 -0
  76. package/dist/fhe-airdrop/compliance.d.ts +302 -0
  77. package/dist/fhe-airdrop/constants.d.ts +33 -0
  78. package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
  79. package/dist/fhe-airdrop/encryption.d.ts +92 -14
  80. package/dist/fhe-airdrop/errors.d.ts +245 -15
  81. package/dist/fhe-airdrop/factory.d.ts +533 -274
  82. package/dist/fhe-airdrop/guards.d.ts +273 -0
  83. package/dist/fhe-airdrop/index.cjs +1131 -74
  84. package/dist/fhe-airdrop/index.d.cts +46 -8
  85. package/dist/fhe-airdrop/index.d.ts +46 -8
  86. package/dist/fhe-airdrop/index.js +931 -8
  87. package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
  88. package/dist/fhe-airdrop/merkle.d.ts +180 -0
  89. package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
  90. package/dist/fhe-airdrop/react/index.cjs +399 -459
  91. package/dist/fhe-airdrop/react/index.d.cts +53 -74
  92. package/dist/fhe-airdrop/react/index.d.ts +53 -74
  93. package/dist/fhe-airdrop/react/index.js +261 -374
  94. package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
  95. package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
  96. package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
  97. package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
  98. package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
  99. package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
  100. package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
  101. package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
  102. package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
  103. package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
  104. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +23 -0
  105. package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
  106. package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
  107. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
  108. package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
  109. package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
  110. package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
  111. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +34 -0
  112. package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
  113. package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
  114. package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
  115. package/dist/fhe-airdrop/roles.d.ts +147 -0
  116. package/dist/fhe-airdrop/types.d.ts +67 -65
  117. package/dist/fhe-disperse/index.cjs +70 -68
  118. package/dist/fhe-disperse/index.js +10 -8
  119. package/dist/fhe-disperse/react/index.cjs +94 -92
  120. package/dist/fhe-disperse/react/index.js +13 -11
  121. package/dist/fhe-vesting/advanced/index.cjs +10 -8
  122. package/dist/fhe-vesting/advanced/index.js +8 -6
  123. package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
  124. package/dist/fhe-vesting/advanced/react/index.js +13 -11
  125. package/dist/fhe-vesting/index.cjs +74 -72
  126. package/dist/fhe-vesting/index.js +11 -9
  127. package/dist/fhe-vesting/react/index.cjs +228 -226
  128. package/dist/fhe-vesting/react/index.js +15 -13
  129. package/dist/index.cjs +100 -87
  130. package/dist/index.js +3 -2
  131. package/dist/testnet-faucet/index.cjs +57 -55
  132. package/dist/testnet-faucet/index.js +7 -5
  133. package/dist/testnet-faucet/react/index.cjs +55 -53
  134. package/dist/testnet-faucet/react/index.js +9 -7
  135. package/package.json +6 -2
  136. package/dist/chunk-CNP4L3GF.js +0 -105
  137. package/dist/chunk-KSDSXJ34.js +0 -41
  138. package/dist/chunk-LBWRFZR3.cjs +0 -1681
  139. package/dist/chunk-OL6SHN3D.cjs +0 -44
  140. package/dist/chunk-S2XD75JM.js +0 -1637
  141. package/dist/chunk-SPGSO5SO.cjs +0 -1644
  142. package/dist/chunk-UE5XK2SY.js +0 -1673
  143. package/dist/chunk-WO72UBQD.cjs +0 -109
  144. package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
  145. package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
  146. package/dist/fhe-airdrop/airdrop.d.ts +0 -317
  147. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
  148. package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
  149. package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
  150. package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
  151. package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
  152. package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
  153. package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
  154. package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
  155. package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
  156. package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
  157. package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
  158. package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
  159. package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
  160. package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
  161. package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
  162. package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +0 -16
  163. package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
  164. package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
  165. package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
  166. package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
  167. package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
  168. package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
  169. package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +0 -15
  170. package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
  171. package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
  172. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
  173. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
  174. package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
  175. package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
  176. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
  177. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
  178. package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
  179. package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
  180. package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
  181. package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
  182. package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
  183. package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
  184. package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
  185. package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
  186. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +0 -51
  187. package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
  188. package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
  189. package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
  190. package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
  191. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +0 -31
  192. package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
  193. package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
  194. package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
@@ -1,679 +1,619 @@
1
1
  'use strict';
2
2
 
3
- var chunkWO72UBQD_cjs = require('../../chunk-WO72UBQD.cjs');
4
- var chunkSPGSO5SO_cjs = require('../../chunk-SPGSO5SO.cjs');
5
- var chunkLBWRFZR3_cjs = require('../../chunk-LBWRFZR3.cjs');
6
- var chunkWOEETTH7_cjs = require('../../chunk-WOEETTH7.cjs');
7
- var chunkZQUE2B3Q_cjs = require('../../chunk-ZQUE2B3Q.cjs');
8
- require('../../chunk-4ZCXK4VI.cjs');
9
- require('../../chunk-SYHNZSZZ.cjs');
10
- require('../../chunk-FWHYQZ5E.cjs');
11
- require('../../chunk-43RFBQ73.cjs');
12
- require('../../chunk-WUXUWTFW.cjs');
13
- require('../../chunk-VR3FREBX.cjs');
14
- var chunk2RNW4MIJ_cjs = require('../../chunk-2RNW4MIJ.cjs');
3
+ var chunkCTED3MTR_cjs = require('../../chunk-CTED3MTR.cjs');
4
+ var chunkNCVX3K2N_cjs = require('../../chunk-NCVX3K2N.cjs');
5
+ var chunkPUX5VXDB_cjs = require('../../chunk-PUX5VXDB.cjs');
6
+ var chunkM4IT6DNJ_cjs = require('../../chunk-M4IT6DNJ.cjs');
7
+ require('../../chunk-FAXIIH5R.cjs');
8
+ require('../../chunk-UG5RKLU2.cjs');
9
+ require('../../chunk-MVDQMV25.cjs');
10
+ require('../../chunk-5576FRT3.cjs');
11
+ require('../../chunk-JK4XMMKM.cjs');
12
+ require('../../chunk-66IHPTOK.cjs');
13
+ var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
15
14
  require('../../chunk-VJKZWYYJ.cjs');
16
15
  var reactQuery = require('@tanstack/react-query');
17
- var wagmi = require('wagmi');
18
16
 
19
- function useConfidentialAirdropFactoryImplementation(options = {}) {
20
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
17
+ function useAirdropToken(args) {
18
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
21
19
  return reactQuery.useQuery({
22
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
23
- queryFn: () => client.implementation(),
24
- enabled: !!client,
25
- staleTime: 0
20
+ ...args.query,
21
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
22
+ queryFn: () => client.token(),
23
+ enabled: Boolean(client && (args.query?.enabled ?? true))
26
24
  });
27
25
  }
28
- function useFactoryDefaultGasFee(options = {}) {
29
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
26
+ function useAirdropWindow(args) {
27
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
28
+ return reactQuery.useQuery({
29
+ ...args.query,
30
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "window", args: [] }),
31
+ queryFn: async () => {
32
+ const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
33
+ client.startTime(),
34
+ client.endTime(),
35
+ client.hasClaimStarted(),
36
+ client.hasClaimEnded(),
37
+ client.isClaimWindowActive()
38
+ ]);
39
+ return { startTime, endTime, hasStarted, hasEnded, isActive };
40
+ },
41
+ enabled: Boolean(client && (args.query?.enabled ?? true))
42
+ });
43
+ }
44
+ function useAirdropPaused(args) {
45
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
30
46
  return reactQuery.useQuery({
31
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
32
- queryFn: () => client.defaultGasFee(),
33
- enabled: !!client,
34
- staleTime: 0
47
+ ...args.query,
48
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "paused", args: [] }),
49
+ queryFn: () => client.paused(),
50
+ enabled: Boolean(client && (args.query?.enabled ?? true))
35
51
  });
36
52
  }
37
- function useFactoryFeeCollector(options = {}) {
38
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
53
+ function useAirdropGasFee(args) {
54
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
39
55
  return reactQuery.useQuery({
40
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
41
- queryFn: () => client.feeCollector(),
42
- enabled: !!client,
43
- staleTime: 0
56
+ ...args.query,
57
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "gasFee", args: [] }),
58
+ queryFn: () => client.gasFee(),
59
+ enabled: Boolean(client && (args.query?.enabled ?? true))
44
60
  });
45
61
  }
46
- function useFactoryCustomFee(args = {}) {
47
- const { creator, ...base } = args;
48
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
62
+ function useAirdropHasRole(args) {
63
+ const { role, holder, ...base } = args;
64
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(base);
49
65
  return reactQuery.useQuery({
50
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
51
- queryFn: () => client.getCustomFee(creator),
52
- enabled: !!client && !!creator,
53
- staleTime: 0
66
+ ...args.query,
67
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
68
+ chainId,
69
+ address: args.address,
70
+ fn: "hasRole",
71
+ args: [role, holder]
72
+ }),
73
+ queryFn: () => client.hasRole({ role, holder }),
74
+ enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
54
75
  });
55
76
  }
56
- function useFactoryInitCodeHash(args = {}) {
57
- const { params, gasFee, ...base } = args;
58
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
77
+ function useMerkleRoot(args) {
78
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(args);
59
79
  return reactQuery.useQuery({
60
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:getInitCodeHash", chainId, resolvedAddress, params, gasFee),
61
- queryFn: () => client.getInitCodeHash({ params, gasFee }),
62
- enabled: !!client && !!params && gasFee !== void 0,
63
- staleTime: 0
80
+ ...args.query,
81
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "merkleRoot", args: [] }),
82
+ queryFn: () => client.merkleRoot(),
83
+ enabled: Boolean(client && (args.query?.enabled ?? true))
64
84
  });
65
85
  }
66
- function usePreflightCreateAirdrop(args = {}) {
67
- const { params, creator, userSalt, funding, ...base } = args;
68
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
86
+ function useClaimedAmount(args) {
87
+ const { account, ...base } = args;
88
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(base);
69
89
  return reactQuery.useQuery({
70
- queryKey: chunkWO72UBQD_cjs.buildQueryKey(
71
- "factory:preflightCreateAirdrop",
90
+ ...args.query,
91
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
72
92
  chainId,
73
- resolvedAddress,
74
- creator,
75
- params,
76
- userSalt,
77
- funding
78
- ),
79
- queryFn: () => client.preflightCreateAirdrop({
80
- params,
81
- creator,
82
- ...userSalt !== void 0 ? { userSalt } : {},
83
- ...funding !== void 0 ? { funding } : {}
93
+ address: args.address,
94
+ fn: "getClaimedAmount",
95
+ args: [account]
84
96
  }),
85
- enabled: !!client && !!params && !!creator,
86
- staleTime: 0
97
+ queryFn: () => client.getClaimedAmount(account),
98
+ enabled: Boolean(client && account && (args.query?.enabled ?? true))
87
99
  });
88
100
  }
89
- function useCreateConfidentialAirdropAndGetAddress(options = {}) {
90
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
91
- return reactQuery.useMutation({
92
- mutationFn: async (args) => {
93
- if (!client) {
94
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdropAndGetAddress", "factory");
95
- }
96
- return client.createConfidentialAirdropAndGetAddress(args);
97
- }
101
+ function useComplianceManager(args) {
102
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
103
+ return reactQuery.useQuery({
104
+ ...args.query,
105
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
106
+ chainId,
107
+ address: args.address,
108
+ fn: "complianceManager",
109
+ args: []
110
+ }),
111
+ queryFn: () => client.complianceManager(),
112
+ enabled: Boolean(client && (args.query?.enabled ?? true))
113
+ });
114
+ }
115
+ function useFactoryFees(args = {}) {
116
+ const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(args);
117
+ return reactQuery.useQuery({
118
+ ...args.query,
119
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
120
+ queryFn: async () => {
121
+ const [feeCollector, defaultGasFee] = await Promise.all([
122
+ client.feeCollector(),
123
+ client.defaultGasFee()
124
+ ]);
125
+ return { feeCollector, defaultGasFee };
126
+ },
127
+ enabled: Boolean(client && (args.query?.enabled ?? true))
128
+ });
129
+ }
130
+ function useFactoryRegistry(args = {}) {
131
+ const { offset = 0n, limit = 50n, ...base } = args;
132
+ const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(base);
133
+ return reactQuery.useQuery({
134
+ ...args.query,
135
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
136
+ chainId,
137
+ address: resolvedAddress,
138
+ fn: "registry",
139
+ args: [offset, limit]
140
+ }),
141
+ queryFn: async () => {
142
+ const [count, items] = await Promise.all([
143
+ client.airdropCount(),
144
+ client.airdrops(offset, limit)
145
+ ]);
146
+ return { count, items };
147
+ },
148
+ enabled: Boolean(client && (args.query?.enabled ?? true))
98
149
  });
99
150
  }
100
- function useCreateConfidentialAirdrop(options = {}) {
101
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
151
+ function useEffectiveUpgradeable(args = {}) {
152
+ const { creator, ...base } = args;
153
+ const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(base);
154
+ return reactQuery.useQuery({
155
+ ...args.query,
156
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
157
+ chainId,
158
+ address: resolvedAddress,
159
+ fn: "effectiveUpgradeable",
160
+ args: [creator]
161
+ }),
162
+ queryFn: () => client.effectiveUpgradeable(creator),
163
+ enabled: Boolean(client && creator && (args.query?.enabled ?? true))
164
+ });
165
+ }
166
+ function useCreateEcdsaAirdrop(options = {}) {
167
+ const { client, resolutionError, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
168
+ const queryClient = reactQuery.useQueryClient();
102
169
  return reactQuery.useMutation({
103
170
  mutationFn: async (args) => {
104
171
  if (!client) {
105
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdrop", "factory");
172
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateEcdsaAirdrop", "factory");
106
173
  }
107
- return client.createConfidentialAirdrop(args);
174
+ return client.createEcdsaAirdrop(args);
175
+ },
176
+ onSuccess: () => {
177
+ void queryClient.invalidateQueries({
178
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
179
+ });
108
180
  }
109
181
  });
110
182
  }
111
- function useCreateAndFundConfidentialAirdrop(options = {}) {
112
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
183
+ function useCreateMerkleAirdrop(options = {}) {
184
+ const { client, resolutionError, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
185
+ const queryClient = reactQuery.useQueryClient();
113
186
  return reactQuery.useMutation({
114
187
  mutationFn: async (args) => {
115
188
  if (!client) {
116
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdrop", "factory");
189
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateMerkleAirdrop", "factory");
117
190
  }
118
- return client.createAndFundConfidentialAirdrop(args);
191
+ return client.createMerkleAirdrop(args);
192
+ },
193
+ onSuccess: () => {
194
+ void queryClient.invalidateQueries({
195
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
196
+ });
119
197
  }
120
198
  });
121
199
  }
122
- function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
123
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
200
+ function useFundAirdrop(options = {}) {
201
+ const { client, resolutionError } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
124
202
  return reactQuery.useMutation({
125
203
  mutationFn: async (args) => {
126
204
  if (!client) {
127
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdropAndGetAddress", "factory");
205
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useFundAirdrop", "factory");
128
206
  }
129
- return client.createAndFundConfidentialAirdropAndGetAddress(args);
207
+ return client.fundAirdrop(args);
130
208
  }
131
209
  });
132
210
  }
133
- function useFundConfidentialAirdrop(options = {}) {
134
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
211
+ function useEcdsaClaim(options) {
212
+ const { client } = chunkNCVX3K2N_cjs.useMemoEcdsaAirdropClient(options);
135
213
  return reactQuery.useMutation({
136
214
  mutationFn: async (args) => {
137
215
  if (!client) {
138
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useFundConfidentialAirdrop", "factory");
216
+ throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
139
217
  }
140
- return client.fundConfidentialAirdrop(args);
141
- }
142
- });
143
- }
144
- function useSetFeeCollector(options = {}) {
145
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
146
- return reactQuery.useMutation({
147
- mutationFn: async ({ newFeeCollector, account }) => {
148
- if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetFeeCollector", "factory");
149
- return client.setFeeCollector(newFeeCollector, account);
150
- }
151
- });
152
- }
153
- function useSetDefaultGasFee(options = {}) {
154
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
155
- return reactQuery.useMutation({
156
- mutationFn: async ({ newGasFee, account }) => {
157
- if (!client)
158
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetDefaultGasFee", "factory");
159
- return client.setDefaultGasFee(newGasFee, account);
160
- }
161
- });
162
- }
163
- function useSetCustomFee(options = {}) {
164
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
165
- return reactQuery.useMutation({
166
- mutationFn: async ({ campaignCreator, gasFee, account }) => {
167
- if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetCustomFee", "factory");
168
- return client.setCustomFee(campaignCreator, gasFee, account);
218
+ return client.claim(args);
169
219
  }
170
220
  });
171
221
  }
172
- function useDisableCustomFee(options = {}) {
173
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
174
- return reactQuery.useMutation({
175
- mutationFn: async ({ campaignCreator, account }) => {
176
- if (!client)
177
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDisableCustomFee", "factory");
178
- return client.disableCustomFee(campaignCreator, account);
179
- }
180
- });
181
- }
182
- function useAirdropToken(options) {
183
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
184
- return reactQuery.useQuery({
185
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:TOKEN", chainId, options.address),
186
- queryFn: () => client.token(),
187
- enabled: !!client,
188
- staleTime: 0
189
- });
190
- }
191
- function useAirdropGasFee(options) {
192
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
193
- return reactQuery.useQuery({
194
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:GAS_FEE", chainId, options.address),
195
- queryFn: () => client.gasFee(),
196
- enabled: !!client,
197
- staleTime: 0
198
- });
199
- }
200
- function useAirdropStartTime(options) {
201
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
202
- return reactQuery.useQuery({
203
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:START_TIME", chainId, options.address),
204
- queryFn: () => client.startTime(),
205
- enabled: !!client,
206
- staleTime: 0
207
- });
208
- }
209
- function useAirdropCanExtendClaimWindow(options) {
210
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
211
- return reactQuery.useQuery({
212
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CAN_EXTEND_CLAIM_WINDOW", chainId, options.address),
213
- queryFn: () => client.canExtendClaimWindow(),
214
- enabled: !!client,
215
- staleTime: 0
216
- });
217
- }
218
- function useAirdropEndTime(options) {
219
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
220
- return reactQuery.useQuery({
221
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:endTime", chainId, options.address),
222
- queryFn: () => client.endTime(),
223
- enabled: !!client,
224
- staleTime: 0
225
- });
226
- }
227
- function useAirdropIsPaused(options) {
228
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
229
- return reactQuery.useQuery({
230
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isPaused", chainId, options.address),
231
- queryFn: () => client.isPaused(),
232
- enabled: !!client,
233
- staleTime: 0
234
- });
235
- }
236
- function useAirdropDeploymentBlockNumber(options) {
237
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
238
- return reactQuery.useQuery({
239
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:deploymentBlockNumber", chainId, options.address),
240
- queryFn: () => client.deploymentBlockNumber(),
241
- enabled: !!client,
242
- staleTime: 0
243
- });
244
- }
245
- function useAirdropDomainSeparator(options) {
246
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
247
- return reactQuery.useQuery({
248
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:DOMAIN_SEPARATOR", chainId, options.address),
249
- queryFn: () => client.domainSeparator(),
250
- enabled: !!client,
251
- staleTime: 0
252
- });
253
- }
254
- function useAirdropClaimTypehash(options) {
255
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
256
- return reactQuery.useQuery({
257
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CLAIM_TYPEHASH", chainId, options.address),
258
- queryFn: () => client.claimTypehash(),
259
- enabled: !!client,
260
- staleTime: 0
261
- });
262
- }
263
- function useAirdropIsClaimWindowActive(options) {
264
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
265
- return reactQuery.useQuery({
266
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isClaimWindowActive", chainId, options.address),
267
- queryFn: () => client.isClaimWindowActive(),
268
- enabled: !!client,
269
- staleTime: 0
270
- });
271
- }
272
- function useAirdropHasClaimStarted(options) {
273
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
274
- return reactQuery.useQuery({
275
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimStarted", chainId, options.address),
276
- queryFn: () => client.hasClaimStarted(),
277
- enabled: !!client,
278
- staleTime: 0
279
- });
280
- }
281
- function useAirdropHasClaimEnded(options) {
282
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
283
- return reactQuery.useQuery({
284
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimEnded", chainId, options.address),
285
- queryFn: () => client.hasClaimEnded(),
286
- enabled: !!client,
287
- staleTime: 0
288
- });
289
- }
290
- function useAirdropClaimedSignatures(args) {
291
- const { signatureHash, ...base } = args;
292
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
293
- return reactQuery.useQuery({
294
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:claimedSignatures", chainId, base.address, signatureHash),
295
- queryFn: () => client.claimedSignatures(signatureHash),
296
- enabled: !!client && !!signatureHash,
297
- staleTime: 0
298
- });
299
- }
300
- function useAirdropIsSignatureClaimed(args) {
301
- const { user, encryptedAmountHandle, ...base } = args;
302
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
303
- return reactQuery.useQuery({
304
- queryKey: chunkWO72UBQD_cjs.buildQueryKey(
305
- "airdrop:isSignatureClaimed",
306
- chainId,
307
- base.address,
308
- user,
309
- encryptedAmountHandle
310
- ),
311
- queryFn: () => client.isSignatureClaimed(user, encryptedAmountHandle),
312
- enabled: !!client && !!user && !!encryptedAmountHandle,
313
- staleTime: 0
314
- });
315
- }
316
- function useAirdropIsSignatureValid(args) {
317
- const { encryptedAmountHandle, signature, caller, ...base } = args;
318
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
319
- const { address: connectedAddress } = chunkZQUE2B3Q_cjs.useWagmiAccount();
320
- const resolvedCaller = caller ?? connectedAddress;
321
- return reactQuery.useQuery({
322
- queryKey: chunkWO72UBQD_cjs.buildQueryKey(
323
- "airdrop:isSignatureValid",
324
- chainId,
325
- base.address,
326
- encryptedAmountHandle,
327
- signature,
328
- resolvedCaller
329
- ),
330
- queryFn: () => client.isSignatureValid({
331
- encryptedAmountHandle,
332
- signature,
333
- caller: resolvedCaller
334
- }),
335
- enabled: !!client && !!encryptedAmountHandle && !!signature && !!resolvedCaller,
336
- staleTime: 0
337
- });
338
- }
339
- function useAirdropHasRole(args) {
340
- const { role, account, ...base } = args;
341
- const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
342
- return reactQuery.useQuery({
343
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasRole", chainId, base.address, role, account),
344
- queryFn: () => client.hasRole(role, account),
345
- enabled: !!client && !!role && !!account,
346
- staleTime: 0
347
- });
348
- }
349
- function useClaim(options) {
350
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
222
+ function useMerkleClaim(options) {
223
+ const { client, chainId, walletClient } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(options);
224
+ const queryClient = reactQuery.useQueryClient();
351
225
  return reactQuery.useMutation({
352
226
  mutationFn: async (args) => {
353
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useClaim", "airdrop");
227
+ if (!client) {
228
+ throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaim", "merkle-airdrop");
229
+ }
354
230
  return client.claim(args);
231
+ },
232
+ onMutate: (variables) => {
233
+ const account = variables.account ?? walletClient?.account;
234
+ return {
235
+ claimant: account ? typeof account === "string" ? account : account.address : void 0
236
+ };
237
+ },
238
+ onSuccess: (_hash, _variables, context) => {
239
+ if (!context?.claimant) return;
240
+ void queryClient.invalidateQueries({
241
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
242
+ chainId,
243
+ address: options.address,
244
+ fn: "getClaimedAmount",
245
+ args: [context.claimant]
246
+ })
247
+ });
355
248
  }
356
249
  });
357
250
  }
358
- function useAccessClaimAmount(options) {
359
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
251
+ function useSetMerkleRoot(options) {
252
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(options);
253
+ const queryClient = reactQuery.useQueryClient();
360
254
  return reactQuery.useMutation({
361
255
  mutationFn: async (args) => {
362
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAccessClaimAmount", "airdrop");
363
- return client.getClaimAmount(args);
256
+ if (!client) {
257
+ throw new chunk67OV5CX2_cjs.MissingClientError("useSetMerkleRoot", "merkle-airdrop");
258
+ }
259
+ return client.setMerkleRoot(args);
260
+ },
261
+ onSuccess: () => {
262
+ void queryClient.invalidateQueries({
263
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
264
+ chainId,
265
+ address: options.address,
266
+ fn: "merkleRoot",
267
+ args: []
268
+ })
269
+ });
364
270
  }
365
271
  });
366
272
  }
367
- var useGetClaimAmount = useAccessClaimAmount;
368
- function useWithdraw(options) {
369
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
273
+ function useGrantInstanceRoles(options) {
274
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
275
+ const queryClient = reactQuery.useQueryClient();
370
276
  return reactQuery.useMutation({
371
- mutationFn: async ({ recipient, account }) => {
372
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdraw", "airdrop");
373
- return client.withdraw(recipient, account);
277
+ mutationFn: async (args) => {
278
+ if (!client) {
279
+ throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
280
+ }
281
+ return chunkCTED3MTR_cjs.grantInstanceRoles({
282
+ airdrop: client,
283
+ assignment: args.assignment,
284
+ ...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
285
+ });
286
+ },
287
+ onSuccess: () => {
288
+ void queryClient.invalidateQueries({
289
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: options.address, fn: "hasRole" })
290
+ });
374
291
  }
375
292
  });
376
293
  }
377
- function useSetPaused(options) {
378
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
294
+ function useAirdropPause(options) {
295
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
296
+ const queryClient = reactQuery.useQueryClient();
379
297
  return reactQuery.useMutation({
380
- mutationFn: async ({ paused, account }) => {
381
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useSetPaused", "airdrop");
382
- return client.setPaused(paused, account);
298
+ mutationFn: async ({ paused, ...rest }) => {
299
+ if (!client) {
300
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropPause", "airdrop-base");
301
+ }
302
+ return paused ? client.pause(rest) : client.unpause(rest);
303
+ },
304
+ onSuccess: () => {
305
+ void queryClient.invalidateQueries({
306
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
307
+ });
308
+ void queryClient.invalidateQueries({
309
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
310
+ });
383
311
  }
384
312
  });
385
313
  }
386
314
  function useExtendClaimWindow(options) {
387
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
388
- return reactQuery.useMutation({
389
- mutationFn: async ({ newEndTime, account }) => {
390
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
391
- return client.extendClaimWindow(newEndTime, account);
392
- }
393
- });
394
- }
395
- function useWithdrawOtherToken(options) {
396
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
397
- return reactQuery.useMutation({
398
- mutationFn: async ({ tokenAddress, recipient, account }) => {
399
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherToken", "airdrop");
400
- return client.withdrawOtherToken(tokenAddress, recipient, account);
401
- }
402
- });
403
- }
404
- function useWithdrawOtherConfidentialToken(options) {
405
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
406
- return reactQuery.useMutation({
407
- mutationFn: async ({ tokenAddress, recipient, account }) => {
408
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "airdrop");
409
- return client.withdrawOtherConfidentialToken(tokenAddress, recipient, account);
410
- }
411
- });
412
- }
413
- function useAirdropWithdrawGasFee(options) {
414
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
315
+ const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
316
+ const queryClient = reactQuery.useQueryClient();
415
317
  return reactQuery.useMutation({
416
- mutationFn: async ({ recipient, amount, account }) => {
417
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropWithdrawGasFee", "airdrop");
418
- return client.withdrawGasFee(recipient, amount, account);
419
- }
420
- });
421
- }
422
- function useAirdropGrantRole(options) {
423
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
424
- return reactQuery.useMutation({
425
- mutationFn: async ({ role, accountTarget, account }) => {
426
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropGrantRole", "airdrop");
427
- return client.grantRole(role, accountTarget, account);
428
- }
429
- });
430
- }
431
- function useAirdropRevokeRole(options) {
432
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
433
- return reactQuery.useMutation({
434
- mutationFn: async ({ role, accountTarget, account }) => {
435
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropRevokeRole", "airdrop");
436
- return client.revokeRole(role, accountTarget, account);
318
+ mutationFn: async (args) => {
319
+ if (!client) {
320
+ throw new chunk67OV5CX2_cjs.MissingClientError("useExtendClaimWindow", "airdrop-base");
321
+ }
322
+ return client.extendClaimWindow(args);
323
+ },
324
+ onSuccess: () => {
325
+ void queryClient.invalidateQueries({
326
+ queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
327
+ });
437
328
  }
438
329
  });
439
330
  }
440
- function useSignClaimAuthorization(options = {}) {
441
- const { data: walletClient } = wagmi.useWalletClient({ chainId: options.chainId });
331
+ function useWithdrawConfidential(options) {
332
+ const { client } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
442
333
  return reactQuery.useMutation({
443
334
  mutationFn: async (args) => {
444
- if (!walletClient) {
445
- throw new chunk2RNW4MIJ_cjs.MissingWalletClientError("useSignClaimAuthorization");
335
+ if (!client) {
336
+ throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawConfidential", "airdrop-base");
446
337
  }
447
- return chunkLBWRFZR3_cjs.signClaimAuthorization({
448
- walletClient,
449
- airdropAddress: args.airdropAddress,
450
- recipient: args.recipient,
451
- encryptedAmountHandle: args.encryptedAmountHandle
452
- });
338
+ return client.withdrawConfidential(args);
453
339
  }
454
340
  });
455
341
  }
456
342
 
457
- Object.defineProperty(exports, "AlreadyClaimedError", {
343
+ Object.defineProperty(exports, "buildMerkleCampaign", {
458
344
  enumerable: true,
459
- get: function () { return chunkSPGSO5SO_cjs.AlreadyClaimedError; }
345
+ get: function () { return chunkCTED3MTR_cjs.buildMerkleCampaign; }
460
346
  });
461
- Object.defineProperty(exports, "ClaimNotStartedError", {
347
+ Object.defineProperty(exports, "buildMerkleTree", {
462
348
  enumerable: true,
463
- get: function () { return chunkSPGSO5SO_cjs.ClaimNotStartedError; }
349
+ get: function () { return chunkCTED3MTR_cjs.buildMerkleTree; }
464
350
  });
465
- Object.defineProperty(exports, "ClaimWindowClosedError", {
351
+ Object.defineProperty(exports, "encryptCampaignAmounts", {
352
+ enumerable: true,
353
+ get: function () { return chunkCTED3MTR_cjs.encryptCampaignAmounts; }
354
+ });
355
+ Object.defineProperty(exports, "grantInstanceRoles", {
356
+ enumerable: true,
357
+ get: function () { return chunkCTED3MTR_cjs.grantInstanceRoles; }
358
+ });
359
+ Object.defineProperty(exports, "leafOf", {
466
360
  enumerable: true,
467
- get: function () { return chunkSPGSO5SO_cjs.ClaimWindowClosedError; }
361
+ get: function () { return chunkCTED3MTR_cjs.leafOf; }
362
+ });
363
+ Object.defineProperty(exports, "planInstanceRoleSplit", {
364
+ enumerable: true,
365
+ get: function () { return chunkCTED3MTR_cjs.planInstanceRoleSplit; }
366
+ });
367
+ Object.defineProperty(exports, "planMerkleCampaign", {
368
+ enumerable: true,
369
+ get: function () { return chunkCTED3MTR_cjs.planMerkleCampaign; }
370
+ });
371
+ Object.defineProperty(exports, "rotateMerkleRoot", {
372
+ enumerable: true,
373
+ get: function () { return chunkCTED3MTR_cjs.rotateMerkleRoot; }
374
+ });
375
+ Object.defineProperty(exports, "validateCampaignRecipients", {
376
+ enumerable: true,
377
+ get: function () { return chunkCTED3MTR_cjs.validateCampaignRecipients; }
378
+ });
379
+ Object.defineProperty(exports, "airdropQueryKey", {
380
+ enumerable: true,
381
+ get: function () { return chunkNCVX3K2N_cjs.airdropQueryKey; }
382
+ });
383
+ Object.defineProperty(exports, "airdropQueryKeyPrefix", {
384
+ enumerable: true,
385
+ get: function () { return chunkNCVX3K2N_cjs.airdropQueryKeyPrefix; }
468
386
  });
469
387
  Object.defineProperty(exports, "encryptUint64", {
470
388
  enumerable: true,
471
- get: function () { return chunkLBWRFZR3_cjs.encryptUint64; }
389
+ get: function () { return chunkPUX5VXDB_cjs.encryptUint64; }
472
390
  });
473
391
  Object.defineProperty(exports, "encryptUint64Batch", {
474
392
  enumerable: true,
475
- get: function () { return chunkLBWRFZR3_cjs.encryptUint64Batch; }
393
+ get: function () { return chunkPUX5VXDB_cjs.encryptUint64Batch; }
476
394
  });
477
395
  Object.defineProperty(exports, "resolveEncryptor", {
478
396
  enumerable: true,
479
- get: function () { return chunkLBWRFZR3_cjs.resolveEncryptor; }
397
+ get: function () { return chunkPUX5VXDB_cjs.resolveEncryptor; }
480
398
  });
481
399
  Object.defineProperty(exports, "signClaimAuthorization", {
482
400
  enumerable: true,
483
- get: function () { return chunkLBWRFZR3_cjs.signClaimAuthorization; }
401
+ get: function () { return chunkPUX5VXDB_cjs.signClaimAuthorization; }
402
+ });
403
+ Object.defineProperty(exports, "AlreadyClaimedError", {
404
+ enumerable: true,
405
+ get: function () { return chunkM4IT6DNJ_cjs.AlreadyClaimedError; }
406
+ });
407
+ Object.defineProperty(exports, "ClaimNotStartedError", {
408
+ enumerable: true,
409
+ get: function () { return chunkM4IT6DNJ_cjs.ClaimNotStartedError; }
410
+ });
411
+ Object.defineProperty(exports, "ClaimWindowClosedError", {
412
+ enumerable: true,
413
+ get: function () { return chunkM4IT6DNJ_cjs.ClaimWindowClosedError; }
414
+ });
415
+ Object.defineProperty(exports, "DedupIdConsumedError", {
416
+ enumerable: true,
417
+ get: function () { return chunkM4IT6DNJ_cjs.DedupIdConsumedError; }
418
+ });
419
+ Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
420
+ enumerable: true,
421
+ get: function () { return chunkM4IT6DNJ_cjs.FeeCollectorSelfAdministeredError; }
422
+ });
423
+ Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
424
+ enumerable: true,
425
+ get: function () { return chunkM4IT6DNJ_cjs.MerkleUupsUnsupportedError; }
426
+ });
427
+ Object.defineProperty(exports, "NonStockWrapperError", {
428
+ enumerable: true,
429
+ get: function () { return chunkM4IT6DNJ_cjs.NonStockWrapperError; }
430
+ });
431
+ Object.defineProperty(exports, "PredictionDriftError", {
432
+ enumerable: true,
433
+ get: function () { return chunkM4IT6DNJ_cjs.PredictionDriftError; }
434
+ });
435
+ Object.defineProperty(exports, "SaltCollisionError", {
436
+ enumerable: true,
437
+ get: function () { return chunkM4IT6DNJ_cjs.SaltCollisionError; }
438
+ });
439
+ Object.defineProperty(exports, "SignatureExpiredError", {
440
+ enumerable: true,
441
+ get: function () { return chunkM4IT6DNJ_cjs.SignatureExpiredError; }
442
+ });
443
+ Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
444
+ enumerable: true,
445
+ get: function () { return chunkM4IT6DNJ_cjs.UpgradeabilityNotAllowedError; }
484
446
  });
485
- Object.defineProperty(exports, "useEnsureOperator", {
447
+ Object.defineProperty(exports, "preflightClaim", {
486
448
  enumerable: true,
487
- get: function () { return chunkWOEETTH7_cjs.useEnsureOperator; }
449
+ get: function () { return chunkM4IT6DNJ_cjs.preflightClaim; }
488
450
  });
489
- Object.defineProperty(exports, "useIsOperator", {
451
+ Object.defineProperty(exports, "preflightCreate", {
490
452
  enumerable: true,
491
- get: function () { return chunkWOEETTH7_cjs.useIsOperator; }
453
+ get: function () { return chunkM4IT6DNJ_cjs.preflightCreate; }
492
454
  });
493
455
  Object.defineProperty(exports, "AccessDeniedError", {
494
456
  enumerable: true,
495
- get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
457
+ get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
496
458
  });
497
459
  Object.defineProperty(exports, "AlreadyInitializedError", {
498
460
  enumerable: true,
499
- get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
461
+ get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
500
462
  });
501
463
  Object.defineProperty(exports, "BatchTooLargeError", {
502
464
  enumerable: true,
503
- get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
465
+ get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
504
466
  });
505
467
  Object.defineProperty(exports, "ContractRevertError", {
506
468
  enumerable: true,
507
- get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
469
+ get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
508
470
  });
509
471
  Object.defineProperty(exports, "DecryptionFailedError", {
510
472
  enumerable: true,
511
- get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
473
+ get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
512
474
  });
513
475
  Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
514
476
  enumerable: true,
515
- get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
477
+ get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
516
478
  });
517
479
  Object.defineProperty(exports, "EncryptionFailedError", {
518
480
  enumerable: true,
519
- get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
481
+ get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
520
482
  });
521
483
  Object.defineProperty(exports, "FeatureDisabledError", {
522
484
  enumerable: true,
523
- get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
485
+ get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
524
486
  });
525
487
  Object.defineProperty(exports, "FheHandleNotAllowedError", {
526
488
  enumerable: true,
527
- get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
489
+ get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
528
490
  });
529
491
  Object.defineProperty(exports, "InsufficientBalanceError", {
530
492
  enumerable: true,
531
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
493
+ get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
532
494
  });
533
495
  Object.defineProperty(exports, "InsufficientFeeError", {
534
496
  enumerable: true,
535
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
497
+ get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
536
498
  });
537
499
  Object.defineProperty(exports, "InsufficientGasFundsError", {
538
500
  enumerable: true,
539
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
501
+ get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
540
502
  });
541
503
  Object.defineProperty(exports, "InvalidArgumentError", {
542
504
  enumerable: true,
543
- get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
505
+ get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
544
506
  });
545
507
  Object.defineProperty(exports, "InvalidSignatureError", {
546
508
  enumerable: true,
547
- get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
509
+ get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
548
510
  });
549
511
  Object.defineProperty(exports, "MissingAccountError", {
550
512
  enumerable: true,
551
- get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
513
+ get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
552
514
  });
553
515
  Object.defineProperty(exports, "MissingClientError", {
554
516
  enumerable: true,
555
- get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
517
+ get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
556
518
  });
557
519
  Object.defineProperty(exports, "MissingEncryptorError", {
558
520
  enumerable: true,
559
- get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
521
+ get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
560
522
  });
561
523
  Object.defineProperty(exports, "MissingPublicClientError", {
562
524
  enumerable: true,
563
- get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
525
+ get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
564
526
  });
565
527
  Object.defineProperty(exports, "MissingWalletClientError", {
566
528
  enumerable: true,
567
- get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
529
+ get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
568
530
  });
569
531
  Object.defineProperty(exports, "NetworkError", {
570
532
  enumerable: true,
571
- get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
533
+ get: function () { return chunk67OV5CX2_cjs.NetworkError; }
572
534
  });
573
535
  Object.defineProperty(exports, "OperatorNotApprovedError", {
574
536
  enumerable: true,
575
- get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
537
+ get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
576
538
  });
577
539
  Object.defineProperty(exports, "PausedError", {
578
540
  enumerable: true,
579
- get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
541
+ get: function () { return chunk67OV5CX2_cjs.PausedError; }
580
542
  });
581
543
  Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
582
544
  enumerable: true,
583
- get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
545
+ get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
584
546
  });
585
547
  Object.defineProperty(exports, "ReceiptEventNotFoundError", {
586
548
  enumerable: true,
587
- get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
549
+ get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
588
550
  });
589
551
  Object.defineProperty(exports, "ReentrancyError", {
590
552
  enumerable: true,
591
- get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
553
+ get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
592
554
  });
593
555
  Object.defineProperty(exports, "RelayerUnreachableError", {
594
556
  enumerable: true,
595
- get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
557
+ get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
596
558
  });
597
559
  Object.defineProperty(exports, "SigningFailedError", {
598
560
  enumerable: true,
599
- get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
561
+ get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
600
562
  });
601
563
  Object.defineProperty(exports, "TokenOpsSdkError", {
602
564
  enumerable: true,
603
- get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
565
+ get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
604
566
  });
605
567
  Object.defineProperty(exports, "TransferFailedError", {
606
568
  enumerable: true,
607
- get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
569
+ get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
608
570
  });
609
571
  Object.defineProperty(exports, "UnknownWriteFailureError", {
610
572
  enumerable: true,
611
- get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
573
+ get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
612
574
  });
613
575
  Object.defineProperty(exports, "UnsupportedChainError", {
614
576
  enumerable: true,
615
- get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
577
+ get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
616
578
  });
617
579
  Object.defineProperty(exports, "UserDecryptNotAllowedError", {
618
580
  enumerable: true,
619
- get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
581
+ get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
620
582
  });
621
583
  Object.defineProperty(exports, "UserRejectedSignatureError", {
622
584
  enumerable: true,
623
- get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
585
+ get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
624
586
  });
625
587
  Object.defineProperty(exports, "WalletChainMismatchError", {
626
588
  enumerable: true,
627
- get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
589
+ get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
628
590
  });
629
591
  Object.defineProperty(exports, "WalletRejectedError", {
630
592
  enumerable: true,
631
- get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
593
+ get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
632
594
  });
633
595
  Object.defineProperty(exports, "isTokenOpsSdkError", {
634
596
  enumerable: true,
635
- get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
597
+ get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
636
598
  });
637
- exports.useAccessClaimAmount = useAccessClaimAmount;
638
- exports.useAirdropCanExtendClaimWindow = useAirdropCanExtendClaimWindow;
639
- exports.useAirdropClaimTypehash = useAirdropClaimTypehash;
640
- exports.useAirdropClaimedSignatures = useAirdropClaimedSignatures;
641
- exports.useAirdropDeploymentBlockNumber = useAirdropDeploymentBlockNumber;
642
- exports.useAirdropDomainSeparator = useAirdropDomainSeparator;
643
- exports.useAirdropEndTime = useAirdropEndTime;
644
599
  exports.useAirdropGasFee = useAirdropGasFee;
645
- exports.useAirdropGrantRole = useAirdropGrantRole;
646
- exports.useAirdropHasClaimEnded = useAirdropHasClaimEnded;
647
- exports.useAirdropHasClaimStarted = useAirdropHasClaimStarted;
648
600
  exports.useAirdropHasRole = useAirdropHasRole;
649
- exports.useAirdropIsClaimWindowActive = useAirdropIsClaimWindowActive;
650
- exports.useAirdropIsPaused = useAirdropIsPaused;
651
- exports.useAirdropIsSignatureClaimed = useAirdropIsSignatureClaimed;
652
- exports.useAirdropIsSignatureValid = useAirdropIsSignatureValid;
653
- exports.useAirdropRevokeRole = useAirdropRevokeRole;
654
- exports.useAirdropStartTime = useAirdropStartTime;
601
+ exports.useAirdropPause = useAirdropPause;
602
+ exports.useAirdropPaused = useAirdropPaused;
655
603
  exports.useAirdropToken = useAirdropToken;
656
- exports.useAirdropWithdrawGasFee = useAirdropWithdrawGasFee;
657
- exports.useClaim = useClaim;
658
- exports.useConfidentialAirdropFactoryImplementation = useConfidentialAirdropFactoryImplementation;
659
- exports.useCreateAndFundConfidentialAirdrop = useCreateAndFundConfidentialAirdrop;
660
- exports.useCreateAndFundConfidentialAirdropAndGetAddress = useCreateAndFundConfidentialAirdropAndGetAddress;
661
- exports.useCreateConfidentialAirdrop = useCreateConfidentialAirdrop;
662
- exports.useCreateConfidentialAirdropAndGetAddress = useCreateConfidentialAirdropAndGetAddress;
663
- exports.useDisableCustomFee = useDisableCustomFee;
604
+ exports.useAirdropWindow = useAirdropWindow;
605
+ exports.useClaimedAmount = useClaimedAmount;
606
+ exports.useComplianceManager = useComplianceManager;
607
+ exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
608
+ exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
609
+ exports.useEcdsaClaim = useEcdsaClaim;
610
+ exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
664
611
  exports.useExtendClaimWindow = useExtendClaimWindow;
665
- exports.useFactoryCustomFee = useFactoryCustomFee;
666
- exports.useFactoryDefaultGasFee = useFactoryDefaultGasFee;
667
- exports.useFactoryFeeCollector = useFactoryFeeCollector;
668
- exports.useFactoryInitCodeHash = useFactoryInitCodeHash;
669
- exports.useFundConfidentialAirdrop = useFundConfidentialAirdrop;
670
- exports.useGetClaimAmount = useGetClaimAmount;
671
- exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
672
- exports.useSetCustomFee = useSetCustomFee;
673
- exports.useSetDefaultGasFee = useSetDefaultGasFee;
674
- exports.useSetFeeCollector = useSetFeeCollector;
675
- exports.useSetPaused = useSetPaused;
676
- exports.useSignClaimAuthorization = useSignClaimAuthorization;
677
- exports.useWithdraw = useWithdraw;
678
- exports.useWithdrawOtherConfidentialToken = useWithdrawOtherConfidentialToken;
679
- exports.useWithdrawOtherToken = useWithdrawOtherToken;
612
+ exports.useFactoryFees = useFactoryFees;
613
+ exports.useFactoryRegistry = useFactoryRegistry;
614
+ exports.useFundAirdrop = useFundAirdrop;
615
+ exports.useGrantInstanceRoles = useGrantInstanceRoles;
616
+ exports.useMerkleClaim = useMerkleClaim;
617
+ exports.useMerkleRoot = useMerkleRoot;
618
+ exports.useSetMerkleRoot = useSetMerkleRoot;
619
+ exports.useWithdrawConfidential = useWithdrawConfidential;