@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.
- package/CHANGELOG.md +77 -8
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SUPPORT.md +47 -0
- package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
- package/dist/{chunk-YFIWCYHC.cjs → chunk-3YHBO2DL.cjs} +56 -54
- package/dist/{chunk-QET3Q4JP.js → chunk-44YJPMQC.js} +8 -6
- package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
- package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
- package/dist/chunk-66IHPTOK.cjs +20 -0
- package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
- package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
- package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
- package/dist/{chunk-QKKBBH7I.js → chunk-A4DCEE33.js} +34 -7
- package/dist/chunk-AREQJHKA.cjs +713 -0
- package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
- package/dist/chunk-EBLBPUPI.cjs +255 -0
- package/dist/chunk-EYDA6Q6C.js +245 -0
- package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/{chunk-AYGRYDBX.cjs → chunk-FEDX7B6T.cjs} +37 -35
- package/dist/{chunk-CBRL2PJA.cjs → chunk-FHWSBGWE.cjs} +12 -12
- package/dist/{chunk-WUXUWTFW.cjs → chunk-FT5H2Q7Y.cjs} +37 -7
- package/dist/chunk-GADGBQJO.js +423 -0
- package/dist/{chunk-VHSNYUYV.js → chunk-IGO5XSPS.js} +5 -5
- package/dist/chunk-IUKKNJ2R.cjs +433 -0
- package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/{chunk-7G7UOQV4.cjs → chunk-MM5BV5CS.cjs} +4 -4
- package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
- package/dist/chunk-NWFMBLSQ.js +4 -0
- package/dist/{chunk-HETNKZEE.js → chunk-PYYSB5ZN.js} +1 -1
- package/dist/chunk-PZZK3O3S.cjs +9843 -0
- package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
- package/dist/{chunk-WTK6JDSI.js → chunk-SPLNGUFF.js} +6 -4
- package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
- package/dist/chunk-UG5RKLU2.cjs +6 -0
- package/dist/{chunk-EUKPOXWR.cjs → chunk-UHHMVBLU.cjs} +17 -15
- package/dist/chunk-VW356KR3.js +688 -0
- package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
- package/dist/{chunk-V5D7BHW3.js → chunk-WJMEBBU7.js} +6 -4
- package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
- package/dist/chunk-X7WBPCEU.js +9817 -0
- package/dist/{chunk-46T67CE2.js → chunk-ZA673I3O.js} +1 -1
- package/dist/{chunk-YPYCWLYP.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +14 -2
- package/dist/core/brands.d.ts +8 -2
- package/dist/core/errors.d.ts +71 -10
- package/dist/core/preflight.d.ts +1 -0
- package/dist/fhe/erc7984-abi.d.ts +1 -0
- package/dist/fhe/index.cjs +64 -63
- package/dist/fhe/index.js +7 -6
- package/dist/fhe/operators.d.ts +22 -5
- package/dist/fhe/react/index.cjs +13 -12
- package/dist/fhe/react/index.js +6 -5
- package/dist/fhe/types.d.ts +8 -2
- package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
- package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
- package/dist/fhe-airdrop/abis/index.d.ts +5 -2
- package/dist/fhe-airdrop/abis/merkle.d.ts +1250 -0
- package/dist/fhe-airdrop/advanced/index.cjs +11 -12
- package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
- package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
- package/dist/fhe-airdrop/advanced/index.js +3 -8
- package/dist/fhe-airdrop/advanced/react/index.cjs +619 -51
- package/dist/fhe-airdrop/advanced/react/index.d.cts +43 -3
- package/dist/fhe-airdrop/advanced/react/index.d.ts +43 -3
- package/dist/fhe-airdrop/advanced/react/index.js +592 -52
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +35 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +47 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
- package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
- package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +608 -0
- package/dist/fhe-airdrop/campaign.d.ts +338 -0
- package/dist/fhe-airdrop/compliance.d.ts +302 -0
- package/dist/fhe-airdrop/constants.d.ts +33 -0
- package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
- package/dist/fhe-airdrop/encryption.d.ts +92 -14
- package/dist/fhe-airdrop/errors.d.ts +273 -15
- package/dist/fhe-airdrop/factory.d.ts +533 -274
- package/dist/fhe-airdrop/guards.d.ts +317 -0
- package/dist/fhe-airdrop/index.cjs +233 -73
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +11 -7
- package/dist/fhe-airdrop/merkle-tree.d.ts +97 -0
- package/dist/fhe-airdrop/merkle.d.ts +201 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +156 -70
- package/dist/fhe-airdrop/react/index.cjs +1174 -384
- package/dist/fhe-airdrop/react/index.d.cts +99 -74
- package/dist/fhe-airdrop/react/index.d.ts +99 -74
- package/dist/fhe-airdrop/react/index.js +993 -303
- package/dist/fhe-airdrop/react/keys.d.ts +90 -0
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
- package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +29 -10
- package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
- package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +27 -9
- package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
- package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
- package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
- package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
- package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
- package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
- package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
- package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
- package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
- package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +24 -0
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
- package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
- package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
- package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
- package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
- package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +22 -0
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
- package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -35
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
- package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
- package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +32 -21
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
- package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/roles.d.ts +147 -0
- package/dist/fhe-airdrop/types.d.ts +78 -63
- package/dist/fhe-disperse/index.cjs +70 -68
- package/dist/fhe-disperse/index.js +10 -8
- package/dist/fhe-disperse/react/index.cjs +94 -92
- package/dist/fhe-disperse/react/index.js +13 -11
- package/dist/fhe-vesting/advanced/index.cjs +10 -8
- package/dist/fhe-vesting/advanced/index.js +8 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
- package/dist/fhe-vesting/advanced/react/index.js +13 -11
- package/dist/fhe-vesting/index.cjs +74 -72
- package/dist/fhe-vesting/index.js +11 -9
- package/dist/fhe-vesting/react/index.cjs +228 -226
- package/dist/fhe-vesting/react/index.js +15 -13
- package/dist/index.cjs +100 -87
- package/dist/index.js +3 -2
- package/dist/testnet-faucet/index.cjs +57 -55
- package/dist/testnet-faucet/index.js +7 -5
- package/dist/testnet-faucet/react/index.cjs +55 -53
- package/dist/testnet-faucet/react/index.js +9 -7
- package/package.json +6 -2
- package/dist/chunk-CNP4L3GF.js +0 -105
- package/dist/chunk-KSDSXJ34.js +0 -41
- package/dist/chunk-LBWRFZR3.cjs +0 -1681
- package/dist/chunk-OL6SHN3D.cjs +0 -44
- package/dist/chunk-S2XD75JM.js +0 -1637
- package/dist/chunk-SPGSO5SO.cjs +0 -1644
- package/dist/chunk-UE5XK2SY.js +0 -1673
- package/dist/chunk-WO72UBQD.cjs +0 -109
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
- package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
- package/dist/fhe-airdrop/airdrop.d.ts +0 -317
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
- package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
- package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
- package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
- package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
- package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
- package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
- package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
- package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
- package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
- package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
|
@@ -1,93 +1,118 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React/wagmi hooks for `@tokenops/sdk/fhe-airdrop`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* v1 shipped 30 hooks, many one-line reads nobody called (Task 4 deleted all
|
|
5
|
+
* of them). This subpath ships exactly the v2 hook list — a consumer who
|
|
6
|
+
* needs a headless method not wrapped here calls it directly from
|
|
7
|
+
* `@tokenops/sdk/fhe-airdrop`; every hook below composes with wagmi
|
|
8
|
+
* (`usePublicClient`, `useWalletClient`) and TanStack Query (`useQuery`,
|
|
9
|
+
* `useMutation`) — no extra provider needed beyond the standard wagmi
|
|
10
|
+
* `<WagmiProvider>` + `<QueryClientProvider>`.
|
|
9
11
|
*
|
|
10
|
-
* **Encryptor.**
|
|
11
|
-
* (`
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `ZamaSDK`; the encrypt-capable interface lives on `.relayer`. Wire it as a
|
|
15
|
-
* lazy factory so the SDK picks up the live React context at submit time
|
|
16
|
-
* (CLAUDE.md Pitfall #3):
|
|
12
|
+
* **Encryptor.** Only `useFundAirdrop` submits an encrypted input. Pass an
|
|
13
|
+
* explicit `encryptor` source (eager `Encryptor` or `() => Encryptor |
|
|
14
|
+
* undefined`) — wire it as a lazy factory so the SDK picks up the live React
|
|
15
|
+
* context at submit time (CLAUDE.md Pitfall #3):
|
|
17
16
|
*
|
|
18
17
|
* ```ts
|
|
19
18
|
* import { useZamaSDK } from "@zama-fhe/react-sdk";
|
|
20
19
|
*
|
|
21
|
-
* function Component(
|
|
20
|
+
* function Component() {
|
|
22
21
|
* const zamaSDK = useZamaSDK();
|
|
23
|
-
* const
|
|
24
|
-
* encryptor: () => zamaSDK.relayer,
|
|
25
|
-
* });
|
|
22
|
+
* const fund = useFundAirdrop({ encryptor: () => zamaSDK.relayer });
|
|
26
23
|
* ...
|
|
27
24
|
* }
|
|
28
25
|
* ```
|
|
29
26
|
*
|
|
30
|
-
* Airdrop *clone* hooks (`useClaim`, `useGetClaimAmount`) take no `encryptor`
|
|
31
|
-
* — the recipient submits the admin-issued `{ encryptedInput, signature }`
|
|
32
|
-
* payload verbatim. The signature commits to a specific handle; re-encrypting
|
|
33
|
-
* client-side would invalidate it.
|
|
34
|
-
*
|
|
35
27
|
* `@zama-fhe/react-sdk` is an **OPTIONAL** peer dep — install it explicitly
|
|
36
|
-
*
|
|
37
|
-
*
|
|
28
|
+
* for FHE flows. The hook surface here never imports it at top level;
|
|
29
|
+
* consumers without FHE pay no cost.
|
|
38
30
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
31
|
+
* **Invalidation — unlike `/fhe-vesting`, write hooks here DO invalidate**
|
|
32
|
+
* the query keys they affect, `onSuccess`, scoped to exactly what changed
|
|
33
|
+
* (this instance's `merkleRoot`, this instance's `hasRole` bucket, …) — never
|
|
34
|
+
* the whole `fhe-airdrop` namespace. See each write hook's "Invalidates" note.
|
|
41
35
|
*/
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export { useFactoryInitCodeHash, type UseFactoryInitCodeHashArgs, } from "./useFactoryInitCodeHash.js";
|
|
47
|
-
export { usePreflightCreateAirdrop, type UsePreflightCreateAirdropArgs, } from "./usePreflightCreateAirdrop.js";
|
|
48
|
-
export { useCreateConfidentialAirdropAndGetAddress } from "./useCreateConfidentialAirdropAndGetAddress.js";
|
|
49
|
-
export { useCreateConfidentialAirdrop } from "./useCreateConfidentialAirdrop.js";
|
|
50
|
-
export { useCreateAndFundConfidentialAirdrop } from "./useCreateAndFundConfidentialAirdrop.js";
|
|
51
|
-
export { useCreateAndFundConfidentialAirdropAndGetAddress } from "./useCreateAndFundConfidentialAirdropAndGetAddress.js";
|
|
52
|
-
export { useFundConfidentialAirdrop } from "./useFundConfidentialAirdrop.js";
|
|
53
|
-
export { useSetFeeCollector, type UseSetFeeCollectorArgs } from "./useSetFeeCollector.js";
|
|
54
|
-
export { useSetDefaultGasFee, type UseSetDefaultGasFeeArgs } from "./useSetDefaultGasFee.js";
|
|
55
|
-
export { useSetCustomFee, type UseSetCustomFeeArgs } from "./useSetCustomFee.js";
|
|
56
|
-
export { useDisableCustomFee, type UseDisableCustomFeeArgs } from "./useDisableCustomFee.js";
|
|
57
|
-
export { useAirdropToken } from "./useAirdropToken.js";
|
|
58
|
-
export { useAirdropGasFee } from "./useAirdropGasFee.js";
|
|
59
|
-
export { useAirdropStartTime } from "./useAirdropStartTime.js";
|
|
60
|
-
export { useAirdropCanExtendClaimWindow } from "./useAirdropCanExtendClaimWindow.js";
|
|
61
|
-
export { useAirdropEndTime } from "./useAirdropEndTime.js";
|
|
62
|
-
export { useAirdropIsPaused } from "./useAirdropIsPaused.js";
|
|
63
|
-
export { useAirdropDeploymentBlockNumber } from "./useAirdropDeploymentBlockNumber.js";
|
|
64
|
-
export { useAirdropDomainSeparator } from "./useAirdropDomainSeparator.js";
|
|
65
|
-
export { useAirdropClaimTypehash } from "./useAirdropClaimTypehash.js";
|
|
66
|
-
export { useAirdropIsClaimWindowActive } from "./useAirdropIsClaimWindowActive.js";
|
|
67
|
-
export { useAirdropHasClaimStarted } from "./useAirdropHasClaimStarted.js";
|
|
68
|
-
export { useAirdropHasClaimEnded } from "./useAirdropHasClaimEnded.js";
|
|
69
|
-
export { useAirdropClaimedSignatures, type UseAirdropClaimedSignaturesArgs, } from "./useAirdropClaimedSignatures.js";
|
|
70
|
-
export { useAirdropIsSignatureClaimed, type UseAirdropIsSignatureClaimedArgs, } from "./useAirdropIsSignatureClaimed.js";
|
|
71
|
-
export { useAirdropIsSignatureValid, type UseAirdropIsSignatureValidArgs, } from "./useAirdropIsSignatureValid.js";
|
|
36
|
+
export { useAirdropToken, type UseAirdropTokenArgs } from "./useAirdropToken.js";
|
|
37
|
+
export { useAirdropWindow, type AirdropWindow, type UseAirdropWindowArgs, } from "./useAirdropWindow.js";
|
|
38
|
+
export { useAirdropPaused, type UseAirdropPausedArgs } from "./useAirdropPaused.js";
|
|
39
|
+
export { useAirdropGasFee, type UseAirdropGasFeeArgs } from "./useAirdropGasFee.js";
|
|
72
40
|
export { useAirdropHasRole, type UseAirdropHasRoleArgs } from "./useAirdropHasRole.js";
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export
|
|
41
|
+
export { useMerkleRoot, type UseMerkleRootArgs } from "./useMerkleRoot.js";
|
|
42
|
+
export { useClaimedAmount, type UseClaimedAmountArgs } from "./useClaimedAmount.js";
|
|
43
|
+
export { useComplianceManager, type UseComplianceManagerArgs } from "./useComplianceManager.js";
|
|
44
|
+
export { useFactoryFees, type FactoryFees, type UseFactoryFeesArgs } from "./useFactoryFees.js";
|
|
45
|
+
export { useFactoryRegistry, type FactoryRegistryPage, type UseFactoryRegistryArgs, } from "./useFactoryRegistry.js";
|
|
46
|
+
export { useEffectiveUpgradeable, type UseEffectiveUpgradeableArgs, } from "./useEffectiveUpgradeable.js";
|
|
47
|
+
export { useAirdropConfig, type AirdropConfig, type UseAirdropConfigArgs, } from "./useAirdropConfig.js";
|
|
48
|
+
export { useAirdropDeploymentMode, type UseAirdropDeploymentModeArgs, } from "./useAirdropDeploymentMode.js";
|
|
49
|
+
export { useAirdropRoleAdmin, type UseAirdropRoleAdminArgs } from "./useAirdropRoleAdmin.js";
|
|
50
|
+
export { useAirdropRoleConstants, type AirdropRoleConstants, type UseAirdropRoleConstantsArgs, } from "./useAirdropRoleConstants.js";
|
|
51
|
+
export { useAirdropRoleMembers, type AirdropRoleMembership, type UseAirdropRoleMembersArgs, } from "./useAirdropRoleMembers.js";
|
|
52
|
+
export { useComplianceHasRole, type UseComplianceHasRoleArgs } from "./useComplianceHasRole.js";
|
|
53
|
+
export { useComplianceInfo, type ComplianceInfo, type UseComplianceInfoArgs, } from "./useComplianceInfo.js";
|
|
54
|
+
export { useComplianceManagerOf, type UseComplianceManagerOfArgs, } from "./useComplianceManagerOf.js";
|
|
55
|
+
export { useComplianceRoleConstants, type ComplianceRoleConstants, type UseComplianceRoleConstantsArgs, } from "./useComplianceRoleConstants.js";
|
|
56
|
+
export { useComplianceRoleMembers, type ComplianceRoleMembership, type UseComplianceRoleMembersArgs, } from "./useComplianceRoleMembers.js";
|
|
57
|
+
export { useEcdsaDomain, type EcdsaDomain, type UseEcdsaDomainArgs } from "./useEcdsaDomain.js";
|
|
58
|
+
export { useEffectiveDelegateToCompliance, type UseEffectiveDelegateToComplianceArgs, } from "./useEffectiveDelegateToCompliance.js";
|
|
59
|
+
export { useIsActiveDelegate, type UseIsActiveDelegateArgs } from "./useIsActiveDelegate.js";
|
|
60
|
+
export { useIsMerkleRootMutable, type UseIsMerkleRootMutableArgs, } from "./useIsMerkleRootMutable.js";
|
|
61
|
+
export { useIsSignatureValid, type UseIsSignatureValidArgs } from "./useIsSignatureValid.js";
|
|
62
|
+
export { usePreflightClaim, type UsePreflightClaimArgs } from "./usePreflightClaim.js";
|
|
63
|
+
export { usePreflightCreateAirdrop, type PreflightCreateAirdropCommon, type UsePreflightCreateAirdropArgs, } from "./usePreflightCreateAirdrop.js";
|
|
64
|
+
export { useCreateEcdsaAirdrop } from "./useCreateEcdsaAirdrop.js";
|
|
65
|
+
export { useCreateMerkleAirdrop } from "./useCreateMerkleAirdrop.js";
|
|
66
|
+
export { useFundAirdrop } from "./useFundAirdrop.js";
|
|
67
|
+
export { useEcdsaClaim } from "./useEcdsaClaim.js";
|
|
68
|
+
export { useMerkleClaim } from "./useMerkleClaim.js";
|
|
69
|
+
export { useSetMerkleRoot } from "./useSetMerkleRoot.js";
|
|
70
|
+
export { useGrantInstanceRoles, type GrantInstanceRolesArgs } from "./useGrantInstanceRoles.js";
|
|
71
|
+
export { useAirdropPause, type AirdropPauseArgs } from "./useAirdropPause.js";
|
|
72
|
+
export { useExtendClaimWindow } from "./useExtendClaimWindow.js";
|
|
73
|
+
export { useWithdrawConfidential } from "./useWithdrawConfidential.js";
|
|
74
|
+
export { useAddComplianceDelegate, type AddComplianceDelegateArgs, } from "./useAddComplianceDelegate.js";
|
|
75
|
+
export { useAirdropGrantRole, type AirdropGrantRoleArgs } from "./useAirdropGrantRole.js";
|
|
76
|
+
export { useAirdropRenounceRole, type AirdropRenounceRoleArgs } from "./useAirdropRenounceRole.js";
|
|
77
|
+
export { useAirdropRevokeRole, type AirdropRevokeRoleArgs } from "./useAirdropRevokeRole.js";
|
|
78
|
+
export { useAirdropUpgradeToAndCall, type AirdropUpgradeToAndCallArgs, } from "./useAirdropUpgradeToAndCall.js";
|
|
79
|
+
export { useBatchDiscloseHandlesToParty, type UseBatchDiscloseHandlesToPartyArgs, } from "./useBatchDiscloseHandlesToParty.js";
|
|
80
|
+
export { useBuildMerkleCampaign, type UseBuildMerkleCampaignOptions, type UseBuildMerkleCampaignArgs, } from "./useBuildMerkleCampaign.js";
|
|
81
|
+
export { useComplianceGrantRole, type ComplianceGrantRoleArgs } from "./useComplianceGrantRole.js";
|
|
82
|
+
export { useComplianceRenounceRole, type ComplianceRenounceRoleArgs, } from "./useComplianceRenounceRole.js";
|
|
83
|
+
export { useComplianceRevokeRole, type ComplianceRevokeRoleArgs, } from "./useComplianceRevokeRole.js";
|
|
84
|
+
export { useCreateAndFundEcdsaAirdrop, type UseCreateAndFundEcdsaAirdropArgs, } from "./useCreateAndFundEcdsaAirdrop.js";
|
|
85
|
+
export { useCreateAndFundMerkleAirdrop, type UseCreateAndFundMerkleAirdropArgs, } from "./useCreateAndFundMerkleAirdrop.js";
|
|
86
|
+
export { useDiscloseHandleToParty, type UseDiscloseHandleToPartyArgs, } from "./useDiscloseHandleToParty.js";
|
|
87
|
+
export { useEcdsaClaimAndUnwrap } from "./useEcdsaClaimAndUnwrap.js";
|
|
88
|
+
export { useEncryptCampaignAmounts, type UseEncryptCampaignAmountsOptions, type UseEncryptCampaignAmountsArgs, } from "./useEncryptCampaignAmounts.js";
|
|
89
|
+
export { useMerkleClaimAndUnwrap } from "./useMerkleClaimAndUnwrap.js";
|
|
90
|
+
export { usePlanMerkleCampaign, type UsePlanMerkleCampaignArgs } from "./usePlanMerkleCampaign.js";
|
|
91
|
+
export { useRescueERC20, type RescueERC20Args } from "./useRescueERC20.js";
|
|
92
|
+
export { useRescueOtherConfidentialToken, type RescueOtherConfidentialTokenArgs, } from "./useRescueOtherConfidentialToken.js";
|
|
93
|
+
export { useRevokeComplianceDelegate, type RevokeComplianceDelegateArgs, } from "./useRevokeComplianceDelegate.js";
|
|
94
|
+
export { useRotateMerkleRoot, type UseRotateMerkleRootArgs } from "./useRotateMerkleRoot.js";
|
|
95
|
+
export { useSignClaimAuthorization, type SignClaimAuthorizationArgs, } from "./useSignClaimAuthorization.js";
|
|
96
|
+
export { useWithdrawGasFee, type WithdrawGasFeeArgs } from "./useWithdrawGasFee.js";
|
|
97
|
+
export { useAdminBatchDiscloseBalanceToParties, type UseAdminBatchDiscloseBalanceToPartiesArgs, } from "./useAdminBatchDiscloseBalanceToParties.js";
|
|
98
|
+
export { useAdminDiscloseBalanceToParty, type UseAdminDiscloseBalanceToPartyArgs, } from "./useAdminDiscloseBalanceToParty.js";
|
|
99
|
+
export { useAdminGetCurrentBalance } from "./useAdminGetCurrentBalance.js";
|
|
100
|
+
export { useAccessEcdsaClaimAmount } from "./useAccessEcdsaClaimAmount.js";
|
|
101
|
+
export { useAccessMerkleClaimAmount } from "./useAccessMerkleClaimAmount.js";
|
|
102
|
+
export { airdropQueryKey, airdropQueryKeyPrefix, type AirdropClientOptions, type AirdropHookOptions, type AirdropInstanceClientOptions, type AirdropInstanceHookOptions, type EcdsaAirdropInstanceClientOptions, type EcdsaAirdropInstanceHookOptions, } from "./_shared.js";
|
|
85
103
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "../encryption.js";
|
|
86
|
-
export
|
|
87
|
-
export type {
|
|
88
|
-
export type {
|
|
104
|
+
export type { EncryptedInput, EncryptedInputs, EncryptedViewResult } from "../../fhe/types.js";
|
|
105
|
+
export type { CreateAirdropArgs, CreateAirdropResult, EcdsaAirdropParams, MerkleAirdropParams, CommonAirdropParams, BuiltCampaign, CampaignEntry, CampaignRecipient, } from "../types.js";
|
|
106
|
+
export type { EcdsaClaimArgs, Eip712Domain, GetClaimAmountArgs as EcdsaGetClaimAmountArgs, } from "../ecdsa.js";
|
|
107
|
+
export type { GetClaimAmountArgs as MerkleGetClaimAmountArgs } from "../merkle.js";
|
|
108
|
+
export type { MerkleClaimArgs } from "../merkle.js";
|
|
109
|
+
export { buildMerkleTree, leafOf, type BuildMerkleTreeArgs, type BuiltMerkleTree, type LeafOfArgs, type MerkleLeafInput, } from "../merkle-tree.js";
|
|
110
|
+
export type { FundInput } from "../factory.js";
|
|
111
|
+
export type { WriteAccountOverride } from "../airdrop-base.js";
|
|
112
|
+
export { buildMerkleCampaign, encryptCampaignAmounts, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type CampaignSubmitterOption, type EncryptCampaignAmountsArgs, type EncryptedCampaignLeaf, type PlanMerkleCampaignArgs, type PlannedCampaign, type RotatedCampaign, type RotateMerkleRootArgs, } from "../campaign.js";
|
|
113
|
+
export { preflightClaim, preflightCreate, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, } from "../guards.js";
|
|
114
|
+
export type { PreflightResult } from "../../core/preflight.js";
|
|
115
|
+
export { grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "../roles.js";
|
|
116
|
+
export { type DedupMode, type DeploymentMode } from "../constants.js";
|
|
89
117
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../../core/errors.js";
|
|
90
|
-
export { type
|
|
91
|
-
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from "../errors.js";
|
|
92
|
-
export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
|
|
93
|
-
export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
|
|
118
|
+
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, MerkleUupsUnsupportedError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "../errors.js";
|
|
@@ -1,93 +1,118 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* React/wagmi hooks for `@tokenops/sdk/fhe-airdrop`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
4
|
+
* v1 shipped 30 hooks, many one-line reads nobody called (Task 4 deleted all
|
|
5
|
+
* of them). This subpath ships exactly the v2 hook list — a consumer who
|
|
6
|
+
* needs a headless method not wrapped here calls it directly from
|
|
7
|
+
* `@tokenops/sdk/fhe-airdrop`; every hook below composes with wagmi
|
|
8
|
+
* (`usePublicClient`, `useWalletClient`) and TanStack Query (`useQuery`,
|
|
9
|
+
* `useMutation`) — no extra provider needed beyond the standard wagmi
|
|
10
|
+
* `<WagmiProvider>` + `<QueryClientProvider>`.
|
|
9
11
|
*
|
|
10
|
-
* **Encryptor.**
|
|
11
|
-
* (`
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* `ZamaSDK`; the encrypt-capable interface lives on `.relayer`. Wire it as a
|
|
15
|
-
* lazy factory so the SDK picks up the live React context at submit time
|
|
16
|
-
* (CLAUDE.md Pitfall #3):
|
|
12
|
+
* **Encryptor.** Only `useFundAirdrop` submits an encrypted input. Pass an
|
|
13
|
+
* explicit `encryptor` source (eager `Encryptor` or `() => Encryptor |
|
|
14
|
+
* undefined`) — wire it as a lazy factory so the SDK picks up the live React
|
|
15
|
+
* context at submit time (CLAUDE.md Pitfall #3):
|
|
17
16
|
*
|
|
18
17
|
* ```ts
|
|
19
18
|
* import { useZamaSDK } from "@zama-fhe/react-sdk";
|
|
20
19
|
*
|
|
21
|
-
* function Component(
|
|
20
|
+
* function Component() {
|
|
22
21
|
* const zamaSDK = useZamaSDK();
|
|
23
|
-
* const
|
|
24
|
-
* encryptor: () => zamaSDK.relayer,
|
|
25
|
-
* });
|
|
22
|
+
* const fund = useFundAirdrop({ encryptor: () => zamaSDK.relayer });
|
|
26
23
|
* ...
|
|
27
24
|
* }
|
|
28
25
|
* ```
|
|
29
26
|
*
|
|
30
|
-
* Airdrop *clone* hooks (`useClaim`, `useGetClaimAmount`) take no `encryptor`
|
|
31
|
-
* — the recipient submits the admin-issued `{ encryptedInput, signature }`
|
|
32
|
-
* payload verbatim. The signature commits to a specific handle; re-encrypting
|
|
33
|
-
* client-side would invalidate it.
|
|
34
|
-
*
|
|
35
27
|
* `@zama-fhe/react-sdk` is an **OPTIONAL** peer dep — install it explicitly
|
|
36
|
-
*
|
|
37
|
-
*
|
|
28
|
+
* for FHE flows. The hook surface here never imports it at top level;
|
|
29
|
+
* consumers without FHE pay no cost.
|
|
38
30
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
31
|
+
* **Invalidation — unlike `/fhe-vesting`, write hooks here DO invalidate**
|
|
32
|
+
* the query keys they affect, `onSuccess`, scoped to exactly what changed
|
|
33
|
+
* (this instance's `merkleRoot`, this instance's `hasRole` bucket, …) — never
|
|
34
|
+
* the whole `fhe-airdrop` namespace. See each write hook's "Invalidates" note.
|
|
41
35
|
*/
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export { useFactoryInitCodeHash, type UseFactoryInitCodeHashArgs, } from "./useFactoryInitCodeHash.js";
|
|
47
|
-
export { usePreflightCreateAirdrop, type UsePreflightCreateAirdropArgs, } from "./usePreflightCreateAirdrop.js";
|
|
48
|
-
export { useCreateConfidentialAirdropAndGetAddress } from "./useCreateConfidentialAirdropAndGetAddress.js";
|
|
49
|
-
export { useCreateConfidentialAirdrop } from "./useCreateConfidentialAirdrop.js";
|
|
50
|
-
export { useCreateAndFundConfidentialAirdrop } from "./useCreateAndFundConfidentialAirdrop.js";
|
|
51
|
-
export { useCreateAndFundConfidentialAirdropAndGetAddress } from "./useCreateAndFundConfidentialAirdropAndGetAddress.js";
|
|
52
|
-
export { useFundConfidentialAirdrop } from "./useFundConfidentialAirdrop.js";
|
|
53
|
-
export { useSetFeeCollector, type UseSetFeeCollectorArgs } from "./useSetFeeCollector.js";
|
|
54
|
-
export { useSetDefaultGasFee, type UseSetDefaultGasFeeArgs } from "./useSetDefaultGasFee.js";
|
|
55
|
-
export { useSetCustomFee, type UseSetCustomFeeArgs } from "./useSetCustomFee.js";
|
|
56
|
-
export { useDisableCustomFee, type UseDisableCustomFeeArgs } from "./useDisableCustomFee.js";
|
|
57
|
-
export { useAirdropToken } from "./useAirdropToken.js";
|
|
58
|
-
export { useAirdropGasFee } from "./useAirdropGasFee.js";
|
|
59
|
-
export { useAirdropStartTime } from "./useAirdropStartTime.js";
|
|
60
|
-
export { useAirdropCanExtendClaimWindow } from "./useAirdropCanExtendClaimWindow.js";
|
|
61
|
-
export { useAirdropEndTime } from "./useAirdropEndTime.js";
|
|
62
|
-
export { useAirdropIsPaused } from "./useAirdropIsPaused.js";
|
|
63
|
-
export { useAirdropDeploymentBlockNumber } from "./useAirdropDeploymentBlockNumber.js";
|
|
64
|
-
export { useAirdropDomainSeparator } from "./useAirdropDomainSeparator.js";
|
|
65
|
-
export { useAirdropClaimTypehash } from "./useAirdropClaimTypehash.js";
|
|
66
|
-
export { useAirdropIsClaimWindowActive } from "./useAirdropIsClaimWindowActive.js";
|
|
67
|
-
export { useAirdropHasClaimStarted } from "./useAirdropHasClaimStarted.js";
|
|
68
|
-
export { useAirdropHasClaimEnded } from "./useAirdropHasClaimEnded.js";
|
|
69
|
-
export { useAirdropClaimedSignatures, type UseAirdropClaimedSignaturesArgs, } from "./useAirdropClaimedSignatures.js";
|
|
70
|
-
export { useAirdropIsSignatureClaimed, type UseAirdropIsSignatureClaimedArgs, } from "./useAirdropIsSignatureClaimed.js";
|
|
71
|
-
export { useAirdropIsSignatureValid, type UseAirdropIsSignatureValidArgs, } from "./useAirdropIsSignatureValid.js";
|
|
36
|
+
export { useAirdropToken, type UseAirdropTokenArgs } from "./useAirdropToken.js";
|
|
37
|
+
export { useAirdropWindow, type AirdropWindow, type UseAirdropWindowArgs, } from "./useAirdropWindow.js";
|
|
38
|
+
export { useAirdropPaused, type UseAirdropPausedArgs } from "./useAirdropPaused.js";
|
|
39
|
+
export { useAirdropGasFee, type UseAirdropGasFeeArgs } from "./useAirdropGasFee.js";
|
|
72
40
|
export { useAirdropHasRole, type UseAirdropHasRoleArgs } from "./useAirdropHasRole.js";
|
|
73
|
-
export {
|
|
74
|
-
export {
|
|
75
|
-
export {
|
|
76
|
-
export {
|
|
77
|
-
export {
|
|
78
|
-
export {
|
|
79
|
-
export {
|
|
80
|
-
export {
|
|
81
|
-
export {
|
|
82
|
-
export {
|
|
83
|
-
export {
|
|
84
|
-
export
|
|
41
|
+
export { useMerkleRoot, type UseMerkleRootArgs } from "./useMerkleRoot.js";
|
|
42
|
+
export { useClaimedAmount, type UseClaimedAmountArgs } from "./useClaimedAmount.js";
|
|
43
|
+
export { useComplianceManager, type UseComplianceManagerArgs } from "./useComplianceManager.js";
|
|
44
|
+
export { useFactoryFees, type FactoryFees, type UseFactoryFeesArgs } from "./useFactoryFees.js";
|
|
45
|
+
export { useFactoryRegistry, type FactoryRegistryPage, type UseFactoryRegistryArgs, } from "./useFactoryRegistry.js";
|
|
46
|
+
export { useEffectiveUpgradeable, type UseEffectiveUpgradeableArgs, } from "./useEffectiveUpgradeable.js";
|
|
47
|
+
export { useAirdropConfig, type AirdropConfig, type UseAirdropConfigArgs, } from "./useAirdropConfig.js";
|
|
48
|
+
export { useAirdropDeploymentMode, type UseAirdropDeploymentModeArgs, } from "./useAirdropDeploymentMode.js";
|
|
49
|
+
export { useAirdropRoleAdmin, type UseAirdropRoleAdminArgs } from "./useAirdropRoleAdmin.js";
|
|
50
|
+
export { useAirdropRoleConstants, type AirdropRoleConstants, type UseAirdropRoleConstantsArgs, } from "./useAirdropRoleConstants.js";
|
|
51
|
+
export { useAirdropRoleMembers, type AirdropRoleMembership, type UseAirdropRoleMembersArgs, } from "./useAirdropRoleMembers.js";
|
|
52
|
+
export { useComplianceHasRole, type UseComplianceHasRoleArgs } from "./useComplianceHasRole.js";
|
|
53
|
+
export { useComplianceInfo, type ComplianceInfo, type UseComplianceInfoArgs, } from "./useComplianceInfo.js";
|
|
54
|
+
export { useComplianceManagerOf, type UseComplianceManagerOfArgs, } from "./useComplianceManagerOf.js";
|
|
55
|
+
export { useComplianceRoleConstants, type ComplianceRoleConstants, type UseComplianceRoleConstantsArgs, } from "./useComplianceRoleConstants.js";
|
|
56
|
+
export { useComplianceRoleMembers, type ComplianceRoleMembership, type UseComplianceRoleMembersArgs, } from "./useComplianceRoleMembers.js";
|
|
57
|
+
export { useEcdsaDomain, type EcdsaDomain, type UseEcdsaDomainArgs } from "./useEcdsaDomain.js";
|
|
58
|
+
export { useEffectiveDelegateToCompliance, type UseEffectiveDelegateToComplianceArgs, } from "./useEffectiveDelegateToCompliance.js";
|
|
59
|
+
export { useIsActiveDelegate, type UseIsActiveDelegateArgs } from "./useIsActiveDelegate.js";
|
|
60
|
+
export { useIsMerkleRootMutable, type UseIsMerkleRootMutableArgs, } from "./useIsMerkleRootMutable.js";
|
|
61
|
+
export { useIsSignatureValid, type UseIsSignatureValidArgs } from "./useIsSignatureValid.js";
|
|
62
|
+
export { usePreflightClaim, type UsePreflightClaimArgs } from "./usePreflightClaim.js";
|
|
63
|
+
export { usePreflightCreateAirdrop, type PreflightCreateAirdropCommon, type UsePreflightCreateAirdropArgs, } from "./usePreflightCreateAirdrop.js";
|
|
64
|
+
export { useCreateEcdsaAirdrop } from "./useCreateEcdsaAirdrop.js";
|
|
65
|
+
export { useCreateMerkleAirdrop } from "./useCreateMerkleAirdrop.js";
|
|
66
|
+
export { useFundAirdrop } from "./useFundAirdrop.js";
|
|
67
|
+
export { useEcdsaClaim } from "./useEcdsaClaim.js";
|
|
68
|
+
export { useMerkleClaim } from "./useMerkleClaim.js";
|
|
69
|
+
export { useSetMerkleRoot } from "./useSetMerkleRoot.js";
|
|
70
|
+
export { useGrantInstanceRoles, type GrantInstanceRolesArgs } from "./useGrantInstanceRoles.js";
|
|
71
|
+
export { useAirdropPause, type AirdropPauseArgs } from "./useAirdropPause.js";
|
|
72
|
+
export { useExtendClaimWindow } from "./useExtendClaimWindow.js";
|
|
73
|
+
export { useWithdrawConfidential } from "./useWithdrawConfidential.js";
|
|
74
|
+
export { useAddComplianceDelegate, type AddComplianceDelegateArgs, } from "./useAddComplianceDelegate.js";
|
|
75
|
+
export { useAirdropGrantRole, type AirdropGrantRoleArgs } from "./useAirdropGrantRole.js";
|
|
76
|
+
export { useAirdropRenounceRole, type AirdropRenounceRoleArgs } from "./useAirdropRenounceRole.js";
|
|
77
|
+
export { useAirdropRevokeRole, type AirdropRevokeRoleArgs } from "./useAirdropRevokeRole.js";
|
|
78
|
+
export { useAirdropUpgradeToAndCall, type AirdropUpgradeToAndCallArgs, } from "./useAirdropUpgradeToAndCall.js";
|
|
79
|
+
export { useBatchDiscloseHandlesToParty, type UseBatchDiscloseHandlesToPartyArgs, } from "./useBatchDiscloseHandlesToParty.js";
|
|
80
|
+
export { useBuildMerkleCampaign, type UseBuildMerkleCampaignOptions, type UseBuildMerkleCampaignArgs, } from "./useBuildMerkleCampaign.js";
|
|
81
|
+
export { useComplianceGrantRole, type ComplianceGrantRoleArgs } from "./useComplianceGrantRole.js";
|
|
82
|
+
export { useComplianceRenounceRole, type ComplianceRenounceRoleArgs, } from "./useComplianceRenounceRole.js";
|
|
83
|
+
export { useComplianceRevokeRole, type ComplianceRevokeRoleArgs, } from "./useComplianceRevokeRole.js";
|
|
84
|
+
export { useCreateAndFundEcdsaAirdrop, type UseCreateAndFundEcdsaAirdropArgs, } from "./useCreateAndFundEcdsaAirdrop.js";
|
|
85
|
+
export { useCreateAndFundMerkleAirdrop, type UseCreateAndFundMerkleAirdropArgs, } from "./useCreateAndFundMerkleAirdrop.js";
|
|
86
|
+
export { useDiscloseHandleToParty, type UseDiscloseHandleToPartyArgs, } from "./useDiscloseHandleToParty.js";
|
|
87
|
+
export { useEcdsaClaimAndUnwrap } from "./useEcdsaClaimAndUnwrap.js";
|
|
88
|
+
export { useEncryptCampaignAmounts, type UseEncryptCampaignAmountsOptions, type UseEncryptCampaignAmountsArgs, } from "./useEncryptCampaignAmounts.js";
|
|
89
|
+
export { useMerkleClaimAndUnwrap } from "./useMerkleClaimAndUnwrap.js";
|
|
90
|
+
export { usePlanMerkleCampaign, type UsePlanMerkleCampaignArgs } from "./usePlanMerkleCampaign.js";
|
|
91
|
+
export { useRescueERC20, type RescueERC20Args } from "./useRescueERC20.js";
|
|
92
|
+
export { useRescueOtherConfidentialToken, type RescueOtherConfidentialTokenArgs, } from "./useRescueOtherConfidentialToken.js";
|
|
93
|
+
export { useRevokeComplianceDelegate, type RevokeComplianceDelegateArgs, } from "./useRevokeComplianceDelegate.js";
|
|
94
|
+
export { useRotateMerkleRoot, type UseRotateMerkleRootArgs } from "./useRotateMerkleRoot.js";
|
|
95
|
+
export { useSignClaimAuthorization, type SignClaimAuthorizationArgs, } from "./useSignClaimAuthorization.js";
|
|
96
|
+
export { useWithdrawGasFee, type WithdrawGasFeeArgs } from "./useWithdrawGasFee.js";
|
|
97
|
+
export { useAdminBatchDiscloseBalanceToParties, type UseAdminBatchDiscloseBalanceToPartiesArgs, } from "./useAdminBatchDiscloseBalanceToParties.js";
|
|
98
|
+
export { useAdminDiscloseBalanceToParty, type UseAdminDiscloseBalanceToPartyArgs, } from "./useAdminDiscloseBalanceToParty.js";
|
|
99
|
+
export { useAdminGetCurrentBalance } from "./useAdminGetCurrentBalance.js";
|
|
100
|
+
export { useAccessEcdsaClaimAmount } from "./useAccessEcdsaClaimAmount.js";
|
|
101
|
+
export { useAccessMerkleClaimAmount } from "./useAccessMerkleClaimAmount.js";
|
|
102
|
+
export { airdropQueryKey, airdropQueryKeyPrefix, type AirdropClientOptions, type AirdropHookOptions, type AirdropInstanceClientOptions, type AirdropInstanceHookOptions, type EcdsaAirdropInstanceClientOptions, type EcdsaAirdropInstanceHookOptions, } from "./_shared.js";
|
|
85
103
|
export { encryptUint64, encryptUint64Batch, resolveEncryptor, signClaimAuthorization, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "../encryption.js";
|
|
86
|
-
export
|
|
87
|
-
export type {
|
|
88
|
-
export type {
|
|
104
|
+
export type { EncryptedInput, EncryptedInputs, EncryptedViewResult } from "../../fhe/types.js";
|
|
105
|
+
export type { CreateAirdropArgs, CreateAirdropResult, EcdsaAirdropParams, MerkleAirdropParams, CommonAirdropParams, BuiltCampaign, CampaignEntry, CampaignRecipient, } from "../types.js";
|
|
106
|
+
export type { EcdsaClaimArgs, Eip712Domain, GetClaimAmountArgs as EcdsaGetClaimAmountArgs, } from "../ecdsa.js";
|
|
107
|
+
export type { GetClaimAmountArgs as MerkleGetClaimAmountArgs } from "../merkle.js";
|
|
108
|
+
export type { MerkleClaimArgs } from "../merkle.js";
|
|
109
|
+
export { buildMerkleTree, leafOf, type BuildMerkleTreeArgs, type BuiltMerkleTree, type LeafOfArgs, type MerkleLeafInput, } from "../merkle-tree.js";
|
|
110
|
+
export type { FundInput } from "../factory.js";
|
|
111
|
+
export type { WriteAccountOverride } from "../airdrop-base.js";
|
|
112
|
+
export { buildMerkleCampaign, encryptCampaignAmounts, planMerkleCampaign, rotateMerkleRoot, validateCampaignRecipients, type BuildMerkleCampaignArgs, type CampaignSubmitterOption, type EncryptCampaignAmountsArgs, type EncryptedCampaignLeaf, type PlanMerkleCampaignArgs, type PlannedCampaign, type RotatedCampaign, type RotateMerkleRootArgs, } from "../campaign.js";
|
|
113
|
+
export { preflightClaim, preflightCreate, type ClaimPreflightTarget, type EcdsaClaimPreflightSignature, type PreflightClaimArgs, type PreflightCreateArgs, } from "../guards.js";
|
|
114
|
+
export type { PreflightResult } from "../../core/preflight.js";
|
|
115
|
+
export { grantInstanceRoles, planInstanceRoleSplit, type InstanceRoleAssignment, type RoleGrantOutcome, type RoleGrantStep, type RoleName, } from "../roles.js";
|
|
116
|
+
export { type DedupMode, type DeploymentMode } from "../constants.js";
|
|
89
117
|
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ContractRevertError, PausedError, AccessDeniedError, OperatorNotApprovedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../../core/errors.js";
|
|
90
|
-
export { type
|
|
91
|
-
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError } from "../errors.js";
|
|
92
|
-
export { useIsOperator, type UseIsOperatorOptions } from "../../fhe/react/useIsOperator.js";
|
|
93
|
-
export { useEnsureOperator, type UseEnsureOperatorOptions, type EnsureOperatorVariables, } from "../../fhe/react/useEnsureOperator.js";
|
|
118
|
+
export { AlreadyClaimedError, ClaimNotStartedError, ClaimWindowClosedError, DedupIdConsumedError, FeeCollectorSelfAdministeredError, MerkleUupsUnsupportedError, NonStockWrapperError, PredictionDriftError, SaltCollisionError, SignatureExpiredError, UnauthorizedRedirectError, UpgradeabilityNotAllowedError, type AirdropVariant, } from "../errors.js";
|