@tokenops/sdk 1.6.0 → 2.0.0-alpha.2

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 (263) hide show
  1. package/CHANGELOG.md +77 -8
  2. package/CONTRIBUTING.md +4 -2
  3. package/README.md +146 -90
  4. package/SUPPORT.md +47 -0
  5. package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
  6. package/dist/{chunk-YFIWCYHC.cjs → chunk-3YHBO2DL.cjs} +56 -54
  7. package/dist/{chunk-QET3Q4JP.js → chunk-44YJPMQC.js} +8 -6
  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-66IHPTOK.cjs +20 -0
  11. package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
  12. package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
  13. package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
  14. package/dist/{chunk-QKKBBH7I.js → chunk-A4DCEE33.js} +34 -7
  15. package/dist/chunk-AREQJHKA.cjs +713 -0
  16. package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
  17. package/dist/chunk-EBLBPUPI.cjs +255 -0
  18. package/dist/chunk-EYDA6Q6C.js +245 -0
  19. package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
  20. package/dist/{chunk-AYGRYDBX.cjs → chunk-FEDX7B6T.cjs} +37 -35
  21. package/dist/{chunk-CBRL2PJA.cjs → chunk-FHWSBGWE.cjs} +12 -12
  22. package/dist/{chunk-WUXUWTFW.cjs → chunk-FT5H2Q7Y.cjs} +37 -7
  23. package/dist/chunk-GADGBQJO.js +423 -0
  24. package/dist/{chunk-VHSNYUYV.js → chunk-IGO5XSPS.js} +5 -5
  25. package/dist/chunk-IUKKNJ2R.cjs +433 -0
  26. package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
  27. package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
  28. package/dist/chunk-KWFFIJYX.js +11 -0
  29. package/dist/{chunk-7G7UOQV4.cjs → chunk-MM5BV5CS.cjs} +4 -4
  30. package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
  31. package/dist/chunk-NWFMBLSQ.js +4 -0
  32. package/dist/{chunk-HETNKZEE.js → chunk-PYYSB5ZN.js} +1 -1
  33. package/dist/chunk-PZZK3O3S.cjs +9843 -0
  34. package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
  35. package/dist/{chunk-WTK6JDSI.js → chunk-SPLNGUFF.js} +6 -4
  36. package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
  37. package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
  38. package/dist/chunk-UG5RKLU2.cjs +6 -0
  39. package/dist/{chunk-EUKPOXWR.cjs → chunk-UHHMVBLU.cjs} +17 -15
  40. package/dist/chunk-VW356KR3.js +688 -0
  41. package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
  42. package/dist/{chunk-V5D7BHW3.js → chunk-WJMEBBU7.js} +6 -4
  43. package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
  44. package/dist/chunk-X7WBPCEU.js +9817 -0
  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 +8 -2
  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 +1250 -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 +619 -51
  69. package/dist/fhe-airdrop/advanced/react/index.d.cts +43 -3
  70. package/dist/fhe-airdrop/advanced/react/index.d.ts +43 -3
  71. package/dist/fhe-airdrop/advanced/react/index.js +592 -52
  72. package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
  73. package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
  74. package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +25 -0
  75. package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
  76. package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
  77. package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
  78. package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
  79. package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
  80. package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
  81. package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
  82. package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +36 -0
  83. package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +35 -0
  84. package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
  85. package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +47 -0
  86. package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
  87. package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
  88. package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
  89. package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
  90. package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
  91. package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
  92. package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
  93. package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +28 -0
  94. package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
  95. package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +28 -0
  96. package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
  97. package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
  98. package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
  99. package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
  100. package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
  101. package/dist/fhe-airdrop/airdrop-base.d.ts +608 -0
  102. package/dist/fhe-airdrop/campaign.d.ts +338 -0
  103. package/dist/fhe-airdrop/compliance.d.ts +302 -0
  104. package/dist/fhe-airdrop/constants.d.ts +33 -0
  105. package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
  106. package/dist/fhe-airdrop/encryption.d.ts +92 -14
  107. package/dist/fhe-airdrop/errors.d.ts +273 -15
  108. package/dist/fhe-airdrop/factory.d.ts +533 -274
  109. package/dist/fhe-airdrop/guards.d.ts +317 -0
  110. package/dist/fhe-airdrop/index.cjs +233 -73
  111. package/dist/fhe-airdrop/index.d.cts +46 -8
  112. package/dist/fhe-airdrop/index.d.ts +46 -8
  113. package/dist/fhe-airdrop/index.js +11 -7
  114. package/dist/fhe-airdrop/merkle-tree.d.ts +97 -0
  115. package/dist/fhe-airdrop/merkle.d.ts +201 -0
  116. package/dist/fhe-airdrop/react/_shared.d.ts +156 -70
  117. package/dist/fhe-airdrop/react/index.cjs +1174 -384
  118. package/dist/fhe-airdrop/react/index.d.cts +99 -74
  119. package/dist/fhe-airdrop/react/index.d.ts +99 -74
  120. package/dist/fhe-airdrop/react/index.js +993 -303
  121. package/dist/fhe-airdrop/react/keys.d.ts +90 -0
  122. package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
  123. package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
  124. package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
  125. package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
  126. package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
  127. package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
  128. package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
  129. package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
  130. package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
  131. package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +29 -10
  132. package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
  133. package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
  134. package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
  135. package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
  136. package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +27 -9
  137. package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
  138. package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
  139. package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
  140. package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
  141. package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
  142. package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
  143. package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
  144. package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
  145. package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
  146. package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
  147. package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
  148. package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
  149. package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
  150. package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
  151. package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
  152. package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
  153. package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
  154. package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
  155. package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
  156. package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
  157. package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
  158. package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
  159. package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
  160. package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +24 -0
  161. package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
  162. package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
  163. package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
  164. package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
  165. package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
  166. package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
  167. package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
  168. package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
  169. package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
  170. package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
  171. package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
  172. package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
  173. package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
  174. package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +22 -0
  175. package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
  176. package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
  177. package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
  178. package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
  179. package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -35
  180. package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
  181. package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
  182. package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
  183. package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
  184. package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
  185. package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +32 -21
  186. package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
  187. package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
  188. package/dist/fhe-airdrop/roles.d.ts +147 -0
  189. package/dist/fhe-airdrop/types.d.ts +78 -63
  190. package/dist/fhe-disperse/index.cjs +70 -68
  191. package/dist/fhe-disperse/index.js +10 -8
  192. package/dist/fhe-disperse/react/index.cjs +94 -92
  193. package/dist/fhe-disperse/react/index.js +13 -11
  194. package/dist/fhe-vesting/advanced/index.cjs +10 -8
  195. package/dist/fhe-vesting/advanced/index.js +8 -6
  196. package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
  197. package/dist/fhe-vesting/advanced/react/index.js +13 -11
  198. package/dist/fhe-vesting/index.cjs +74 -72
  199. package/dist/fhe-vesting/index.js +11 -9
  200. package/dist/fhe-vesting/react/index.cjs +228 -226
  201. package/dist/fhe-vesting/react/index.js +15 -13
  202. package/dist/index.cjs +100 -87
  203. package/dist/index.js +3 -2
  204. package/dist/testnet-faucet/index.cjs +57 -55
  205. package/dist/testnet-faucet/index.js +7 -5
  206. package/dist/testnet-faucet/react/index.cjs +55 -53
  207. package/dist/testnet-faucet/react/index.js +9 -7
  208. package/package.json +6 -2
  209. package/dist/chunk-CNP4L3GF.js +0 -105
  210. package/dist/chunk-KSDSXJ34.js +0 -41
  211. package/dist/chunk-LBWRFZR3.cjs +0 -1681
  212. package/dist/chunk-OL6SHN3D.cjs +0 -44
  213. package/dist/chunk-S2XD75JM.js +0 -1637
  214. package/dist/chunk-SPGSO5SO.cjs +0 -1644
  215. package/dist/chunk-UE5XK2SY.js +0 -1673
  216. package/dist/chunk-WO72UBQD.cjs +0 -109
  217. package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
  218. package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
  219. package/dist/fhe-airdrop/airdrop.d.ts +0 -317
  220. package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
  221. package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
  222. package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
  223. package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
  224. package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
  225. package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
  226. package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
  227. package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
  228. package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
  229. package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
  230. package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
  231. package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
  232. package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
  233. package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
  234. package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
  235. package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
  236. package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
  237. package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
  238. package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
  239. package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
  240. package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
  241. package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
  242. package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
  243. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
  244. package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
  245. package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
  246. package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
  247. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
  248. package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
  249. package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
  250. package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
  251. package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
  252. package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
  253. package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
  254. package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
  255. package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
  256. package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
  257. package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
  258. package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
  259. package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
  260. package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
  261. package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
  262. package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
  263. package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
@@ -1,679 +1,1469 @@
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 chunkIUKKNJ2R_cjs = require('../../chunk-IUKKNJ2R.cjs');
4
+ var chunkEBLBPUPI_cjs = require('../../chunk-EBLBPUPI.cjs');
5
+ var chunkPZZK3O3S_cjs = require('../../chunk-PZZK3O3S.cjs');
6
+ var chunkAREQJHKA_cjs = require('../../chunk-AREQJHKA.cjs');
7
+ require('../../chunk-FAXIIH5R.cjs');
8
+ require('../../chunk-UG5RKLU2.cjs');
9
+ require('../../chunk-MVDQMV25.cjs');
10
+ require('../../chunk-FT5H2Q7Y.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');
16
+ var react = require('react');
18
17
 
19
- function useConfidentialAirdropFactoryImplementation(options = {}) {
20
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
18
+ function useAirdropToken(args) {
19
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
21
20
  return reactQuery.useQuery({
22
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
23
- queryFn: () => client.implementation(),
24
- enabled: !!client,
25
- staleTime: 0
21
+ ...args.query,
22
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
23
+ queryFn: () => client.token(),
24
+ enabled: Boolean(client && (args.query?.enabled ?? true))
25
+ });
26
+ }
27
+ function useAirdropWindow(args) {
28
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
29
+ return reactQuery.useQuery({
30
+ ...args.query,
31
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "window", args: [] }),
32
+ queryFn: async () => {
33
+ const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
34
+ client.startTime(),
35
+ client.endTime(),
36
+ client.hasClaimStarted(),
37
+ client.hasClaimEnded(),
38
+ client.isClaimWindowActive()
39
+ ]);
40
+ return { startTime, endTime, hasStarted, hasEnded, isActive };
41
+ },
42
+ enabled: Boolean(client && (args.query?.enabled ?? true))
43
+ });
44
+ }
45
+ function useAirdropPaused(args) {
46
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
47
+ return reactQuery.useQuery({
48
+ ...args.query,
49
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "paused", args: [] }),
50
+ queryFn: () => client.paused(),
51
+ enabled: Boolean(client && (args.query?.enabled ?? true))
52
+ });
53
+ }
54
+ function useAirdropGasFee(args) {
55
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
56
+ return reactQuery.useQuery({
57
+ ...args.query,
58
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "gasFee", args: [] }),
59
+ queryFn: () => client.gasFee(),
60
+ enabled: Boolean(client && (args.query?.enabled ?? true))
61
+ });
62
+ }
63
+ function useAirdropHasRole(args) {
64
+ const { role, holder, ...base } = args;
65
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
66
+ return reactQuery.useQuery({
67
+ ...args.query,
68
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
69
+ chainId,
70
+ address: args.address,
71
+ fn: "hasRole",
72
+ args: [role, holder]
73
+ }),
74
+ queryFn: () => client.hasRole({ role, holder }),
75
+ enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
76
+ });
77
+ }
78
+ function useMerkleRoot(args) {
79
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
80
+ return reactQuery.useQuery({
81
+ ...args.query,
82
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "merkleRoot", args: [] }),
83
+ queryFn: () => client.merkleRoot(),
84
+ enabled: Boolean(client && (args.query?.enabled ?? true))
85
+ });
86
+ }
87
+ function useClaimedAmount(args) {
88
+ const { account, ...base } = args;
89
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
90
+ return reactQuery.useQuery({
91
+ ...args.query,
92
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
93
+ chainId,
94
+ address: args.address,
95
+ fn: "getClaimedAmount",
96
+ args: [account]
97
+ }),
98
+ queryFn: () => client.getClaimedAmount(account),
99
+ enabled: Boolean(client && account && (args.query?.enabled ?? true))
100
+ });
101
+ }
102
+ function useComplianceManager(args) {
103
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
104
+ return reactQuery.useQuery({
105
+ ...args.query,
106
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
107
+ chainId,
108
+ address: args.address,
109
+ fn: "complianceManager",
110
+ args: []
111
+ }),
112
+ queryFn: () => client.complianceManager(),
113
+ enabled: Boolean(client && (args.query?.enabled ?? true))
114
+ });
115
+ }
116
+ function useFactoryFees(args = {}) {
117
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
118
+ return reactQuery.useQuery({
119
+ ...args.query,
120
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
121
+ queryFn: async () => {
122
+ const [feeCollector, defaultGasFee] = await Promise.all([
123
+ client.feeCollector(),
124
+ client.defaultGasFee()
125
+ ]);
126
+ return { feeCollector, defaultGasFee };
127
+ },
128
+ enabled: Boolean(client && (args.query?.enabled ?? true))
129
+ });
130
+ }
131
+ function useFactoryRegistry(args = {}) {
132
+ const { offset = 0n, limit = 50n, ...base } = args;
133
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
134
+ return reactQuery.useQuery({
135
+ ...args.query,
136
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
137
+ chainId,
138
+ address: resolvedAddress,
139
+ fn: "registry",
140
+ args: [offset, limit]
141
+ }),
142
+ queryFn: async () => {
143
+ const [count, items] = await Promise.all([
144
+ client.airdropCount(),
145
+ client.airdrops(offset, limit)
146
+ ]);
147
+ return { count, items };
148
+ },
149
+ enabled: Boolean(client && (args.query?.enabled ?? true))
150
+ });
151
+ }
152
+ function useEffectiveUpgradeable(args = {}) {
153
+ const { creator, ...base } = args;
154
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
155
+ return reactQuery.useQuery({
156
+ ...args.query,
157
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
158
+ chainId,
159
+ address: resolvedAddress,
160
+ fn: "effectiveUpgradeable",
161
+ args: [creator]
162
+ }),
163
+ queryFn: () => client.effectiveUpgradeable(creator),
164
+ enabled: Boolean(client && creator && (args.query?.enabled ?? true))
26
165
  });
27
166
  }
28
- function useFactoryDefaultGasFee(options = {}) {
29
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
167
+ function useAirdropConfig(args) {
168
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
30
169
  return reactQuery.useQuery({
31
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
32
- queryFn: () => client.defaultGasFee(),
33
- enabled: !!client,
34
- staleTime: 0
170
+ staleTime: Infinity,
171
+ ...args.query,
172
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.config({ chainId, address: args.address }),
173
+ queryFn: async () => {
174
+ const [token, airdropType, unwrappable, complianceManager, gasFee] = await Promise.all([
175
+ client.token(),
176
+ client.airdropType(),
177
+ client.unwrappable(),
178
+ client.complianceManager(),
179
+ client.gasFee()
180
+ ]);
181
+ return {
182
+ token,
183
+ airdropType,
184
+ variant: airdropType === 1 ? "merkle" : "ecdsa",
185
+ unwrappable,
186
+ complianceManager,
187
+ gasFee
188
+ };
189
+ },
190
+ enabled: Boolean(client && (args.query?.enabled ?? true))
35
191
  });
36
192
  }
37
- function useFactoryFeeCollector(options = {}) {
38
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
193
+ function useAirdropDeploymentMode(args) {
194
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
39
195
  return reactQuery.useQuery({
40
- queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
41
- queryFn: () => client.feeCollector(),
42
- enabled: !!client,
43
- staleTime: 0
196
+ staleTime: Infinity,
197
+ ...args.query,
198
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
199
+ chainId,
200
+ address: args.address,
201
+ fn: "deploymentMode",
202
+ args: []
203
+ }),
204
+ queryFn: () => client.deploymentMode(),
205
+ enabled: Boolean(client && (args.query?.enabled ?? true))
206
+ });
207
+ }
208
+ function useAirdropRoleAdmin(args) {
209
+ const { role, ...base } = args;
210
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
211
+ return reactQuery.useQuery({
212
+ // A default, not a lock: `query.staleTime` still wins.
213
+ staleTime: Infinity,
214
+ ...args.query,
215
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
216
+ chainId,
217
+ address: args.address,
218
+ fn: "getRoleAdmin",
219
+ args: [role]
220
+ }),
221
+ queryFn: () => client.getRoleAdmin(role),
222
+ enabled: Boolean(client && role && (args.query?.enabled ?? true))
223
+ });
224
+ }
225
+ function useAirdropRoleConstants(args) {
226
+ const { variant, dedupMode, ...base } = args;
227
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
228
+ const { client: merkleClient } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
229
+ const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
230
+ ...base,
231
+ dedupMode: dedupMode ?? "none"
232
+ });
233
+ return reactQuery.useQuery({
234
+ // A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
235
+ staleTime: Infinity,
236
+ ...args.query,
237
+ // `variant` is in the key because it changes the SHAPE of the result -
238
+ // the merkle and ecdsa responses must not share a cache slot.
239
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
240
+ chainId,
241
+ address: args.address,
242
+ fn: "roleConstants",
243
+ args: [variant]
244
+ }),
245
+ queryFn: async () => {
246
+ const [
247
+ PAUSER_ROLE,
248
+ WINDOW_ADMIN_ROLE,
249
+ TREASURY_ROLE,
250
+ RESCUER_ROLE,
251
+ FEE_COLLECTOR_ROLE,
252
+ UPGRADER_ROLE,
253
+ DISCLOSURE_ADMIN_ROLE,
254
+ DEFAULT_ADMIN_ROLE,
255
+ variantRole
256
+ ] = await Promise.all([
257
+ client.PAUSER_ROLE(),
258
+ client.WINDOW_ADMIN_ROLE(),
259
+ client.TREASURY_ROLE(),
260
+ client.RESCUER_ROLE(),
261
+ client.FEE_COLLECTOR_ROLE(),
262
+ client.UPGRADER_ROLE(),
263
+ client.DISCLOSURE_ADMIN_ROLE(),
264
+ client.DEFAULT_ADMIN_ROLE(),
265
+ variant === "merkle" ? merkleClient.MERKLE_ADMIN_ROLE() : variant === "ecdsa" ? ecdsaClient.SIGNER_ROLE() : Promise.resolve(void 0)
266
+ ]);
267
+ return {
268
+ PAUSER_ROLE,
269
+ WINDOW_ADMIN_ROLE,
270
+ TREASURY_ROLE,
271
+ RESCUER_ROLE,
272
+ FEE_COLLECTOR_ROLE,
273
+ UPGRADER_ROLE,
274
+ DISCLOSURE_ADMIN_ROLE,
275
+ DEFAULT_ADMIN_ROLE,
276
+ ...variant === "merkle" && variantRole ? { MERKLE_ADMIN_ROLE: variantRole } : {},
277
+ ...variant === "ecdsa" && variantRole ? { SIGNER_ROLE: variantRole } : {}
278
+ };
279
+ },
280
+ enabled: Boolean(client && (args.query?.enabled ?? true))
281
+ });
282
+ }
283
+ function useAirdropRoleMembers(args) {
284
+ const { role, ...base } = args;
285
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
286
+ return reactQuery.useQuery({
287
+ ...args.query,
288
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers({ chainId, address: args.address }, role),
289
+ queryFn: async () => {
290
+ const [members, count] = await Promise.all([
291
+ client.getRoleMembers(role),
292
+ client.getRoleMemberCount(role)
293
+ ]);
294
+ return { members, count };
295
+ },
296
+ enabled: Boolean(client && role && (args.query?.enabled ?? true))
297
+ });
298
+ }
299
+ function useComplianceHasRole(args) {
300
+ const { role, holder, ...base } = args;
301
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
302
+ return reactQuery.useQuery({
303
+ ...args.query,
304
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole({ chainId, address: args.address }, role, holder),
305
+ queryFn: () => client.hasRole({ role, holder }),
306
+ enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
307
+ });
308
+ }
309
+ function useComplianceInfo(args) {
310
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
311
+ return reactQuery.useQuery({
312
+ ...args.query,
313
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo({ chainId, address: args.address }),
314
+ queryFn: async () => {
315
+ const [airdrop, platformDelegate, clientDelegates] = await Promise.all([
316
+ client.airdrop(),
317
+ client.complianceDelegate(),
318
+ client.clientDelegates()
319
+ ]);
320
+ return { airdrop, platformDelegate, clientDelegates };
321
+ },
322
+ enabled: Boolean(client && (args.query?.enabled ?? true))
44
323
  });
45
324
  }
46
- function useFactoryCustomFee(args = {}) {
325
+ function useComplianceManagerOf(args = {}) {
326
+ const { airdrop, ...base } = args;
327
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
328
+ return reactQuery.useQuery({
329
+ staleTime: Infinity,
330
+ ...args.query,
331
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
332
+ chainId,
333
+ address: resolvedAddress,
334
+ fn: "complianceManagerOf",
335
+ args: [airdrop]
336
+ }),
337
+ queryFn: () => client.complianceManagerOf(airdrop),
338
+ enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
339
+ });
340
+ }
341
+ function useComplianceRoleConstants(args) {
342
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
343
+ return reactQuery.useQuery({
344
+ // A default, not a lock: `query.staleTime` still wins.
345
+ staleTime: Infinity,
346
+ ...args.query,
347
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
348
+ chainId,
349
+ address: args.address,
350
+ fn: "complianceRoleConstants",
351
+ args: []
352
+ }),
353
+ queryFn: async () => {
354
+ const [DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE] = await Promise.all([
355
+ client.DELEGATION_ADMIN_ROLE(),
356
+ client.DEFAULT_ADMIN_ROLE()
357
+ ]);
358
+ return { DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE };
359
+ },
360
+ enabled: Boolean(client && (args.query?.enabled ?? true))
361
+ });
362
+ }
363
+ function useComplianceRoleMembers(args) {
364
+ const { role, ...base } = args;
365
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
366
+ return reactQuery.useQuery({
367
+ ...args.query,
368
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers({ chainId, address: args.address }, role),
369
+ queryFn: async () => {
370
+ const [members, count] = await Promise.all([
371
+ client.getRoleMembers(role),
372
+ client.getRoleMemberCount(role)
373
+ ]);
374
+ return { members, count };
375
+ },
376
+ enabled: Boolean(client && role && (args.query?.enabled ?? true))
377
+ });
378
+ }
379
+ function useEcdsaDomain(args) {
380
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(args);
381
+ return reactQuery.useQuery({
382
+ staleTime: Infinity,
383
+ ...args.query,
384
+ // `dedupMode` is a client-construction concern only; it moves no value
385
+ // read here, so it stays out of the key.
386
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "ecdsaDomain", args: [] }),
387
+ queryFn: async () => {
388
+ const [claimTypehash, domainSeparator, domain] = await Promise.all([
389
+ client.claimTypehash(),
390
+ client.domainSeparator(),
391
+ client.eip712Domain()
392
+ ]);
393
+ return { claimTypehash, domainSeparator, domain };
394
+ },
395
+ enabled: Boolean(client && (args.query?.enabled ?? true))
396
+ });
397
+ }
398
+ function useEffectiveDelegateToCompliance(args = {}) {
47
399
  const { creator, ...base } = args;
48
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
400
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
49
401
  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
402
+ ...args.query,
403
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
404
+ chainId,
405
+ address: resolvedAddress,
406
+ fn: "effectiveDelegateToCompliance",
407
+ args: [creator]
408
+ }),
409
+ queryFn: () => client.effectiveDelegateToCompliance(creator),
410
+ enabled: Boolean(client && creator && (args.query?.enabled ?? true))
54
411
  });
55
412
  }
56
- function useFactoryInitCodeHash(args = {}) {
57
- const { params, gasFee, ...base } = args;
58
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
413
+ function useIsActiveDelegate(args) {
414
+ const { delegate, ...base } = args;
415
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
59
416
  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
417
+ ...args.query,
418
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate({ chainId, address: args.address }, delegate),
419
+ queryFn: () => client.isActiveDelegate(delegate),
420
+ enabled: Boolean(client && delegate && (args.query?.enabled ?? true))
421
+ });
422
+ }
423
+ function useIsMerkleRootMutable(args) {
424
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
425
+ return reactQuery.useQuery({
426
+ // Before the spread so a consumer can still opt into refetching.
427
+ staleTime: Infinity,
428
+ ...args.query,
429
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRootMutable({ chainId, address: args.address }),
430
+ queryFn: () => client.isMerkleRootMutable(),
431
+ enabled: Boolean(client && (args.query?.enabled ?? true))
432
+ });
433
+ }
434
+ function useIsSignatureValid(args) {
435
+ const { recipient, encryptedAmountHandle, dedupId, deadline, signer, signature, ...base } = args;
436
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(base);
437
+ return reactQuery.useQuery({
438
+ ...args.query,
439
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
440
+ chainId,
441
+ address: args.address,
442
+ fn: chunkEBLBPUPI_cjs.AIRDROP_FN.isSignatureValid,
443
+ args: [recipient, encryptedAmountHandle, dedupId, deadline, signer, signature]
444
+ }),
445
+ queryFn: () => client.isSignatureValid({
446
+ recipient,
447
+ encryptedAmountHandle,
448
+ dedupId,
449
+ deadline,
450
+ signer,
451
+ signature
452
+ }),
453
+ enabled: Boolean(
454
+ client && recipient && encryptedAmountHandle && dedupId && deadline !== void 0 && signer && signature && (args.query?.enabled ?? true)
455
+ )
456
+ });
457
+ }
458
+ function usePreflightClaim(args) {
459
+ const { variant, dedupMode, claimant, account, to, entrypoint, signature, ...base } = args;
460
+ const { client: merkleClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
461
+ const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
462
+ ...base,
463
+ dedupMode: dedupMode ?? "none"
464
+ });
465
+ const client = variant === "ecdsa" ? ecdsaClient : merkleClient;
466
+ return reactQuery.useQuery({
467
+ ...args.query,
468
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
469
+ chainId,
470
+ address: args.address,
471
+ fn: "preflightClaim",
472
+ args: [variant, claimant, account, to, entrypoint, signature]
473
+ }),
474
+ queryFn: () => chunkAREQJHKA_cjs.preflightClaim({
475
+ airdrop: client,
476
+ claimant,
477
+ account,
478
+ to,
479
+ entrypoint,
480
+ signature
481
+ }),
482
+ enabled: Boolean(client && claimant && (args.query?.enabled ?? true))
64
483
  });
65
484
  }
66
485
  function usePreflightCreateAirdrop(args = {}) {
67
- const { params, creator, userSalt, funding, ...base } = args;
68
- const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
486
+ const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
69
487
  return reactQuery.useQuery({
70
- queryKey: chunkWO72UBQD_cjs.buildQueryKey(
71
- "factory:preflightCreateAirdrop",
488
+ ...args.query,
489
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
72
490
  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 } : {}
491
+ address: resolvedAddress,
492
+ fn: chunkEBLBPUPI_cjs.AIRDROP_FN.preflightCreate,
493
+ args: [
494
+ args.variant,
495
+ args.mode,
496
+ args.creator,
497
+ args.userSalt,
498
+ args.expectedInitCodeHash,
499
+ // `params` IS key-affecting here, unlike in the predict hooks: the
500
+ // stock-wrapper probe reads `common.token` / `common.unwrappable`.
501
+ args.params
502
+ ]
84
503
  }),
85
- enabled: !!client && !!params && !!creator,
86
- staleTime: 0
504
+ queryFn: () => {
505
+ const common = {
506
+ factory: client,
507
+ mode: args.mode,
508
+ creator: args.creator,
509
+ userSalt: args.userSalt,
510
+ expectedInitCodeHash: args.expectedInitCodeHash
511
+ };
512
+ return args.variant === "merkle" ? chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "merkle", params: args.params }) : chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "ecdsa", params: args.params });
513
+ },
514
+ enabled: Boolean(
515
+ client && args.variant && args.params && args.mode && args.creator && args.userSalt && (args.query?.enabled ?? true)
516
+ )
87
517
  });
88
518
  }
89
- function useCreateConfidentialAirdropAndGetAddress(options = {}) {
90
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
519
+ function useCreateEcdsaAirdrop(options = {}) {
520
+ const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
521
+ const queryClient = reactQuery.useQueryClient();
91
522
  return reactQuery.useMutation({
92
523
  mutationFn: async (args) => {
93
524
  if (!client) {
94
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdropAndGetAddress", "factory");
525
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateEcdsaAirdrop", "factory");
95
526
  }
96
- return client.createConfidentialAirdropAndGetAddress(args);
527
+ return client.createEcdsaAirdrop(args);
528
+ },
529
+ onSuccess: () => {
530
+ void queryClient.invalidateQueries({
531
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
532
+ });
97
533
  }
98
534
  });
99
535
  }
100
- function useCreateConfidentialAirdrop(options = {}) {
101
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
536
+ function useCreateMerkleAirdrop(options = {}) {
537
+ const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
538
+ const queryClient = reactQuery.useQueryClient();
102
539
  return reactQuery.useMutation({
103
540
  mutationFn: async (args) => {
104
541
  if (!client) {
105
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdrop", "factory");
542
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateMerkleAirdrop", "factory");
106
543
  }
107
- return client.createConfidentialAirdrop(args);
544
+ return client.createMerkleAirdrop(args);
545
+ },
546
+ onSuccess: () => {
547
+ void queryClient.invalidateQueries({
548
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
549
+ });
108
550
  }
109
551
  });
110
552
  }
111
- function useCreateAndFundConfidentialAirdrop(options = {}) {
112
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
553
+ function useFundAirdrop(options = {}) {
554
+ const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
113
555
  return reactQuery.useMutation({
114
556
  mutationFn: async (args) => {
115
557
  if (!client) {
116
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdrop", "factory");
558
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useFundAirdrop", "factory");
117
559
  }
118
- return client.createAndFundConfidentialAirdrop(args);
560
+ return client.fundAirdrop(args);
119
561
  }
120
562
  });
121
563
  }
122
- function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
123
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
564
+ function useEcdsaClaim(options) {
565
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
566
+ const queryClient = reactQuery.useQueryClient();
124
567
  return reactQuery.useMutation({
125
568
  mutationFn: async (args) => {
126
569
  if (!client) {
127
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdropAndGetAddress", "factory");
570
+ throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
128
571
  }
129
- return client.createAndFundConfidentialAirdropAndGetAddress(args);
572
+ return client.claim(args);
573
+ },
574
+ onSuccess: () => {
575
+ void queryClient.invalidateQueries({
576
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
577
+ });
130
578
  }
131
579
  });
132
580
  }
133
- function useFundConfidentialAirdrop(options = {}) {
134
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
581
+ function useMerkleClaim(options) {
582
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
583
+ const queryClient = reactQuery.useQueryClient();
135
584
  return reactQuery.useMutation({
136
585
  mutationFn: async (args) => {
137
586
  if (!client) {
138
- throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useFundConfidentialAirdrop", "factory");
587
+ throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaim", "merkle-airdrop");
139
588
  }
140
- return client.fundConfidentialAirdrop(args);
589
+ return client.claim(args);
590
+ },
591
+ onMutate: (variables) => ({ account: variables.entry.account }),
592
+ onSuccess: (_hash, _variables, context) => {
593
+ if (!context?.account) return;
594
+ void queryClient.invalidateQueries({
595
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
596
+ chainId,
597
+ address: options.address,
598
+ fn: "getClaimedAmount",
599
+ args: [context.account]
600
+ })
601
+ });
141
602
  }
142
603
  });
143
604
  }
144
- function useSetFeeCollector(options = {}) {
145
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
605
+ function useSetMerkleRoot(options) {
606
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
607
+ const queryClient = reactQuery.useQueryClient();
146
608
  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);
609
+ mutationFn: async (args) => {
610
+ if (!client) {
611
+ throw new chunk67OV5CX2_cjs.MissingClientError("useSetMerkleRoot", "merkle-airdrop");
612
+ }
613
+ return client.setMerkleRoot(args);
614
+ },
615
+ onSuccess: () => {
616
+ void queryClient.invalidateQueries({
617
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
618
+ chainId,
619
+ address: options.address,
620
+ fn: "merkleRoot",
621
+ args: []
622
+ })
623
+ });
150
624
  }
151
625
  });
152
626
  }
153
- function useSetDefaultGasFee(options = {}) {
154
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
627
+ function useGrantInstanceRoles(options) {
628
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
629
+ const queryClient = reactQuery.useQueryClient();
155
630
  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);
631
+ mutationFn: async (args) => {
632
+ if (!client) {
633
+ throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
634
+ }
635
+ return chunkIUKKNJ2R_cjs.grantInstanceRoles({
636
+ airdrop: client,
637
+ assignment: args.assignment,
638
+ ...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
639
+ });
640
+ },
641
+ onSuccess: () => {
642
+ const scope = { chainId, address: options.address };
643
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
644
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembersAll(scope) });
160
645
  }
161
646
  });
162
647
  }
163
- function useSetCustomFee(options = {}) {
164
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
648
+ function useAirdropPause(options) {
649
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
650
+ const queryClient = reactQuery.useQueryClient();
165
651
  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);
652
+ mutationFn: async ({ paused, ...rest }) => {
653
+ if (!client) {
654
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropPause", "airdrop-base");
655
+ }
656
+ return paused ? client.pause(rest) : client.unpause(rest);
657
+ },
658
+ onSuccess: () => {
659
+ void queryClient.invalidateQueries({
660
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
661
+ });
662
+ void queryClient.invalidateQueries({
663
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
664
+ });
169
665
  }
170
666
  });
171
667
  }
172
- function useDisableCustomFee(options = {}) {
173
- const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
668
+ function useExtendClaimWindow(options) {
669
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
670
+ const queryClient = reactQuery.useQueryClient();
174
671
  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);
672
+ mutationFn: async (args) => {
673
+ if (!client) {
674
+ throw new chunk67OV5CX2_cjs.MissingClientError("useExtendClaimWindow", "airdrop-base");
675
+ }
676
+ return client.extendClaimWindow(args);
677
+ },
678
+ onSuccess: () => {
679
+ void queryClient.invalidateQueries({
680
+ queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
681
+ });
179
682
  }
180
683
  });
181
684
  }
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
685
+ function useWithdrawConfidential(options) {
686
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
687
+ return reactQuery.useMutation({
688
+ mutationFn: async (args) => {
689
+ if (!client) {
690
+ throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawConfidential", "airdrop-base");
691
+ }
692
+ return client.withdrawConfidential(args);
693
+ }
189
694
  });
190
695
  }
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
696
+ function useAddComplianceDelegate(options) {
697
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
698
+ const queryClient = reactQuery.useQueryClient();
699
+ return reactQuery.useMutation({
700
+ mutationFn: async (args) => {
701
+ if (!client) {
702
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAddComplianceDelegate", "compliance-manager");
703
+ }
704
+ return client.addDelegate(args);
705
+ },
706
+ onSuccess: (_hash, variables) => {
707
+ const scope = { chainId, address: options.address };
708
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
709
+ void queryClient.invalidateQueries({
710
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
711
+ });
712
+ }
198
713
  });
199
714
  }
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
715
+ function useAirdropGrantRole(options) {
716
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
717
+ const queryClient = reactQuery.useQueryClient();
718
+ return reactQuery.useMutation({
719
+ mutationFn: async (args) => {
720
+ if (!client) {
721
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropGrantRole", "airdrop-base");
722
+ }
723
+ return client.grantRole(args);
724
+ },
725
+ onSuccess: (_hash, variables) => {
726
+ const scope = { chainId, address: options.address };
727
+ void queryClient.invalidateQueries({
728
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
729
+ });
730
+ void queryClient.invalidateQueries({
731
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
732
+ });
733
+ }
207
734
  });
208
735
  }
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
736
+ function useAirdropRenounceRole(options) {
737
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
738
+ const queryClient = reactQuery.useQueryClient();
739
+ return reactQuery.useMutation({
740
+ mutationFn: async (args) => {
741
+ if (!client) {
742
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRenounceRole", "airdrop-base");
743
+ }
744
+ return client.renounceRole(args);
745
+ },
746
+ onSuccess: (_hash, variables) => {
747
+ const scope = { chainId, address: options.address };
748
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
749
+ void queryClient.invalidateQueries({
750
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
751
+ });
752
+ }
216
753
  });
217
754
  }
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
755
+ function useAirdropRevokeRole(options) {
756
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
757
+ const queryClient = reactQuery.useQueryClient();
758
+ return reactQuery.useMutation({
759
+ mutationFn: async (args) => {
760
+ if (!client) {
761
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRevokeRole", "airdrop-base");
762
+ }
763
+ return client.revokeRole(args);
764
+ },
765
+ onSuccess: (_hash, variables) => {
766
+ const scope = { chainId, address: options.address };
767
+ void queryClient.invalidateQueries({
768
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
769
+ });
770
+ void queryClient.invalidateQueries({
771
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
772
+ });
773
+ }
225
774
  });
226
775
  }
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
776
+ function useAirdropUpgradeToAndCall(options) {
777
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
778
+ return reactQuery.useMutation({
779
+ mutationFn: async (args) => {
780
+ if (!client) {
781
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropUpgradeToAndCall", "airdrop-base");
782
+ }
783
+ return client.upgradeToAndCall(args);
784
+ }
234
785
  });
235
786
  }
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
787
+ function useBatchDiscloseHandlesToParty(options) {
788
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
789
+ return reactQuery.useMutation({
790
+ mutationFn: async (args) => {
791
+ if (!client) {
792
+ throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "airdrop-base");
793
+ }
794
+ return client.batchDiscloseHandlesToParty(args);
795
+ }
243
796
  });
244
797
  }
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
798
+ function useBuildMerkleCampaign(options = {}) {
799
+ const encryptorSourceRef = react.useRef(options.encryptor);
800
+ encryptorSourceRef.current = options.encryptor;
801
+ return reactQuery.useMutation({
802
+ mutationFn: async (args) => chunkIUKKNJ2R_cjs.buildMerkleCampaign({
803
+ instance: args.instance,
804
+ recipients: args.recipients,
805
+ encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
806
+ ...args.submitter !== void 0 ? { submitter: args.submitter } : {}
807
+ })
252
808
  });
253
809
  }
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
810
+ function useComplianceGrantRole(options) {
811
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
812
+ const queryClient = reactQuery.useQueryClient();
813
+ return reactQuery.useMutation({
814
+ mutationFn: async (args) => {
815
+ if (!client) {
816
+ throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceGrantRole", "compliance-manager");
817
+ }
818
+ return client.grantRole(args);
819
+ },
820
+ onSuccess: (_hash, variables) => {
821
+ const scope = { chainId, address: options.address };
822
+ void queryClient.invalidateQueries({
823
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
824
+ });
825
+ void queryClient.invalidateQueries({
826
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
827
+ });
828
+ }
261
829
  });
262
830
  }
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
831
+ function useComplianceRenounceRole(options) {
832
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
833
+ const queryClient = reactQuery.useQueryClient();
834
+ return reactQuery.useMutation({
835
+ mutationFn: async (args) => {
836
+ if (!client) {
837
+ throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRenounceRole", "compliance-manager");
838
+ }
839
+ return client.renounceRole(args);
840
+ },
841
+ onSuccess: (_hash, variables) => {
842
+ const scope = { chainId, address: options.address };
843
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRoleAll(scope) });
844
+ void queryClient.invalidateQueries({
845
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
846
+ });
847
+ }
270
848
  });
271
849
  }
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
850
+ function useComplianceRevokeRole(options) {
851
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
852
+ const queryClient = reactQuery.useQueryClient();
853
+ return reactQuery.useMutation({
854
+ mutationFn: async (args) => {
855
+ if (!client) {
856
+ throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRevokeRole", "compliance-manager");
857
+ }
858
+ return client.revokeRole(args);
859
+ },
860
+ onSuccess: (_hash, variables) => {
861
+ const scope = { chainId, address: options.address };
862
+ void queryClient.invalidateQueries({
863
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
864
+ });
865
+ void queryClient.invalidateQueries({
866
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
867
+ });
868
+ }
279
869
  });
280
870
  }
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
871
+ function useCreateAndFundEcdsaAirdrop(options = {}) {
872
+ const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
873
+ const queryClient = reactQuery.useQueryClient();
874
+ return reactQuery.useMutation({
875
+ mutationFn: async (args) => {
876
+ if (!client) {
877
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundEcdsaAirdrop", "factory");
878
+ }
879
+ return client.createAndFundEcdsaAirdrop(args);
880
+ },
881
+ onSuccess: () => {
882
+ void queryClient.invalidateQueries({
883
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
884
+ });
885
+ }
288
886
  });
289
887
  }
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
888
+ function useCreateAndFundMerkleAirdrop(options = {}) {
889
+ const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
890
+ const queryClient = reactQuery.useQueryClient();
891
+ return reactQuery.useMutation({
892
+ mutationFn: async (args) => {
893
+ if (!client) {
894
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundMerkleAirdrop", "factory");
895
+ }
896
+ return client.createAndFundMerkleAirdrop(args);
897
+ },
898
+ onSuccess: () => {
899
+ void queryClient.invalidateQueries({
900
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
901
+ });
902
+ }
298
903
  });
299
904
  }
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
905
+ function useDiscloseHandleToParty(options) {
906
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
907
+ return reactQuery.useMutation({
908
+ mutationFn: async (args) => {
909
+ if (!client) {
910
+ throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "airdrop-base");
911
+ }
912
+ return client.discloseHandleToParty(args);
913
+ }
337
914
  });
338
915
  }
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
916
+ function useEcdsaClaimAndUnwrap(options) {
917
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
918
+ const queryClient = reactQuery.useQueryClient();
919
+ return reactQuery.useMutation({
920
+ mutationFn: async (args) => {
921
+ if (!client) {
922
+ throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaimAndUnwrap", "ecdsa-airdrop");
923
+ }
924
+ return client.claimAndUnwrap(args);
925
+ },
926
+ onSuccess: () => {
927
+ void queryClient.invalidateQueries({
928
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
929
+ });
930
+ }
347
931
  });
348
932
  }
349
- function useClaim(options) {
350
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
933
+ function useEncryptCampaignAmounts(options = {}) {
934
+ const encryptorSourceRef = react.useRef(options.encryptor);
935
+ encryptorSourceRef.current = options.encryptor;
936
+ return reactQuery.useMutation({
937
+ mutationFn: async (args) => chunkIUKKNJ2R_cjs.encryptCampaignAmounts({
938
+ instance: args.instance,
939
+ recipients: args.recipients,
940
+ encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
941
+ ...args.submitter !== void 0 ? { submitter: args.submitter } : {}
942
+ })
943
+ });
944
+ }
945
+ function useMerkleClaimAndUnwrap(options) {
946
+ const { client, walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
947
+ const queryClient = reactQuery.useQueryClient();
351
948
  return reactQuery.useMutation({
352
949
  mutationFn: async (args) => {
353
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useClaim", "airdrop");
354
- return client.claim(args);
950
+ if (!client) {
951
+ throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaimAndUnwrap", "merkle-airdrop");
952
+ }
953
+ return client.claimAndUnwrap(args);
954
+ },
955
+ // Resolved here rather than in `onSuccess`: a mutation outlives several
956
+ // re-renders of its own component and `useWalletClient().data` can read back
957
+ // transiently empty across them, which would silently skip the invalidation.
958
+ onMutate: (variables) => {
959
+ const account = variables.account ?? walletClient?.account;
960
+ if (!account) return {};
961
+ return { sender: typeof account === "string" ? account : account.address };
962
+ },
963
+ onSuccess: (_hash, _variables, context) => {
964
+ if (!context?.sender) return;
965
+ void queryClient.invalidateQueries({
966
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.sender)
967
+ });
355
968
  }
356
969
  });
357
970
  }
358
- function useAccessClaimAmount(options) {
359
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
971
+ function usePlanMerkleCampaign(options = {}) {
972
+ const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
973
+ const encryptorSourceRef = react.useRef(options.encryptor);
974
+ encryptorSourceRef.current = options.encryptor;
360
975
  return reactQuery.useMutation({
361
976
  mutationFn: async (args) => {
362
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAccessClaimAmount", "airdrop");
363
- return client.getClaimAmount(args);
977
+ if (!client) {
978
+ throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePlanMerkleCampaign", "factory");
979
+ }
980
+ return chunkIUKKNJ2R_cjs.planMerkleCampaign({
981
+ factory: client,
982
+ ...args,
983
+ encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current)
984
+ });
364
985
  }
365
986
  });
366
987
  }
367
- var useGetClaimAmount = useAccessClaimAmount;
368
- function useWithdraw(options) {
369
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
988
+ function useRescueERC20(options) {
989
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
370
990
  return reactQuery.useMutation({
371
- mutationFn: async ({ recipient, account }) => {
372
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdraw", "airdrop");
373
- return client.withdraw(recipient, account);
991
+ mutationFn: async (args) => {
992
+ if (!client) {
993
+ throw new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "airdrop-base");
994
+ }
995
+ return client.rescueERC20(args);
374
996
  }
375
997
  });
376
998
  }
377
- function useSetPaused(options) {
378
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
999
+ function useRescueOtherConfidentialToken(options) {
1000
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
379
1001
  return reactQuery.useMutation({
380
- mutationFn: async ({ paused, account }) => {
381
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useSetPaused", "airdrop");
382
- return client.setPaused(paused, account);
1002
+ mutationFn: async (args) => {
1003
+ if (!client) {
1004
+ throw new chunk67OV5CX2_cjs.MissingClientError("useRescueOtherConfidentialToken", "airdrop-base");
1005
+ }
1006
+ return client.rescueOtherConfidentialToken(args);
383
1007
  }
384
1008
  });
385
1009
  }
386
- function useExtendClaimWindow(options) {
387
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1010
+ function useRevokeComplianceDelegate(options) {
1011
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
1012
+ const queryClient = reactQuery.useQueryClient();
1013
+ return reactQuery.useMutation({
1014
+ mutationFn: async (args) => {
1015
+ if (!client) {
1016
+ throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeComplianceDelegate", "compliance-manager");
1017
+ }
1018
+ return client.revokeDelegate(args);
1019
+ },
1020
+ onSuccess: (_hash, variables) => {
1021
+ const scope = { chainId, address: options.address };
1022
+ void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
1023
+ void queryClient.invalidateQueries({
1024
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
1025
+ });
1026
+ }
1027
+ });
1028
+ }
1029
+ function useRotateMerkleRoot(options) {
1030
+ const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
1031
+ const encryptorSourceRef = react.useRef(options.encryptor);
1032
+ encryptorSourceRef.current = options.encryptor;
1033
+ const queryClient = reactQuery.useQueryClient();
388
1034
  return reactQuery.useMutation({
389
- mutationFn: async ({ newEndTime, account }) => {
390
- if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
391
- return client.extendClaimWindow(newEndTime, account);
1035
+ mutationFn: async (args) => {
1036
+ if (!client) {
1037
+ throw new chunk67OV5CX2_cjs.MissingClientError("useRotateMerkleRoot", "merkle-airdrop");
1038
+ }
1039
+ return chunkIUKKNJ2R_cjs.rotateMerkleRoot({
1040
+ airdrop: client,
1041
+ recipients: args.recipients,
1042
+ encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
1043
+ ...args.submitter !== void 0 ? { submitter: args.submitter } : {},
1044
+ ...args.account !== void 0 ? { account: args.account } : {}
1045
+ });
1046
+ },
1047
+ onSuccess: () => {
1048
+ void queryClient.invalidateQueries({
1049
+ queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
1050
+ });
392
1051
  }
393
1052
  });
394
1053
  }
395
- function useWithdrawOtherToken(options) {
396
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1054
+ function useSignClaimAuthorization(options) {
1055
+ const { walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
397
1056
  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);
1057
+ mutationFn: async (args) => {
1058
+ if (!walletClient) {
1059
+ throw new chunk67OV5CX2_cjs.MissingWalletClientError("useSignClaimAuthorization");
1060
+ }
1061
+ if (chainId === void 0) {
1062
+ throw new chunk67OV5CX2_cjs.MissingClientError("useSignClaimAuthorization", "airdrop-base");
1063
+ }
1064
+ return chunkPZZK3O3S_cjs.signClaimAuthorization({
1065
+ walletClient,
1066
+ airdrop: options.address,
1067
+ chainId,
1068
+ recipient: args.recipient,
1069
+ encryptedAmountHandle: args.encryptedAmountHandle,
1070
+ dedupId: args.dedupId,
1071
+ deadline: args.deadline,
1072
+ account: args.account
1073
+ });
401
1074
  }
402
1075
  });
403
1076
  }
404
- function useWithdrawOtherConfidentialToken(options) {
405
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1077
+ function useWithdrawGasFee(options) {
1078
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
406
1079
  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);
1080
+ mutationFn: async (args) => {
1081
+ if (!client) {
1082
+ throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "airdrop-base");
1083
+ }
1084
+ return client.withdrawGasFee(args);
410
1085
  }
411
1086
  });
412
1087
  }
413
- function useAirdropWithdrawGasFee(options) {
414
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1088
+ function useAdminBatchDiscloseBalanceToParties(options) {
1089
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
415
1090
  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);
1091
+ mutationFn: async (args) => {
1092
+ if (!client) {
1093
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseBalanceToParties", "airdrop-base");
1094
+ }
1095
+ return client.adminBatchDiscloseBalanceToParties(args);
419
1096
  }
420
1097
  });
421
1098
  }
422
- function useAirdropGrantRole(options) {
423
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1099
+ function useAdminDiscloseBalanceToParty(options) {
1100
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
1101
+ return reactQuery.useMutation({
1102
+ mutationFn: async (args) => {
1103
+ if (!client) {
1104
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseBalanceToParty", "airdrop-base");
1105
+ }
1106
+ return client.adminDiscloseBalanceToParty(args);
1107
+ }
1108
+ });
1109
+ }
1110
+ function useAdminGetCurrentBalance(options) {
1111
+ const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
424
1112
  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);
1113
+ mutationFn: async (args) => {
1114
+ if (!client) {
1115
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetCurrentBalance", "airdrop-base");
1116
+ }
1117
+ return client.adminGetCurrentBalance(args ?? {});
428
1118
  }
429
1119
  });
430
1120
  }
431
- function useAirdropRevokeRole(options) {
432
- const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
1121
+ function useAccessEcdsaClaimAmount(options) {
1122
+ const { client } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
433
1123
  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);
1124
+ mutationFn: async (args) => {
1125
+ if (!client) {
1126
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAccessEcdsaClaimAmount", "ecdsa-airdrop");
1127
+ }
1128
+ return client.getClaimAmount(args);
437
1129
  }
438
1130
  });
439
1131
  }
440
- function useSignClaimAuthorization(options = {}) {
441
- const { data: walletClient } = wagmi.useWalletClient({ chainId: options.chainId });
1132
+ function useAccessMerkleClaimAmount(options) {
1133
+ const { client } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
442
1134
  return reactQuery.useMutation({
443
1135
  mutationFn: async (args) => {
444
- if (!walletClient) {
445
- throw new chunk2RNW4MIJ_cjs.MissingWalletClientError("useSignClaimAuthorization");
1136
+ if (!client) {
1137
+ throw new chunk67OV5CX2_cjs.MissingClientError("useAccessMerkleClaimAmount", "merkle-airdrop");
446
1138
  }
447
- return chunkLBWRFZR3_cjs.signClaimAuthorization({
448
- walletClient,
449
- airdropAddress: args.airdropAddress,
450
- recipient: args.recipient,
451
- encryptedAmountHandle: args.encryptedAmountHandle
452
- });
1139
+ return client.getClaimAmount(args);
453
1140
  }
454
1141
  });
455
1142
  }
456
1143
 
457
- Object.defineProperty(exports, "AlreadyClaimedError", {
1144
+ Object.defineProperty(exports, "buildMerkleCampaign", {
458
1145
  enumerable: true,
459
- get: function () { return chunkSPGSO5SO_cjs.AlreadyClaimedError; }
1146
+ get: function () { return chunkIUKKNJ2R_cjs.buildMerkleCampaign; }
460
1147
  });
461
- Object.defineProperty(exports, "ClaimNotStartedError", {
1148
+ Object.defineProperty(exports, "buildMerkleTree", {
462
1149
  enumerable: true,
463
- get: function () { return chunkSPGSO5SO_cjs.ClaimNotStartedError; }
1150
+ get: function () { return chunkIUKKNJ2R_cjs.buildMerkleTree; }
464
1151
  });
465
- Object.defineProperty(exports, "ClaimWindowClosedError", {
1152
+ Object.defineProperty(exports, "encryptCampaignAmounts", {
466
1153
  enumerable: true,
467
- get: function () { return chunkSPGSO5SO_cjs.ClaimWindowClosedError; }
1154
+ get: function () { return chunkIUKKNJ2R_cjs.encryptCampaignAmounts; }
1155
+ });
1156
+ Object.defineProperty(exports, "grantInstanceRoles", {
1157
+ enumerable: true,
1158
+ get: function () { return chunkIUKKNJ2R_cjs.grantInstanceRoles; }
1159
+ });
1160
+ Object.defineProperty(exports, "leafOf", {
1161
+ enumerable: true,
1162
+ get: function () { return chunkIUKKNJ2R_cjs.leafOf; }
1163
+ });
1164
+ Object.defineProperty(exports, "planInstanceRoleSplit", {
1165
+ enumerable: true,
1166
+ get: function () { return chunkIUKKNJ2R_cjs.planInstanceRoleSplit; }
1167
+ });
1168
+ Object.defineProperty(exports, "planMerkleCampaign", {
1169
+ enumerable: true,
1170
+ get: function () { return chunkIUKKNJ2R_cjs.planMerkleCampaign; }
1171
+ });
1172
+ Object.defineProperty(exports, "rotateMerkleRoot", {
1173
+ enumerable: true,
1174
+ get: function () { return chunkIUKKNJ2R_cjs.rotateMerkleRoot; }
1175
+ });
1176
+ Object.defineProperty(exports, "validateCampaignRecipients", {
1177
+ enumerable: true,
1178
+ get: function () { return chunkIUKKNJ2R_cjs.validateCampaignRecipients; }
1179
+ });
1180
+ Object.defineProperty(exports, "airdropQueryKey", {
1181
+ enumerable: true,
1182
+ get: function () { return chunkEBLBPUPI_cjs.airdropQueryKey; }
1183
+ });
1184
+ Object.defineProperty(exports, "airdropQueryKeyPrefix", {
1185
+ enumerable: true,
1186
+ get: function () { return chunkEBLBPUPI_cjs.airdropQueryKeyPrefix; }
468
1187
  });
469
1188
  Object.defineProperty(exports, "encryptUint64", {
470
1189
  enumerable: true,
471
- get: function () { return chunkLBWRFZR3_cjs.encryptUint64; }
1190
+ get: function () { return chunkPZZK3O3S_cjs.encryptUint64; }
472
1191
  });
473
1192
  Object.defineProperty(exports, "encryptUint64Batch", {
474
1193
  enumerable: true,
475
- get: function () { return chunkLBWRFZR3_cjs.encryptUint64Batch; }
1194
+ get: function () { return chunkPZZK3O3S_cjs.encryptUint64Batch; }
476
1195
  });
477
1196
  Object.defineProperty(exports, "resolveEncryptor", {
478
1197
  enumerable: true,
479
- get: function () { return chunkLBWRFZR3_cjs.resolveEncryptor; }
1198
+ get: function () { return chunkPZZK3O3S_cjs.resolveEncryptor; }
480
1199
  });
481
1200
  Object.defineProperty(exports, "signClaimAuthorization", {
482
1201
  enumerable: true,
483
- get: function () { return chunkLBWRFZR3_cjs.signClaimAuthorization; }
1202
+ get: function () { return chunkPZZK3O3S_cjs.signClaimAuthorization; }
1203
+ });
1204
+ Object.defineProperty(exports, "AlreadyClaimedError", {
1205
+ enumerable: true,
1206
+ get: function () { return chunkAREQJHKA_cjs.AlreadyClaimedError; }
1207
+ });
1208
+ Object.defineProperty(exports, "ClaimNotStartedError", {
1209
+ enumerable: true,
1210
+ get: function () { return chunkAREQJHKA_cjs.ClaimNotStartedError; }
1211
+ });
1212
+ Object.defineProperty(exports, "ClaimWindowClosedError", {
1213
+ enumerable: true,
1214
+ get: function () { return chunkAREQJHKA_cjs.ClaimWindowClosedError; }
1215
+ });
1216
+ Object.defineProperty(exports, "DedupIdConsumedError", {
1217
+ enumerable: true,
1218
+ get: function () { return chunkAREQJHKA_cjs.DedupIdConsumedError; }
1219
+ });
1220
+ Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
1221
+ enumerable: true,
1222
+ get: function () { return chunkAREQJHKA_cjs.FeeCollectorSelfAdministeredError; }
1223
+ });
1224
+ Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
1225
+ enumerable: true,
1226
+ get: function () { return chunkAREQJHKA_cjs.MerkleUupsUnsupportedError; }
1227
+ });
1228
+ Object.defineProperty(exports, "NonStockWrapperError", {
1229
+ enumerable: true,
1230
+ get: function () { return chunkAREQJHKA_cjs.NonStockWrapperError; }
1231
+ });
1232
+ Object.defineProperty(exports, "PredictionDriftError", {
1233
+ enumerable: true,
1234
+ get: function () { return chunkAREQJHKA_cjs.PredictionDriftError; }
1235
+ });
1236
+ Object.defineProperty(exports, "SaltCollisionError", {
1237
+ enumerable: true,
1238
+ get: function () { return chunkAREQJHKA_cjs.SaltCollisionError; }
1239
+ });
1240
+ Object.defineProperty(exports, "SignatureExpiredError", {
1241
+ enumerable: true,
1242
+ get: function () { return chunkAREQJHKA_cjs.SignatureExpiredError; }
1243
+ });
1244
+ Object.defineProperty(exports, "UnauthorizedRedirectError", {
1245
+ enumerable: true,
1246
+ get: function () { return chunkAREQJHKA_cjs.UnauthorizedRedirectError; }
1247
+ });
1248
+ Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
1249
+ enumerable: true,
1250
+ get: function () { return chunkAREQJHKA_cjs.UpgradeabilityNotAllowedError; }
484
1251
  });
485
- Object.defineProperty(exports, "useEnsureOperator", {
1252
+ Object.defineProperty(exports, "preflightClaim", {
486
1253
  enumerable: true,
487
- get: function () { return chunkWOEETTH7_cjs.useEnsureOperator; }
1254
+ get: function () { return chunkAREQJHKA_cjs.preflightClaim; }
488
1255
  });
489
- Object.defineProperty(exports, "useIsOperator", {
1256
+ Object.defineProperty(exports, "preflightCreate", {
490
1257
  enumerable: true,
491
- get: function () { return chunkWOEETTH7_cjs.useIsOperator; }
1258
+ get: function () { return chunkAREQJHKA_cjs.preflightCreate; }
492
1259
  });
493
1260
  Object.defineProperty(exports, "AccessDeniedError", {
494
1261
  enumerable: true,
495
- get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
1262
+ get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
496
1263
  });
497
1264
  Object.defineProperty(exports, "AlreadyInitializedError", {
498
1265
  enumerable: true,
499
- get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
1266
+ get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
500
1267
  });
501
1268
  Object.defineProperty(exports, "BatchTooLargeError", {
502
1269
  enumerable: true,
503
- get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
1270
+ get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
504
1271
  });
505
1272
  Object.defineProperty(exports, "ContractRevertError", {
506
1273
  enumerable: true,
507
- get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
1274
+ get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
508
1275
  });
509
1276
  Object.defineProperty(exports, "DecryptionFailedError", {
510
1277
  enumerable: true,
511
- get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
1278
+ get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
512
1279
  });
513
1280
  Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
514
1281
  enumerable: true,
515
- get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
1282
+ get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
516
1283
  });
517
1284
  Object.defineProperty(exports, "EncryptionFailedError", {
518
1285
  enumerable: true,
519
- get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
1286
+ get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
520
1287
  });
521
1288
  Object.defineProperty(exports, "FeatureDisabledError", {
522
1289
  enumerable: true,
523
- get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
1290
+ get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
524
1291
  });
525
1292
  Object.defineProperty(exports, "FheHandleNotAllowedError", {
526
1293
  enumerable: true,
527
- get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
1294
+ get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
528
1295
  });
529
1296
  Object.defineProperty(exports, "InsufficientBalanceError", {
530
1297
  enumerable: true,
531
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
1298
+ get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
532
1299
  });
533
1300
  Object.defineProperty(exports, "InsufficientFeeError", {
534
1301
  enumerable: true,
535
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
1302
+ get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
536
1303
  });
537
1304
  Object.defineProperty(exports, "InsufficientGasFundsError", {
538
1305
  enumerable: true,
539
- get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
1306
+ get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
540
1307
  });
541
1308
  Object.defineProperty(exports, "InvalidArgumentError", {
542
1309
  enumerable: true,
543
- get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
1310
+ get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
544
1311
  });
545
1312
  Object.defineProperty(exports, "InvalidSignatureError", {
546
1313
  enumerable: true,
547
- get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
1314
+ get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
548
1315
  });
549
1316
  Object.defineProperty(exports, "MissingAccountError", {
550
1317
  enumerable: true,
551
- get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
1318
+ get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
552
1319
  });
553
1320
  Object.defineProperty(exports, "MissingClientError", {
554
1321
  enumerable: true,
555
- get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
1322
+ get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
556
1323
  });
557
1324
  Object.defineProperty(exports, "MissingEncryptorError", {
558
1325
  enumerable: true,
559
- get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
1326
+ get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
560
1327
  });
561
1328
  Object.defineProperty(exports, "MissingPublicClientError", {
562
1329
  enumerable: true,
563
- get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
1330
+ get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
564
1331
  });
565
1332
  Object.defineProperty(exports, "MissingWalletClientError", {
566
1333
  enumerable: true,
567
- get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
1334
+ get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
568
1335
  });
569
1336
  Object.defineProperty(exports, "NetworkError", {
570
1337
  enumerable: true,
571
- get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
1338
+ get: function () { return chunk67OV5CX2_cjs.NetworkError; }
572
1339
  });
573
1340
  Object.defineProperty(exports, "OperatorNotApprovedError", {
574
1341
  enumerable: true,
575
- get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
1342
+ get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
576
1343
  });
577
1344
  Object.defineProperty(exports, "PausedError", {
578
1345
  enumerable: true,
579
- get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
1346
+ get: function () { return chunk67OV5CX2_cjs.PausedError; }
580
1347
  });
581
1348
  Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
582
1349
  enumerable: true,
583
- get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
1350
+ get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
584
1351
  });
585
1352
  Object.defineProperty(exports, "ReceiptEventNotFoundError", {
586
1353
  enumerable: true,
587
- get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
1354
+ get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
588
1355
  });
589
1356
  Object.defineProperty(exports, "ReentrancyError", {
590
1357
  enumerable: true,
591
- get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
1358
+ get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
592
1359
  });
593
1360
  Object.defineProperty(exports, "RelayerUnreachableError", {
594
1361
  enumerable: true,
595
- get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
1362
+ get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
596
1363
  });
597
1364
  Object.defineProperty(exports, "SigningFailedError", {
598
1365
  enumerable: true,
599
- get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
1366
+ get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
600
1367
  });
601
1368
  Object.defineProperty(exports, "TokenOpsSdkError", {
602
1369
  enumerable: true,
603
- get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
1370
+ get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
604
1371
  });
605
1372
  Object.defineProperty(exports, "TransferFailedError", {
606
1373
  enumerable: true,
607
- get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
1374
+ get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
608
1375
  });
609
1376
  Object.defineProperty(exports, "UnknownWriteFailureError", {
610
1377
  enumerable: true,
611
- get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
1378
+ get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
612
1379
  });
613
1380
  Object.defineProperty(exports, "UnsupportedChainError", {
614
1381
  enumerable: true,
615
- get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
1382
+ get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
616
1383
  });
617
1384
  Object.defineProperty(exports, "UserDecryptNotAllowedError", {
618
1385
  enumerable: true,
619
- get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
1386
+ get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
620
1387
  });
621
1388
  Object.defineProperty(exports, "UserRejectedSignatureError", {
622
1389
  enumerable: true,
623
- get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
1390
+ get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
624
1391
  });
625
1392
  Object.defineProperty(exports, "WalletChainMismatchError", {
626
1393
  enumerable: true,
627
- get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
1394
+ get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
628
1395
  });
629
1396
  Object.defineProperty(exports, "WalletRejectedError", {
630
1397
  enumerable: true,
631
- get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
1398
+ get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
632
1399
  });
633
1400
  Object.defineProperty(exports, "isTokenOpsSdkError", {
634
1401
  enumerable: true,
635
- get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
1402
+ get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
636
1403
  });
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;
1404
+ exports.useAccessEcdsaClaimAmount = useAccessEcdsaClaimAmount;
1405
+ exports.useAccessMerkleClaimAmount = useAccessMerkleClaimAmount;
1406
+ exports.useAddComplianceDelegate = useAddComplianceDelegate;
1407
+ exports.useAdminBatchDiscloseBalanceToParties = useAdminBatchDiscloseBalanceToParties;
1408
+ exports.useAdminDiscloseBalanceToParty = useAdminDiscloseBalanceToParty;
1409
+ exports.useAdminGetCurrentBalance = useAdminGetCurrentBalance;
1410
+ exports.useAirdropConfig = useAirdropConfig;
1411
+ exports.useAirdropDeploymentMode = useAirdropDeploymentMode;
644
1412
  exports.useAirdropGasFee = useAirdropGasFee;
645
1413
  exports.useAirdropGrantRole = useAirdropGrantRole;
646
- exports.useAirdropHasClaimEnded = useAirdropHasClaimEnded;
647
- exports.useAirdropHasClaimStarted = useAirdropHasClaimStarted;
648
1414
  exports.useAirdropHasRole = useAirdropHasRole;
649
- exports.useAirdropIsClaimWindowActive = useAirdropIsClaimWindowActive;
650
- exports.useAirdropIsPaused = useAirdropIsPaused;
651
- exports.useAirdropIsSignatureClaimed = useAirdropIsSignatureClaimed;
652
- exports.useAirdropIsSignatureValid = useAirdropIsSignatureValid;
1415
+ exports.useAirdropPause = useAirdropPause;
1416
+ exports.useAirdropPaused = useAirdropPaused;
1417
+ exports.useAirdropRenounceRole = useAirdropRenounceRole;
653
1418
  exports.useAirdropRevokeRole = useAirdropRevokeRole;
654
- exports.useAirdropStartTime = useAirdropStartTime;
1419
+ exports.useAirdropRoleAdmin = useAirdropRoleAdmin;
1420
+ exports.useAirdropRoleConstants = useAirdropRoleConstants;
1421
+ exports.useAirdropRoleMembers = useAirdropRoleMembers;
655
1422
  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;
1423
+ exports.useAirdropUpgradeToAndCall = useAirdropUpgradeToAndCall;
1424
+ exports.useAirdropWindow = useAirdropWindow;
1425
+ exports.useBatchDiscloseHandlesToParty = useBatchDiscloseHandlesToParty;
1426
+ exports.useBuildMerkleCampaign = useBuildMerkleCampaign;
1427
+ exports.useClaimedAmount = useClaimedAmount;
1428
+ exports.useComplianceGrantRole = useComplianceGrantRole;
1429
+ exports.useComplianceHasRole = useComplianceHasRole;
1430
+ exports.useComplianceInfo = useComplianceInfo;
1431
+ exports.useComplianceManager = useComplianceManager;
1432
+ exports.useComplianceManagerOf = useComplianceManagerOf;
1433
+ exports.useComplianceRenounceRole = useComplianceRenounceRole;
1434
+ exports.useComplianceRevokeRole = useComplianceRevokeRole;
1435
+ exports.useComplianceRoleConstants = useComplianceRoleConstants;
1436
+ exports.useComplianceRoleMembers = useComplianceRoleMembers;
1437
+ exports.useCreateAndFundEcdsaAirdrop = useCreateAndFundEcdsaAirdrop;
1438
+ exports.useCreateAndFundMerkleAirdrop = useCreateAndFundMerkleAirdrop;
1439
+ exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
1440
+ exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
1441
+ exports.useDiscloseHandleToParty = useDiscloseHandleToParty;
1442
+ exports.useEcdsaClaim = useEcdsaClaim;
1443
+ exports.useEcdsaClaimAndUnwrap = useEcdsaClaimAndUnwrap;
1444
+ exports.useEcdsaDomain = useEcdsaDomain;
1445
+ exports.useEffectiveDelegateToCompliance = useEffectiveDelegateToCompliance;
1446
+ exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
1447
+ exports.useEncryptCampaignAmounts = useEncryptCampaignAmounts;
664
1448
  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;
1449
+ exports.useFactoryFees = useFactoryFees;
1450
+ exports.useFactoryRegistry = useFactoryRegistry;
1451
+ exports.useFundAirdrop = useFundAirdrop;
1452
+ exports.useGrantInstanceRoles = useGrantInstanceRoles;
1453
+ exports.useIsActiveDelegate = useIsActiveDelegate;
1454
+ exports.useIsMerkleRootMutable = useIsMerkleRootMutable;
1455
+ exports.useIsSignatureValid = useIsSignatureValid;
1456
+ exports.useMerkleClaim = useMerkleClaim;
1457
+ exports.useMerkleClaimAndUnwrap = useMerkleClaimAndUnwrap;
1458
+ exports.useMerkleRoot = useMerkleRoot;
1459
+ exports.usePlanMerkleCampaign = usePlanMerkleCampaign;
1460
+ exports.usePreflightClaim = usePreflightClaim;
671
1461
  exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
672
- exports.useSetCustomFee = useSetCustomFee;
673
- exports.useSetDefaultGasFee = useSetDefaultGasFee;
674
- exports.useSetFeeCollector = useSetFeeCollector;
675
- exports.useSetPaused = useSetPaused;
1462
+ exports.useRescueERC20 = useRescueERC20;
1463
+ exports.useRescueOtherConfidentialToken = useRescueOtherConfidentialToken;
1464
+ exports.useRevokeComplianceDelegate = useRevokeComplianceDelegate;
1465
+ exports.useRotateMerkleRoot = useRotateMerkleRoot;
1466
+ exports.useSetMerkleRoot = useSetMerkleRoot;
676
1467
  exports.useSignClaimAuthorization = useSignClaimAuthorization;
677
- exports.useWithdraw = useWithdraw;
678
- exports.useWithdrawOtherConfidentialToken = useWithdrawOtherConfidentialToken;
679
- exports.useWithdrawOtherToken = useWithdrawOtherToken;
1468
+ exports.useWithdrawConfidential = useWithdrawConfidential;
1469
+ exports.useWithdrawGasFee = useWithdrawGasFee;