@tokenops/sdk 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +207 -0
- package/CONTRIBUTING.md +113 -0
- package/LICENSE +32 -0
- package/README.md +677 -0
- package/SECURITY.md +59 -0
- package/dist/chunk-52TC6BF7.js +2755 -0
- package/dist/chunk-56UI7LUR.cjs +516 -0
- package/dist/chunk-5SA2HF2W.cjs +1635 -0
- package/dist/chunk-5SGMJADP.cjs +139 -0
- package/dist/chunk-62DF53UQ.cjs +749 -0
- package/dist/chunk-66IHPTOK.cjs +20 -0
- package/dist/chunk-6ECAHP5O.cjs +1496 -0
- package/dist/chunk-72YGZEQE.js +742 -0
- package/dist/chunk-7VELUOMI.js +35 -0
- package/dist/chunk-BE2AIZ3K.js +23 -0
- package/dist/chunk-CMRETRZO.js +46 -0
- package/dist/chunk-COPFW5Z4.js +82 -0
- package/dist/chunk-CQIPRNS7.cjs +25 -0
- package/dist/chunk-ECT3NL2L.js +124 -0
- package/dist/chunk-FWHYQZ5E.cjs +37 -0
- package/dist/chunk-FYQ2UW4T.js +37 -0
- package/dist/chunk-HGXNRR25.js +105 -0
- package/dist/chunk-HTOMTEA3.cjs +3406 -0
- package/dist/chunk-ITQ7WKVC.cjs +101 -0
- package/dist/chunk-IVE3QEGD.js +478 -0
- package/dist/chunk-JFLEEXKP.js +325 -0
- package/dist/chunk-JFR5J4FL.cjs +128 -0
- package/dist/chunk-K6MFFDBJ.cjs +109 -0
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/chunk-NS44KBV5.cjs +89 -0
- package/dist/chunk-OLDGMKW2.cjs +93 -0
- package/dist/chunk-Q2GP5UDC.js +29 -0
- package/dist/chunk-Q7ARQSUH.cjs +42 -0
- package/dist/chunk-QCA7O2Q5.cjs +49 -0
- package/dist/chunk-QIHZVLIK.js +3388 -0
- package/dist/chunk-SUOG3BQS.cjs +2772 -0
- package/dist/chunk-T5LVV3KY.cjs +44 -0
- package/dist/chunk-UOG4PJL5.js +1488 -0
- package/dist/chunk-VDXVNZCO.cjs +329 -0
- package/dist/chunk-VJKZWYYJ.cjs +32 -0
- package/dist/chunk-WRCUDSUJ.js +96 -0
- package/dist/chunk-XSNLAS5M.js +135 -0
- package/dist/chunk-XXXDQSHE.js +1628 -0
- package/dist/chunk-ZHFLRKFY.js +41 -0
- package/dist/chunk-ZXCOJY2Z.js +87 -0
- package/dist/core/addresses.d.ts +59 -0
- package/dist/core/brands.d.ts +87 -0
- package/dist/core/chains.d.ts +102 -0
- package/dist/core/errors.d.ts +687 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/normalise.d.ts +27 -0
- package/dist/core/preflight.d.ts +25 -0
- package/dist/core/revert-mapper.d.ts +74 -0
- package/dist/core/telemetry.d.ts +50 -0
- package/dist/core/types.d.ts +10 -0
- package/dist/core/version.d.ts +15 -0
- package/dist/core/zama-error-mapper.d.ts +27 -0
- package/dist/fhe/acl.d.ts +73 -0
- package/dist/fhe/erc7984-abi.d.ts +53 -0
- package/dist/fhe/index.cjs +599 -0
- package/dist/fhe/index.d.cts +11 -0
- package/dist/fhe/index.d.ts +11 -0
- package/dist/fhe/index.js +394 -0
- package/dist/fhe/mock-encryptor.d.ts +90 -0
- package/dist/fhe/mock-erc7984.d.ts +134 -0
- package/dist/fhe/operators.d.ts +190 -0
- package/dist/fhe/react/index.cjs +102 -0
- package/dist/fhe/react/index.d.cts +10 -0
- package/dist/fhe/react/index.d.ts +10 -0
- package/dist/fhe/react/index.js +85 -0
- package/dist/fhe/react/use-decrypted-handle.d.ts +102 -0
- package/dist/fhe/scale-ratio.d.ts +168 -0
- package/dist/fhe/sepolia-encryptor-web.d.ts +101 -0
- package/dist/fhe/sepolia-encryptor.d.ts +132 -0
- package/dist/fhe/types.d.ts +62 -0
- package/dist/fhe-airdrop/abis/cloneable.d.ts +781 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +714 -0
- package/dist/fhe-airdrop/abis/index.d.ts +2 -0
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +53 -0
- package/dist/fhe-airdrop/advanced/index.cjs +21 -0
- package/dist/fhe-airdrop/advanced/index.d.cts +13 -0
- package/dist/fhe-airdrop/advanced/index.d.ts +13 -0
- package/dist/fhe-airdrop/advanced/index.js +8 -0
- package/dist/fhe-airdrop/advanced/react/index.cjs +61 -0
- package/dist/fhe-airdrop/advanced/react/index.d.cts +5 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +5 -0
- package/dist/fhe-airdrop/advanced/react/index.js +59 -0
- package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +49 -0
- package/dist/fhe-airdrop/airdrop.d.ts +308 -0
- package/dist/fhe-airdrop/encryption.d.ts +109 -0
- package/dist/fhe-airdrop/errors.d.ts +60 -0
- package/dist/fhe-airdrop/factory.d.ts +281 -0
- package/dist/fhe-airdrop/index.cjs +227 -0
- package/dist/fhe-airdrop/index.d.cts +10 -0
- package/dist/fhe-airdrop/index.d.ts +10 -0
- package/dist/fhe-airdrop/index.js +10 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +107 -0
- package/dist/fhe-airdrop/react/index.cjs +638 -0
- package/dist/fhe-airdrop/react/index.d.cts +90 -0
- package/dist/fhe-airdrop/react/index.d.ts +90 -0
- package/dist/fhe-airdrop/react/index.js +430 -0
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +31 -0
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +7 -0
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +25 -0
- package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +10 -0
- package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +16 -0
- package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +6 -0
- package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +8 -0
- package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +10 -0
- package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +10 -0
- package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +15 -0
- package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +11 -0
- package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +16 -0
- package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +15 -0
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +11 -0
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +16 -0
- package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +7 -0
- package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +7 -0
- package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +14 -0
- package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +9 -0
- package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +8 -0
- package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +22 -0
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +50 -0
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +15 -0
- package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +10 -0
- package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -0
- package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +15 -0
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +14 -0
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +14 -0
- package/dist/fhe-airdrop/react/useClaim.d.ts +29 -0
- package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +11 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +33 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +40 -0
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +29 -0
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +31 -0
- package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +14 -0
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +16 -0
- package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +17 -0
- package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +10 -0
- package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +11 -0
- package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +17 -0
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +25 -0
- package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +30 -0
- package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +16 -0
- package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +15 -0
- package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +14 -0
- package/dist/fhe-airdrop/react/useSetPaused.d.ts +14 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +31 -0
- package/dist/fhe-airdrop/react/useWithdraw.d.ts +12 -0
- package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +13 -0
- package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +13 -0
- package/dist/fhe-airdrop/types.d.ts +21 -0
- package/dist/fhe-disperse/abis/index.d.ts +2 -0
- package/dist/fhe-disperse/abis/singleton.d.ts +1297 -0
- package/dist/fhe-disperse/abis/wallet.d.ts +111 -0
- package/dist/fhe-disperse/encryption.d.ts +77 -0
- package/dist/fhe-disperse/errors.d.ts +39 -0
- package/dist/fhe-disperse/index.cjs +248 -0
- package/dist/fhe-disperse/index.d.cts +14 -0
- package/dist/fhe-disperse/index.d.ts +14 -0
- package/dist/fhe-disperse/index.js +11 -0
- package/dist/fhe-disperse/react/_shared.d.ts +104 -0
- package/dist/fhe-disperse/react/index.cjs +752 -0
- package/dist/fhe-disperse/react/index.d.cts +82 -0
- package/dist/fhe-disperse/react/index.d.ts +82 -0
- package/dist/fhe-disperse/react/index.js +522 -0
- package/dist/fhe-disperse/react/useAccessEncryptedFeeReserve.d.ts +35 -0
- package/dist/fhe-disperse/react/useApproveTokenOnWallets.d.ts +25 -0
- package/dist/fhe-disperse/react/useBatchDiscloseHandlesToParty.d.ts +16 -0
- package/dist/fhe-disperse/react/useCalculateFee.d.ts +26 -0
- package/dist/fhe-disperse/react/useDeploymentBlockNumber.d.ts +11 -0
- package/dist/fhe-disperse/react/useDisableCustomFee.d.ts +20 -0
- package/dist/fhe-disperse/react/useDiscloseHandleToParty.d.ts +20 -0
- package/dist/fhe-disperse/react/useDisperse.d.ts +28 -0
- package/dist/fhe-disperse/react/useGetBatchLimits.d.ts +12 -0
- package/dist/fhe-disperse/react/useGetFeeConfig.d.ts +15 -0
- package/dist/fhe-disperse/react/useGetFees.d.ts +19 -0
- package/dist/fhe-disperse/react/useGetWallets.d.ts +19 -0
- package/dist/fhe-disperse/react/useGrantRole.d.ts +24 -0
- package/dist/fhe-disperse/react/useHasApprovedSubwallets.d.ts +25 -0
- package/dist/fhe-disperse/react/useHasRole.d.ts +22 -0
- package/dist/fhe-disperse/react/useIsPaused.d.ts +11 -0
- package/dist/fhe-disperse/react/useIsRegistered.d.ts +15 -0
- package/dist/fhe-disperse/react/usePause.d.ts +18 -0
- package/dist/fhe-disperse/react/usePredictWallets.d.ts +19 -0
- package/dist/fhe-disperse/react/usePreflightDisperse.d.ts +37 -0
- package/dist/fhe-disperse/react/useRecoverERC20FromWallets.d.ts +21 -0
- package/dist/fhe-disperse/react/useRecoverFromWallets.d.ts +21 -0
- package/dist/fhe-disperse/react/useRegister.d.ts +40 -0
- package/dist/fhe-disperse/react/useRescueConfidentialTokens.d.ts +21 -0
- package/dist/fhe-disperse/react/useRescueERC20.d.ts +21 -0
- package/dist/fhe-disperse/react/useRevokeRole.d.ts +24 -0
- package/dist/fhe-disperse/react/useRevokeTokenOnWallets.d.ts +24 -0
- package/dist/fhe-disperse/react/useSetCustomFee.d.ts +24 -0
- package/dist/fhe-disperse/react/useSetFeeConfig.d.ts +23 -0
- package/dist/fhe-disperse/react/useSetMaxBatchSizeDirect.d.ts +20 -0
- package/dist/fhe-disperse/react/useSetMaxBatchSizeHolding.d.ts +20 -0
- package/dist/fhe-disperse/react/useSetMaxBatchSizeTokenFee.d.ts +20 -0
- package/dist/fhe-disperse/react/useSingletonBatchDiscloseHandlesToParty.d.ts +13 -0
- package/dist/fhe-disperse/react/useSingletonBatchLimits.d.ts +12 -0
- package/dist/fhe-disperse/react/useSingletonCalculateFee.d.ts +26 -0
- package/dist/fhe-disperse/react/useSingletonDeploymentBlockNumber.d.ts +11 -0
- package/dist/fhe-disperse/react/useSingletonDisableCustomFee.d.ts +21 -0
- package/dist/fhe-disperse/react/useSingletonDiscloseHandleToParty.d.ts +17 -0
- package/dist/fhe-disperse/react/useSingletonFees.d.ts +19 -0
- package/dist/fhe-disperse/react/useSingletonGrantRole.d.ts +26 -0
- package/dist/fhe-disperse/react/useSingletonHasApprovedSubwallets.d.ts +25 -0
- package/dist/fhe-disperse/react/useSingletonHasRole.d.ts +23 -0
- package/dist/fhe-disperse/react/useSingletonIsPaused.d.ts +11 -0
- package/dist/fhe-disperse/react/useSingletonIsRegistered.d.ts +15 -0
- package/dist/fhe-disperse/react/useSingletonPause.d.ts +19 -0
- package/dist/fhe-disperse/react/useSingletonPredictWallets.d.ts +19 -0
- package/dist/fhe-disperse/react/useSingletonRevokeRole.d.ts +26 -0
- package/dist/fhe-disperse/react/useSingletonSetCustomFee.d.ts +25 -0
- package/dist/fhe-disperse/react/useSingletonUnpause.d.ts +18 -0
- package/dist/fhe-disperse/react/useSingletonWalletImplementation.d.ts +12 -0
- package/dist/fhe-disperse/react/useSingletonWallets.d.ts +19 -0
- package/dist/fhe-disperse/react/useSingletonWithdrawGasFee.d.ts +21 -0
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +50 -0
- package/dist/fhe-disperse/react/useUnpause.d.ts +17 -0
- package/dist/fhe-disperse/react/useWalletImplementation.d.ts +12 -0
- package/dist/fhe-disperse/react/useWithdrawGasFee.d.ts +26 -0
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +70 -0
- package/dist/fhe-disperse/singleton.d.ts +442 -0
- package/dist/fhe-disperse/subtotals.d.ts +14 -0
- package/dist/fhe-disperse/types.d.ts +332 -0
- package/dist/fhe-disperse/validate.d.ts +78 -0
- package/dist/fhe-vesting/abis/factory.d.ts +676 -0
- package/dist/fhe-vesting/abis/index.d.ts +3 -0
- package/dist/fhe-vesting/abis/manager.d.ts +1797 -0
- package/dist/fhe-vesting/advanced/factory-advanced.d.ts +52 -0
- package/dist/fhe-vesting/advanced/index.cjs +21 -0
- package/dist/fhe-vesting/advanced/index.d.cts +12 -0
- package/dist/fhe-vesting/advanced/index.d.ts +12 -0
- package/dist/fhe-vesting/advanced/index.js +8 -0
- package/dist/fhe-vesting/advanced/react/index.cjs +75 -0
- package/dist/fhe-vesting/advanced/react/index.d.cts +5 -0
- package/dist/fhe-vesting/advanced/react/index.d.ts +5 -0
- package/dist/fhe-vesting/advanced/react/index.js +73 -0
- package/dist/fhe-vesting/advanced/react/usePredictManagerAddress.d.ts +41 -0
- package/dist/fhe-vesting/encryption.d.ts +104 -0
- package/dist/fhe-vesting/errors.d.ts +183 -0
- package/dist/fhe-vesting/factory.d.ts +207 -0
- package/dist/fhe-vesting/index.cjs +269 -0
- package/dist/fhe-vesting/index.d.cts +9 -0
- package/dist/fhe-vesting/index.d.ts +9 -0
- package/dist/fhe-vesting/index.js +12 -0
- package/dist/fhe-vesting/manager.d.ts +808 -0
- package/dist/fhe-vesting/react/_shared.d.ts +122 -0
- package/dist/fhe-vesting/react/index.cjs +1054 -0
- package/dist/fhe-vesting/react/index.d.cts +123 -0
- package/dist/fhe-vesting/react/index.d.ts +123 -0
- package/dist/fhe-vesting/react/index.js +771 -0
- package/dist/fhe-vesting/react/useAcceptVestingTransfer.d.ts +12 -0
- package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +14 -0
- package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +15 -0
- package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +14 -0
- package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +26 -0
- package/dist/fhe-vesting/react/useAdminBatchDiscloseToParty.d.ts +16 -0
- package/dist/fhe-vesting/react/useAdminClaim.d.ts +9 -0
- package/dist/fhe-vesting/react/useAdminDiscloseToParty.d.ts +8 -0
- package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +13 -0
- package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +13 -0
- package/dist/fhe-vesting/react/useAdminGetTokenBalance.d.ts +13 -0
- package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +13 -0
- package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +15 -0
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +8 -0
- package/dist/fhe-vesting/react/useAllRecipients.d.ts +8 -0
- package/dist/fhe-vesting/react/useAllRecipientsLength.d.ts +6 -0
- package/dist/fhe-vesting/react/useAllRecipientsSliced.d.ts +13 -0
- package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +24 -0
- package/dist/fhe-vesting/react/useBatchDiscloseHandlesToParty.d.ts +13 -0
- package/dist/fhe-vesting/react/useBatchDiscloseToParty.d.ts +18 -0
- package/dist/fhe-vesting/react/useBatchRevokeVesting.d.ts +12 -0
- package/dist/fhe-vesting/react/useCancelVestingTransfer.d.ts +12 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +19 -0
- package/dist/fhe-vesting/react/useConfidentialVestingFactoryImplementation.d.ts +11 -0
- package/dist/fhe-vesting/react/useCreateManager.d.ts +32 -0
- package/dist/fhe-vesting/react/useCreateManagerAndGetAddress.d.ts +31 -0
- package/dist/fhe-vesting/react/useCreateVesting.d.ts +38 -0
- package/dist/fhe-vesting/react/useDirectVestingTransfer.d.ts +13 -0
- package/dist/fhe-vesting/react/useDisableCustomFee.d.ts +14 -0
- package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +14 -0
- package/dist/fhe-vesting/react/useDiscloseToParty.d.ts +14 -0
- package/dist/fhe-vesting/react/useFactoryCustomFee.d.ts +17 -0
- package/dist/fhe-vesting/react/useFactoryDefaultFeeType.d.ts +11 -0
- package/dist/fhe-vesting/react/useFactoryDefaultGasFee.d.ts +10 -0
- package/dist/fhe-vesting/react/useFactoryDefaultTokenFee.d.ts +10 -0
- package/dist/fhe-vesting/react/useFactoryFeeCollector.d.ts +10 -0
- package/dist/fhe-vesting/react/useFactoryInitCodeHash.d.ts +18 -0
- package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +13 -0
- package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +14 -0
- package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +13 -0
- package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +25 -0
- package/dist/fhe-vesting/react/useGrantRole.d.ts +15 -0
- package/dist/fhe-vesting/react/useHasRole.d.ts +14 -0
- package/dist/fhe-vesting/react/useInitiateVestingTransfer.d.ts +12 -0
- package/dist/fhe-vesting/react/useIsRecipient.d.ts +10 -0
- package/dist/fhe-vesting/react/useManagerBatchDiscloseHandlesToParty.d.ts +15 -0
- package/dist/fhe-vesting/react/useManagerDeploymentBlockNumber.d.ts +7 -0
- package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +16 -0
- package/dist/fhe-vesting/react/useManagerFactoryCustomFee.d.ts +17 -0
- package/dist/fhe-vesting/react/useManagerFactoryDefaultGasFee.d.ts +10 -0
- package/dist/fhe-vesting/react/useManagerFactoryDisableCustomFee.d.ts +15 -0
- package/dist/fhe-vesting/react/useManagerFactoryFeeCollector.d.ts +10 -0
- package/dist/fhe-vesting/react/useManagerFactoryInitCodeHash.d.ts +18 -0
- package/dist/fhe-vesting/react/useManagerFactorySetCustomFee.d.ts +19 -0
- package/dist/fhe-vesting/react/useManagerFactorySetDefaultGasFee.d.ts +13 -0
- package/dist/fhe-vesting/react/useManagerFactorySetFeeCollector.d.ts +14 -0
- package/dist/fhe-vesting/react/useManagerFee.d.ts +7 -0
- package/dist/fhe-vesting/react/useManagerFeeInfo.d.ts +18 -0
- package/dist/fhe-vesting/react/useManagerFeeType.d.ts +7 -0
- package/dist/fhe-vesting/react/useManagerGrantRole.d.ts +17 -0
- package/dist/fhe-vesting/react/useManagerHasRole.d.ts +15 -0
- package/dist/fhe-vesting/react/useManagerIsPausable.d.ts +6 -0
- package/dist/fhe-vesting/react/useManagerIsSplitEnabled.d.ts +6 -0
- package/dist/fhe-vesting/react/useManagerMaxBatchSize.d.ts +6 -0
- package/dist/fhe-vesting/react/useManagerMaxRevokeBatchSize.d.ts +6 -0
- package/dist/fhe-vesting/react/useManagerPause.d.ts +13 -0
- package/dist/fhe-vesting/react/useManagerPaused.d.ts +6 -0
- package/dist/fhe-vesting/react/useManagerRevokeRole.d.ts +17 -0
- package/dist/fhe-vesting/react/useManagerToken.d.ts +11 -0
- package/dist/fhe-vesting/react/useManagerUnpause.d.ts +12 -0
- package/dist/fhe-vesting/react/useManagerWithdrawGasFee.d.ts +14 -0
- package/dist/fhe-vesting/react/useManagerWithdrawOtherConfidentialToken.d.ts +14 -0
- package/dist/fhe-vesting/react/useManagerWithdrawOtherToken.d.ts +14 -0
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +11 -0
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +15 -0
- package/dist/fhe-vesting/react/usePause.d.ts +12 -0
- package/dist/fhe-vesting/react/usePendingVestingTransfer.d.ts +20 -0
- package/dist/fhe-vesting/react/useRecipientVestings.d.ts +11 -0
- package/dist/fhe-vesting/react/useRecipientVestingsLength.d.ts +10 -0
- package/dist/fhe-vesting/react/useRecipientVestingsSliced.d.ts +12 -0
- package/dist/fhe-vesting/react/useRenounceRole.d.ts +16 -0
- package/dist/fhe-vesting/react/useResetGasFee.d.ts +10 -0
- package/dist/fhe-vesting/react/useResetTokenFee.d.ts +10 -0
- package/dist/fhe-vesting/react/useRevokeRole.d.ts +15 -0
- package/dist/fhe-vesting/react/useRevokeVesting.d.ts +15 -0
- package/dist/fhe-vesting/react/useRoleConstants.d.ts +19 -0
- package/dist/fhe-vesting/react/useSetCustomFee.d.ts +18 -0
- package/dist/fhe-vesting/react/useSetDefaultFeeType.d.ts +14 -0
- package/dist/fhe-vesting/react/useSetDefaultGasFee.d.ts +12 -0
- package/dist/fhe-vesting/react/useSetDefaultTokenFee.d.ts +13 -0
- package/dist/fhe-vesting/react/useSetFeeCollector.d.ts +13 -0
- package/dist/fhe-vesting/react/useSetMaxBatchSize.d.ts +12 -0
- package/dist/fhe-vesting/react/useSetMaxRevokeBatchSize.d.ts +12 -0
- package/dist/fhe-vesting/react/useSplitVesting.d.ts +28 -0
- package/dist/fhe-vesting/react/useTransferFeeCollectorRole.d.ts +12 -0
- package/dist/fhe-vesting/react/useUnpause.d.ts +11 -0
- package/dist/fhe-vesting/react/useVestingClaim.d.ts +19 -0
- package/dist/fhe-vesting/react/useVestingInfo.d.ts +25 -0
- package/dist/fhe-vesting/react/useWithdrawAdmin.d.ts +17 -0
- package/dist/fhe-vesting/react/useWithdrawGasFee.d.ts +13 -0
- package/dist/fhe-vesting/react/useWithdrawOtherConfidentialToken.d.ts +13 -0
- package/dist/fhe-vesting/react/useWithdrawOtherToken.d.ts +13 -0
- package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +18 -0
- package/dist/fhe-vesting/types.d.ts +72 -0
- package/dist/index.cjs +237 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +14 -0
- package/dist/telemetry/console.d.ts +29 -0
- package/dist/telemetry/index.cjs +113 -0
- package/dist/telemetry/index.d.cts +3 -0
- package/dist/telemetry/index.d.ts +3 -0
- package/dist/telemetry/index.js +102 -0
- package/dist/telemetry/tokenops.d.ts +15 -0
- package/package.json +316 -0
|
@@ -0,0 +1,638 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkK6MFFDBJ_cjs = require('../../chunk-K6MFFDBJ.cjs');
|
|
4
|
+
var chunk5SA2HF2W_cjs = require('../../chunk-5SA2HF2W.cjs');
|
|
5
|
+
var chunk6ECAHP5O_cjs = require('../../chunk-6ECAHP5O.cjs');
|
|
6
|
+
require('../../chunk-Q7ARQSUH.cjs');
|
|
7
|
+
require('../../chunk-VDXVNZCO.cjs');
|
|
8
|
+
require('../../chunk-OLDGMKW2.cjs');
|
|
9
|
+
require('../../chunk-CQIPRNS7.cjs');
|
|
10
|
+
require('../../chunk-VJKZWYYJ.cjs');
|
|
11
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
12
|
+
var chunk56UI7LUR_cjs = require('../../chunk-56UI7LUR.cjs');
|
|
13
|
+
var reactQuery = require('@tanstack/react-query');
|
|
14
|
+
var wagmi = require('wagmi');
|
|
15
|
+
|
|
16
|
+
function useConfidentialAirdropFactoryImplementation(options = {}) {
|
|
17
|
+
const { client, chainId, resolvedAddress } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
18
|
+
return reactQuery.useQuery({
|
|
19
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
20
|
+
queryFn: () => client.implementation(),
|
|
21
|
+
enabled: !!client,
|
|
22
|
+
staleTime: 0
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function useFactoryDefaultGasFee(options = {}) {
|
|
26
|
+
const { client, chainId, resolvedAddress } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
27
|
+
return reactQuery.useQuery({
|
|
28
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
29
|
+
queryFn: () => client.defaultGasFee(),
|
|
30
|
+
enabled: !!client,
|
|
31
|
+
staleTime: 0
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function useFactoryFeeCollector(options = {}) {
|
|
35
|
+
const { client, chainId, resolvedAddress } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
36
|
+
return reactQuery.useQuery({
|
|
37
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
38
|
+
queryFn: () => client.feeCollector(),
|
|
39
|
+
enabled: !!client,
|
|
40
|
+
staleTime: 0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function useFactoryCustomFee(args = {}) {
|
|
44
|
+
const { creator, ...base } = args;
|
|
45
|
+
const { client, chainId, resolvedAddress } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(base);
|
|
46
|
+
return reactQuery.useQuery({
|
|
47
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
48
|
+
queryFn: () => client.getCustomFee(creator),
|
|
49
|
+
enabled: !!client && !!creator,
|
|
50
|
+
staleTime: 0
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function useFactoryInitCodeHash(args = {}) {
|
|
54
|
+
const { params, gasFee, ...base } = args;
|
|
55
|
+
const { client, chainId, resolvedAddress } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(base);
|
|
56
|
+
return reactQuery.useQuery({
|
|
57
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("factory:getInitCodeHash", chainId, resolvedAddress, params, gasFee),
|
|
58
|
+
queryFn: () => client.getInitCodeHash({ params, gasFee }),
|
|
59
|
+
enabled: !!client && !!params && gasFee !== void 0,
|
|
60
|
+
staleTime: 0
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function useCreateConfidentialAirdropAndGetAddress(options = {}) {
|
|
64
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
65
|
+
return reactQuery.useMutation({
|
|
66
|
+
mutationFn: async (args) => {
|
|
67
|
+
if (!client) {
|
|
68
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useCreateConfidentialAirdropAndGetAddress", "factory");
|
|
69
|
+
}
|
|
70
|
+
return client.createConfidentialAirdropAndGetAddress(args);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function useCreateConfidentialAirdrop(options = {}) {
|
|
75
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
76
|
+
return reactQuery.useMutation({
|
|
77
|
+
mutationFn: async (args) => {
|
|
78
|
+
if (!client) {
|
|
79
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useCreateConfidentialAirdrop", "factory");
|
|
80
|
+
}
|
|
81
|
+
return client.createConfidentialAirdrop(args);
|
|
82
|
+
}
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
function useCreateAndFundConfidentialAirdrop(options = {}) {
|
|
86
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
87
|
+
return reactQuery.useMutation({
|
|
88
|
+
mutationFn: async (args) => {
|
|
89
|
+
if (!client) {
|
|
90
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useCreateAndFundConfidentialAirdrop", "factory");
|
|
91
|
+
}
|
|
92
|
+
return client.createAndFundConfidentialAirdrop(args);
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
|
|
97
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
98
|
+
return reactQuery.useMutation({
|
|
99
|
+
mutationFn: async (args) => {
|
|
100
|
+
if (!client) {
|
|
101
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useCreateAndFundConfidentialAirdropAndGetAddress", "factory");
|
|
102
|
+
}
|
|
103
|
+
return client.createAndFundConfidentialAirdropAndGetAddress(args);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
function useFundConfidentialAirdrop(options = {}) {
|
|
108
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
109
|
+
return reactQuery.useMutation({
|
|
110
|
+
mutationFn: async (args) => {
|
|
111
|
+
if (!client) {
|
|
112
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useFundConfidentialAirdrop", "factory");
|
|
113
|
+
}
|
|
114
|
+
return client.fundConfidentialAirdrop(args);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function useSetFeeCollector(options = {}) {
|
|
119
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
120
|
+
return reactQuery.useMutation({
|
|
121
|
+
mutationFn: async ({ newFeeCollector, account }) => {
|
|
122
|
+
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
123
|
+
return client.setFeeCollector(newFeeCollector, account);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
function useSetDefaultGasFee(options = {}) {
|
|
128
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
129
|
+
return reactQuery.useMutation({
|
|
130
|
+
mutationFn: async ({ newGasFee, account }) => {
|
|
131
|
+
if (!client)
|
|
132
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetDefaultGasFee", "factory");
|
|
133
|
+
return client.setDefaultGasFee(newGasFee, account);
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
function useSetCustomFee(options = {}) {
|
|
138
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
139
|
+
return reactQuery.useMutation({
|
|
140
|
+
mutationFn: async ({ campaignCreator, gasFee, account }) => {
|
|
141
|
+
if (!client) throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
142
|
+
return client.setCustomFee(campaignCreator, gasFee, account);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function useDisableCustomFee(options = {}) {
|
|
147
|
+
const { client, resolutionError } = chunkK6MFFDBJ_cjs.useMemoFactoryClient(options);
|
|
148
|
+
return reactQuery.useMutation({
|
|
149
|
+
mutationFn: async ({ campaignCreator, account }) => {
|
|
150
|
+
if (!client)
|
|
151
|
+
throw resolutionError ?? new chunk56UI7LUR_cjs.MissingClientError("useDisableCustomFee", "factory");
|
|
152
|
+
return client.disableCustomFee(campaignCreator, account);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
function useAirdropToken(options) {
|
|
157
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
158
|
+
return reactQuery.useQuery({
|
|
159
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:TOKEN", chainId, options.address),
|
|
160
|
+
queryFn: () => client.token(),
|
|
161
|
+
enabled: !!client,
|
|
162
|
+
staleTime: 0
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function useAirdropGasFee(options) {
|
|
166
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
167
|
+
return reactQuery.useQuery({
|
|
168
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:GAS_FEE", chainId, options.address),
|
|
169
|
+
queryFn: () => client.gasFee(),
|
|
170
|
+
enabled: !!client,
|
|
171
|
+
staleTime: 0
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function useAirdropStartTime(options) {
|
|
175
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
176
|
+
return reactQuery.useQuery({
|
|
177
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:START_TIME", chainId, options.address),
|
|
178
|
+
queryFn: () => client.startTime(),
|
|
179
|
+
enabled: !!client,
|
|
180
|
+
staleTime: 0
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function useAirdropCanExtendClaimWindow(options) {
|
|
184
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
185
|
+
return reactQuery.useQuery({
|
|
186
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:CAN_EXTEND_CLAIM_WINDOW", chainId, options.address),
|
|
187
|
+
queryFn: () => client.canExtendClaimWindow(),
|
|
188
|
+
enabled: !!client,
|
|
189
|
+
staleTime: 0
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
function useAirdropEndTime(options) {
|
|
193
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
194
|
+
return reactQuery.useQuery({
|
|
195
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:endTime", chainId, options.address),
|
|
196
|
+
queryFn: () => client.endTime(),
|
|
197
|
+
enabled: !!client,
|
|
198
|
+
staleTime: 0
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
function useAirdropIsPaused(options) {
|
|
202
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
203
|
+
return reactQuery.useQuery({
|
|
204
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:isPaused", chainId, options.address),
|
|
205
|
+
queryFn: () => client.isPaused(),
|
|
206
|
+
enabled: !!client,
|
|
207
|
+
staleTime: 0
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function useAirdropDeploymentBlockNumber(options) {
|
|
211
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
212
|
+
return reactQuery.useQuery({
|
|
213
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:deploymentBlockNumber", chainId, options.address),
|
|
214
|
+
queryFn: () => client.deploymentBlockNumber(),
|
|
215
|
+
enabled: !!client,
|
|
216
|
+
staleTime: 0
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
function useAirdropDomainSeparator(options) {
|
|
220
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
221
|
+
return reactQuery.useQuery({
|
|
222
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:DOMAIN_SEPARATOR", chainId, options.address),
|
|
223
|
+
queryFn: () => client.domainSeparator(),
|
|
224
|
+
enabled: !!client,
|
|
225
|
+
staleTime: 0
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function useAirdropClaimTypehash(options) {
|
|
229
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
230
|
+
return reactQuery.useQuery({
|
|
231
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:CLAIM_TYPEHASH", chainId, options.address),
|
|
232
|
+
queryFn: () => client.claimTypehash(),
|
|
233
|
+
enabled: !!client,
|
|
234
|
+
staleTime: 0
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function useAirdropIsClaimWindowActive(options) {
|
|
238
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
239
|
+
return reactQuery.useQuery({
|
|
240
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:isClaimWindowActive", chainId, options.address),
|
|
241
|
+
queryFn: () => client.isClaimWindowActive(),
|
|
242
|
+
enabled: !!client,
|
|
243
|
+
staleTime: 0
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
function useAirdropHasClaimStarted(options) {
|
|
247
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
248
|
+
return reactQuery.useQuery({
|
|
249
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:hasClaimStarted", chainId, options.address),
|
|
250
|
+
queryFn: () => client.hasClaimStarted(),
|
|
251
|
+
enabled: !!client,
|
|
252
|
+
staleTime: 0
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function useAirdropHasClaimEnded(options) {
|
|
256
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
257
|
+
return reactQuery.useQuery({
|
|
258
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:hasClaimEnded", chainId, options.address),
|
|
259
|
+
queryFn: () => client.hasClaimEnded(),
|
|
260
|
+
enabled: !!client,
|
|
261
|
+
staleTime: 0
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
function useAirdropClaimedSignatures(args) {
|
|
265
|
+
const { signatureHash, ...base } = args;
|
|
266
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(base);
|
|
267
|
+
return reactQuery.useQuery({
|
|
268
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:claimedSignatures", chainId, base.address, signatureHash),
|
|
269
|
+
queryFn: () => client.claimedSignatures(signatureHash),
|
|
270
|
+
enabled: !!client && !!signatureHash,
|
|
271
|
+
staleTime: 0
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
function useAirdropIsSignatureClaimed(args) {
|
|
275
|
+
const { user, encryptedAmountHandle, ...base } = args;
|
|
276
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(base);
|
|
277
|
+
return reactQuery.useQuery({
|
|
278
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey(
|
|
279
|
+
"airdrop:isSignatureClaimed",
|
|
280
|
+
chainId,
|
|
281
|
+
base.address,
|
|
282
|
+
user,
|
|
283
|
+
encryptedAmountHandle
|
|
284
|
+
),
|
|
285
|
+
queryFn: () => client.isSignatureClaimed(user, encryptedAmountHandle),
|
|
286
|
+
enabled: !!client && !!user && !!encryptedAmountHandle,
|
|
287
|
+
staleTime: 0
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
function useAirdropIsSignatureValid(args) {
|
|
291
|
+
const { encryptedAmountHandle, signature, caller, ...base } = args;
|
|
292
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(base);
|
|
293
|
+
const { address: connectedAddress } = wagmi.useAccount();
|
|
294
|
+
const resolvedCaller = caller ?? connectedAddress;
|
|
295
|
+
return reactQuery.useQuery({
|
|
296
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey(
|
|
297
|
+
"airdrop:isSignatureValid",
|
|
298
|
+
chainId,
|
|
299
|
+
base.address,
|
|
300
|
+
encryptedAmountHandle,
|
|
301
|
+
signature,
|
|
302
|
+
resolvedCaller
|
|
303
|
+
),
|
|
304
|
+
queryFn: () => client.isSignatureValid({
|
|
305
|
+
encryptedAmountHandle,
|
|
306
|
+
signature,
|
|
307
|
+
caller: resolvedCaller
|
|
308
|
+
}),
|
|
309
|
+
enabled: !!client && !!encryptedAmountHandle && !!signature && !!resolvedCaller,
|
|
310
|
+
staleTime: 0
|
|
311
|
+
});
|
|
312
|
+
}
|
|
313
|
+
function useAirdropHasRole(args) {
|
|
314
|
+
const { role, account, ...base } = args;
|
|
315
|
+
const { client, chainId } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(base);
|
|
316
|
+
return reactQuery.useQuery({
|
|
317
|
+
queryKey: chunkK6MFFDBJ_cjs.buildQueryKey("airdrop:hasRole", chainId, base.address, role, account),
|
|
318
|
+
queryFn: () => client.hasRole(role, account),
|
|
319
|
+
enabled: !!client && !!role && !!account,
|
|
320
|
+
staleTime: 0
|
|
321
|
+
});
|
|
322
|
+
}
|
|
323
|
+
function useClaim(options) {
|
|
324
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
325
|
+
return reactQuery.useMutation({
|
|
326
|
+
mutationFn: async (args) => {
|
|
327
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useClaim", "airdrop");
|
|
328
|
+
return client.claim(args);
|
|
329
|
+
}
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function useGetClaimAmount(options) {
|
|
333
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
334
|
+
return reactQuery.useMutation({
|
|
335
|
+
mutationFn: async (args) => {
|
|
336
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useGetClaimAmount", "airdrop");
|
|
337
|
+
return client.getClaimAmount(args);
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function useWithdraw(options) {
|
|
342
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
343
|
+
return reactQuery.useMutation({
|
|
344
|
+
mutationFn: async ({ recipient, account }) => {
|
|
345
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdraw", "airdrop");
|
|
346
|
+
return client.withdraw(recipient, account);
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
function useSetPaused(options) {
|
|
351
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
352
|
+
return reactQuery.useMutation({
|
|
353
|
+
mutationFn: async ({ paused, account }) => {
|
|
354
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useSetPaused", "airdrop");
|
|
355
|
+
return client.setPaused(paused, account);
|
|
356
|
+
}
|
|
357
|
+
});
|
|
358
|
+
}
|
|
359
|
+
function useExtendClaimWindow(options) {
|
|
360
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
361
|
+
return reactQuery.useMutation({
|
|
362
|
+
mutationFn: async ({ newEndTime, account }) => {
|
|
363
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
|
|
364
|
+
return client.extendClaimWindow(newEndTime, account);
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
function useWithdrawOtherToken(options) {
|
|
369
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
370
|
+
return reactQuery.useMutation({
|
|
371
|
+
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
372
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherToken", "airdrop");
|
|
373
|
+
return client.withdrawOtherToken(tokenAddress, recipient, account);
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
function useWithdrawOtherConfidentialToken(options) {
|
|
378
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
379
|
+
return reactQuery.useMutation({
|
|
380
|
+
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
381
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "airdrop");
|
|
382
|
+
return client.withdrawOtherConfidentialToken(tokenAddress, recipient, account);
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
}
|
|
386
|
+
function useAirdropWithdrawGasFee(options) {
|
|
387
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
388
|
+
return reactQuery.useMutation({
|
|
389
|
+
mutationFn: async ({ recipient, amount, account }) => {
|
|
390
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropWithdrawGasFee", "airdrop");
|
|
391
|
+
return client.withdrawGasFee(recipient, amount, account);
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
function useAirdropGrantRole(options) {
|
|
396
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
397
|
+
return reactQuery.useMutation({
|
|
398
|
+
mutationFn: async ({ role, accountTarget, account }) => {
|
|
399
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropGrantRole", "airdrop");
|
|
400
|
+
return client.grantRole(role, accountTarget, account);
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
function useAirdropRevokeRole(options) {
|
|
405
|
+
const { client } = chunkK6MFFDBJ_cjs.useMemoAirdropClient(options);
|
|
406
|
+
return reactQuery.useMutation({
|
|
407
|
+
mutationFn: async ({ role, accountTarget, account }) => {
|
|
408
|
+
if (!client) throw new chunk56UI7LUR_cjs.MissingClientError("useAirdropRevokeRole", "airdrop");
|
|
409
|
+
return client.revokeRole(role, accountTarget, account);
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
function useSignClaimAuthorization(options = {}) {
|
|
414
|
+
const { data: walletClient } = wagmi.useWalletClient({ chainId: options.chainId });
|
|
415
|
+
return reactQuery.useMutation({
|
|
416
|
+
mutationFn: async (args) => {
|
|
417
|
+
if (!walletClient) {
|
|
418
|
+
throw new chunk56UI7LUR_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
419
|
+
}
|
|
420
|
+
return chunk6ECAHP5O_cjs.signClaimAuthorization({
|
|
421
|
+
walletClient,
|
|
422
|
+
airdropAddress: args.airdropAddress,
|
|
423
|
+
recipient: args.recipient,
|
|
424
|
+
encryptedAmountHandle: args.encryptedAmountHandle
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
431
|
+
enumerable: true,
|
|
432
|
+
get: function () { return chunk5SA2HF2W_cjs.AlreadyClaimedError; }
|
|
433
|
+
});
|
|
434
|
+
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
435
|
+
enumerable: true,
|
|
436
|
+
get: function () { return chunk5SA2HF2W_cjs.ClaimNotStartedError; }
|
|
437
|
+
});
|
|
438
|
+
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
439
|
+
enumerable: true,
|
|
440
|
+
get: function () { return chunk5SA2HF2W_cjs.ClaimWindowClosedError; }
|
|
441
|
+
});
|
|
442
|
+
Object.defineProperty(exports, "encryptUint64", {
|
|
443
|
+
enumerable: true,
|
|
444
|
+
get: function () { return chunk6ECAHP5O_cjs.encryptUint64; }
|
|
445
|
+
});
|
|
446
|
+
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
447
|
+
enumerable: true,
|
|
448
|
+
get: function () { return chunk6ECAHP5O_cjs.encryptUint64Batch; }
|
|
449
|
+
});
|
|
450
|
+
Object.defineProperty(exports, "resolveEncryptor", {
|
|
451
|
+
enumerable: true,
|
|
452
|
+
get: function () { return chunk6ECAHP5O_cjs.resolveEncryptor; }
|
|
453
|
+
});
|
|
454
|
+
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
455
|
+
enumerable: true,
|
|
456
|
+
get: function () { return chunk6ECAHP5O_cjs.signClaimAuthorization; }
|
|
457
|
+
});
|
|
458
|
+
Object.defineProperty(exports, "AccessDeniedError", {
|
|
459
|
+
enumerable: true,
|
|
460
|
+
get: function () { return chunk56UI7LUR_cjs.AccessDeniedError; }
|
|
461
|
+
});
|
|
462
|
+
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
463
|
+
enumerable: true,
|
|
464
|
+
get: function () { return chunk56UI7LUR_cjs.AlreadyInitializedError; }
|
|
465
|
+
});
|
|
466
|
+
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
467
|
+
enumerable: true,
|
|
468
|
+
get: function () { return chunk56UI7LUR_cjs.BatchTooLargeError; }
|
|
469
|
+
});
|
|
470
|
+
Object.defineProperty(exports, "ContractRevertError", {
|
|
471
|
+
enumerable: true,
|
|
472
|
+
get: function () { return chunk56UI7LUR_cjs.ContractRevertError; }
|
|
473
|
+
});
|
|
474
|
+
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
475
|
+
enumerable: true,
|
|
476
|
+
get: function () { return chunk56UI7LUR_cjs.DecryptionFailedError; }
|
|
477
|
+
});
|
|
478
|
+
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
479
|
+
enumerable: true,
|
|
480
|
+
get: function () { return chunk56UI7LUR_cjs.DeploymentAddressUnavailableError; }
|
|
481
|
+
});
|
|
482
|
+
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
483
|
+
enumerable: true,
|
|
484
|
+
get: function () { return chunk56UI7LUR_cjs.EncryptionFailedError; }
|
|
485
|
+
});
|
|
486
|
+
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
487
|
+
enumerable: true,
|
|
488
|
+
get: function () { return chunk56UI7LUR_cjs.FeatureDisabledError; }
|
|
489
|
+
});
|
|
490
|
+
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
491
|
+
enumerable: true,
|
|
492
|
+
get: function () { return chunk56UI7LUR_cjs.FheHandleNotAllowedError; }
|
|
493
|
+
});
|
|
494
|
+
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
495
|
+
enumerable: true,
|
|
496
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientBalanceError; }
|
|
497
|
+
});
|
|
498
|
+
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
499
|
+
enumerable: true,
|
|
500
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientFeeError; }
|
|
501
|
+
});
|
|
502
|
+
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
503
|
+
enumerable: true,
|
|
504
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientGasFundsError; }
|
|
505
|
+
});
|
|
506
|
+
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
507
|
+
enumerable: true,
|
|
508
|
+
get: function () { return chunk56UI7LUR_cjs.InvalidArgumentError; }
|
|
509
|
+
});
|
|
510
|
+
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
511
|
+
enumerable: true,
|
|
512
|
+
get: function () { return chunk56UI7LUR_cjs.InvalidSignatureError; }
|
|
513
|
+
});
|
|
514
|
+
Object.defineProperty(exports, "MissingAccountError", {
|
|
515
|
+
enumerable: true,
|
|
516
|
+
get: function () { return chunk56UI7LUR_cjs.MissingAccountError; }
|
|
517
|
+
});
|
|
518
|
+
Object.defineProperty(exports, "MissingClientError", {
|
|
519
|
+
enumerable: true,
|
|
520
|
+
get: function () { return chunk56UI7LUR_cjs.MissingClientError; }
|
|
521
|
+
});
|
|
522
|
+
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
523
|
+
enumerable: true,
|
|
524
|
+
get: function () { return chunk56UI7LUR_cjs.MissingEncryptorError; }
|
|
525
|
+
});
|
|
526
|
+
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
527
|
+
enumerable: true,
|
|
528
|
+
get: function () { return chunk56UI7LUR_cjs.MissingPublicClientError; }
|
|
529
|
+
});
|
|
530
|
+
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
531
|
+
enumerable: true,
|
|
532
|
+
get: function () { return chunk56UI7LUR_cjs.MissingWalletClientError; }
|
|
533
|
+
});
|
|
534
|
+
Object.defineProperty(exports, "NetworkError", {
|
|
535
|
+
enumerable: true,
|
|
536
|
+
get: function () { return chunk56UI7LUR_cjs.NetworkError; }
|
|
537
|
+
});
|
|
538
|
+
Object.defineProperty(exports, "PausedError", {
|
|
539
|
+
enumerable: true,
|
|
540
|
+
get: function () { return chunk56UI7LUR_cjs.PausedError; }
|
|
541
|
+
});
|
|
542
|
+
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
543
|
+
enumerable: true,
|
|
544
|
+
get: function () { return chunk56UI7LUR_cjs.ReceiptEventAmbiguousError; }
|
|
545
|
+
});
|
|
546
|
+
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
547
|
+
enumerable: true,
|
|
548
|
+
get: function () { return chunk56UI7LUR_cjs.ReceiptEventNotFoundError; }
|
|
549
|
+
});
|
|
550
|
+
Object.defineProperty(exports, "ReentrancyError", {
|
|
551
|
+
enumerable: true,
|
|
552
|
+
get: function () { return chunk56UI7LUR_cjs.ReentrancyError; }
|
|
553
|
+
});
|
|
554
|
+
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
555
|
+
enumerable: true,
|
|
556
|
+
get: function () { return chunk56UI7LUR_cjs.RelayerUnreachableError; }
|
|
557
|
+
});
|
|
558
|
+
Object.defineProperty(exports, "SigningFailedError", {
|
|
559
|
+
enumerable: true,
|
|
560
|
+
get: function () { return chunk56UI7LUR_cjs.SigningFailedError; }
|
|
561
|
+
});
|
|
562
|
+
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
563
|
+
enumerable: true,
|
|
564
|
+
get: function () { return chunk56UI7LUR_cjs.TokenOpsSdkError; }
|
|
565
|
+
});
|
|
566
|
+
Object.defineProperty(exports, "TransferFailedError", {
|
|
567
|
+
enumerable: true,
|
|
568
|
+
get: function () { return chunk56UI7LUR_cjs.TransferFailedError; }
|
|
569
|
+
});
|
|
570
|
+
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
571
|
+
enumerable: true,
|
|
572
|
+
get: function () { return chunk56UI7LUR_cjs.UnknownWriteFailureError; }
|
|
573
|
+
});
|
|
574
|
+
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
575
|
+
enumerable: true,
|
|
576
|
+
get: function () { return chunk56UI7LUR_cjs.UnsupportedChainError; }
|
|
577
|
+
});
|
|
578
|
+
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
579
|
+
enumerable: true,
|
|
580
|
+
get: function () { return chunk56UI7LUR_cjs.UserDecryptNotAllowedError; }
|
|
581
|
+
});
|
|
582
|
+
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
583
|
+
enumerable: true,
|
|
584
|
+
get: function () { return chunk56UI7LUR_cjs.UserRejectedSignatureError; }
|
|
585
|
+
});
|
|
586
|
+
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
587
|
+
enumerable: true,
|
|
588
|
+
get: function () { return chunk56UI7LUR_cjs.WalletChainMismatchError; }
|
|
589
|
+
});
|
|
590
|
+
Object.defineProperty(exports, "WalletRejectedError", {
|
|
591
|
+
enumerable: true,
|
|
592
|
+
get: function () { return chunk56UI7LUR_cjs.WalletRejectedError; }
|
|
593
|
+
});
|
|
594
|
+
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
595
|
+
enumerable: true,
|
|
596
|
+
get: function () { return chunk56UI7LUR_cjs.isTokenOpsSdkError; }
|
|
597
|
+
});
|
|
598
|
+
exports.useAirdropCanExtendClaimWindow = useAirdropCanExtendClaimWindow;
|
|
599
|
+
exports.useAirdropClaimTypehash = useAirdropClaimTypehash;
|
|
600
|
+
exports.useAirdropClaimedSignatures = useAirdropClaimedSignatures;
|
|
601
|
+
exports.useAirdropDeploymentBlockNumber = useAirdropDeploymentBlockNumber;
|
|
602
|
+
exports.useAirdropDomainSeparator = useAirdropDomainSeparator;
|
|
603
|
+
exports.useAirdropEndTime = useAirdropEndTime;
|
|
604
|
+
exports.useAirdropGasFee = useAirdropGasFee;
|
|
605
|
+
exports.useAirdropGrantRole = useAirdropGrantRole;
|
|
606
|
+
exports.useAirdropHasClaimEnded = useAirdropHasClaimEnded;
|
|
607
|
+
exports.useAirdropHasClaimStarted = useAirdropHasClaimStarted;
|
|
608
|
+
exports.useAirdropHasRole = useAirdropHasRole;
|
|
609
|
+
exports.useAirdropIsClaimWindowActive = useAirdropIsClaimWindowActive;
|
|
610
|
+
exports.useAirdropIsPaused = useAirdropIsPaused;
|
|
611
|
+
exports.useAirdropIsSignatureClaimed = useAirdropIsSignatureClaimed;
|
|
612
|
+
exports.useAirdropIsSignatureValid = useAirdropIsSignatureValid;
|
|
613
|
+
exports.useAirdropRevokeRole = useAirdropRevokeRole;
|
|
614
|
+
exports.useAirdropStartTime = useAirdropStartTime;
|
|
615
|
+
exports.useAirdropToken = useAirdropToken;
|
|
616
|
+
exports.useAirdropWithdrawGasFee = useAirdropWithdrawGasFee;
|
|
617
|
+
exports.useClaim = useClaim;
|
|
618
|
+
exports.useConfidentialAirdropFactoryImplementation = useConfidentialAirdropFactoryImplementation;
|
|
619
|
+
exports.useCreateAndFundConfidentialAirdrop = useCreateAndFundConfidentialAirdrop;
|
|
620
|
+
exports.useCreateAndFundConfidentialAirdropAndGetAddress = useCreateAndFundConfidentialAirdropAndGetAddress;
|
|
621
|
+
exports.useCreateConfidentialAirdrop = useCreateConfidentialAirdrop;
|
|
622
|
+
exports.useCreateConfidentialAirdropAndGetAddress = useCreateConfidentialAirdropAndGetAddress;
|
|
623
|
+
exports.useDisableCustomFee = useDisableCustomFee;
|
|
624
|
+
exports.useExtendClaimWindow = useExtendClaimWindow;
|
|
625
|
+
exports.useFactoryCustomFee = useFactoryCustomFee;
|
|
626
|
+
exports.useFactoryDefaultGasFee = useFactoryDefaultGasFee;
|
|
627
|
+
exports.useFactoryFeeCollector = useFactoryFeeCollector;
|
|
628
|
+
exports.useFactoryInitCodeHash = useFactoryInitCodeHash;
|
|
629
|
+
exports.useFundConfidentialAirdrop = useFundConfidentialAirdrop;
|
|
630
|
+
exports.useGetClaimAmount = useGetClaimAmount;
|
|
631
|
+
exports.useSetCustomFee = useSetCustomFee;
|
|
632
|
+
exports.useSetDefaultGasFee = useSetDefaultGasFee;
|
|
633
|
+
exports.useSetFeeCollector = useSetFeeCollector;
|
|
634
|
+
exports.useSetPaused = useSetPaused;
|
|
635
|
+
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
636
|
+
exports.useWithdraw = useWithdraw;
|
|
637
|
+
exports.useWithdrawOtherConfidentialToken = useWithdrawOtherConfidentialToken;
|
|
638
|
+
exports.useWithdrawOtherToken = useWithdrawOtherToken;
|