@tokenops/sdk 1.1.1 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +158 -2
- package/README.md +18 -8
- package/SECURITY.md +7 -1
- package/dist/{chunk-56UI7LUR.cjs → chunk-2RNW4MIJ.cjs} +37 -0
- package/dist/{chunk-VDXVNZCO.cjs → chunk-43RFBQ73.cjs} +85 -29
- package/dist/{chunk-BE2AIZ3K.js → chunk-46T67CE2.js} +1 -1
- package/dist/{chunk-WRCUDSUJ.js → chunk-4KJ66YRH.js} +61 -3
- package/dist/{chunk-ITQ7WKVC.cjs → chunk-4ZCXK4VI.cjs} +68 -8
- package/dist/{chunk-JFLEEXKP.js → chunk-6WSNS3UV.js} +58 -2
- package/dist/{chunk-W7JHOK7G.cjs → chunk-7G7UOQV4.cjs} +4 -4
- package/dist/{chunk-5KHIQG7Y.cjs → chunk-AYGRYDBX.cjs} +35 -36
- package/dist/{chunk-5SGMJADP.cjs → chunk-BD4LZBVF.cjs} +85 -9
- package/dist/{chunk-OYLZEEHF.cjs → chunk-BK7YIVLK.cjs} +304 -179
- package/dist/{chunk-SEKC7H5Y.cjs → chunk-CBRL2PJA.cjs} +12 -11
- package/dist/{chunk-XWDVPV42.js → chunk-CNP4L3GF.js} +4 -4
- package/dist/{chunk-IVE3QEGD.js → chunk-DRSPMIZ7.js} +28 -1
- package/dist/{chunk-SAGJIEQK.cjs → chunk-EUKPOXWR.cjs} +15 -16
- package/dist/chunk-FT4LNBOS.js +11 -0
- package/dist/{chunk-ITQBDRWX.js → chunk-HETNKZEE.js} +1 -1
- package/dist/{chunk-JJ4R5QXF.js → chunk-KSDSXJ34.js} +1 -1
- package/dist/{chunk-SYHXDHWX.cjs → chunk-LBWRFZR3.cjs} +218 -31
- package/dist/{chunk-ZXCOJY2Z.js → chunk-NFW7AUEX.js} +1 -1
- package/dist/{chunk-FPQBFIUW.cjs → chunk-OL6SHN3D.cjs} +3 -3
- package/dist/{chunk-XSNLAS5M.js → chunk-PD7ME2BT.js} +75 -2
- package/dist/{chunk-FXCW7LVB.js → chunk-QET3Q4JP.js} +94 -9
- package/dist/{chunk-M7V2EDPB.js → chunk-QKKBBH7I.js} +2 -2
- package/dist/{chunk-XXXDQSHE.js → chunk-S2XD75JM.js} +12 -3
- package/dist/{chunk-5SA2HF2W.cjs → chunk-SPGSO5SO.cjs} +31 -22
- package/dist/{chunk-Q7ARQSUH.cjs → chunk-SYHNZSZZ.cjs} +3 -3
- package/dist/{chunk-X56UVEXS.js → chunk-TN65XNTI.js} +248 -120
- package/dist/chunk-U57COLUE.js +56 -0
- package/dist/{chunk-OQZAZIAS.js → chunk-UE5XK2SY.js} +193 -6
- package/dist/{chunk-NS44KBV5.cjs → chunk-UJS4N2XM.cjs} +12 -12
- package/dist/{chunk-IR5AK5U5.js → chunk-V5D7BHW3.js} +4 -5
- package/dist/{chunk-3PQ2RFPC.js → chunk-VHSNYUYV.js} +5 -4
- package/dist/{chunk-CQIPRNS7.cjs → chunk-VR3FREBX.cjs} +3 -3
- package/dist/{chunk-G7G75C46.cjs → chunk-WO72UBQD.cjs} +11 -11
- package/dist/chunk-WOEETTH7.cjs +59 -0
- package/dist/{chunk-QE7ZONJ2.js → chunk-WTK6JDSI.js} +4 -5
- package/dist/{chunk-3ZRHDTEX.cjs → chunk-WUXUWTFW.cjs} +3 -3
- package/dist/{chunk-23F7JIK5.cjs → chunk-YFIWCYHC.cjs} +141 -54
- package/dist/{chunk-FYQ2UW4T.js → chunk-YPYCWLYP.js} +1 -1
- package/dist/chunk-ZQUE2B3Q.cjs +33 -0
- package/dist/core/addresses.d.ts +1 -1
- package/dist/core/errors.d.ts +41 -1
- package/dist/core/revert-mapper.d.ts +77 -0
- package/dist/core/wagmi-compat.d.ts +40 -0
- package/dist/fhe/index.cjs +134 -68
- package/dist/fhe/index.d.cts +2 -1
- package/dist/fhe/index.d.ts +2 -1
- package/dist/fhe/index.js +64 -10
- package/dist/fhe/mock-erc7984.d.ts +4 -4
- package/dist/fhe/operators.d.ts +142 -2
- package/dist/fhe/react/index.cjs +21 -8
- package/dist/fhe/react/index.d.cts +2 -0
- package/dist/fhe/react/index.d.ts +2 -0
- package/dist/fhe/react/index.js +8 -3
- package/dist/fhe/react/useEnsureOperator.d.ts +56 -0
- package/dist/fhe/react/useIsOperator.d.ts +54 -0
- package/dist/fhe/sepolia-encryptor-web.d.ts +45 -4
- package/dist/fhe/sepolia-encryptor.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/index.cjs +9 -9
- package/dist/fhe-airdrop/advanced/index.js +7 -7
- package/dist/fhe-airdrop/advanced/react/index.cjs +14 -14
- package/dist/fhe-airdrop/advanced/react/index.js +10 -10
- package/dist/fhe-airdrop/airdrop.d.ts +9 -0
- package/dist/fhe-airdrop/encryption.d.ts +8 -0
- package/dist/fhe-airdrop/factory.d.ts +86 -1
- package/dist/fhe-airdrop/index.cjs +69 -66
- package/dist/fhe-airdrop/index.d.cts +3 -3
- package/dist/fhe-airdrop/index.d.ts +3 -3
- package/dist/fhe-airdrop/index.js +7 -8
- package/dist/fhe-airdrop/react/index.cjs +176 -135
- package/dist/fhe-airdrop/react/index.d.cts +7 -4
- package/dist/fhe-airdrop/react/index.d.ts +7 -4
- package/dist/fhe-airdrop/react/index.js +43 -16
- package/dist/fhe-airdrop/react/useAccessClaimAmount.d.ts +17 -11
- package/dist/fhe-airdrop/react/useAirdropIsSignatureValid.d.ts +3 -2
- package/dist/fhe-airdrop/react/useClaim.d.ts +10 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/useCreateAndFundConfidentialAirdropAndGetAddress.d.ts +8 -0
- package/dist/fhe-airdrop/react/useFundConfidentialAirdrop.d.ts +8 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +51 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +1 -1
- package/dist/fhe-airdrop/types.d.ts +56 -0
- package/dist/fhe-disperse/encryption.d.ts +8 -0
- package/dist/fhe-disperse/errors.d.ts +55 -0
- package/dist/fhe-disperse/index.cjs +77 -66
- package/dist/fhe-disperse/index.d.cts +2 -2
- package/dist/fhe-disperse/index.d.ts +2 -2
- package/dist/fhe-disperse/index.js +8 -9
- package/dist/fhe-disperse/react/index.cjs +108 -87
- package/dist/fhe-disperse/react/index.d.cts +4 -2
- package/dist/fhe-disperse/react/index.d.ts +4 -2
- package/dist/fhe-disperse/react/index.js +12 -11
- package/dist/fhe-disperse/react/useCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useDisperse.d.ts +9 -0
- package/dist/fhe-disperse/react/usePreflightDisperse.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonCalculateFee.d.ts +7 -0
- package/dist/fhe-disperse/react/useSingletonWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-disperse/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-disperse/singleton.d.ts +29 -0
- package/dist/fhe-disperse/subtotals.d.ts +6 -0
- package/dist/fhe-vesting/advanced/index.cjs +8 -9
- package/dist/fhe-vesting/advanced/index.js +6 -7
- package/dist/fhe-vesting/advanced/react/index.cjs +15 -15
- package/dist/fhe-vesting/advanced/react/index.js +12 -12
- package/dist/fhe-vesting/encryption.d.ts +8 -0
- package/dist/fhe-vesting/index.cjs +82 -79
- package/dist/fhe-vesting/index.d.cts +2 -2
- package/dist/fhe-vesting/index.d.ts +2 -2
- package/dist/fhe-vesting/index.js +9 -10
- package/dist/fhe-vesting/manager.d.ts +119 -1
- package/dist/fhe-vesting/react/index.cjs +264 -224
- package/dist/fhe-vesting/react/index.d.cts +9 -6
- package/dist/fhe-vesting/react/index.d.ts +9 -6
- package/dist/fhe-vesting/react/index.js +44 -21
- package/dist/fhe-vesting/react/useAccessClaimableAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessSettledAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessTotalAllocation.d.ts +11 -3
- package/dist/fhe-vesting/react/useAccessVestedAmount.d.ts +11 -3
- package/dist/fhe-vesting/react/useAdminClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useAdminGetClaimableAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetSettledAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetTotalAllocation.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminGetVestedAmount.d.ts +1 -1
- package/dist/fhe-vesting/react/useAdminPartialClaim.d.ts +10 -0
- package/dist/fhe-vesting/react/useBatchCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useClaim.d.ts +3 -1
- package/dist/fhe-vesting/react/useCreateVesting.d.ts +8 -0
- package/dist/fhe-vesting/react/useDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/useManagerDiscloseHandleToParty.d.ts +1 -1
- package/dist/fhe-vesting/react/useManagerWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/react/usePartialClaim.d.ts +9 -1
- package/dist/fhe-vesting/react/usePreflightCreateVesting.d.ts +37 -0
- package/dist/fhe-vesting/react/useVestingClaim.d.ts +2 -0
- package/dist/fhe-vesting/react/useVestingInfo.d.ts +1 -1
- package/dist/fhe-vesting/react/useWithdrawAdmin.d.ts +6 -0
- package/dist/fhe-vesting/react/useWithdrawTokenFee.d.ts +6 -0
- package/dist/fhe-vesting/types.d.ts +45 -0
- package/dist/index.cjs +93 -86
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/testnet-faucet/index.cjs +58 -55
- package/dist/testnet-faucet/index.d.cts +1 -1
- package/dist/testnet-faucet/index.d.ts +1 -1
- package/dist/testnet-faucet/index.js +5 -6
- package/dist/testnet-faucet/react/index.cjs +60 -56
- package/dist/testnet-faucet/react/index.d.cts +3 -2
- package/dist/testnet-faucet/react/index.d.ts +3 -2
- package/dist/testnet-faucet/react/index.js +11 -11
- package/dist/testnet-faucet/react/useConfidentialBalance.d.ts +3 -2
- package/dist/testnet-faucet/react/useUnderlyingBalance.d.ts +2 -2
- package/package.json +14 -8
- package/dist/chunk-66IHPTOK.cjs +0 -20
- package/dist/chunk-KWFFIJYX.js +0 -11
- package/dist/fhe-airdrop/react/useAirdropClaim.d.ts +0 -25
- package/dist/fhe-airdrop/react/useGetClaimAmount.d.ts +0 -30
- package/dist/fhe-vesting/react/useGetClaimableAmount.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetSettledAmount.d.ts +0 -14
- package/dist/fhe-vesting/react/useGetTotalAllocation.d.ts +0 -13
- package/dist/fhe-vesting/react/useGetVestedAmount.d.ts +0 -25
|
@@ -1,40 +1,43 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
require('../../chunk-
|
|
7
|
-
require('../../chunk-
|
|
8
|
-
require('../../chunk-
|
|
9
|
-
require('../../chunk-
|
|
3
|
+
var chunkWO72UBQD_cjs = require('../../chunk-WO72UBQD.cjs');
|
|
4
|
+
var chunkSPGSO5SO_cjs = require('../../chunk-SPGSO5SO.cjs');
|
|
5
|
+
var chunkLBWRFZR3_cjs = require('../../chunk-LBWRFZR3.cjs');
|
|
6
|
+
var chunkWOEETTH7_cjs = require('../../chunk-WOEETTH7.cjs');
|
|
7
|
+
var chunkZQUE2B3Q_cjs = require('../../chunk-ZQUE2B3Q.cjs');
|
|
8
|
+
require('../../chunk-4ZCXK4VI.cjs');
|
|
9
|
+
require('../../chunk-SYHNZSZZ.cjs');
|
|
10
|
+
require('../../chunk-FWHYQZ5E.cjs');
|
|
11
|
+
require('../../chunk-43RFBQ73.cjs');
|
|
12
|
+
require('../../chunk-WUXUWTFW.cjs');
|
|
13
|
+
require('../../chunk-VR3FREBX.cjs');
|
|
14
|
+
var chunk2RNW4MIJ_cjs = require('../../chunk-2RNW4MIJ.cjs');
|
|
10
15
|
require('../../chunk-VJKZWYYJ.cjs');
|
|
11
|
-
require('../../chunk-66IHPTOK.cjs');
|
|
12
|
-
var chunk56UI7LUR_cjs = require('../../chunk-56UI7LUR.cjs');
|
|
13
16
|
var reactQuery = require('@tanstack/react-query');
|
|
14
17
|
var wagmi = require('wagmi');
|
|
15
18
|
|
|
16
19
|
function useConfidentialAirdropFactoryImplementation(options = {}) {
|
|
17
|
-
const { client, chainId, resolvedAddress } =
|
|
20
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
18
21
|
return reactQuery.useQuery({
|
|
19
|
-
queryKey:
|
|
22
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:implementation", chainId, resolvedAddress),
|
|
20
23
|
queryFn: () => client.implementation(),
|
|
21
24
|
enabled: !!client,
|
|
22
25
|
staleTime: 0
|
|
23
26
|
});
|
|
24
27
|
}
|
|
25
28
|
function useFactoryDefaultGasFee(options = {}) {
|
|
26
|
-
const { client, chainId, resolvedAddress } =
|
|
29
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
27
30
|
return reactQuery.useQuery({
|
|
28
|
-
queryKey:
|
|
31
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:defaultGasFee", chainId, resolvedAddress),
|
|
29
32
|
queryFn: () => client.defaultGasFee(),
|
|
30
33
|
enabled: !!client,
|
|
31
34
|
staleTime: 0
|
|
32
35
|
});
|
|
33
36
|
}
|
|
34
37
|
function useFactoryFeeCollector(options = {}) {
|
|
35
|
-
const { client, chainId, resolvedAddress } =
|
|
38
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
36
39
|
return reactQuery.useQuery({
|
|
37
|
-
queryKey:
|
|
40
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:feeCollector", chainId, resolvedAddress),
|
|
38
41
|
queryFn: () => client.feeCollector(),
|
|
39
42
|
enabled: !!client,
|
|
40
43
|
staleTime: 0
|
|
@@ -42,9 +45,9 @@ function useFactoryFeeCollector(options = {}) {
|
|
|
42
45
|
}
|
|
43
46
|
function useFactoryCustomFee(args = {}) {
|
|
44
47
|
const { creator, ...base } = args;
|
|
45
|
-
const { client, chainId, resolvedAddress } =
|
|
48
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
|
|
46
49
|
return reactQuery.useQuery({
|
|
47
|
-
queryKey:
|
|
50
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:getCustomFee", chainId, resolvedAddress, creator),
|
|
48
51
|
queryFn: () => client.getCustomFee(creator),
|
|
49
52
|
enabled: !!client && !!creator,
|
|
50
53
|
staleTime: 0
|
|
@@ -52,210 +55,233 @@ function useFactoryCustomFee(args = {}) {
|
|
|
52
55
|
}
|
|
53
56
|
function useFactoryInitCodeHash(args = {}) {
|
|
54
57
|
const { params, gasFee, ...base } = args;
|
|
55
|
-
const { client, chainId, resolvedAddress } =
|
|
58
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
|
|
56
59
|
return reactQuery.useQuery({
|
|
57
|
-
queryKey:
|
|
60
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("factory:getInitCodeHash", chainId, resolvedAddress, params, gasFee),
|
|
58
61
|
queryFn: () => client.getInitCodeHash({ params, gasFee }),
|
|
59
62
|
enabled: !!client && !!params && gasFee !== void 0,
|
|
60
63
|
staleTime: 0
|
|
61
64
|
});
|
|
62
65
|
}
|
|
66
|
+
function usePreflightCreateAirdrop(args = {}) {
|
|
67
|
+
const { params, creator, userSalt, funding, ...base } = args;
|
|
68
|
+
const { client, chainId, resolvedAddress } = chunkWO72UBQD_cjs.useMemoFactoryClient(base);
|
|
69
|
+
return reactQuery.useQuery({
|
|
70
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey(
|
|
71
|
+
"factory:preflightCreateAirdrop",
|
|
72
|
+
chainId,
|
|
73
|
+
resolvedAddress,
|
|
74
|
+
creator,
|
|
75
|
+
params,
|
|
76
|
+
userSalt,
|
|
77
|
+
funding
|
|
78
|
+
),
|
|
79
|
+
queryFn: () => client.preflightCreateAirdrop({
|
|
80
|
+
params,
|
|
81
|
+
creator,
|
|
82
|
+
...userSalt !== void 0 ? { userSalt } : {},
|
|
83
|
+
...funding !== void 0 ? { funding } : {}
|
|
84
|
+
}),
|
|
85
|
+
enabled: !!client && !!params && !!creator,
|
|
86
|
+
staleTime: 0
|
|
87
|
+
});
|
|
88
|
+
}
|
|
63
89
|
function useCreateConfidentialAirdropAndGetAddress(options = {}) {
|
|
64
|
-
const { client, resolutionError } =
|
|
90
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
65
91
|
return reactQuery.useMutation({
|
|
66
92
|
mutationFn: async (args) => {
|
|
67
93
|
if (!client) {
|
|
68
|
-
throw resolutionError ?? new
|
|
94
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdropAndGetAddress", "factory");
|
|
69
95
|
}
|
|
70
96
|
return client.createConfidentialAirdropAndGetAddress(args);
|
|
71
97
|
}
|
|
72
98
|
});
|
|
73
99
|
}
|
|
74
100
|
function useCreateConfidentialAirdrop(options = {}) {
|
|
75
|
-
const { client, resolutionError } =
|
|
101
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
76
102
|
return reactQuery.useMutation({
|
|
77
103
|
mutationFn: async (args) => {
|
|
78
104
|
if (!client) {
|
|
79
|
-
throw resolutionError ?? new
|
|
105
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateConfidentialAirdrop", "factory");
|
|
80
106
|
}
|
|
81
107
|
return client.createConfidentialAirdrop(args);
|
|
82
108
|
}
|
|
83
109
|
});
|
|
84
110
|
}
|
|
85
111
|
function useCreateAndFundConfidentialAirdrop(options = {}) {
|
|
86
|
-
const { client, resolutionError } =
|
|
112
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
87
113
|
return reactQuery.useMutation({
|
|
88
114
|
mutationFn: async (args) => {
|
|
89
115
|
if (!client) {
|
|
90
|
-
throw resolutionError ?? new
|
|
116
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdrop", "factory");
|
|
91
117
|
}
|
|
92
118
|
return client.createAndFundConfidentialAirdrop(args);
|
|
93
119
|
}
|
|
94
120
|
});
|
|
95
121
|
}
|
|
96
122
|
function useCreateAndFundConfidentialAirdropAndGetAddress(options = {}) {
|
|
97
|
-
const { client, resolutionError } =
|
|
123
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
98
124
|
return reactQuery.useMutation({
|
|
99
125
|
mutationFn: async (args) => {
|
|
100
126
|
if (!client) {
|
|
101
|
-
throw resolutionError ?? new
|
|
127
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useCreateAndFundConfidentialAirdropAndGetAddress", "factory");
|
|
102
128
|
}
|
|
103
129
|
return client.createAndFundConfidentialAirdropAndGetAddress(args);
|
|
104
130
|
}
|
|
105
131
|
});
|
|
106
132
|
}
|
|
107
133
|
function useFundConfidentialAirdrop(options = {}) {
|
|
108
|
-
const { client, resolutionError } =
|
|
134
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
109
135
|
return reactQuery.useMutation({
|
|
110
136
|
mutationFn: async (args) => {
|
|
111
137
|
if (!client) {
|
|
112
|
-
throw resolutionError ?? new
|
|
138
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useFundConfidentialAirdrop", "factory");
|
|
113
139
|
}
|
|
114
140
|
return client.fundConfidentialAirdrop(args);
|
|
115
141
|
}
|
|
116
142
|
});
|
|
117
143
|
}
|
|
118
144
|
function useSetFeeCollector(options = {}) {
|
|
119
|
-
const { client, resolutionError } =
|
|
145
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
120
146
|
return reactQuery.useMutation({
|
|
121
147
|
mutationFn: async ({ newFeeCollector, account }) => {
|
|
122
|
-
if (!client) throw resolutionError ?? new
|
|
148
|
+
if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetFeeCollector", "factory");
|
|
123
149
|
return client.setFeeCollector(newFeeCollector, account);
|
|
124
150
|
}
|
|
125
151
|
});
|
|
126
152
|
}
|
|
127
153
|
function useSetDefaultGasFee(options = {}) {
|
|
128
|
-
const { client, resolutionError } =
|
|
154
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
129
155
|
return reactQuery.useMutation({
|
|
130
156
|
mutationFn: async ({ newGasFee, account }) => {
|
|
131
157
|
if (!client)
|
|
132
|
-
throw resolutionError ?? new
|
|
158
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetDefaultGasFee", "factory");
|
|
133
159
|
return client.setDefaultGasFee(newGasFee, account);
|
|
134
160
|
}
|
|
135
161
|
});
|
|
136
162
|
}
|
|
137
163
|
function useSetCustomFee(options = {}) {
|
|
138
|
-
const { client, resolutionError } =
|
|
164
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
139
165
|
return reactQuery.useMutation({
|
|
140
166
|
mutationFn: async ({ campaignCreator, gasFee, account }) => {
|
|
141
|
-
if (!client) throw resolutionError ?? new
|
|
167
|
+
if (!client) throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useSetCustomFee", "factory");
|
|
142
168
|
return client.setCustomFee(campaignCreator, gasFee, account);
|
|
143
169
|
}
|
|
144
170
|
});
|
|
145
171
|
}
|
|
146
172
|
function useDisableCustomFee(options = {}) {
|
|
147
|
-
const { client, resolutionError } =
|
|
173
|
+
const { client, resolutionError } = chunkWO72UBQD_cjs.useMemoFactoryClient(options);
|
|
148
174
|
return reactQuery.useMutation({
|
|
149
175
|
mutationFn: async ({ campaignCreator, account }) => {
|
|
150
176
|
if (!client)
|
|
151
|
-
throw resolutionError ?? new
|
|
177
|
+
throw resolutionError ?? new chunk2RNW4MIJ_cjs.MissingClientError("useDisableCustomFee", "factory");
|
|
152
178
|
return client.disableCustomFee(campaignCreator, account);
|
|
153
179
|
}
|
|
154
180
|
});
|
|
155
181
|
}
|
|
156
182
|
function useAirdropToken(options) {
|
|
157
|
-
const { client, chainId } =
|
|
183
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
158
184
|
return reactQuery.useQuery({
|
|
159
|
-
queryKey:
|
|
185
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:TOKEN", chainId, options.address),
|
|
160
186
|
queryFn: () => client.token(),
|
|
161
187
|
enabled: !!client,
|
|
162
188
|
staleTime: 0
|
|
163
189
|
});
|
|
164
190
|
}
|
|
165
191
|
function useAirdropGasFee(options) {
|
|
166
|
-
const { client, chainId } =
|
|
192
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
167
193
|
return reactQuery.useQuery({
|
|
168
|
-
queryKey:
|
|
194
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:GAS_FEE", chainId, options.address),
|
|
169
195
|
queryFn: () => client.gasFee(),
|
|
170
196
|
enabled: !!client,
|
|
171
197
|
staleTime: 0
|
|
172
198
|
});
|
|
173
199
|
}
|
|
174
200
|
function useAirdropStartTime(options) {
|
|
175
|
-
const { client, chainId } =
|
|
201
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
176
202
|
return reactQuery.useQuery({
|
|
177
|
-
queryKey:
|
|
203
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:START_TIME", chainId, options.address),
|
|
178
204
|
queryFn: () => client.startTime(),
|
|
179
205
|
enabled: !!client,
|
|
180
206
|
staleTime: 0
|
|
181
207
|
});
|
|
182
208
|
}
|
|
183
209
|
function useAirdropCanExtendClaimWindow(options) {
|
|
184
|
-
const { client, chainId } =
|
|
210
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
185
211
|
return reactQuery.useQuery({
|
|
186
|
-
queryKey:
|
|
212
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CAN_EXTEND_CLAIM_WINDOW", chainId, options.address),
|
|
187
213
|
queryFn: () => client.canExtendClaimWindow(),
|
|
188
214
|
enabled: !!client,
|
|
189
215
|
staleTime: 0
|
|
190
216
|
});
|
|
191
217
|
}
|
|
192
218
|
function useAirdropEndTime(options) {
|
|
193
|
-
const { client, chainId } =
|
|
219
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
194
220
|
return reactQuery.useQuery({
|
|
195
|
-
queryKey:
|
|
221
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:endTime", chainId, options.address),
|
|
196
222
|
queryFn: () => client.endTime(),
|
|
197
223
|
enabled: !!client,
|
|
198
224
|
staleTime: 0
|
|
199
225
|
});
|
|
200
226
|
}
|
|
201
227
|
function useAirdropIsPaused(options) {
|
|
202
|
-
const { client, chainId } =
|
|
228
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
203
229
|
return reactQuery.useQuery({
|
|
204
|
-
queryKey:
|
|
230
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isPaused", chainId, options.address),
|
|
205
231
|
queryFn: () => client.isPaused(),
|
|
206
232
|
enabled: !!client,
|
|
207
233
|
staleTime: 0
|
|
208
234
|
});
|
|
209
235
|
}
|
|
210
236
|
function useAirdropDeploymentBlockNumber(options) {
|
|
211
|
-
const { client, chainId } =
|
|
237
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
212
238
|
return reactQuery.useQuery({
|
|
213
|
-
queryKey:
|
|
239
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:deploymentBlockNumber", chainId, options.address),
|
|
214
240
|
queryFn: () => client.deploymentBlockNumber(),
|
|
215
241
|
enabled: !!client,
|
|
216
242
|
staleTime: 0
|
|
217
243
|
});
|
|
218
244
|
}
|
|
219
245
|
function useAirdropDomainSeparator(options) {
|
|
220
|
-
const { client, chainId } =
|
|
246
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
221
247
|
return reactQuery.useQuery({
|
|
222
|
-
queryKey:
|
|
248
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:DOMAIN_SEPARATOR", chainId, options.address),
|
|
223
249
|
queryFn: () => client.domainSeparator(),
|
|
224
250
|
enabled: !!client,
|
|
225
251
|
staleTime: 0
|
|
226
252
|
});
|
|
227
253
|
}
|
|
228
254
|
function useAirdropClaimTypehash(options) {
|
|
229
|
-
const { client, chainId } =
|
|
255
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
230
256
|
return reactQuery.useQuery({
|
|
231
|
-
queryKey:
|
|
257
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:CLAIM_TYPEHASH", chainId, options.address),
|
|
232
258
|
queryFn: () => client.claimTypehash(),
|
|
233
259
|
enabled: !!client,
|
|
234
260
|
staleTime: 0
|
|
235
261
|
});
|
|
236
262
|
}
|
|
237
263
|
function useAirdropIsClaimWindowActive(options) {
|
|
238
|
-
const { client, chainId } =
|
|
264
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
239
265
|
return reactQuery.useQuery({
|
|
240
|
-
queryKey:
|
|
266
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:isClaimWindowActive", chainId, options.address),
|
|
241
267
|
queryFn: () => client.isClaimWindowActive(),
|
|
242
268
|
enabled: !!client,
|
|
243
269
|
staleTime: 0
|
|
244
270
|
});
|
|
245
271
|
}
|
|
246
272
|
function useAirdropHasClaimStarted(options) {
|
|
247
|
-
const { client, chainId } =
|
|
273
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
248
274
|
return reactQuery.useQuery({
|
|
249
|
-
queryKey:
|
|
275
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimStarted", chainId, options.address),
|
|
250
276
|
queryFn: () => client.hasClaimStarted(),
|
|
251
277
|
enabled: !!client,
|
|
252
278
|
staleTime: 0
|
|
253
279
|
});
|
|
254
280
|
}
|
|
255
281
|
function useAirdropHasClaimEnded(options) {
|
|
256
|
-
const { client, chainId } =
|
|
282
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
257
283
|
return reactQuery.useQuery({
|
|
258
|
-
queryKey:
|
|
284
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasClaimEnded", chainId, options.address),
|
|
259
285
|
queryFn: () => client.hasClaimEnded(),
|
|
260
286
|
enabled: !!client,
|
|
261
287
|
staleTime: 0
|
|
@@ -263,9 +289,9 @@ function useAirdropHasClaimEnded(options) {
|
|
|
263
289
|
}
|
|
264
290
|
function useAirdropClaimedSignatures(args) {
|
|
265
291
|
const { signatureHash, ...base } = args;
|
|
266
|
-
const { client, chainId } =
|
|
292
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
267
293
|
return reactQuery.useQuery({
|
|
268
|
-
queryKey:
|
|
294
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:claimedSignatures", chainId, base.address, signatureHash),
|
|
269
295
|
queryFn: () => client.claimedSignatures(signatureHash),
|
|
270
296
|
enabled: !!client && !!signatureHash,
|
|
271
297
|
staleTime: 0
|
|
@@ -273,9 +299,9 @@ function useAirdropClaimedSignatures(args) {
|
|
|
273
299
|
}
|
|
274
300
|
function useAirdropIsSignatureClaimed(args) {
|
|
275
301
|
const { user, encryptedAmountHandle, ...base } = args;
|
|
276
|
-
const { client, chainId } =
|
|
302
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
277
303
|
return reactQuery.useQuery({
|
|
278
|
-
queryKey:
|
|
304
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey(
|
|
279
305
|
"airdrop:isSignatureClaimed",
|
|
280
306
|
chainId,
|
|
281
307
|
base.address,
|
|
@@ -289,11 +315,11 @@ function useAirdropIsSignatureClaimed(args) {
|
|
|
289
315
|
}
|
|
290
316
|
function useAirdropIsSignatureValid(args) {
|
|
291
317
|
const { encryptedAmountHandle, signature, caller, ...base } = args;
|
|
292
|
-
const { client, chainId } =
|
|
293
|
-
const { address: connectedAddress } =
|
|
318
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
319
|
+
const { address: connectedAddress } = chunkZQUE2B3Q_cjs.useWagmiAccount();
|
|
294
320
|
const resolvedCaller = caller ?? connectedAddress;
|
|
295
321
|
return reactQuery.useQuery({
|
|
296
|
-
queryKey:
|
|
322
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey(
|
|
297
323
|
"airdrop:isSignatureValid",
|
|
298
324
|
chainId,
|
|
299
325
|
base.address,
|
|
@@ -312,100 +338,101 @@ function useAirdropIsSignatureValid(args) {
|
|
|
312
338
|
}
|
|
313
339
|
function useAirdropHasRole(args) {
|
|
314
340
|
const { role, account, ...base } = args;
|
|
315
|
-
const { client, chainId } =
|
|
341
|
+
const { client, chainId } = chunkWO72UBQD_cjs.useMemoAirdropClient(base);
|
|
316
342
|
return reactQuery.useQuery({
|
|
317
|
-
queryKey:
|
|
343
|
+
queryKey: chunkWO72UBQD_cjs.buildQueryKey("airdrop:hasRole", chainId, base.address, role, account),
|
|
318
344
|
queryFn: () => client.hasRole(role, account),
|
|
319
345
|
enabled: !!client && !!role && !!account,
|
|
320
346
|
staleTime: 0
|
|
321
347
|
});
|
|
322
348
|
}
|
|
323
349
|
function useClaim(options) {
|
|
324
|
-
const { client } =
|
|
350
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
325
351
|
return reactQuery.useMutation({
|
|
326
352
|
mutationFn: async (args) => {
|
|
327
|
-
if (!client) throw new
|
|
353
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useClaim", "airdrop");
|
|
328
354
|
return client.claim(args);
|
|
329
355
|
}
|
|
330
356
|
});
|
|
331
357
|
}
|
|
332
|
-
function
|
|
333
|
-
const { client } =
|
|
358
|
+
function useAccessClaimAmount(options) {
|
|
359
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
334
360
|
return reactQuery.useMutation({
|
|
335
361
|
mutationFn: async (args) => {
|
|
336
|
-
if (!client) throw new
|
|
362
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAccessClaimAmount", "airdrop");
|
|
337
363
|
return client.getClaimAmount(args);
|
|
338
364
|
}
|
|
339
365
|
});
|
|
340
366
|
}
|
|
367
|
+
var useGetClaimAmount = useAccessClaimAmount;
|
|
341
368
|
function useWithdraw(options) {
|
|
342
|
-
const { client } =
|
|
369
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
343
370
|
return reactQuery.useMutation({
|
|
344
371
|
mutationFn: async ({ recipient, account }) => {
|
|
345
|
-
if (!client) throw new
|
|
372
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdraw", "airdrop");
|
|
346
373
|
return client.withdraw(recipient, account);
|
|
347
374
|
}
|
|
348
375
|
});
|
|
349
376
|
}
|
|
350
377
|
function useSetPaused(options) {
|
|
351
|
-
const { client } =
|
|
378
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
352
379
|
return reactQuery.useMutation({
|
|
353
380
|
mutationFn: async ({ paused, account }) => {
|
|
354
|
-
if (!client) throw new
|
|
381
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useSetPaused", "airdrop");
|
|
355
382
|
return client.setPaused(paused, account);
|
|
356
383
|
}
|
|
357
384
|
});
|
|
358
385
|
}
|
|
359
386
|
function useExtendClaimWindow(options) {
|
|
360
|
-
const { client } =
|
|
387
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
361
388
|
return reactQuery.useMutation({
|
|
362
389
|
mutationFn: async ({ newEndTime, account }) => {
|
|
363
|
-
if (!client) throw new
|
|
390
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useExtendClaimWindow", "airdrop");
|
|
364
391
|
return client.extendClaimWindow(newEndTime, account);
|
|
365
392
|
}
|
|
366
393
|
});
|
|
367
394
|
}
|
|
368
395
|
function useWithdrawOtherToken(options) {
|
|
369
|
-
const { client } =
|
|
396
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
370
397
|
return reactQuery.useMutation({
|
|
371
398
|
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
372
|
-
if (!client) throw new
|
|
399
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherToken", "airdrop");
|
|
373
400
|
return client.withdrawOtherToken(tokenAddress, recipient, account);
|
|
374
401
|
}
|
|
375
402
|
});
|
|
376
403
|
}
|
|
377
404
|
function useWithdrawOtherConfidentialToken(options) {
|
|
378
|
-
const { client } =
|
|
405
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
379
406
|
return reactQuery.useMutation({
|
|
380
407
|
mutationFn: async ({ tokenAddress, recipient, account }) => {
|
|
381
|
-
if (!client) throw new
|
|
408
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useWithdrawOtherConfidentialToken", "airdrop");
|
|
382
409
|
return client.withdrawOtherConfidentialToken(tokenAddress, recipient, account);
|
|
383
410
|
}
|
|
384
411
|
});
|
|
385
412
|
}
|
|
386
413
|
function useAirdropWithdrawGasFee(options) {
|
|
387
|
-
const { client } =
|
|
414
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
388
415
|
return reactQuery.useMutation({
|
|
389
416
|
mutationFn: async ({ recipient, amount, account }) => {
|
|
390
|
-
if (!client) throw new
|
|
417
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropWithdrawGasFee", "airdrop");
|
|
391
418
|
return client.withdrawGasFee(recipient, amount, account);
|
|
392
419
|
}
|
|
393
420
|
});
|
|
394
421
|
}
|
|
395
422
|
function useAirdropGrantRole(options) {
|
|
396
|
-
const { client } =
|
|
423
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
397
424
|
return reactQuery.useMutation({
|
|
398
425
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
399
|
-
if (!client) throw new
|
|
426
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropGrantRole", "airdrop");
|
|
400
427
|
return client.grantRole(role, accountTarget, account);
|
|
401
428
|
}
|
|
402
429
|
});
|
|
403
430
|
}
|
|
404
431
|
function useAirdropRevokeRole(options) {
|
|
405
|
-
const { client } =
|
|
432
|
+
const { client } = chunkWO72UBQD_cjs.useMemoAirdropClient(options);
|
|
406
433
|
return reactQuery.useMutation({
|
|
407
434
|
mutationFn: async ({ role, accountTarget, account }) => {
|
|
408
|
-
if (!client) throw new
|
|
435
|
+
if (!client) throw new chunk2RNW4MIJ_cjs.MissingClientError("useAirdropRevokeRole", "airdrop");
|
|
409
436
|
return client.revokeRole(role, accountTarget, account);
|
|
410
437
|
}
|
|
411
438
|
});
|
|
@@ -415,9 +442,9 @@ function useSignClaimAuthorization(options = {}) {
|
|
|
415
442
|
return reactQuery.useMutation({
|
|
416
443
|
mutationFn: async (args) => {
|
|
417
444
|
if (!walletClient) {
|
|
418
|
-
throw new
|
|
445
|
+
throw new chunk2RNW4MIJ_cjs.MissingWalletClientError("useSignClaimAuthorization");
|
|
419
446
|
}
|
|
420
|
-
return
|
|
447
|
+
return chunkLBWRFZR3_cjs.signClaimAuthorization({
|
|
421
448
|
walletClient,
|
|
422
449
|
airdropAddress: args.airdropAddress,
|
|
423
450
|
recipient: args.recipient,
|
|
@@ -429,172 +456,185 @@ function useSignClaimAuthorization(options = {}) {
|
|
|
429
456
|
|
|
430
457
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
431
458
|
enumerable: true,
|
|
432
|
-
get: function () { return
|
|
459
|
+
get: function () { return chunkSPGSO5SO_cjs.AlreadyClaimedError; }
|
|
433
460
|
});
|
|
434
461
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
435
462
|
enumerable: true,
|
|
436
|
-
get: function () { return
|
|
463
|
+
get: function () { return chunkSPGSO5SO_cjs.ClaimNotStartedError; }
|
|
437
464
|
});
|
|
438
465
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
439
466
|
enumerable: true,
|
|
440
|
-
get: function () { return
|
|
467
|
+
get: function () { return chunkSPGSO5SO_cjs.ClaimWindowClosedError; }
|
|
441
468
|
});
|
|
442
469
|
Object.defineProperty(exports, "encryptUint64", {
|
|
443
470
|
enumerable: true,
|
|
444
|
-
get: function () { return
|
|
471
|
+
get: function () { return chunkLBWRFZR3_cjs.encryptUint64; }
|
|
445
472
|
});
|
|
446
473
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
447
474
|
enumerable: true,
|
|
448
|
-
get: function () { return
|
|
475
|
+
get: function () { return chunkLBWRFZR3_cjs.encryptUint64Batch; }
|
|
449
476
|
});
|
|
450
477
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
451
478
|
enumerable: true,
|
|
452
|
-
get: function () { return
|
|
479
|
+
get: function () { return chunkLBWRFZR3_cjs.resolveEncryptor; }
|
|
453
480
|
});
|
|
454
481
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
455
482
|
enumerable: true,
|
|
456
|
-
get: function () { return
|
|
483
|
+
get: function () { return chunkLBWRFZR3_cjs.signClaimAuthorization; }
|
|
484
|
+
});
|
|
485
|
+
Object.defineProperty(exports, "useEnsureOperator", {
|
|
486
|
+
enumerable: true,
|
|
487
|
+
get: function () { return chunkWOEETTH7_cjs.useEnsureOperator; }
|
|
488
|
+
});
|
|
489
|
+
Object.defineProperty(exports, "useIsOperator", {
|
|
490
|
+
enumerable: true,
|
|
491
|
+
get: function () { return chunkWOEETTH7_cjs.useIsOperator; }
|
|
457
492
|
});
|
|
458
493
|
Object.defineProperty(exports, "AccessDeniedError", {
|
|
459
494
|
enumerable: true,
|
|
460
|
-
get: function () { return
|
|
495
|
+
get: function () { return chunk2RNW4MIJ_cjs.AccessDeniedError; }
|
|
461
496
|
});
|
|
462
497
|
Object.defineProperty(exports, "AlreadyInitializedError", {
|
|
463
498
|
enumerable: true,
|
|
464
|
-
get: function () { return
|
|
499
|
+
get: function () { return chunk2RNW4MIJ_cjs.AlreadyInitializedError; }
|
|
465
500
|
});
|
|
466
501
|
Object.defineProperty(exports, "BatchTooLargeError", {
|
|
467
502
|
enumerable: true,
|
|
468
|
-
get: function () { return
|
|
503
|
+
get: function () { return chunk2RNW4MIJ_cjs.BatchTooLargeError; }
|
|
469
504
|
});
|
|
470
505
|
Object.defineProperty(exports, "ContractRevertError", {
|
|
471
506
|
enumerable: true,
|
|
472
|
-
get: function () { return
|
|
507
|
+
get: function () { return chunk2RNW4MIJ_cjs.ContractRevertError; }
|
|
473
508
|
});
|
|
474
509
|
Object.defineProperty(exports, "DecryptionFailedError", {
|
|
475
510
|
enumerable: true,
|
|
476
|
-
get: function () { return
|
|
511
|
+
get: function () { return chunk2RNW4MIJ_cjs.DecryptionFailedError; }
|
|
477
512
|
});
|
|
478
513
|
Object.defineProperty(exports, "DeploymentAddressUnavailableError", {
|
|
479
514
|
enumerable: true,
|
|
480
|
-
get: function () { return
|
|
515
|
+
get: function () { return chunk2RNW4MIJ_cjs.DeploymentAddressUnavailableError; }
|
|
481
516
|
});
|
|
482
517
|
Object.defineProperty(exports, "EncryptionFailedError", {
|
|
483
518
|
enumerable: true,
|
|
484
|
-
get: function () { return
|
|
519
|
+
get: function () { return chunk2RNW4MIJ_cjs.EncryptionFailedError; }
|
|
485
520
|
});
|
|
486
521
|
Object.defineProperty(exports, "FeatureDisabledError", {
|
|
487
522
|
enumerable: true,
|
|
488
|
-
get: function () { return
|
|
523
|
+
get: function () { return chunk2RNW4MIJ_cjs.FeatureDisabledError; }
|
|
489
524
|
});
|
|
490
525
|
Object.defineProperty(exports, "FheHandleNotAllowedError", {
|
|
491
526
|
enumerable: true,
|
|
492
|
-
get: function () { return
|
|
527
|
+
get: function () { return chunk2RNW4MIJ_cjs.FheHandleNotAllowedError; }
|
|
493
528
|
});
|
|
494
529
|
Object.defineProperty(exports, "InsufficientBalanceError", {
|
|
495
530
|
enumerable: true,
|
|
496
|
-
get: function () { return
|
|
531
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientBalanceError; }
|
|
497
532
|
});
|
|
498
533
|
Object.defineProperty(exports, "InsufficientFeeError", {
|
|
499
534
|
enumerable: true,
|
|
500
|
-
get: function () { return
|
|
535
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientFeeError; }
|
|
501
536
|
});
|
|
502
537
|
Object.defineProperty(exports, "InsufficientGasFundsError", {
|
|
503
538
|
enumerable: true,
|
|
504
|
-
get: function () { return
|
|
539
|
+
get: function () { return chunk2RNW4MIJ_cjs.InsufficientGasFundsError; }
|
|
505
540
|
});
|
|
506
541
|
Object.defineProperty(exports, "InvalidArgumentError", {
|
|
507
542
|
enumerable: true,
|
|
508
|
-
get: function () { return
|
|
543
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidArgumentError; }
|
|
509
544
|
});
|
|
510
545
|
Object.defineProperty(exports, "InvalidSignatureError", {
|
|
511
546
|
enumerable: true,
|
|
512
|
-
get: function () { return
|
|
547
|
+
get: function () { return chunk2RNW4MIJ_cjs.InvalidSignatureError; }
|
|
513
548
|
});
|
|
514
549
|
Object.defineProperty(exports, "MissingAccountError", {
|
|
515
550
|
enumerable: true,
|
|
516
|
-
get: function () { return
|
|
551
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingAccountError; }
|
|
517
552
|
});
|
|
518
553
|
Object.defineProperty(exports, "MissingClientError", {
|
|
519
554
|
enumerable: true,
|
|
520
|
-
get: function () { return
|
|
555
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingClientError; }
|
|
521
556
|
});
|
|
522
557
|
Object.defineProperty(exports, "MissingEncryptorError", {
|
|
523
558
|
enumerable: true,
|
|
524
|
-
get: function () { return
|
|
559
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingEncryptorError; }
|
|
525
560
|
});
|
|
526
561
|
Object.defineProperty(exports, "MissingPublicClientError", {
|
|
527
562
|
enumerable: true,
|
|
528
|
-
get: function () { return
|
|
563
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingPublicClientError; }
|
|
529
564
|
});
|
|
530
565
|
Object.defineProperty(exports, "MissingWalletClientError", {
|
|
531
566
|
enumerable: true,
|
|
532
|
-
get: function () { return
|
|
567
|
+
get: function () { return chunk2RNW4MIJ_cjs.MissingWalletClientError; }
|
|
533
568
|
});
|
|
534
569
|
Object.defineProperty(exports, "NetworkError", {
|
|
535
570
|
enumerable: true,
|
|
536
|
-
get: function () { return
|
|
571
|
+
get: function () { return chunk2RNW4MIJ_cjs.NetworkError; }
|
|
572
|
+
});
|
|
573
|
+
Object.defineProperty(exports, "OperatorNotApprovedError", {
|
|
574
|
+
enumerable: true,
|
|
575
|
+
get: function () { return chunk2RNW4MIJ_cjs.OperatorNotApprovedError; }
|
|
537
576
|
});
|
|
538
577
|
Object.defineProperty(exports, "PausedError", {
|
|
539
578
|
enumerable: true,
|
|
540
|
-
get: function () { return
|
|
579
|
+
get: function () { return chunk2RNW4MIJ_cjs.PausedError; }
|
|
541
580
|
});
|
|
542
581
|
Object.defineProperty(exports, "ReceiptEventAmbiguousError", {
|
|
543
582
|
enumerable: true,
|
|
544
|
-
get: function () { return
|
|
583
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventAmbiguousError; }
|
|
545
584
|
});
|
|
546
585
|
Object.defineProperty(exports, "ReceiptEventNotFoundError", {
|
|
547
586
|
enumerable: true,
|
|
548
|
-
get: function () { return
|
|
587
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReceiptEventNotFoundError; }
|
|
549
588
|
});
|
|
550
589
|
Object.defineProperty(exports, "ReentrancyError", {
|
|
551
590
|
enumerable: true,
|
|
552
|
-
get: function () { return
|
|
591
|
+
get: function () { return chunk2RNW4MIJ_cjs.ReentrancyError; }
|
|
553
592
|
});
|
|
554
593
|
Object.defineProperty(exports, "RelayerUnreachableError", {
|
|
555
594
|
enumerable: true,
|
|
556
|
-
get: function () { return
|
|
595
|
+
get: function () { return chunk2RNW4MIJ_cjs.RelayerUnreachableError; }
|
|
557
596
|
});
|
|
558
597
|
Object.defineProperty(exports, "SigningFailedError", {
|
|
559
598
|
enumerable: true,
|
|
560
|
-
get: function () { return
|
|
599
|
+
get: function () { return chunk2RNW4MIJ_cjs.SigningFailedError; }
|
|
561
600
|
});
|
|
562
601
|
Object.defineProperty(exports, "TokenOpsSdkError", {
|
|
563
602
|
enumerable: true,
|
|
564
|
-
get: function () { return
|
|
603
|
+
get: function () { return chunk2RNW4MIJ_cjs.TokenOpsSdkError; }
|
|
565
604
|
});
|
|
566
605
|
Object.defineProperty(exports, "TransferFailedError", {
|
|
567
606
|
enumerable: true,
|
|
568
|
-
get: function () { return
|
|
607
|
+
get: function () { return chunk2RNW4MIJ_cjs.TransferFailedError; }
|
|
569
608
|
});
|
|
570
609
|
Object.defineProperty(exports, "UnknownWriteFailureError", {
|
|
571
610
|
enumerable: true,
|
|
572
|
-
get: function () { return
|
|
611
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnknownWriteFailureError; }
|
|
573
612
|
});
|
|
574
613
|
Object.defineProperty(exports, "UnsupportedChainError", {
|
|
575
614
|
enumerable: true,
|
|
576
|
-
get: function () { return
|
|
615
|
+
get: function () { return chunk2RNW4MIJ_cjs.UnsupportedChainError; }
|
|
577
616
|
});
|
|
578
617
|
Object.defineProperty(exports, "UserDecryptNotAllowedError", {
|
|
579
618
|
enumerable: true,
|
|
580
|
-
get: function () { return
|
|
619
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserDecryptNotAllowedError; }
|
|
581
620
|
});
|
|
582
621
|
Object.defineProperty(exports, "UserRejectedSignatureError", {
|
|
583
622
|
enumerable: true,
|
|
584
|
-
get: function () { return
|
|
623
|
+
get: function () { return chunk2RNW4MIJ_cjs.UserRejectedSignatureError; }
|
|
585
624
|
});
|
|
586
625
|
Object.defineProperty(exports, "WalletChainMismatchError", {
|
|
587
626
|
enumerable: true,
|
|
588
|
-
get: function () { return
|
|
627
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletChainMismatchError; }
|
|
589
628
|
});
|
|
590
629
|
Object.defineProperty(exports, "WalletRejectedError", {
|
|
591
630
|
enumerable: true,
|
|
592
|
-
get: function () { return
|
|
631
|
+
get: function () { return chunk2RNW4MIJ_cjs.WalletRejectedError; }
|
|
593
632
|
});
|
|
594
633
|
Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
595
634
|
enumerable: true,
|
|
596
|
-
get: function () { return
|
|
635
|
+
get: function () { return chunk2RNW4MIJ_cjs.isTokenOpsSdkError; }
|
|
597
636
|
});
|
|
637
|
+
exports.useAccessClaimAmount = useAccessClaimAmount;
|
|
598
638
|
exports.useAirdropCanExtendClaimWindow = useAirdropCanExtendClaimWindow;
|
|
599
639
|
exports.useAirdropClaimTypehash = useAirdropClaimTypehash;
|
|
600
640
|
exports.useAirdropClaimedSignatures = useAirdropClaimedSignatures;
|
|
@@ -628,6 +668,7 @@ exports.useFactoryFeeCollector = useFactoryFeeCollector;
|
|
|
628
668
|
exports.useFactoryInitCodeHash = useFactoryInitCodeHash;
|
|
629
669
|
exports.useFundConfidentialAirdrop = useFundConfidentialAirdrop;
|
|
630
670
|
exports.useGetClaimAmount = useGetClaimAmount;
|
|
671
|
+
exports.usePreflightCreateAirdrop = usePreflightCreateAirdrop;
|
|
631
672
|
exports.useSetCustomFee = useSetCustomFee;
|
|
632
673
|
exports.useSetDefaultGasFee = useSetDefaultGasFee;
|
|
633
674
|
exports.useSetFeeCollector = useSetFeeCollector;
|