@tokenops/sdk 1.6.0 → 2.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -8
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SUPPORT.md +47 -0
- package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
- package/dist/{chunk-YFIWCYHC.cjs → chunk-3YHBO2DL.cjs} +56 -54
- package/dist/{chunk-QET3Q4JP.js → chunk-44YJPMQC.js} +8 -6
- package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
- package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
- package/dist/chunk-66IHPTOK.cjs +20 -0
- package/dist/{chunk-2RNW4MIJ.cjs → chunk-67OV5CX2.cjs} +0 -18
- package/dist/{chunk-PD7ME2BT.js → chunk-6GNR22OV.js} +2 -1
- package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
- package/dist/{chunk-QKKBBH7I.js → chunk-A4DCEE33.js} +34 -7
- package/dist/chunk-AREQJHKA.cjs +713 -0
- package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
- package/dist/chunk-EBLBPUPI.cjs +255 -0
- package/dist/chunk-EYDA6Q6C.js +245 -0
- package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/{chunk-AYGRYDBX.cjs → chunk-FEDX7B6T.cjs} +37 -35
- package/dist/{chunk-CBRL2PJA.cjs → chunk-FHWSBGWE.cjs} +12 -12
- package/dist/{chunk-WUXUWTFW.cjs → chunk-FT5H2Q7Y.cjs} +37 -7
- package/dist/chunk-GADGBQJO.js +423 -0
- package/dist/{chunk-VHSNYUYV.js → chunk-IGO5XSPS.js} +5 -5
- package/dist/chunk-IUKKNJ2R.cjs +433 -0
- package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/{chunk-7G7UOQV4.cjs → chunk-MM5BV5CS.cjs} +4 -4
- package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
- package/dist/chunk-NWFMBLSQ.js +4 -0
- package/dist/{chunk-HETNKZEE.js → chunk-PYYSB5ZN.js} +1 -1
- package/dist/chunk-PZZK3O3S.cjs +9843 -0
- package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
- package/dist/{chunk-WTK6JDSI.js → chunk-SPLNGUFF.js} +6 -4
- package/dist/{chunk-UJS4N2XM.cjs → chunk-TEBM66WA.cjs} +12 -12
- package/dist/{chunk-TN65XNTI.js → chunk-TWT3STIX.js} +8 -6
- package/dist/chunk-UG5RKLU2.cjs +6 -0
- package/dist/{chunk-EUKPOXWR.cjs → chunk-UHHMVBLU.cjs} +17 -15
- package/dist/chunk-VW356KR3.js +688 -0
- package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
- package/dist/{chunk-V5D7BHW3.js → chunk-WJMEBBU7.js} +6 -4
- package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
- package/dist/chunk-X7WBPCEU.js +9817 -0
- package/dist/{chunk-46T67CE2.js → chunk-ZA673I3O.js} +1 -1
- package/dist/{chunk-YPYCWLYP.js → chunk-ZWXJTBZO.js} +1 -1
- package/dist/core/addresses.d.ts +14 -2
- package/dist/core/brands.d.ts +8 -2
- package/dist/core/errors.d.ts +71 -10
- package/dist/core/preflight.d.ts +1 -0
- package/dist/fhe/erc7984-abi.d.ts +1 -0
- package/dist/fhe/index.cjs +64 -63
- package/dist/fhe/index.js +7 -6
- package/dist/fhe/operators.d.ts +22 -5
- package/dist/fhe/react/index.cjs +13 -12
- package/dist/fhe/react/index.js +6 -5
- package/dist/fhe/types.d.ts +8 -2
- package/dist/fhe-airdrop/abis/{cloneable.d.ts → airdrop-base.d.ts} +254 -396
- package/dist/fhe-airdrop/abis/compliance.d.ts +422 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +1316 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +1319 -190
- package/dist/fhe-airdrop/abis/index.d.ts +5 -2
- package/dist/fhe-airdrop/abis/merkle.d.ts +1250 -0
- package/dist/fhe-airdrop/advanced/index.cjs +11 -12
- package/dist/fhe-airdrop/advanced/index.d.cts +34 -11
- package/dist/fhe-airdrop/advanced/index.d.ts +34 -11
- package/dist/fhe-airdrop/advanced/index.js +3 -8
- package/dist/fhe-airdrop/advanced/react/index.cjs +619 -51
- package/dist/fhe-airdrop/advanced/react/index.d.cts +43 -3
- package/dist/fhe-airdrop/advanced/react/index.d.ts +43 -3
- package/dist/fhe-airdrop/advanced/react/index.js +592 -52
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +35 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +47 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
- package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/usePredictEcdsaAirdropAddress.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/usePredictMerkleAirdropAddress.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
- package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +608 -0
- package/dist/fhe-airdrop/campaign.d.ts +338 -0
- package/dist/fhe-airdrop/compliance.d.ts +302 -0
- package/dist/fhe-airdrop/constants.d.ts +33 -0
- package/dist/fhe-airdrop/ecdsa.d.ts +263 -0
- package/dist/fhe-airdrop/encryption.d.ts +92 -14
- package/dist/fhe-airdrop/errors.d.ts +273 -15
- package/dist/fhe-airdrop/factory.d.ts +533 -274
- package/dist/fhe-airdrop/guards.d.ts +317 -0
- package/dist/fhe-airdrop/index.cjs +233 -73
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +11 -7
- package/dist/fhe-airdrop/merkle-tree.d.ts +97 -0
- package/dist/fhe-airdrop/merkle.d.ts +201 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +156 -70
- package/dist/fhe-airdrop/react/index.cjs +1174 -384
- package/dist/fhe-airdrop/react/index.d.cts +99 -74
- package/dist/fhe-airdrop/react/index.d.ts +99 -74
- package/dist/fhe-airdrop/react/index.js +993 -303
- package/dist/fhe-airdrop/react/keys.d.ts +90 -0
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
- package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +29 -10
- package/dist/fhe-airdrop/react/useAirdropHasRole.d.ts +15 -6
- package/dist/fhe-airdrop/react/useAirdropPause.d.ts +30 -0
- package/dist/fhe-airdrop/react/useAirdropPaused.d.ts +17 -0
- package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +27 -9
- package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
- package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropToken.d.ts +11 -4
- package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
- package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
- package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
- package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
- package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
- package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -0
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
- package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
- package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
- package/dist/fhe-airdrop/react/useCreateEcdsaAirdrop.d.ts +28 -0
- package/dist/fhe-airdrop/react/useCreateMerkleAirdrop.d.ts +25 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +24 -0
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
- package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
- package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -0
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
- package/dist/fhe-airdrop/react/useExtendClaimWindow.d.ts +17 -12
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +28 -0
- package/dist/fhe-airdrop/react/useFactoryRegistry.d.ts +35 -0
- package/dist/fhe-airdrop/react/useFundAirdrop.d.ts +35 -0
- package/dist/fhe-airdrop/react/useGrantInstanceRoles.d.ts +35 -0
- package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
- package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +22 -0
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
- package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -35
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
- package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
- package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +32 -21
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
- package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/roles.d.ts +147 -0
- package/dist/fhe-airdrop/types.d.ts +78 -63
- package/dist/fhe-disperse/index.cjs +70 -68
- package/dist/fhe-disperse/index.js +10 -8
- package/dist/fhe-disperse/react/index.cjs +94 -92
- package/dist/fhe-disperse/react/index.js +13 -11
- package/dist/fhe-vesting/advanced/index.cjs +10 -8
- package/dist/fhe-vesting/advanced/index.js +8 -6
- package/dist/fhe-vesting/advanced/react/index.cjs +16 -14
- package/dist/fhe-vesting/advanced/react/index.js +13 -11
- package/dist/fhe-vesting/index.cjs +74 -72
- package/dist/fhe-vesting/index.js +11 -9
- package/dist/fhe-vesting/react/index.cjs +228 -226
- package/dist/fhe-vesting/react/index.js +15 -13
- package/dist/index.cjs +100 -87
- package/dist/index.js +3 -2
- package/dist/testnet-faucet/index.cjs +57 -55
- package/dist/testnet-faucet/index.js +7 -5
- package/dist/testnet-faucet/react/index.cjs +55 -53
- package/dist/testnet-faucet/react/index.js +9 -7
- package/package.json +6 -2
- package/dist/chunk-CNP4L3GF.js +0 -105
- package/dist/chunk-KSDSXJ34.js +0 -41
- package/dist/chunk-LBWRFZR3.cjs +0 -1681
- package/dist/chunk-OL6SHN3D.cjs +0 -44
- package/dist/chunk-S2XD75JM.js +0 -1637
- package/dist/chunk-SPGSO5SO.cjs +0 -1644
- package/dist/chunk-UE5XK2SY.js +0 -1673
- package/dist/chunk-WO72UBQD.cjs +0 -109
- package/dist/fhe-airdrop/advanced/factory-advanced.d.ts +0 -53
- package/dist/fhe-airdrop/advanced/react/usePredictAirdropAddress.d.ts +0 -49
- package/dist/fhe-airdrop/airdrop.d.ts +0 -317
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +0 -37
- package/dist/fhe-airdrop/react/useAirdropCanExtendClaimWindow.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropClaimTypehash.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropClaimedSignatures.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropDeploymentBlockNumber.d.ts +0 -6
- package/dist/fhe-airdrop/react/useAirdropDomainSeparator.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropEndTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropFactoryDisableCustomFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useAirdropFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useAirdropFactorySetDefaultGasFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useAirdropFactorySetFeeCollector.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropHasClaimEnded.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropHasClaimStarted.d.ts +0 -7
- package/dist/fhe-airdrop/react/useAirdropIsClaimWindowActive.d.ts +0 -9
- package/dist/fhe-airdrop/react/useAirdropIsPaused.d.ts +0 -8
- package/dist/fhe-airdrop/react/useAirdropIsSignatureClaimed.d.ts +0 -22
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +0 -51
- package/dist/fhe-airdrop/react/useAirdropStartTime.d.ts +0 -10
- package/dist/fhe-airdrop/react/useAirdropWithdrawGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherConfidentialToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useAirdropWithdrawOtherToken.d.ts +0 -14
- package/dist/fhe-airdrop/react/useClaim.d.ts +0 -39
- package/dist/fhe-airdrop/react/useConfidentialAirdropFactoryImplementation.d.ts +0 -11
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +0 -41
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +0 -48
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdrop.d.ts +0 -29
- package/dist/fhe-airdrop/react/useCreateConfidentialAirdropAndGetAddress.d.ts +0 -31
- package/dist/fhe-airdrop/react/useDisableCustomFee.d.ts +0 -14
- package/dist/fhe-airdrop/react/useFactoryCustomFee.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFactoryDefaultGasFee.d.ts +0 -10
- package/dist/fhe-airdrop/react/useFactoryFeeCollector.d.ts +0 -11
- package/dist/fhe-airdrop/react/useFactoryInitCodeHash.d.ts +0 -17
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +0 -33
- package/dist/fhe-airdrop/react/useSetCustomFee.d.ts +0 -16
- package/dist/fhe-airdrop/react/useSetDefaultGasFee.d.ts +0 -15
- package/dist/fhe-airdrop/react/useSetFeeCollector.d.ts +0 -14
- package/dist/fhe-airdrop/react/useSetPaused.d.ts +0 -14
- package/dist/fhe-airdrop/react/useWithdraw.d.ts +0 -12
- package/dist/fhe-airdrop/react/useWithdrawOtherConfidentialToken.d.ts +0 -13
- package/dist/fhe-airdrop/react/useWithdrawOtherToken.d.ts +0 -13
|
@@ -1,211 +1,213 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('../chunk-
|
|
5
|
-
|
|
6
|
-
require('../chunk-
|
|
7
|
-
|
|
3
|
+
var chunkFEDX7B6T_cjs = require('../chunk-FEDX7B6T.cjs');
|
|
4
|
+
require('../chunk-UG5RKLU2.cjs');
|
|
5
|
+
require('../chunk-MVDQMV25.cjs');
|
|
6
|
+
var chunkFT5H2Q7Y_cjs = require('../chunk-FT5H2Q7Y.cjs');
|
|
7
|
+
require('../chunk-JK4XMMKM.cjs');
|
|
8
|
+
require('../chunk-66IHPTOK.cjs');
|
|
9
|
+
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
8
10
|
require('../chunk-VJKZWYYJ.cjs');
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
|
|
12
14
|
Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
|
|
13
15
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
16
|
+
get: function () { return chunkFEDX7B6T_cjs.FaucetSupplyExhaustedError; }
|
|
15
17
|
});
|
|
16
18
|
Object.defineProperty(exports, "TESTNET_FAUCET_SUPPORTED_CHAIN_IDS", {
|
|
17
19
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkFEDX7B6T_cjs.TESTNET_FAUCET_SUPPORTED_CHAIN_IDS; }
|
|
19
21
|
});
|
|
20
22
|
Object.defineProperty(exports, "TestnetFaucetClient", {
|
|
21
23
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkFEDX7B6T_cjs.TestnetFaucetClient; }
|
|
23
25
|
});
|
|
24
26
|
Object.defineProperty(exports, "assertTestnetFaucetChain", {
|
|
25
27
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkFEDX7B6T_cjs.assertTestnetFaucetChain; }
|
|
27
29
|
});
|
|
28
30
|
Object.defineProperty(exports, "confidentialTokenopsTestTokenAbi", {
|
|
29
31
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkFEDX7B6T_cjs.confidentialTokenopsTestTokenAbi; }
|
|
31
33
|
});
|
|
32
34
|
Object.defineProperty(exports, "createTestnetFaucetClient", {
|
|
33
35
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkFEDX7B6T_cjs.createTestnetFaucetClient; }
|
|
35
37
|
});
|
|
36
38
|
Object.defineProperty(exports, "isTestnetFaucetChainId", {
|
|
37
39
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkFEDX7B6T_cjs.isTestnetFaucetChainId; }
|
|
39
41
|
});
|
|
40
42
|
Object.defineProperty(exports, "tokenopsTestTokenAbi", {
|
|
41
43
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkFEDX7B6T_cjs.tokenopsTestTokenAbi; }
|
|
43
45
|
});
|
|
44
46
|
Object.defineProperty(exports, "getConfidentialTestTokenAddress", {
|
|
45
47
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
48
|
+
get: function () { return chunkFT5H2Q7Y_cjs.getConfidentialTestTokenAddress; }
|
|
47
49
|
});
|
|
48
50
|
Object.defineProperty(exports, "getTestTokenAddress", {
|
|
49
51
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkFT5H2Q7Y_cjs.getTestTokenAddress; }
|
|
51
53
|
});
|
|
52
54
|
Object.defineProperty(exports, "requireConfidentialTestTokenAddress", {
|
|
53
55
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkFT5H2Q7Y_cjs.requireConfidentialTestTokenAddress; }
|
|
55
57
|
});
|
|
56
58
|
Object.defineProperty(exports, "requireTestTokenAddress", {
|
|
57
59
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
60
|
+
get: function () { return chunkFT5H2Q7Y_cjs.requireTestTokenAddress; }
|
|
59
61
|
});
|
|
60
62
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
61
63
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
63
65
|
});
|
|
64
66
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
65
67
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
67
69
|
});
|
|
68
70
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
69
71
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
71
73
|
});
|
|
72
74
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
73
75
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
75
77
|
});
|
|
76
78
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
77
79
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
79
81
|
});
|
|
80
82
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
81
83
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
83
85
|
});
|
|
84
86
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
85
87
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
87
89
|
});
|
|
88
90
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
89
91
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
91
93
|
});
|
|
92
94
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
93
95
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
95
97
|
});
|
|
96
98
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
97
99
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
99
101
|
});
|
|
100
102
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
101
103
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
103
105
|
});
|
|
104
106
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
105
107
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
107
109
|
});
|
|
108
110
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
109
111
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
111
113
|
});
|
|
112
114
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
113
115
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
115
117
|
});
|
|
116
118
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
117
119
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
120
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
119
121
|
});
|
|
120
122
|
Object.defineProperty(exports, "MissingClientError", {
|
|
121
123
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
124
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
123
125
|
});
|
|
124
126
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
125
127
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
128
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
127
129
|
});
|
|
128
130
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
129
131
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
132
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
131
133
|
});
|
|
132
134
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
133
135
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
136
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
135
137
|
});
|
|
136
138
|
Object.defineProperty(exports, "NetworkError", {
|
|
137
139
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
140
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
139
141
|
});
|
|
140
142
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
141
143
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
144
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
143
145
|
});
|
|
144
146
|
Object.defineProperty(exports, "PausedError", {
|
|
145
147
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
148
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
147
149
|
});
|
|
148
150
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
149
151
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
152
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
151
153
|
});
|
|
152
154
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
153
155
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
156
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
155
157
|
});
|
|
156
158
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
157
159
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
160
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
159
161
|
});
|
|
160
162
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
161
163
|
enumerable: true,
|
|
162
|
-
get: function () { return
|
|
164
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
163
165
|
});
|
|
164
166
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
165
167
|
enumerable: true,
|
|
166
|
-
get: function () { return
|
|
168
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
167
169
|
});
|
|
168
170
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
169
171
|
enumerable: true,
|
|
170
|
-
get: function () { return
|
|
172
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
|
|
171
173
|
});
|
|
172
174
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
173
175
|
enumerable: true,
|
|
174
|
-
get: function () { return
|
|
176
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
175
177
|
});
|
|
176
178
|
Object.defineProperty(exports, "TokenOpsValidationError", {
|
|
177
179
|
enumerable: true,
|
|
178
|
-
get: function () { return
|
|
180
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsValidationError; }
|
|
179
181
|
});
|
|
180
182
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
181
183
|
enumerable: true,
|
|
182
|
-
get: function () { return
|
|
184
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
183
185
|
});
|
|
184
186
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
185
187
|
enumerable: true,
|
|
186
|
-
get: function () { return
|
|
188
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
187
189
|
});
|
|
188
190
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
189
191
|
enumerable: true,
|
|
190
|
-
get: function () { return
|
|
192
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
191
193
|
});
|
|
192
194
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
193
195
|
enumerable: true,
|
|
194
|
-
get: function () { return
|
|
196
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
195
197
|
});
|
|
196
198
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
197
199
|
enumerable: true,
|
|
198
|
-
get: function () { return
|
|
200
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
199
201
|
});
|
|
200
202
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
201
203
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
204
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
203
205
|
});
|
|
204
206
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
205
207
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
208
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
207
209
|
});
|
|
208
210
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
209
211
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
212
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
211
213
|
});
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { FaucetSupplyExhaustedError, TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, TestnetFaucetClient, assertTestnetFaucetChain, confidentialTokenopsTestTokenAbi, createTestnetFaucetClient, isTestnetFaucetChainId, tokenopsTestTokenAbi } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export { FaucetSupplyExhaustedError, TESTNET_FAUCET_SUPPORTED_CHAIN_IDS, TestnetFaucetClient, assertTestnetFaucetChain, confidentialTokenopsTestTokenAbi, createTestnetFaucetClient, isTestnetFaucetChainId, tokenopsTestTokenAbi } from '../chunk-SPLNGUFF.js';
|
|
2
|
+
import '../chunk-NWFMBLSQ.js';
|
|
3
|
+
import '../chunk-4RAAATVY.js';
|
|
4
|
+
export { getConfidentialTestTokenAddress, getTestTokenAddress, requireConfidentialTestTokenAddress, requireTestTokenAddress } from '../chunk-A4DCEE33.js';
|
|
5
|
+
import '../chunk-ZA673I3O.js';
|
|
6
|
+
import '../chunk-KWFFIJYX.js';
|
|
7
|
+
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TokenOpsValidationError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../chunk-QBJ7O2B4.js';
|
|
6
8
|
import '../chunk-Q2GP5UDC.js';
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkFEDX7B6T_cjs = require('../../chunk-FEDX7B6T.cjs');
|
|
4
4
|
var chunkZQUE2B3Q_cjs = require('../../chunk-ZQUE2B3Q.cjs');
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
|
|
5
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
6
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
7
|
+
var chunkFT5H2Q7Y_cjs = require('../../chunk-FT5H2Q7Y.cjs');
|
|
8
|
+
require('../../chunk-JK4XMMKM.cjs');
|
|
9
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
10
|
+
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
9
11
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
10
12
|
var reactQuery = require('@tanstack/react-query');
|
|
11
13
|
var react = require('react');
|
|
@@ -14,10 +16,10 @@ var wagmi = require('wagmi');
|
|
|
14
16
|
var TESTNET_FAUCET_KEY = "tokenops-sdk";
|
|
15
17
|
var TESTNET_FAUCET_NAMESPACE = "testnet-faucet";
|
|
16
18
|
function tryResolveSingletonAddress(override, chainId) {
|
|
17
|
-
if (chainId !== void 0 && !
|
|
19
|
+
if (chainId !== void 0 && !chunkFEDX7B6T_cjs.isTestnetFaucetChainId(chainId)) return void 0;
|
|
18
20
|
if (override) return override;
|
|
19
21
|
if (chainId === void 0) return void 0;
|
|
20
|
-
return
|
|
22
|
+
return chunkFT5H2Q7Y_cjs.getConfidentialTestTokenAddress(chainId);
|
|
21
23
|
}
|
|
22
24
|
function useMemoFaucetClient(opts = {}) {
|
|
23
25
|
const publicClient = wagmi.usePublicClient({ chainId: opts.chainId });
|
|
@@ -28,7 +30,7 @@ function useMemoFaucetClient(opts = {}) {
|
|
|
28
30
|
const client = react.useMemo(() => {
|
|
29
31
|
if (!publicClient) return void 0;
|
|
30
32
|
if (!resolvedAddress) return void 0;
|
|
31
|
-
return
|
|
33
|
+
return chunkFEDX7B6T_cjs.createTestnetFaucetClient({
|
|
32
34
|
publicClient,
|
|
33
35
|
...walletClient ? { walletClient } : {},
|
|
34
36
|
...opts.address ? { address: resolvedAddress } : {},
|
|
@@ -45,21 +47,21 @@ function useMemoFaucetClient(opts = {}) {
|
|
|
45
47
|
};
|
|
46
48
|
}
|
|
47
49
|
function computeSingletonResolutionError(override, chainId) {
|
|
48
|
-
if (chainId !== void 0 && !
|
|
49
|
-
return new
|
|
50
|
+
if (chainId !== void 0 && !chunkFEDX7B6T_cjs.isTestnetFaucetChainId(chainId)) {
|
|
51
|
+
return new chunk67OV5CX2_cjs.UnsupportedChainError(chainId);
|
|
50
52
|
}
|
|
51
53
|
if (override) return void 0;
|
|
52
54
|
if (chainId === void 0) {
|
|
53
|
-
return new
|
|
55
|
+
return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
54
56
|
reason: "chain-id-missing",
|
|
55
57
|
product: "testnetFaucet",
|
|
56
58
|
contract: "confidentialTestToken",
|
|
57
59
|
clientLabel: "TestnetFaucetClient"
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
|
-
const resolved =
|
|
62
|
+
const resolved = chunkFT5H2Q7Y_cjs.getConfidentialTestTokenAddress(chainId);
|
|
61
63
|
if (!resolved) {
|
|
62
|
-
return new
|
|
64
|
+
return new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
63
65
|
reason: "registry-not-deployed",
|
|
64
66
|
product: "testnetFaucet",
|
|
65
67
|
contract: "confidentialTestToken",
|
|
@@ -198,7 +200,7 @@ function useMintConfidential(options = {}) {
|
|
|
198
200
|
return reactQuery.useMutation({
|
|
199
201
|
mutationFn: async (args) => {
|
|
200
202
|
if (!client) {
|
|
201
|
-
throw resolutionError ?? new
|
|
203
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useMintConfidential", "testnet-faucet");
|
|
202
204
|
}
|
|
203
205
|
return client.mintConfidential(args);
|
|
204
206
|
}
|
|
@@ -209,7 +211,7 @@ function useMintUnderlying(options = {}) {
|
|
|
209
211
|
return reactQuery.useMutation({
|
|
210
212
|
mutationFn: async (args) => {
|
|
211
213
|
if (!client) {
|
|
212
|
-
throw resolutionError ?? new
|
|
214
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useMintUnderlying", "testnet-faucet");
|
|
213
215
|
}
|
|
214
216
|
return client.mintUnderlying(args);
|
|
215
217
|
}
|
|
@@ -218,155 +220,155 @@ function useMintUnderlying(options = {}) {
|
|
|
218
220
|
|
|
219
221
|
Object.defineProperty(exports, "FaucetSupplyExhaustedError", {
|
|
220
222
|
enumerable: true,
|
|
221
|
-
get: function () { return
|
|
223
|
+
get: function () { return chunkFEDX7B6T_cjs.FaucetSupplyExhaustedError; }
|
|
222
224
|
});
|
|
223
225
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
224
226
|
enumerable: true,
|
|
225
|
-
get: function () { return
|
|
227
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
226
228
|
});
|
|
227
229
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
228
230
|
enumerable: true,
|
|
229
|
-
get: function () { return
|
|
231
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
230
232
|
});
|
|
231
233
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
232
234
|
enumerable: true,
|
|
233
|
-
get: function () { return
|
|
235
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
234
236
|
});
|
|
235
237
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
236
238
|
enumerable: true,
|
|
237
|
-
get: function () { return
|
|
239
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
238
240
|
});
|
|
239
241
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
240
242
|
enumerable: true,
|
|
241
|
-
get: function () { return
|
|
243
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
242
244
|
});
|
|
243
245
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
244
246
|
enumerable: true,
|
|
245
|
-
get: function () { return
|
|
247
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
246
248
|
});
|
|
247
249
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
248
250
|
enumerable: true,
|
|
249
|
-
get: function () { return
|
|
251
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
250
252
|
});
|
|
251
253
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
252
254
|
enumerable: true,
|
|
253
|
-
get: function () { return
|
|
255
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
254
256
|
});
|
|
255
257
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
256
258
|
enumerable: true,
|
|
257
|
-
get: function () { return
|
|
259
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
258
260
|
});
|
|
259
261
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
260
262
|
enumerable: true,
|
|
261
|
-
get: function () { return
|
|
263
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
262
264
|
});
|
|
263
265
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
264
266
|
enumerable: true,
|
|
265
|
-
get: function () { return
|
|
267
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
266
268
|
});
|
|
267
269
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
268
270
|
enumerable: true,
|
|
269
|
-
get: function () { return
|
|
271
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
270
272
|
});
|
|
271
273
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
272
274
|
enumerable: true,
|
|
273
|
-
get: function () { return
|
|
275
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
274
276
|
});
|
|
275
277
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
276
278
|
enumerable: true,
|
|
277
|
-
get: function () { return
|
|
279
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
278
280
|
});
|
|
279
281
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
280
282
|
enumerable: true,
|
|
281
|
-
get: function () { return
|
|
283
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
282
284
|
});
|
|
283
285
|
Object.defineProperty(exports, "MissingClientError", {
|
|
284
286
|
enumerable: true,
|
|
285
|
-
get: function () { return
|
|
287
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
286
288
|
});
|
|
287
289
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
288
290
|
enumerable: true,
|
|
289
|
-
get: function () { return
|
|
291
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
290
292
|
});
|
|
291
293
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
292
294
|
enumerable: true,
|
|
293
|
-
get: function () { return
|
|
295
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
294
296
|
});
|
|
295
297
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
296
298
|
enumerable: true,
|
|
297
|
-
get: function () { return
|
|
299
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
298
300
|
});
|
|
299
301
|
Object.defineProperty(exports, "NetworkError", {
|
|
300
302
|
enumerable: true,
|
|
301
|
-
get: function () { return
|
|
303
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
302
304
|
});
|
|
303
305
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
304
306
|
enumerable: true,
|
|
305
|
-
get: function () { return
|
|
307
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
306
308
|
});
|
|
307
309
|
Object.defineProperty(exports, "PausedError", {
|
|
308
310
|
enumerable: true,
|
|
309
|
-
get: function () { return
|
|
311
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
310
312
|
});
|
|
311
313
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
312
314
|
enumerable: true,
|
|
313
|
-
get: function () { return
|
|
315
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
314
316
|
});
|
|
315
317
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
316
318
|
enumerable: true,
|
|
317
|
-
get: function () { return
|
|
319
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
318
320
|
});
|
|
319
321
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
320
322
|
enumerable: true,
|
|
321
|
-
get: function () { return
|
|
323
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
322
324
|
});
|
|
323
325
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
324
326
|
enumerable: true,
|
|
325
|
-
get: function () { return
|
|
327
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
326
328
|
});
|
|
327
329
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
328
330
|
enumerable: true,
|
|
329
|
-
get: function () { return
|
|
331
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
330
332
|
});
|
|
331
333
|
Object.defineProperty(exports, "TokenOpsContractError", {
|
|
332
334
|
enumerable: true,
|
|
333
|
-
get: function () { return
|
|
335
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsContractError; }
|
|
334
336
|
});
|
|
335
337
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
336
338
|
enumerable: true,
|
|
337
|
-
get: function () { return
|
|
339
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
338
340
|
});
|
|
339
341
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
340
342
|
enumerable: true,
|
|
341
|
-
get: function () { return
|
|
343
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
342
344
|
});
|
|
343
345
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
344
346
|
enumerable: true,
|
|
345
|
-
get: function () { return
|
|
347
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
346
348
|
});
|
|
347
349
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
348
350
|
enumerable: true,
|
|
349
|
-
get: function () { return
|
|
351
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
350
352
|
});
|
|
351
353
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
352
354
|
enumerable: true,
|
|
353
|
-
get: function () { return
|
|
355
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
354
356
|
});
|
|
355
357
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
356
358
|
enumerable: true,
|
|
357
|
-
get: function () { return
|
|
359
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
358
360
|
});
|
|
359
361
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
360
362
|
enumerable: true,
|
|
361
|
-
get: function () { return
|
|
363
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
362
364
|
});
|
|
363
365
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
364
366
|
enumerable: true,
|
|
365
|
-
get: function () { return
|
|
367
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
366
368
|
});
|
|
367
369
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
368
370
|
enumerable: true,
|
|
369
|
-
get: function () { return
|
|
371
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
370
372
|
});
|
|
371
373
|
exports.TESTNET_FAUCET_KEY = TESTNET_FAUCET_KEY;
|
|
372
374
|
exports.TESTNET_FAUCET_NAMESPACE = TESTNET_FAUCET_NAMESPACE;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
import { createTestnetFaucetClient, isTestnetFaucetChainId } from '../../chunk-
|
|
2
|
-
export { FaucetSupplyExhaustedError } from '../../chunk-
|
|
1
|
+
import { createTestnetFaucetClient, isTestnetFaucetChainId } from '../../chunk-SPLNGUFF.js';
|
|
2
|
+
export { FaucetSupplyExhaustedError } from '../../chunk-SPLNGUFF.js';
|
|
3
3
|
import { useWagmiAccount } from '../../chunk-FT4LNBOS.js';
|
|
4
|
-
import '../../chunk-
|
|
5
|
-
import
|
|
6
|
-
import '../../chunk-
|
|
7
|
-
import
|
|
8
|
-
|
|
4
|
+
import '../../chunk-NWFMBLSQ.js';
|
|
5
|
+
import '../../chunk-4RAAATVY.js';
|
|
6
|
+
import { getConfidentialTestTokenAddress } from '../../chunk-A4DCEE33.js';
|
|
7
|
+
import '../../chunk-ZA673I3O.js';
|
|
8
|
+
import '../../chunk-KWFFIJYX.js';
|
|
9
|
+
import { MissingClientError, UnsupportedChainError, DeploymentAddressUnavailableError } from '../../chunk-QBJ7O2B4.js';
|
|
10
|
+
export { AccessDeniedError, AlreadyInitializedError, BatchTooLargeError, ContractRevertError, DecryptionFailedError, DeploymentAddressUnavailableError, EncryptionFailedError, FeatureDisabledError, FheHandleNotAllowedError, InsufficientBalanceError, InsufficientFeeError, InsufficientGasFundsError, InvalidArgumentError, InvalidSignatureError, MissingAccountError, MissingClientError, MissingEncryptorError, MissingPublicClientError, MissingWalletClientError, NetworkError, OperatorNotApprovedError, PausedError, ReceiptEventAmbiguousError, ReceiptEventNotFoundError, ReentrancyError, RelayerUnreachableError, SigningFailedError, TokenOpsContractError, TokenOpsSdkError, TransferFailedError, UnknownWriteFailureError, UnsupportedChainError, UserDecryptNotAllowedError, UserRejectedSignatureError, WalletChainMismatchError, WalletRejectedError, isTokenOpsSdkError } from '../../chunk-QBJ7O2B4.js';
|
|
9
11
|
import '../../chunk-Q2GP5UDC.js';
|
|
10
12
|
import { useQuery, useMutation } from '@tanstack/react-query';
|
|
11
13
|
import { useMemo } from 'react';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tokenops/sdk",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"description": "Typed viem-first SDK for TokenOps FHEVM contracts (confidential vesting, confidential airdrops, confidential disperse, plus a testnet faucet for the ERC-7984 test-token pair TTT + CTTT) — consumed by tokenops-app (Next.js) and tokenops-api (Express).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -223,7 +223,8 @@
|
|
|
223
223
|
"LICENSE",
|
|
224
224
|
"CHANGELOG.md",
|
|
225
225
|
"CONTRIBUTING.md",
|
|
226
|
-
"SECURITY.md"
|
|
226
|
+
"SECURITY.md",
|
|
227
|
+
"SUPPORT.md"
|
|
227
228
|
],
|
|
228
229
|
"publishConfig": {
|
|
229
230
|
"registry": "https://registry.npmjs.org",
|
|
@@ -262,6 +263,7 @@
|
|
|
262
263
|
"build:watch": "NODE_OPTIONS=\"--max-old-space-size=4096\" tsup --watch --no-dts",
|
|
263
264
|
"clean": "rm -rf dist dist-types coverage",
|
|
264
265
|
"typecheck": "tsc --noEmit",
|
|
266
|
+
"typecheck:fast": "tsc --noEmit --incremental --tsBuildInfoFile node_modules/.cache/tokenops-typecheck.tsbuildinfo",
|
|
265
267
|
"typecheck:build": "tsc --noEmit -p tsconfig.build.json",
|
|
266
268
|
"test": "vitest run",
|
|
267
269
|
"test:watch": "vitest",
|
|
@@ -281,6 +283,7 @@
|
|
|
281
283
|
"api:update": "node scripts/api-extractor/run.mjs --local",
|
|
282
284
|
"check-dts": "node scripts/check-dts.mjs",
|
|
283
285
|
"doctor": "node scripts/doctor.mjs",
|
|
286
|
+
"setup:claude": "node scripts/setup-claude.mjs",
|
|
284
287
|
"prepare": "husky",
|
|
285
288
|
"prepublishOnly": "pnpm clean && pnpm build && pnpm typecheck && pnpm lint && pnpm test"
|
|
286
289
|
},
|
|
@@ -310,6 +313,7 @@
|
|
|
310
313
|
}
|
|
311
314
|
},
|
|
312
315
|
"dependencies": {
|
|
316
|
+
"@openzeppelin/merkle-tree": "^1.0.8",
|
|
313
317
|
"abitype": "^1.0.8"
|
|
314
318
|
},
|
|
315
319
|
"pnpm": {
|