@tokenops/sdk 1.6.0 → 2.0.0-alpha.1
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 +48 -8
- package/CONTRIBUTING.md +4 -2
- package/README.md +146 -90
- package/SUPPORT.md +47 -0
- package/dist/{chunk-HETNKZEE.js → chunk-335Z2W67.js} +1 -1
- package/dist/{chunk-BD4LZBVF.cjs → chunk-3QHNYEQD.cjs} +18 -17
- package/dist/chunk-456VDDA3.js +370 -0
- package/dist/{chunk-6WSNS3UV.js → chunk-4RAAATVY.js} +2 -4
- package/dist/{chunk-4KJ66YRH.js → chunk-4TSDNZQ3.js} +2 -2
- package/dist/{chunk-WUXUWTFW.cjs → chunk-5576FRT3.cjs} +31 -7
- 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-VHSNYUYV.js → chunk-6NAVMWZQ.js} +5 -5
- package/dist/{chunk-EUKPOXWR.cjs → chunk-6PXXGACR.cjs} +17 -15
- package/dist/{chunk-WTK6JDSI.js → chunk-74QFZ5MK.js} +6 -4
- package/dist/{chunk-WOEETTH7.cjs → chunk-7AFPOE7N.cjs} +6 -6
- package/dist/{chunk-U57COLUE.js → chunk-AXIPOR3C.js} +2 -2
- package/dist/chunk-CTED3MTR.cjs +380 -0
- package/dist/{chunk-QKKBBH7I.js → chunk-DZHYSUGY.js} +28 -7
- package/dist/{chunk-V5D7BHW3.js → chunk-EAJ7SYHE.js} +6 -4
- package/dist/{chunk-SYHNZSZZ.cjs → chunk-FAXIIH5R.cjs} +3 -3
- package/dist/{chunk-7G7UOQV4.cjs → chunk-FGEB7RMY.cjs} +4 -4
- package/dist/chunk-GKKDAW44.js +8823 -0
- package/dist/{chunk-QET3Q4JP.js → chunk-H5POPGOZ.js} +8 -6
- package/dist/{chunk-VR3FREBX.cjs → chunk-JK4XMMKM.cjs} +3 -3
- package/dist/{chunk-CBRL2PJA.cjs → chunk-JQYC66TO.cjs} +12 -12
- package/dist/{chunk-YFIWCYHC.cjs → chunk-JZLGCTGK.cjs} +56 -54
- package/dist/{chunk-4ZCXK4VI.cjs → chunk-KFRDLKMA.cjs} +14 -14
- package/dist/chunk-KWFFIJYX.js +11 -0
- package/dist/chunk-M4IT6DNJ.cjs +608 -0
- package/dist/{chunk-43RFBQ73.cjs → chunk-MVDQMV25.cjs} +29 -32
- package/dist/chunk-NCVX3K2N.cjs +161 -0
- package/dist/chunk-NWFMBLSQ.js +4 -0
- package/dist/chunk-O5676ZWY.js +585 -0
- package/dist/chunk-PUX5VXDB.cjs +8845 -0
- package/dist/{chunk-DRSPMIZ7.js → chunk-QBJ7O2B4.js} +1 -11
- 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-VP2B4WM2.js +154 -0
- package/dist/{chunk-BK7YIVLK.cjs → chunk-WJLECC22.cjs} +75 -73
- package/dist/{chunk-NFW7AUEX.js → chunk-WMACINXO.js} +1 -1
- package/dist/{chunk-AYGRYDBX.cjs → chunk-XAYGD4E4.cjs} +37 -35
- 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 +6 -0
- 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 +1238 -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 +37 -50
- package/dist/fhe-airdrop/advanced/react/index.d.cts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.d.ts +9 -3
- package/dist/fhe-airdrop/advanced/react/index.js +36 -50
- 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/airdrop-base.d.ts +600 -0
- package/dist/fhe-airdrop/campaign.d.ts +297 -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 +245 -15
- package/dist/fhe-airdrop/factory.d.ts +533 -274
- package/dist/fhe-airdrop/guards.d.ts +273 -0
- package/dist/fhe-airdrop/index.cjs +1131 -74
- package/dist/fhe-airdrop/index.d.cts +46 -8
- package/dist/fhe-airdrop/index.d.ts +46 -8
- package/dist/fhe-airdrop/index.js +931 -8
- package/dist/fhe-airdrop/merkle-tree.d.ts +103 -0
- package/dist/fhe-airdrop/merkle.d.ts +180 -0
- package/dist/fhe-airdrop/react/_shared.d.ts +144 -71
- package/dist/fhe-airdrop/react/index.cjs +399 -459
- package/dist/fhe-airdrop/react/index.d.cts +53 -74
- package/dist/fhe-airdrop/react/index.d.ts +53 -74
- package/dist/fhe-airdrop/react/index.js +261 -374
- package/dist/fhe-airdrop/react/useAirdropGasFee.d.ts +10 -5
- 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/useAirdropToken.d.ts +11 -4
- package/dist/fhe-airdrop/react/useAirdropWindow.d.ts +37 -0
- package/dist/fhe-airdrop/react/useClaimedAmount.d.ts +29 -0
- package/dist/fhe-airdrop/react/useComplianceManager.d.ts +16 -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/useEcdsaClaim.d.ts +23 -0
- package/dist/fhe-airdrop/react/useEffectiveUpgradeable.d.ts +20 -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/useMerkleClaim.d.ts +34 -0
- package/dist/fhe-airdrop/react/useMerkleRoot.d.ts +15 -0
- package/dist/fhe-airdrop/react/useSetMerkleRoot.d.ts +22 -0
- package/dist/fhe-airdrop/react/useWithdrawConfidential.d.ts +23 -0
- package/dist/fhe-airdrop/roles.d.ts +147 -0
- package/dist/fhe-airdrop/types.d.ts +67 -65
- 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/useAirdropGrantRole.d.ts +0 -16
- 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/useAirdropRevokeRole.d.ts +0 -15
- 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/usePreflightCreateAirdrop.d.ts +0 -51
- 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/useSignClaimAuthorization.d.ts +0 -31
- 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,619 @@
|
|
|
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 chunkCTED3MTR_cjs = require('../../chunk-CTED3MTR.cjs');
|
|
4
|
+
var chunkNCVX3K2N_cjs = require('../../chunk-NCVX3K2N.cjs');
|
|
5
|
+
var chunkPUX5VXDB_cjs = require('../../chunk-PUX5VXDB.cjs');
|
|
6
|
+
var chunkM4IT6DNJ_cjs = require('../../chunk-M4IT6DNJ.cjs');
|
|
7
|
+
require('../../chunk-FAXIIH5R.cjs');
|
|
8
|
+
require('../../chunk-UG5RKLU2.cjs');
|
|
9
|
+
require('../../chunk-MVDQMV25.cjs');
|
|
10
|
+
require('../../chunk-5576FRT3.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 wagmi = require('wagmi');
|
|
18
16
|
|
|
19
|
-
function
|
|
20
|
-
const { client, chainId
|
|
17
|
+
function useAirdropToken(args) {
|
|
18
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
|
|
21
19
|
return reactQuery.useQuery({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
20
|
+
...args.query,
|
|
21
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "token", args: [] }),
|
|
22
|
+
queryFn: () => client.token(),
|
|
23
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
26
24
|
});
|
|
27
25
|
}
|
|
28
|
-
function
|
|
29
|
-
const { client, chainId
|
|
26
|
+
function useAirdropWindow(args) {
|
|
27
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
|
|
28
|
+
return reactQuery.useQuery({
|
|
29
|
+
...args.query,
|
|
30
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "window", args: [] }),
|
|
31
|
+
queryFn: async () => {
|
|
32
|
+
const [startTime, endTime, hasStarted, hasEnded, isActive] = await Promise.all([
|
|
33
|
+
client.startTime(),
|
|
34
|
+
client.endTime(),
|
|
35
|
+
client.hasClaimStarted(),
|
|
36
|
+
client.hasClaimEnded(),
|
|
37
|
+
client.isClaimWindowActive()
|
|
38
|
+
]);
|
|
39
|
+
return { startTime, endTime, hasStarted, hasEnded, isActive };
|
|
40
|
+
},
|
|
41
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
function useAirdropPaused(args) {
|
|
45
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
|
|
30
46
|
return reactQuery.useQuery({
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
47
|
+
...args.query,
|
|
48
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "paused", args: [] }),
|
|
49
|
+
queryFn: () => client.paused(),
|
|
50
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
35
51
|
});
|
|
36
52
|
}
|
|
37
|
-
function
|
|
38
|
-
const { client, chainId
|
|
53
|
+
function useAirdropGasFee(args) {
|
|
54
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
|
|
39
55
|
return reactQuery.useQuery({
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
56
|
+
...args.query,
|
|
57
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "gasFee", args: [] }),
|
|
58
|
+
queryFn: () => client.gasFee(),
|
|
59
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
44
60
|
});
|
|
45
61
|
}
|
|
46
|
-
function
|
|
47
|
-
const {
|
|
48
|
-
const { client, chainId
|
|
62
|
+
function useAirdropHasRole(args) {
|
|
63
|
+
const { role, holder, ...base } = args;
|
|
64
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(base);
|
|
49
65
|
return reactQuery.useQuery({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
...args.query,
|
|
67
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
68
|
+
chainId,
|
|
69
|
+
address: args.address,
|
|
70
|
+
fn: "hasRole",
|
|
71
|
+
args: [role, holder]
|
|
72
|
+
}),
|
|
73
|
+
queryFn: () => client.hasRole({ role, holder }),
|
|
74
|
+
enabled: Boolean(client && role && holder && (args.query?.enabled ?? true))
|
|
54
75
|
});
|
|
55
76
|
}
|
|
56
|
-
function
|
|
57
|
-
const {
|
|
58
|
-
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
|
|
77
|
+
function useMerkleRoot(args) {
|
|
78
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(args);
|
|
59
79
|
return reactQuery.useQuery({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
80
|
+
...args.query,
|
|
81
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: args.address, fn: "merkleRoot", args: [] }),
|
|
82
|
+
queryFn: () => client.merkleRoot(),
|
|
83
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
64
84
|
});
|
|
65
85
|
}
|
|
66
|
-
function
|
|
67
|
-
const {
|
|
68
|
-
const { client, chainId
|
|
86
|
+
function useClaimedAmount(args) {
|
|
87
|
+
const { account, ...base } = args;
|
|
88
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(base);
|
|
69
89
|
return reactQuery.useQuery({
|
|
70
|
-
|
|
71
|
-
|
|
90
|
+
...args.query,
|
|
91
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
72
92
|
chainId,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
userSalt,
|
|
77
|
-
funding
|
|
78
|
-
),
|
|
79
|
-
queryFn: () => client.preflightCreateAirdrop({
|
|
80
|
-
params,
|
|
81
|
-
creator,
|
|
82
|
-
...userSalt !== void 0 ? { userSalt } : {},
|
|
83
|
-
...funding !== void 0 ? { funding } : {}
|
|
93
|
+
address: args.address,
|
|
94
|
+
fn: "getClaimedAmount",
|
|
95
|
+
args: [account]
|
|
84
96
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
97
|
+
queryFn: () => client.getClaimedAmount(account),
|
|
98
|
+
enabled: Boolean(client && account && (args.query?.enabled ?? true))
|
|
87
99
|
});
|
|
88
100
|
}
|
|
89
|
-
function
|
|
90
|
-
const { client,
|
|
91
|
-
return reactQuery.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
function useComplianceManager(args) {
|
|
102
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(args);
|
|
103
|
+
return reactQuery.useQuery({
|
|
104
|
+
...args.query,
|
|
105
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
106
|
+
chainId,
|
|
107
|
+
address: args.address,
|
|
108
|
+
fn: "complianceManager",
|
|
109
|
+
args: []
|
|
110
|
+
}),
|
|
111
|
+
queryFn: () => client.complianceManager(),
|
|
112
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
function useFactoryFees(args = {}) {
|
|
116
|
+
const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(args);
|
|
117
|
+
return reactQuery.useQuery({
|
|
118
|
+
...args.query,
|
|
119
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: resolvedAddress, fn: "fees", args: [] }),
|
|
120
|
+
queryFn: async () => {
|
|
121
|
+
const [feeCollector, defaultGasFee] = await Promise.all([
|
|
122
|
+
client.feeCollector(),
|
|
123
|
+
client.defaultGasFee()
|
|
124
|
+
]);
|
|
125
|
+
return { feeCollector, defaultGasFee };
|
|
126
|
+
},
|
|
127
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function useFactoryRegistry(args = {}) {
|
|
131
|
+
const { offset = 0n, limit = 50n, ...base } = args;
|
|
132
|
+
const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(base);
|
|
133
|
+
return reactQuery.useQuery({
|
|
134
|
+
...args.query,
|
|
135
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
136
|
+
chainId,
|
|
137
|
+
address: resolvedAddress,
|
|
138
|
+
fn: "registry",
|
|
139
|
+
args: [offset, limit]
|
|
140
|
+
}),
|
|
141
|
+
queryFn: async () => {
|
|
142
|
+
const [count, items] = await Promise.all([
|
|
143
|
+
client.airdropCount(),
|
|
144
|
+
client.airdrops(offset, limit)
|
|
145
|
+
]);
|
|
146
|
+
return { count, items };
|
|
147
|
+
},
|
|
148
|
+
enabled: Boolean(client && (args.query?.enabled ?? true))
|
|
98
149
|
});
|
|
99
150
|
}
|
|
100
|
-
function
|
|
101
|
-
const {
|
|
151
|
+
function useEffectiveUpgradeable(args = {}) {
|
|
152
|
+
const { creator, ...base } = args;
|
|
153
|
+
const { client, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(base);
|
|
154
|
+
return reactQuery.useQuery({
|
|
155
|
+
...args.query,
|
|
156
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
157
|
+
chainId,
|
|
158
|
+
address: resolvedAddress,
|
|
159
|
+
fn: "effectiveUpgradeable",
|
|
160
|
+
args: [creator]
|
|
161
|
+
}),
|
|
162
|
+
queryFn: () => client.effectiveUpgradeable(creator),
|
|
163
|
+
enabled: Boolean(client && creator && (args.query?.enabled ?? true))
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
function useCreateEcdsaAirdrop(options = {}) {
|
|
167
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
|
|
168
|
+
const queryClient = reactQuery.useQueryClient();
|
|
102
169
|
return reactQuery.useMutation({
|
|
103
170
|
mutationFn: async (args) => {
|
|
104
171
|
if (!client) {
|
|
105
|
-
throw resolutionError ?? new
|
|
172
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateEcdsaAirdrop", "factory");
|
|
106
173
|
}
|
|
107
|
-
return client.
|
|
174
|
+
return client.createEcdsaAirdrop(args);
|
|
175
|
+
},
|
|
176
|
+
onSuccess: () => {
|
|
177
|
+
void queryClient.invalidateQueries({
|
|
178
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
179
|
+
});
|
|
108
180
|
}
|
|
109
181
|
});
|
|
110
182
|
}
|
|
111
|
-
function
|
|
112
|
-
const { client, resolutionError } =
|
|
183
|
+
function useCreateMerkleAirdrop(options = {}) {
|
|
184
|
+
const { client, resolutionError, chainId, resolvedAddress } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
|
|
185
|
+
const queryClient = reactQuery.useQueryClient();
|
|
113
186
|
return reactQuery.useMutation({
|
|
114
187
|
mutationFn: async (args) => {
|
|
115
188
|
if (!client) {
|
|
116
|
-
throw resolutionError ?? new
|
|
189
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useCreateMerkleAirdrop", "factory");
|
|
117
190
|
}
|
|
118
|
-
return client.
|
|
191
|
+
return client.createMerkleAirdrop(args);
|
|
192
|
+
},
|
|
193
|
+
onSuccess: () => {
|
|
194
|
+
void queryClient.invalidateQueries({
|
|
195
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: resolvedAddress, fn: "registry" })
|
|
196
|
+
});
|
|
119
197
|
}
|
|
120
198
|
});
|
|
121
199
|
}
|
|
122
|
-
function
|
|
123
|
-
const { client, resolutionError } =
|
|
200
|
+
function useFundAirdrop(options = {}) {
|
|
201
|
+
const { client, resolutionError } = chunkNCVX3K2N_cjs.useMemoAirdropFactoryClient(options);
|
|
124
202
|
return reactQuery.useMutation({
|
|
125
203
|
mutationFn: async (args) => {
|
|
126
204
|
if (!client) {
|
|
127
|
-
throw resolutionError ?? new
|
|
205
|
+
throw resolutionError ?? new chunk67OV5CX2_cjs.MissingClientError("useFundAirdrop", "factory");
|
|
128
206
|
}
|
|
129
|
-
return client.
|
|
207
|
+
return client.fundAirdrop(args);
|
|
130
208
|
}
|
|
131
209
|
});
|
|
132
210
|
}
|
|
133
|
-
function
|
|
134
|
-
const { client
|
|
211
|
+
function useEcdsaClaim(options) {
|
|
212
|
+
const { client } = chunkNCVX3K2N_cjs.useMemoEcdsaAirdropClient(options);
|
|
135
213
|
return reactQuery.useMutation({
|
|
136
214
|
mutationFn: async (args) => {
|
|
137
215
|
if (!client) {
|
|
138
|
-
throw
|
|
216
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useEcdsaClaim", "ecdsa-airdrop");
|
|
139
217
|
}
|
|
140
|
-
return client.
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
function useSetFeeCollector(options = {}) {
|
|
145
|
-
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
146
|
-
return reactQuery.useMutation({
|
|
147
|
-
mutationFn: async ({ newFeeCollector, account }) => {
|
|
148
|
-
if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
149
|
-
return client.setFeeCollector(newFeeCollector, account);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
function useSetDefaultGasFee(options = {}) {
|
|
154
|
-
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
155
|
-
return reactQuery.useMutation({
|
|
156
|
-
mutationFn: async ({ newGasFee, account }) => {
|
|
157
|
-
if (!client)
|
|
158
|
-
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetDefaultGasFee", "factory");
|
|
159
|
-
return client.setDefaultGasFee(newGasFee, account);
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
function useSetCustomFee(options = {}) {
|
|
164
|
-
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
165
|
-
return reactQuery.useMutation({
|
|
166
|
-
mutationFn: async ({ campaignCreator, gasFee, account }) => {
|
|
167
|
-
if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
168
|
-
return client.setCustomFee(campaignCreator, gasFee, account);
|
|
218
|
+
return client.claim(args);
|
|
169
219
|
}
|
|
170
220
|
});
|
|
171
221
|
}
|
|
172
|
-
function
|
|
173
|
-
const { client,
|
|
174
|
-
|
|
175
|
-
mutationFn: async ({ campaignCreator, account }) => {
|
|
176
|
-
if (!client)
|
|
177
|
-
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDisableCustomFee", "factory");
|
|
178
|
-
return client.disableCustomFee(campaignCreator, account);
|
|
179
|
-
}
|
|
180
|
-
});
|
|
181
|
-
}
|
|
182
|
-
function useAirdropToken(options) {
|
|
183
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
184
|
-
return reactQuery.useQuery({
|
|
185
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:TOKEN", chainId, options.address),
|
|
186
|
-
queryFn: () => client.token(),
|
|
187
|
-
enabled: !!client,
|
|
188
|
-
staleTime: 0
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
function useAirdropGasFee(options) {
|
|
192
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
193
|
-
return reactQuery.useQuery({
|
|
194
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:GAS_FEE", chainId, options.address),
|
|
195
|
-
queryFn: () => client.gasFee(),
|
|
196
|
-
enabled: !!client,
|
|
197
|
-
staleTime: 0
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
function useAirdropStartTime(options) {
|
|
201
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
202
|
-
return reactQuery.useQuery({
|
|
203
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:START_TIME", chainId, options.address),
|
|
204
|
-
queryFn: () => client.startTime(),
|
|
205
|
-
enabled: !!client,
|
|
206
|
-
staleTime: 0
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
function useAirdropCanExtendClaimWindow(options) {
|
|
210
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
211
|
-
return reactQuery.useQuery({
|
|
212
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CAN_EXTEND_CLAIM_WINDOW", chainId, options.address),
|
|
213
|
-
queryFn: () => client.canExtendClaimWindow(),
|
|
214
|
-
enabled: !!client,
|
|
215
|
-
staleTime: 0
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
function useAirdropEndTime(options) {
|
|
219
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
220
|
-
return reactQuery.useQuery({
|
|
221
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:endTime", chainId, options.address),
|
|
222
|
-
queryFn: () => client.endTime(),
|
|
223
|
-
enabled: !!client,
|
|
224
|
-
staleTime: 0
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
function useAirdropIsPaused(options) {
|
|
228
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
229
|
-
return reactQuery.useQuery({
|
|
230
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isPaused", chainId, options.address),
|
|
231
|
-
queryFn: () => client.isPaused(),
|
|
232
|
-
enabled: !!client,
|
|
233
|
-
staleTime: 0
|
|
234
|
-
});
|
|
235
|
-
}
|
|
236
|
-
function useAirdropDeploymentBlockNumber(options) {
|
|
237
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
238
|
-
return reactQuery.useQuery({
|
|
239
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:deploymentBlockNumber", chainId, options.address),
|
|
240
|
-
queryFn: () => client.deploymentBlockNumber(),
|
|
241
|
-
enabled: !!client,
|
|
242
|
-
staleTime: 0
|
|
243
|
-
});
|
|
244
|
-
}
|
|
245
|
-
function useAirdropDomainSeparator(options) {
|
|
246
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
247
|
-
return reactQuery.useQuery({
|
|
248
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:DOMAIN_SEPARATOR", chainId, options.address),
|
|
249
|
-
queryFn: () => client.domainSeparator(),
|
|
250
|
-
enabled: !!client,
|
|
251
|
-
staleTime: 0
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
function useAirdropClaimTypehash(options) {
|
|
255
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
256
|
-
return reactQuery.useQuery({
|
|
257
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CLAIM_TYPEHASH", chainId, options.address),
|
|
258
|
-
queryFn: () => client.claimTypehash(),
|
|
259
|
-
enabled: !!client,
|
|
260
|
-
staleTime: 0
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
function useAirdropIsClaimWindowActive(options) {
|
|
264
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
265
|
-
return reactQuery.useQuery({
|
|
266
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isClaimWindowActive", chainId, options.address),
|
|
267
|
-
queryFn: () => client.isClaimWindowActive(),
|
|
268
|
-
enabled: !!client,
|
|
269
|
-
staleTime: 0
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
function useAirdropHasClaimStarted(options) {
|
|
273
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
274
|
-
return reactQuery.useQuery({
|
|
275
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimStarted", chainId, options.address),
|
|
276
|
-
queryFn: () => client.hasClaimStarted(),
|
|
277
|
-
enabled: !!client,
|
|
278
|
-
staleTime: 0
|
|
279
|
-
});
|
|
280
|
-
}
|
|
281
|
-
function useAirdropHasClaimEnded(options) {
|
|
282
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
283
|
-
return reactQuery.useQuery({
|
|
284
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimEnded", chainId, options.address),
|
|
285
|
-
queryFn: () => client.hasClaimEnded(),
|
|
286
|
-
enabled: !!client,
|
|
287
|
-
staleTime: 0
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
function useAirdropClaimedSignatures(args) {
|
|
291
|
-
const { signatureHash, ...base } = args;
|
|
292
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
293
|
-
return reactQuery.useQuery({
|
|
294
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:claimedSignatures", chainId, base.address, signatureHash),
|
|
295
|
-
queryFn: () => client.claimedSignatures(signatureHash),
|
|
296
|
-
enabled: !!client && !!signatureHash,
|
|
297
|
-
staleTime: 0
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
function useAirdropIsSignatureClaimed(args) {
|
|
301
|
-
const { user, encryptedAmountHandle, ...base } = args;
|
|
302
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
303
|
-
return reactQuery.useQuery({
|
|
304
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey(
|
|
305
|
-
"airdrop:isSignatureClaimed",
|
|
306
|
-
chainId,
|
|
307
|
-
base.address,
|
|
308
|
-
user,
|
|
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
|
|
337
|
-
});
|
|
338
|
-
}
|
|
339
|
-
function useAirdropHasRole(args) {
|
|
340
|
-
const { role, account, ...base } = args;
|
|
341
|
-
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
342
|
-
return reactQuery.useQuery({
|
|
343
|
-
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasRole", chainId, base.address, role, account),
|
|
344
|
-
queryFn: () => client.hasRole(role, account),
|
|
345
|
-
enabled: !!client && !!role && !!account,
|
|
346
|
-
staleTime: 0
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
function useClaim(options) {
|
|
350
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
222
|
+
function useMerkleClaim(options) {
|
|
223
|
+
const { client, chainId, walletClient } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(options);
|
|
224
|
+
const queryClient = reactQuery.useQueryClient();
|
|
351
225
|
return reactQuery.useMutation({
|
|
352
226
|
mutationFn: async (args) => {
|
|
353
|
-
if (!client)
|
|
227
|
+
if (!client) {
|
|
228
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useMerkleClaim", "merkle-airdrop");
|
|
229
|
+
}
|
|
354
230
|
return client.claim(args);
|
|
231
|
+
},
|
|
232
|
+
onMutate: (variables) => {
|
|
233
|
+
const account = variables.account ?? walletClient?.account;
|
|
234
|
+
return {
|
|
235
|
+
claimant: account ? typeof account === "string" ? account : account.address : void 0
|
|
236
|
+
};
|
|
237
|
+
},
|
|
238
|
+
onSuccess: (_hash, _variables, context) => {
|
|
239
|
+
if (!context?.claimant) return;
|
|
240
|
+
void queryClient.invalidateQueries({
|
|
241
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
242
|
+
chainId,
|
|
243
|
+
address: options.address,
|
|
244
|
+
fn: "getClaimedAmount",
|
|
245
|
+
args: [context.claimant]
|
|
246
|
+
})
|
|
247
|
+
});
|
|
355
248
|
}
|
|
356
249
|
});
|
|
357
250
|
}
|
|
358
|
-
function
|
|
359
|
-
const { client } =
|
|
251
|
+
function useSetMerkleRoot(options) {
|
|
252
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoMerkleAirdropClient(options);
|
|
253
|
+
const queryClient = reactQuery.useQueryClient();
|
|
360
254
|
return reactQuery.useMutation({
|
|
361
255
|
mutationFn: async (args) => {
|
|
362
|
-
if (!client)
|
|
363
|
-
|
|
256
|
+
if (!client) {
|
|
257
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useSetMerkleRoot", "merkle-airdrop");
|
|
258
|
+
}
|
|
259
|
+
return client.setMerkleRoot(args);
|
|
260
|
+
},
|
|
261
|
+
onSuccess: () => {
|
|
262
|
+
void queryClient.invalidateQueries({
|
|
263
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({
|
|
264
|
+
chainId,
|
|
265
|
+
address: options.address,
|
|
266
|
+
fn: "merkleRoot",
|
|
267
|
+
args: []
|
|
268
|
+
})
|
|
269
|
+
});
|
|
364
270
|
}
|
|
365
271
|
});
|
|
366
272
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
const
|
|
273
|
+
function useGrantInstanceRoles(options) {
|
|
274
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
|
|
275
|
+
const queryClient = reactQuery.useQueryClient();
|
|
370
276
|
return reactQuery.useMutation({
|
|
371
|
-
mutationFn: async (
|
|
372
|
-
if (!client)
|
|
373
|
-
|
|
277
|
+
mutationFn: async (args) => {
|
|
278
|
+
if (!client) {
|
|
279
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useGrantInstanceRoles", "airdrop-base");
|
|
280
|
+
}
|
|
281
|
+
return chunkCTED3MTR_cjs.grantInstanceRoles({
|
|
282
|
+
airdrop: client,
|
|
283
|
+
assignment: args.assignment,
|
|
284
|
+
...args.revokeFromCreator !== void 0 ? { revokeFromCreator: args.revokeFromCreator } : {}
|
|
285
|
+
});
|
|
286
|
+
},
|
|
287
|
+
onSuccess: () => {
|
|
288
|
+
void queryClient.invalidateQueries({
|
|
289
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKeyPrefix({ chainId, address: options.address, fn: "hasRole" })
|
|
290
|
+
});
|
|
374
291
|
}
|
|
375
292
|
});
|
|
376
293
|
}
|
|
377
|
-
function
|
|
378
|
-
const { client } =
|
|
294
|
+
function useAirdropPause(options) {
|
|
295
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
|
|
296
|
+
const queryClient = reactQuery.useQueryClient();
|
|
379
297
|
return reactQuery.useMutation({
|
|
380
|
-
mutationFn: async ({ paused,
|
|
381
|
-
if (!client)
|
|
382
|
-
|
|
298
|
+
mutationFn: async ({ paused, ...rest }) => {
|
|
299
|
+
if (!client) {
|
|
300
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useAirdropPause", "airdrop-base");
|
|
301
|
+
}
|
|
302
|
+
return paused ? client.pause(rest) : client.unpause(rest);
|
|
303
|
+
},
|
|
304
|
+
onSuccess: () => {
|
|
305
|
+
void queryClient.invalidateQueries({
|
|
306
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "paused", args: [] })
|
|
307
|
+
});
|
|
308
|
+
void queryClient.invalidateQueries({
|
|
309
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
310
|
+
});
|
|
383
311
|
}
|
|
384
312
|
});
|
|
385
313
|
}
|
|
386
314
|
function useExtendClaimWindow(options) {
|
|
387
|
-
const { client } =
|
|
388
|
-
|
|
389
|
-
mutationFn: async ({ newEndTime, account }) => {
|
|
390
|
-
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
|
|
391
|
-
return client.extendClaimWindow(newEndTime, account);
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
function useWithdrawOtherToken(options) {
|
|
396
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
397
|
-
return reactQuery.useMutation({
|
|
398
|
-
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
399
|
-
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherToken", "airdrop");
|
|
400
|
-
return client.withdrawOtherToken(tokenAddress, recipient, account);
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
function useWithdrawOtherConfidentialToken(options) {
|
|
405
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
406
|
-
return reactQuery.useMutation({
|
|
407
|
-
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
408
|
-
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "airdrop");
|
|
409
|
-
return client.withdrawOtherConfidentialToken(tokenAddress, recipient, account);
|
|
410
|
-
}
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
function useAirdropWithdrawGasFee(options) {
|
|
414
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
315
|
+
const { client, chainId } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
|
|
316
|
+
const queryClient = reactQuery.useQueryClient();
|
|
415
317
|
return reactQuery.useMutation({
|
|
416
|
-
mutationFn: async (
|
|
417
|
-
if (!client)
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropGrantRole", "airdrop");
|
|
427
|
-
return client.grantRole(role, accountTarget, account);
|
|
428
|
-
}
|
|
429
|
-
});
|
|
430
|
-
}
|
|
431
|
-
function useAirdropRevokeRole(options) {
|
|
432
|
-
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
433
|
-
return reactQuery.useMutation({
|
|
434
|
-
mutationFn: async ({ role, accountTarget, account }) => {
|
|
435
|
-
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropRevokeRole", "airdrop");
|
|
436
|
-
return client.revokeRole(role, accountTarget, account);
|
|
318
|
+
mutationFn: async (args) => {
|
|
319
|
+
if (!client) {
|
|
320
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useExtendClaimWindow", "airdrop-base");
|
|
321
|
+
}
|
|
322
|
+
return client.extendClaimWindow(args);
|
|
323
|
+
},
|
|
324
|
+
onSuccess: () => {
|
|
325
|
+
void queryClient.invalidateQueries({
|
|
326
|
+
queryKey: chunkNCVX3K2N_cjs.airdropQueryKey({ chainId, address: options.address, fn: "window", args: [] })
|
|
327
|
+
});
|
|
437
328
|
}
|
|
438
329
|
});
|
|
439
330
|
}
|
|
440
|
-
function
|
|
441
|
-
const {
|
|
331
|
+
function useWithdrawConfidential(options) {
|
|
332
|
+
const { client } = chunkNCVX3K2N_cjs.useMemoAirdropBaseClient(options);
|
|
442
333
|
return reactQuery.useMutation({
|
|
443
334
|
mutationFn: async (args) => {
|
|
444
|
-
if (!
|
|
445
|
-
throw new
|
|
335
|
+
if (!client) {
|
|
336
|
+
throw new chunk67OV5CX2_cjs.MissingClientError("useWithdrawConfidential", "airdrop-base");
|
|
446
337
|
}
|
|
447
|
-
return
|
|
448
|
-
walletClient,
|
|
449
|
-
airdropAddress: args.airdropAddress,
|
|
450
|
-
recipient: args.recipient,
|
|
451
|
-
encryptedAmountHandle: args.encryptedAmountHandle
|
|
452
|
-
});
|
|
338
|
+
return client.withdrawConfidential(args);
|
|
453
339
|
}
|
|
454
340
|
});
|
|
455
341
|
}
|
|
456
342
|
|
|
457
|
-
Object.defineProperty(exports, "
|
|
343
|
+
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
458
344
|
enumerable: true,
|
|
459
|
-
get: function () { return
|
|
345
|
+
get: function () { return chunkCTED3MTR_cjs.buildMerkleCampaign; }
|
|
460
346
|
});
|
|
461
|
-
Object.defineProperty(exports, "
|
|
347
|
+
Object.defineProperty(exports, "buildMerkleTree", {
|
|
462
348
|
enumerable: true,
|
|
463
|
-
get: function () { return
|
|
349
|
+
get: function () { return chunkCTED3MTR_cjs.buildMerkleTree; }
|
|
464
350
|
});
|
|
465
|
-
Object.defineProperty(exports, "
|
|
351
|
+
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
352
|
+
enumerable: true,
|
|
353
|
+
get: function () { return chunkCTED3MTR_cjs.encryptCampaignAmounts; }
|
|
354
|
+
});
|
|
355
|
+
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
356
|
+
enumerable: true,
|
|
357
|
+
get: function () { return chunkCTED3MTR_cjs.grantInstanceRoles; }
|
|
358
|
+
});
|
|
359
|
+
Object.defineProperty(exports, "leafOf", {
|
|
466
360
|
enumerable: true,
|
|
467
|
-
get: function () { return
|
|
361
|
+
get: function () { return chunkCTED3MTR_cjs.leafOf; }
|
|
362
|
+
});
|
|
363
|
+
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
364
|
+
enumerable: true,
|
|
365
|
+
get: function () { return chunkCTED3MTR_cjs.planInstanceRoleSplit; }
|
|
366
|
+
});
|
|
367
|
+
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
368
|
+
enumerable: true,
|
|
369
|
+
get: function () { return chunkCTED3MTR_cjs.planMerkleCampaign; }
|
|
370
|
+
});
|
|
371
|
+
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
372
|
+
enumerable: true,
|
|
373
|
+
get: function () { return chunkCTED3MTR_cjs.rotateMerkleRoot; }
|
|
374
|
+
});
|
|
375
|
+
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
376
|
+
enumerable: true,
|
|
377
|
+
get: function () { return chunkCTED3MTR_cjs.validateCampaignRecipients; }
|
|
378
|
+
});
|
|
379
|
+
Object.defineProperty(exports, "airdropQueryKey", {
|
|
380
|
+
enumerable: true,
|
|
381
|
+
get: function () { return chunkNCVX3K2N_cjs.airdropQueryKey; }
|
|
382
|
+
});
|
|
383
|
+
Object.defineProperty(exports, "airdropQueryKeyPrefix", {
|
|
384
|
+
enumerable: true,
|
|
385
|
+
get: function () { return chunkNCVX3K2N_cjs.airdropQueryKeyPrefix; }
|
|
468
386
|
});
|
|
469
387
|
Object.defineProperty(exports, "encryptUint64", {
|
|
470
388
|
enumerable: true,
|
|
471
|
-
get: function () { return
|
|
389
|
+
get: function () { return chunkPUX5VXDB_cjs.encryptUint64; }
|
|
472
390
|
});
|
|
473
391
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
474
392
|
enumerable: true,
|
|
475
|
-
get: function () { return
|
|
393
|
+
get: function () { return chunkPUX5VXDB_cjs.encryptUint64Batch; }
|
|
476
394
|
});
|
|
477
395
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
478
396
|
enumerable: true,
|
|
479
|
-
get: function () { return
|
|
397
|
+
get: function () { return chunkPUX5VXDB_cjs.resolveEncryptor; }
|
|
480
398
|
});
|
|
481
399
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
482
400
|
enumerable: true,
|
|
483
|
-
get: function () { return
|
|
401
|
+
get: function () { return chunkPUX5VXDB_cjs.signClaimAuthorization; }
|
|
402
|
+
});
|
|
403
|
+
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
404
|
+
enumerable: true,
|
|
405
|
+
get: function () { return chunkM4IT6DNJ_cjs.AlreadyClaimedError; }
|
|
406
|
+
});
|
|
407
|
+
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
408
|
+
enumerable: true,
|
|
409
|
+
get: function () { return chunkM4IT6DNJ_cjs.ClaimNotStartedError; }
|
|
410
|
+
});
|
|
411
|
+
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
412
|
+
enumerable: true,
|
|
413
|
+
get: function () { return chunkM4IT6DNJ_cjs.ClaimWindowClosedError; }
|
|
414
|
+
});
|
|
415
|
+
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
416
|
+
enumerable: true,
|
|
417
|
+
get: function () { return chunkM4IT6DNJ_cjs.DedupIdConsumedError; }
|
|
418
|
+
});
|
|
419
|
+
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
420
|
+
enumerable: true,
|
|
421
|
+
get: function () { return chunkM4IT6DNJ_cjs.FeeCollectorSelfAdministeredError; }
|
|
422
|
+
});
|
|
423
|
+
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
424
|
+
enumerable: true,
|
|
425
|
+
get: function () { return chunkM4IT6DNJ_cjs.MerkleUupsUnsupportedError; }
|
|
426
|
+
});
|
|
427
|
+
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
428
|
+
enumerable: true,
|
|
429
|
+
get: function () { return chunkM4IT6DNJ_cjs.NonStockWrapperError; }
|
|
430
|
+
});
|
|
431
|
+
Object.defineProperty(exports, "PredictionDriftError", {
|
|
432
|
+
enumerable: true,
|
|
433
|
+
get: function () { return chunkM4IT6DNJ_cjs.PredictionDriftError; }
|
|
434
|
+
});
|
|
435
|
+
Object.defineProperty(exports, "SaltCollisionError", {
|
|
436
|
+
enumerable: true,
|
|
437
|
+
get: function () { return chunkM4IT6DNJ_cjs.SaltCollisionError; }
|
|
438
|
+
});
|
|
439
|
+
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
440
|
+
enumerable: true,
|
|
441
|
+
get: function () { return chunkM4IT6DNJ_cjs.SignatureExpiredError; }
|
|
442
|
+
});
|
|
443
|
+
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
444
|
+
enumerable: true,
|
|
445
|
+
get: function () { return chunkM4IT6DNJ_cjs.UpgradeabilityNotAllowedError; }
|
|
484
446
|
});
|
|
485
|
-
Object.defineProperty(exports, "
|
|
447
|
+
Object.defineProperty(exports, "preflightClaim", {
|
|
486
448
|
enumerable: true,
|
|
487
|
-
get: function () { return
|
|
449
|
+
get: function () { return chunkM4IT6DNJ_cjs.preflightClaim; }
|
|
488
450
|
});
|
|
489
|
-
Object.defineProperty(exports, "
|
|
451
|
+
Object.defineProperty(exports, "preflightCreate", {
|
|
490
452
|
enumerable: true,
|
|
491
|
-
get: function () { return
|
|
453
|
+
get: function () { return chunkM4IT6DNJ_cjs.preflightCreate; }
|
|
492
454
|
});
|
|
493
455
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
494
456
|
enumerable: true,
|
|
495
|
-
get: function () { return
|
|
457
|
+
get: function () { return chunk67OV5CX2_cjs.AccessDeniedError; }
|
|
496
458
|
});
|
|
497
459
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
498
460
|
enumerable: true,
|
|
499
|
-
get: function () { return
|
|
461
|
+
get: function () { return chunk67OV5CX2_cjs.AlreadyInitializedError; }
|
|
500
462
|
});
|
|
501
463
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
502
464
|
enumerable: true,
|
|
503
|
-
get: function () { return
|
|
465
|
+
get: function () { return chunk67OV5CX2_cjs.BatchTooLargeError; }
|
|
504
466
|
});
|
|
505
467
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
506
468
|
enumerable: true,
|
|
507
|
-
get: function () { return
|
|
469
|
+
get: function () { return chunk67OV5CX2_cjs.ContractRevertError; }
|
|
508
470
|
});
|
|
509
471
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
510
472
|
enumerable: true,
|
|
511
|
-
get: function () { return
|
|
473
|
+
get: function () { return chunk67OV5CX2_cjs.DecryptionFailedError; }
|
|
512
474
|
});
|
|
513
475
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
514
476
|
enumerable: true,
|
|
515
|
-
get: function () { return
|
|
477
|
+
get: function () { return chunk67OV5CX2_cjs.DeploymentAddressUnavailableError; }
|
|
516
478
|
});
|
|
517
479
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
518
480
|
enumerable: true,
|
|
519
|
-
get: function () { return
|
|
481
|
+
get: function () { return chunk67OV5CX2_cjs.EncryptionFailedError; }
|
|
520
482
|
});
|
|
521
483
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
522
484
|
enumerable: true,
|
|
523
|
-
get: function () { return
|
|
485
|
+
get: function () { return chunk67OV5CX2_cjs.FeatureDisabledError; }
|
|
524
486
|
});
|
|
525
487
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
526
488
|
enumerable: true,
|
|
527
|
-
get: function () { return
|
|
489
|
+
get: function () { return chunk67OV5CX2_cjs.FheHandleNotAllowedError; }
|
|
528
490
|
});
|
|
529
491
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
530
492
|
enumerable: true,
|
|
531
|
-
get: function () { return
|
|
493
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientBalanceError; }
|
|
532
494
|
});
|
|
533
495
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
534
496
|
enumerable: true,
|
|
535
|
-
get: function () { return
|
|
497
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientFeeError; }
|
|
536
498
|
});
|
|
537
499
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
538
500
|
enumerable: true,
|
|
539
|
-
get: function () { return
|
|
501
|
+
get: function () { return chunk67OV5CX2_cjs.InsufficientGasFundsError; }
|
|
540
502
|
});
|
|
541
503
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
542
504
|
enumerable: true,
|
|
543
|
-
get: function () { return
|
|
505
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidArgumentError; }
|
|
544
506
|
});
|
|
545
507
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
546
508
|
enumerable: true,
|
|
547
|
-
get: function () { return
|
|
509
|
+
get: function () { return chunk67OV5CX2_cjs.InvalidSignatureError; }
|
|
548
510
|
});
|
|
549
511
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
550
512
|
enumerable: true,
|
|
551
|
-
get: function () { return
|
|
513
|
+
get: function () { return chunk67OV5CX2_cjs.MissingAccountError; }
|
|
552
514
|
});
|
|
553
515
|
Object.defineProperty(exports, "MissingClientError", {
|
|
554
516
|
enumerable: true,
|
|
555
|
-
get: function () { return
|
|
517
|
+
get: function () { return chunk67OV5CX2_cjs.MissingClientError; }
|
|
556
518
|
});
|
|
557
519
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
558
520
|
enumerable: true,
|
|
559
|
-
get: function () { return
|
|
521
|
+
get: function () { return chunk67OV5CX2_cjs.MissingEncryptorError; }
|
|
560
522
|
});
|
|
561
523
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
562
524
|
enumerable: true,
|
|
563
|
-
get: function () { return
|
|
525
|
+
get: function () { return chunk67OV5CX2_cjs.MissingPublicClientError; }
|
|
564
526
|
});
|
|
565
527
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
566
528
|
enumerable: true,
|
|
567
|
-
get: function () { return
|
|
529
|
+
get: function () { return chunk67OV5CX2_cjs.MissingWalletClientError; }
|
|
568
530
|
});
|
|
569
531
|
Object.defineProperty(exports, "NetworkError", {
|
|
570
532
|
enumerable: true,
|
|
571
|
-
get: function () { return
|
|
533
|
+
get: function () { return chunk67OV5CX2_cjs.NetworkError; }
|
|
572
534
|
});
|
|
573
535
|
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
574
536
|
enumerable: true,
|
|
575
|
-
get: function () { return
|
|
537
|
+
get: function () { return chunk67OV5CX2_cjs.OperatorNotApprovedError; }
|
|
576
538
|
});
|
|
577
539
|
Object.defineProperty(exports, "PausedError", {
|
|
578
540
|
enumerable: true,
|
|
579
|
-
get: function () { return
|
|
541
|
+
get: function () { return chunk67OV5CX2_cjs.PausedError; }
|
|
580
542
|
});
|
|
581
543
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
582
544
|
enumerable: true,
|
|
583
|
-
get: function () { return
|
|
545
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventAmbiguousError; }
|
|
584
546
|
});
|
|
585
547
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
586
548
|
enumerable: true,
|
|
587
|
-
get: function () { return
|
|
549
|
+
get: function () { return chunk67OV5CX2_cjs.ReceiptEventNotFoundError; }
|
|
588
550
|
});
|
|
589
551
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
590
552
|
enumerable: true,
|
|
591
|
-
get: function () { return
|
|
553
|
+
get: function () { return chunk67OV5CX2_cjs.ReentrancyError; }
|
|
592
554
|
});
|
|
593
555
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
594
556
|
enumerable: true,
|
|
595
|
-
get: function () { return
|
|
557
|
+
get: function () { return chunk67OV5CX2_cjs.RelayerUnreachableError; }
|
|
596
558
|
});
|
|
597
559
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
598
560
|
enumerable: true,
|
|
599
|
-
get: function () { return
|
|
561
|
+
get: function () { return chunk67OV5CX2_cjs.SigningFailedError; }
|
|
600
562
|
});
|
|
601
563
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
602
564
|
enumerable: true,
|
|
603
|
-
get: function () { return
|
|
565
|
+
get: function () { return chunk67OV5CX2_cjs.TokenOpsSdkError; }
|
|
604
566
|
});
|
|
605
567
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
606
568
|
enumerable: true,
|
|
607
|
-
get: function () { return
|
|
569
|
+
get: function () { return chunk67OV5CX2_cjs.TransferFailedError; }
|
|
608
570
|
});
|
|
609
571
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
610
572
|
enumerable: true,
|
|
611
|
-
get: function () { return
|
|
573
|
+
get: function () { return chunk67OV5CX2_cjs.UnknownWriteFailureError; }
|
|
612
574
|
});
|
|
613
575
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
614
576
|
enumerable: true,
|
|
615
|
-
get: function () { return
|
|
577
|
+
get: function () { return chunk67OV5CX2_cjs.UnsupportedChainError; }
|
|
616
578
|
});
|
|
617
579
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
618
580
|
enumerable: true,
|
|
619
|
-
get: function () { return
|
|
581
|
+
get: function () { return chunk67OV5CX2_cjs.UserDecryptNotAllowedError; }
|
|
620
582
|
});
|
|
621
583
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
622
584
|
enumerable: true,
|
|
623
|
-
get: function () { return
|
|
585
|
+
get: function () { return chunk67OV5CX2_cjs.UserRejectedSignatureError; }
|
|
624
586
|
});
|
|
625
587
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
626
588
|
enumerable: true,
|
|
627
|
-
get: function () { return
|
|
589
|
+
get: function () { return chunk67OV5CX2_cjs.WalletChainMismatchError; }
|
|
628
590
|
});
|
|
629
591
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
630
592
|
enumerable: true,
|
|
631
|
-
get: function () { return
|
|
593
|
+
get: function () { return chunk67OV5CX2_cjs.WalletRejectedError; }
|
|
632
594
|
});
|
|
633
595
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
634
596
|
enumerable: true,
|
|
635
|
-
get: function () { return
|
|
597
|
+
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
636
598
|
});
|
|
637
|
-
exports.useAccessClaimAmount = useAccessClaimAmount;
|
|
638
|
-
exports.useAirdropCanExtendClaimWindow = useAirdropCanExtendClaimWindow;
|
|
639
|
-
exports.useAirdropClaimTypehash = useAirdropClaimTypehash;
|
|
640
|
-
exports.useAirdropClaimedSignatures = useAirdropClaimedSignatures;
|
|
641
|
-
exports.useAirdropDeploymentBlockNumber = useAirdropDeploymentBlockNumber;
|
|
642
|
-
exports.useAirdropDomainSeparator = useAirdropDomainSeparator;
|
|
643
|
-
exports.useAirdropEndTime = useAirdropEndTime;
|
|
644
599
|
exports.useAirdropGasFee = useAirdropGasFee;
|
|
645
|
-
exports.useAirdropGrantRole = useAirdropGrantRole;
|
|
646
|
-
exports.useAirdropHasClaimEnded = useAirdropHasClaimEnded;
|
|
647
|
-
exports.useAirdropHasClaimStarted = useAirdropHasClaimStarted;
|
|
648
600
|
exports.useAirdropHasRole = useAirdropHasRole;
|
|
649
|
-
exports.
|
|
650
|
-
exports.
|
|
651
|
-
exports.useAirdropIsSignatureClaimed = useAirdropIsSignatureClaimed;
|
|
652
|
-
exports.useAirdropIsSignatureValid = useAirdropIsSignatureValid;
|
|
653
|
-
exports.useAirdropRevokeRole = useAirdropRevokeRole;
|
|
654
|
-
exports.useAirdropStartTime = useAirdropStartTime;
|
|
601
|
+
exports.useAirdropPause = useAirdropPause;
|
|
602
|
+
exports.useAirdropPaused = useAirdropPaused;
|
|
655
603
|
exports.useAirdropToken = useAirdropToken;
|
|
656
|
-
exports.
|
|
657
|
-
exports.
|
|
658
|
-
exports.
|
|
659
|
-
exports.
|
|
660
|
-
exports.
|
|
661
|
-
exports.
|
|
662
|
-
exports.
|
|
663
|
-
exports.useDisableCustomFee = useDisableCustomFee;
|
|
604
|
+
exports.useAirdropWindow = useAirdropWindow;
|
|
605
|
+
exports.useClaimedAmount = useClaimedAmount;
|
|
606
|
+
exports.useComplianceManager = useComplianceManager;
|
|
607
|
+
exports.useCreateEcdsaAirdrop = useCreateEcdsaAirdrop;
|
|
608
|
+
exports.useCreateMerkleAirdrop = useCreateMerkleAirdrop;
|
|
609
|
+
exports.useEcdsaClaim = useEcdsaClaim;
|
|
610
|
+
exports.useEffectiveUpgradeable = useEffectiveUpgradeable;
|
|
664
611
|
exports.useExtendClaimWindow = useExtendClaimWindow;
|
|
665
|
-
exports.
|
|
666
|
-
exports.
|
|
667
|
-
exports.
|
|
668
|
-
exports.
|
|
669
|
-
exports.
|
|
670
|
-
exports.
|
|
671
|
-
exports.
|
|
672
|
-
exports.
|
|
673
|
-
exports.useSetDefaultGasFee = useSetDefaultGasFee;
|
|
674
|
-
exports.useSetFeeCollector = useSetFeeCollector;
|
|
675
|
-
exports.useSetPaused = useSetPaused;
|
|
676
|
-
exports.useSignClaimAuthorization = useSignClaimAuthorization;
|
|
677
|
-
exports.useWithdraw = useWithdraw;
|
|
678
|
-
exports.useWithdrawOtherConfidentialToken = useWithdrawOtherConfidentialToken;
|
|
679
|
-
exports.useWithdrawOtherToken = useWithdrawOtherToken;
|
|
612
|
+
exports.useFactoryFees = useFactoryFees;
|
|
613
|
+
exports.useFactoryRegistry = useFactoryRegistry;
|
|
614
|
+
exports.useFundAirdrop = useFundAirdrop;
|
|
615
|
+
exports.useGrantInstanceRoles = useGrantInstanceRoles;
|
|
616
|
+
exports.useMerkleClaim = useMerkleClaim;
|
|
617
|
+
exports.useMerkleRoot = useMerkleRoot;
|
|
618
|
+
exports.useSetMerkleRoot = useSetMerkleRoot;
|
|
619
|
+
exports.useWithdrawConfidential = useWithdrawConfidential;
|