@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,207 @@
|
|
|
1
|
+
import type { Account, Address, Hex, PublicClient, WalletClient } from "viem";
|
|
2
|
+
import { type TxHash } from "../core/brands.js";
|
|
3
|
+
import { type SdkTelemetry } from "../core/telemetry.js";
|
|
4
|
+
import type { FeeType } from "./types.js";
|
|
5
|
+
import { type CustomFee } from "./types.js";
|
|
6
|
+
export interface ConfidentialVestingFactoryClientConfig {
|
|
7
|
+
publicClient: PublicClient;
|
|
8
|
+
walletClient?: WalletClient;
|
|
9
|
+
/** Override the on-chain factory address. Falls back to {@link getFheVestingFactoryAddress} keyed by chain id. */
|
|
10
|
+
address?: Address;
|
|
11
|
+
/** Explicit chain id used to look up the default factory address. Defaults to `publicClient.chain?.id`. */
|
|
12
|
+
chainId?: number | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Optional telemetry sink. When provided, the SDK emits a `fhe-vesting.client.init`
|
|
15
|
+
* event on construction and brackets public write methods with named spans
|
|
16
|
+
* (`fhe-vesting.factory.createManager`, …). Defaults to a no-op — zero
|
|
17
|
+
* overhead, zero leakage of consumer-side identifiers.
|
|
18
|
+
*
|
|
19
|
+
* The shape is structurally compatible with `NoopTelemetry` / `ConsoleTelemetry` /
|
|
20
|
+
* `TokenOpsTelemetry` exported from `@tokenops/sdk/telemetry`.
|
|
21
|
+
*/
|
|
22
|
+
telemetry?: SdkTelemetry | undefined;
|
|
23
|
+
}
|
|
24
|
+
export interface CreateManagerArgs {
|
|
25
|
+
token: Address;
|
|
26
|
+
/**
|
|
27
|
+
* Any unique 32-byte value chosen by the caller. Combined with `token` and
|
|
28
|
+
* the deployer address to deterministically derive the clone address via CREATE3.
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* keccak256(toBytes("user-" + userId)) // keccak256 / toBytes from viem
|
|
33
|
+
* "0x0000000000000000000000000000000000000000000000000000000000000001"
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
userSalt: Hex;
|
|
37
|
+
/** Override `splitVesting` immutable flag. Defaults to `true`. Forces `createManagerWithOptions`. */
|
|
38
|
+
splitEnabled?: boolean | undefined;
|
|
39
|
+
/** Override pause/unpause immutable flag. Defaults to `true`. Forces `createManagerWithOptions`. */
|
|
40
|
+
pausableEnabled?: boolean | undefined;
|
|
41
|
+
account?: Account | Address | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface PredictManagerArgs {
|
|
44
|
+
token: Address;
|
|
45
|
+
userSalt: Hex;
|
|
46
|
+
deployer: Address;
|
|
47
|
+
splitEnabled?: boolean | undefined;
|
|
48
|
+
pausableEnabled?: boolean | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Block number to read at. **Required for stable prediction on a live chain.**
|
|
51
|
+
*
|
|
52
|
+
* The factory packs the deployment block number into the clone's immutable
|
|
53
|
+
* args, so the predicted address depends on the block the prediction runs
|
|
54
|
+
* against. To get the address an upcoming `createManager` tx will produce,
|
|
55
|
+
* you must know the block it will mine in — which you don't, until after it
|
|
56
|
+
* mines. In practice predicting an address is only useful for historical
|
|
57
|
+
* reads (verifying a clone deployed at a known past block) or
|
|
58
|
+
* tightly-coupled same-tx flows.
|
|
59
|
+
*
|
|
60
|
+
* **For the "deploy a clone and learn its address" flow, prefer
|
|
61
|
+
* {@link ConfidentialVestingFactoryClient.createManager}.**
|
|
62
|
+
* It parses the `ManagerCreated` event from the tx receipt and returns the
|
|
63
|
+
* address authoritatively — no block guessing required.
|
|
64
|
+
*
|
|
65
|
+
* The actual `predictManagerAddress` read lives on
|
|
66
|
+
* `ConfidentialVestingFactoryAdvancedClient` from `@tokenops/sdk/fhe-vesting/advanced` —
|
|
67
|
+
* this type is exported from both subpaths.
|
|
68
|
+
*/
|
|
69
|
+
blockNumber: bigint;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Rich-return shape from {@link ConfidentialVestingFactoryClient.createManager}.
|
|
73
|
+
*
|
|
74
|
+
* Branded `hash: TxHash` and `manager: Address` so consumers can't accidentally
|
|
75
|
+
* swap them at the destructure site (R03 S-1 anti-footgun).
|
|
76
|
+
*/
|
|
77
|
+
export interface CreateManagerResult {
|
|
78
|
+
/** Transaction hash of the deploy. */
|
|
79
|
+
hash: TxHash;
|
|
80
|
+
/** Address of the deployed clone, parsed from the `ManagerCreated` event. */
|
|
81
|
+
manager: Address;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Typed wrapper around the deployed `ConfidentialVestingFactory`. Mirrors the
|
|
85
|
+
* Solidity interface 1:1 — the only "abstraction" is plumbing viem clients and
|
|
86
|
+
* resolving the deployed factory address per chain.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* const factory = createConfidentialVestingFactoryClient({ publicClient, walletClient });
|
|
90
|
+
* const hash = await factory.createManager({ token, userSalt });
|
|
91
|
+
*/
|
|
92
|
+
export declare class ConfidentialVestingFactoryClient {
|
|
93
|
+
#private;
|
|
94
|
+
readonly publicClient: PublicClient;
|
|
95
|
+
readonly walletClient?: WalletClient;
|
|
96
|
+
readonly address: Address;
|
|
97
|
+
constructor(config: ConfidentialVestingFactoryClientConfig);
|
|
98
|
+
/**
|
|
99
|
+
* Deploy a new `ConfidentialVestingManager` clone via the factory and return
|
|
100
|
+
* its address, parsed from the `ManagerCreated` event in the tx receipt.
|
|
101
|
+
*
|
|
102
|
+
* **This is the headline factory entry point.** R02 ADR P-1 collapses the
|
|
103
|
+
* old hash-only + `…AndGetAddress` pair down to one rich-return method —
|
|
104
|
+
* the address is only knowable after the tx mines (the factory packs
|
|
105
|
+
* `block.number` into the clone's immutable args), so a hash-only variant
|
|
106
|
+
* forced consumers to re-derive what the SDK already had to compute.
|
|
107
|
+
*
|
|
108
|
+
* Calls `createManagerWithOptions` when `splitEnabled` or `pausableEnabled`
|
|
109
|
+
* is provided; otherwise calls the simpler `createManager` entry point.
|
|
110
|
+
*
|
|
111
|
+
* Internally: `writeContract` → {@link PublicClient.waitForTransactionReceipt} →
|
|
112
|
+
* `parseEventLogs({ eventName: "ManagerCreated" })`.
|
|
113
|
+
*
|
|
114
|
+
* Pre-mine prediction is exposed only on
|
|
115
|
+
* `ConfidentialVestingFactoryAdvancedClient` from
|
|
116
|
+
* `@tokenops/sdk/fhe-vesting/advanced` — predict at block N, mine at N+1,
|
|
117
|
+
* the addresses differ.
|
|
118
|
+
*
|
|
119
|
+
* @example
|
|
120
|
+
* const { hash, manager } = await factory.createManager({
|
|
121
|
+
* token: "0xYourToken",
|
|
122
|
+
* userSalt: "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
123
|
+
* });
|
|
124
|
+
*/
|
|
125
|
+
createManager(args: CreateManagerArgs): Promise<CreateManagerResult>;
|
|
126
|
+
/**
|
|
127
|
+
* Deploy a new manager clone and return its address, parsed from the
|
|
128
|
+
* `ManagerCreated` event in the tx receipt.
|
|
129
|
+
*
|
|
130
|
+
* This is the recommended entry point for the common "deploy a clone and use
|
|
131
|
+
* its address" flow. {@link ConfidentialVestingFactoryClient.predictManagerAddress}
|
|
132
|
+
* is unreliable on a live chain because the factory packs the deployment
|
|
133
|
+
* block number into the clone's immutable args — predict at block N, mine at
|
|
134
|
+
* N+1, and the addresses differ.
|
|
135
|
+
*
|
|
136
|
+
* Internally: {@link ConfidentialVestingFactoryClient.createManager} →
|
|
137
|
+
* {@link PublicClient.waitForTransactionReceipt} →
|
|
138
|
+
* `parseEventLogs({ eventName: "ManagerCreated" })`.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* const { hash, manager } = await factory.createManagerAndGetAddress({
|
|
142
|
+
* token, userSalt,
|
|
143
|
+
* });
|
|
144
|
+
*/
|
|
145
|
+
createManagerAndGetAddress(args: CreateManagerArgs): Promise<CreateManagerResult>;
|
|
146
|
+
/**
|
|
147
|
+
* Set the factory-wide default gas fee (in wei). Factory admin only.
|
|
148
|
+
*
|
|
149
|
+
* @param fee Fee in wei charged per `claim` on `FeeType.Gas` managers.
|
|
150
|
+
*/
|
|
151
|
+
setDefaultGasFee(fee: bigint, account?: Account | Address): Promise<TxHash>;
|
|
152
|
+
/**
|
|
153
|
+
* Set the factory-wide default token fee in basis points. Factory admin only.
|
|
154
|
+
*
|
|
155
|
+
* @param feeBps Basis points (1 bps = 0.01 %). Deducted from the claimed token
|
|
156
|
+
* amount on `FeeType.DistributionToken` managers.
|
|
157
|
+
*/
|
|
158
|
+
setDefaultTokenFee(feeBps: bigint, account?: Account | Address): Promise<TxHash>;
|
|
159
|
+
/** Set the default fee model (`FeeType.Gas` or `FeeType.DistributionToken`) for new clones. Factory admin only. */
|
|
160
|
+
setDefaultFeeType(feeType: FeeType, account?: Account | Address): Promise<TxHash>;
|
|
161
|
+
resetGasFee(account?: Account | Address): Promise<TxHash>;
|
|
162
|
+
resetTokenFee(account?: Account | Address): Promise<TxHash>;
|
|
163
|
+
/**
|
|
164
|
+
* Set a per-creator fee override. The override takes precedence over the factory
|
|
165
|
+
* defaults for all managers created by `args.creator`.
|
|
166
|
+
*/
|
|
167
|
+
setCustomFee(args: {
|
|
168
|
+
creator: Address;
|
|
169
|
+
feeType: FeeType;
|
|
170
|
+
gasFee: bigint;
|
|
171
|
+
tokenFee: bigint;
|
|
172
|
+
}, account?: Account | Address): Promise<TxHash>;
|
|
173
|
+
disableCustomFee(creator: Address, account?: Account | Address): Promise<TxHash>;
|
|
174
|
+
setFeeCollector(newCollector: Address, account?: Account | Address): Promise<TxHash>;
|
|
175
|
+
/** Current LibClone implementation address. */
|
|
176
|
+
implementation(): Promise<Address>;
|
|
177
|
+
/**
|
|
178
|
+
* Alias for {@link ConfidentialVestingFactoryClient.implementation} that matches
|
|
179
|
+
* the contract's storage field name (`_managerImplementation`).
|
|
180
|
+
*
|
|
181
|
+
* Renamed for clarity per backend-integrator-r14 friction
|
|
182
|
+
* (`docs/feedback/inbox/2026-05-24-backend-integrator-r14-minor-implementation-vs-manager-implementation-naming.md`):
|
|
183
|
+
* server devs reading the Solidity reach for `factory.managerImplementation()`
|
|
184
|
+
* via autocomplete (the contract storage slot name) and hit a TS2551. The
|
|
185
|
+
* canonical `implementation()` method is retained for backwards-compat and
|
|
186
|
+
* cross-factory uniformity (fhe-airdrop exposes the same shape).
|
|
187
|
+
*/
|
|
188
|
+
managerImplementation(): Promise<Address>;
|
|
189
|
+
defaultGasFee(): Promise<bigint>;
|
|
190
|
+
defaultTokenFee(): Promise<bigint>;
|
|
191
|
+
defaultFeeType(): Promise<FeeType>;
|
|
192
|
+
feeCollector(): Promise<Address>;
|
|
193
|
+
getCustomFee(creator: Address): Promise<CustomFee>;
|
|
194
|
+
getInitCodeHash(args: {
|
|
195
|
+
token: Address;
|
|
196
|
+
deployer: Address;
|
|
197
|
+
splitEnabled?: boolean | undefined;
|
|
198
|
+
pausableEnabled?: boolean | undefined;
|
|
199
|
+
}): Promise<Hex>;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Create a {@link ConfidentialVestingFactoryClient}. Mirrors viem's `create*` convention.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* const factory = createConfidentialVestingFactoryClient({ publicClient, walletClient });
|
|
206
|
+
*/
|
|
207
|
+
export declare function createConfidentialVestingFactoryClient(config: ConfidentialVestingFactoryClientConfig): ConfidentialVestingFactoryClient;
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
4
|
+
var chunkSUOG3BQS_cjs = require('../chunk-SUOG3BQS.cjs');
|
|
5
|
+
require('../chunk-NS44KBV5.cjs');
|
|
6
|
+
var chunk5SGMJADP_cjs = require('../chunk-5SGMJADP.cjs');
|
|
7
|
+
require('../chunk-Q7ARQSUH.cjs');
|
|
8
|
+
var chunk62DF53UQ_cjs = require('../chunk-62DF53UQ.cjs');
|
|
9
|
+
require('../chunk-VDXVNZCO.cjs');
|
|
10
|
+
require('../chunk-OLDGMKW2.cjs');
|
|
11
|
+
require('../chunk-CQIPRNS7.cjs');
|
|
12
|
+
require('../chunk-VJKZWYYJ.cjs');
|
|
13
|
+
require('../chunk-66IHPTOK.cjs');
|
|
14
|
+
var chunk56UI7LUR_cjs = require('../chunk-56UI7LUR.cjs');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
Object.defineProperty(exports, "erc7984OperatorAbi", {
|
|
19
|
+
enumerable: true,
|
|
20
|
+
get: function () { return chunkFWHYQZ5E_cjs.erc7984OperatorAbi; }
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "ClaimLockedError", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () { return chunkSUOG3BQS_cjs.ClaimLockedError; }
|
|
25
|
+
});
|
|
26
|
+
Object.defineProperty(exports, "ConfidentialVestingManagerClient", {
|
|
27
|
+
enumerable: true,
|
|
28
|
+
get: function () { return chunkSUOG3BQS_cjs.ConfidentialVestingManagerClient; }
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "NoPendingTransferError", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () { return chunkSUOG3BQS_cjs.NoPendingTransferError; }
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "NotPendingRecipientError", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () { return chunkSUOG3BQS_cjs.NotPendingRecipientError; }
|
|
37
|
+
});
|
|
38
|
+
Object.defineProperty(exports, "NotVestingRecipientError", {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () { return chunkSUOG3BQS_cjs.NotVestingRecipientError; }
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "TransferAlreadyPendingError", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () { return chunkSUOG3BQS_cjs.TransferAlreadyPendingError; }
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "TransferExpiredError", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () { return chunkSUOG3BQS_cjs.TransferExpiredError; }
|
|
49
|
+
});
|
|
50
|
+
Object.defineProperty(exports, "VestingExpiredError", {
|
|
51
|
+
enumerable: true,
|
|
52
|
+
get: function () { return chunkSUOG3BQS_cjs.VestingExpiredError; }
|
|
53
|
+
});
|
|
54
|
+
Object.defineProperty(exports, "VestingNotFoundError", {
|
|
55
|
+
enumerable: true,
|
|
56
|
+
get: function () { return chunkSUOG3BQS_cjs.VestingNotFoundError; }
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "VestingNotRevocableError", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () { return chunkSUOG3BQS_cjs.VestingNotRevocableError; }
|
|
61
|
+
});
|
|
62
|
+
Object.defineProperty(exports, "VestingRevokedError", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
get: function () { return chunkSUOG3BQS_cjs.VestingRevokedError; }
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "confidentialVestingManagerAbi", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function () { return chunkSUOG3BQS_cjs.confidentialVestingManagerAbi; }
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "createConfidentialVestingManagerClient", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function () { return chunkSUOG3BQS_cjs.createConfidentialVestingManagerClient; }
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(exports, "encryptUint64", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
get: function () { return chunkSUOG3BQS_cjs.encryptUint64; }
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
79
|
+
enumerable: true,
|
|
80
|
+
get: function () { return chunkSUOG3BQS_cjs.encryptUint64Batch; }
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "resolveEncryptor", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function () { return chunkSUOG3BQS_cjs.resolveEncryptor; }
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(exports, "FHE_SPLIT_DENOMINATOR", {
|
|
87
|
+
enumerable: true,
|
|
88
|
+
get: function () { return chunk5SGMJADP_cjs.FHE_SPLIT_DENOMINATOR; }
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(exports, "scaleRatio", {
|
|
91
|
+
enumerable: true,
|
|
92
|
+
get: function () { return chunk5SGMJADP_cjs.scaleRatio; }
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "share", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function () { return chunk5SGMJADP_cjs.share; }
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(exports, "ConfidentialVestingFactoryClient", {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: function () { return chunk62DF53UQ_cjs.ConfidentialVestingFactoryClient; }
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(exports, "DisclosureType", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
get: function () { return chunk62DF53UQ_cjs.DisclosureType; }
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(exports, "FeeType", {
|
|
107
|
+
enumerable: true,
|
|
108
|
+
get: function () { return chunk62DF53UQ_cjs.FeeType; }
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(exports, "confidentialVestingFactoryAbi", {
|
|
111
|
+
enumerable: true,
|
|
112
|
+
get: function () { return chunk62DF53UQ_cjs.confidentialVestingFactoryAbi; }
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(exports, "createConfidentialVestingFactoryClient", {
|
|
115
|
+
enumerable: true,
|
|
116
|
+
get: function () { return chunk62DF53UQ_cjs.createConfidentialVestingFactoryClient; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "feeTypeName", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunk62DF53UQ_cjs.feeTypeName; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "AccessDeniedError", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunk56UI7LUR_cjs.AccessDeniedError; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunk56UI7LUR_cjs.AlreadyInitializedError; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunk56UI7LUR_cjs.BatchTooLargeError; }
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(exports, "ContractRevertError", {
|
|
135
|
+
enumerable: true,
|
|
136
|
+
get: function () { return chunk56UI7LUR_cjs.ContractRevertError; }
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
get: function () { return chunk56UI7LUR_cjs.DecryptionFailedError; }
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
143
|
+
enumerable: true,
|
|
144
|
+
get: function () { return chunk56UI7LUR_cjs.DeploymentAddressUnavailableError; }
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
147
|
+
enumerable: true,
|
|
148
|
+
get: function () { return chunk56UI7LUR_cjs.EncryptionFailedError; }
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
151
|
+
enumerable: true,
|
|
152
|
+
get: function () { return chunk56UI7LUR_cjs.FeatureDisabledError; }
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: function () { return chunk56UI7LUR_cjs.FheHandleNotAllowedError; }
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
159
|
+
enumerable: true,
|
|
160
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientBalanceError; }
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientFeeError; }
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
get: function () { return chunk56UI7LUR_cjs.InsufficientGasFundsError; }
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
171
|
+
enumerable: true,
|
|
172
|
+
get: function () { return chunk56UI7LUR_cjs.InvalidArgumentError; }
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
175
|
+
enumerable: true,
|
|
176
|
+
get: function () { return chunk56UI7LUR_cjs.InvalidSignatureError; }
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(exports, "MissingAccountError", {
|
|
179
|
+
enumerable: true,
|
|
180
|
+
get: function () { return chunk56UI7LUR_cjs.MissingAccountError; }
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(exports, "MissingClientError", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: function () { return chunk56UI7LUR_cjs.MissingClientError; }
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
187
|
+
enumerable: true,
|
|
188
|
+
get: function () { return chunk56UI7LUR_cjs.MissingEncryptorError; }
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
191
|
+
enumerable: true,
|
|
192
|
+
get: function () { return chunk56UI7LUR_cjs.MissingPublicClientError; }
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
195
|
+
enumerable: true,
|
|
196
|
+
get: function () { return chunk56UI7LUR_cjs.MissingWalletClientError; }
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(exports, "NetworkError", {
|
|
199
|
+
enumerable: true,
|
|
200
|
+
get: function () { return chunk56UI7LUR_cjs.NetworkError; }
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(exports, "PausedError", {
|
|
203
|
+
enumerable: true,
|
|
204
|
+
get: function () { return chunk56UI7LUR_cjs.PausedError; }
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
get: function () { return chunk56UI7LUR_cjs.ReceiptEventAmbiguousError; }
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: function () { return chunk56UI7LUR_cjs.ReceiptEventNotFoundError; }
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(exports, "ReentrancyError", {
|
|
215
|
+
enumerable: true,
|
|
216
|
+
get: function () { return chunk56UI7LUR_cjs.ReentrancyError; }
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
219
|
+
enumerable: true,
|
|
220
|
+
get: function () { return chunk56UI7LUR_cjs.RelayerUnreachableError; }
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(exports, "SigningFailedError", {
|
|
223
|
+
enumerable: true,
|
|
224
|
+
get: function () { return chunk56UI7LUR_cjs.SigningFailedError; }
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
227
|
+
enumerable: true,
|
|
228
|
+
get: function () { return chunk56UI7LUR_cjs.TokenOpsContractError; }
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
231
|
+
enumerable: true,
|
|
232
|
+
get: function () { return chunk56UI7LUR_cjs.TokenOpsSdkError; }
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
235
|
+
enumerable: true,
|
|
236
|
+
get: function () { return chunk56UI7LUR_cjs.TokenOpsValidationError; }
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(exports, "TransferFailedError", {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: function () { return chunk56UI7LUR_cjs.TransferFailedError; }
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
243
|
+
enumerable: true,
|
|
244
|
+
get: function () { return chunk56UI7LUR_cjs.UnknownWriteFailureError; }
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
247
|
+
enumerable: true,
|
|
248
|
+
get: function () { return chunk56UI7LUR_cjs.UnsupportedChainError; }
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
251
|
+
enumerable: true,
|
|
252
|
+
get: function () { return chunk56UI7LUR_cjs.UserDecryptNotAllowedError; }
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
255
|
+
enumerable: true,
|
|
256
|
+
get: function () { return chunk56UI7LUR_cjs.UserRejectedSignatureError; }
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
259
|
+
enumerable: true,
|
|
260
|
+
get: function () { return chunk56UI7LUR_cjs.WalletChainMismatchError; }
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(exports, "WalletRejectedError", {
|
|
263
|
+
enumerable: true,
|
|
264
|
+
get: function () { return chunk56UI7LUR_cjs.WalletRejectedError; }
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: function () { return chunk56UI7LUR_cjs.isTokenOpsSdkError; }
|
|
269
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ConfidentialVestingFactoryClient, createConfidentialVestingFactoryClient, type ConfidentialVestingFactoryClientConfig, type CreateManagerArgs, type CreateManagerResult, } from "./factory.js";
|
|
2
|
+
export { ConfidentialVestingManagerClient, createConfidentialVestingManagerClient, type BatchCreateVestingArgs, type BatchDiscloseToPartyResult, type ClaimArgs, type ConfidentialVestingManagerClientConfig, type CreateVestingArgs, type DiscloseArgs, type DiscloseToPartyResult, type EncryptedViewResult, type InitiateTransferArgs, type PartialClaimArgs, type SplitVestingArgs, type SplitVestingResult, } from "./manager.js";
|
|
3
|
+
export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
4
|
+
export { DisclosureType, FeeType, feeTypeName, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
5
|
+
export { confidentialVestingFactoryAbi, confidentialVestingManagerAbi, erc7984OperatorAbi, } from "./abis/index.js";
|
|
6
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../core/errors.js";
|
|
7
|
+
export { type PreflightResult } from "../core/preflight.js";
|
|
8
|
+
export { VestingNotFoundError, NotVestingRecipientError, ClaimLockedError, VestingRevokedError, VestingNotRevocableError, VestingExpiredError, TransferAlreadyPendingError, NoPendingTransferError, NotPendingRecipientError, TransferExpiredError, } from "./errors.js";
|
|
9
|
+
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share, type ScaleRatioArgs, type ScaleRatioWidth, type ScaledRatio, } from "../fhe/scale-ratio.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { ConfidentialVestingFactoryClient, createConfidentialVestingFactoryClient, type ConfidentialVestingFactoryClientConfig, type CreateManagerArgs, type CreateManagerResult, } from "./factory.js";
|
|
2
|
+
export { ConfidentialVestingManagerClient, createConfidentialVestingManagerClient, type BatchCreateVestingArgs, type BatchDiscloseToPartyResult, type ClaimArgs, type ConfidentialVestingManagerClientConfig, type CreateVestingArgs, type DiscloseArgs, type DiscloseToPartyResult, type EncryptedViewResult, type InitiateTransferArgs, type PartialClaimArgs, type SplitVestingArgs, type SplitVestingResult, } from "./manager.js";
|
|
3
|
+
export { encryptUint64, encryptUint64Batch, resolveEncryptor, type Encryptor, type EncryptorSource, type EncryptUint64Args, type EncryptUint64BatchArgs, type FheValueInput, } from "./encryption.js";
|
|
4
|
+
export { DisclosureType, FeeType, feeTypeName, type CustomFee, type EncryptedInput, type EncryptedInputs, type PendingTransfer, type VestingInfo, type VestingParams, } from "./types.js";
|
|
5
|
+
export { confidentialVestingFactoryAbi, confidentialVestingManagerAbi, erc7984OperatorAbi, } from "./abis/index.js";
|
|
6
|
+
export { TokenOpsSdkError, isTokenOpsSdkError, DeploymentAddressUnavailableError, UnsupportedChainError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, InvalidArgumentError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, TokenOpsValidationError, ContractRevertError, TokenOpsContractError, PausedError, AccessDeniedError, InsufficientFeeError, InsufficientBalanceError, BatchTooLargeError, FeatureDisabledError, TransferFailedError, FheHandleNotAllowedError, AlreadyInitializedError, ReentrancyError, InvalidSignatureError, WalletRejectedError, WalletChainMismatchError, NetworkError, InsufficientGasFundsError, UnknownWriteFailureError, UserRejectedSignatureError, SigningFailedError, RelayerUnreachableError, EncryptionFailedError, DecryptionFailedError, UserDecryptNotAllowedError, type DeploymentAddressUnavailableReason, type TokenOpsSdkErrorCode, } from "../core/errors.js";
|
|
7
|
+
export { type PreflightResult } from "../core/preflight.js";
|
|
8
|
+
export { VestingNotFoundError, NotVestingRecipientError, ClaimLockedError, VestingRevokedError, VestingNotRevocableError, VestingExpiredError, TransferAlreadyPendingError, NoPendingTransferError, NotPendingRecipientError, TransferExpiredError, } from "./errors.js";
|
|
9
|
+
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share, type ScaleRatioArgs, type ScaleRatioWidth, type ScaledRatio, } from "../fhe/scale-ratio.js";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { erc7984OperatorAbi } from '../chunk-7VELUOMI.js';
|
|
2
|
+
export { ClaimLockedError, ConfidentialVestingManagerClient, NoPendingTransferError, NotPendingRecipientError, NotVestingRecipientError, TransferAlreadyPendingError, TransferExpiredError, VestingExpiredError, VestingNotFoundError, VestingNotRevocableError, VestingRevokedError, confidentialVestingManagerAbi, createConfidentialVestingManagerClient, encryptUint64, encryptUint64Batch, resolveEncryptor } from '../chunk-52TC6BF7.js';
|
|
3
|
+
import '../chunk-ZXCOJY2Z.js';
|
|
4
|
+
export { FHE_SPLIT_DENOMINATOR, scaleRatio, share } from '../chunk-XSNLAS5M.js';
|
|
5
|
+
import '../chunk-FYQ2UW4T.js';
|
|
6
|
+
export { ConfidentialVestingFactoryClient, DisclosureType, FeeType, confidentialVestingFactoryAbi, createConfidentialVestingFactoryClient, feeTypeName } 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
|
+
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, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-IVE3QEGD.js';
|