@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,679 +1,1469 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
10
|
-
require('../../chunk-
|
|
11
|
-
require('../../chunk-
|
|
12
|
-
require('../../chunk-
|
|
13
|
-
require('../../chunk-
|
|
14
|
-
var chunk2RNW4MIJ_cjs = require('../../chunk-2RNW4MIJ.cjs');
|
|
3
|
+
var chunkIUKKNJ2R_cjs = require('../../chunk-IUKKNJ2R.cjs');
|
|
4
|
+
var chunkEBLBPUPI_cjs = require('../../chunk-EBLBPUPI.cjs');
|
|
5
|
+
var chunkPZZK3O3S_cjs = require('../../chunk-PZZK3O3S.cjs');
|
|
6
|
+
var chunkAREQJHKA_cjs = require('../../chunk-AREQJHKA.cjs');
|
|
7
|
+
require('../../chunk-FAXIIH5R.cjs');
|
|
8
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
9
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
10
|
+
require('../../chunk-FT5H2Q7Y.cjs');
|
|
11
|
+
require('../../chunk-JK4XMMKM.cjs');
|
|
12
|
+
require('../../chunk-66IHPTOK.cjs');
|
|
13
|
+
var chunk67OV5CX2_cjs = require('../../chunk-67OV5CX2.cjs');
|
|
15
14
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
16
15
|
var reactQuery = require('@tanstack/react-query');
|
|
17
|
-
var
|
|
16
|
+
var react = require('react');
|
|
18
17
|
|
|
19
|
-
function
|
|
20
|
-
const { client, chainId
|
|
18
|
+
function useAirdropToken(args) {
|
|
19
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
21
20
|
return reactQuery.useQuery({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
...args.query,
|
|
22
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
|
|
23
|
+
queryFn: () => client.token(),
|
|
24
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function useAirdropWindow(args) {
|
|
28
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
29
|
+
return reactQuery.useQuery({
|
|
30
|
+
...args.query,
|
|
31
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "window", args: [] }),
|
|
32
|
+
queryFn: async () => {
|
|
33
|
+
const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
|
|
34
|
+
client.startTime(),
|
|
35
|
+
client.endTime(),
|
|
36
|
+
client.hasClaimStarted(),
|
|
37
|
+
client.hasClaimEnded(),
|
|
38
|
+
client.isClaimWindowActive()
|
|
39
|
+
]);
|
|
40
|
+
return { startTime, endTime, hasStarted, hasEnded, isActive };
|
|
41
|
+
},
|
|
42
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function useAirdropPaused(args) {
|
|
46
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
47
|
+
return reactQuery.useQuery({
|
|
48
|
+
...args.query,
|
|
49
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "paused", args: [] }),
|
|
50
|
+
queryFn: () => client.paused(),
|
|
51
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
function useAirdropGasFee(args) {
|
|
55
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
56
|
+
return reactQuery.useQuery({
|
|
57
|
+
...args.query,
|
|
58
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "gasFee", args: [] }),
|
|
59
|
+
queryFn: () => client.gasFee(),
|
|
60
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function useAirdropHasRole(args) {
|
|
64
|
+
const { role, holder, ...base } = args;
|
|
65
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
66
|
+
return reactQuery.useQuery({
|
|
67
|
+
...args.query,
|
|
68
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
69
|
+
chainId,
|
|
70
|
+
address: args.address,
|
|
71
|
+
fn: "hasRole",
|
|
72
|
+
args: [role, holder]
|
|
73
|
+
}),
|
|
74
|
+
queryFn: () => client.hasRole({ role, holder }),
|
|
75
|
+
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
function useMerkleRoot(args) {
|
|
79
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
|
|
80
|
+
return reactQuery.useQuery({
|
|
81
|
+
...args.query,
|
|
82
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "merkleRoot", args: [] }),
|
|
83
|
+
queryFn: () => client.merkleRoot(),
|
|
84
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
function useClaimedAmount(args) {
|
|
88
|
+
const { account, ...base } = args;
|
|
89
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
90
|
+
return reactQuery.useQuery({
|
|
91
|
+
...args.query,
|
|
92
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
93
|
+
chainId,
|
|
94
|
+
address: args.address,
|
|
95
|
+
fn: "getClaimedAmount",
|
|
96
|
+
args: [account]
|
|
97
|
+
}),
|
|
98
|
+
queryFn: () => client.getClaimedAmount(account),
|
|
99
|
+
enabled: Boolean(client && account && (args.query?.enabled ?? true))
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
function useComplianceManager(args) {
|
|
103
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
104
|
+
return reactQuery.useQuery({
|
|
105
|
+
...args.query,
|
|
106
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
107
|
+
chainId,
|
|
108
|
+
address: args.address,
|
|
109
|
+
fn: "complianceManager",
|
|
110
|
+
args: []
|
|
111
|
+
}),
|
|
112
|
+
queryFn: () => client.complianceManager(),
|
|
113
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
function useFactoryFees(args = {}) {
|
|
117
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
|
|
118
|
+
return reactQuery.useQuery({
|
|
119
|
+
...args.query,
|
|
120
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
|
|
121
|
+
queryFn: async () => {
|
|
122
|
+
const [feeCollector, defaultGasFee] = await Promise.all([
|
|
123
|
+
client.feeCollector(),
|
|
124
|
+
client.defaultGasFee()
|
|
125
|
+
]);
|
|
126
|
+
return { feeCollector, defaultGasFee };
|
|
127
|
+
},
|
|
128
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
function useFactoryRegistry(args = {}) {
|
|
132
|
+
const { offset = 0n, limit = 50n, ...base } = args;
|
|
133
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
134
|
+
return reactQuery.useQuery({
|
|
135
|
+
...args.query,
|
|
136
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
137
|
+
chainId,
|
|
138
|
+
address: resolvedAddress,
|
|
139
|
+
fn: "registry",
|
|
140
|
+
args: [offset, limit]
|
|
141
|
+
}),
|
|
142
|
+
queryFn: async () => {
|
|
143
|
+
const [count, items] = await Promise.all([
|
|
144
|
+
client.airdropCount(),
|
|
145
|
+
client.airdrops(offset, limit)
|
|
146
|
+
]);
|
|
147
|
+
return { count, items };
|
|
148
|
+
},
|
|
149
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
function useEffectiveUpgradeable(args = {}) {
|
|
153
|
+
const { creator, ...base } = args;
|
|
154
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
155
|
+
return reactQuery.useQuery({
|
|
156
|
+
...args.query,
|
|
157
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
158
|
+
chainId,
|
|
159
|
+
address: resolvedAddress,
|
|
160
|
+
fn: "effectiveUpgradeable",
|
|
161
|
+
args: [creator]
|
|
162
|
+
}),
|
|
163
|
+
queryFn: () => client.effectiveUpgradeable(creator),
|
|
164
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
26
165
|
});
|
|
27
166
|
}
|
|
28
|
-
function
|
|
29
|
-
const { client, chainId
|
|
167
|
+
function useAirdropConfig(args) {
|
|
168
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
30
169
|
return reactQuery.useQuery({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
170
|
+
staleTime: Infinity,
|
|
171
|
+
...args.query,
|
|
172
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.config({ chainId, address: args.address }),
|
|
173
|
+
queryFn: async () => {
|
|
174
|
+
const [token, airdropType, unwrappable, complianceManager, gasFee] = await Promise.all([
|
|
175
|
+
client.token(),
|
|
176
|
+
client.airdropType(),
|
|
177
|
+
client.unwrappable(),
|
|
178
|
+
client.complianceManager(),
|
|
179
|
+
client.gasFee()
|
|
180
|
+
]);
|
|
181
|
+
return {
|
|
182
|
+
token,
|
|
183
|
+
airdropType,
|
|
184
|
+
variant: airdropType === 1 ? "merkle" : "ecdsa",
|
|
185
|
+
unwrappable,
|
|
186
|
+
complianceManager,
|
|
187
|
+
gasFee
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
35
191
|
});
|
|
36
192
|
}
|
|
37
|
-
function
|
|
38
|
-
const { client, chainId
|
|
193
|
+
function useAirdropDeploymentMode(args) {
|
|
194
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(args);
|
|
39
195
|
return reactQuery.useQuery({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
196
|
+
staleTime: Infinity,
|
|
197
|
+
...args.query,
|
|
198
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
199
|
+
chainId,
|
|
200
|
+
address: args.address,
|
|
201
|
+
fn: "deploymentMode",
|
|
202
|
+
args: []
|
|
203
|
+
}),
|
|
204
|
+
queryFn: () => client.deploymentMode(),
|
|
205
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
function useAirdropRoleAdmin(args) {
|
|
209
|
+
const { role, ...base } = args;
|
|
210
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
211
|
+
return reactQuery.useQuery({
|
|
212
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
213
|
+
staleTime: Infinity,
|
|
214
|
+
...args.query,
|
|
215
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
216
|
+
chainId,
|
|
217
|
+
address: args.address,
|
|
218
|
+
fn: "getRoleAdmin",
|
|
219
|
+
args: [role]
|
|
220
|
+
}),
|
|
221
|
+
queryFn: () => client.getRoleAdmin(role),
|
|
222
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
function useAirdropRoleConstants(args) {
|
|
226
|
+
const { variant, dedupMode, ...base } = args;
|
|
227
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
228
|
+
const { client: merkleClient } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
229
|
+
const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
|
|
230
|
+
...base,
|
|
231
|
+
dedupMode: dedupMode ?? "none"
|
|
232
|
+
});
|
|
233
|
+
return reactQuery.useQuery({
|
|
234
|
+
// A default, not a lock: `query.staleTime` still wins if a consumer wants refetching.
|
|
235
|
+
staleTime: Infinity,
|
|
236
|
+
...args.query,
|
|
237
|
+
// `variant` is in the key because it changes the SHAPE of the result -
|
|
238
|
+
// the merkle and ecdsa responses must not share a cache slot.
|
|
239
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
240
|
+
chainId,
|
|
241
|
+
address: args.address,
|
|
242
|
+
fn: "roleConstants",
|
|
243
|
+
args: [variant]
|
|
244
|
+
}),
|
|
245
|
+
queryFn: async () => {
|
|
246
|
+
const [
|
|
247
|
+
PAUSER_ROLE,
|
|
248
|
+
WINDOW_ADMIN_ROLE,
|
|
249
|
+
TREASURY_ROLE,
|
|
250
|
+
RESCUER_ROLE,
|
|
251
|
+
FEE_COLLECTOR_ROLE,
|
|
252
|
+
UPGRADER_ROLE,
|
|
253
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
254
|
+
DEFAULT_ADMIN_ROLE,
|
|
255
|
+
variantRole
|
|
256
|
+
] = await Promise.all([
|
|
257
|
+
client.PAUSER_ROLE(),
|
|
258
|
+
client.WINDOW_ADMIN_ROLE(),
|
|
259
|
+
client.TREASURY_ROLE(),
|
|
260
|
+
client.RESCUER_ROLE(),
|
|
261
|
+
client.FEE_COLLECTOR_ROLE(),
|
|
262
|
+
client.UPGRADER_ROLE(),
|
|
263
|
+
client.DISCLOSURE_ADMIN_ROLE(),
|
|
264
|
+
client.DEFAULT_ADMIN_ROLE(),
|
|
265
|
+
variant === "merkle" ? merkleClient.MERKLE_ADMIN_ROLE() : variant === "ecdsa" ? ecdsaClient.SIGNER_ROLE() : Promise.resolve(void 0)
|
|
266
|
+
]);
|
|
267
|
+
return {
|
|
268
|
+
PAUSER_ROLE,
|
|
269
|
+
WINDOW_ADMIN_ROLE,
|
|
270
|
+
TREASURY_ROLE,
|
|
271
|
+
RESCUER_ROLE,
|
|
272
|
+
FEE_COLLECTOR_ROLE,
|
|
273
|
+
UPGRADER_ROLE,
|
|
274
|
+
DISCLOSURE_ADMIN_ROLE,
|
|
275
|
+
DEFAULT_ADMIN_ROLE,
|
|
276
|
+
...variant === "merkle" && variantRole ? { MERKLE_ADMIN_ROLE: variantRole } : {},
|
|
277
|
+
...variant === "ecdsa" && variantRole ? { SIGNER_ROLE: variantRole } : {}
|
|
278
|
+
};
|
|
279
|
+
},
|
|
280
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
function useAirdropRoleMembers(args) {
|
|
284
|
+
const { role, ...base } = args;
|
|
285
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(base);
|
|
286
|
+
return reactQuery.useQuery({
|
|
287
|
+
...args.query,
|
|
288
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers({ chainId, address: args.address }, role),
|
|
289
|
+
queryFn: async () => {
|
|
290
|
+
const [members, count] = await Promise.all([
|
|
291
|
+
client.getRoleMembers(role),
|
|
292
|
+
client.getRoleMemberCount(role)
|
|
293
|
+
]);
|
|
294
|
+
return { members, count };
|
|
295
|
+
},
|
|
296
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
function useComplianceHasRole(args) {
|
|
300
|
+
const { role, holder, ...base } = args;
|
|
301
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
302
|
+
return reactQuery.useQuery({
|
|
303
|
+
...args.query,
|
|
304
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole({ chainId, address: args.address }, role, holder),
|
|
305
|
+
queryFn: () => client.hasRole({ role, holder }),
|
|
306
|
+
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
function useComplianceInfo(args) {
|
|
310
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
|
|
311
|
+
return reactQuery.useQuery({
|
|
312
|
+
...args.query,
|
|
313
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo({ chainId, address: args.address }),
|
|
314
|
+
queryFn: async () => {
|
|
315
|
+
const [airdrop, platformDelegate, clientDelegates] = await Promise.all([
|
|
316
|
+
client.airdrop(),
|
|
317
|
+
client.complianceDelegate(),
|
|
318
|
+
client.clientDelegates()
|
|
319
|
+
]);
|
|
320
|
+
return { airdrop, platformDelegate, clientDelegates };
|
|
321
|
+
},
|
|
322
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
44
323
|
});
|
|
45
324
|
}
|
|
46
|
-
function
|
|
325
|
+
function useComplianceManagerOf(args = {}) {
|
|
326
|
+
const { airdrop, ...base } = args;
|
|
327
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
328
|
+
return reactQuery.useQuery({
|
|
329
|
+
staleTime: Infinity,
|
|
330
|
+
...args.query,
|
|
331
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
332
|
+
chainId,
|
|
333
|
+
address: resolvedAddress,
|
|
334
|
+
fn: "complianceManagerOf",
|
|
335
|
+
args: [airdrop]
|
|
336
|
+
}),
|
|
337
|
+
queryFn: () => client.complianceManagerOf(airdrop),
|
|
338
|
+
enabled: Boolean(client && airdrop && (args.query?.enabled ?? true))
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
function useComplianceRoleConstants(args) {
|
|
342
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(args);
|
|
343
|
+
return reactQuery.useQuery({
|
|
344
|
+
// A default, not a lock: `query.staleTime` still wins.
|
|
345
|
+
staleTime: Infinity,
|
|
346
|
+
...args.query,
|
|
347
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
348
|
+
chainId,
|
|
349
|
+
address: args.address,
|
|
350
|
+
fn: "complianceRoleConstants",
|
|
351
|
+
args: []
|
|
352
|
+
}),
|
|
353
|
+
queryFn: async () => {
|
|
354
|
+
const [DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE] = await Promise.all([
|
|
355
|
+
client.DELEGATION_ADMIN_ROLE(),
|
|
356
|
+
client.DEFAULT_ADMIN_ROLE()
|
|
357
|
+
]);
|
|
358
|
+
return { DELEGATION_ADMIN_ROLE, DEFAULT_ADMIN_ROLE };
|
|
359
|
+
},
|
|
360
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
function useComplianceRoleMembers(args) {
|
|
364
|
+
const { role, ...base } = args;
|
|
365
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
366
|
+
return reactQuery.useQuery({
|
|
367
|
+
...args.query,
|
|
368
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers({ chainId, address: args.address }, role),
|
|
369
|
+
queryFn: async () => {
|
|
370
|
+
const [members, count] = await Promise.all([
|
|
371
|
+
client.getRoleMembers(role),
|
|
372
|
+
client.getRoleMemberCount(role)
|
|
373
|
+
]);
|
|
374
|
+
return { members, count };
|
|
375
|
+
},
|
|
376
|
+
enabled: Boolean(client && role && (args.query?.enabled ?? true))
|
|
377
|
+
});
|
|
378
|
+
}
|
|
379
|
+
function useEcdsaDomain(args) {
|
|
380
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(args);
|
|
381
|
+
return reactQuery.useQuery({
|
|
382
|
+
staleTime: Infinity,
|
|
383
|
+
...args.query,
|
|
384
|
+
// `dedupMode` is a client-construction concern only; it moves no value
|
|
385
|
+
// read here, so it stays out of the key.
|
|
386
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: args.address, fn: "ecdsaDomain", args: [] }),
|
|
387
|
+
queryFn: async () => {
|
|
388
|
+
const [claimTypehash, domainSeparator, domain] = await Promise.all([
|
|
389
|
+
client.claimTypehash(),
|
|
390
|
+
client.domainSeparator(),
|
|
391
|
+
client.eip712Domain()
|
|
392
|
+
]);
|
|
393
|
+
return { claimTypehash, domainSeparator, domain };
|
|
394
|
+
},
|
|
395
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
function useEffectiveDelegateToCompliance(args = {}) {
|
|
47
399
|
const { creator, ...base } = args;
|
|
48
|
-
const { client, chainId, resolvedAddress } =
|
|
400
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(base);
|
|
49
401
|
return reactQuery.useQuery({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
402
|
+
...args.query,
|
|
403
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
404
|
+
chainId,
|
|
405
|
+
address: resolvedAddress,
|
|
406
|
+
fn: "effectiveDelegateToCompliance",
|
|
407
|
+
args: [creator]
|
|
408
|
+
}),
|
|
409
|
+
queryFn: () => client.effectiveDelegateToCompliance(creator),
|
|
410
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
54
411
|
});
|
|
55
412
|
}
|
|
56
|
-
function
|
|
57
|
-
const {
|
|
58
|
-
const { client, chainId
|
|
413
|
+
function useIsActiveDelegate(args) {
|
|
414
|
+
const { delegate, ...base } = args;
|
|
415
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(base);
|
|
59
416
|
return reactQuery.useQuery({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
417
|
+
...args.query,
|
|
418
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate({ chainId, address: args.address }, delegate),
|
|
419
|
+
queryFn: () => client.isActiveDelegate(delegate),
|
|
420
|
+
enabled: Boolean(client && delegate && (args.query?.enabled ?? true))
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
function useIsMerkleRootMutable(args) {
|
|
424
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(args);
|
|
425
|
+
return reactQuery.useQuery({
|
|
426
|
+
// Before the spread so a consumer can still opt into refetching.
|
|
427
|
+
staleTime: Infinity,
|
|
428
|
+
...args.query,
|
|
429
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRootMutable({ chainId, address: args.address }),
|
|
430
|
+
queryFn: () => client.isMerkleRootMutable(),
|
|
431
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
function useIsSignatureValid(args) {
|
|
435
|
+
const { recipient, encryptedAmountHandle, dedupId, deadline, signer, signature, ...base } = args;
|
|
436
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(base);
|
|
437
|
+
return reactQuery.useQuery({
|
|
438
|
+
...args.query,
|
|
439
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
440
|
+
chainId,
|
|
441
|
+
address: args.address,
|
|
442
|
+
fn: chunkEBLBPUPI_cjs.AIRDROP_FN.isSignatureValid,
|
|
443
|
+
args: [recipient, encryptedAmountHandle, dedupId, deadline, signer, signature]
|
|
444
|
+
}),
|
|
445
|
+
queryFn: () => client.isSignatureValid({
|
|
446
|
+
recipient,
|
|
447
|
+
encryptedAmountHandle,
|
|
448
|
+
dedupId,
|
|
449
|
+
deadline,
|
|
450
|
+
signer,
|
|
451
|
+
signature
|
|
452
|
+
}),
|
|
453
|
+
enabled: Boolean(
|
|
454
|
+
client && recipient && encryptedAmountHandle && dedupId && deadline !== void 0 && signer && signature && (args.query?.enabled ?? true)
|
|
455
|
+
)
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
function usePreflightClaim(args) {
|
|
459
|
+
const { variant, dedupMode, claimant, account, to, entrypoint, signature, ...base } = args;
|
|
460
|
+
const { client: merkleClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(base);
|
|
461
|
+
const { client: ecdsaClient } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient({
|
|
462
|
+
...base,
|
|
463
|
+
dedupMode: dedupMode ?? "none"
|
|
464
|
+
});
|
|
465
|
+
const client = variant === "ecdsa" ? ecdsaClient : merkleClient;
|
|
466
|
+
return reactQuery.useQuery({
|
|
467
|
+
...args.query,
|
|
468
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
469
|
+
chainId,
|
|
470
|
+
address: args.address,
|
|
471
|
+
fn: "preflightClaim",
|
|
472
|
+
args: [variant, claimant, account, to, entrypoint, signature]
|
|
473
|
+
}),
|
|
474
|
+
queryFn: () => chunkAREQJHKA_cjs.preflightClaim({
|
|
475
|
+
airdrop: client,
|
|
476
|
+
claimant,
|
|
477
|
+
account,
|
|
478
|
+
to,
|
|
479
|
+
entrypoint,
|
|
480
|
+
signature
|
|
481
|
+
}),
|
|
482
|
+
enabled: Boolean(client && claimant && (args.query?.enabled ?? true))
|
|
64
483
|
});
|
|
65
484
|
}
|
|
66
485
|
function usePreflightCreateAirdrop(args = {}) {
|
|
67
|
-
const {
|
|
68
|
-
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
|
|
486
|
+
const { client, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(args);
|
|
69
487
|
return reactQuery.useQuery({
|
|
70
|
-
|
|
71
|
-
|
|
488
|
+
...args.query,
|
|
489
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
72
490
|
chainId,
|
|
73
|
-
resolvedAddress,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
491
|
+
address: resolvedAddress,
|
|
492
|
+
fn: chunkEBLBPUPI_cjs.AIRDROP_FN.preflightCreate,
|
|
493
|
+
args: [
|
|
494
|
+
args.variant,
|
|
495
|
+
args.mode,
|
|
496
|
+
args.creator,
|
|
497
|
+
args.userSalt,
|
|
498
|
+
args.expectedInitCodeHash,
|
|
499
|
+
// `params` IS key-affecting here, unlike in the predict hooks: the
|
|
500
|
+
// stock-wrapper probe reads `common.token` / `common.unwrappable`.
|
|
501
|
+
args.params
|
|
502
|
+
]
|
|
84
503
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
504
|
+
queryFn: () => {
|
|
505
|
+
const common = {
|
|
506
|
+
factory: client,
|
|
507
|
+
mode: args.mode,
|
|
508
|
+
creator: args.creator,
|
|
509
|
+
userSalt: args.userSalt,
|
|
510
|
+
expectedInitCodeHash: args.expectedInitCodeHash
|
|
511
|
+
};
|
|
512
|
+
return args.variant === "merkle" ? chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "merkle", params: args.params }) : chunkAREQJHKA_cjs.preflightCreate({ ...common, variant: "ecdsa", params: args.params });
|
|
513
|
+
},
|
|
514
|
+
enabled: Boolean(
|
|
515
|
+
client && args.variant && args.params && args.mode && args.creator && args.userSalt && (args.query?.enabled ?? true)
|
|
516
|
+
)
|
|
87
517
|
});
|
|
88
518
|
}
|
|
89
|
-
function
|
|
90
|
-
const { client, resolutionError } =
|
|
519
|
+
function useCreateEcdsaAirdrop(options = {}) {
|
|
520
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
521
|
+
const queryClient = reactQuery.useQueryClient();
|
|
91
522
|
return reactQuery.useMutation({
|
|
92
523
|
mutationFn: async (args) => {
|
|
93
524
|
if (!client) {
|
|
94
|
-
throw resolutionError ?? new
|
|
525
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateEcdsaAirdrop", "factory");
|
|
95
526
|
}
|
|
96
|
-
return client.
|
|
527
|
+
return client.createEcdsaAirdrop(args);
|
|
528
|
+
},
|
|
529
|
+
onSuccess: () => {
|
|
530
|
+
void queryClient.invalidateQueries({
|
|
531
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
532
|
+
});
|
|
97
533
|
}
|
|
98
534
|
});
|
|
99
535
|
}
|
|
100
|
-
function
|
|
101
|
-
const { client, resolutionError } =
|
|
536
|
+
function useCreateMerkleAirdrop(options = {}) {
|
|
537
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
538
|
+
const queryClient = reactQuery.useQueryClient();
|
|
102
539
|
return reactQuery.useMutation({
|
|
103
540
|
mutationFn: async (args) => {
|
|
104
541
|
if (!client) {
|
|
105
|
-
throw resolutionError ?? new
|
|
542
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateMerkleAirdrop", "factory");
|
|
106
543
|
}
|
|
107
|
-
return client.
|
|
544
|
+
return client.createMerkleAirdrop(args);
|
|
545
|
+
},
|
|
546
|
+
onSuccess: () => {
|
|
547
|
+
void queryClient.invalidateQueries({
|
|
548
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
549
|
+
});
|
|
108
550
|
}
|
|
109
551
|
});
|
|
110
552
|
}
|
|
111
|
-
function
|
|
112
|
-
const { client, resolutionError } =
|
|
553
|
+
function useFundAirdrop(options = {}) {
|
|
554
|
+
const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
113
555
|
return reactQuery.useMutation({
|
|
114
556
|
mutationFn: async (args) => {
|
|
115
557
|
if (!client) {
|
|
116
|
-
throw resolutionError ?? new
|
|
558
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useFundAirdrop", "factory");
|
|
117
559
|
}
|
|
118
|
-
return client.
|
|
560
|
+
return client.fundAirdrop(args);
|
|
119
561
|
}
|
|
120
562
|
});
|
|
121
563
|
}
|
|
122
|
-
function
|
|
123
|
-
const { client,
|
|
564
|
+
function useEcdsaClaim(options) {
|
|
565
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
566
|
+
const queryClient = reactQuery.useQueryClient();
|
|
124
567
|
return reactQuery.useMutation({
|
|
125
568
|
mutationFn: async (args) => {
|
|
126
569
|
if (!client) {
|
|
127
|
-
throw
|
|
570
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
|
|
128
571
|
}
|
|
129
|
-
return client.
|
|
572
|
+
return client.claim(args);
|
|
573
|
+
},
|
|
574
|
+
onSuccess: () => {
|
|
575
|
+
void queryClient.invalidateQueries({
|
|
576
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
577
|
+
});
|
|
130
578
|
}
|
|
131
579
|
});
|
|
132
580
|
}
|
|
133
|
-
function
|
|
134
|
-
const { client,
|
|
581
|
+
function useMerkleClaim(options) {
|
|
582
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
583
|
+
const queryClient = reactQuery.useQueryClient();
|
|
135
584
|
return reactQuery.useMutation({
|
|
136
585
|
mutationFn: async (args) => {
|
|
137
586
|
if (!client) {
|
|
138
|
-
throw
|
|
587
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaim", "merkle-airdrop");
|
|
139
588
|
}
|
|
140
|
-
return client.
|
|
589
|
+
return client.claim(args);
|
|
590
|
+
},
|
|
591
|
+
onMutate: (variables) => ({ account: variables.entry.account }),
|
|
592
|
+
onSuccess: (_hash, _variables, context) => {
|
|
593
|
+
if (!context?.account) return;
|
|
594
|
+
void queryClient.invalidateQueries({
|
|
595
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
596
|
+
chainId,
|
|
597
|
+
address: options.address,
|
|
598
|
+
fn: "getClaimedAmount",
|
|
599
|
+
args: [context.account]
|
|
600
|
+
})
|
|
601
|
+
});
|
|
141
602
|
}
|
|
142
603
|
});
|
|
143
604
|
}
|
|
144
|
-
function
|
|
145
|
-
const { client,
|
|
605
|
+
function useSetMerkleRoot(options) {
|
|
606
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
607
|
+
const queryClient = reactQuery.useQueryClient();
|
|
146
608
|
return reactQuery.useMutation({
|
|
147
|
-
mutationFn: async (
|
|
148
|
-
if (!client)
|
|
149
|
-
|
|
609
|
+
mutationFn: async (args) => {
|
|
610
|
+
if (!client) {
|
|
611
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useSetMerkleRoot", "merkle-airdrop");
|
|
612
|
+
}
|
|
613
|
+
return client.setMerkleRoot(args);
|
|
614
|
+
},
|
|
615
|
+
onSuccess: () => {
|
|
616
|
+
void queryClient.invalidateQueries({
|
|
617
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({
|
|
618
|
+
chainId,
|
|
619
|
+
address: options.address,
|
|
620
|
+
fn: "merkleRoot",
|
|
621
|
+
args: []
|
|
622
|
+
})
|
|
623
|
+
});
|
|
150
624
|
}
|
|
151
625
|
});
|
|
152
626
|
}
|
|
153
|
-
function
|
|
154
|
-
const { client,
|
|
627
|
+
function useGrantInstanceRoles(options) {
|
|
628
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
629
|
+
const queryClient = reactQuery.useQueryClient();
|
|
155
630
|
return reactQuery.useMutation({
|
|
156
|
-
mutationFn: async (
|
|
157
|
-
if (!client)
|
|
158
|
-
throw
|
|
159
|
-
|
|
631
|
+
mutationFn: async (args) => {
|
|
632
|
+
if (!client) {
|
|
633
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
|
|
634
|
+
}
|
|
635
|
+
return chunkIUKKNJ2R_cjs.grantInstanceRoles({
|
|
636
|
+
airdrop: client,
|
|
637
|
+
assignment: args.assignment,
|
|
638
|
+
...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
|
|
639
|
+
});
|
|
640
|
+
},
|
|
641
|
+
onSuccess: () => {
|
|
642
|
+
const scope = { chainId, address: options.address };
|
|
643
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
|
|
644
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembersAll(scope) });
|
|
160
645
|
}
|
|
161
646
|
});
|
|
162
647
|
}
|
|
163
|
-
function
|
|
164
|
-
const { client,
|
|
648
|
+
function useAirdropPause(options) {
|
|
649
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
650
|
+
const queryClient = reactQuery.useQueryClient();
|
|
165
651
|
return reactQuery.useMutation({
|
|
166
|
-
mutationFn: async ({
|
|
167
|
-
if (!client)
|
|
168
|
-
|
|
652
|
+
mutationFn: async ({ paused, ...rest }) => {
|
|
653
|
+
if (!client) {
|
|
654
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropPause", "airdrop-base");
|
|
655
|
+
}
|
|
656
|
+
return paused ? client.pause(rest) : client.unpause(rest);
|
|
657
|
+
},
|
|
658
|
+
onSuccess: () => {
|
|
659
|
+
void queryClient.invalidateQueries({
|
|
660
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
|
|
661
|
+
});
|
|
662
|
+
void queryClient.invalidateQueries({
|
|
663
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
664
|
+
});
|
|
169
665
|
}
|
|
170
666
|
});
|
|
171
667
|
}
|
|
172
|
-
function
|
|
173
|
-
const { client,
|
|
668
|
+
function useExtendClaimWindow(options) {
|
|
669
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
670
|
+
const queryClient = reactQuery.useQueryClient();
|
|
174
671
|
return reactQuery.useMutation({
|
|
175
|
-
mutationFn: async (
|
|
176
|
-
if (!client)
|
|
177
|
-
throw
|
|
178
|
-
|
|
672
|
+
mutationFn: async (args) => {
|
|
673
|
+
if (!client) {
|
|
674
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useExtendClaimWindow", "airdrop-base");
|
|
675
|
+
}
|
|
676
|
+
return client.extendClaimWindow(args);
|
|
677
|
+
},
|
|
678
|
+
onSuccess: () => {
|
|
679
|
+
void queryClient.invalidateQueries({
|
|
680
|
+
queryKey: chunkEBLBPUPI_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
681
|
+
});
|
|
179
682
|
}
|
|
180
683
|
});
|
|
181
684
|
}
|
|
182
|
-
function
|
|
183
|
-
const { client
|
|
184
|
-
return reactQuery.
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
685
|
+
function useWithdrawConfidential(options) {
|
|
686
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
687
|
+
return reactQuery.useMutation({
|
|
688
|
+
mutationFn: async (args) => {
|
|
689
|
+
if (!client) {
|
|
690
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawConfidential", "airdrop-base");
|
|
691
|
+
}
|
|
692
|
+
return client.withdrawConfidential(args);
|
|
693
|
+
}
|
|
189
694
|
});
|
|
190
695
|
}
|
|
191
|
-
function
|
|
192
|
-
const { client, chainId } =
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
696
|
+
function useAddComplianceDelegate(options) {
|
|
697
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
698
|
+
const queryClient = reactQuery.useQueryClient();
|
|
699
|
+
return reactQuery.useMutation({
|
|
700
|
+
mutationFn: async (args) => {
|
|
701
|
+
if (!client) {
|
|
702
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAddComplianceDelegate", "compliance-manager");
|
|
703
|
+
}
|
|
704
|
+
return client.addDelegate(args);
|
|
705
|
+
},
|
|
706
|
+
onSuccess: (_hash, variables) => {
|
|
707
|
+
const scope = { chainId, address: options.address };
|
|
708
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
|
|
709
|
+
void queryClient.invalidateQueries({
|
|
710
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
711
|
+
});
|
|
712
|
+
}
|
|
198
713
|
});
|
|
199
714
|
}
|
|
200
|
-
function
|
|
201
|
-
const { client, chainId } =
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
715
|
+
function useAirdropGrantRole(options) {
|
|
716
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
717
|
+
const queryClient = reactQuery.useQueryClient();
|
|
718
|
+
return reactQuery.useMutation({
|
|
719
|
+
mutationFn: async (args) => {
|
|
720
|
+
if (!client) {
|
|
721
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropGrantRole", "airdrop-base");
|
|
722
|
+
}
|
|
723
|
+
return client.grantRole(args);
|
|
724
|
+
},
|
|
725
|
+
onSuccess: (_hash, variables) => {
|
|
726
|
+
const scope = { chainId, address: options.address };
|
|
727
|
+
void queryClient.invalidateQueries({
|
|
728
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
729
|
+
});
|
|
730
|
+
void queryClient.invalidateQueries({
|
|
731
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
732
|
+
});
|
|
733
|
+
}
|
|
207
734
|
});
|
|
208
735
|
}
|
|
209
|
-
function
|
|
210
|
-
const { client, chainId } =
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
736
|
+
function useAirdropRenounceRole(options) {
|
|
737
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
738
|
+
const queryClient = reactQuery.useQueryClient();
|
|
739
|
+
return reactQuery.useMutation({
|
|
740
|
+
mutationFn: async (args) => {
|
|
741
|
+
if (!client) {
|
|
742
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRenounceRole", "airdrop-base");
|
|
743
|
+
}
|
|
744
|
+
return client.renounceRole(args);
|
|
745
|
+
},
|
|
746
|
+
onSuccess: (_hash, variables) => {
|
|
747
|
+
const scope = { chainId, address: options.address };
|
|
748
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRoleAll(scope) });
|
|
749
|
+
void queryClient.invalidateQueries({
|
|
750
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
751
|
+
});
|
|
752
|
+
}
|
|
216
753
|
});
|
|
217
754
|
}
|
|
218
|
-
function
|
|
219
|
-
const { client, chainId } =
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
755
|
+
function useAirdropRevokeRole(options) {
|
|
756
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
757
|
+
const queryClient = reactQuery.useQueryClient();
|
|
758
|
+
return reactQuery.useMutation({
|
|
759
|
+
mutationFn: async (args) => {
|
|
760
|
+
if (!client) {
|
|
761
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropRevokeRole", "airdrop-base");
|
|
762
|
+
}
|
|
763
|
+
return client.revokeRole(args);
|
|
764
|
+
},
|
|
765
|
+
onSuccess: (_hash, variables) => {
|
|
766
|
+
const scope = { chainId, address: options.address };
|
|
767
|
+
void queryClient.invalidateQueries({
|
|
768
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.hasRole(scope, variables.role, variables.holder)
|
|
769
|
+
});
|
|
770
|
+
void queryClient.invalidateQueries({
|
|
771
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.roleMembers(scope, variables.role)
|
|
772
|
+
});
|
|
773
|
+
}
|
|
225
774
|
});
|
|
226
775
|
}
|
|
227
|
-
function
|
|
228
|
-
const { client
|
|
229
|
-
return reactQuery.
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
776
|
+
function useAirdropUpgradeToAndCall(options) {
|
|
777
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
778
|
+
return reactQuery.useMutation({
|
|
779
|
+
mutationFn: async (args) => {
|
|
780
|
+
if (!client) {
|
|
781
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropUpgradeToAndCall", "airdrop-base");
|
|
782
|
+
}
|
|
783
|
+
return client.upgradeToAndCall(args);
|
|
784
|
+
}
|
|
234
785
|
});
|
|
235
786
|
}
|
|
236
|
-
function
|
|
237
|
-
const { client
|
|
238
|
-
return reactQuery.
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
787
|
+
function useBatchDiscloseHandlesToParty(options) {
|
|
788
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
789
|
+
return reactQuery.useMutation({
|
|
790
|
+
mutationFn: async (args) => {
|
|
791
|
+
if (!client) {
|
|
792
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useBatchDiscloseHandlesToParty", "airdrop-base");
|
|
793
|
+
}
|
|
794
|
+
return client.batchDiscloseHandlesToParty(args);
|
|
795
|
+
}
|
|
243
796
|
});
|
|
244
797
|
}
|
|
245
|
-
function
|
|
246
|
-
const
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
798
|
+
function useBuildMerkleCampaign(options = {}) {
|
|
799
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
800
|
+
encryptorSourceRef.current = options.encryptor;
|
|
801
|
+
return reactQuery.useMutation({
|
|
802
|
+
mutationFn: async (args) => chunkIUKKNJ2R_cjs.buildMerkleCampaign({
|
|
803
|
+
instance: args.instance,
|
|
804
|
+
recipients: args.recipients,
|
|
805
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
806
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
807
|
+
})
|
|
252
808
|
});
|
|
253
809
|
}
|
|
254
|
-
function
|
|
255
|
-
const { client, chainId } =
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
810
|
+
function useComplianceGrantRole(options) {
|
|
811
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
812
|
+
const queryClient = reactQuery.useQueryClient();
|
|
813
|
+
return reactQuery.useMutation({
|
|
814
|
+
mutationFn: async (args) => {
|
|
815
|
+
if (!client) {
|
|
816
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceGrantRole", "compliance-manager");
|
|
817
|
+
}
|
|
818
|
+
return client.grantRole(args);
|
|
819
|
+
},
|
|
820
|
+
onSuccess: (_hash, variables) => {
|
|
821
|
+
const scope = { chainId, address: options.address };
|
|
822
|
+
void queryClient.invalidateQueries({
|
|
823
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
824
|
+
});
|
|
825
|
+
void queryClient.invalidateQueries({
|
|
826
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
827
|
+
});
|
|
828
|
+
}
|
|
261
829
|
});
|
|
262
830
|
}
|
|
263
|
-
function
|
|
264
|
-
const { client, chainId } =
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
831
|
+
function useComplianceRenounceRole(options) {
|
|
832
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
833
|
+
const queryClient = reactQuery.useQueryClient();
|
|
834
|
+
return reactQuery.useMutation({
|
|
835
|
+
mutationFn: async (args) => {
|
|
836
|
+
if (!client) {
|
|
837
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRenounceRole", "compliance-manager");
|
|
838
|
+
}
|
|
839
|
+
return client.renounceRole(args);
|
|
840
|
+
},
|
|
841
|
+
onSuccess: (_hash, variables) => {
|
|
842
|
+
const scope = { chainId, address: options.address };
|
|
843
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRoleAll(scope) });
|
|
844
|
+
void queryClient.invalidateQueries({
|
|
845
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
846
|
+
});
|
|
847
|
+
}
|
|
270
848
|
});
|
|
271
849
|
}
|
|
272
|
-
function
|
|
273
|
-
const { client, chainId } =
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
850
|
+
function useComplianceRevokeRole(options) {
|
|
851
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
852
|
+
const queryClient = reactQuery.useQueryClient();
|
|
853
|
+
return reactQuery.useMutation({
|
|
854
|
+
mutationFn: async (args) => {
|
|
855
|
+
if (!client) {
|
|
856
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useComplianceRevokeRole", "compliance-manager");
|
|
857
|
+
}
|
|
858
|
+
return client.revokeRole(args);
|
|
859
|
+
},
|
|
860
|
+
onSuccess: (_hash, variables) => {
|
|
861
|
+
const scope = { chainId, address: options.address };
|
|
862
|
+
void queryClient.invalidateQueries({
|
|
863
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceHasRole(scope, variables.role, variables.holder)
|
|
864
|
+
});
|
|
865
|
+
void queryClient.invalidateQueries({
|
|
866
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceRoleMembers(scope, variables.role)
|
|
867
|
+
});
|
|
868
|
+
}
|
|
279
869
|
});
|
|
280
870
|
}
|
|
281
|
-
function
|
|
282
|
-
const { client, chainId } =
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
871
|
+
function useCreateAndFundEcdsaAirdrop(options = {}) {
|
|
872
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
873
|
+
const queryClient = reactQuery.useQueryClient();
|
|
874
|
+
return reactQuery.useMutation({
|
|
875
|
+
mutationFn: async (args) => {
|
|
876
|
+
if (!client) {
|
|
877
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundEcdsaAirdrop", "factory");
|
|
878
|
+
}
|
|
879
|
+
return client.createAndFundEcdsaAirdrop(args);
|
|
880
|
+
},
|
|
881
|
+
onSuccess: () => {
|
|
882
|
+
void queryClient.invalidateQueries({
|
|
883
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
884
|
+
});
|
|
885
|
+
}
|
|
288
886
|
});
|
|
289
887
|
}
|
|
290
|
-
function
|
|
291
|
-
const {
|
|
292
|
-
const
|
|
293
|
-
return reactQuery.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
888
|
+
function useCreateAndFundMerkleAirdrop(options = {}) {
|
|
889
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
890
|
+
const queryClient = reactQuery.useQueryClient();
|
|
891
|
+
return reactQuery.useMutation({
|
|
892
|
+
mutationFn: async (args) => {
|
|
893
|
+
if (!client) {
|
|
894
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateAndFundMerkleAirdrop", "factory");
|
|
895
|
+
}
|
|
896
|
+
return client.createAndFundMerkleAirdrop(args);
|
|
897
|
+
},
|
|
898
|
+
onSuccess: () => {
|
|
899
|
+
void queryClient.invalidateQueries({
|
|
900
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.registryAll({ chainId, address: resolvedAddress })
|
|
901
|
+
});
|
|
902
|
+
}
|
|
298
903
|
});
|
|
299
904
|
}
|
|
300
|
-
function
|
|
301
|
-
const {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
encryptedAmountHandle
|
|
310
|
-
),
|
|
311
|
-
queryFn: () => client.isSignatureClaimed(user, encryptedAmountHandle),
|
|
312
|
-
enabled: !!client && !!user && !!encryptedAmountHandle,
|
|
313
|
-
staleTime: 0
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
function useAirdropIsSignatureValid(args) {
|
|
317
|
-
const { encryptedAmountHandle, signature, caller, ...base } = args;
|
|
318
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
319
|
-
const { address: connectedAddress } = chunkZQUE2B3Q_cjs.useWagmiAccount();
|
|
320
|
-
const resolvedCaller = caller ?? connectedAddress;
|
|
321
|
-
return reactQuery.useQuery({
|
|
322
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey(
|
|
323
|
-
"airdrop:isSignatureValid",
|
|
324
|
-
chainId,
|
|
325
|
-
base.address,
|
|
326
|
-
encryptedAmountHandle,
|
|
327
|
-
signature,
|
|
328
|
-
resolvedCaller
|
|
329
|
-
),
|
|
330
|
-
queryFn: () => client.isSignatureValid({
|
|
331
|
-
encryptedAmountHandle,
|
|
332
|
-
signature,
|
|
333
|
-
caller: resolvedCaller
|
|
334
|
-
}),
|
|
335
|
-
enabled: !!client && !!encryptedAmountHandle && !!signature && !!resolvedCaller,
|
|
336
|
-
staleTime: 0
|
|
905
|
+
function useDiscloseHandleToParty(options) {
|
|
906
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
907
|
+
return reactQuery.useMutation({
|
|
908
|
+
mutationFn: async (args) => {
|
|
909
|
+
if (!client) {
|
|
910
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useDiscloseHandleToParty", "airdrop-base");
|
|
911
|
+
}
|
|
912
|
+
return client.discloseHandleToParty(args);
|
|
913
|
+
}
|
|
337
914
|
});
|
|
338
915
|
}
|
|
339
|
-
function
|
|
340
|
-
const {
|
|
341
|
-
const
|
|
342
|
-
return reactQuery.
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
916
|
+
function useEcdsaClaimAndUnwrap(options) {
|
|
917
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
918
|
+
const queryClient = reactQuery.useQueryClient();
|
|
919
|
+
return reactQuery.useMutation({
|
|
920
|
+
mutationFn: async (args) => {
|
|
921
|
+
if (!client) {
|
|
922
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaimAndUnwrap", "ecdsa-airdrop");
|
|
923
|
+
}
|
|
924
|
+
return client.claimAndUnwrap(args);
|
|
925
|
+
},
|
|
926
|
+
onSuccess: () => {
|
|
927
|
+
void queryClient.invalidateQueries({
|
|
928
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.isSignatureValidAll({ chainId, address: options.address })
|
|
929
|
+
});
|
|
930
|
+
}
|
|
347
931
|
});
|
|
348
932
|
}
|
|
349
|
-
function
|
|
350
|
-
const
|
|
933
|
+
function useEncryptCampaignAmounts(options = {}) {
|
|
934
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
935
|
+
encryptorSourceRef.current = options.encryptor;
|
|
936
|
+
return reactQuery.useMutation({
|
|
937
|
+
mutationFn: async (args) => chunkIUKKNJ2R_cjs.encryptCampaignAmounts({
|
|
938
|
+
instance: args.instance,
|
|
939
|
+
recipients: args.recipients,
|
|
940
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
941
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {}
|
|
942
|
+
})
|
|
943
|
+
});
|
|
944
|
+
}
|
|
945
|
+
function useMerkleClaimAndUnwrap(options) {
|
|
946
|
+
const { client, walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
947
|
+
const queryClient = reactQuery.useQueryClient();
|
|
351
948
|
return reactQuery.useMutation({
|
|
352
949
|
mutationFn: async (args) => {
|
|
353
|
-
if (!client)
|
|
354
|
-
|
|
950
|
+
if (!client) {
|
|
951
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaimAndUnwrap", "merkle-airdrop");
|
|
952
|
+
}
|
|
953
|
+
return client.claimAndUnwrap(args);
|
|
954
|
+
},
|
|
955
|
+
// Resolved here rather than in `onSuccess`: a mutation outlives several
|
|
956
|
+
// re-renders of its own component and `useWalletClient().data` can read back
|
|
957
|
+
// transiently empty across them, which would silently skip the invalidation.
|
|
958
|
+
onMutate: (variables) => {
|
|
959
|
+
const account = variables.account ?? walletClient?.account;
|
|
960
|
+
if (!account) return {};
|
|
961
|
+
return { sender: typeof account === "string" ? account : account.address };
|
|
962
|
+
},
|
|
963
|
+
onSuccess: (_hash, _variables, context) => {
|
|
964
|
+
if (!context?.sender) return;
|
|
965
|
+
void queryClient.invalidateQueries({
|
|
966
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.claimedAmount({ chainId, address: options.address }, context.sender)
|
|
967
|
+
});
|
|
355
968
|
}
|
|
356
969
|
});
|
|
357
970
|
}
|
|
358
|
-
function
|
|
359
|
-
const { client } =
|
|
971
|
+
function usePlanMerkleCampaign(options = {}) {
|
|
972
|
+
const { client, resolutionError } = chunkEBLBPUPI_cjs.useMemoAirdropFactoryClient(options);
|
|
973
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
974
|
+
encryptorSourceRef.current = options.encryptor;
|
|
360
975
|
return reactQuery.useMutation({
|
|
361
976
|
mutationFn: async (args) => {
|
|
362
|
-
if (!client)
|
|
363
|
-
|
|
977
|
+
if (!client) {
|
|
978
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("usePlanMerkleCampaign", "factory");
|
|
979
|
+
}
|
|
980
|
+
return chunkIUKKNJ2R_cjs.planMerkleCampaign({
|
|
981
|
+
factory: client,
|
|
982
|
+
...args,
|
|
983
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current)
|
|
984
|
+
});
|
|
364
985
|
}
|
|
365
986
|
});
|
|
366
987
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
988
|
+
function useRescueERC20(options) {
|
|
989
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
370
990
|
return reactQuery.useMutation({
|
|
371
|
-
mutationFn: async (
|
|
372
|
-
if (!client)
|
|
373
|
-
|
|
991
|
+
mutationFn: async (args) => {
|
|
992
|
+
if (!client) {
|
|
993
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueERC20", "airdrop-base");
|
|
994
|
+
}
|
|
995
|
+
return client.rescueERC20(args);
|
|
374
996
|
}
|
|
375
997
|
});
|
|
376
998
|
}
|
|
377
|
-
function
|
|
378
|
-
const { client } =
|
|
999
|
+
function useRescueOtherConfidentialToken(options) {
|
|
1000
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
379
1001
|
return reactQuery.useMutation({
|
|
380
|
-
mutationFn: async (
|
|
381
|
-
if (!client)
|
|
382
|
-
|
|
1002
|
+
mutationFn: async (args) => {
|
|
1003
|
+
if (!client) {
|
|
1004
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRescueOtherConfidentialToken", "airdrop-base");
|
|
1005
|
+
}
|
|
1006
|
+
return client.rescueOtherConfidentialToken(args);
|
|
383
1007
|
}
|
|
384
1008
|
});
|
|
385
1009
|
}
|
|
386
|
-
function
|
|
387
|
-
const { client } =
|
|
1010
|
+
function useRevokeComplianceDelegate(options) {
|
|
1011
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoComplianceManagerClient(options);
|
|
1012
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1013
|
+
return reactQuery.useMutation({
|
|
1014
|
+
mutationFn: async (args) => {
|
|
1015
|
+
if (!client) {
|
|
1016
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRevokeComplianceDelegate", "compliance-manager");
|
|
1017
|
+
}
|
|
1018
|
+
return client.revokeDelegate(args);
|
|
1019
|
+
},
|
|
1020
|
+
onSuccess: (_hash, variables) => {
|
|
1021
|
+
const scope = { chainId, address: options.address };
|
|
1022
|
+
void queryClient.invalidateQueries({ queryKey: chunkEBLBPUPI_cjs.airdropKeys.complianceInfo(scope) });
|
|
1023
|
+
void queryClient.invalidateQueries({
|
|
1024
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.activeDelegate(scope, variables.delegate)
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
function useRotateMerkleRoot(options) {
|
|
1030
|
+
const { client, chainId } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
1031
|
+
const encryptorSourceRef = react.useRef(options.encryptor);
|
|
1032
|
+
encryptorSourceRef.current = options.encryptor;
|
|
1033
|
+
const queryClient = reactQuery.useQueryClient();
|
|
388
1034
|
return reactQuery.useMutation({
|
|
389
|
-
mutationFn: async (
|
|
390
|
-
if (!client)
|
|
391
|
-
|
|
1035
|
+
mutationFn: async (args) => {
|
|
1036
|
+
if (!client) {
|
|
1037
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useRotateMerkleRoot", "merkle-airdrop");
|
|
1038
|
+
}
|
|
1039
|
+
return chunkIUKKNJ2R_cjs.rotateMerkleRoot({
|
|
1040
|
+
airdrop: client,
|
|
1041
|
+
recipients: args.recipients,
|
|
1042
|
+
encryptor: () => chunkPZZK3O3S_cjs.resolveEncryptor(encryptorSourceRef.current),
|
|
1043
|
+
...args.submitter !== void 0 ? { submitter: args.submitter } : {},
|
|
1044
|
+
...args.account !== void 0 ? { account: args.account } : {}
|
|
1045
|
+
});
|
|
1046
|
+
},
|
|
1047
|
+
onSuccess: () => {
|
|
1048
|
+
void queryClient.invalidateQueries({
|
|
1049
|
+
queryKey: chunkEBLBPUPI_cjs.airdropKeys.merkleRoot({ chainId, address: options.address })
|
|
1050
|
+
});
|
|
392
1051
|
}
|
|
393
1052
|
});
|
|
394
1053
|
}
|
|
395
|
-
function
|
|
396
|
-
const {
|
|
1054
|
+
function useSignClaimAuthorization(options) {
|
|
1055
|
+
const { walletClient, chainId } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
397
1056
|
return reactQuery.useMutation({
|
|
398
|
-
mutationFn: async (
|
|
399
|
-
if (!
|
|
400
|
-
|
|
1057
|
+
mutationFn: async (args) => {
|
|
1058
|
+
if (!walletClient) {
|
|
1059
|
+
throw new chunk67OV5CX2_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
1060
|
+
}
|
|
1061
|
+
if (chainId === void 0) {
|
|
1062
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useSignClaimAuthorization", "airdrop-base");
|
|
1063
|
+
}
|
|
1064
|
+
return chunkPZZK3O3S_cjs.signClaimAuthorization({
|
|
1065
|
+
walletClient,
|
|
1066
|
+
airdrop: options.address,
|
|
1067
|
+
chainId,
|
|
1068
|
+
recipient: args.recipient,
|
|
1069
|
+
encryptedAmountHandle: args.encryptedAmountHandle,
|
|
1070
|
+
dedupId: args.dedupId,
|
|
1071
|
+
deadline: args.deadline,
|
|
1072
|
+
account: args.account
|
|
1073
|
+
});
|
|
401
1074
|
}
|
|
402
1075
|
});
|
|
403
1076
|
}
|
|
404
|
-
function
|
|
405
|
-
const { client } =
|
|
1077
|
+
function useWithdrawGasFee(options) {
|
|
1078
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
406
1079
|
return reactQuery.useMutation({
|
|
407
|
-
mutationFn: async (
|
|
408
|
-
if (!client)
|
|
409
|
-
|
|
1080
|
+
mutationFn: async (args) => {
|
|
1081
|
+
if (!client) {
|
|
1082
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawGasFee", "airdrop-base");
|
|
1083
|
+
}
|
|
1084
|
+
return client.withdrawGasFee(args);
|
|
410
1085
|
}
|
|
411
1086
|
});
|
|
412
1087
|
}
|
|
413
|
-
function
|
|
414
|
-
const { client } =
|
|
1088
|
+
function useAdminBatchDiscloseBalanceToParties(options) {
|
|
1089
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
415
1090
|
return reactQuery.useMutation({
|
|
416
|
-
mutationFn: async (
|
|
417
|
-
if (!client)
|
|
418
|
-
|
|
1091
|
+
mutationFn: async (args) => {
|
|
1092
|
+
if (!client) {
|
|
1093
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminBatchDiscloseBalanceToParties", "airdrop-base");
|
|
1094
|
+
}
|
|
1095
|
+
return client.adminBatchDiscloseBalanceToParties(args);
|
|
419
1096
|
}
|
|
420
1097
|
});
|
|
421
1098
|
}
|
|
422
|
-
function
|
|
423
|
-
const { client } =
|
|
1099
|
+
function useAdminDiscloseBalanceToParty(options) {
|
|
1100
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
1101
|
+
return reactQuery.useMutation({
|
|
1102
|
+
mutationFn: async (args) => {
|
|
1103
|
+
if (!client) {
|
|
1104
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminDiscloseBalanceToParty", "airdrop-base");
|
|
1105
|
+
}
|
|
1106
|
+
return client.adminDiscloseBalanceToParty(args);
|
|
1107
|
+
}
|
|
1108
|
+
});
|
|
1109
|
+
}
|
|
1110
|
+
function useAdminGetCurrentBalance(options) {
|
|
1111
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoAirdropBaseClient(options);
|
|
424
1112
|
return reactQuery.useMutation({
|
|
425
|
-
mutationFn: async (
|
|
426
|
-
if (!client)
|
|
427
|
-
|
|
1113
|
+
mutationFn: async (args) => {
|
|
1114
|
+
if (!client) {
|
|
1115
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAdminGetCurrentBalance", "airdrop-base");
|
|
1116
|
+
}
|
|
1117
|
+
return client.adminGetCurrentBalance(args ?? {});
|
|
428
1118
|
}
|
|
429
1119
|
});
|
|
430
1120
|
}
|
|
431
|
-
function
|
|
432
|
-
const { client } =
|
|
1121
|
+
function useAccessEcdsaClaimAmount(options) {
|
|
1122
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoEcdsaAirdropClient(options);
|
|
433
1123
|
return reactQuery.useMutation({
|
|
434
|
-
mutationFn: async (
|
|
435
|
-
if (!client)
|
|
436
|
-
|
|
1124
|
+
mutationFn: async (args) => {
|
|
1125
|
+
if (!client) {
|
|
1126
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessEcdsaClaimAmount", "ecdsa-airdrop");
|
|
1127
|
+
}
|
|
1128
|
+
return client.getClaimAmount(args);
|
|
437
1129
|
}
|
|
438
1130
|
});
|
|
439
1131
|
}
|
|
440
|
-
function
|
|
441
|
-
const {
|
|
1132
|
+
function useAccessMerkleClaimAmount(options) {
|
|
1133
|
+
const { client } = chunkEBLBPUPI_cjs.useMemoMerkleAirdropClient(options);
|
|
442
1134
|
return reactQuery.useMutation({
|
|
443
1135
|
mutationFn: async (args) => {
|
|
444
|
-
if (!
|
|
445
|
-
throw new
|
|
1136
|
+
if (!client) {
|
|
1137
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAccessMerkleClaimAmount", "merkle-airdrop");
|
|
446
1138
|
}
|
|
447
|
-
return
|
|
448
|
-
walletClient,
|
|
449
|
-
airdropAddress: args.airdropAddress,
|
|
450
|
-
recipient: args.recipient,
|
|
451
|
-
encryptedAmountHandle: args.encryptedAmountHandle
|
|
452
|
-
});
|
|
1139
|
+
return client.getClaimAmount(args);
|
|
453
1140
|
}
|
|
454
1141
|
});
|
|
455
1142
|
}
|
|
456
1143
|
|
|
457
|
-
Object.defineProperty(exports, "
|
|
1144
|
+
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
458
1145
|
enumerable: true,
|
|
459
|
-
get: function () { return
|
|
1146
|
+
get: function () { return chunkIUKKNJ2R_cjs.buildMerkleCampaign; }
|
|
460
1147
|
});
|
|
461
|
-
Object.defineProperty(exports, "
|
|
1148
|
+
Object.defineProperty(exports, "buildMerkleTree", {
|
|
462
1149
|
enumerable: true,
|
|
463
|
-
get: function () { return
|
|
1150
|
+
get: function () { return chunkIUKKNJ2R_cjs.buildMerkleTree; }
|
|
464
1151
|
});
|
|
465
|
-
Object.defineProperty(exports, "
|
|
1152
|
+
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
466
1153
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
1154
|
+
get: function () { return chunkIUKKNJ2R_cjs.encryptCampaignAmounts; }
|
|
1155
|
+
});
|
|
1156
|
+
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
1157
|
+
enumerable: true,
|
|
1158
|
+
get: function () { return chunkIUKKNJ2R_cjs.grantInstanceRoles; }
|
|
1159
|
+
});
|
|
1160
|
+
Object.defineProperty(exports, "leafOf", {
|
|
1161
|
+
enumerable: true,
|
|
1162
|
+
get: function () { return chunkIUKKNJ2R_cjs.leafOf; }
|
|
1163
|
+
});
|
|
1164
|
+
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
1165
|
+
enumerable: true,
|
|
1166
|
+
get: function () { return chunkIUKKNJ2R_cjs.planInstanceRoleSplit; }
|
|
1167
|
+
});
|
|
1168
|
+
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
1169
|
+
enumerable: true,
|
|
1170
|
+
get: function () { return chunkIUKKNJ2R_cjs.planMerkleCampaign; }
|
|
1171
|
+
});
|
|
1172
|
+
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
1173
|
+
enumerable: true,
|
|
1174
|
+
get: function () { return chunkIUKKNJ2R_cjs.rotateMerkleRoot; }
|
|
1175
|
+
});
|
|
1176
|
+
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
1177
|
+
enumerable: true,
|
|
1178
|
+
get: function () { return chunkIUKKNJ2R_cjs.validateCampaignRecipients; }
|
|
1179
|
+
});
|
|
1180
|
+
Object.defineProperty(exports, "airdropQueryKey", {
|
|
1181
|
+
enumerable: true,
|
|
1182
|
+
get: function () { return chunkEBLBPUPI_cjs.airdropQueryKey; }
|
|
1183
|
+
});
|
|
1184
|
+
Object.defineProperty(exports, "airdropQueryKeyPrefix", {
|
|
1185
|
+
enumerable: true,
|
|
1186
|
+
get: function () { return chunkEBLBPUPI_cjs.airdropQueryKeyPrefix; }
|
|
468
1187
|
});
|
|
469
1188
|
Object.defineProperty(exports, "encryptUint64", {
|
|
470
1189
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
1190
|
+
get: function () { return chunkPZZK3O3S_cjs.encryptUint64; }
|
|
472
1191
|
});
|
|
473
1192
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
474
1193
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
1194
|
+
get: function () { return chunkPZZK3O3S_cjs.encryptUint64Batch; }
|
|
476
1195
|
});
|
|
477
1196
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
478
1197
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
1198
|
+
get: function () { return chunkPZZK3O3S_cjs.resolveEncryptor; }
|
|
480
1199
|
});
|
|
481
1200
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
482
1201
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
1202
|
+
get: function () { return chunkPZZK3O3S_cjs.signClaimAuthorization; }
|
|
1203
|
+
});
|
|
1204
|
+
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
1205
|
+
enumerable: true,
|
|
1206
|
+
get: function () { return chunkAREQJHKA_cjs.AlreadyClaimedError; }
|
|
1207
|
+
});
|
|
1208
|
+
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
1209
|
+
enumerable: true,
|
|
1210
|
+
get: function () { return chunkAREQJHKA_cjs.ClaimNotStartedError; }
|
|
1211
|
+
});
|
|
1212
|
+
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
1213
|
+
enumerable: true,
|
|
1214
|
+
get: function () { return chunkAREQJHKA_cjs.ClaimWindowClosedError; }
|
|
1215
|
+
});
|
|
1216
|
+
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
1217
|
+
enumerable: true,
|
|
1218
|
+
get: function () { return chunkAREQJHKA_cjs.DedupIdConsumedError; }
|
|
1219
|
+
});
|
|
1220
|
+
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
1221
|
+
enumerable: true,
|
|
1222
|
+
get: function () { return chunkAREQJHKA_cjs.FeeCollectorSelfAdministeredError; }
|
|
1223
|
+
});
|
|
1224
|
+
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
1225
|
+
enumerable: true,
|
|
1226
|
+
get: function () { return chunkAREQJHKA_cjs.MerkleUupsUnsupportedError; }
|
|
1227
|
+
});
|
|
1228
|
+
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
1229
|
+
enumerable: true,
|
|
1230
|
+
get: function () { return chunkAREQJHKA_cjs.NonStockWrapperError; }
|
|
1231
|
+
});
|
|
1232
|
+
Object.defineProperty(exports, "PredictionDriftError", {
|
|
1233
|
+
enumerable: true,
|
|
1234
|
+
get: function () { return chunkAREQJHKA_cjs.PredictionDriftError; }
|
|
1235
|
+
});
|
|
1236
|
+
Object.defineProperty(exports, "SaltCollisionError", {
|
|
1237
|
+
enumerable: true,
|
|
1238
|
+
get: function () { return chunkAREQJHKA_cjs.SaltCollisionError; }
|
|
1239
|
+
});
|
|
1240
|
+
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
1241
|
+
enumerable: true,
|
|
1242
|
+
get: function () { return chunkAREQJHKA_cjs.SignatureExpiredError; }
|
|
1243
|
+
});
|
|
1244
|
+
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
1245
|
+
enumerable: true,
|
|
1246
|
+
get: function () { return chunkAREQJHKA_cjs.UnauthorizedRedirectError; }
|
|
1247
|
+
});
|
|
1248
|
+
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
1249
|
+
enumerable: true,
|
|
1250
|
+
get: function () { return chunkAREQJHKA_cjs.UpgradeabilityNotAllowedError; }
|
|
484
1251
|
});
|
|
485
|
-
Object.defineProperty(exports, "
|
|
1252
|
+
Object.defineProperty(exports, "preflightClaim", {
|
|
486
1253
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
1254
|
+
get: function () { return chunkAREQJHKA_cjs.preflightClaim; }
|
|
488
1255
|
});
|
|
489
|
-
Object.defineProperty(exports, "
|
|
1256
|
+
Object.defineProperty(exports, "preflightCreate", {
|
|
490
1257
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
1258
|
+
get: function () { return chunkAREQJHKA_cjs.preflightCreate; }
|
|
492
1259
|
});
|
|
493
1260
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
494
1261
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
1262
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
496
1263
|
});
|
|
497
1264
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
498
1265
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
1266
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
500
1267
|
});
|
|
501
1268
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
502
1269
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
1270
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
504
1271
|
});
|
|
505
1272
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
506
1273
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
1274
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
508
1275
|
});
|
|
509
1276
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
510
1277
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
1278
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
512
1279
|
});
|
|
513
1280
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
514
1281
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
1282
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
516
1283
|
});
|
|
517
1284
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
518
1285
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
1286
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
520
1287
|
});
|
|
521
1288
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
522
1289
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
1290
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
524
1291
|
});
|
|
525
1292
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
526
1293
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
1294
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
528
1295
|
});
|
|
529
1296
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
530
1297
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
1298
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
532
1299
|
});
|
|
533
1300
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
534
1301
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
1302
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
536
1303
|
});
|
|
537
1304
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
538
1305
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
1306
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
540
1307
|
});
|
|
541
1308
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
542
1309
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
1310
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
544
1311
|
});
|
|
545
1312
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
546
1313
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
1314
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
548
1315
|
});
|
|
549
1316
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
550
1317
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
1318
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
552
1319
|
});
|
|
553
1320
|
Object.defineProperty(exports, "MissingClientError", {
|
|
554
1321
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
1322
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
556
1323
|
});
|
|
557
1324
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
558
1325
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
1326
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
560
1327
|
});
|
|
561
1328
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
562
1329
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
1330
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
564
1331
|
});
|
|
565
1332
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
566
1333
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
1334
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
568
1335
|
});
|
|
569
1336
|
Object.defineProperty(exports, "NetworkError", {
|
|
570
1337
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
1338
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
572
1339
|
});
|
|
573
1340
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
574
1341
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
1342
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
576
1343
|
});
|
|
577
1344
|
Object.defineProperty(exports, "PausedError", {
|
|
578
1345
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
1346
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
580
1347
|
});
|
|
581
1348
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
582
1349
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
1350
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
584
1351
|
});
|
|
585
1352
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
586
1353
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
1354
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
588
1355
|
});
|
|
589
1356
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
590
1357
|
enumerable: true,
|
|
591
|
-
get: function () { return
|
|
1358
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
592
1359
|
});
|
|
593
1360
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
594
1361
|
enumerable: true,
|
|
595
|
-
get: function () { return
|
|
1362
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
596
1363
|
});
|
|
597
1364
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
598
1365
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
1366
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
600
1367
|
});
|
|
601
1368
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
602
1369
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
1370
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
604
1371
|
});
|
|
605
1372
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
606
1373
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
1374
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
608
1375
|
});
|
|
609
1376
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
610
1377
|
enumerable: true,
|
|
611
|
-
get: function () { return
|
|
1378
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
612
1379
|
});
|
|
613
1380
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
614
1381
|
enumerable: true,
|
|
615
|
-
get: function () { return
|
|
1382
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
616
1383
|
});
|
|
617
1384
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
618
1385
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
1386
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
620
1387
|
});
|
|
621
1388
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
622
1389
|
enumerable: true,
|
|
623
|
-
get: function () { return
|
|
1390
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
624
1391
|
});
|
|
625
1392
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
626
1393
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
1394
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
628
1395
|
});
|
|
629
1396
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
630
1397
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
1398
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
632
1399
|
});
|
|
633
1400
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
634
1401
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
1402
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
636
1403
|
});
|
|
637
|
-
exports.
|
|
638
|
-
exports.
|
|
639
|
-
exports.
|
|
640
|
-
exports.
|
|
641
|
-
exports.
|
|
642
|
-
exports.
|
|
643
|
-
exports.
|
|
1404
|
+
exports.useAccessEcdsaClaimAmount = useAccessEcdsaClaimAmount;
|
|
1405
|
+
exports.useAccessMerkleClaimAmount = useAccessMerkleClaimAmount;
|
|
1406
|
+
exports.useAddComplianceDelegate = useAddComplianceDelegate;
|
|
1407
|
+
exports.useAdminBatchDiscloseBalanceToParties = useAdminBatchDiscloseBalanceToParties;
|
|
1408
|
+
exports.useAdminDiscloseBalanceToParty = useAdminDiscloseBalanceToParty;
|
|
1409
|
+
exports.useAdminGetCurrentBalance = useAdminGetCurrentBalance;
|
|
1410
|
+
exports.useAirdropConfig = useAirdropConfig;
|
|
1411
|
+
exports.useAirdropDeploymentMode = useAirdropDeploymentMode;
|
|
644
1412
|
exports.useAirdropGasFee = useAirdropGasFee;
|
|
645
1413
|
exports.useAirdropGrantRole = useAirdropGrantRole;
|
|
646
|
-
exports.useAirdropHasClaimEnded = useAirdropHasClaimEnded;
|
|
647
|
-
exports.useAirdropHasClaimStarted = useAirdropHasClaimStarted;
|
|
648
1414
|
exports.useAirdropHasRole = useAirdropHasRole;
|
|
649
|
-
exports.
|
|
650
|
-
exports.
|
|
651
|
-
exports.
|
|
652
|
-
exports.useAirdropIsSignatureValid = useAirdropIsSignatureValid;
|
|
1415
|
+
exports.useAirdropPause = useAirdropPause;
|
|
1416
|
+
exports.useAirdropPaused = useAirdropPaused;
|
|
1417
|
+
exports.useAirdropRenounceRole = useAirdropRenounceRole;
|
|
653
1418
|
exports.useAirdropRevokeRole = useAirdropRevokeRole;
|
|
654
|
-
exports.
|
|
1419
|
+
exports.useAirdropRoleAdmin = useAirdropRoleAdmin;
|
|
1420
|
+
exports.useAirdropRoleConstants = useAirdropRoleConstants;
|
|
1421
|
+
exports.useAirdropRoleMembers = useAirdropRoleMembers;
|
|
655
1422
|
exports.useAirdropToken = useAirdropToken;
|
|
656
|
-
exports.
|
|
657
|
-
exports.
|
|
658
|
-
exports.
|
|
659
|
-
exports.
|
|
660
|
-
exports.
|
|
661
|
-
exports.
|
|
662
|
-
exports.
|
|
663
|
-
exports.
|
|
1423
|
+
exports.useAirdropUpgradeToAndCall = useAirdropUpgradeToAndCall;
|
|
1424
|
+
exports.useAirdropWindow = useAirdropWindow;
|
|
1425
|
+
exports.useBatchDiscloseHandlesToParty = useBatchDiscloseHandlesToParty;
|
|
1426
|
+
exports.useBuildMerkleCampaign = useBuildMerkleCampaign;
|
|
1427
|
+
exports.useClaimedAmount = useClaimedAmount;
|
|
1428
|
+
exports.useComplianceGrantRole = useComplianceGrantRole;
|
|
1429
|
+
exports.useComplianceHasRole = useComplianceHasRole;
|
|
1430
|
+
exports.useComplianceInfo = useComplianceInfo;
|
|
1431
|
+
exports.useComplianceManager = useComplianceManager;
|
|
1432
|
+
exports.useComplianceManagerOf = useComplianceManagerOf;
|
|
1433
|
+
exports.useComplianceRenounceRole = useComplianceRenounceRole;
|
|
1434
|
+
exports.useComplianceRevokeRole = useComplianceRevokeRole;
|
|
1435
|
+
exports.useComplianceRoleConstants = useComplianceRoleConstants;
|
|
1436
|
+
exports.useComplianceRoleMembers = useComplianceRoleMembers;
|
|
1437
|
+
exports.useCreateAndFundEcdsaAirdrop = useCreateAndFundEcdsaAirdrop;
|
|
1438
|
+
exports.useCreateAndFundMerkleAirdrop = useCreateAndFundMerkleAirdrop;
|
|
1439
|
+
exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
|
|
1440
|
+
exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
|
|
1441
|
+
exports.useDiscloseHandleToParty = useDiscloseHandleToParty;
|
|
1442
|
+
exports.useEcdsaClaim = useEcdsaClaim;
|
|
1443
|
+
exports.useEcdsaClaimAndUnwrap = useEcdsaClaimAndUnwrap;
|
|
1444
|
+
exports.useEcdsaDomain = useEcdsaDomain;
|
|
1445
|
+
exports.useEffectiveDelegateToCompliance = useEffectiveDelegateToCompliance;
|
|
1446
|
+
exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
|
|
1447
|
+
exports.useEncryptCampaignAmounts = useEncryptCampaignAmounts;
|
|
664
1448
|
exports.useExtendClaimWindow = useExtendClaimWindow;
|
|
665
|
-
exports.
|
|
666
|
-
exports.
|
|
667
|
-
exports.
|
|
668
|
-
exports.
|
|
669
|
-
exports.
|
|
670
|
-
exports.
|
|
1449
|
+
exports.useFactoryFees = useFactoryFees;
|
|
1450
|
+
exports.useFactoryRegistry = useFactoryRegistry;
|
|
1451
|
+
exports.useFundAirdrop = useFundAirdrop;
|
|
1452
|
+
exports.useGrantInstanceRoles = useGrantInstanceRoles;
|
|
1453
|
+
exports.useIsActiveDelegate = useIsActiveDelegate;
|
|
1454
|
+
exports.useIsMerkleRootMutable = useIsMerkleRootMutable;
|
|
1455
|
+
exports.useIsSignatureValid = useIsSignatureValid;
|
|
1456
|
+
exports.useMerkleClaim = useMerkleClaim;
|
|
1457
|
+
exports.useMerkleClaimAndUnwrap = useMerkleClaimAndUnwrap;
|
|
1458
|
+
exports.useMerkleRoot = useMerkleRoot;
|
|
1459
|
+
exports.usePlanMerkleCampaign = usePlanMerkleCampaign;
|
|
1460
|
+
exports.usePreflightClaim = usePreflightClaim;
|
|
671
1461
|
exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
|
|
672
|
-
exports.
|
|
673
|
-
exports.
|
|
674
|
-
exports.
|
|
675
|
-
exports.
|
|
1462
|
+
exports.useRescueERC20 = useRescueERC20;
|
|
1463
|
+
exports.useRescueOtherConfidentialToken = useRescueOtherConfidentialToken;
|
|
1464
|
+
exports.useRevokeComplianceDelegate = useRevokeComplianceDelegate;
|
|
1465
|
+
exports.useRotateMerkleRoot = useRotateMerkleRoot;
|
|
1466
|
+
exports.useSetMerkleRoot = useSetMerkleRoot;
|
|
676
1467
|
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
677
|
-
exports.
|
|
678
|
-
exports.
|
|
679
|
-
exports.useWithdrawOtherToken = useWithdrawOtherToken;
|
|
1468
|
+
exports.useWithdrawConfidential = useWithdrawConfidential;
|
|
1469
|
+
exports.useWithdrawGasFee = useWithdrawGasFee;
|