@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.
Files changed (117) hide show
  1. package/LICENSE +674 -0
  2. package/README.md +7 -0
  3. package/dist/Actions/Action.cjs +1 -0
  4. package/dist/Actions/Action.d.ts +31 -0
  5. package/dist/Actions/Action.d.ts.map +1 -0
  6. package/dist/Actions/Action.js +27 -0
  7. package/dist/Actions/ContractAction.d.ts +327 -0
  8. package/dist/Actions/ContractAction.d.ts.map +1 -0
  9. package/dist/Actions/ERC721MintAction.d.ts +486 -0
  10. package/dist/Actions/ERC721MintAction.d.ts.map +1 -0
  11. package/dist/Actions/EventAction.cjs +1 -0
  12. package/dist/Actions/EventAction.d.ts +433 -0
  13. package/dist/Actions/EventAction.d.ts.map +1 -0
  14. package/dist/Actions/EventAction.js +211 -0
  15. package/dist/AllowLists/AllowList.cjs +1 -0
  16. package/dist/AllowLists/AllowList.d.ts +33 -0
  17. package/dist/AllowLists/AllowList.d.ts.map +1 -0
  18. package/dist/AllowLists/AllowList.js +28 -0
  19. package/dist/AllowLists/SimpleAllowList.cjs +1 -0
  20. package/dist/AllowLists/SimpleAllowList.d.ts +452 -0
  21. package/dist/AllowLists/SimpleAllowList.d.ts.map +1 -0
  22. package/dist/AllowLists/SimpleAllowList.js +138 -0
  23. package/dist/AllowLists/SimpleDenyList.cjs +1 -0
  24. package/dist/AllowLists/SimpleDenyList.d.ts +306 -0
  25. package/dist/AllowLists/SimpleDenyList.d.ts.map +1 -0
  26. package/dist/AllowLists/SimpleDenyList.js +202 -0
  27. package/dist/Auth/Auth.cjs +1 -0
  28. package/dist/Auth/Auth.d.ts +10 -0
  29. package/dist/Auth/Auth.d.ts.map +1 -0
  30. package/dist/Auth/Auth.js +4 -0
  31. package/dist/Auth/PassthroughAuth.cjs +1 -0
  32. package/dist/Auth/PassthroughAuth.d.ts +51 -0
  33. package/dist/Auth/PassthroughAuth.d.ts.map +1 -0
  34. package/dist/Auth/PassthroughAuth.js +38 -0
  35. package/dist/Boost.cjs +1 -0
  36. package/dist/Boost.d.ts +142 -0
  37. package/dist/Boost.d.ts.map +1 -0
  38. package/dist/Boost.js +15 -0
  39. package/dist/BoostCore.cjs +2 -0
  40. package/dist/BoostCore.d.ts +460 -0
  41. package/dist/BoostCore.d.ts.map +1 -0
  42. package/dist/BoostCore.js +1105 -0
  43. package/dist/BoostRegistry.cjs +1 -0
  44. package/dist/BoostRegistry.d.ts +229 -0
  45. package/dist/BoostRegistry.d.ts.map +1 -0
  46. package/dist/BoostRegistry.js +250 -0
  47. package/dist/Budgets/Budget.cjs +1 -0
  48. package/dist/Budgets/Budget.d.ts +31 -0
  49. package/dist/Budgets/Budget.d.ts.map +1 -0
  50. package/dist/Budgets/Budget.js +27 -0
  51. package/dist/Budgets/ManagedBudget.cjs +1 -0
  52. package/dist/Budgets/ManagedBudget.d.ts +1065 -0
  53. package/dist/Budgets/ManagedBudget.d.ts.map +1 -0
  54. package/dist/Budgets/ManagedBudget.js +498 -0
  55. package/dist/Budgets/SimpleBudget.d.ts +793 -0
  56. package/dist/Budgets/SimpleBudget.d.ts.map +1 -0
  57. package/dist/Budgets/VestingBudget.d.ts +726 -0
  58. package/dist/Budgets/VestingBudget.d.ts.map +1 -0
  59. package/dist/Deployable/Contract.cjs +1 -0
  60. package/dist/Deployable/Contract.d.ts +125 -0
  61. package/dist/Deployable/Contract.d.ts.map +1 -0
  62. package/dist/Deployable/Contract.js +149 -0
  63. package/dist/Deployable/Deployable.cjs +1 -0
  64. package/dist/Deployable/Deployable.d.ts +155 -0
  65. package/dist/Deployable/Deployable.d.ts.map +1 -0
  66. package/dist/Deployable/Deployable.js +124 -0
  67. package/dist/Deployable/DeployableTarget.cjs +1 -0
  68. package/dist/Deployable/DeployableTarget.d.ts +115 -0
  69. package/dist/Deployable/DeployableTarget.d.ts.map +1 -0
  70. package/dist/Deployable/DeployableTarget.js +128 -0
  71. package/dist/Incentives/AllowListIncentive.cjs +1 -0
  72. package/dist/Incentives/AllowListIncentive.d.ts +483 -0
  73. package/dist/Incentives/AllowListIncentive.d.ts.map +1 -0
  74. package/dist/Incentives/AllowListIncentive.js +188 -0
  75. package/dist/Incentives/CGDAIncentive.cjs +1 -0
  76. package/dist/Incentives/CGDAIncentive.d.ts +560 -0
  77. package/dist/Incentives/CGDAIncentive.d.ts.map +1 -0
  78. package/dist/Incentives/CGDAIncentive.js +249 -0
  79. package/dist/Incentives/ERC1155Incentive.d.ts +652 -0
  80. package/dist/Incentives/ERC1155Incentive.d.ts.map +1 -0
  81. package/dist/Incentives/ERC20Incentive.cjs +1 -0
  82. package/dist/Incentives/ERC20Incentive.d.ts +622 -0
  83. package/dist/Incentives/ERC20Incentive.d.ts.map +1 -0
  84. package/dist/Incentives/ERC20Incentive.js +292 -0
  85. package/dist/Incentives/ERC20VariableIncentive.d.ts +545 -0
  86. package/dist/Incentives/ERC20VariableIncentive.d.ts.map +1 -0
  87. package/dist/Incentives/Incentive.cjs +1 -0
  88. package/dist/Incentives/Incentive.d.ts +39 -0
  89. package/dist/Incentives/Incentive.d.ts.map +1 -0
  90. package/dist/Incentives/Incentive.js +280 -0
  91. package/dist/Incentives/PointsIncentive.cjs +1 -0
  92. package/dist/Incentives/PointsIncentive.d.ts +615 -0
  93. package/dist/Incentives/PointsIncentive.d.ts.map +1 -0
  94. package/dist/Incentives/PointsIncentive.js +197 -0
  95. package/dist/Validators/SignerValidator.cjs +1 -0
  96. package/dist/Validators/SignerValidator.d.ts +452 -0
  97. package/dist/Validators/SignerValidator.d.ts.map +1 -0
  98. package/dist/Validators/SignerValidator.js +167 -0
  99. package/dist/Validators/Validator.cjs +1 -0
  100. package/dist/Validators/Validator.d.ts +31 -0
  101. package/dist/Validators/Validator.d.ts.map +1 -0
  102. package/dist/Validators/Validator.js +25 -0
  103. package/dist/errors.cjs +1 -0
  104. package/dist/errors.d.ts +257 -0
  105. package/dist/errors.d.ts.map +1 -0
  106. package/dist/errors.js +161 -0
  107. package/dist/generated-BaaleHW-.cjs +2 -0
  108. package/dist/generated-x_abr3Yv.js +6228 -0
  109. package/dist/index.cjs +1 -0
  110. package/dist/index.d.ts +29 -0
  111. package/dist/index.d.ts.map +1 -0
  112. package/dist/index.js +1355 -0
  113. package/dist/utils.cjs +1 -0
  114. package/dist/utils.d.ts +1454 -0
  115. package/dist/utils.d.ts.map +1 -0
  116. package/dist/utils.js +643 -0
  117. package/package.json +197 -0
@@ -0,0 +1,483 @@
1
+ import { allowListIncentiveAbi } from '@boostxyz/evm';
2
+ import type { Address, ContractEventName } from 'viem';
3
+ import { SimpleAllowList } from '../AllowLists/AllowList';
4
+ import type { DeployableOptions, GenericDeployableParams } from '../Deployable/Deployable';
5
+ import { DeployableTarget } from '../Deployable/DeployableTarget';
6
+ import { type AllowListIncentivePayload, type ClaimPayload, type GenericLog, type ReadParams, RegistryType, type WriteParams } from '../utils';
7
+ export { allowListIncentiveAbi };
8
+ export type { AllowListIncentivePayload };
9
+ /**
10
+ * A generic `viem.Log` event with support for `AllowListIncentive` event types.
11
+ *
12
+ * @export
13
+ * @typedef {AllowListIncentiveLog}
14
+ * @template {ContractEventName<
15
+ * typeof allowListIncentiveAbi
16
+ * >} [event=ContractEventName<typeof allowListIncentiveAbi>]
17
+ */
18
+ export type AllowListIncentiveLog<event extends ContractEventName<typeof allowListIncentiveAbi> = ContractEventName<typeof allowListIncentiveAbi>> = GenericLog<typeof allowListIncentiveAbi, event>;
19
+ /**
20
+ * An incentive implementation that grants the claimer a slot on an {SimpleAllowList}
21
+ * In order for any claim to be successful:
22
+ * - The claimer must not already be on the allow list; and
23
+ * - The maximum number of claims must not have been reached; and
24
+ * - This contract must be authorized to modify the allow list
25
+ *
26
+ * @export
27
+ * @class AllowListIncentive
28
+ * @typedef {AllowListIncentive}
29
+ * @extends {DeployableTarget<AllowListIncentivePayload>}
30
+ */
31
+ export declare class AllowListIncentive extends DeployableTarget<AllowListIncentivePayload, typeof allowListIncentiveAbi> {
32
+ readonly abi: readonly [{
33
+ readonly type: "constructor";
34
+ readonly inputs: readonly [];
35
+ readonly stateMutability: "nonpayable";
36
+ }, {
37
+ readonly type: "error";
38
+ readonly inputs: readonly [];
39
+ readonly name: "AlreadyInitialized";
40
+ }, {
41
+ readonly type: "error";
42
+ readonly inputs: readonly [];
43
+ readonly name: "ClaimFailed";
44
+ }, {
45
+ readonly type: "error";
46
+ readonly inputs: readonly [];
47
+ readonly name: "CloneAlreadyInitialized";
48
+ }, {
49
+ readonly type: "error";
50
+ readonly inputs: readonly [];
51
+ readonly name: "InitializerNotImplemented";
52
+ }, {
53
+ readonly type: "error";
54
+ readonly inputs: readonly [];
55
+ readonly name: "InvalidInitialization";
56
+ }, {
57
+ readonly type: "error";
58
+ readonly inputs: readonly [];
59
+ readonly name: "InvalidInitializationData";
60
+ }, {
61
+ readonly type: "error";
62
+ readonly inputs: readonly [];
63
+ readonly name: "NewOwnerIsZeroAddress";
64
+ }, {
65
+ readonly type: "error";
66
+ readonly inputs: readonly [];
67
+ readonly name: "NoHandoverRequest";
68
+ }, {
69
+ readonly type: "error";
70
+ readonly inputs: readonly [];
71
+ readonly name: "NotClaimable";
72
+ }, {
73
+ readonly type: "error";
74
+ readonly inputs: readonly [];
75
+ readonly name: "NotImplemented";
76
+ }, {
77
+ readonly type: "error";
78
+ readonly inputs: readonly [];
79
+ readonly name: "NotInitializing";
80
+ }, {
81
+ readonly type: "error";
82
+ readonly inputs: readonly [];
83
+ readonly name: "Unauthorized";
84
+ }, {
85
+ readonly type: "event";
86
+ readonly anonymous: false;
87
+ readonly inputs: readonly [{
88
+ readonly name: "recipient";
89
+ readonly internalType: "address";
90
+ readonly type: "address";
91
+ readonly indexed: true;
92
+ }, {
93
+ readonly name: "data";
94
+ readonly internalType: "bytes";
95
+ readonly type: "bytes";
96
+ readonly indexed: false;
97
+ }];
98
+ readonly name: "Claimed";
99
+ }, {
100
+ readonly type: "event";
101
+ readonly anonymous: false;
102
+ readonly inputs: readonly [{
103
+ readonly name: "version";
104
+ readonly internalType: "uint64";
105
+ readonly type: "uint64";
106
+ readonly indexed: false;
107
+ }];
108
+ readonly name: "Initialized";
109
+ }, {
110
+ readonly type: "event";
111
+ readonly anonymous: false;
112
+ readonly inputs: readonly [{
113
+ readonly name: "pendingOwner";
114
+ readonly internalType: "address";
115
+ readonly type: "address";
116
+ readonly indexed: true;
117
+ }];
118
+ readonly name: "OwnershipHandoverCanceled";
119
+ }, {
120
+ readonly type: "event";
121
+ readonly anonymous: false;
122
+ readonly inputs: readonly [{
123
+ readonly name: "pendingOwner";
124
+ readonly internalType: "address";
125
+ readonly type: "address";
126
+ readonly indexed: true;
127
+ }];
128
+ readonly name: "OwnershipHandoverRequested";
129
+ }, {
130
+ readonly type: "event";
131
+ readonly anonymous: false;
132
+ readonly inputs: readonly [{
133
+ readonly name: "oldOwner";
134
+ readonly internalType: "address";
135
+ readonly type: "address";
136
+ readonly indexed: true;
137
+ }, {
138
+ readonly name: "newOwner";
139
+ readonly internalType: "address";
140
+ readonly type: "address";
141
+ readonly indexed: true;
142
+ }];
143
+ readonly name: "OwnershipTransferred";
144
+ }, {
145
+ readonly type: "function";
146
+ readonly inputs: readonly [];
147
+ readonly name: "allowList";
148
+ readonly outputs: readonly [{
149
+ readonly name: "";
150
+ readonly internalType: "contract SimpleAllowList";
151
+ readonly type: "address";
152
+ }];
153
+ readonly stateMutability: "view";
154
+ }, {
155
+ readonly type: "function";
156
+ readonly inputs: readonly [];
157
+ readonly name: "cancelOwnershipHandover";
158
+ readonly outputs: readonly [];
159
+ readonly stateMutability: "payable";
160
+ }, {
161
+ readonly type: "function";
162
+ readonly inputs: readonly [{
163
+ readonly name: "claimTarget";
164
+ readonly internalType: "address";
165
+ readonly type: "address";
166
+ }, {
167
+ readonly name: "";
168
+ readonly internalType: "bytes";
169
+ readonly type: "bytes";
170
+ }];
171
+ readonly name: "claim";
172
+ readonly outputs: readonly [{
173
+ readonly name: "";
174
+ readonly internalType: "bool";
175
+ readonly type: "bool";
176
+ }];
177
+ readonly stateMutability: "nonpayable";
178
+ }, {
179
+ readonly type: "function";
180
+ readonly inputs: readonly [{
181
+ readonly name: "";
182
+ readonly internalType: "address";
183
+ readonly type: "address";
184
+ }];
185
+ readonly name: "claimed";
186
+ readonly outputs: readonly [{
187
+ readonly name: "";
188
+ readonly internalType: "bool";
189
+ readonly type: "bool";
190
+ }];
191
+ readonly stateMutability: "view";
192
+ }, {
193
+ readonly type: "function";
194
+ readonly inputs: readonly [];
195
+ readonly name: "claims";
196
+ readonly outputs: readonly [{
197
+ readonly name: "";
198
+ readonly internalType: "uint256";
199
+ readonly type: "uint256";
200
+ }];
201
+ readonly stateMutability: "view";
202
+ }, {
203
+ readonly type: "function";
204
+ readonly inputs: readonly [{
205
+ readonly name: "";
206
+ readonly internalType: "bytes";
207
+ readonly type: "bytes";
208
+ }];
209
+ readonly name: "clawback";
210
+ readonly outputs: readonly [{
211
+ readonly name: "";
212
+ readonly internalType: "bool";
213
+ readonly type: "bool";
214
+ }];
215
+ readonly stateMutability: "pure";
216
+ }, {
217
+ readonly type: "function";
218
+ readonly inputs: readonly [{
219
+ readonly name: "pendingOwner";
220
+ readonly internalType: "address";
221
+ readonly type: "address";
222
+ }];
223
+ readonly name: "completeOwnershipHandover";
224
+ readonly outputs: readonly [];
225
+ readonly stateMutability: "payable";
226
+ }, {
227
+ readonly type: "function";
228
+ readonly inputs: readonly [];
229
+ readonly name: "currentReward";
230
+ readonly outputs: readonly [{
231
+ readonly name: "";
232
+ readonly internalType: "uint256";
233
+ readonly type: "uint256";
234
+ }];
235
+ readonly stateMutability: "view";
236
+ }, {
237
+ readonly type: "function";
238
+ readonly inputs: readonly [];
239
+ readonly name: "getComponentInterface";
240
+ readonly outputs: readonly [{
241
+ readonly name: "";
242
+ readonly internalType: "bytes4";
243
+ readonly type: "bytes4";
244
+ }];
245
+ readonly stateMutability: "pure";
246
+ }, {
247
+ readonly type: "function";
248
+ readonly inputs: readonly [{
249
+ readonly name: "data_";
250
+ readonly internalType: "bytes";
251
+ readonly type: "bytes";
252
+ }];
253
+ readonly name: "initialize";
254
+ readonly outputs: readonly [];
255
+ readonly stateMutability: "nonpayable";
256
+ }, {
257
+ readonly type: "function";
258
+ readonly inputs: readonly [{
259
+ readonly name: "claimTarget";
260
+ readonly internalType: "address";
261
+ readonly type: "address";
262
+ }, {
263
+ readonly name: "";
264
+ readonly internalType: "bytes";
265
+ readonly type: "bytes";
266
+ }];
267
+ readonly name: "isClaimable";
268
+ readonly outputs: readonly [{
269
+ readonly name: "";
270
+ readonly internalType: "bool";
271
+ readonly type: "bool";
272
+ }];
273
+ readonly stateMutability: "view";
274
+ }, {
275
+ readonly type: "function";
276
+ readonly inputs: readonly [];
277
+ readonly name: "limit";
278
+ readonly outputs: readonly [{
279
+ readonly name: "";
280
+ readonly internalType: "uint256";
281
+ readonly type: "uint256";
282
+ }];
283
+ readonly stateMutability: "view";
284
+ }, {
285
+ readonly type: "function";
286
+ readonly inputs: readonly [];
287
+ readonly name: "owner";
288
+ readonly outputs: readonly [{
289
+ readonly name: "result";
290
+ readonly internalType: "address";
291
+ readonly type: "address";
292
+ }];
293
+ readonly stateMutability: "view";
294
+ }, {
295
+ readonly type: "function";
296
+ readonly inputs: readonly [{
297
+ readonly name: "pendingOwner";
298
+ readonly internalType: "address";
299
+ readonly type: "address";
300
+ }];
301
+ readonly name: "ownershipHandoverExpiresAt";
302
+ readonly outputs: readonly [{
303
+ readonly name: "result";
304
+ readonly internalType: "uint256";
305
+ readonly type: "uint256";
306
+ }];
307
+ readonly stateMutability: "view";
308
+ }, {
309
+ readonly type: "function";
310
+ readonly inputs: readonly [{
311
+ readonly name: "";
312
+ readonly internalType: "bytes";
313
+ readonly type: "bytes";
314
+ }];
315
+ readonly name: "preflight";
316
+ readonly outputs: readonly [{
317
+ readonly name: "";
318
+ readonly internalType: "bytes";
319
+ readonly type: "bytes";
320
+ }];
321
+ readonly stateMutability: "pure";
322
+ }, {
323
+ readonly type: "function";
324
+ readonly inputs: readonly [];
325
+ readonly name: "renounceOwnership";
326
+ readonly outputs: readonly [];
327
+ readonly stateMutability: "payable";
328
+ }, {
329
+ readonly type: "function";
330
+ readonly inputs: readonly [];
331
+ readonly name: "requestOwnershipHandover";
332
+ readonly outputs: readonly [];
333
+ readonly stateMutability: "payable";
334
+ }, {
335
+ readonly type: "function";
336
+ readonly inputs: readonly [];
337
+ readonly name: "reward";
338
+ readonly outputs: readonly [{
339
+ readonly name: "";
340
+ readonly internalType: "uint256";
341
+ readonly type: "uint256";
342
+ }];
343
+ readonly stateMutability: "view";
344
+ }, {
345
+ readonly type: "function";
346
+ readonly inputs: readonly [{
347
+ readonly name: "interfaceId";
348
+ readonly internalType: "bytes4";
349
+ readonly type: "bytes4";
350
+ }];
351
+ readonly name: "supportsInterface";
352
+ readonly outputs: readonly [{
353
+ readonly name: "";
354
+ readonly internalType: "bool";
355
+ readonly type: "bool";
356
+ }];
357
+ readonly stateMutability: "view";
358
+ }, {
359
+ readonly type: "function";
360
+ readonly inputs: readonly [{
361
+ readonly name: "newOwner";
362
+ readonly internalType: "address";
363
+ readonly type: "address";
364
+ }];
365
+ readonly name: "transferOwnership";
366
+ readonly outputs: readonly [];
367
+ readonly stateMutability: "payable";
368
+ }];
369
+ /**
370
+ * @inheritdoc
371
+ *
372
+ * @public
373
+ * @static
374
+ * @type {Address}
375
+ */
376
+ static base: Address;
377
+ /**
378
+ * @inheritdoc
379
+ *
380
+ * @public
381
+ * @static
382
+ * @type {RegistryType}
383
+ */
384
+ static registryType: RegistryType;
385
+ /**
386
+ * The owner of the allowList
387
+ *
388
+ * @public
389
+ * @async
390
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'owner'>} [params]
391
+ * @returns {unknown}
392
+ */
393
+ owner(params?: ReadParams<typeof allowListIncentiveAbi, 'owner'>): Promise<`0x${string}`>;
394
+ /**
395
+ * The number of claims that have been made
396
+ *
397
+ * @public
398
+ * @async
399
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'claims'>} [params]
400
+ * @returns {Promise<bigint>}
401
+ */
402
+ claims(params?: ReadParams<typeof allowListIncentiveAbi, 'claims'>): Promise<bigint>;
403
+ /**
404
+ * The reward amount issued for each claim
405
+ *
406
+ * @public
407
+ * @async
408
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'reward'>} [params]
409
+ * @returns {Promise<bigint>}
410
+ */
411
+ reward(params?: ReadParams<typeof allowListIncentiveAbi, 'reward'>): Promise<bigint>;
412
+ /**
413
+ * Get the claim status for a user
414
+ *
415
+ * @public
416
+ * @async
417
+ * @param {Address} address
418
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'claimed'>} [params]
419
+ * @returns {Promise<boolean>}
420
+ */
421
+ claimed(address: Address, params?: ReadParams<typeof allowListIncentiveAbi, 'claimed'>): Promise<boolean>;
422
+ /**
423
+ * The {@link SimpleAllowList} contract
424
+ *
425
+ * @public
426
+ * @async
427
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'allowList'>} [params]
428
+ * @returns {Promise<SimpleAllowList>}
429
+ */
430
+ allowList(params?: ReadParams<typeof allowListIncentiveAbi, 'allowList'>): Promise<SimpleAllowList>;
431
+ /**
432
+ * The maximum number of claims that can be made (one per address)
433
+ *
434
+ * @public
435
+ * @async
436
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'limit'>} [params]
437
+ * @returns {unknown}
438
+ */
439
+ limit(params?: ReadParams<typeof allowListIncentiveAbi, 'limit'>): Promise<bigint>;
440
+ /**
441
+ * Claim a slot on the {@link SimpleAllowList}
442
+ *
443
+ * @public
444
+ * @async
445
+ * @param {Pick<ClaimPayload, 'target'>} payload
446
+ * @param {?WriteParams<typeof allowListIncentiveAbi, 'claim'>} [params]
447
+ * @returns {Promise<true>} - return true if successful, otherwise revert
448
+ */
449
+ claim(payload: Pick<ClaimPayload, 'target'>, params?: WriteParams<typeof allowListIncentiveAbi, 'claim'>): Promise<boolean>;
450
+ /**
451
+ * Claim a slot on the {@link SimpleAllowList}
452
+ *
453
+ * @public
454
+ * @async
455
+ * @param {Pick<ClaimPayload, 'target'>} payload
456
+ * @param {?WriteParams<typeof allowListIncentiveAbi, 'claim'>} [params]
457
+ * @returns {Promise<true>} - return true if successful, otherwise revert
458
+ */
459
+ claimRaw(payload: Pick<ClaimPayload, 'target'>, params?: WriteParams<typeof allowListIncentiveAbi, 'claim'>): Promise<{
460
+ hash: `0x${string}`;
461
+ result: boolean;
462
+ }>;
463
+ /**
464
+ * Check if an incentive is claimable
465
+ *
466
+ * @public
467
+ * @async
468
+ * @param {Pick<ClaimPayload, 'target'>} payload
469
+ * @param {?ReadParams<typeof allowListIncentiveAbi, 'isClaimable'>} [params]
470
+ * @returns {Promise<boolean>} - True if the incentive is claimable based on the data payload
471
+ */
472
+ isClaimable(payload: Pick<ClaimPayload, 'target'>, params?: ReadParams<typeof allowListIncentiveAbi, 'isClaimable'>): Promise<boolean>;
473
+ /**
474
+ * @inheritdoc
475
+ *
476
+ * @public
477
+ * @param {?AllowListIncentivePayload} [_payload]
478
+ * @param {?DeployableOptions} [_options]
479
+ * @returns {GenericDeployableParams}
480
+ */
481
+ buildParameters(_payload?: AllowListIncentivePayload, _options?: DeployableOptions): GenericDeployableParams;
482
+ }
483
+ //# sourceMappingURL=AllowListIncentive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AllowListIncentive.d.ts","sourceRoot":"","sources":["../../src/Incentives/AllowListIncentive.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAUtB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,OAAO,EAAE,iBAAiB,EAAO,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EACV,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EACL,KAAK,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