@tokenops/sdk 2.0.0-alpha.1 → 2.0.0-alpha.3
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 +67 -2
- package/README.md +14 -8
- package/dist/{chunk-PUX5VXDB.cjs → chunk-4AWQJQXY.cjs} +1415 -69
- package/dist/{chunk-74QFZ5MK.js → chunk-4IB4IY5Y.js} +1 -1
- package/dist/{chunk-DZHYSUGY.js → chunk-6HCT4QIX.js} +12 -5
- package/dist/{chunk-FGEB7RMY.cjs → chunk-6XOAYDC6.cjs} +4 -4
- package/dist/{chunk-XAYGD4E4.cjs → chunk-AHU2HMNE.cjs} +3 -3
- package/dist/{chunk-6NAVMWZQ.js → chunk-BPIVVCSQ.js} +2 -2
- package/dist/{chunk-GKKDAW44.js → chunk-BXX5TETM.js} +1401 -59
- package/dist/{chunk-456VDDA3.js → chunk-GCJFAY4X.js} +78 -25
- package/dist/{chunk-CTED3MTR.cjs → chunk-GKYZQJGP.cjs} +82 -29
- package/dist/{chunk-JZLGCTGK.cjs → chunk-IEKTGJ4J.cjs} +2 -2
- package/dist/{chunk-6PXXGACR.cjs → chunk-JVNJSDQ4.cjs} +2 -2
- package/dist/{chunk-O5676ZWY.js → chunk-LEYYG4RF.js} +232 -6
- package/dist/{chunk-335Z2W67.js → chunk-NGU4JYIR.js} +1 -1
- package/dist/{chunk-5576FRT3.cjs → chunk-PG3WXT3K.cjs} +12 -5
- package/dist/{chunk-H5POPGOZ.js → chunk-PK6Q6J5F.js} +1 -1
- package/dist/chunk-TND5NDV7.cjs +263 -0
- package/dist/chunk-U3TBQRT7.js +253 -0
- package/dist/{chunk-EAJ7SYHE.js → chunk-WRWRA4TN.js} +1 -1
- package/dist/{chunk-JQYC66TO.cjs → chunk-YABHXJNH.cjs} +5 -5
- package/dist/{chunk-M4IT6DNJ.cjs → chunk-YTIYTV4K.cjs} +236 -4
- package/dist/core/addresses.d.ts +4 -4
- package/dist/core/errors.d.ts +1 -1
- package/dist/fhe/types.d.ts +2 -2
- package/dist/fhe-airdrop/abis/airdrop-base.d.ts +19 -0
- package/dist/fhe-airdrop/abis/ecdsa.d.ts +19 -0
- package/dist/fhe-airdrop/abis/factory.d.ts +113 -0
- package/dist/fhe-airdrop/abis/merkle.d.ts +43 -12
- package/dist/fhe-airdrop/advanced/index.cjs +4 -4
- package/dist/fhe-airdrop/advanced/index.js +1 -1
- package/dist/fhe-airdrop/advanced/react/index.cjs +620 -9
- package/dist/fhe-airdrop/advanced/react/index.d.cts +35 -0
- package/dist/fhe-airdrop/advanced/react/index.d.ts +35 -0
- package/dist/fhe-airdrop/advanced/react/index.js +590 -7
- package/dist/fhe-airdrop/advanced/react/useClearCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useClearUpgradeabilityPolicy.d.ts +26 -0
- package/dist/fhe-airdrop/advanced/react/useDisableCustomFee.d.ts +26 -0
- package/dist/fhe-airdrop/advanced/react/useEcdsaInitCodeHash.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryComplianceDelegate.d.ts +25 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCompliancePolicy.d.ts +38 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryCustomFee.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryHasRole.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryImplementations.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRenounceRole.d.ts +37 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRevokeRole.d.ts +37 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleConstants.d.ts +46 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryRoleMembers.d.ts +48 -0
- package/dist/fhe-airdrop/advanced/react/useFactoryUpgradeabilityPolicy.d.ts +39 -0
- package/dist/fhe-airdrop/advanced/react/useMerkleInitCodeHash.d.ts +24 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceDelegate.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useSetComplianceManagerImpl.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetCompliancePolicy.d.ts +28 -0
- package/dist/fhe-airdrop/advanced/react/useSetCustomFee.d.ts +29 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultDelegateToCompliance.d.ts +31 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultGasFee.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useSetDefaultUpgradeable.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetEcdsaImplementation.d.ts +34 -0
- package/dist/fhe-airdrop/advanced/react/useSetFeeCollector.d.ts +27 -0
- package/dist/fhe-airdrop/advanced/react/useSetMaxGasFee.d.ts +33 -0
- package/dist/fhe-airdrop/advanced/react/useSetMerkleImplementation.d.ts +30 -0
- package/dist/fhe-airdrop/advanced/react/useSetUpgradeabilityPolicy.d.ts +31 -0
- package/dist/fhe-airdrop/airdrop-base.d.ts +55 -8
- package/dist/fhe-airdrop/campaign.d.ts +61 -20
- package/dist/fhe-airdrop/constants.d.ts +9 -1
- package/dist/fhe-airdrop/ecdsa.d.ts +13 -0
- package/dist/fhe-airdrop/errors.d.ts +87 -0
- package/dist/fhe-airdrop/factory.d.ts +62 -22
- package/dist/fhe-airdrop/guards.d.ts +133 -4
- package/dist/fhe-airdrop/index.cjs +86 -971
- package/dist/fhe-airdrop/index.d.cts +4 -4
- package/dist/fhe-airdrop/index.d.ts +4 -4
- package/dist/fhe-airdrop/index.js +8 -927
- package/dist/fhe-airdrop/merkle-tree.d.ts +32 -38
- package/dist/fhe-airdrop/merkle.d.ts +52 -31
- package/dist/fhe-airdrop/react/_shared.d.ts +13 -0
- package/dist/fhe-airdrop/react/index.cjs +997 -87
- package/dist/fhe-airdrop/react/index.d.cts +53 -4
- package/dist/fhe-airdrop/react/index.d.ts +53 -4
- package/dist/fhe-airdrop/react/index.js +887 -27
- package/dist/fhe-airdrop/react/keys.d.ts +98 -0
- package/dist/fhe-airdrop/react/useAccessEcdsaClaimAmount.d.ts +26 -0
- package/dist/fhe-airdrop/react/useAccessMerkleClaimAmount.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAddComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useAdminBatchDiscloseBalanceToParties.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAdminDiscloseBalanceToParty.d.ts +31 -0
- package/dist/fhe-airdrop/react/useAdminGetCurrentBalance.d.ts +27 -0
- package/dist/fhe-airdrop/react/useAirdropConfig.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropDeploymentMode.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropGrantRole.d.ts +35 -0
- package/dist/fhe-airdrop/react/useAirdropRenounceRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useAirdropRevokeRole.d.ts +33 -0
- package/dist/fhe-airdrop/react/useAirdropRoleAdmin.d.ts +28 -0
- package/dist/fhe-airdrop/react/useAirdropRoleConstants.d.ts +67 -0
- package/dist/fhe-airdrop/react/useAirdropRoleMembers.d.ts +49 -0
- package/dist/fhe-airdrop/react/useAirdropUpgradeToAndCall.d.ts +45 -0
- package/dist/fhe-airdrop/react/useBatchDiscloseHandlesToParty.d.ts +32 -0
- package/dist/fhe-airdrop/react/useBuildMerkleCampaign.d.ts +68 -0
- package/dist/fhe-airdrop/react/useComplianceGrantRole.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceHasRole.d.ts +37 -0
- package/dist/fhe-airdrop/react/useComplianceInfo.d.ts +50 -0
- package/dist/fhe-airdrop/react/useComplianceManagerOf.d.ts +32 -0
- package/dist/fhe-airdrop/react/useComplianceRenounceRole.d.ts +38 -0
- package/dist/fhe-airdrop/react/useComplianceRevokeRole.d.ts +36 -0
- package/dist/fhe-airdrop/react/useComplianceRoleConstants.d.ts +41 -0
- package/dist/fhe-airdrop/react/useComplianceRoleMembers.d.ts +45 -0
- package/dist/fhe-airdrop/react/useCreateAndFundEcdsaAirdrop.d.ts +55 -0
- package/dist/fhe-airdrop/react/useCreateAndFundMerkleAirdrop.d.ts +52 -0
- package/dist/fhe-airdrop/react/useDiscloseHandleToParty.d.ts +35 -0
- package/dist/fhe-airdrop/react/useEcdsaClaim.d.ts +4 -3
- package/dist/fhe-airdrop/react/useEcdsaClaimAndUnwrap.d.ts +27 -0
- package/dist/fhe-airdrop/react/useEcdsaDomain.d.ts +41 -0
- package/dist/fhe-airdrop/react/useEffectiveDelegateToCompliance.d.ts +26 -0
- package/dist/fhe-airdrop/react/useEncryptCampaignAmounts.d.ts +59 -0
- package/dist/fhe-airdrop/react/useFactoryFees.d.ts +11 -4
- package/dist/fhe-airdrop/react/useIsActiveDelegate.d.ts +29 -0
- package/dist/fhe-airdrop/react/useIsAirdrop.d.ts +44 -0
- package/dist/fhe-airdrop/react/useIsMerkleRootMutable.d.ts +21 -0
- package/dist/fhe-airdrop/react/useIsSignatureValid.d.ts +46 -0
- package/dist/fhe-airdrop/react/useMerkleClaim.d.ts +7 -19
- package/dist/fhe-airdrop/react/useMerkleClaimAndUnwrap.d.ts +29 -0
- package/dist/fhe-airdrop/react/usePlanMerkleCampaign.d.ts +53 -0
- package/dist/fhe-airdrop/react/usePreflightClaim.d.ts +46 -0
- package/dist/fhe-airdrop/react/usePreflightCreateAirdrop.d.ts +67 -0
- package/dist/fhe-airdrop/react/useRefreshComplianceBalance.d.ts +36 -0
- package/dist/fhe-airdrop/react/useRescueERC20.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRescueOtherConfidentialToken.d.ts +34 -0
- package/dist/fhe-airdrop/react/useResolveGasFee.d.ts +30 -0
- package/dist/fhe-airdrop/react/useRevokeComplianceDelegate.d.ts +37 -0
- package/dist/fhe-airdrop/react/useRotateMerkleRoot.d.ts +52 -0
- package/dist/fhe-airdrop/react/useSignClaimAuthorization.d.ts +42 -0
- package/dist/fhe-airdrop/react/useWithdrawGasFee.d.ts +37 -0
- package/dist/fhe-airdrop/types.d.ts +27 -1
- package/dist/fhe-disperse/index.cjs +21 -21
- package/dist/fhe-disperse/index.js +2 -2
- package/dist/fhe-disperse/react/index.cjs +22 -22
- package/dist/fhe-disperse/react/index.js +3 -3
- package/dist/fhe-vesting/advanced/index.cjs +5 -5
- package/dist/fhe-vesting/advanced/index.js +3 -3
- package/dist/fhe-vesting/advanced/react/index.cjs +7 -7
- package/dist/fhe-vesting/advanced/react/index.js +4 -4
- package/dist/fhe-vesting/index.cjs +8 -8
- package/dist/fhe-vesting/index.js +2 -2
- package/dist/fhe-vesting/react/index.cjs +114 -114
- package/dist/fhe-vesting/react/index.js +3 -3
- package/dist/index.cjs +18 -18
- package/dist/index.js +1 -1
- package/dist/testnet-faucet/index.cjs +14 -14
- package/dist/testnet-faucet/index.js +2 -2
- package/dist/testnet-faucet/react/index.cjs +8 -8
- package/dist/testnet-faucet/react/index.js +3 -3
- package/package.json +1 -1
- package/dist/chunk-NCVX3K2N.cjs +0 -161
- package/dist/chunk-VP2B4WM2.js +0 -154
|
@@ -1,1117 +1,236 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkGKYZQJGP_cjs = require('../chunk-GKYZQJGP.cjs');
|
|
4
|
+
var chunk4AWQJQXY_cjs = require('../chunk-4AWQJQXY.cjs');
|
|
5
|
+
var chunkYTIYTV4K_cjs = require('../chunk-YTIYTV4K.cjs');
|
|
6
6
|
var chunkKFRDLKMA_cjs = require('../chunk-KFRDLKMA.cjs');
|
|
7
7
|
require('../chunk-FAXIIH5R.cjs');
|
|
8
8
|
var chunkFWHYQZ5E_cjs = require('../chunk-FWHYQZ5E.cjs');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
require('../chunk-
|
|
12
|
-
|
|
9
|
+
require('../chunk-UG5RKLU2.cjs');
|
|
10
|
+
require('../chunk-MVDQMV25.cjs');
|
|
11
|
+
require('../chunk-PG3WXT3K.cjs');
|
|
12
|
+
require('../chunk-JK4XMMKM.cjs');
|
|
13
13
|
require('../chunk-66IHPTOK.cjs');
|
|
14
14
|
var chunk67OV5CX2_cjs = require('../chunk-67OV5CX2.cjs');
|
|
15
|
-
|
|
15
|
+
require('../chunk-VJKZWYYJ.cjs');
|
|
16
16
|
|
|
17
|
-
// src/fhe-airdrop/abis/compliance.ts
|
|
18
|
-
var complianceRoleManagerAbi = [
|
|
19
|
-
{
|
|
20
|
-
inputs: [],
|
|
21
|
-
stateMutability: "nonpayable",
|
|
22
|
-
type: "constructor"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
inputs: [],
|
|
26
|
-
name: "AccessControlBadConfirmation",
|
|
27
|
-
type: "error"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
inputs: [
|
|
31
|
-
{
|
|
32
|
-
internalType: "address",
|
|
33
|
-
name: "account",
|
|
34
|
-
type: "address"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
internalType: "bytes32",
|
|
38
|
-
name: "neededRole",
|
|
39
|
-
type: "bytes32"
|
|
40
|
-
}
|
|
41
|
-
],
|
|
42
|
-
name: "AccessControlUnauthorizedAccount",
|
|
43
|
-
type: "error"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
inputs: [
|
|
47
|
-
{
|
|
48
|
-
internalType: "address",
|
|
49
|
-
name: "airdrop",
|
|
50
|
-
type: "address"
|
|
51
|
-
}
|
|
52
|
-
],
|
|
53
|
-
name: "AirdropAndManagerAreSameAddress",
|
|
54
|
-
type: "error"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
inputs: [],
|
|
58
|
-
name: "CannotManageComplianceDelegate",
|
|
59
|
-
type: "error"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
inputs: [],
|
|
63
|
-
name: "DelegateAlreadyAdded",
|
|
64
|
-
type: "error"
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
inputs: [
|
|
68
|
-
{
|
|
69
|
-
internalType: "address",
|
|
70
|
-
name: "delegate",
|
|
71
|
-
type: "address"
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
name: "DelegateAndAirdropAreSameAddress",
|
|
75
|
-
type: "error"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
inputs: [
|
|
79
|
-
{
|
|
80
|
-
internalType: "address",
|
|
81
|
-
name: "delegate",
|
|
82
|
-
type: "address"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
name: "DelegateAndManagerAreSameAddress",
|
|
86
|
-
type: "error"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
inputs: [],
|
|
90
|
-
name: "DelegateNotFound",
|
|
91
|
-
type: "error"
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
inputs: [],
|
|
95
|
-
name: "InvalidInitialization",
|
|
96
|
-
type: "error"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
inputs: [],
|
|
100
|
-
name: "NotInitializing",
|
|
101
|
-
type: "error"
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
inputs: [],
|
|
105
|
-
name: "ZamaProtocolUnsupported",
|
|
106
|
-
type: "error"
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
inputs: [],
|
|
110
|
-
name: "ZeroAirdrop",
|
|
111
|
-
type: "error"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
inputs: [],
|
|
115
|
-
name: "ZeroClientAdmin",
|
|
116
|
-
type: "error"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
inputs: [],
|
|
120
|
-
name: "ZeroDelegate",
|
|
121
|
-
type: "error"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
anonymous: false,
|
|
125
|
-
inputs: [
|
|
126
|
-
{
|
|
127
|
-
indexed: true,
|
|
128
|
-
internalType: "address",
|
|
129
|
-
name: "delegate",
|
|
130
|
-
type: "address"
|
|
131
|
-
}
|
|
132
|
-
],
|
|
133
|
-
name: "ClientDelegateAdded",
|
|
134
|
-
type: "event"
|
|
135
|
-
},
|
|
136
|
-
{
|
|
137
|
-
anonymous: false,
|
|
138
|
-
inputs: [
|
|
139
|
-
{
|
|
140
|
-
indexed: true,
|
|
141
|
-
internalType: "address",
|
|
142
|
-
name: "delegate",
|
|
143
|
-
type: "address"
|
|
144
|
-
}
|
|
145
|
-
],
|
|
146
|
-
name: "ClientDelegateRevoked",
|
|
147
|
-
type: "event"
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
anonymous: false,
|
|
151
|
-
inputs: [
|
|
152
|
-
{
|
|
153
|
-
indexed: true,
|
|
154
|
-
internalType: "address",
|
|
155
|
-
name: "delegate",
|
|
156
|
-
type: "address"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
name: "ComplianceDelegateSet",
|
|
160
|
-
type: "event"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
anonymous: false,
|
|
164
|
-
inputs: [
|
|
165
|
-
{
|
|
166
|
-
indexed: false,
|
|
167
|
-
internalType: "uint64",
|
|
168
|
-
name: "version",
|
|
169
|
-
type: "uint64"
|
|
170
|
-
}
|
|
171
|
-
],
|
|
172
|
-
name: "Initialized",
|
|
173
|
-
type: "event"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
anonymous: false,
|
|
177
|
-
inputs: [
|
|
178
|
-
{
|
|
179
|
-
indexed: true,
|
|
180
|
-
internalType: "bytes32",
|
|
181
|
-
name: "role",
|
|
182
|
-
type: "bytes32"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
indexed: true,
|
|
186
|
-
internalType: "bytes32",
|
|
187
|
-
name: "previousAdminRole",
|
|
188
|
-
type: "bytes32"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
indexed: true,
|
|
192
|
-
internalType: "bytes32",
|
|
193
|
-
name: "newAdminRole",
|
|
194
|
-
type: "bytes32"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
name: "RoleAdminChanged",
|
|
198
|
-
type: "event"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
anonymous: false,
|
|
202
|
-
inputs: [
|
|
203
|
-
{
|
|
204
|
-
indexed: true,
|
|
205
|
-
internalType: "bytes32",
|
|
206
|
-
name: "role",
|
|
207
|
-
type: "bytes32"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
indexed: true,
|
|
211
|
-
internalType: "address",
|
|
212
|
-
name: "account",
|
|
213
|
-
type: "address"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
indexed: true,
|
|
217
|
-
internalType: "address",
|
|
218
|
-
name: "sender",
|
|
219
|
-
type: "address"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
name: "RoleGranted",
|
|
223
|
-
type: "event"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
anonymous: false,
|
|
227
|
-
inputs: [
|
|
228
|
-
{
|
|
229
|
-
indexed: true,
|
|
230
|
-
internalType: "bytes32",
|
|
231
|
-
name: "role",
|
|
232
|
-
type: "bytes32"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
indexed: true,
|
|
236
|
-
internalType: "address",
|
|
237
|
-
name: "account",
|
|
238
|
-
type: "address"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
indexed: true,
|
|
242
|
-
internalType: "address",
|
|
243
|
-
name: "sender",
|
|
244
|
-
type: "address"
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
name: "RoleRevoked",
|
|
248
|
-
type: "event"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
inputs: [],
|
|
252
|
-
name: "DEFAULT_ADMIN_ROLE",
|
|
253
|
-
outputs: [
|
|
254
|
-
{
|
|
255
|
-
internalType: "bytes32",
|
|
256
|
-
name: "",
|
|
257
|
-
type: "bytes32"
|
|
258
|
-
}
|
|
259
|
-
],
|
|
260
|
-
stateMutability: "view",
|
|
261
|
-
type: "function"
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
inputs: [],
|
|
265
|
-
name: "DELEGATION_ADMIN_ROLE",
|
|
266
|
-
outputs: [
|
|
267
|
-
{
|
|
268
|
-
internalType: "bytes32",
|
|
269
|
-
name: "",
|
|
270
|
-
type: "bytes32"
|
|
271
|
-
}
|
|
272
|
-
],
|
|
273
|
-
stateMutability: "view",
|
|
274
|
-
type: "function"
|
|
275
|
-
},
|
|
276
|
-
{
|
|
277
|
-
inputs: [
|
|
278
|
-
{
|
|
279
|
-
internalType: "address",
|
|
280
|
-
name: "delegate",
|
|
281
|
-
type: "address"
|
|
282
|
-
}
|
|
283
|
-
],
|
|
284
|
-
name: "addDelegate",
|
|
285
|
-
outputs: [],
|
|
286
|
-
stateMutability: "nonpayable",
|
|
287
|
-
type: "function"
|
|
288
|
-
},
|
|
289
|
-
{
|
|
290
|
-
inputs: [],
|
|
291
|
-
name: "airdrop",
|
|
292
|
-
outputs: [
|
|
293
|
-
{
|
|
294
|
-
internalType: "address",
|
|
295
|
-
name: "",
|
|
296
|
-
type: "address"
|
|
297
|
-
}
|
|
298
|
-
],
|
|
299
|
-
stateMutability: "view",
|
|
300
|
-
type: "function"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
inputs: [],
|
|
304
|
-
name: "clientDelegates",
|
|
305
|
-
outputs: [
|
|
306
|
-
{
|
|
307
|
-
internalType: "address[]",
|
|
308
|
-
name: "",
|
|
309
|
-
type: "address[]"
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
stateMutability: "view",
|
|
313
|
-
type: "function"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
inputs: [],
|
|
317
|
-
name: "complianceDelegate",
|
|
318
|
-
outputs: [
|
|
319
|
-
{
|
|
320
|
-
internalType: "address",
|
|
321
|
-
name: "",
|
|
322
|
-
type: "address"
|
|
323
|
-
}
|
|
324
|
-
],
|
|
325
|
-
stateMutability: "view",
|
|
326
|
-
type: "function"
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
inputs: [
|
|
330
|
-
{
|
|
331
|
-
internalType: "bytes32",
|
|
332
|
-
name: "role",
|
|
333
|
-
type: "bytes32"
|
|
334
|
-
}
|
|
335
|
-
],
|
|
336
|
-
name: "getRoleAdmin",
|
|
337
|
-
outputs: [
|
|
338
|
-
{
|
|
339
|
-
internalType: "bytes32",
|
|
340
|
-
name: "",
|
|
341
|
-
type: "bytes32"
|
|
342
|
-
}
|
|
343
|
-
],
|
|
344
|
-
stateMutability: "view",
|
|
345
|
-
type: "function"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
inputs: [
|
|
349
|
-
{
|
|
350
|
-
internalType: "bytes32",
|
|
351
|
-
name: "role",
|
|
352
|
-
type: "bytes32"
|
|
353
|
-
},
|
|
354
|
-
{
|
|
355
|
-
internalType: "uint256",
|
|
356
|
-
name: "index",
|
|
357
|
-
type: "uint256"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
name: "getRoleMember",
|
|
361
|
-
outputs: [
|
|
362
|
-
{
|
|
363
|
-
internalType: "address",
|
|
364
|
-
name: "",
|
|
365
|
-
type: "address"
|
|
366
|
-
}
|
|
367
|
-
],
|
|
368
|
-
stateMutability: "view",
|
|
369
|
-
type: "function"
|
|
370
|
-
},
|
|
371
|
-
{
|
|
372
|
-
inputs: [
|
|
373
|
-
{
|
|
374
|
-
internalType: "bytes32",
|
|
375
|
-
name: "role",
|
|
376
|
-
type: "bytes32"
|
|
377
|
-
}
|
|
378
|
-
],
|
|
379
|
-
name: "getRoleMemberCount",
|
|
380
|
-
outputs: [
|
|
381
|
-
{
|
|
382
|
-
internalType: "uint256",
|
|
383
|
-
name: "",
|
|
384
|
-
type: "uint256"
|
|
385
|
-
}
|
|
386
|
-
],
|
|
387
|
-
stateMutability: "view",
|
|
388
|
-
type: "function"
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
inputs: [
|
|
392
|
-
{
|
|
393
|
-
internalType: "bytes32",
|
|
394
|
-
name: "role",
|
|
395
|
-
type: "bytes32"
|
|
396
|
-
}
|
|
397
|
-
],
|
|
398
|
-
name: "getRoleMembers",
|
|
399
|
-
outputs: [
|
|
400
|
-
{
|
|
401
|
-
internalType: "address[]",
|
|
402
|
-
name: "",
|
|
403
|
-
type: "address[]"
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
stateMutability: "view",
|
|
407
|
-
type: "function"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
inputs: [
|
|
411
|
-
{
|
|
412
|
-
internalType: "bytes32",
|
|
413
|
-
name: "role",
|
|
414
|
-
type: "bytes32"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
internalType: "address",
|
|
418
|
-
name: "account",
|
|
419
|
-
type: "address"
|
|
420
|
-
}
|
|
421
|
-
],
|
|
422
|
-
name: "grantRole",
|
|
423
|
-
outputs: [],
|
|
424
|
-
stateMutability: "nonpayable",
|
|
425
|
-
type: "function"
|
|
426
|
-
},
|
|
427
|
-
{
|
|
428
|
-
inputs: [
|
|
429
|
-
{
|
|
430
|
-
internalType: "bytes32",
|
|
431
|
-
name: "role",
|
|
432
|
-
type: "bytes32"
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
internalType: "address",
|
|
436
|
-
name: "account",
|
|
437
|
-
type: "address"
|
|
438
|
-
}
|
|
439
|
-
],
|
|
440
|
-
name: "hasRole",
|
|
441
|
-
outputs: [
|
|
442
|
-
{
|
|
443
|
-
internalType: "bool",
|
|
444
|
-
name: "",
|
|
445
|
-
type: "bool"
|
|
446
|
-
}
|
|
447
|
-
],
|
|
448
|
-
stateMutability: "view",
|
|
449
|
-
type: "function"
|
|
450
|
-
},
|
|
451
|
-
{
|
|
452
|
-
inputs: [
|
|
453
|
-
{
|
|
454
|
-
internalType: "address",
|
|
455
|
-
name: "airdrop_",
|
|
456
|
-
type: "address"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
internalType: "address",
|
|
460
|
-
name: "clientAdmin",
|
|
461
|
-
type: "address"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
internalType: "address",
|
|
465
|
-
name: "clientDelegate",
|
|
466
|
-
type: "address"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
internalType: "address",
|
|
470
|
-
name: "complianceDelegate_",
|
|
471
|
-
type: "address"
|
|
472
|
-
}
|
|
473
|
-
],
|
|
474
|
-
name: "initialize",
|
|
475
|
-
outputs: [],
|
|
476
|
-
stateMutability: "nonpayable",
|
|
477
|
-
type: "function"
|
|
478
|
-
},
|
|
479
|
-
{
|
|
480
|
-
inputs: [
|
|
481
|
-
{
|
|
482
|
-
internalType: "address",
|
|
483
|
-
name: "delegate",
|
|
484
|
-
type: "address"
|
|
485
|
-
}
|
|
486
|
-
],
|
|
487
|
-
name: "isActiveDelegate",
|
|
488
|
-
outputs: [
|
|
489
|
-
{
|
|
490
|
-
internalType: "bool",
|
|
491
|
-
name: "",
|
|
492
|
-
type: "bool"
|
|
493
|
-
}
|
|
494
|
-
],
|
|
495
|
-
stateMutability: "view",
|
|
496
|
-
type: "function"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
inputs: [
|
|
500
|
-
{
|
|
501
|
-
internalType: "bytes32",
|
|
502
|
-
name: "role",
|
|
503
|
-
type: "bytes32"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
internalType: "address",
|
|
507
|
-
name: "callerConfirmation",
|
|
508
|
-
type: "address"
|
|
509
|
-
}
|
|
510
|
-
],
|
|
511
|
-
name: "renounceRole",
|
|
512
|
-
outputs: [],
|
|
513
|
-
stateMutability: "nonpayable",
|
|
514
|
-
type: "function"
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
inputs: [
|
|
518
|
-
{
|
|
519
|
-
internalType: "address",
|
|
520
|
-
name: "delegate",
|
|
521
|
-
type: "address"
|
|
522
|
-
}
|
|
523
|
-
],
|
|
524
|
-
name: "revokeDelegate",
|
|
525
|
-
outputs: [],
|
|
526
|
-
stateMutability: "nonpayable",
|
|
527
|
-
type: "function"
|
|
528
|
-
},
|
|
529
|
-
{
|
|
530
|
-
inputs: [
|
|
531
|
-
{
|
|
532
|
-
internalType: "bytes32",
|
|
533
|
-
name: "role",
|
|
534
|
-
type: "bytes32"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
internalType: "address",
|
|
538
|
-
name: "account",
|
|
539
|
-
type: "address"
|
|
540
|
-
}
|
|
541
|
-
],
|
|
542
|
-
name: "revokeRole",
|
|
543
|
-
outputs: [],
|
|
544
|
-
stateMutability: "nonpayable",
|
|
545
|
-
type: "function"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
inputs: [
|
|
549
|
-
{
|
|
550
|
-
internalType: "bytes4",
|
|
551
|
-
name: "interfaceId",
|
|
552
|
-
type: "bytes4"
|
|
553
|
-
}
|
|
554
|
-
],
|
|
555
|
-
name: "supportsInterface",
|
|
556
|
-
outputs: [
|
|
557
|
-
{
|
|
558
|
-
internalType: "bool",
|
|
559
|
-
name: "",
|
|
560
|
-
type: "bool"
|
|
561
|
-
}
|
|
562
|
-
],
|
|
563
|
-
stateMutability: "view",
|
|
564
|
-
type: "function"
|
|
565
|
-
}
|
|
566
|
-
];
|
|
567
17
|
|
|
568
|
-
// src/fhe-airdrop/compliance.ts
|
|
569
|
-
var ACL_PROPAGATION_CODE = "DELEGATION_NOT_PROPAGATED";
|
|
570
|
-
var ACL_PROPAGATION_ERROR_NAME = "DelegationNotPropagatedError";
|
|
571
|
-
var ACL_PROPAGATION_STATUSES = /* @__PURE__ */ new Set([400, 500]);
|
|
572
|
-
function matchesPropagationMessage(message) {
|
|
573
|
-
const lower = message.toLowerCase();
|
|
574
|
-
if (lower.includes("acl check not propagated")) return true;
|
|
575
|
-
return lower.includes("propagat") && lower.includes("gateway");
|
|
576
|
-
}
|
|
577
|
-
function readRecord(value) {
|
|
578
|
-
return typeof value === "object" && value !== null ? value : void 0;
|
|
579
|
-
}
|
|
580
|
-
function readNumber(obj, key) {
|
|
581
|
-
const value = obj?.[key];
|
|
582
|
-
return typeof value === "number" ? value : void 0;
|
|
583
|
-
}
|
|
584
|
-
function readString(obj, key) {
|
|
585
|
-
const value = obj?.[key];
|
|
586
|
-
return typeof value === "string" ? value : void 0;
|
|
587
|
-
}
|
|
588
|
-
function isAclPropagationError(error) {
|
|
589
|
-
const err = readRecord(error);
|
|
590
|
-
if (!err) return false;
|
|
591
|
-
const cause = readRecord(err["cause"]);
|
|
592
|
-
if (err["code"] === ACL_PROPAGATION_CODE || err["name"] === ACL_PROPAGATION_ERROR_NAME || cause?.["code"] === ACL_PROPAGATION_CODE || cause?.["name"] === ACL_PROPAGATION_ERROR_NAME) {
|
|
593
|
-
return true;
|
|
594
|
-
}
|
|
595
|
-
const status = readNumber(err, "status") ?? readNumber(err, "statusCode") ?? readNumber(cause, "status") ?? readNumber(cause, "statusCode");
|
|
596
|
-
if (status === void 0 || !ACL_PROPAGATION_STATUSES.has(status)) return false;
|
|
597
|
-
const errMessage = readString(err, "message");
|
|
598
|
-
const causeMessage = readString(cause, "message");
|
|
599
|
-
return errMessage !== void 0 && matchesPropagationMessage(errMessage) || causeMessage !== void 0 && matchesPropagationMessage(causeMessage);
|
|
600
|
-
}
|
|
601
|
-
var ComplianceManagerClient = class {
|
|
602
|
-
publicClient;
|
|
603
|
-
walletClient;
|
|
604
|
-
address;
|
|
605
|
-
chainId;
|
|
606
|
-
#telemetry;
|
|
607
|
-
constructor(config) {
|
|
608
|
-
this.publicClient = config.publicClient;
|
|
609
|
-
this.walletClient = config.walletClient;
|
|
610
|
-
const chainId = config.chainId ?? config.publicClient.chain?.id;
|
|
611
|
-
if (chainId === void 0) {
|
|
612
|
-
throw new chunk67OV5CX2_cjs.DeploymentAddressUnavailableError({
|
|
613
|
-
reason: "chain-id-missing",
|
|
614
|
-
product: "fheAirdrop",
|
|
615
|
-
contract: "complianceManager",
|
|
616
|
-
clientLabel: "ComplianceManagerClient"
|
|
617
|
-
});
|
|
618
|
-
}
|
|
619
|
-
chunkM4IT6DNJ_cjs.assertSupportedChain(chainId);
|
|
620
|
-
this.chainId = chainId;
|
|
621
|
-
this.address = chunkJK4XMMKM_cjs.normaliseAddress(config.address);
|
|
622
|
-
this.#telemetry = config.telemetry;
|
|
623
|
-
this.#telemetry?.event("fhe-airdrop.client.init", {
|
|
624
|
-
surface: "compliance",
|
|
625
|
-
chainId,
|
|
626
|
-
hasWallet: !!this.walletClient,
|
|
627
|
-
sdkVersion: chunkUG5RKLU2_cjs.SDK_VERSION
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
// ============================================================
|
|
631
|
-
// CLIENT DELEGATION MGMT
|
|
632
|
-
// ============================================================
|
|
633
|
-
/**
|
|
634
|
-
* Add a client delegate: grants `delegate` permanent (never-expiring)
|
|
635
|
-
* user-decryption delegation over this clone's airdrop. Requires
|
|
636
|
-
* {@link DELEGATION_ADMIN_ROLE}.
|
|
637
|
-
*
|
|
638
|
-
* Effective on-chain immediately; see the class TSDoc for the gateway
|
|
639
|
-
* propagation lag before `delegatedUserDecrypt` catches up.
|
|
640
|
-
*
|
|
641
|
-
* @throws {@link InvalidArgumentError} (`argument: "delegate"`) when `delegate` is the zero address
|
|
642
|
-
* (`ZeroDelegate`), already an active client delegate (`DelegateAlreadyAdded`), or targets the
|
|
643
|
-
* irrevocable platform compliance delegate (`CannotManageComplianceDelegate`).
|
|
644
|
-
* @returns The transaction hash.
|
|
645
|
-
*/
|
|
646
|
-
async addDelegate(args) {
|
|
647
|
-
return chunkVJKZWYYJ_cjs.withTelemetry(
|
|
648
|
-
this.#telemetry,
|
|
649
|
-
"fhe-airdrop.compliance.addDelegate",
|
|
650
|
-
() => this.#write("addDelegate", [args.delegate], args.account, "addDelegate")
|
|
651
|
-
);
|
|
652
|
-
}
|
|
653
|
-
/**
|
|
654
|
-
* Revoke a client delegate. Requires {@link DELEGATION_ADMIN_ROLE}.
|
|
655
|
-
*
|
|
656
|
-
* Effective on-chain immediately — but off-chain, gateway-served
|
|
657
|
-
* `delegatedUserDecrypt` calls stop succeeding only once the gateway
|
|
658
|
-
* observes the revocation, which is not instantaneous either. Cannot target
|
|
659
|
-
* the platform compliance delegate, which is irrevocable by construction.
|
|
660
|
-
*
|
|
661
|
-
* **Not in the same block as {@link addDelegate} for the same delegate.**
|
|
662
|
-
* The FHEVM ACL rejects an add and a revoke of one delegate within a single
|
|
663
|
-
* block (`AlreadyDelegatedOrRevokedInSameBlock`), and because that revert
|
|
664
|
-
* comes from the ACL rather than from this contract, it surfaces as an
|
|
665
|
-
* opaque {@link ContractRevertError} with no decodable selector — nothing
|
|
666
|
-
* names the delegate or the cause. Batching an add and a revoke into one
|
|
667
|
-
* multicall, or sending both inside one block, is the way to hit it; wait a
|
|
668
|
-
* block between them. This is the sequencing counterpart to the propagation
|
|
669
|
-
* gotcha on the class TSDoc: that one is the gateway lagging the chain, this
|
|
670
|
-
* one is the chain refusing two conflicting writes at the same height.
|
|
671
|
-
*
|
|
672
|
-
* @throws {@link InvalidArgumentError} (`argument: "delegate"`) when `delegate` is the zero address
|
|
673
|
-
* (`ZeroDelegate`), not currently an active client delegate (`DelegateNotFound`), or targets the
|
|
674
|
-
* irrevocable platform compliance delegate (`CannotManageComplianceDelegate`).
|
|
675
|
-
* @returns The transaction hash.
|
|
676
|
-
*/
|
|
677
|
-
async revokeDelegate(args) {
|
|
678
|
-
return chunkVJKZWYYJ_cjs.withTelemetry(
|
|
679
|
-
this.#telemetry,
|
|
680
|
-
"fhe-airdrop.compliance.revokeDelegate",
|
|
681
|
-
() => this.#write("revokeDelegate", [args.delegate], args.account, "revokeDelegate")
|
|
682
|
-
);
|
|
683
|
-
}
|
|
684
|
-
// ============================================================
|
|
685
|
-
// READS
|
|
686
|
-
// ============================================================
|
|
687
|
-
/** The one airdrop instance this clone serves — set once, at `initialize`. */
|
|
688
|
-
async airdrop() {
|
|
689
|
-
return this.#read("airdrop");
|
|
690
|
-
}
|
|
691
|
-
/**
|
|
692
|
-
* The platform compliance delegate.
|
|
693
|
-
*
|
|
694
|
-
* @returns The delegate address, or the zero address when this clone was
|
|
695
|
-
* created with the platform compliance policy OFF. Because `initialize`
|
|
696
|
-
* always runs atomically before this client can reach the clone (see the
|
|
697
|
-
* class TSDoc), a zero return never means "not wired yet" — there is no
|
|
698
|
-
* such observable state on this contract. It unambiguously means "no
|
|
699
|
-
* platform delegate for this airdrop."
|
|
700
|
-
*/
|
|
701
|
-
async complianceDelegate() {
|
|
702
|
-
return this.#read("complianceDelegate");
|
|
703
|
-
}
|
|
704
|
-
/** The current set of active client delegates (excludes the platform compliance delegate, if any). */
|
|
705
|
-
async clientDelegates() {
|
|
706
|
-
return this.#read("clientDelegates");
|
|
707
|
-
}
|
|
708
|
-
/**
|
|
709
|
-
* Authoritative active-delegate check for `delegate` — reads the ACL
|
|
710
|
-
* expiration date directly rather than the contract's `EnumerableSet`
|
|
711
|
-
* mirror, so it reflects the platform compliance delegate too (which never
|
|
712
|
-
* appears in {@link clientDelegates}).
|
|
713
|
-
*
|
|
714
|
-
* On-chain truth only: a `true` result means the delegation is live in the
|
|
715
|
-
* ACL, not that the gateway has caught up with it yet — see the class
|
|
716
|
-
* TSDoc's propagation note.
|
|
717
|
-
*/
|
|
718
|
-
async isActiveDelegate(delegate) {
|
|
719
|
-
return this.#read("isActiveDelegate", [delegate]);
|
|
720
|
-
}
|
|
721
|
-
// Role-constant getters are named for the contract function they read, the
|
|
722
|
-
// same convention every other client in this module follows: one spelling
|
|
723
|
-
// per role, whichever client you happen to be holding.
|
|
724
|
-
/** Gates {@link addDelegate} / {@link revokeDelegate}. */
|
|
725
|
-
async DELEGATION_ADMIN_ROLE() {
|
|
726
|
-
return this.#read("DELEGATION_ADMIN_ROLE");
|
|
727
|
-
}
|
|
728
|
-
/**
|
|
729
|
-
* OpenZeppelin's root role (`bytes32(0)`), read from the clone rather than
|
|
730
|
-
* hard-coded. It administers {@link DELEGATION_ADMIN_ROLE}.
|
|
731
|
-
*/
|
|
732
|
-
async DEFAULT_ADMIN_ROLE() {
|
|
733
|
-
return this.#read("DEFAULT_ADMIN_ROLE");
|
|
734
|
-
}
|
|
735
|
-
// ============================================================
|
|
736
|
-
// ROLE ADMINISTRATION
|
|
737
|
-
// ============================================================
|
|
738
|
-
//
|
|
739
|
-
// The clone is `AccessControlEnumerableUpgradeable`, so membership is
|
|
740
|
-
// enumerable as well as checkable. This surface is what makes the delegation
|
|
741
|
-
// verbs above administrable: without it, whoever the factory named at
|
|
742
|
-
// `initialize` is the only account that can ever add a delegate, and there
|
|
743
|
-
// is no way to find out who that is.
|
|
744
|
-
//
|
|
745
|
-
// Unlike an airdrop instance, this contract adds no "never empty" floor of
|
|
746
|
-
// its own - emptying `DEFAULT_ADMIN_ROLE` here permanently freezes the
|
|
747
|
-
// clone's delegate set at whatever it currently holds.
|
|
748
|
-
/**
|
|
749
|
-
* Whether `holder` holds `role`.
|
|
750
|
-
*
|
|
751
|
-
* The role subject is called `holder`, not `account`: on the writes below
|
|
752
|
-
* `account` already means "who sends this transaction", and one key cannot
|
|
753
|
-
* be both.
|
|
754
|
-
*
|
|
755
|
-
* @param args.role A `bytes32` from {@link DELEGATION_ADMIN_ROLE} or {@link DEFAULT_ADMIN_ROLE}.
|
|
756
|
-
*/
|
|
757
|
-
async hasRole(args) {
|
|
758
|
-
return this.#read("hasRole", [args.role, args.holder]);
|
|
759
|
-
}
|
|
760
|
-
/** The role whose holders may {@link grantRole} and {@link revokeRole} `role`. */
|
|
761
|
-
async getRoleAdmin(role) {
|
|
762
|
-
return this.#read("getRoleAdmin", [role]);
|
|
763
|
-
}
|
|
764
|
-
/** How many accounts hold `role`. */
|
|
765
|
-
async getRoleMemberCount(role) {
|
|
766
|
-
return this.#read("getRoleMemberCount", [role]);
|
|
767
|
-
}
|
|
768
|
-
/**
|
|
769
|
-
* The `index`-th holder of `role`, in `EnumerableSet` order - which is not
|
|
770
|
-
* stable across grants and revokes. Prefer {@link getRoleMembers}.
|
|
771
|
-
*/
|
|
772
|
-
async getRoleMember(args) {
|
|
773
|
-
return this.#read("getRoleMember", [args.role, args.index]);
|
|
774
|
-
}
|
|
775
|
-
/**
|
|
776
|
-
* Every account currently holding `role`.
|
|
777
|
-
*
|
|
778
|
-
* With {@link DELEGATION_ADMIN_ROLE} this answers "who may add or revoke a
|
|
779
|
-
* delegate on this clone?" - the administrative counterpart to
|
|
780
|
-
* {@link clientDelegates}, which answers "who may currently decrypt?".
|
|
781
|
-
*/
|
|
782
|
-
async getRoleMembers(role) {
|
|
783
|
-
return this.#read("getRoleMembers", [role]);
|
|
784
|
-
}
|
|
785
|
-
/**
|
|
786
|
-
* Grant `role` to `holder`. Requires the role's admin role
|
|
787
|
-
* ({@link getRoleAdmin}).
|
|
788
|
-
*
|
|
789
|
-
* This is how a second operator is added to {@link DELEGATION_ADMIN_ROLE} -
|
|
790
|
-
* the delegation verbs themselves are unaffected, the grant only widens who
|
|
791
|
-
* may call them.
|
|
792
|
-
*
|
|
793
|
-
* @returns The transaction hash.
|
|
794
|
-
*/
|
|
795
|
-
async grantRole(args) {
|
|
796
|
-
return chunkVJKZWYYJ_cjs.withTelemetry(
|
|
797
|
-
this.#telemetry,
|
|
798
|
-
"fhe-airdrop.compliance.grantRole",
|
|
799
|
-
() => this.#write("grantRole", [args.role, args.holder], args.account, "grantRole")
|
|
800
|
-
);
|
|
801
|
-
}
|
|
802
|
-
/**
|
|
803
|
-
* Revoke `role` from `holder`. Requires the role's admin role.
|
|
804
|
-
*
|
|
805
|
-
* Revoking a delegation admin does **not** revoke the delegations they
|
|
806
|
-
* created: an existing delegate keeps decrypting until
|
|
807
|
-
* {@link revokeDelegate} is called for it explicitly.
|
|
808
|
-
*
|
|
809
|
-
* @returns The transaction hash.
|
|
810
|
-
*/
|
|
811
|
-
async revokeRole(args) {
|
|
812
|
-
return chunkVJKZWYYJ_cjs.withTelemetry(
|
|
813
|
-
this.#telemetry,
|
|
814
|
-
"fhe-airdrop.compliance.revokeRole",
|
|
815
|
-
() => this.#write("revokeRole", [args.role, args.holder], args.account, "revokeRole")
|
|
816
|
-
);
|
|
817
|
-
}
|
|
818
|
-
/**
|
|
819
|
-
* Give up `role` yourself.
|
|
820
|
-
*
|
|
821
|
-
* The contract's signature is `renounceRole(role, callerConfirmation)` and
|
|
822
|
-
* it reverts `AccessControlBadConfirmation` unless `callerConfirmation` is
|
|
823
|
-
* the sender, so this method takes no holder and fills the confirmation from
|
|
824
|
-
* the resolved sending account. Renouncing for somebody else is not a call
|
|
825
|
-
* that can succeed; use {@link revokeRole} to remove another account's role.
|
|
826
|
-
*
|
|
827
|
-
* @returns The transaction hash.
|
|
828
|
-
*/
|
|
829
|
-
async renounceRole(args) {
|
|
830
|
-
const method = "renounceRole";
|
|
831
|
-
const wallet = this.#requireWallet(method);
|
|
832
|
-
const account = this.#resolveAccount(wallet, args.account, method);
|
|
833
|
-
return chunkVJKZWYYJ_cjs.withTelemetry(
|
|
834
|
-
this.#telemetry,
|
|
835
|
-
"fhe-airdrop.compliance.renounceRole",
|
|
836
|
-
() => this.#write(method, [args.role, accountAddress(account)], account, method)
|
|
837
|
-
);
|
|
838
|
-
}
|
|
839
|
-
// ============================================================
|
|
840
|
-
// INTERNALS (private)
|
|
841
|
-
// ============================================================
|
|
842
|
-
async #write(functionName, args, account, method) {
|
|
843
|
-
const wallet = this.#requireWallet(method);
|
|
844
|
-
const acct = this.#resolveAccount(wallet, account, method);
|
|
845
|
-
await this.#preflightWrite(method, functionName, args, acct);
|
|
846
|
-
try {
|
|
847
|
-
return await wallet.writeContract({
|
|
848
|
-
address: this.address,
|
|
849
|
-
abi: complianceRoleManagerAbi,
|
|
850
|
-
functionName,
|
|
851
|
-
args,
|
|
852
|
-
account: acct,
|
|
853
|
-
chain: wallet.chain
|
|
854
|
-
});
|
|
855
|
-
} catch (err) {
|
|
856
|
-
throw this.#mapRevert(method, err, acct);
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
async #read(functionName, args = []) {
|
|
860
|
-
const result = await this.publicClient.readContract({
|
|
861
|
-
address: this.address,
|
|
862
|
-
abi: complianceRoleManagerAbi,
|
|
863
|
-
functionName,
|
|
864
|
-
args
|
|
865
|
-
});
|
|
866
|
-
return result;
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Simulate a write purely to surface typed reverts.
|
|
870
|
-
*
|
|
871
|
-
* The simulate's return value is discarded on principle: this contract
|
|
872
|
-
* returns nothing from `addDelegate` / `revokeDelegate` anyway, but the
|
|
873
|
-
* pattern is kept identical to every other airdrop v2 client so a revert is
|
|
874
|
-
* always decoded before the user pays for it.
|
|
875
|
-
*/
|
|
876
|
-
async #preflightWrite(method, functionName, args, account) {
|
|
877
|
-
try {
|
|
878
|
-
await this.publicClient.simulateContract({
|
|
879
|
-
address: this.address,
|
|
880
|
-
abi: complianceRoleManagerAbi,
|
|
881
|
-
functionName,
|
|
882
|
-
args,
|
|
883
|
-
account
|
|
884
|
-
});
|
|
885
|
-
} catch (err) {
|
|
886
|
-
if (chunkMVDQMV25_cjs.isContractRevert(err)) {
|
|
887
|
-
throw this.#mapRevert(method, err, account);
|
|
888
|
-
}
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
/**
|
|
892
|
-
* Map a viem error to the SDK's typed palette.
|
|
893
|
-
*
|
|
894
|
-
* `productContext` deliberately carries only public identifiers — the
|
|
895
|
-
* caller, the chain. Never an amount: this contract never handles amounts
|
|
896
|
-
* at all, but the convention is shared across every airdrop v2 client.
|
|
897
|
-
*/
|
|
898
|
-
#mapRevert(method, err, account) {
|
|
899
|
-
return chunkMVDQMV25_cjs.mapContractRevert(err, {
|
|
900
|
-
method,
|
|
901
|
-
contractAddress: this.address,
|
|
902
|
-
abi: complianceRoleManagerAbi,
|
|
903
|
-
productMapper: chunkM4IT6DNJ_cjs.airdropProductMapper,
|
|
904
|
-
account: accountAddress(account),
|
|
905
|
-
productContext: {
|
|
906
|
-
creator: accountAddress(account),
|
|
907
|
-
chainId: this.chainId
|
|
908
|
-
}
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
#requireWallet(method) {
|
|
912
|
-
if (!this.walletClient) {
|
|
913
|
-
throw new chunk67OV5CX2_cjs.MissingWalletClientError(method);
|
|
914
|
-
}
|
|
915
|
-
return this.walletClient;
|
|
916
|
-
}
|
|
917
|
-
#resolveAccount(wallet, override, method) {
|
|
918
|
-
const acct = override ?? wallet.account;
|
|
919
|
-
if (!acct) {
|
|
920
|
-
throw new chunk67OV5CX2_cjs.MissingAccountError(method);
|
|
921
|
-
}
|
|
922
|
-
return acct;
|
|
923
|
-
}
|
|
924
|
-
};
|
|
925
|
-
function createComplianceManagerClient(config) {
|
|
926
|
-
return new ComplianceManagerClient(config);
|
|
927
|
-
}
|
|
928
|
-
function accountAddress(account) {
|
|
929
|
-
return typeof account === "string" ? account : account.address;
|
|
930
|
-
}
|
|
931
18
|
|
|
932
19
|
Object.defineProperty(exports, "buildMerkleCampaign", {
|
|
933
20
|
enumerable: true,
|
|
934
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkGKYZQJGP_cjs.buildMerkleCampaign; }
|
|
935
22
|
});
|
|
936
23
|
Object.defineProperty(exports, "buildMerkleTree", {
|
|
937
24
|
enumerable: true,
|
|
938
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkGKYZQJGP_cjs.buildMerkleTree; }
|
|
939
26
|
});
|
|
940
27
|
Object.defineProperty(exports, "encryptCampaignAmounts", {
|
|
941
28
|
enumerable: true,
|
|
942
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkGKYZQJGP_cjs.encryptCampaignAmounts; }
|
|
943
30
|
});
|
|
944
31
|
Object.defineProperty(exports, "grantInstanceRoles", {
|
|
945
32
|
enumerable: true,
|
|
946
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkGKYZQJGP_cjs.grantInstanceRoles; }
|
|
947
34
|
});
|
|
948
35
|
Object.defineProperty(exports, "leafOf", {
|
|
949
36
|
enumerable: true,
|
|
950
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkGKYZQJGP_cjs.leafOf; }
|
|
951
38
|
});
|
|
952
39
|
Object.defineProperty(exports, "planInstanceRoleSplit", {
|
|
953
40
|
enumerable: true,
|
|
954
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkGKYZQJGP_cjs.planInstanceRoleSplit; }
|
|
955
42
|
});
|
|
956
43
|
Object.defineProperty(exports, "planMerkleCampaign", {
|
|
957
44
|
enumerable: true,
|
|
958
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkGKYZQJGP_cjs.planMerkleCampaign; }
|
|
959
46
|
});
|
|
960
47
|
Object.defineProperty(exports, "rotateMerkleRoot", {
|
|
961
48
|
enumerable: true,
|
|
962
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunkGKYZQJGP_cjs.rotateMerkleRoot; }
|
|
963
50
|
});
|
|
964
51
|
Object.defineProperty(exports, "validateCampaignRecipients", {
|
|
965
52
|
enumerable: true,
|
|
966
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunkGKYZQJGP_cjs.validateCampaignRecipients; }
|
|
967
54
|
});
|
|
968
55
|
Object.defineProperty(exports, "AirdropBaseClient", {
|
|
969
56
|
enumerable: true,
|
|
970
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk4AWQJQXY_cjs.AirdropBaseClient; }
|
|
971
58
|
});
|
|
972
59
|
Object.defineProperty(exports, "CLAIM_TYPEHASH", {
|
|
973
60
|
enumerable: true,
|
|
974
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk4AWQJQXY_cjs.CLAIM_TYPEHASH; }
|
|
975
62
|
});
|
|
976
63
|
Object.defineProperty(exports, "CLAIM_TYPES", {
|
|
977
64
|
enumerable: true,
|
|
978
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk4AWQJQXY_cjs.CLAIM_TYPES; }
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(exports, "ComplianceManagerClient", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
get: function () { return chunk4AWQJQXY_cjs.ComplianceManagerClient; }
|
|
979
70
|
});
|
|
980
71
|
Object.defineProperty(exports, "ConfidentialAirdropFactoryClient", {
|
|
981
72
|
enumerable: true,
|
|
982
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk4AWQJQXY_cjs.ConfidentialAirdropFactoryClient; }
|
|
983
74
|
});
|
|
984
75
|
Object.defineProperty(exports, "EIP712_DOMAIN_NAME", {
|
|
985
76
|
enumerable: true,
|
|
986
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk4AWQJQXY_cjs.EIP712_DOMAIN_NAME; }
|
|
987
78
|
});
|
|
988
79
|
Object.defineProperty(exports, "EIP712_DOMAIN_VERSION", {
|
|
989
80
|
enumerable: true,
|
|
990
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk4AWQJQXY_cjs.EIP712_DOMAIN_VERSION; }
|
|
991
82
|
});
|
|
992
83
|
Object.defineProperty(exports, "EcdsaAirdropClient", {
|
|
993
84
|
enumerable: true,
|
|
994
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk4AWQJQXY_cjs.EcdsaAirdropClient; }
|
|
995
86
|
});
|
|
996
87
|
Object.defineProperty(exports, "FACTORY_ROLE_CONCENTRATION_NOTE", {
|
|
997
88
|
enumerable: true,
|
|
998
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk4AWQJQXY_cjs.FACTORY_ROLE_CONCENTRATION_NOTE; }
|
|
999
90
|
});
|
|
1000
91
|
Object.defineProperty(exports, "MerkleAirdropClient", {
|
|
1001
92
|
enumerable: true,
|
|
1002
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk4AWQJQXY_cjs.MerkleAirdropClient; }
|
|
1003
94
|
});
|
|
1004
95
|
Object.defineProperty(exports, "airdropFactoryAbi", {
|
|
1005
96
|
enumerable: true,
|
|
1006
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk4AWQJQXY_cjs.airdropFactoryAbi; }
|
|
98
|
+
});
|
|
99
|
+
Object.defineProperty(exports, "complianceRoleManagerAbi", {
|
|
100
|
+
enumerable: true,
|
|
101
|
+
get: function () { return chunk4AWQJQXY_cjs.complianceRoleManagerAbi; }
|
|
1007
102
|
});
|
|
1008
103
|
Object.defineProperty(exports, "confidentialAirdropBaseAbi", {
|
|
1009
104
|
enumerable: true,
|
|
1010
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk4AWQJQXY_cjs.confidentialAirdropBaseAbi; }
|
|
1011
106
|
});
|
|
1012
107
|
Object.defineProperty(exports, "createAirdropBaseClient", {
|
|
1013
108
|
enumerable: true,
|
|
1014
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk4AWQJQXY_cjs.createAirdropBaseClient; }
|
|
110
|
+
});
|
|
111
|
+
Object.defineProperty(exports, "createComplianceManagerClient", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
get: function () { return chunk4AWQJQXY_cjs.createComplianceManagerClient; }
|
|
1015
114
|
});
|
|
1016
115
|
Object.defineProperty(exports, "createConfidentialAirdropFactoryClient", {
|
|
1017
116
|
enumerable: true,
|
|
1018
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunk4AWQJQXY_cjs.createConfidentialAirdropFactoryClient; }
|
|
1019
118
|
});
|
|
1020
119
|
Object.defineProperty(exports, "createEcdsaAirdropClient", {
|
|
1021
120
|
enumerable: true,
|
|
1022
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunk4AWQJQXY_cjs.createEcdsaAirdropClient; }
|
|
1023
122
|
});
|
|
1024
123
|
Object.defineProperty(exports, "createMerkleAirdropClient", {
|
|
1025
124
|
enumerable: true,
|
|
1026
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunk4AWQJQXY_cjs.createMerkleAirdropClient; }
|
|
1027
126
|
});
|
|
1028
127
|
Object.defineProperty(exports, "ecdsaConfidentialAirdropAbi", {
|
|
1029
128
|
enumerable: true,
|
|
1030
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunk4AWQJQXY_cjs.ecdsaConfidentialAirdropAbi; }
|
|
1031
130
|
});
|
|
1032
131
|
Object.defineProperty(exports, "encryptUint64", {
|
|
1033
132
|
enumerable: true,
|
|
1034
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunk4AWQJQXY_cjs.encryptUint64; }
|
|
1035
134
|
});
|
|
1036
135
|
Object.defineProperty(exports, "encryptUint64Batch", {
|
|
1037
136
|
enumerable: true,
|
|
1038
|
-
get: function () { return
|
|
137
|
+
get: function () { return chunk4AWQJQXY_cjs.encryptUint64Batch; }
|
|
138
|
+
});
|
|
139
|
+
Object.defineProperty(exports, "isAclPropagationError", {
|
|
140
|
+
enumerable: true,
|
|
141
|
+
get: function () { return chunk4AWQJQXY_cjs.isAclPropagationError; }
|
|
1039
142
|
});
|
|
1040
143
|
Object.defineProperty(exports, "merkleConfidentialAirdropAbi", {
|
|
1041
144
|
enumerable: true,
|
|
1042
|
-
get: function () { return
|
|
145
|
+
get: function () { return chunk4AWQJQXY_cjs.merkleConfidentialAirdropAbi; }
|
|
1043
146
|
});
|
|
1044
147
|
Object.defineProperty(exports, "resolveEncryptor", {
|
|
1045
148
|
enumerable: true,
|
|
1046
|
-
get: function () { return
|
|
149
|
+
get: function () { return chunk4AWQJQXY_cjs.resolveEncryptor; }
|
|
1047
150
|
});
|
|
1048
151
|
Object.defineProperty(exports, "signClaimAuthorization", {
|
|
1049
152
|
enumerable: true,
|
|
1050
|
-
get: function () { return
|
|
153
|
+
get: function () { return chunk4AWQJQXY_cjs.signClaimAuthorization; }
|
|
1051
154
|
});
|
|
1052
155
|
Object.defineProperty(exports, "AIRDROP_CONTRACTS_COMMIT", {
|
|
1053
156
|
enumerable: true,
|
|
1054
|
-
get: function () { return
|
|
157
|
+
get: function () { return chunkYTIYTV4K_cjs.AIRDROP_CONTRACTS_COMMIT; }
|
|
1055
158
|
});
|
|
1056
159
|
Object.defineProperty(exports, "AlreadyClaimedError", {
|
|
1057
160
|
enumerable: true,
|
|
1058
|
-
get: function () { return
|
|
161
|
+
get: function () { return chunkYTIYTV4K_cjs.AlreadyClaimedError; }
|
|
1059
162
|
});
|
|
1060
163
|
Object.defineProperty(exports, "ClaimNotStartedError", {
|
|
1061
164
|
enumerable: true,
|
|
1062
|
-
get: function () { return
|
|
165
|
+
get: function () { return chunkYTIYTV4K_cjs.ClaimNotStartedError; }
|
|
1063
166
|
});
|
|
1064
167
|
Object.defineProperty(exports, "ClaimWindowClosedError", {
|
|
1065
168
|
enumerable: true,
|
|
1066
|
-
get: function () { return
|
|
169
|
+
get: function () { return chunkYTIYTV4K_cjs.ClaimWindowClosedError; }
|
|
1067
170
|
});
|
|
1068
171
|
Object.defineProperty(exports, "DEDUP_MODE", {
|
|
1069
172
|
enumerable: true,
|
|
1070
|
-
get: function () { return
|
|
173
|
+
get: function () { return chunkYTIYTV4K_cjs.DEDUP_MODE; }
|
|
1071
174
|
});
|
|
1072
175
|
Object.defineProperty(exports, "DEPLOYMENT_MODE", {
|
|
1073
176
|
enumerable: true,
|
|
1074
|
-
get: function () { return
|
|
177
|
+
get: function () { return chunkYTIYTV4K_cjs.DEPLOYMENT_MODE; }
|
|
1075
178
|
});
|
|
1076
179
|
Object.defineProperty(exports, "DedupIdConsumedError", {
|
|
1077
180
|
enumerable: true,
|
|
1078
|
-
get: function () { return
|
|
181
|
+
get: function () { return chunkYTIYTV4K_cjs.DedupIdConsumedError; }
|
|
1079
182
|
});
|
|
1080
183
|
Object.defineProperty(exports, "FeeCollectorSelfAdministeredError", {
|
|
1081
184
|
enumerable: true,
|
|
1082
|
-
get: function () { return
|
|
185
|
+
get: function () { return chunkYTIYTV4K_cjs.FeeCollectorSelfAdministeredError; }
|
|
186
|
+
});
|
|
187
|
+
Object.defineProperty(exports, "GasFeeNotAcceptedError", {
|
|
188
|
+
enumerable: true,
|
|
189
|
+
get: function () { return chunkYTIYTV4K_cjs.GasFeeNotAcceptedError; }
|
|
1083
190
|
});
|
|
1084
191
|
Object.defineProperty(exports, "MerkleUupsUnsupportedError", {
|
|
1085
192
|
enumerable: true,
|
|
1086
|
-
get: function () { return
|
|
193
|
+
get: function () { return chunkYTIYTV4K_cjs.MerkleUupsUnsupportedError; }
|
|
1087
194
|
});
|
|
1088
195
|
Object.defineProperty(exports, "NonStockWrapperError", {
|
|
1089
196
|
enumerable: true,
|
|
1090
|
-
get: function () { return
|
|
197
|
+
get: function () { return chunkYTIYTV4K_cjs.NonStockWrapperError; }
|
|
1091
198
|
});
|
|
1092
199
|
Object.defineProperty(exports, "PredictionDriftError", {
|
|
1093
200
|
enumerable: true,
|
|
1094
|
-
get: function () { return
|
|
201
|
+
get: function () { return chunkYTIYTV4K_cjs.PredictionDriftError; }
|
|
1095
202
|
});
|
|
1096
203
|
Object.defineProperty(exports, "SaltCollisionError", {
|
|
1097
204
|
enumerable: true,
|
|
1098
|
-
get: function () { return
|
|
205
|
+
get: function () { return chunkYTIYTV4K_cjs.SaltCollisionError; }
|
|
1099
206
|
});
|
|
1100
207
|
Object.defineProperty(exports, "SignatureExpiredError", {
|
|
1101
208
|
enumerable: true,
|
|
1102
|
-
get: function () { return
|
|
209
|
+
get: function () { return chunkYTIYTV4K_cjs.SignatureExpiredError; }
|
|
210
|
+
});
|
|
211
|
+
Object.defineProperty(exports, "UINT96_MAX", {
|
|
212
|
+
enumerable: true,
|
|
213
|
+
get: function () { return chunkYTIYTV4K_cjs.UINT96_MAX; }
|
|
214
|
+
});
|
|
215
|
+
Object.defineProperty(exports, "UnauthorizedRedirectError", {
|
|
216
|
+
enumerable: true,
|
|
217
|
+
get: function () { return chunkYTIYTV4K_cjs.UnauthorizedRedirectError; }
|
|
218
|
+
});
|
|
219
|
+
Object.defineProperty(exports, "UnrecognisedAirdropError", {
|
|
220
|
+
enumerable: true,
|
|
221
|
+
get: function () { return chunkYTIYTV4K_cjs.UnrecognisedAirdropError; }
|
|
1103
222
|
});
|
|
1104
223
|
Object.defineProperty(exports, "UpgradeabilityNotAllowedError", {
|
|
1105
224
|
enumerable: true,
|
|
1106
|
-
get: function () { return
|
|
225
|
+
get: function () { return chunkYTIYTV4K_cjs.UpgradeabilityNotAllowedError; }
|
|
1107
226
|
});
|
|
1108
227
|
Object.defineProperty(exports, "preflightClaim", {
|
|
1109
228
|
enumerable: true,
|
|
1110
|
-
get: function () { return
|
|
229
|
+
get: function () { return chunkYTIYTV4K_cjs.preflightClaim; }
|
|
1111
230
|
});
|
|
1112
231
|
Object.defineProperty(exports, "preflightCreate", {
|
|
1113
232
|
enumerable: true,
|
|
1114
|
-
get: function () { return
|
|
233
|
+
get: function () { return chunkYTIYTV4K_cjs.preflightCreate; }
|
|
1115
234
|
});
|
|
1116
235
|
Object.defineProperty(exports, "ERC7984_OPERATOR_MAX_DEADLINE", {
|
|
1117
236
|
enumerable: true,
|
|
@@ -1281,7 +400,3 @@ Object.defineProperty(exports, "isTokenOpsSdkError", {
|
|
|
1281
400
|
enumerable: true,
|
|
1282
401
|
get: function () { return chunk67OV5CX2_cjs.isTokenOpsSdkError; }
|
|
1283
402
|
});
|
|
1284
|
-
exports.ComplianceManagerClient = ComplianceManagerClient;
|
|
1285
|
-
exports.complianceRoleManagerAbi = complianceRoleManagerAbi;
|
|
1286
|
-
exports.createComplianceManagerClient = createComplianceManagerClient;
|
|
1287
|
-
exports.isAclPropagationError = isAclPropagationError;
|