@boostxyz/sdk 0.0.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +7 -0
- package/dist/Actions/Action.cjs +1 -0
- package/dist/Actions/Action.d.ts +31 -0
- package/dist/Actions/Action.d.ts.map +1 -0
- package/dist/Actions/Action.js +27 -0
- package/dist/Actions/ContractAction.d.ts +327 -0
- package/dist/Actions/ContractAction.d.ts.map +1 -0
- package/dist/Actions/ERC721MintAction.d.ts +486 -0
- package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.cjs +1 -0
- package/dist/Actions/EventAction.d.ts +433 -0
- package/dist/Actions/EventAction.d.ts.map +1 -0
- package/dist/Actions/EventAction.js +211 -0
- package/dist/AllowLists/AllowList.cjs +1 -0
- package/dist/AllowLists/AllowList.d.ts +33 -0
- package/dist/AllowLists/AllowList.d.ts.map +1 -0
- package/dist/AllowLists/AllowList.js +28 -0
- package/dist/AllowLists/SimpleAllowList.cjs +1 -0
- package/dist/AllowLists/SimpleAllowList.d.ts +452 -0
- package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleAllowList.js +138 -0
- package/dist/AllowLists/SimpleDenyList.cjs +1 -0
- package/dist/AllowLists/SimpleDenyList.d.ts +306 -0
- package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
- package/dist/AllowLists/SimpleDenyList.js +202 -0
- package/dist/Auth/Auth.cjs +1 -0
- package/dist/Auth/Auth.d.ts +10 -0
- package/dist/Auth/Auth.d.ts.map +1 -0
- package/dist/Auth/Auth.js +4 -0
- package/dist/Auth/PassthroughAuth.cjs +1 -0
- package/dist/Auth/PassthroughAuth.d.ts +51 -0
- package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
- package/dist/Auth/PassthroughAuth.js +38 -0
- package/dist/Boost.cjs +1 -0
- package/dist/Boost.d.ts +142 -0
- package/dist/Boost.d.ts.map +1 -0
- package/dist/Boost.js +15 -0
- package/dist/BoostCore.cjs +2 -0
- package/dist/BoostCore.d.ts +460 -0
- package/dist/BoostCore.d.ts.map +1 -0
- package/dist/BoostCore.js +1105 -0
- package/dist/BoostRegistry.cjs +1 -0
- package/dist/BoostRegistry.d.ts +229 -0
- package/dist/BoostRegistry.d.ts.map +1 -0
- package/dist/BoostRegistry.js +250 -0
- package/dist/Budgets/Budget.cjs +1 -0
- package/dist/Budgets/Budget.d.ts +31 -0
- package/dist/Budgets/Budget.d.ts.map +1 -0
- package/dist/Budgets/Budget.js +27 -0
- package/dist/Budgets/ManagedBudget.cjs +1 -0
- package/dist/Budgets/ManagedBudget.d.ts +1065 -0
- package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
- package/dist/Budgets/ManagedBudget.js +498 -0
- package/dist/Budgets/SimpleBudget.d.ts +793 -0
- package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
- package/dist/Budgets/VestingBudget.d.ts +726 -0
- package/dist/Budgets/VestingBudget.d.ts.map +1 -0
- package/dist/Deployable/Contract.cjs +1 -0
- package/dist/Deployable/Contract.d.ts +125 -0
- package/dist/Deployable/Contract.d.ts.map +1 -0
- package/dist/Deployable/Contract.js +149 -0
- package/dist/Deployable/Deployable.cjs +1 -0
- package/dist/Deployable/Deployable.d.ts +155 -0
- package/dist/Deployable/Deployable.d.ts.map +1 -0
- package/dist/Deployable/Deployable.js +124 -0
- package/dist/Deployable/DeployableTarget.cjs +1 -0
- package/dist/Deployable/DeployableTarget.d.ts +115 -0
- package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
- package/dist/Deployable/DeployableTarget.js +128 -0
- package/dist/Incentives/AllowListIncentive.cjs +1 -0
- package/dist/Incentives/AllowListIncentive.d.ts +483 -0
- package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
- package/dist/Incentives/AllowListIncentive.js +188 -0
- package/dist/Incentives/CGDAIncentive.cjs +1 -0
- package/dist/Incentives/CGDAIncentive.d.ts +560 -0
- package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
- package/dist/Incentives/CGDAIncentive.js +249 -0
- package/dist/Incentives/ERC1155Incentive.d.ts +652 -0
- package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.cjs +1 -0
- package/dist/Incentives/ERC20Incentive.d.ts +622 -0
- package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
- package/dist/Incentives/ERC20Incentive.js +292 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts +545 -0
- package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.cjs +1 -0
- package/dist/Incentives/Incentive.d.ts +39 -0
- package/dist/Incentives/Incentive.d.ts.map +1 -0
- package/dist/Incentives/Incentive.js +280 -0
- package/dist/Incentives/PointsIncentive.cjs +1 -0
- package/dist/Incentives/PointsIncentive.d.ts +615 -0
- package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
- package/dist/Incentives/PointsIncentive.js +197 -0
- package/dist/Validators/SignerValidator.cjs +1 -0
- package/dist/Validators/SignerValidator.d.ts +452 -0
- package/dist/Validators/SignerValidator.d.ts.map +1 -0
- package/dist/Validators/SignerValidator.js +167 -0
- package/dist/Validators/Validator.cjs +1 -0
- package/dist/Validators/Validator.d.ts +31 -0
- package/dist/Validators/Validator.d.ts.map +1 -0
- package/dist/Validators/Validator.js +25 -0
- package/dist/errors.cjs +1 -0
- package/dist/errors.d.ts +257 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +161 -0
- package/dist/generated-BaaleHW-.cjs +2 -0
- package/dist/generated-x_abr3Yv.js +6228 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1355 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +1454 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +643 -0
- package/package.json +197 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { erc721MintActionAbi } from '@boostxyz/evm';
|
|
2
|
+
import type { Address, ContractEventName, Hex } from 'viem';
|
|
3
|
+
import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
|
|
4
|
+
import { type ERC721MintActionPayload, type GenericLog, type ReadParams, RegistryType, type WriteParams, prepareERC721MintActionPayload } from '../utils';
|
|
5
|
+
import { ContractAction } from './ContractAction';
|
|
6
|
+
export { erc721MintActionAbi, prepareERC721MintActionPayload };
|
|
7
|
+
export type { ERC721MintActionPayload };
|
|
8
|
+
/**
|
|
9
|
+
* A generic `viem.Log` event with support for `ERC721MintAction` event types.
|
|
10
|
+
*
|
|
11
|
+
* @export
|
|
12
|
+
* @typedef {ERC721MintActionLog}
|
|
13
|
+
* @template {ContractEventName<
|
|
14
|
+
* typeof erc721MintActionAbi
|
|
15
|
+
* >} [event=ContractEventName<typeof erc721MintActionAbi>]
|
|
16
|
+
*/
|
|
17
|
+
export type ERC721MintActionLog<event extends ContractEventName<typeof erc721MintActionAbi> = ContractEventName<typeof erc721MintActionAbi>> = GenericLog<typeof erc721MintActionAbi, event>;
|
|
18
|
+
/**
|
|
19
|
+
* A primitive action to mint and/or validate that an ERC721 token has been minted
|
|
20
|
+
* The action is expected to be prepared with the data payload for the minting of the token
|
|
21
|
+
* This a minimal generic implementation that should be extended if additional functionality or customizations are required
|
|
22
|
+
* It is expected that the target contract has an externally accessible mint function whose selector
|
|
23
|
+
*
|
|
24
|
+
* @export
|
|
25
|
+
* @class ERC721MintAction
|
|
26
|
+
* @typedef {ERC721MintAction}
|
|
27
|
+
* @extends {ContractAction}
|
|
28
|
+
*/
|
|
29
|
+
export declare class ERC721MintAction extends ContractAction<typeof erc721MintActionAbi> {
|
|
30
|
+
readonly abi: readonly [{
|
|
31
|
+
readonly type: "constructor";
|
|
32
|
+
readonly inputs: readonly [];
|
|
33
|
+
readonly stateMutability: "nonpayable";
|
|
34
|
+
}, {
|
|
35
|
+
readonly type: "error";
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "AlreadyInitialized";
|
|
38
|
+
}, {
|
|
39
|
+
readonly type: "error";
|
|
40
|
+
readonly inputs: readonly [];
|
|
41
|
+
readonly name: "CloneAlreadyInitialized";
|
|
42
|
+
}, {
|
|
43
|
+
readonly type: "error";
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly name: "InitializerNotImplemented";
|
|
46
|
+
}, {
|
|
47
|
+
readonly type: "error";
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "InvalidInitialization";
|
|
50
|
+
}, {
|
|
51
|
+
readonly type: "error";
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
readonly name: "InvalidInitializationData";
|
|
54
|
+
}, {
|
|
55
|
+
readonly type: "error";
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "NewOwnerIsZeroAddress";
|
|
58
|
+
}, {
|
|
59
|
+
readonly type: "error";
|
|
60
|
+
readonly inputs: readonly [];
|
|
61
|
+
readonly name: "NoHandoverRequest";
|
|
62
|
+
}, {
|
|
63
|
+
readonly type: "error";
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly name: "NotImplemented";
|
|
66
|
+
}, {
|
|
67
|
+
readonly type: "error";
|
|
68
|
+
readonly inputs: readonly [];
|
|
69
|
+
readonly name: "NotInitializing";
|
|
70
|
+
}, {
|
|
71
|
+
readonly type: "error";
|
|
72
|
+
readonly inputs: readonly [{
|
|
73
|
+
readonly name: "targetChainId";
|
|
74
|
+
readonly internalType: "uint256";
|
|
75
|
+
readonly type: "uint256";
|
|
76
|
+
}];
|
|
77
|
+
readonly name: "TargetChainUnsupported";
|
|
78
|
+
}, {
|
|
79
|
+
readonly type: "error";
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
readonly name: "Unauthorized";
|
|
82
|
+
}, {
|
|
83
|
+
readonly type: "event";
|
|
84
|
+
readonly anonymous: false;
|
|
85
|
+
readonly inputs: readonly [{
|
|
86
|
+
readonly name: "executor";
|
|
87
|
+
readonly internalType: "address";
|
|
88
|
+
readonly type: "address";
|
|
89
|
+
readonly indexed: true;
|
|
90
|
+
}, {
|
|
91
|
+
readonly name: "caller";
|
|
92
|
+
readonly internalType: "address";
|
|
93
|
+
readonly type: "address";
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
}, {
|
|
96
|
+
readonly name: "success";
|
|
97
|
+
readonly internalType: "bool";
|
|
98
|
+
readonly type: "bool";
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
}, {
|
|
101
|
+
readonly name: "data";
|
|
102
|
+
readonly internalType: "bytes";
|
|
103
|
+
readonly type: "bytes";
|
|
104
|
+
readonly indexed: false;
|
|
105
|
+
}];
|
|
106
|
+
readonly name: "ActionExecuted";
|
|
107
|
+
}, {
|
|
108
|
+
readonly type: "event";
|
|
109
|
+
readonly anonymous: false;
|
|
110
|
+
readonly inputs: readonly [{
|
|
111
|
+
readonly name: "user";
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly type: "address";
|
|
114
|
+
readonly indexed: true;
|
|
115
|
+
}, {
|
|
116
|
+
readonly name: "isValidated";
|
|
117
|
+
readonly internalType: "bool";
|
|
118
|
+
readonly type: "bool";
|
|
119
|
+
readonly indexed: false;
|
|
120
|
+
}, {
|
|
121
|
+
readonly name: "data";
|
|
122
|
+
readonly internalType: "bytes";
|
|
123
|
+
readonly type: "bytes";
|
|
124
|
+
readonly indexed: false;
|
|
125
|
+
}];
|
|
126
|
+
readonly name: "ActionValidated";
|
|
127
|
+
}, {
|
|
128
|
+
readonly type: "event";
|
|
129
|
+
readonly anonymous: false;
|
|
130
|
+
readonly inputs: readonly [{
|
|
131
|
+
readonly name: "version";
|
|
132
|
+
readonly internalType: "uint64";
|
|
133
|
+
readonly type: "uint64";
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
}];
|
|
136
|
+
readonly name: "Initialized";
|
|
137
|
+
}, {
|
|
138
|
+
readonly type: "event";
|
|
139
|
+
readonly anonymous: false;
|
|
140
|
+
readonly inputs: readonly [{
|
|
141
|
+
readonly name: "pendingOwner";
|
|
142
|
+
readonly internalType: "address";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
readonly indexed: true;
|
|
145
|
+
}];
|
|
146
|
+
readonly name: "OwnershipHandoverCanceled";
|
|
147
|
+
}, {
|
|
148
|
+
readonly type: "event";
|
|
149
|
+
readonly anonymous: false;
|
|
150
|
+
readonly inputs: readonly [{
|
|
151
|
+
readonly name: "pendingOwner";
|
|
152
|
+
readonly internalType: "address";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
readonly indexed: true;
|
|
155
|
+
}];
|
|
156
|
+
readonly name: "OwnershipHandoverRequested";
|
|
157
|
+
}, {
|
|
158
|
+
readonly type: "event";
|
|
159
|
+
readonly anonymous: false;
|
|
160
|
+
readonly inputs: readonly [{
|
|
161
|
+
readonly name: "oldOwner";
|
|
162
|
+
readonly internalType: "address";
|
|
163
|
+
readonly type: "address";
|
|
164
|
+
readonly indexed: true;
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "newOwner";
|
|
167
|
+
readonly internalType: "address";
|
|
168
|
+
readonly type: "address";
|
|
169
|
+
readonly indexed: true;
|
|
170
|
+
}];
|
|
171
|
+
readonly name: "OwnershipTransferred";
|
|
172
|
+
}, {
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
readonly inputs: readonly [];
|
|
175
|
+
readonly name: "VALIDATOR";
|
|
176
|
+
readonly outputs: readonly [{
|
|
177
|
+
readonly name: "";
|
|
178
|
+
readonly internalType: "contract AValidator";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}];
|
|
181
|
+
readonly stateMutability: "view";
|
|
182
|
+
}, {
|
|
183
|
+
readonly type: "function";
|
|
184
|
+
readonly inputs: readonly [];
|
|
185
|
+
readonly name: "cancelOwnershipHandover";
|
|
186
|
+
readonly outputs: readonly [];
|
|
187
|
+
readonly stateMutability: "payable";
|
|
188
|
+
}, {
|
|
189
|
+
readonly type: "function";
|
|
190
|
+
readonly inputs: readonly [];
|
|
191
|
+
readonly name: "chainId";
|
|
192
|
+
readonly outputs: readonly [{
|
|
193
|
+
readonly name: "";
|
|
194
|
+
readonly internalType: "uint256";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}];
|
|
197
|
+
readonly stateMutability: "view";
|
|
198
|
+
}, {
|
|
199
|
+
readonly type: "function";
|
|
200
|
+
readonly inputs: readonly [{
|
|
201
|
+
readonly name: "pendingOwner";
|
|
202
|
+
readonly internalType: "address";
|
|
203
|
+
readonly type: "address";
|
|
204
|
+
}];
|
|
205
|
+
readonly name: "completeOwnershipHandover";
|
|
206
|
+
readonly outputs: readonly [];
|
|
207
|
+
readonly stateMutability: "payable";
|
|
208
|
+
}, {
|
|
209
|
+
readonly type: "function";
|
|
210
|
+
readonly inputs: readonly [{
|
|
211
|
+
readonly name: "data_";
|
|
212
|
+
readonly internalType: "bytes";
|
|
213
|
+
readonly type: "bytes";
|
|
214
|
+
}];
|
|
215
|
+
readonly name: "execute";
|
|
216
|
+
readonly outputs: readonly [{
|
|
217
|
+
readonly name: "success";
|
|
218
|
+
readonly internalType: "bool";
|
|
219
|
+
readonly type: "bool";
|
|
220
|
+
}, {
|
|
221
|
+
readonly name: "returnData";
|
|
222
|
+
readonly internalType: "bytes";
|
|
223
|
+
readonly type: "bytes";
|
|
224
|
+
}];
|
|
225
|
+
readonly stateMutability: "payable";
|
|
226
|
+
}, {
|
|
227
|
+
readonly type: "function";
|
|
228
|
+
readonly inputs: readonly [];
|
|
229
|
+
readonly name: "getComponentInterface";
|
|
230
|
+
readonly outputs: readonly [{
|
|
231
|
+
readonly name: "";
|
|
232
|
+
readonly internalType: "bytes4";
|
|
233
|
+
readonly type: "bytes4";
|
|
234
|
+
}];
|
|
235
|
+
readonly stateMutability: "pure";
|
|
236
|
+
}, {
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
readonly inputs: readonly [{
|
|
239
|
+
readonly name: "data_";
|
|
240
|
+
readonly internalType: "bytes";
|
|
241
|
+
readonly type: "bytes";
|
|
242
|
+
}];
|
|
243
|
+
readonly name: "initialize";
|
|
244
|
+
readonly outputs: readonly [];
|
|
245
|
+
readonly stateMutability: "nonpayable";
|
|
246
|
+
}, {
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
readonly inputs: readonly [];
|
|
249
|
+
readonly name: "owner";
|
|
250
|
+
readonly outputs: readonly [{
|
|
251
|
+
readonly name: "result";
|
|
252
|
+
readonly internalType: "address";
|
|
253
|
+
readonly type: "address";
|
|
254
|
+
}];
|
|
255
|
+
readonly stateMutability: "view";
|
|
256
|
+
}, {
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
readonly inputs: readonly [{
|
|
259
|
+
readonly name: "pendingOwner";
|
|
260
|
+
readonly internalType: "address";
|
|
261
|
+
readonly type: "address";
|
|
262
|
+
}];
|
|
263
|
+
readonly name: "ownershipHandoverExpiresAt";
|
|
264
|
+
readonly outputs: readonly [{
|
|
265
|
+
readonly name: "result";
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
269
|
+
readonly stateMutability: "view";
|
|
270
|
+
}, {
|
|
271
|
+
readonly type: "function";
|
|
272
|
+
readonly inputs: readonly [{
|
|
273
|
+
readonly name: "data_";
|
|
274
|
+
readonly internalType: "bytes";
|
|
275
|
+
readonly type: "bytes";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "prepare";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly name: "";
|
|
280
|
+
readonly internalType: "bytes";
|
|
281
|
+
readonly type: "bytes";
|
|
282
|
+
}];
|
|
283
|
+
readonly stateMutability: "view";
|
|
284
|
+
}, {
|
|
285
|
+
readonly type: "function";
|
|
286
|
+
readonly inputs: readonly [];
|
|
287
|
+
readonly name: "renounceOwnership";
|
|
288
|
+
readonly outputs: readonly [];
|
|
289
|
+
readonly stateMutability: "payable";
|
|
290
|
+
}, {
|
|
291
|
+
readonly type: "function";
|
|
292
|
+
readonly inputs: readonly [];
|
|
293
|
+
readonly name: "requestOwnershipHandover";
|
|
294
|
+
readonly outputs: readonly [];
|
|
295
|
+
readonly stateMutability: "payable";
|
|
296
|
+
}, {
|
|
297
|
+
readonly type: "function";
|
|
298
|
+
readonly inputs: readonly [];
|
|
299
|
+
readonly name: "selector";
|
|
300
|
+
readonly outputs: readonly [{
|
|
301
|
+
readonly name: "";
|
|
302
|
+
readonly internalType: "bytes4";
|
|
303
|
+
readonly type: "bytes4";
|
|
304
|
+
}];
|
|
305
|
+
readonly stateMutability: "view";
|
|
306
|
+
}, {
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
readonly inputs: readonly [{
|
|
309
|
+
readonly name: "interfaceId";
|
|
310
|
+
readonly internalType: "bytes4";
|
|
311
|
+
readonly type: "bytes4";
|
|
312
|
+
}];
|
|
313
|
+
readonly name: "supportsInterface";
|
|
314
|
+
readonly outputs: readonly [{
|
|
315
|
+
readonly name: "";
|
|
316
|
+
readonly internalType: "bool";
|
|
317
|
+
readonly type: "bool";
|
|
318
|
+
}];
|
|
319
|
+
readonly stateMutability: "view";
|
|
320
|
+
}, {
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
readonly inputs: readonly [];
|
|
323
|
+
readonly name: "target";
|
|
324
|
+
readonly outputs: readonly [{
|
|
325
|
+
readonly name: "";
|
|
326
|
+
readonly internalType: "address";
|
|
327
|
+
readonly type: "address";
|
|
328
|
+
}];
|
|
329
|
+
readonly stateMutability: "view";
|
|
330
|
+
}, {
|
|
331
|
+
readonly type: "function";
|
|
332
|
+
readonly inputs: readonly [{
|
|
333
|
+
readonly name: "newOwner";
|
|
334
|
+
readonly internalType: "address";
|
|
335
|
+
readonly type: "address";
|
|
336
|
+
}];
|
|
337
|
+
readonly name: "transferOwnership";
|
|
338
|
+
readonly outputs: readonly [];
|
|
339
|
+
readonly stateMutability: "payable";
|
|
340
|
+
}, {
|
|
341
|
+
readonly type: "function";
|
|
342
|
+
readonly inputs: readonly [{
|
|
343
|
+
readonly name: "";
|
|
344
|
+
readonly internalType: "uint256";
|
|
345
|
+
readonly type: "uint256";
|
|
346
|
+
}, {
|
|
347
|
+
readonly name: "";
|
|
348
|
+
readonly internalType: "uint256";
|
|
349
|
+
readonly type: "uint256";
|
|
350
|
+
}, {
|
|
351
|
+
readonly name: "";
|
|
352
|
+
readonly internalType: "address";
|
|
353
|
+
readonly type: "address";
|
|
354
|
+
}, {
|
|
355
|
+
readonly name: "data_";
|
|
356
|
+
readonly internalType: "bytes";
|
|
357
|
+
readonly type: "bytes";
|
|
358
|
+
}];
|
|
359
|
+
readonly name: "validate";
|
|
360
|
+
readonly outputs: readonly [{
|
|
361
|
+
readonly name: "success";
|
|
362
|
+
readonly internalType: "bool";
|
|
363
|
+
readonly type: "bool";
|
|
364
|
+
}];
|
|
365
|
+
readonly stateMutability: "nonpayable";
|
|
366
|
+
}, {
|
|
367
|
+
readonly type: "function";
|
|
368
|
+
readonly inputs: readonly [{
|
|
369
|
+
readonly name: "";
|
|
370
|
+
readonly internalType: "uint256";
|
|
371
|
+
readonly type: "uint256";
|
|
372
|
+
}];
|
|
373
|
+
readonly name: "validated";
|
|
374
|
+
readonly outputs: readonly [{
|
|
375
|
+
readonly name: "";
|
|
376
|
+
readonly internalType: "bool";
|
|
377
|
+
readonly type: "bool";
|
|
378
|
+
}];
|
|
379
|
+
readonly stateMutability: "view";
|
|
380
|
+
}, {
|
|
381
|
+
readonly type: "function";
|
|
382
|
+
readonly inputs: readonly [];
|
|
383
|
+
readonly name: "value";
|
|
384
|
+
readonly outputs: readonly [{
|
|
385
|
+
readonly name: "";
|
|
386
|
+
readonly internalType: "uint256";
|
|
387
|
+
readonly type: "uint256";
|
|
388
|
+
}];
|
|
389
|
+
readonly stateMutability: "view";
|
|
390
|
+
}];
|
|
391
|
+
/**
|
|
392
|
+
* @inheritdoc
|
|
393
|
+
*
|
|
394
|
+
* @public
|
|
395
|
+
* @static
|
|
396
|
+
* @type {Address}
|
|
397
|
+
*/
|
|
398
|
+
static base: Address;
|
|
399
|
+
/**
|
|
400
|
+
* @inheritdoc
|
|
401
|
+
*
|
|
402
|
+
* @public
|
|
403
|
+
* @static
|
|
404
|
+
* @type {RegistryType}
|
|
405
|
+
*/
|
|
406
|
+
static registryType: RegistryType;
|
|
407
|
+
/**
|
|
408
|
+
* The set of validated tokens
|
|
409
|
+
* This is intended to prevent multiple validations against the same token ID
|
|
410
|
+
*
|
|
411
|
+
* @public
|
|
412
|
+
* @async
|
|
413
|
+
* @param {bigint} token
|
|
414
|
+
* @param {?ReadParams<typeof erc721MintActionAbi, 'validated'>} [params]
|
|
415
|
+
* @returns {unknown}
|
|
416
|
+
*/
|
|
417
|
+
validated(token: bigint, params?: ReadParams<typeof erc721MintActionAbi, 'validated'>): Promise<boolean>;
|
|
418
|
+
/**
|
|
419
|
+
* @inheritdoc
|
|
420
|
+
*
|
|
421
|
+
* @public
|
|
422
|
+
* @async
|
|
423
|
+
* @param {Hex} data
|
|
424
|
+
* @param {?WriteParams<typeof erc721MintActionAbi, 'execute'>} [params]
|
|
425
|
+
* @returns {unknown}
|
|
426
|
+
*/
|
|
427
|
+
execute(data: Hex, params?: WriteParams<typeof erc721MintActionAbi, 'execute'>): Promise<readonly [boolean, `0x${string}`]>;
|
|
428
|
+
/**
|
|
429
|
+
* @inheritdoc
|
|
430
|
+
*
|
|
431
|
+
* @public
|
|
432
|
+
* @async
|
|
433
|
+
* @param {Hex} data
|
|
434
|
+
* @param {?WriteParams<typeof erc721MintActionAbi, 'execute'>} [params]
|
|
435
|
+
* @returns {unknown}
|
|
436
|
+
*/
|
|
437
|
+
executeRaw(data: Hex, params?: WriteParams<typeof erc721MintActionAbi, 'execute'>): Promise<{
|
|
438
|
+
hash: `0x${string}`;
|
|
439
|
+
result: readonly [boolean, `0x${string}`];
|
|
440
|
+
}>;
|
|
441
|
+
/**
|
|
442
|
+
* @inheritdoc
|
|
443
|
+
*
|
|
444
|
+
* @public
|
|
445
|
+
* @async
|
|
446
|
+
* @param {Hex} data
|
|
447
|
+
* @param {?ReadParams<typeof erc721MintActionAbi, 'prepare'>} [params]
|
|
448
|
+
* @returns {unknown}
|
|
449
|
+
*/
|
|
450
|
+
prepare(data: Hex, params?: ReadParams<typeof erc721MintActionAbi, 'prepare'>): Promise<`0x${string}`>;
|
|
451
|
+
/**
|
|
452
|
+
* Validate that the action has been completed successfully
|
|
453
|
+
*
|
|
454
|
+
* @public
|
|
455
|
+
* @async
|
|
456
|
+
* @param {Address} holder - The holder
|
|
457
|
+
* @param {BigInt} tokenId - The token ID
|
|
458
|
+
* @param {?WriteParams<typeof erc721MintActionAbi, 'validate'>} [params]
|
|
459
|
+
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the action has been validated for the user
|
|
460
|
+
*/
|
|
461
|
+
validate(holder: Address, tokenId: bigint, params?: WriteParams<typeof erc721MintActionAbi, 'validate'>): Promise<boolean>;
|
|
462
|
+
/**
|
|
463
|
+
* Validate that the action has been completed successfully
|
|
464
|
+
*
|
|
465
|
+
* @public
|
|
466
|
+
* @async
|
|
467
|
+
* @param {Address} holder - The holder
|
|
468
|
+
* @param {BigInt} tokenId - The token ID
|
|
469
|
+
* @param {?WriteParams<typeof erc721MintActionAbi, 'validate'>} [params]
|
|
470
|
+
* @returns {Promise<{ hash: `0x${string}`; result: boolean; }>} - True if the action has been validated for the user
|
|
471
|
+
*/
|
|
472
|
+
validateRaw(holder: Address, tokenId: bigint, params?: WriteParams<typeof erc721MintActionAbi, 'validate'>): Promise<{
|
|
473
|
+
hash: `0x${string}`;
|
|
474
|
+
result: boolean;
|
|
475
|
+
}>;
|
|
476
|
+
/**
|
|
477
|
+
* @inheritdoc
|
|
478
|
+
*
|
|
479
|
+
* @public
|
|
480
|
+
* @param {?ERC721MintActionPayload} [_payload]
|
|
481
|
+
* @param {?DeployableOptions} [_options]
|
|
482
|
+
* @returns {GenericDeployableParams}
|
|
483
|
+
*/
|
|
484
|
+
buildParameters(_payload?: ERC721MintActionPayload, _options?: DeployableOptions): GenericDeployableParams;
|
|
485
|
+
}
|
|
486
|
+
//# sourceMappingURL=ERC721MintAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ERC721MintAction.d.ts","sourceRoot":"","sources":["../../src/Actions/ERC721MintAction.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,EAOpB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,UAAU,EACf,KAAK,UAAU,EACf,YAAY,EACZ,KAAK,WAAW,EAChB,8BAA8B,EAE/B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAE,mBAAmB,EAAE,8BAA8B,EAAE,CAAC;AAC/D,YAAY,EAAE,uBAAuB,EAAE,CAAC;AAExC;;;;;;;;GAQG;AACH,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,iBAAiB,CAC7B,OAAO,mBAAmB,CAC3B,GAAG,iBAAiB,CAAC,OAAO,mBAAmB,CAAC,IAC/C,UAAU,CAAC,OAAO,mBAAmB,EAAE,KAAK,CAAC,CAAC;AAElD;;;;;;;;;;GAUG;AACH,qBAAa,gBAAiB,SAAQ,cAAc,CAClD,OAAO,mBAAmB,CAC3B;IAEC,SAAyB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAAuB;IAEnD;;;;;;OAMG;IACH,OAAuB,IAAI,EAAE,OAAO,CACJ;IAChC;;;;;;OAMG;IACH,OAAuB,YAAY,EAAE,YAAY,CAAuB;IAExE;;;;;;;;;OASG;IACU,SAAS,CACpB,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,EAAE,WAAW,CAAC;IAW9D;;;;;;;;OAQG;IACmB,OAAO,CAC3B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,SAAS,CAAC;IAK7D;;;;;;;;OAQG;IACmB,UAAU,CAC9B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,SAAS,CAAC;;;;IAgB7D;;;;;;;;OAQG;IACmB,OAAO,CAC3B,IAAI,EAAE,GAAG,EACT,MAAM,CAAC,EAAE,UAAU,CAAC,OAAO,mBAAmB,EAAE,SAAS,CAAC;IAW5D;;;;;;;;;OASG;IACU,QAAQ,CACnB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;IAK9D;;;;;;;;;OASG;IACU,WAAW,CACtB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,mBAAmB,EAAE,UAAU,CAAC;;;;IAgB9D;;;;;;;OAOG;IACa,eAAe,CAC7B,QAAQ,CAAC,EAAE,uBAAuB,EAClC,QAAQ,CAAC,EAAE,iBAAiB,GAC3B,uBAAuB;CAY3B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../generated-BaaleHW-.cjs"),l=require("@boostxyz/signatures/events"),E=require("viem/actions"),A=require("../Deployable/DeployableTarget.cjs"),a=require("../utils.cjs"),T="0x60a0604052348015600e575f80fd5b50601b601f60201b60201c565b60b0565b5f602c608760201b60201c565b90508054600181161560455763f92ee8a95f526004601cfd5b8160c01c808260011c146082578060011b8355806020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b60805161239f6100c85f395f61034a015261239f5ff3fe608060405260043610610090575f3560e01c80639bc1cf81116100585780639bc1cf811461017d578063c26624e8146101a7578063d7768c47146101e3578063dbdf21101461021f578063ddd6ab081461024957610090565b806301ffc9a71461009457806309c5eabe146100d057806328d6183b14610101578063393df8cb1461012b578063439fab9114610155575b5f80fd5b34801561009f575f80fd5b506100ba60048036038101906100b5919061145c565b610273565b6040516100c791906114a1565b60405180910390f35b6100ea60048036038101906100e5919061151b565b6102ec565b6040516100f89291906115d6565b60405180910390f35b34801561010c575f80fd5b50610115610321565b6040516101229190611613565b60405180910390f35b348015610136575f80fd5b5061013f610348565b60405161014c91906116a6565b60405180910390f35b348015610160575f80fd5b5061017b6004803603810190610176919061151b565b61036c565b005b348015610188575f80fd5b506101916103f9565b60405161019e91906119de565b60405180910390f35b3480156101b2575f80fd5b506101cd60048036038101906101c89190611a31565b610686565b6040516101da9190611acf565b60405180910390f35b3480156101ee575f80fd5b506102096004803603810190610204919061151b565b6108f1565b6040516102169190611aef565b60405180910390f35b34801561022a575f80fd5b50610233610925565b6040516102409190611b62565b60405180910390f35b348015610254575f80fd5b5061025d610a3c565b60405161026a9190611b8a565b60405180910390f35b5f7f7687b0ed000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806102e557506102e482610a48565b5b9050919050565b5f60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5f7f7687b0ed00000000000000000000000000000000000000000000000000000000905090565b7f000000000000000000000000000000000000000000000000000000000000000081565b5f610375610ac1565b905080546003825580156103a75760018160011c14303b1061039e5763f92ee8a95f526004601cfd5b818160ff1b1b91505b506103bf83838101906103ba9190612035565b610aea565b80156103f4576002815560016020527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d2602080a15b505050565b60606001805480602002602001604051908101604052809291908181526020015f905b8282101561067d578382905f5260205f2090600302016040518060a00160405290815f82015f9054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020015f820160049054906101000a900460ff1660018111156104b4576104b36116f7565b5b60018111156104c6576104c56116f7565b5b81526020015f820160059054906101000a900460ff1660ff1660ff1681526020015f820160069054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182016040518060800160405290815f82015f9054906101000a900460ff16600481111561056e5761056d6116f7565b5b60048111156105805761057f6116f7565b5b81526020015f820160019054906101000a900460ff1660038111156105a8576105a76116f7565b5b60038111156105ba576105b96116f7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff1681526020016001820180546105ea906120a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610616906120a9565b80156106615780601f1061063857610100808354040283529160200191610661565b820191905f5260205f20905b81548152906001019060200180831161064457829003601f168201915b505050505081525050815250508152602001906001019061041c565b50505050905090565b61068e6112c1565b600182815481106106a2576106a16120d9565b5b905f5260205f2090600302016040518060a00160405290815f82015f9054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020015f820160049054906101000a900460ff1660018111156107305761072f6116f7565b5b6001811115610742576107416116f7565b5b81526020015f820160059054906101000a900460ff1660ff1660ff1681526020015f820160069054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001600182016040518060800160405290815f82015f9054906101000a900460ff1660048111156107ea576107e96116f7565b5b60048111156107fc576107fb6116f7565b5b81526020015f820160019054906101000a900460ff166003811115610824576108236116f7565b5b6003811115610836576108356116f7565b5b81526020015f820160029054906101000a900460ff1660ff1660ff168152602001600182018054610866906120a9565b80601f0160208091040260200160405190810160405280929190818152602001828054610892906120a9565b80156108dd5780601f106108b4576101008083540402835291602001916108dd565b820191905f5260205f20905b8154815290600101906020018083116108c057829003601f168201915b505050505081525050815250509050919050565b60606040517fd623472500000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61092d61133c565b5f6040518060800160405290815f82015f9054906101000a900460ff16600181111561095c5761095b6116f7565b5b600181111561096e5761096d6116f7565b5b81526020015f820160019054906101000a900460e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020015f820160059054906101000a900460ff1660ff1660ff1681526020015f820160069054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681525050905090565b5f600180549050905090565b5f7fe6715795000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610aba5750610ab9826111bb565b5b9050919050565b5f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffbf6011325f1b905090565b610af2611234565b805f01515f80820151815f015f6101000a81548160ff02191690836001811115610b1f57610b1e6116f7565b5b02179055506020820151815f0160016101000a81548163ffffffff021916908360e01c02179055506040820151815f0160056101000a81548160ff021916908360ff1602179055506060820151815f0160066101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555090505060018160200151908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f015f6101000a81548163ffffffff021916908360e01c02179055506020820151815f0160046101000a81548160ff02191690836001811115610c2857610c276116f7565b5b02179055506040820151815f0160056101000a81548160ff021916908360ff1602179055506060820151815f0160066101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816001015f820151815f015f6101000a81548160ff02191690836004811115610cc457610cc36116f7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610cf357610cf26116f7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610d2d919061229a565b505050505060018160400151908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f015f6101000a81548163ffffffff021916908360e01c02179055506020820151815f0160046101000a81548160ff02191690836001811115610daa57610da96116f7565b5b02179055506040820151815f0160056101000a81548160ff021916908360ff1602179055506060820151815f0160066101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816001015f820151815f015f6101000a81548160ff02191690836004811115610e4657610e456116f7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610e7557610e746116f7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081610eaf919061229a565b505050505060018160600151908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f015f6101000a81548163ffffffff021916908360e01c02179055506020820151815f0160046101000a81548160ff02191690836001811115610f2c57610f2b6116f7565b5b02179055506040820151815f0160056101000a81548160ff021916908360ff1602179055506060820151815f0160066101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816001015f820151815f015f6101000a81548160ff02191690836004811115610fc857610fc76116f7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115610ff757610ff66116f7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff1602179055506060820151816001019081611031919061229a565b505050505060018160800151908060018154018082558091505060019003905f5260205f2090600302015f909190919091505f820151815f015f6101000a81548163ffffffff021916908360e01c02179055506020820151815f0160046101000a81548160ff021916908360018111156110ae576110ad6116f7565b5b02179055506040820151815f0160056101000a81548160ff021916908360ff1602179055506060820151815f0160066101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055506080820151816001015f820151815f015f6101000a81548160ff0219169083600481111561114a576111496116f7565b5b02179055506020820151815f0160016101000a81548160ff02191690836003811115611179576111786116f7565b5b02179055506040820151815f0160026101000a81548160ff021916908360ff16021790555060608201518160010190816111b3919061229a565b505050505050565b5f7f6ab67a0d000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061122d575061122c82611258565b5b9050919050565b5f61123d610ac1565b905080546001166112555763d7e6bcf85f526004601cfd5b50565b5f7f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6040518060a001604052805f7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020015f6001811115611304576113036116f7565b5b81526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681526020016113366113aa565b81525090565b60405180608001604052805f600181111561135a576113596116f7565b5b81526020015f7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191681526020015f60ff1681526020015f73ffffffffffffffffffffffffffffffffffffffff1681525090565b60405180608001604052805f60048111156113c8576113c76116f7565b5b81526020015f60038111156113e0576113df6116f7565b5b81526020015f60ff168152602001606081525090565b5f604051905090565b5f80fd5b5f80fd5b5f7fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b61143b81611407565b8114611445575f80fd5b50565b5f8135905061145681611432565b92915050565b5f60208284031215611471576114706113ff565b5b5f61147e84828501611448565b91505092915050565b5f8115159050919050565b61149b81611487565b82525050565b5f6020820190506114b45f830184611492565b92915050565b5f80fd5b5f80fd5b5f80fd5b5f8083601f8401126114db576114da6114ba565b5b8235905067ffffffffffffffff8111156114f8576114f76114be565b5b602083019150836001820283011115611514576115136114c2565b5b9250929050565b5f8060208385031215611531576115306113ff565b5b5f83013567ffffffffffffffff81111561154e5761154d611403565b5b61155a858286016114c6565b92509250509250929050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f6115a882611566565b6115b28185611570565b93506115c2818560208601611580565b6115cb8161158e565b840191505092915050565b5f6040820190506115e95f830185611492565b81810360208301526115fb818461159e565b90509392505050565b61160d81611407565b82525050565b5f6020820190506116265f830184611604565b92915050565b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f819050919050565b5f61166e6116696116648461162c565b61164b565b61162c565b9050919050565b5f61167f82611654565b9050919050565b5f61169082611675565b9050919050565b6116a081611686565b82525050565b5f6020820190506116b95f830184611697565b92915050565b5f81519050919050565b5f82825260208201905092915050565b5f819050602082019050919050565b6116f181611407565b82525050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602160045260245ffd5b60028110611735576117346116f7565b5b50565b5f81905061174582611724565b919050565b5f61175482611738565b9050919050565b6117648161174a565b82525050565b5f60ff82169050919050565b61177f8161176a565b82525050565b5f61178f8261162c565b9050919050565b61179f81611785565b82525050565b600581106117b6576117b56116f7565b5b50565b5f8190506117c6826117a5565b919050565b5f6117d5826117b9565b9050919050565b6117e5816117cb565b82525050565b600481106117fc576117fb6116f7565b5b50565b5f81905061180c826117eb565b919050565b5f61181b826117ff565b9050919050565b61182b81611811565b82525050565b5f82825260208201905092915050565b5f61184b82611566565b6118558185611831565b9350611865818560208601611580565b61186e8161158e565b840191505092915050565b5f608083015f83015161188e5f8601826117dc565b5060208301516118a16020860182611822565b5060408301516118b46040860182611776565b50606083015184820360608601526118cc8282611841565b9150508091505092915050565b5f60a083015f8301516118ee5f8601826116e8565b506020830151611901602086018261175b565b5060408301516119146040860182611776565b5060608301516119276060860182611796565b506080830151848203608086015261193f8282611879565b9150508091505092915050565b5f61195783836118d9565b905092915050565b5f602082019050919050565b5f611975826116bf565b61197f81856116c9565b935083602082028501611991856116d9565b805f5b858110156119cc57848403895281516119ad858261194c565b94506119b88361195f565b925060208a01995050600181019050611994565b50829750879550505050505092915050565b5f6020820190508181035f8301526119f6818461196b565b905092915050565b5f819050919050565b611a10816119fe565b8114611a1a575f80fd5b50565b5f81359050611a2b81611a07565b92915050565b5f60208284031215611a4657611a456113ff565b5b5f611a5384828501611a1d565b91505092915050565b5f60a083015f830151611a715f8601826116e8565b506020830151611a84602086018261175b565b506040830151611a976040860182611776565b506060830151611aaa6060860182611796565b5060808301518482036080860152611ac28282611879565b9150508091505092915050565b5f6020820190508181035f830152611ae78184611a5c565b905092915050565b5f6020820190508181035f830152611b07818461159e565b905092915050565b608082015f820151611b235f85018261175b565b506020820151611b3660208501826116e8565b506040820151611b496040850182611776565b506060820151611b5c6060850182611796565b50505050565b5f608082019050611b755f830184611b0f565b92915050565b611b84816119fe565b82525050565b5f602082019050611b9d5f830184611b7b565b92915050565b5f80fd5b7f4e487b71000000000000000000000000000000000000000000000000000000005f52604160045260245ffd5b611bdd8261158e565b810181811067ffffffffffffffff82111715611bfc57611bfb611ba7565b5b80604052505050565b5f611c0e6113f6565b9050611c1a8282611bd4565b919050565b5f80fd5b60028110611c2f575f80fd5b50565b5f81359050611c4081611c23565b92915050565b611c4f8161176a565b8114611c59575f80fd5b50565b5f81359050611c6a81611c46565b92915050565b611c7981611785565b8114611c83575f80fd5b50565b5f81359050611c9481611c70565b92915050565b5f60808284031215611caf57611cae611ba3565b5b611cb96080611c05565b90505f611cc884828501611c32565b5f830152506020611cdb84828501611448565b6020830152506040611cef84828501611c5c565b6040830152506060611d0384828501611c86565b60608301525092915050565b60058110611d1b575f80fd5b50565b5f81359050611d2c81611d0f565b92915050565b60048110611d3e575f80fd5b50565b5f81359050611d4f81611d32565b92915050565b5f80fd5b5f67ffffffffffffffff821115611d7357611d72611ba7565b5b611d7c8261158e565b9050602081019050919050565b828183375f83830152505050565b5f611da9611da484611d59565b611c05565b905082815260208101848484011115611dc557611dc4611d55565b5b611dd0848285611d89565b509392505050565b5f82601f830112611dec57611deb6114ba565b5b8135611dfc848260208601611d97565b91505092915050565b5f60808284031215611e1a57611e19611ba3565b5b611e246080611c05565b90505f611e3384828501611d1e565b5f830152506020611e4684828501611d41565b6020830152506040611e5a84828501611c5c565b604083015250606082013567ffffffffffffffff811115611e7e57611e7d611c1f565b5b611e8a84828501611dd8565b60608301525092915050565b5f60a08284031215611eab57611eaa611ba3565b5b611eb560a0611c05565b90505f611ec484828501611448565b5f830152506020611ed784828501611c32565b6020830152506040611eeb84828501611c5c565b6040830152506060611eff84828501611c86565b606083015250608082013567ffffffffffffffff811115611f2357611f22611c1f565b5b611f2f84828501611e05565b60808301525092915050565b5f6101008284031215611f5157611f50611ba3565b5b611f5b60a0611c05565b90505f611f6a84828501611c9a565b5f83015250608082013567ffffffffffffffff811115611f8d57611f8c611c1f565b5b611f9984828501611e96565b60208301525060a082013567ffffffffffffffff811115611fbd57611fbc611c1f565b5b611fc984828501611e96565b60408301525060c082013567ffffffffffffffff811115611fed57611fec611c1f565b5b611ff984828501611e96565b60608301525060e082013567ffffffffffffffff81111561201d5761201c611c1f565b5b61202984828501611e96565b60808301525092915050565b5f6020828403121561204a576120496113ff565b5b5f82013567ffffffffffffffff81111561206757612066611403565b5b61207384828501611f3b565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f60028204905060018216806120c057607f821691505b6020821081036120d3576120d261207c565b5b50919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b5f819050815f5260205f209050919050565b5f6020601f8301049050919050565b5f82821b905092915050565b5f600883026121627fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82612127565b61216c8683612127565b95508019841693508086168417925050509392505050565b5f61219e612199612194846119fe565b61164b565b6119fe565b9050919050565b5f819050919050565b6121b783612184565b6121cb6121c3826121a5565b848454612133565b825550505050565b5f90565b6121df6121d3565b6121ea8184846121ae565b505050565b5b8181101561220d576122025f826121d7565b6001810190506121f0565b5050565b601f8211156122525761222381612106565b61222c84612118565b8101602085101561223b578190505b61224f61224785612118565b8301826121ef565b50505b505050565b5f82821c905092915050565b5f6122725f1984600802612257565b1980831691505092915050565b5f61228a8383612263565b9150826002028217905092915050565b6122a382611566565b67ffffffffffffffff8111156122bc576122bb611ba7565b5b6122c682546120a9565b6122d1828285612211565b5f60209050601f831160018114612302575f84156122f0578287015190505b6122fa858261227f565b865550612361565b601f19841661231086612106565b5f5b8281101561233757848901518255600182019150602085019450602081019050612312565b868310156123545784890151612350601f891682612263565b8355505b6001600288020188555050505b50505050505056fea2646970667358221220232ad425d6a3fa9ff7de7b59ca0cdff9b09b560e5493bdfd8320e53da80c045964736f6c634300081a0033";var u={VITE_ALLOWLIST_INCENTIVE_BASE:"0x5Cd43Ea5541e1D6FF36962E6e6C11f0bf9d573d4",VITE_BOOST_REGISTRY_ADDRESS:"0x5cb8D869f2EE4e3D987Ac7bEB37D6812f5346DFC",VITE_CGDA_INCENTIVE_BASE:"0x147c3aBFF7Ab7867B206A8c652Cd59D3BE41Dc3E",VITE_ERC20_INCENTIVE_BASE:"0xDCfbb7767B281Fd2d39fc7c39A9f89dC61E81f0d",VITE_POINTS_INCENTIVE_BASE:"0x881c78Ba2d10894a8f4f6996C0FB5bA8AE627AAb",VITE_SIMPLE_DENYLIST_BASE:"0x41A7c1aCC75BEccD11B8F586510759883092460F",VITE_BOOST_CORE_ADDRESS:"0xF4905b327904E5797840fd8cD7F300001a34122f",VITE_SIMPLE_ALLOWLIST_BASE:"0x11556926AaA421e96e06a7A679C680813122db7D",VITE_ERC20_VARIABLE_INCENTIVE_BASE:"0xA7b6c33828693d431C64e59A27d985c4DfB19B95",VITE_MANAGED_BUDGET_BASE:"0x0b51f997fa15867134fA34366FCeA63Bee93C087",VITE_SIGNER_VALIDATOR_BASE:"0x749c6fDd62727E11e3200571de7CfBb61DFbA93b",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const i=class i extends A.DeployableTarget{constructor(){super(...arguments),this.abi=c.W}async getActionStep(f,b){return c.Zf(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...b,args:[f]})}async getActionSteps(f){return c.$f(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...f})}async getActionStepsCount(f){return c.jf(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...f})}async getActionClaimant(f){return c.Gf(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...f})}async execute(f,b){return this.awaitResult(this.executeRaw(f,b))}async executeRaw(f,b){const{request:e,result:d}=await c.tv(this._config,{address:this.assertValidAddress(),...this.optionallyAttachAccount(),...b,args:[f]});return{hash:await c.Xf(this._config,e),result:d}}async validateActionSteps(f){const b=await this.getActionSteps(f);for(const e of b)if(!this.isActionStepValid(e,f))return!1;return!0}async isActionStepValid(f,b){const e=f.actionParameter,d=f.signature;let t;if(b!=null&&b.knownEvents?t=b.knownEvents[d]:t=l.abi[d],!t)throw new Error(`No known ABI for given event signature: ${d}`);const n=f.targetContract,r=await E.getLogs(this._config.getClient({chainId:b==null?void 0:b.chainId}),{...b,address:n,event:t});for(let o of r)if(!this.validateLogAgainstCriteria(e,o))return!1;return!0}async validateLogAgainstCriteria(f,b){const e=b.topics[f.fieldIndex];if(e===void 0)throw new Error("Field value is undefined");switch(f.filterType){case a.FilterType.EQUAL:return e===f.filterData;case a.FilterType.NOT_EQUAL:return e!==f.filterData;case a.FilterType.GREATER_THAN:if(f.fieldType===a.PrimitiveType.UINT)return BigInt(e)>BigInt(f.filterData);throw new Error("GREATER_THAN filter can only be used with UINT fieldType");case a.FilterType.LESS_THAN:if(f.fieldType===a.PrimitiveType.UINT)return BigInt(e)<BigInt(f.filterData);throw new Error("LESS_THAN filter can only be used with UINT fieldType");case a.FilterType.CONTAINS:if(f.fieldType===a.PrimitiveType.BYTES||f.fieldType===a.PrimitiveType.STRING)return e.includes(f.filterData);throw new Error("CONTAINS filter can only be used with BYTES or STRING fieldType");default:throw new Error("Invalid FilterType provided")}}buildParameters(f,b){const[e,d]=this.validateDeploymentConfig(f,b);return{abi:c.W,bytecode:T,args:[a.prepareEventActionPayload(e)],...this.optionallyAttachAccount(d.account)}}};i.base=u.VITE_EVENT_ACTION_BASE,i.registryType=a.RegistryType.ACTION;let s=i;exports.EventAction=s;
|