@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,771 @@
|
|
|
1
|
+
import { useMemoFactoryClient, buildQueryKey, useMemoManagerClient } from '../../chunk-ECT3NL2L.js';
|
|
2
|
+
export { ClaimLockedError, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../../chunk-52TC6BF7.js';
|
|
3
|
+
import '../../chunk-ZXCOJY2Z.js';
|
|
4
|
+
export { scaleRatio } from '../../chunk-XSNLAS5M.js';
|
|
5
|
+
import '../../chunk-FYQ2UW4T.js';
|
|
6
|
+
export { DisclosureType, FeeType } from '../../chunk-72YGZEQE.js';
|
|
7
|
+
import '../../chunk-JFLEEXKP.js';
|
|
8
|
+
import '../../chunk-COPFW5Z4.js';
|
|
9
|
+
import '../../chunk-BE2AIZ3K.js';
|
|
10
|
+
import '../../chunk-Q2GP5UDC.js';
|
|
11
|
+
import '../../chunk-KWFFIJYX.js';
|
|
12
|
+
import { MissingClientError } from '../../chunk-IVE3QEGD.js';
|
|
13
|
+
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsSdkError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-IVE3QEGD.js';
|
|
14
|
+
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
15
|
+
|
|
16
|
+
function useConfidentialVestingFactoryImplementation(options = {}) {
|
|
17
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(options);
|
|
18
|
+
return useQuery({
|
|
19
|
+
queryKey: 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 } = useMemoFactoryClient(options);
|
|
27
|
+
return useQuery({
|
|
28
|
+
queryKey: buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
29
|
+
queryFn: () => client.defaultGasFee(),
|
|
30
|
+
enabled: !!client,
|
|
31
|
+
staleTime: 0
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function useFactoryDefaultTokenFee(options = {}) {
|
|
35
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(options);
|
|
36
|
+
return useQuery({
|
|
37
|
+
queryKey: buildQueryKey("factory:defaultTokenFee", chainId, resolvedAddress),
|
|
38
|
+
queryFn: () => client.defaultTokenFee(),
|
|
39
|
+
enabled: !!client,
|
|
40
|
+
staleTime: 0
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function useFactoryDefaultFeeType(options = {}) {
|
|
44
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(options);
|
|
45
|
+
return useQuery({
|
|
46
|
+
queryKey: buildQueryKey("factory:defaultFeeType", chainId, resolvedAddress),
|
|
47
|
+
queryFn: () => client.defaultFeeType(),
|
|
48
|
+
enabled: !!client,
|
|
49
|
+
staleTime: 0
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function useFactoryFeeCollector(options = {}) {
|
|
53
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(options);
|
|
54
|
+
return useQuery({
|
|
55
|
+
queryKey: buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
56
|
+
queryFn: () => client.feeCollector(),
|
|
57
|
+
enabled: !!client,
|
|
58
|
+
staleTime: 0
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
function useFactoryCustomFee(args = {}) {
|
|
62
|
+
const { creator, ...base } = args;
|
|
63
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(base);
|
|
64
|
+
return useQuery({
|
|
65
|
+
queryKey: buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
66
|
+
queryFn: () => client.getCustomFee(creator),
|
|
67
|
+
enabled: !!client && !!creator,
|
|
68
|
+
staleTime: 0
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function useFactoryInitCodeHash(args = {}) {
|
|
72
|
+
const { token, deployer, splitEnabled, pausableEnabled, ...base } = args;
|
|
73
|
+
const { client, chainId, resolvedAddress } = useMemoFactoryClient(base);
|
|
74
|
+
return useQuery({
|
|
75
|
+
queryKey: buildQueryKey(
|
|
76
|
+
"factory:getInitCodeHash",
|
|
77
|
+
chainId,
|
|
78
|
+
resolvedAddress,
|
|
79
|
+
token,
|
|
80
|
+
deployer,
|
|
81
|
+
splitEnabled ?? null,
|
|
82
|
+
pausableEnabled ?? null
|
|
83
|
+
),
|
|
84
|
+
queryFn: () => client.getInitCodeHash({
|
|
85
|
+
token,
|
|
86
|
+
deployer,
|
|
87
|
+
...splitEnabled !== void 0 && { splitEnabled },
|
|
88
|
+
...pausableEnabled !== void 0 && { pausableEnabled }
|
|
89
|
+
}),
|
|
90
|
+
enabled: !!client && !!token && !!deployer,
|
|
91
|
+
staleTime: 0
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
function useCreateManagerAndGetAddress(options = {}) {
|
|
95
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
96
|
+
return useMutation({
|
|
97
|
+
mutationFn: async (args) => {
|
|
98
|
+
if (!client) {
|
|
99
|
+
throw resolutionError ?? new MissingClientError("useCreateManagerAndGetAddress", "factory");
|
|
100
|
+
}
|
|
101
|
+
return client.createManagerAndGetAddress(args);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
function useCreateManager(options = {}) {
|
|
106
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
107
|
+
return useMutation({
|
|
108
|
+
mutationFn: async (args) => {
|
|
109
|
+
if (!client) {
|
|
110
|
+
throw resolutionError ?? new MissingClientError("useCreateManager", "factory");
|
|
111
|
+
}
|
|
112
|
+
return client.createManager(args);
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function useSetDefaultGasFee(options = {}) {
|
|
117
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
118
|
+
return useMutation({
|
|
119
|
+
mutationFn: async ({ fee, account }) => {
|
|
120
|
+
if (!client)
|
|
121
|
+
throw resolutionError ?? new MissingClientError("useSetDefaultGasFee", "factory");
|
|
122
|
+
return client.setDefaultGasFee(fee, account);
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function useSetDefaultTokenFee(options = {}) {
|
|
127
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
128
|
+
return useMutation({
|
|
129
|
+
mutationFn: async ({ feeBps, account }) => {
|
|
130
|
+
if (!client)
|
|
131
|
+
throw resolutionError ?? new MissingClientError("useSetDefaultTokenFee", "factory");
|
|
132
|
+
return client.setDefaultTokenFee(feeBps, account);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
function useSetDefaultFeeType(options = {}) {
|
|
137
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
138
|
+
return useMutation({
|
|
139
|
+
mutationFn: async ({ feeType, account }) => {
|
|
140
|
+
if (!client)
|
|
141
|
+
throw resolutionError ?? new MissingClientError("useSetDefaultFeeType", "factory");
|
|
142
|
+
return client.setDefaultFeeType(feeType, account);
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function useResetGasFee(options = {}) {
|
|
147
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
148
|
+
return useMutation({
|
|
149
|
+
mutationFn: async (args) => {
|
|
150
|
+
if (!client) throw resolutionError ?? new MissingClientError("useResetGasFee", "factory");
|
|
151
|
+
return client.resetGasFee(args?.account);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
function useResetTokenFee(options = {}) {
|
|
156
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
157
|
+
return useMutation({
|
|
158
|
+
mutationFn: async (args) => {
|
|
159
|
+
if (!client) throw resolutionError ?? new MissingClientError("useResetTokenFee", "factory");
|
|
160
|
+
return client.resetTokenFee(args?.account);
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function useSetCustomFee(options = {}) {
|
|
165
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
166
|
+
return useMutation({
|
|
167
|
+
mutationFn: async ({ creator, feeType, gasFee, tokenFee, account }) => {
|
|
168
|
+
if (!client) throw resolutionError ?? new MissingClientError("useSetCustomFee", "factory");
|
|
169
|
+
return client.setCustomFee({ creator, feeType, gasFee, tokenFee }, account);
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
function useDisableCustomFee(options = {}) {
|
|
174
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
175
|
+
return useMutation({
|
|
176
|
+
mutationFn: async ({ creator, account }) => {
|
|
177
|
+
if (!client)
|
|
178
|
+
throw resolutionError ?? new MissingClientError("useDisableCustomFee", "factory");
|
|
179
|
+
return client.disableCustomFee(creator, account);
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
function useSetFeeCollector(options = {}) {
|
|
184
|
+
const { client, resolutionError } = useMemoFactoryClient(options);
|
|
185
|
+
return useMutation({
|
|
186
|
+
mutationFn: async ({ newCollector, account }) => {
|
|
187
|
+
if (!client) throw resolutionError ?? new MissingClientError("useSetFeeCollector", "factory");
|
|
188
|
+
return client.setFeeCollector(newCollector, account);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
function useManagerToken(options) {
|
|
193
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
194
|
+
return useQuery({
|
|
195
|
+
queryKey: buildQueryKey("manager:TOKEN_ADDRESS", chainId, options.address),
|
|
196
|
+
queryFn: () => client.token(),
|
|
197
|
+
enabled: !!client,
|
|
198
|
+
staleTime: 0
|
|
199
|
+
});
|
|
200
|
+
}
|
|
201
|
+
function useManagerFeeType(options) {
|
|
202
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
203
|
+
return useQuery({
|
|
204
|
+
queryKey: buildQueryKey("manager:FEE_TYPE", chainId, options.address),
|
|
205
|
+
queryFn: () => client.feeType(),
|
|
206
|
+
enabled: !!client,
|
|
207
|
+
staleTime: 0
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
function useManagerFee(options) {
|
|
211
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
212
|
+
return useQuery({
|
|
213
|
+
queryKey: buildQueryKey("manager:FEE", chainId, options.address),
|
|
214
|
+
queryFn: () => client.fee(),
|
|
215
|
+
enabled: !!client,
|
|
216
|
+
staleTime: 0
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
function useManagerFeeInfo(options) {
|
|
220
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
221
|
+
return useQuery({
|
|
222
|
+
queryKey: buildQueryKey("manager:getFeeInfo", chainId, options.address),
|
|
223
|
+
queryFn: () => client.getFeeInfo(),
|
|
224
|
+
enabled: !!client,
|
|
225
|
+
staleTime: 0
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
function useManagerDeploymentBlockNumber(options) {
|
|
229
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
230
|
+
return useQuery({
|
|
231
|
+
queryKey: buildQueryKey("manager:DEPLOYMENT_BLOCK_NUMBER", chainId, options.address),
|
|
232
|
+
queryFn: () => client.deploymentBlockNumber(),
|
|
233
|
+
enabled: !!client,
|
|
234
|
+
staleTime: 0
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
function useManagerIsSplitEnabled(options) {
|
|
238
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
239
|
+
return useQuery({
|
|
240
|
+
queryKey: buildQueryKey("manager:isSplitEnabled", chainId, options.address),
|
|
241
|
+
queryFn: () => client.isSplitEnabled(),
|
|
242
|
+
enabled: !!client,
|
|
243
|
+
staleTime: 0
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
function useManagerIsPausable(options) {
|
|
247
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
248
|
+
return useQuery({
|
|
249
|
+
queryKey: buildQueryKey("manager:isPausable", chainId, options.address),
|
|
250
|
+
queryFn: () => client.isPausable(),
|
|
251
|
+
enabled: !!client,
|
|
252
|
+
staleTime: 0
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
function useManagerPaused(options) {
|
|
256
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
257
|
+
return useQuery({
|
|
258
|
+
queryKey: buildQueryKey("manager:paused", chainId, options.address),
|
|
259
|
+
queryFn: () => client.paused(),
|
|
260
|
+
enabled: !!client,
|
|
261
|
+
staleTime: 0
|
|
262
|
+
});
|
|
263
|
+
}
|
|
264
|
+
function useManagerMaxBatchSize(options) {
|
|
265
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
266
|
+
return useQuery({
|
|
267
|
+
queryKey: buildQueryKey("manager:maxBatchSize", chainId, options.address),
|
|
268
|
+
queryFn: () => client.maxBatchSize(),
|
|
269
|
+
enabled: !!client,
|
|
270
|
+
staleTime: 0
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
function useManagerMaxRevokeBatchSize(options) {
|
|
274
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
275
|
+
return useQuery({
|
|
276
|
+
queryKey: buildQueryKey("manager:maxRevokeBatchSize", chainId, options.address),
|
|
277
|
+
queryFn: () => client.maxRevokeBatchSize(),
|
|
278
|
+
enabled: !!client,
|
|
279
|
+
staleTime: 0
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
function useVestingInfo(args) {
|
|
283
|
+
const { vestingId, ...base } = args;
|
|
284
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
285
|
+
return useQuery({
|
|
286
|
+
queryKey: buildQueryKey("manager:getVestingInfo", chainId, base.address, vestingId),
|
|
287
|
+
queryFn: () => client.getVestingInfo(vestingId),
|
|
288
|
+
enabled: !!client && !!vestingId,
|
|
289
|
+
staleTime: 0
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function useAllRecipients(options) {
|
|
293
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
294
|
+
return useQuery({
|
|
295
|
+
queryKey: buildQueryKey("manager:getAllRecipients", chainId, options.address),
|
|
296
|
+
queryFn: () => client.getAllRecipients(),
|
|
297
|
+
enabled: !!client,
|
|
298
|
+
staleTime: 0
|
|
299
|
+
});
|
|
300
|
+
}
|
|
301
|
+
function useAllRecipientsLength(options) {
|
|
302
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
303
|
+
return useQuery({
|
|
304
|
+
queryKey: buildQueryKey("manager:getAllRecipientsLength", chainId, options.address),
|
|
305
|
+
queryFn: () => client.getAllRecipientsLength(),
|
|
306
|
+
enabled: !!client,
|
|
307
|
+
staleTime: 0
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
function useAllRecipientsSliced(args) {
|
|
311
|
+
const { start, end, ...base } = args;
|
|
312
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
313
|
+
return useQuery({
|
|
314
|
+
queryKey: buildQueryKey("manager:getAllRecipientsSliced", chainId, base.address, start, end),
|
|
315
|
+
queryFn: () => client.getAllRecipientsSliced(start, end),
|
|
316
|
+
enabled: !!client && start !== void 0 && end !== void 0,
|
|
317
|
+
staleTime: 0
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
function useIsRecipient(args) {
|
|
321
|
+
const { account, ...base } = args;
|
|
322
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
323
|
+
return useQuery({
|
|
324
|
+
queryKey: buildQueryKey("manager:isRecipient", chainId, base.address, account),
|
|
325
|
+
queryFn: () => client.isRecipient(account),
|
|
326
|
+
enabled: !!client && !!account,
|
|
327
|
+
staleTime: 0
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
function useRecipientVestings(args) {
|
|
331
|
+
const { recipient, ...base } = args;
|
|
332
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
333
|
+
return useQuery({
|
|
334
|
+
queryKey: buildQueryKey("manager:getAllRecipientVestings", chainId, base.address, recipient),
|
|
335
|
+
queryFn: () => client.getAllRecipientVestings(recipient),
|
|
336
|
+
enabled: !!client && !!recipient,
|
|
337
|
+
staleTime: 0
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
function useRecipientVestingsLength(args) {
|
|
341
|
+
const { recipient, ...base } = args;
|
|
342
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
343
|
+
return useQuery({
|
|
344
|
+
queryKey: buildQueryKey(
|
|
345
|
+
"manager:getAllRecipientVestingsLength",
|
|
346
|
+
chainId,
|
|
347
|
+
base.address,
|
|
348
|
+
recipient
|
|
349
|
+
),
|
|
350
|
+
queryFn: () => client.getAllRecipientVestingsLength(recipient),
|
|
351
|
+
enabled: !!client && !!recipient,
|
|
352
|
+
staleTime: 0
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
function useRecipientVestingsSliced(args) {
|
|
356
|
+
const { recipient, start, end, ...base } = args;
|
|
357
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
358
|
+
return useQuery({
|
|
359
|
+
queryKey: buildQueryKey(
|
|
360
|
+
"manager:getAllRecipientVestingsSliced",
|
|
361
|
+
chainId,
|
|
362
|
+
base.address,
|
|
363
|
+
recipient,
|
|
364
|
+
start,
|
|
365
|
+
end
|
|
366
|
+
),
|
|
367
|
+
queryFn: () => client.getAllRecipientVestingsSliced(recipient, start, end),
|
|
368
|
+
enabled: !!client && !!recipient && start !== void 0 && end !== void 0,
|
|
369
|
+
staleTime: 0
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function usePendingVestingTransfer(args) {
|
|
373
|
+
const { vestingId, ...base } = args;
|
|
374
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
375
|
+
return useQuery({
|
|
376
|
+
queryKey: buildQueryKey("manager:getPendingVestingTransfer", chainId, base.address, vestingId),
|
|
377
|
+
queryFn: () => client.getPendingVestingTransfer(vestingId),
|
|
378
|
+
enabled: !!client && !!vestingId,
|
|
379
|
+
staleTime: 0
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
function useHasRole(args) {
|
|
383
|
+
const { role, account, ...base } = args;
|
|
384
|
+
const { client, chainId } = useMemoManagerClient(base);
|
|
385
|
+
return useQuery({
|
|
386
|
+
queryKey: buildQueryKey("manager:hasRole", chainId, base.address, role, account),
|
|
387
|
+
queryFn: () => client.hasRole(role, account),
|
|
388
|
+
enabled: !!client && !!role && !!account,
|
|
389
|
+
staleTime: 0
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
function useRoleConstants(options) {
|
|
393
|
+
const { client, chainId } = useMemoManagerClient(options);
|
|
394
|
+
return useQuery({
|
|
395
|
+
queryKey: buildQueryKey("manager:roleConstants", chainId, options.address),
|
|
396
|
+
queryFn: () => client.roleConstants(),
|
|
397
|
+
enabled: !!client,
|
|
398
|
+
staleTime: 0
|
|
399
|
+
});
|
|
400
|
+
}
|
|
401
|
+
function useGetVestedAmount(options) {
|
|
402
|
+
const { client } = useMemoManagerClient(options);
|
|
403
|
+
return useMutation({
|
|
404
|
+
mutationFn: async (args) => {
|
|
405
|
+
if (!client) throw new MissingClientError("useGetVestedAmount", "manager");
|
|
406
|
+
return client.getVestedAmount(args);
|
|
407
|
+
}
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
function useGetClaimableAmount(options) {
|
|
411
|
+
const { client } = useMemoManagerClient(options);
|
|
412
|
+
return useMutation({
|
|
413
|
+
mutationFn: async (args) => {
|
|
414
|
+
if (!client) throw new MissingClientError("useGetClaimableAmount", "manager");
|
|
415
|
+
return client.getClaimableAmount(args);
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
function useGetTotalAllocation(options) {
|
|
420
|
+
const { client } = useMemoManagerClient(options);
|
|
421
|
+
return useMutation({
|
|
422
|
+
mutationFn: async (args) => {
|
|
423
|
+
if (!client) throw new MissingClientError("useGetTotalAllocation", "manager");
|
|
424
|
+
return client.getTotalAllocation(args);
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
function useGetSettledAmount(options) {
|
|
429
|
+
const { client } = useMemoManagerClient(options);
|
|
430
|
+
return useMutation({
|
|
431
|
+
mutationFn: async (args) => {
|
|
432
|
+
if (!client) throw new MissingClientError("useGetSettledAmount", "manager");
|
|
433
|
+
return client.getSettledAmount(args);
|
|
434
|
+
}
|
|
435
|
+
});
|
|
436
|
+
}
|
|
437
|
+
function useAdminGetVestedAmount(options) {
|
|
438
|
+
const { client } = useMemoManagerClient(options);
|
|
439
|
+
return useMutation({
|
|
440
|
+
mutationFn: async (args) => {
|
|
441
|
+
if (!client) throw new MissingClientError("useAdminGetVestedAmount", "manager");
|
|
442
|
+
return client.adminGetVestedAmount(args);
|
|
443
|
+
}
|
|
444
|
+
});
|
|
445
|
+
}
|
|
446
|
+
function useAdminGetClaimableAmount(options) {
|
|
447
|
+
const { client } = useMemoManagerClient(options);
|
|
448
|
+
return useMutation({
|
|
449
|
+
mutationFn: async (args) => {
|
|
450
|
+
if (!client) throw new MissingClientError("useAdminGetClaimableAmount", "manager");
|
|
451
|
+
return client.adminGetClaimableAmount(args);
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
function useAdminGetTotalAllocation(options) {
|
|
456
|
+
const { client } = useMemoManagerClient(options);
|
|
457
|
+
return useMutation({
|
|
458
|
+
mutationFn: async (args) => {
|
|
459
|
+
if (!client) throw new MissingClientError("useAdminGetTotalAllocation", "manager");
|
|
460
|
+
return client.adminGetTotalAllocation(args);
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
}
|
|
464
|
+
function useAdminGetSettledAmount(options) {
|
|
465
|
+
const { client } = useMemoManagerClient(options);
|
|
466
|
+
return useMutation({
|
|
467
|
+
mutationFn: async (args) => {
|
|
468
|
+
if (!client) throw new MissingClientError("useAdminGetSettledAmount", "manager");
|
|
469
|
+
return client.adminGetSettledAmount(args);
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
}
|
|
473
|
+
function useAdminGetTokenBalance(options) {
|
|
474
|
+
const { client } = useMemoManagerClient(options);
|
|
475
|
+
return useMutation({
|
|
476
|
+
mutationFn: async (args) => {
|
|
477
|
+
if (!client) throw new MissingClientError("useAdminGetTokenBalance", "manager");
|
|
478
|
+
return client.adminGetTokenBalance(args);
|
|
479
|
+
}
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
function useCreateVesting(options) {
|
|
483
|
+
const { client } = useMemoManagerClient(options);
|
|
484
|
+
return useMutation({
|
|
485
|
+
mutationFn: async (args) => {
|
|
486
|
+
if (!client) throw new MissingClientError("useCreateVesting", "manager");
|
|
487
|
+
return client.createVesting(args);
|
|
488
|
+
}
|
|
489
|
+
});
|
|
490
|
+
}
|
|
491
|
+
function useBatchCreateVesting(options) {
|
|
492
|
+
const { client } = useMemoManagerClient(options);
|
|
493
|
+
return useMutation({
|
|
494
|
+
mutationFn: async (args) => {
|
|
495
|
+
if (!client) throw new MissingClientError("useBatchCreateVesting", "manager");
|
|
496
|
+
return client.batchCreateVesting(args);
|
|
497
|
+
}
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
function useClaim(options) {
|
|
501
|
+
const { client } = useMemoManagerClient(options);
|
|
502
|
+
return useMutation({
|
|
503
|
+
mutationFn: async (args) => {
|
|
504
|
+
if (!client) throw new MissingClientError("useClaim", "manager");
|
|
505
|
+
return client.claim(args);
|
|
506
|
+
}
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
function useAdminClaim(options) {
|
|
510
|
+
const { client } = useMemoManagerClient(options);
|
|
511
|
+
return useMutation({
|
|
512
|
+
mutationFn: async (args) => {
|
|
513
|
+
if (!client) throw new MissingClientError("useAdminClaim", "manager");
|
|
514
|
+
return client.adminClaim(args);
|
|
515
|
+
}
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
function usePartialClaim(options) {
|
|
519
|
+
const { client } = useMemoManagerClient(options);
|
|
520
|
+
return useMutation({
|
|
521
|
+
mutationFn: async (args) => {
|
|
522
|
+
if (!client) throw new MissingClientError("usePartialClaim", "manager");
|
|
523
|
+
return client.partialClaim(args);
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
function useAdminPartialClaim(options) {
|
|
528
|
+
const { client } = useMemoManagerClient(options);
|
|
529
|
+
return useMutation({
|
|
530
|
+
mutationFn: async (args) => {
|
|
531
|
+
if (!client) throw new MissingClientError("useAdminPartialClaim", "manager");
|
|
532
|
+
return client.adminPartialClaim(args);
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
function useRevokeVesting(options) {
|
|
537
|
+
const { client } = useMemoManagerClient(options);
|
|
538
|
+
return useMutation({
|
|
539
|
+
mutationFn: async ({ vestingId, account }) => {
|
|
540
|
+
if (!client) throw new MissingClientError("useRevokeVesting", "manager");
|
|
541
|
+
return client.revokeVesting(vestingId, account);
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}
|
|
545
|
+
function useBatchRevokeVesting(options) {
|
|
546
|
+
const { client } = useMemoManagerClient(options);
|
|
547
|
+
return useMutation({
|
|
548
|
+
mutationFn: async ({ vestingIds, account }) => {
|
|
549
|
+
if (!client) throw new MissingClientError("useBatchRevokeVesting", "manager");
|
|
550
|
+
return client.batchRevokeVesting(vestingIds, account);
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
function useSplitVesting(options) {
|
|
555
|
+
const { client } = useMemoManagerClient(options);
|
|
556
|
+
return useMutation({
|
|
557
|
+
mutationFn: async (args) => {
|
|
558
|
+
if (!client) throw new MissingClientError("useSplitVesting", "manager");
|
|
559
|
+
return client.splitVesting(args);
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
}
|
|
563
|
+
function useInitiateVestingTransfer(options) {
|
|
564
|
+
const { client } = useMemoManagerClient(options);
|
|
565
|
+
return useMutation({
|
|
566
|
+
mutationFn: async (args) => {
|
|
567
|
+
if (!client) throw new MissingClientError("useInitiateVestingTransfer", "manager");
|
|
568
|
+
return client.initiateVestingTransfer(args);
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
}
|
|
572
|
+
function useAcceptVestingTransfer(options) {
|
|
573
|
+
const { client } = useMemoManagerClient(options);
|
|
574
|
+
return useMutation({
|
|
575
|
+
mutationFn: async ({ vestingId, account }) => {
|
|
576
|
+
if (!client) throw new MissingClientError("useAcceptVestingTransfer", "manager");
|
|
577
|
+
return client.acceptVestingTransfer(vestingId, account);
|
|
578
|
+
}
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
function useCancelVestingTransfer(options) {
|
|
582
|
+
const { client } = useMemoManagerClient(options);
|
|
583
|
+
return useMutation({
|
|
584
|
+
mutationFn: async ({ vestingId, account }) => {
|
|
585
|
+
if (!client) throw new MissingClientError("useCancelVestingTransfer", "manager");
|
|
586
|
+
return client.cancelVestingTransfer(vestingId, account);
|
|
587
|
+
}
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
function useDirectVestingTransfer(options) {
|
|
591
|
+
const { client } = useMemoManagerClient(options);
|
|
592
|
+
return useMutation({
|
|
593
|
+
mutationFn: async ({ vestingId, newOwner, account }) => {
|
|
594
|
+
if (!client) throw new MissingClientError("useDirectVestingTransfer", "manager");
|
|
595
|
+
return client.directVestingTransfer(vestingId, newOwner, account);
|
|
596
|
+
}
|
|
597
|
+
});
|
|
598
|
+
}
|
|
599
|
+
function useDiscloseToParty(options) {
|
|
600
|
+
const { client } = useMemoManagerClient(options);
|
|
601
|
+
return useMutation({
|
|
602
|
+
mutationFn: async (args) => {
|
|
603
|
+
if (!client) throw new MissingClientError("useDiscloseToParty", "manager");
|
|
604
|
+
return client.discloseToParty(args);
|
|
605
|
+
}
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
function useBatchDiscloseToParty(options) {
|
|
609
|
+
const { client } = useMemoManagerClient(options);
|
|
610
|
+
return useMutation({
|
|
611
|
+
mutationFn: async (args) => {
|
|
612
|
+
if (!client) throw new MissingClientError("useBatchDiscloseToParty", "manager");
|
|
613
|
+
return client.batchDiscloseToParty(args);
|
|
614
|
+
}
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
function useAdminDiscloseToParty(options) {
|
|
618
|
+
const { client } = useMemoManagerClient(options);
|
|
619
|
+
return useMutation({
|
|
620
|
+
mutationFn: async (args) => {
|
|
621
|
+
if (!client) throw new MissingClientError("useAdminDiscloseToParty", "manager");
|
|
622
|
+
return client.adminDiscloseToParty(args);
|
|
623
|
+
}
|
|
624
|
+
});
|
|
625
|
+
}
|
|
626
|
+
function useAdminBatchDiscloseToParty(options) {
|
|
627
|
+
const { client } = useMemoManagerClient(options);
|
|
628
|
+
return useMutation({
|
|
629
|
+
mutationFn: async (args) => {
|
|
630
|
+
if (!client) throw new MissingClientError("useAdminBatchDiscloseToParty", "manager");
|
|
631
|
+
return client.adminBatchDiscloseToParty(args);
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
function useDiscloseHandleToParty(options) {
|
|
636
|
+
const { client } = useMemoManagerClient(options);
|
|
637
|
+
return useMutation({
|
|
638
|
+
mutationFn: async ({ handle, party, account }) => {
|
|
639
|
+
if (!client) throw new MissingClientError("useDiscloseHandleToParty", "manager");
|
|
640
|
+
return client.discloseHandleToParty(handle, party, account);
|
|
641
|
+
}
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
function useBatchDiscloseHandlesToParty(options) {
|
|
645
|
+
const { client } = useMemoManagerClient(options);
|
|
646
|
+
return useMutation({
|
|
647
|
+
mutationFn: async ({ handles, party, account }) => {
|
|
648
|
+
if (!client) throw new MissingClientError("useBatchDiscloseHandlesToParty", "manager");
|
|
649
|
+
return client.batchDiscloseHandlesToParty(handles, party, account);
|
|
650
|
+
}
|
|
651
|
+
});
|
|
652
|
+
}
|
|
653
|
+
function useWithdrawAdmin(options) {
|
|
654
|
+
const { client } = useMemoManagerClient(options);
|
|
655
|
+
return useMutation({
|
|
656
|
+
mutationFn: async (args) => {
|
|
657
|
+
if (!client) throw new MissingClientError("useWithdrawAdmin", "manager");
|
|
658
|
+
return client.withdrawAdmin(args);
|
|
659
|
+
}
|
|
660
|
+
});
|
|
661
|
+
}
|
|
662
|
+
function useWithdrawOtherToken(options) {
|
|
663
|
+
const { client } = useMemoManagerClient(options);
|
|
664
|
+
return useMutation({
|
|
665
|
+
mutationFn: async ({ token, to, account }) => {
|
|
666
|
+
if (!client) throw new MissingClientError("useWithdrawOtherToken", "manager");
|
|
667
|
+
return client.withdrawOtherToken(token, to, account);
|
|
668
|
+
}
|
|
669
|
+
});
|
|
670
|
+
}
|
|
671
|
+
function useWithdrawOtherConfidentialToken(options) {
|
|
672
|
+
const { client } = useMemoManagerClient(options);
|
|
673
|
+
return useMutation({
|
|
674
|
+
mutationFn: async ({ token, to, account }) => {
|
|
675
|
+
if (!client) throw new MissingClientError("useWithdrawOtherConfidentialToken", "manager");
|
|
676
|
+
return client.withdrawOtherConfidentialToken(token, to, account);
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
}
|
|
680
|
+
function useWithdrawGasFee(options) {
|
|
681
|
+
const { client } = useMemoManagerClient(options);
|
|
682
|
+
return useMutation({
|
|
683
|
+
mutationFn: async ({ to, amount, account }) => {
|
|
684
|
+
if (!client) throw new MissingClientError("useWithdrawGasFee", "manager");
|
|
685
|
+
return client.withdrawGasFee(to, amount, account);
|
|
686
|
+
}
|
|
687
|
+
});
|
|
688
|
+
}
|
|
689
|
+
function useWithdrawTokenFee(options) {
|
|
690
|
+
const { client } = useMemoManagerClient(options);
|
|
691
|
+
return useMutation({
|
|
692
|
+
mutationFn: async (args) => {
|
|
693
|
+
if (!client) throw new MissingClientError("useWithdrawTokenFee", "manager");
|
|
694
|
+
return client.withdrawTokenFee(args);
|
|
695
|
+
}
|
|
696
|
+
});
|
|
697
|
+
}
|
|
698
|
+
function useSetMaxBatchSize(options) {
|
|
699
|
+
const { client } = useMemoManagerClient(options);
|
|
700
|
+
return useMutation({
|
|
701
|
+
mutationFn: async ({ newMax, account }) => {
|
|
702
|
+
if (!client) throw new MissingClientError("useSetMaxBatchSize", "manager");
|
|
703
|
+
return client.setMaxBatchSize(newMax, account);
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
function useSetMaxRevokeBatchSize(options) {
|
|
708
|
+
const { client } = useMemoManagerClient(options);
|
|
709
|
+
return useMutation({
|
|
710
|
+
mutationFn: async ({ newMax, account }) => {
|
|
711
|
+
if (!client) throw new MissingClientError("useSetMaxRevokeBatchSize", "manager");
|
|
712
|
+
return client.setMaxRevokeBatchSize(newMax, account);
|
|
713
|
+
}
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
function useTransferFeeCollectorRole(options) {
|
|
717
|
+
const { client } = useMemoManagerClient(options);
|
|
718
|
+
return useMutation({
|
|
719
|
+
mutationFn: async ({ newCollector, account }) => {
|
|
720
|
+
if (!client) throw new MissingClientError("useTransferFeeCollectorRole", "manager");
|
|
721
|
+
return client.transferFeeCollectorRole(newCollector, account);
|
|
722
|
+
}
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
function usePause(options) {
|
|
726
|
+
const { client } = useMemoManagerClient(options);
|
|
727
|
+
return useMutation({
|
|
728
|
+
mutationFn: async (args) => {
|
|
729
|
+
if (!client) throw new MissingClientError("usePause", "manager");
|
|
730
|
+
return client.pause(args?.account);
|
|
731
|
+
}
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
function useUnpause(options) {
|
|
735
|
+
const { client } = useMemoManagerClient(options);
|
|
736
|
+
return useMutation({
|
|
737
|
+
mutationFn: async (args) => {
|
|
738
|
+
if (!client) throw new MissingClientError("useUnpause", "manager");
|
|
739
|
+
return client.unpause(args?.account);
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
function useGrantRole(options) {
|
|
744
|
+
const { client } = useMemoManagerClient(options);
|
|
745
|
+
return useMutation({
|
|
746
|
+
mutationFn: async ({ role, accountTarget, account }) => {
|
|
747
|
+
if (!client) throw new MissingClientError("useGrantRole", "manager");
|
|
748
|
+
return client.grantRole(role, accountTarget, account);
|
|
749
|
+
}
|
|
750
|
+
});
|
|
751
|
+
}
|
|
752
|
+
function useRevokeRole(options) {
|
|
753
|
+
const { client } = useMemoManagerClient(options);
|
|
754
|
+
return useMutation({
|
|
755
|
+
mutationFn: async ({ role, accountTarget, account }) => {
|
|
756
|
+
if (!client) throw new MissingClientError("useRevokeRole", "manager");
|
|
757
|
+
return client.revokeRole(role, accountTarget, account);
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
function useRenounceRole(options) {
|
|
762
|
+
const { client } = useMemoManagerClient(options);
|
|
763
|
+
return useMutation({
|
|
764
|
+
mutationFn: async ({ role, callerConfirm, account }) => {
|
|
765
|
+
if (!client) throw new MissingClientError("useRenounceRole", "manager");
|
|
766
|
+
return client.renounceRole(role, callerConfirm, account);
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
export { useAcceptVestingTransfer, useAdminBatchDiscloseToParty, useAdminClaim, useAdminDiscloseToParty, useAdminGetClaimableAmount, useAdminGetSettledAmount, useAdminGetTokenBalance, useAdminGetTotalAllocation, useAdminGetVestedAmount, useAdminPartialClaim, useAllRecipients, useAllRecipientsLength, useAllRecipientsSliced, useBatchCreateVesting, useBatchDiscloseHandlesToParty, useBatchDiscloseToParty, useBatchRevokeVesting, useCancelVestingTransfer, useClaim, useConfidentialVestingFactoryImplementation, useCreateManager, useCreateManagerAndGetAddress, useCreateVesting, useDirectVestingTransfer, useDisableCustomFee, useDiscloseHandleToParty, useDiscloseToParty, useFactoryCustomFee, useFactoryDefaultFeeType, useFactoryDefaultGasFee, useFactoryDefaultTokenFee, useFactoryFeeCollector, useFactoryInitCodeHash, useGetClaimableAmount, useGetSettledAmount, useGetTotalAllocation, useGetVestedAmount, useGrantRole, useHasRole, useInitiateVestingTransfer, useIsRecipient, useManagerDeploymentBlockNumber, useManagerFee, useManagerFeeInfo, useManagerFeeType, useManagerIsPausable, useManagerIsSplitEnabled, useManagerMaxBatchSize, useManagerMaxRevokeBatchSize, useManagerPaused, useManagerToken, usePartialClaim, usePause, usePendingVestingTransfer, useRecipientVestings, useRecipientVestingsLength, useRecipientVestingsSliced, useRenounceRole, useResetGasFee, useResetTokenFee, useRevokeRole, useRevokeVesting, useRoleConstants, useSetCustomFee, useSetDefaultFeeType, useSetDefaultGasFee, useSetDefaultTokenFee, useSetFeeCollector, useSetMaxBatchSize, useSetMaxRevokeBatchSize, useSplitVesting, useTransferFeeCollectorRole, useUnpause, useVestingInfo, useWithdrawAdmin, useWithdrawGasFee, useWithdrawOtherConfidentialToken, useWithdrawOtherToken, useWithdrawTokenFee };
|