@gitmyabi/distributioncreator 0.0.0-stage → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +107 -2
- package/contracts/DistributionCreator.d.ts +2864 -0
- package/contracts/DistributionCreator.js +3188 -0
- package/contracts/DistributionCreator.ts +3810 -0
- package/contracts/ERC1967Proxy.d.ts +169 -0
- package/contracts/ERC1967Proxy.js +221 -0
- package/contracts/ERC1967Proxy.ts +251 -0
- package/contracts/index.d.ts +4 -0
- package/contracts/index.js +10 -0
- package/contracts/index.ts +5 -0
- package/index.d.ts +1 -0
- package/index.js +19 -0
- package/package.json +40 -3
|
@@ -0,0 +1,2864 @@
|
|
|
1
|
+
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
|
+
/**
|
|
3
|
+
* CampaignParameters struct type
|
|
4
|
+
*/
|
|
5
|
+
export type CampaignParameters = {
|
|
6
|
+
campaignId: `0x${string}`;
|
|
7
|
+
creator: `0x${string}`;
|
|
8
|
+
rewardToken: `0x${string}`;
|
|
9
|
+
amount: bigint;
|
|
10
|
+
campaignType: bigint;
|
|
11
|
+
startTimestamp: bigint;
|
|
12
|
+
duration: bigint;
|
|
13
|
+
campaignData: `0x${string}`;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* RewardTokenAmounts struct type
|
|
17
|
+
*/
|
|
18
|
+
export type RewardTokenAmounts = {
|
|
19
|
+
token: `0x${string}`;
|
|
20
|
+
minimumAmountPerEpoch: bigint;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* DistributionCreator ABI
|
|
24
|
+
*
|
|
25
|
+
* This ABI is typed using viem's type system for full type safety.
|
|
26
|
+
*/
|
|
27
|
+
export declare const DistributionCreatorAbi: readonly [{
|
|
28
|
+
readonly inputs: readonly [];
|
|
29
|
+
readonly stateMutability: "nonpayable";
|
|
30
|
+
readonly type: "constructor";
|
|
31
|
+
}, {
|
|
32
|
+
readonly inputs: readonly [];
|
|
33
|
+
readonly name: "CampaignAlreadyExists";
|
|
34
|
+
readonly type: "error";
|
|
35
|
+
}, {
|
|
36
|
+
readonly inputs: readonly [];
|
|
37
|
+
readonly name: "CampaignDoesNotExist";
|
|
38
|
+
readonly type: "error";
|
|
39
|
+
}, {
|
|
40
|
+
readonly inputs: readonly [];
|
|
41
|
+
readonly name: "CampaignDurationNull";
|
|
42
|
+
readonly type: "error";
|
|
43
|
+
}, {
|
|
44
|
+
readonly inputs: readonly [];
|
|
45
|
+
readonly name: "CampaignRewardTokenNotWhitelisted";
|
|
46
|
+
readonly type: "error";
|
|
47
|
+
}, {
|
|
48
|
+
readonly inputs: readonly [];
|
|
49
|
+
readonly name: "CampaignRewardTooLow";
|
|
50
|
+
readonly type: "error";
|
|
51
|
+
}, {
|
|
52
|
+
readonly inputs: readonly [];
|
|
53
|
+
readonly name: "InvalidLengths";
|
|
54
|
+
readonly type: "error";
|
|
55
|
+
}, {
|
|
56
|
+
readonly inputs: readonly [];
|
|
57
|
+
readonly name: "InvalidOverride";
|
|
58
|
+
readonly type: "error";
|
|
59
|
+
}, {
|
|
60
|
+
readonly inputs: readonly [];
|
|
61
|
+
readonly name: "InvalidParam";
|
|
62
|
+
readonly type: "error";
|
|
63
|
+
}, {
|
|
64
|
+
readonly inputs: readonly [];
|
|
65
|
+
readonly name: "InvalidReallocation";
|
|
66
|
+
readonly type: "error";
|
|
67
|
+
}, {
|
|
68
|
+
readonly inputs: readonly [];
|
|
69
|
+
readonly name: "NotAllowed";
|
|
70
|
+
readonly type: "error";
|
|
71
|
+
}, {
|
|
72
|
+
readonly inputs: readonly [];
|
|
73
|
+
readonly name: "NotGovernor";
|
|
74
|
+
readonly type: "error";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [];
|
|
77
|
+
readonly name: "NotGovernorOrGuardian";
|
|
78
|
+
readonly type: "error";
|
|
79
|
+
}, {
|
|
80
|
+
readonly inputs: readonly [];
|
|
81
|
+
readonly name: "NotSigned";
|
|
82
|
+
readonly type: "error";
|
|
83
|
+
}, {
|
|
84
|
+
readonly inputs: readonly [];
|
|
85
|
+
readonly name: "OperatorNotAllowed";
|
|
86
|
+
readonly type: "error";
|
|
87
|
+
}, {
|
|
88
|
+
readonly inputs: readonly [];
|
|
89
|
+
readonly name: "ZeroAddress";
|
|
90
|
+
readonly type: "error";
|
|
91
|
+
}, {
|
|
92
|
+
readonly anonymous: false;
|
|
93
|
+
readonly inputs: readonly [{
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "address";
|
|
96
|
+
readonly name: "previousAdmin";
|
|
97
|
+
readonly type: "address";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: false;
|
|
100
|
+
readonly internalType: "address";
|
|
101
|
+
readonly name: "newAdmin";
|
|
102
|
+
readonly type: "address";
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "AdminChanged";
|
|
105
|
+
readonly type: "event";
|
|
106
|
+
}, {
|
|
107
|
+
readonly anonymous: false;
|
|
108
|
+
readonly inputs: readonly [{
|
|
109
|
+
readonly indexed: true;
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "beacon";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}];
|
|
114
|
+
readonly name: "BeaconUpgraded";
|
|
115
|
+
readonly type: "event";
|
|
116
|
+
}, {
|
|
117
|
+
readonly anonymous: false;
|
|
118
|
+
readonly inputs: readonly [{
|
|
119
|
+
readonly indexed: true;
|
|
120
|
+
readonly internalType: "address";
|
|
121
|
+
readonly name: "user";
|
|
122
|
+
readonly type: "address";
|
|
123
|
+
}, {
|
|
124
|
+
readonly indexed: true;
|
|
125
|
+
readonly internalType: "address";
|
|
126
|
+
readonly name: "operator";
|
|
127
|
+
readonly type: "address";
|
|
128
|
+
}, {
|
|
129
|
+
readonly indexed: false;
|
|
130
|
+
readonly internalType: "bool";
|
|
131
|
+
readonly name: "isWhitelisted";
|
|
132
|
+
readonly type: "bool";
|
|
133
|
+
}];
|
|
134
|
+
readonly name: "CampaignOperatorToggled";
|
|
135
|
+
readonly type: "event";
|
|
136
|
+
}, {
|
|
137
|
+
readonly anonymous: false;
|
|
138
|
+
readonly inputs: readonly [{
|
|
139
|
+
readonly indexed: false;
|
|
140
|
+
readonly internalType: "bytes32";
|
|
141
|
+
readonly name: "_campaignId";
|
|
142
|
+
readonly type: "bytes32";
|
|
143
|
+
}, {
|
|
144
|
+
readonly components: readonly [{
|
|
145
|
+
readonly internalType: "bytes32";
|
|
146
|
+
readonly name: "campaignId";
|
|
147
|
+
readonly type: "bytes32";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "address";
|
|
150
|
+
readonly name: "creator";
|
|
151
|
+
readonly type: "address";
|
|
152
|
+
}, {
|
|
153
|
+
readonly internalType: "address";
|
|
154
|
+
readonly name: "rewardToken";
|
|
155
|
+
readonly type: "address";
|
|
156
|
+
}, {
|
|
157
|
+
readonly internalType: "uint256";
|
|
158
|
+
readonly name: "amount";
|
|
159
|
+
readonly type: "uint256";
|
|
160
|
+
}, {
|
|
161
|
+
readonly internalType: "uint32";
|
|
162
|
+
readonly name: "campaignType";
|
|
163
|
+
readonly type: "uint32";
|
|
164
|
+
}, {
|
|
165
|
+
readonly internalType: "uint32";
|
|
166
|
+
readonly name: "startTimestamp";
|
|
167
|
+
readonly type: "uint32";
|
|
168
|
+
}, {
|
|
169
|
+
readonly internalType: "uint32";
|
|
170
|
+
readonly name: "duration";
|
|
171
|
+
readonly type: "uint32";
|
|
172
|
+
}, {
|
|
173
|
+
readonly internalType: "bytes";
|
|
174
|
+
readonly name: "campaignData";
|
|
175
|
+
readonly type: "bytes";
|
|
176
|
+
}];
|
|
177
|
+
readonly indexed: false;
|
|
178
|
+
readonly internalType: "struct CampaignParameters";
|
|
179
|
+
readonly name: "campaign";
|
|
180
|
+
readonly type: "tuple";
|
|
181
|
+
}];
|
|
182
|
+
readonly name: "CampaignOverride";
|
|
183
|
+
readonly type: "event";
|
|
184
|
+
}, {
|
|
185
|
+
readonly anonymous: false;
|
|
186
|
+
readonly inputs: readonly [{
|
|
187
|
+
readonly indexed: false;
|
|
188
|
+
readonly internalType: "bytes32";
|
|
189
|
+
readonly name: "_campaignId";
|
|
190
|
+
readonly type: "bytes32";
|
|
191
|
+
}, {
|
|
192
|
+
readonly indexed: false;
|
|
193
|
+
readonly internalType: "address[]";
|
|
194
|
+
readonly name: "from";
|
|
195
|
+
readonly type: "address[]";
|
|
196
|
+
}, {
|
|
197
|
+
readonly indexed: true;
|
|
198
|
+
readonly internalType: "address";
|
|
199
|
+
readonly name: "to";
|
|
200
|
+
readonly type: "address";
|
|
201
|
+
}];
|
|
202
|
+
readonly name: "CampaignReallocation";
|
|
203
|
+
readonly type: "event";
|
|
204
|
+
}, {
|
|
205
|
+
readonly anonymous: false;
|
|
206
|
+
readonly inputs: readonly [{
|
|
207
|
+
readonly indexed: false;
|
|
208
|
+
readonly internalType: "uint32";
|
|
209
|
+
readonly name: "campaignType";
|
|
210
|
+
readonly type: "uint32";
|
|
211
|
+
}, {
|
|
212
|
+
readonly indexed: false;
|
|
213
|
+
readonly internalType: "uint256";
|
|
214
|
+
readonly name: "_fees";
|
|
215
|
+
readonly type: "uint256";
|
|
216
|
+
}];
|
|
217
|
+
readonly name: "CampaignSpecificFeesSet";
|
|
218
|
+
readonly type: "event";
|
|
219
|
+
}, {
|
|
220
|
+
readonly anonymous: false;
|
|
221
|
+
readonly inputs: readonly [{
|
|
222
|
+
readonly indexed: true;
|
|
223
|
+
readonly internalType: "address";
|
|
224
|
+
readonly name: "user";
|
|
225
|
+
readonly type: "address";
|
|
226
|
+
}, {
|
|
227
|
+
readonly indexed: false;
|
|
228
|
+
readonly internalType: "bytes32";
|
|
229
|
+
readonly name: "conditionsHash";
|
|
230
|
+
readonly type: "bytes32";
|
|
231
|
+
}];
|
|
232
|
+
readonly name: "ConditionsAccepted";
|
|
233
|
+
readonly type: "event";
|
|
234
|
+
}, {
|
|
235
|
+
readonly anonymous: false;
|
|
236
|
+
readonly inputs: readonly [{
|
|
237
|
+
readonly indexed: true;
|
|
238
|
+
readonly internalType: "address";
|
|
239
|
+
readonly name: "user";
|
|
240
|
+
readonly type: "address";
|
|
241
|
+
}, {
|
|
242
|
+
readonly indexed: true;
|
|
243
|
+
readonly internalType: "address";
|
|
244
|
+
readonly name: "operator";
|
|
245
|
+
readonly type: "address";
|
|
246
|
+
}, {
|
|
247
|
+
readonly indexed: true;
|
|
248
|
+
readonly internalType: "address";
|
|
249
|
+
readonly name: "token";
|
|
250
|
+
readonly type: "address";
|
|
251
|
+
}, {
|
|
252
|
+
readonly indexed: false;
|
|
253
|
+
readonly internalType: "uint256";
|
|
254
|
+
readonly name: "amount";
|
|
255
|
+
readonly type: "uint256";
|
|
256
|
+
}];
|
|
257
|
+
readonly name: "CreatorAllowanceUpdated";
|
|
258
|
+
readonly type: "event";
|
|
259
|
+
}, {
|
|
260
|
+
readonly anonymous: false;
|
|
261
|
+
readonly inputs: readonly [{
|
|
262
|
+
readonly indexed: true;
|
|
263
|
+
readonly internalType: "address";
|
|
264
|
+
readonly name: "user";
|
|
265
|
+
readonly type: "address";
|
|
266
|
+
}, {
|
|
267
|
+
readonly indexed: true;
|
|
268
|
+
readonly internalType: "address";
|
|
269
|
+
readonly name: "token";
|
|
270
|
+
readonly type: "address";
|
|
271
|
+
}, {
|
|
272
|
+
readonly indexed: false;
|
|
273
|
+
readonly internalType: "uint256";
|
|
274
|
+
readonly name: "amount";
|
|
275
|
+
readonly type: "uint256";
|
|
276
|
+
}];
|
|
277
|
+
readonly name: "CreatorBalanceUpdated";
|
|
278
|
+
readonly type: "event";
|
|
279
|
+
}, {
|
|
280
|
+
readonly anonymous: false;
|
|
281
|
+
readonly inputs: readonly [{
|
|
282
|
+
readonly indexed: true;
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
readonly name: "_distributor";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}];
|
|
287
|
+
readonly name: "DistributorUpdated";
|
|
288
|
+
readonly type: "event";
|
|
289
|
+
}, {
|
|
290
|
+
readonly anonymous: false;
|
|
291
|
+
readonly inputs: readonly [{
|
|
292
|
+
readonly indexed: true;
|
|
293
|
+
readonly internalType: "address";
|
|
294
|
+
readonly name: "user";
|
|
295
|
+
readonly type: "address";
|
|
296
|
+
}, {
|
|
297
|
+
readonly indexed: false;
|
|
298
|
+
readonly internalType: "uint256";
|
|
299
|
+
readonly name: "userFeeRebate";
|
|
300
|
+
readonly type: "uint256";
|
|
301
|
+
}];
|
|
302
|
+
readonly name: "FeeRebateUpdated";
|
|
303
|
+
readonly type: "event";
|
|
304
|
+
}, {
|
|
305
|
+
readonly anonymous: false;
|
|
306
|
+
readonly inputs: readonly [{
|
|
307
|
+
readonly indexed: true;
|
|
308
|
+
readonly internalType: "address";
|
|
309
|
+
readonly name: "_feeRecipient";
|
|
310
|
+
readonly type: "address";
|
|
311
|
+
}];
|
|
312
|
+
readonly name: "FeeRecipientUpdated";
|
|
313
|
+
readonly type: "event";
|
|
314
|
+
}, {
|
|
315
|
+
readonly anonymous: false;
|
|
316
|
+
readonly inputs: readonly [{
|
|
317
|
+
readonly indexed: false;
|
|
318
|
+
readonly internalType: "uint256";
|
|
319
|
+
readonly name: "_fees";
|
|
320
|
+
readonly type: "uint256";
|
|
321
|
+
}];
|
|
322
|
+
readonly name: "FeesSet";
|
|
323
|
+
readonly type: "event";
|
|
324
|
+
}, {
|
|
325
|
+
readonly anonymous: false;
|
|
326
|
+
readonly inputs: readonly [{
|
|
327
|
+
readonly indexed: false;
|
|
328
|
+
readonly internalType: "uint8";
|
|
329
|
+
readonly name: "version";
|
|
330
|
+
readonly type: "uint8";
|
|
331
|
+
}];
|
|
332
|
+
readonly name: "Initialized";
|
|
333
|
+
readonly type: "event";
|
|
334
|
+
}, {
|
|
335
|
+
readonly anonymous: false;
|
|
336
|
+
readonly inputs: readonly [{
|
|
337
|
+
readonly indexed: false;
|
|
338
|
+
readonly internalType: "bytes32";
|
|
339
|
+
readonly name: "_messageHash";
|
|
340
|
+
readonly type: "bytes32";
|
|
341
|
+
}];
|
|
342
|
+
readonly name: "MessageUpdated";
|
|
343
|
+
readonly type: "event";
|
|
344
|
+
}, {
|
|
345
|
+
readonly anonymous: false;
|
|
346
|
+
readonly inputs: readonly [{
|
|
347
|
+
readonly components: readonly [{
|
|
348
|
+
readonly internalType: "bytes32";
|
|
349
|
+
readonly name: "campaignId";
|
|
350
|
+
readonly type: "bytes32";
|
|
351
|
+
}, {
|
|
352
|
+
readonly internalType: "address";
|
|
353
|
+
readonly name: "creator";
|
|
354
|
+
readonly type: "address";
|
|
355
|
+
}, {
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "rewardToken";
|
|
358
|
+
readonly type: "address";
|
|
359
|
+
}, {
|
|
360
|
+
readonly internalType: "uint256";
|
|
361
|
+
readonly name: "amount";
|
|
362
|
+
readonly type: "uint256";
|
|
363
|
+
}, {
|
|
364
|
+
readonly internalType: "uint32";
|
|
365
|
+
readonly name: "campaignType";
|
|
366
|
+
readonly type: "uint32";
|
|
367
|
+
}, {
|
|
368
|
+
readonly internalType: "uint32";
|
|
369
|
+
readonly name: "startTimestamp";
|
|
370
|
+
readonly type: "uint32";
|
|
371
|
+
}, {
|
|
372
|
+
readonly internalType: "uint32";
|
|
373
|
+
readonly name: "duration";
|
|
374
|
+
readonly type: "uint32";
|
|
375
|
+
}, {
|
|
376
|
+
readonly internalType: "bytes";
|
|
377
|
+
readonly name: "campaignData";
|
|
378
|
+
readonly type: "bytes";
|
|
379
|
+
}];
|
|
380
|
+
readonly indexed: false;
|
|
381
|
+
readonly internalType: "struct CampaignParameters";
|
|
382
|
+
readonly name: "campaign";
|
|
383
|
+
readonly type: "tuple";
|
|
384
|
+
}];
|
|
385
|
+
readonly name: "NewCampaign";
|
|
386
|
+
readonly type: "event";
|
|
387
|
+
}, {
|
|
388
|
+
readonly anonymous: false;
|
|
389
|
+
readonly inputs: readonly [{
|
|
390
|
+
readonly indexed: true;
|
|
391
|
+
readonly internalType: "address";
|
|
392
|
+
readonly name: "token";
|
|
393
|
+
readonly type: "address";
|
|
394
|
+
}, {
|
|
395
|
+
readonly indexed: false;
|
|
396
|
+
readonly internalType: "uint256";
|
|
397
|
+
readonly name: "amount";
|
|
398
|
+
readonly type: "uint256";
|
|
399
|
+
}];
|
|
400
|
+
readonly name: "RewardTokenMinimumAmountUpdated";
|
|
401
|
+
readonly type: "event";
|
|
402
|
+
}, {
|
|
403
|
+
readonly anonymous: false;
|
|
404
|
+
readonly inputs: readonly [{
|
|
405
|
+
readonly indexed: true;
|
|
406
|
+
readonly internalType: "address";
|
|
407
|
+
readonly name: "implementation";
|
|
408
|
+
readonly type: "address";
|
|
409
|
+
}];
|
|
410
|
+
readonly name: "Upgraded";
|
|
411
|
+
readonly type: "event";
|
|
412
|
+
}, {
|
|
413
|
+
readonly anonymous: false;
|
|
414
|
+
readonly inputs: readonly [{
|
|
415
|
+
readonly indexed: true;
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
readonly name: "user";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
}, {
|
|
420
|
+
readonly indexed: false;
|
|
421
|
+
readonly internalType: "uint256";
|
|
422
|
+
readonly name: "toggleStatus";
|
|
423
|
+
readonly type: "uint256";
|
|
424
|
+
}];
|
|
425
|
+
readonly name: "UserSigningWhitelistToggled";
|
|
426
|
+
readonly type: "event";
|
|
427
|
+
}, {
|
|
428
|
+
readonly inputs: readonly [];
|
|
429
|
+
readonly name: "BASE_9";
|
|
430
|
+
readonly outputs: readonly [{
|
|
431
|
+
readonly internalType: "uint256";
|
|
432
|
+
readonly name: "";
|
|
433
|
+
readonly type: "uint256";
|
|
434
|
+
}];
|
|
435
|
+
readonly stateMutability: "view";
|
|
436
|
+
readonly type: "function";
|
|
437
|
+
}, {
|
|
438
|
+
readonly inputs: readonly [];
|
|
439
|
+
readonly name: "CHAIN_ID";
|
|
440
|
+
readonly outputs: readonly [{
|
|
441
|
+
readonly internalType: "uint256";
|
|
442
|
+
readonly name: "";
|
|
443
|
+
readonly type: "uint256";
|
|
444
|
+
}];
|
|
445
|
+
readonly stateMutability: "view";
|
|
446
|
+
readonly type: "function";
|
|
447
|
+
}, {
|
|
448
|
+
readonly inputs: readonly [];
|
|
449
|
+
readonly name: "HOUR";
|
|
450
|
+
readonly outputs: readonly [{
|
|
451
|
+
readonly internalType: "uint32";
|
|
452
|
+
readonly name: "";
|
|
453
|
+
readonly type: "uint32";
|
|
454
|
+
}];
|
|
455
|
+
readonly stateMutability: "view";
|
|
456
|
+
readonly type: "function";
|
|
457
|
+
}, {
|
|
458
|
+
readonly inputs: readonly [{
|
|
459
|
+
readonly internalType: "address";
|
|
460
|
+
readonly name: "";
|
|
461
|
+
readonly type: "address";
|
|
462
|
+
}];
|
|
463
|
+
readonly name: "_nonces";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly internalType: "uint256";
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "uint256";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "view";
|
|
470
|
+
readonly type: "function";
|
|
471
|
+
}, {
|
|
472
|
+
readonly inputs: readonly [];
|
|
473
|
+
readonly name: "acceptConditions";
|
|
474
|
+
readonly outputs: readonly [];
|
|
475
|
+
readonly stateMutability: "nonpayable";
|
|
476
|
+
readonly type: "function";
|
|
477
|
+
}, {
|
|
478
|
+
readonly inputs: readonly [];
|
|
479
|
+
readonly name: "accessControlManager";
|
|
480
|
+
readonly outputs: readonly [{
|
|
481
|
+
readonly internalType: "contract IAccessControlManager";
|
|
482
|
+
readonly name: "";
|
|
483
|
+
readonly type: "address";
|
|
484
|
+
}];
|
|
485
|
+
readonly stateMutability: "view";
|
|
486
|
+
readonly type: "function";
|
|
487
|
+
}, {
|
|
488
|
+
readonly inputs: readonly [{
|
|
489
|
+
readonly internalType: "bytes32";
|
|
490
|
+
readonly name: "_campaignId";
|
|
491
|
+
readonly type: "bytes32";
|
|
492
|
+
}];
|
|
493
|
+
readonly name: "campaign";
|
|
494
|
+
readonly outputs: readonly [{
|
|
495
|
+
readonly components: readonly [{
|
|
496
|
+
readonly internalType: "bytes32";
|
|
497
|
+
readonly name: "campaignId";
|
|
498
|
+
readonly type: "bytes32";
|
|
499
|
+
}, {
|
|
500
|
+
readonly internalType: "address";
|
|
501
|
+
readonly name: "creator";
|
|
502
|
+
readonly type: "address";
|
|
503
|
+
}, {
|
|
504
|
+
readonly internalType: "address";
|
|
505
|
+
readonly name: "rewardToken";
|
|
506
|
+
readonly type: "address";
|
|
507
|
+
}, {
|
|
508
|
+
readonly internalType: "uint256";
|
|
509
|
+
readonly name: "amount";
|
|
510
|
+
readonly type: "uint256";
|
|
511
|
+
}, {
|
|
512
|
+
readonly internalType: "uint32";
|
|
513
|
+
readonly name: "campaignType";
|
|
514
|
+
readonly type: "uint32";
|
|
515
|
+
}, {
|
|
516
|
+
readonly internalType: "uint32";
|
|
517
|
+
readonly name: "startTimestamp";
|
|
518
|
+
readonly type: "uint32";
|
|
519
|
+
}, {
|
|
520
|
+
readonly internalType: "uint32";
|
|
521
|
+
readonly name: "duration";
|
|
522
|
+
readonly type: "uint32";
|
|
523
|
+
}, {
|
|
524
|
+
readonly internalType: "bytes";
|
|
525
|
+
readonly name: "campaignData";
|
|
526
|
+
readonly type: "bytes";
|
|
527
|
+
}];
|
|
528
|
+
readonly internalType: "struct CampaignParameters";
|
|
529
|
+
readonly name: "";
|
|
530
|
+
readonly type: "tuple";
|
|
531
|
+
}];
|
|
532
|
+
readonly stateMutability: "view";
|
|
533
|
+
readonly type: "function";
|
|
534
|
+
}, {
|
|
535
|
+
readonly inputs: readonly [{
|
|
536
|
+
readonly components: readonly [{
|
|
537
|
+
readonly internalType: "bytes32";
|
|
538
|
+
readonly name: "campaignId";
|
|
539
|
+
readonly type: "bytes32";
|
|
540
|
+
}, {
|
|
541
|
+
readonly internalType: "address";
|
|
542
|
+
readonly name: "creator";
|
|
543
|
+
readonly type: "address";
|
|
544
|
+
}, {
|
|
545
|
+
readonly internalType: "address";
|
|
546
|
+
readonly name: "rewardToken";
|
|
547
|
+
readonly type: "address";
|
|
548
|
+
}, {
|
|
549
|
+
readonly internalType: "uint256";
|
|
550
|
+
readonly name: "amount";
|
|
551
|
+
readonly type: "uint256";
|
|
552
|
+
}, {
|
|
553
|
+
readonly internalType: "uint32";
|
|
554
|
+
readonly name: "campaignType";
|
|
555
|
+
readonly type: "uint32";
|
|
556
|
+
}, {
|
|
557
|
+
readonly internalType: "uint32";
|
|
558
|
+
readonly name: "startTimestamp";
|
|
559
|
+
readonly type: "uint32";
|
|
560
|
+
}, {
|
|
561
|
+
readonly internalType: "uint32";
|
|
562
|
+
readonly name: "duration";
|
|
563
|
+
readonly type: "uint32";
|
|
564
|
+
}, {
|
|
565
|
+
readonly internalType: "bytes";
|
|
566
|
+
readonly name: "campaignData";
|
|
567
|
+
readonly type: "bytes";
|
|
568
|
+
}];
|
|
569
|
+
readonly internalType: "struct CampaignParameters";
|
|
570
|
+
readonly name: "campaignData";
|
|
571
|
+
readonly type: "tuple";
|
|
572
|
+
}];
|
|
573
|
+
readonly name: "campaignId";
|
|
574
|
+
readonly outputs: readonly [{
|
|
575
|
+
readonly internalType: "bytes32";
|
|
576
|
+
readonly name: "";
|
|
577
|
+
readonly type: "bytes32";
|
|
578
|
+
}];
|
|
579
|
+
readonly stateMutability: "view";
|
|
580
|
+
readonly type: "function";
|
|
581
|
+
}, {
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
readonly name: "";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
}];
|
|
587
|
+
readonly name: "campaignList";
|
|
588
|
+
readonly outputs: readonly [{
|
|
589
|
+
readonly internalType: "bytes32";
|
|
590
|
+
readonly name: "campaignId";
|
|
591
|
+
readonly type: "bytes32";
|
|
592
|
+
}, {
|
|
593
|
+
readonly internalType: "address";
|
|
594
|
+
readonly name: "creator";
|
|
595
|
+
readonly type: "address";
|
|
596
|
+
}, {
|
|
597
|
+
readonly internalType: "address";
|
|
598
|
+
readonly name: "rewardToken";
|
|
599
|
+
readonly type: "address";
|
|
600
|
+
}, {
|
|
601
|
+
readonly internalType: "uint256";
|
|
602
|
+
readonly name: "amount";
|
|
603
|
+
readonly type: "uint256";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "uint32";
|
|
606
|
+
readonly name: "campaignType";
|
|
607
|
+
readonly type: "uint32";
|
|
608
|
+
}, {
|
|
609
|
+
readonly internalType: "uint32";
|
|
610
|
+
readonly name: "startTimestamp";
|
|
611
|
+
readonly type: "uint32";
|
|
612
|
+
}, {
|
|
613
|
+
readonly internalType: "uint32";
|
|
614
|
+
readonly name: "duration";
|
|
615
|
+
readonly type: "uint32";
|
|
616
|
+
}, {
|
|
617
|
+
readonly internalType: "bytes";
|
|
618
|
+
readonly name: "campaignData";
|
|
619
|
+
readonly type: "bytes";
|
|
620
|
+
}];
|
|
621
|
+
readonly stateMutability: "view";
|
|
622
|
+
readonly type: "function";
|
|
623
|
+
}, {
|
|
624
|
+
readonly inputs: readonly [{
|
|
625
|
+
readonly internalType: "bytes32";
|
|
626
|
+
readonly name: "";
|
|
627
|
+
readonly type: "bytes32";
|
|
628
|
+
}, {
|
|
629
|
+
readonly internalType: "uint256";
|
|
630
|
+
readonly name: "";
|
|
631
|
+
readonly type: "uint256";
|
|
632
|
+
}];
|
|
633
|
+
readonly name: "campaignListReallocation";
|
|
634
|
+
readonly outputs: readonly [{
|
|
635
|
+
readonly internalType: "address";
|
|
636
|
+
readonly name: "";
|
|
637
|
+
readonly type: "address";
|
|
638
|
+
}];
|
|
639
|
+
readonly stateMutability: "view";
|
|
640
|
+
readonly type: "function";
|
|
641
|
+
}, {
|
|
642
|
+
readonly inputs: readonly [{
|
|
643
|
+
readonly internalType: "bytes32";
|
|
644
|
+
readonly name: "_campaignId";
|
|
645
|
+
readonly type: "bytes32";
|
|
646
|
+
}];
|
|
647
|
+
readonly name: "campaignLookup";
|
|
648
|
+
readonly outputs: readonly [{
|
|
649
|
+
readonly internalType: "uint256";
|
|
650
|
+
readonly name: "";
|
|
651
|
+
readonly type: "uint256";
|
|
652
|
+
}];
|
|
653
|
+
readonly stateMutability: "view";
|
|
654
|
+
readonly type: "function";
|
|
655
|
+
}, {
|
|
656
|
+
readonly inputs: readonly [{
|
|
657
|
+
readonly internalType: "address";
|
|
658
|
+
readonly name: "";
|
|
659
|
+
readonly type: "address";
|
|
660
|
+
}, {
|
|
661
|
+
readonly internalType: "address";
|
|
662
|
+
readonly name: "";
|
|
663
|
+
readonly type: "address";
|
|
664
|
+
}];
|
|
665
|
+
readonly name: "campaignOperators";
|
|
666
|
+
readonly outputs: readonly [{
|
|
667
|
+
readonly internalType: "uint256";
|
|
668
|
+
readonly name: "";
|
|
669
|
+
readonly type: "uint256";
|
|
670
|
+
}];
|
|
671
|
+
readonly stateMutability: "view";
|
|
672
|
+
readonly type: "function";
|
|
673
|
+
}, {
|
|
674
|
+
readonly inputs: readonly [{
|
|
675
|
+
readonly internalType: "bytes32";
|
|
676
|
+
readonly name: "";
|
|
677
|
+
readonly type: "bytes32";
|
|
678
|
+
}];
|
|
679
|
+
readonly name: "campaignOverrides";
|
|
680
|
+
readonly outputs: readonly [{
|
|
681
|
+
readonly internalType: "bytes32";
|
|
682
|
+
readonly name: "campaignId";
|
|
683
|
+
readonly type: "bytes32";
|
|
684
|
+
}, {
|
|
685
|
+
readonly internalType: "address";
|
|
686
|
+
readonly name: "creator";
|
|
687
|
+
readonly type: "address";
|
|
688
|
+
}, {
|
|
689
|
+
readonly internalType: "address";
|
|
690
|
+
readonly name: "rewardToken";
|
|
691
|
+
readonly type: "address";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "uint256";
|
|
694
|
+
readonly name: "amount";
|
|
695
|
+
readonly type: "uint256";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint32";
|
|
698
|
+
readonly name: "campaignType";
|
|
699
|
+
readonly type: "uint32";
|
|
700
|
+
}, {
|
|
701
|
+
readonly internalType: "uint32";
|
|
702
|
+
readonly name: "startTimestamp";
|
|
703
|
+
readonly type: "uint32";
|
|
704
|
+
}, {
|
|
705
|
+
readonly internalType: "uint32";
|
|
706
|
+
readonly name: "duration";
|
|
707
|
+
readonly type: "uint32";
|
|
708
|
+
}, {
|
|
709
|
+
readonly internalType: "bytes";
|
|
710
|
+
readonly name: "campaignData";
|
|
711
|
+
readonly type: "bytes";
|
|
712
|
+
}];
|
|
713
|
+
readonly stateMutability: "view";
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
}, {
|
|
716
|
+
readonly inputs: readonly [{
|
|
717
|
+
readonly internalType: "bytes32";
|
|
718
|
+
readonly name: "";
|
|
719
|
+
readonly type: "bytes32";
|
|
720
|
+
}, {
|
|
721
|
+
readonly internalType: "uint256";
|
|
722
|
+
readonly name: "";
|
|
723
|
+
readonly type: "uint256";
|
|
724
|
+
}];
|
|
725
|
+
readonly name: "campaignOverridesTimestamp";
|
|
726
|
+
readonly outputs: readonly [{
|
|
727
|
+
readonly internalType: "uint256";
|
|
728
|
+
readonly name: "";
|
|
729
|
+
readonly type: "uint256";
|
|
730
|
+
}];
|
|
731
|
+
readonly stateMutability: "view";
|
|
732
|
+
readonly type: "function";
|
|
733
|
+
}, {
|
|
734
|
+
readonly inputs: readonly [{
|
|
735
|
+
readonly internalType: "bytes32";
|
|
736
|
+
readonly name: "";
|
|
737
|
+
readonly type: "bytes32";
|
|
738
|
+
}, {
|
|
739
|
+
readonly internalType: "address";
|
|
740
|
+
readonly name: "";
|
|
741
|
+
readonly type: "address";
|
|
742
|
+
}];
|
|
743
|
+
readonly name: "campaignReallocation";
|
|
744
|
+
readonly outputs: readonly [{
|
|
745
|
+
readonly internalType: "address";
|
|
746
|
+
readonly name: "";
|
|
747
|
+
readonly type: "address";
|
|
748
|
+
}];
|
|
749
|
+
readonly stateMutability: "view";
|
|
750
|
+
readonly type: "function";
|
|
751
|
+
}, {
|
|
752
|
+
readonly inputs: readonly [{
|
|
753
|
+
readonly internalType: "uint32";
|
|
754
|
+
readonly name: "";
|
|
755
|
+
readonly type: "uint32";
|
|
756
|
+
}];
|
|
757
|
+
readonly name: "campaignSpecificFees";
|
|
758
|
+
readonly outputs: readonly [{
|
|
759
|
+
readonly internalType: "uint256";
|
|
760
|
+
readonly name: "";
|
|
761
|
+
readonly type: "uint256";
|
|
762
|
+
}];
|
|
763
|
+
readonly stateMutability: "view";
|
|
764
|
+
readonly type: "function";
|
|
765
|
+
}, {
|
|
766
|
+
readonly inputs: readonly [{
|
|
767
|
+
readonly components: readonly [{
|
|
768
|
+
readonly internalType: "bytes32";
|
|
769
|
+
readonly name: "campaignId";
|
|
770
|
+
readonly type: "bytes32";
|
|
771
|
+
}, {
|
|
772
|
+
readonly internalType: "address";
|
|
773
|
+
readonly name: "creator";
|
|
774
|
+
readonly type: "address";
|
|
775
|
+
}, {
|
|
776
|
+
readonly internalType: "address";
|
|
777
|
+
readonly name: "rewardToken";
|
|
778
|
+
readonly type: "address";
|
|
779
|
+
}, {
|
|
780
|
+
readonly internalType: "uint256";
|
|
781
|
+
readonly name: "amount";
|
|
782
|
+
readonly type: "uint256";
|
|
783
|
+
}, {
|
|
784
|
+
readonly internalType: "uint32";
|
|
785
|
+
readonly name: "campaignType";
|
|
786
|
+
readonly type: "uint32";
|
|
787
|
+
}, {
|
|
788
|
+
readonly internalType: "uint32";
|
|
789
|
+
readonly name: "startTimestamp";
|
|
790
|
+
readonly type: "uint32";
|
|
791
|
+
}, {
|
|
792
|
+
readonly internalType: "uint32";
|
|
793
|
+
readonly name: "duration";
|
|
794
|
+
readonly type: "uint32";
|
|
795
|
+
}, {
|
|
796
|
+
readonly internalType: "bytes";
|
|
797
|
+
readonly name: "campaignData";
|
|
798
|
+
readonly type: "bytes";
|
|
799
|
+
}];
|
|
800
|
+
readonly internalType: "struct CampaignParameters";
|
|
801
|
+
readonly name: "newCampaign";
|
|
802
|
+
readonly type: "tuple";
|
|
803
|
+
}];
|
|
804
|
+
readonly name: "createCampaign";
|
|
805
|
+
readonly outputs: readonly [{
|
|
806
|
+
readonly internalType: "bytes32";
|
|
807
|
+
readonly name: "";
|
|
808
|
+
readonly type: "bytes32";
|
|
809
|
+
}];
|
|
810
|
+
readonly stateMutability: "nonpayable";
|
|
811
|
+
readonly type: "function";
|
|
812
|
+
}, {
|
|
813
|
+
readonly inputs: readonly [{
|
|
814
|
+
readonly components: readonly [{
|
|
815
|
+
readonly internalType: "bytes32";
|
|
816
|
+
readonly name: "campaignId";
|
|
817
|
+
readonly type: "bytes32";
|
|
818
|
+
}, {
|
|
819
|
+
readonly internalType: "address";
|
|
820
|
+
readonly name: "creator";
|
|
821
|
+
readonly type: "address";
|
|
822
|
+
}, {
|
|
823
|
+
readonly internalType: "address";
|
|
824
|
+
readonly name: "rewardToken";
|
|
825
|
+
readonly type: "address";
|
|
826
|
+
}, {
|
|
827
|
+
readonly internalType: "uint256";
|
|
828
|
+
readonly name: "amount";
|
|
829
|
+
readonly type: "uint256";
|
|
830
|
+
}, {
|
|
831
|
+
readonly internalType: "uint32";
|
|
832
|
+
readonly name: "campaignType";
|
|
833
|
+
readonly type: "uint32";
|
|
834
|
+
}, {
|
|
835
|
+
readonly internalType: "uint32";
|
|
836
|
+
readonly name: "startTimestamp";
|
|
837
|
+
readonly type: "uint32";
|
|
838
|
+
}, {
|
|
839
|
+
readonly internalType: "uint32";
|
|
840
|
+
readonly name: "duration";
|
|
841
|
+
readonly type: "uint32";
|
|
842
|
+
}, {
|
|
843
|
+
readonly internalType: "bytes";
|
|
844
|
+
readonly name: "campaignData";
|
|
845
|
+
readonly type: "bytes";
|
|
846
|
+
}];
|
|
847
|
+
readonly internalType: "struct CampaignParameters[]";
|
|
848
|
+
readonly name: "campaigns";
|
|
849
|
+
readonly type: "tuple[]";
|
|
850
|
+
}];
|
|
851
|
+
readonly name: "createCampaigns";
|
|
852
|
+
readonly outputs: readonly [{
|
|
853
|
+
readonly internalType: "bytes32[]";
|
|
854
|
+
readonly name: "";
|
|
855
|
+
readonly type: "bytes32[]";
|
|
856
|
+
}];
|
|
857
|
+
readonly stateMutability: "nonpayable";
|
|
858
|
+
readonly type: "function";
|
|
859
|
+
}, {
|
|
860
|
+
readonly inputs: readonly [{
|
|
861
|
+
readonly internalType: "address";
|
|
862
|
+
readonly name: "";
|
|
863
|
+
readonly type: "address";
|
|
864
|
+
}, {
|
|
865
|
+
readonly internalType: "address";
|
|
866
|
+
readonly name: "";
|
|
867
|
+
readonly type: "address";
|
|
868
|
+
}, {
|
|
869
|
+
readonly internalType: "address";
|
|
870
|
+
readonly name: "";
|
|
871
|
+
readonly type: "address";
|
|
872
|
+
}];
|
|
873
|
+
readonly name: "creatorAllowance";
|
|
874
|
+
readonly outputs: readonly [{
|
|
875
|
+
readonly internalType: "uint256";
|
|
876
|
+
readonly name: "";
|
|
877
|
+
readonly type: "uint256";
|
|
878
|
+
}];
|
|
879
|
+
readonly stateMutability: "view";
|
|
880
|
+
readonly type: "function";
|
|
881
|
+
}, {
|
|
882
|
+
readonly inputs: readonly [{
|
|
883
|
+
readonly internalType: "address";
|
|
884
|
+
readonly name: "";
|
|
885
|
+
readonly type: "address";
|
|
886
|
+
}, {
|
|
887
|
+
readonly internalType: "address";
|
|
888
|
+
readonly name: "";
|
|
889
|
+
readonly type: "address";
|
|
890
|
+
}];
|
|
891
|
+
readonly name: "creatorBalance";
|
|
892
|
+
readonly outputs: readonly [{
|
|
893
|
+
readonly internalType: "uint256";
|
|
894
|
+
readonly name: "";
|
|
895
|
+
readonly type: "uint256";
|
|
896
|
+
}];
|
|
897
|
+
readonly stateMutability: "view";
|
|
898
|
+
readonly type: "function";
|
|
899
|
+
}, {
|
|
900
|
+
readonly inputs: readonly [{
|
|
901
|
+
readonly internalType: "address";
|
|
902
|
+
readonly name: "user";
|
|
903
|
+
readonly type: "address";
|
|
904
|
+
}, {
|
|
905
|
+
readonly internalType: "address";
|
|
906
|
+
readonly name: "operator";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly internalType: "address";
|
|
910
|
+
readonly name: "rewardToken";
|
|
911
|
+
readonly type: "address";
|
|
912
|
+
}, {
|
|
913
|
+
readonly internalType: "uint256";
|
|
914
|
+
readonly name: "amount";
|
|
915
|
+
readonly type: "uint256";
|
|
916
|
+
}];
|
|
917
|
+
readonly name: "decreaseTokenAllowance";
|
|
918
|
+
readonly outputs: readonly [];
|
|
919
|
+
readonly stateMutability: "nonpayable";
|
|
920
|
+
readonly type: "function";
|
|
921
|
+
}, {
|
|
922
|
+
readonly inputs: readonly [{
|
|
923
|
+
readonly internalType: "address";
|
|
924
|
+
readonly name: "user";
|
|
925
|
+
readonly type: "address";
|
|
926
|
+
}, {
|
|
927
|
+
readonly internalType: "address";
|
|
928
|
+
readonly name: "rewardToken";
|
|
929
|
+
readonly type: "address";
|
|
930
|
+
}, {
|
|
931
|
+
readonly internalType: "address";
|
|
932
|
+
readonly name: "to";
|
|
933
|
+
readonly type: "address";
|
|
934
|
+
}, {
|
|
935
|
+
readonly internalType: "uint256";
|
|
936
|
+
readonly name: "amount";
|
|
937
|
+
readonly type: "uint256";
|
|
938
|
+
}];
|
|
939
|
+
readonly name: "decreaseTokenBalance";
|
|
940
|
+
readonly outputs: readonly [];
|
|
941
|
+
readonly stateMutability: "nonpayable";
|
|
942
|
+
readonly type: "function";
|
|
943
|
+
}, {
|
|
944
|
+
readonly inputs: readonly [];
|
|
945
|
+
readonly name: "defaultFees";
|
|
946
|
+
readonly outputs: readonly [{
|
|
947
|
+
readonly internalType: "uint256";
|
|
948
|
+
readonly name: "";
|
|
949
|
+
readonly type: "uint256";
|
|
950
|
+
}];
|
|
951
|
+
readonly stateMutability: "view";
|
|
952
|
+
readonly type: "function";
|
|
953
|
+
}, {
|
|
954
|
+
readonly inputs: readonly [{
|
|
955
|
+
readonly internalType: "uint256";
|
|
956
|
+
readonly name: "";
|
|
957
|
+
readonly type: "uint256";
|
|
958
|
+
}];
|
|
959
|
+
readonly name: "distributionList";
|
|
960
|
+
readonly outputs: readonly [{
|
|
961
|
+
readonly internalType: "bytes32";
|
|
962
|
+
readonly name: "rewardId";
|
|
963
|
+
readonly type: "bytes32";
|
|
964
|
+
}, {
|
|
965
|
+
readonly internalType: "address";
|
|
966
|
+
readonly name: "uniV3Pool";
|
|
967
|
+
readonly type: "address";
|
|
968
|
+
}, {
|
|
969
|
+
readonly internalType: "address";
|
|
970
|
+
readonly name: "rewardToken";
|
|
971
|
+
readonly type: "address";
|
|
972
|
+
}, {
|
|
973
|
+
readonly internalType: "uint256";
|
|
974
|
+
readonly name: "amount";
|
|
975
|
+
readonly type: "uint256";
|
|
976
|
+
}, {
|
|
977
|
+
readonly internalType: "uint32";
|
|
978
|
+
readonly name: "propToken0";
|
|
979
|
+
readonly type: "uint32";
|
|
980
|
+
}, {
|
|
981
|
+
readonly internalType: "uint32";
|
|
982
|
+
readonly name: "propToken1";
|
|
983
|
+
readonly type: "uint32";
|
|
984
|
+
}, {
|
|
985
|
+
readonly internalType: "uint32";
|
|
986
|
+
readonly name: "propFees";
|
|
987
|
+
readonly type: "uint32";
|
|
988
|
+
}, {
|
|
989
|
+
readonly internalType: "uint32";
|
|
990
|
+
readonly name: "epochStart";
|
|
991
|
+
readonly type: "uint32";
|
|
992
|
+
}, {
|
|
993
|
+
readonly internalType: "uint32";
|
|
994
|
+
readonly name: "numEpoch";
|
|
995
|
+
readonly type: "uint32";
|
|
996
|
+
}, {
|
|
997
|
+
readonly internalType: "uint32";
|
|
998
|
+
readonly name: "isOutOfRangeIncentivized";
|
|
999
|
+
readonly type: "uint32";
|
|
1000
|
+
}, {
|
|
1001
|
+
readonly internalType: "uint32";
|
|
1002
|
+
readonly name: "boostedReward";
|
|
1003
|
+
readonly type: "uint32";
|
|
1004
|
+
}, {
|
|
1005
|
+
readonly internalType: "address";
|
|
1006
|
+
readonly name: "boostingAddress";
|
|
1007
|
+
readonly type: "address";
|
|
1008
|
+
}, {
|
|
1009
|
+
readonly internalType: "bytes";
|
|
1010
|
+
readonly name: "additionalData";
|
|
1011
|
+
readonly type: "bytes";
|
|
1012
|
+
}];
|
|
1013
|
+
readonly stateMutability: "view";
|
|
1014
|
+
readonly type: "function";
|
|
1015
|
+
}, {
|
|
1016
|
+
readonly inputs: readonly [];
|
|
1017
|
+
readonly name: "distributor";
|
|
1018
|
+
readonly outputs: readonly [{
|
|
1019
|
+
readonly internalType: "address";
|
|
1020
|
+
readonly name: "";
|
|
1021
|
+
readonly type: "address";
|
|
1022
|
+
}];
|
|
1023
|
+
readonly stateMutability: "view";
|
|
1024
|
+
readonly type: "function";
|
|
1025
|
+
}, {
|
|
1026
|
+
readonly inputs: readonly [{
|
|
1027
|
+
readonly internalType: "address";
|
|
1028
|
+
readonly name: "";
|
|
1029
|
+
readonly type: "address";
|
|
1030
|
+
}];
|
|
1031
|
+
readonly name: "feeRebate";
|
|
1032
|
+
readonly outputs: readonly [{
|
|
1033
|
+
readonly internalType: "uint256";
|
|
1034
|
+
readonly name: "";
|
|
1035
|
+
readonly type: "uint256";
|
|
1036
|
+
}];
|
|
1037
|
+
readonly stateMutability: "view";
|
|
1038
|
+
readonly type: "function";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly inputs: readonly [];
|
|
1041
|
+
readonly name: "feeRecipient";
|
|
1042
|
+
readonly outputs: readonly [{
|
|
1043
|
+
readonly internalType: "address";
|
|
1044
|
+
readonly name: "";
|
|
1045
|
+
readonly type: "address";
|
|
1046
|
+
}];
|
|
1047
|
+
readonly stateMutability: "view";
|
|
1048
|
+
readonly type: "function";
|
|
1049
|
+
}, {
|
|
1050
|
+
readonly inputs: readonly [{
|
|
1051
|
+
readonly internalType: "bytes32";
|
|
1052
|
+
readonly name: "_campaignId";
|
|
1053
|
+
readonly type: "bytes32";
|
|
1054
|
+
}];
|
|
1055
|
+
readonly name: "getCampaignListReallocation";
|
|
1056
|
+
readonly outputs: readonly [{
|
|
1057
|
+
readonly internalType: "address[]";
|
|
1058
|
+
readonly name: "";
|
|
1059
|
+
readonly type: "address[]";
|
|
1060
|
+
}];
|
|
1061
|
+
readonly stateMutability: "view";
|
|
1062
|
+
readonly type: "function";
|
|
1063
|
+
}, {
|
|
1064
|
+
readonly inputs: readonly [{
|
|
1065
|
+
readonly internalType: "bytes32";
|
|
1066
|
+
readonly name: "_campaignId";
|
|
1067
|
+
readonly type: "bytes32";
|
|
1068
|
+
}, {
|
|
1069
|
+
readonly internalType: "uint256";
|
|
1070
|
+
readonly name: "index";
|
|
1071
|
+
readonly type: "uint256";
|
|
1072
|
+
}];
|
|
1073
|
+
readonly name: "getCampaignListReallocationAt";
|
|
1074
|
+
readonly outputs: readonly [{
|
|
1075
|
+
readonly internalType: "address";
|
|
1076
|
+
readonly name: "";
|
|
1077
|
+
readonly type: "address";
|
|
1078
|
+
}];
|
|
1079
|
+
readonly stateMutability: "view";
|
|
1080
|
+
readonly type: "function";
|
|
1081
|
+
}, {
|
|
1082
|
+
readonly inputs: readonly [{
|
|
1083
|
+
readonly internalType: "bytes32";
|
|
1084
|
+
readonly name: "_campaignId";
|
|
1085
|
+
readonly type: "bytes32";
|
|
1086
|
+
}];
|
|
1087
|
+
readonly name: "getCampaignOverridesTimestamp";
|
|
1088
|
+
readonly outputs: readonly [{
|
|
1089
|
+
readonly internalType: "uint256[]";
|
|
1090
|
+
readonly name: "";
|
|
1091
|
+
readonly type: "uint256[]";
|
|
1092
|
+
}];
|
|
1093
|
+
readonly stateMutability: "view";
|
|
1094
|
+
readonly type: "function";
|
|
1095
|
+
}, {
|
|
1096
|
+
readonly inputs: readonly [{
|
|
1097
|
+
readonly internalType: "bytes32";
|
|
1098
|
+
readonly name: "_campaignId";
|
|
1099
|
+
readonly type: "bytes32";
|
|
1100
|
+
}];
|
|
1101
|
+
readonly name: "getLatestCampaignParams";
|
|
1102
|
+
readonly outputs: readonly [{
|
|
1103
|
+
readonly components: readonly [{
|
|
1104
|
+
readonly internalType: "bytes32";
|
|
1105
|
+
readonly name: "campaignId";
|
|
1106
|
+
readonly type: "bytes32";
|
|
1107
|
+
}, {
|
|
1108
|
+
readonly internalType: "address";
|
|
1109
|
+
readonly name: "creator";
|
|
1110
|
+
readonly type: "address";
|
|
1111
|
+
}, {
|
|
1112
|
+
readonly internalType: "address";
|
|
1113
|
+
readonly name: "rewardToken";
|
|
1114
|
+
readonly type: "address";
|
|
1115
|
+
}, {
|
|
1116
|
+
readonly internalType: "uint256";
|
|
1117
|
+
readonly name: "amount";
|
|
1118
|
+
readonly type: "uint256";
|
|
1119
|
+
}, {
|
|
1120
|
+
readonly internalType: "uint32";
|
|
1121
|
+
readonly name: "campaignType";
|
|
1122
|
+
readonly type: "uint32";
|
|
1123
|
+
}, {
|
|
1124
|
+
readonly internalType: "uint32";
|
|
1125
|
+
readonly name: "startTimestamp";
|
|
1126
|
+
readonly type: "uint32";
|
|
1127
|
+
}, {
|
|
1128
|
+
readonly internalType: "uint32";
|
|
1129
|
+
readonly name: "duration";
|
|
1130
|
+
readonly type: "uint32";
|
|
1131
|
+
}, {
|
|
1132
|
+
readonly internalType: "bytes";
|
|
1133
|
+
readonly name: "campaignData";
|
|
1134
|
+
readonly type: "bytes";
|
|
1135
|
+
}];
|
|
1136
|
+
readonly internalType: "struct CampaignParameters";
|
|
1137
|
+
readonly name: "";
|
|
1138
|
+
readonly type: "tuple";
|
|
1139
|
+
}];
|
|
1140
|
+
readonly stateMutability: "view";
|
|
1141
|
+
readonly type: "function";
|
|
1142
|
+
}, {
|
|
1143
|
+
readonly inputs: readonly [];
|
|
1144
|
+
readonly name: "getValidRewardTokens";
|
|
1145
|
+
readonly outputs: readonly [{
|
|
1146
|
+
readonly components: readonly [{
|
|
1147
|
+
readonly internalType: "address";
|
|
1148
|
+
readonly name: "token";
|
|
1149
|
+
readonly type: "address";
|
|
1150
|
+
}, {
|
|
1151
|
+
readonly internalType: "uint256";
|
|
1152
|
+
readonly name: "minimumAmountPerEpoch";
|
|
1153
|
+
readonly type: "uint256";
|
|
1154
|
+
}];
|
|
1155
|
+
readonly internalType: "struct RewardTokenAmounts[]";
|
|
1156
|
+
readonly name: "";
|
|
1157
|
+
readonly type: "tuple[]";
|
|
1158
|
+
}];
|
|
1159
|
+
readonly stateMutability: "view";
|
|
1160
|
+
readonly type: "function";
|
|
1161
|
+
}, {
|
|
1162
|
+
readonly inputs: readonly [{
|
|
1163
|
+
readonly internalType: "uint32";
|
|
1164
|
+
readonly name: "skip";
|
|
1165
|
+
readonly type: "uint32";
|
|
1166
|
+
}, {
|
|
1167
|
+
readonly internalType: "uint32";
|
|
1168
|
+
readonly name: "first";
|
|
1169
|
+
readonly type: "uint32";
|
|
1170
|
+
}];
|
|
1171
|
+
readonly name: "getValidRewardTokens";
|
|
1172
|
+
readonly outputs: readonly [{
|
|
1173
|
+
readonly components: readonly [{
|
|
1174
|
+
readonly internalType: "address";
|
|
1175
|
+
readonly name: "token";
|
|
1176
|
+
readonly type: "address";
|
|
1177
|
+
}, {
|
|
1178
|
+
readonly internalType: "uint256";
|
|
1179
|
+
readonly name: "minimumAmountPerEpoch";
|
|
1180
|
+
readonly type: "uint256";
|
|
1181
|
+
}];
|
|
1182
|
+
readonly internalType: "struct RewardTokenAmounts[]";
|
|
1183
|
+
readonly name: "";
|
|
1184
|
+
readonly type: "tuple[]";
|
|
1185
|
+
}, {
|
|
1186
|
+
readonly internalType: "uint256";
|
|
1187
|
+
readonly name: "";
|
|
1188
|
+
readonly type: "uint256";
|
|
1189
|
+
}];
|
|
1190
|
+
readonly stateMutability: "view";
|
|
1191
|
+
readonly type: "function";
|
|
1192
|
+
}, {
|
|
1193
|
+
readonly inputs: readonly [{
|
|
1194
|
+
readonly internalType: "address";
|
|
1195
|
+
readonly name: "user";
|
|
1196
|
+
readonly type: "address";
|
|
1197
|
+
}, {
|
|
1198
|
+
readonly internalType: "address";
|
|
1199
|
+
readonly name: "operator";
|
|
1200
|
+
readonly type: "address";
|
|
1201
|
+
}, {
|
|
1202
|
+
readonly internalType: "address";
|
|
1203
|
+
readonly name: "rewardToken";
|
|
1204
|
+
readonly type: "address";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly internalType: "uint256";
|
|
1207
|
+
readonly name: "amount";
|
|
1208
|
+
readonly type: "uint256";
|
|
1209
|
+
}];
|
|
1210
|
+
readonly name: "increaseTokenAllowance";
|
|
1211
|
+
readonly outputs: readonly [];
|
|
1212
|
+
readonly stateMutability: "nonpayable";
|
|
1213
|
+
readonly type: "function";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly inputs: readonly [{
|
|
1216
|
+
readonly internalType: "address";
|
|
1217
|
+
readonly name: "user";
|
|
1218
|
+
readonly type: "address";
|
|
1219
|
+
}, {
|
|
1220
|
+
readonly internalType: "address";
|
|
1221
|
+
readonly name: "rewardToken";
|
|
1222
|
+
readonly type: "address";
|
|
1223
|
+
}, {
|
|
1224
|
+
readonly internalType: "uint256";
|
|
1225
|
+
readonly name: "amount";
|
|
1226
|
+
readonly type: "uint256";
|
|
1227
|
+
}];
|
|
1228
|
+
readonly name: "increaseTokenBalance";
|
|
1229
|
+
readonly outputs: readonly [];
|
|
1230
|
+
readonly stateMutability: "nonpayable";
|
|
1231
|
+
readonly type: "function";
|
|
1232
|
+
}, {
|
|
1233
|
+
readonly inputs: readonly [{
|
|
1234
|
+
readonly internalType: "contract IAccessControlManager";
|
|
1235
|
+
readonly name: "_accessControlManager";
|
|
1236
|
+
readonly type: "address";
|
|
1237
|
+
}, {
|
|
1238
|
+
readonly internalType: "address";
|
|
1239
|
+
readonly name: "_distributor";
|
|
1240
|
+
readonly type: "address";
|
|
1241
|
+
}, {
|
|
1242
|
+
readonly internalType: "uint256";
|
|
1243
|
+
readonly name: "_fees";
|
|
1244
|
+
readonly type: "uint256";
|
|
1245
|
+
}];
|
|
1246
|
+
readonly name: "initialize";
|
|
1247
|
+
readonly outputs: readonly [];
|
|
1248
|
+
readonly stateMutability: "nonpayable";
|
|
1249
|
+
readonly type: "function";
|
|
1250
|
+
}, {
|
|
1251
|
+
readonly inputs: readonly [{
|
|
1252
|
+
readonly internalType: "address";
|
|
1253
|
+
readonly name: "";
|
|
1254
|
+
readonly type: "address";
|
|
1255
|
+
}];
|
|
1256
|
+
readonly name: "isWhitelistedToken";
|
|
1257
|
+
readonly outputs: readonly [{
|
|
1258
|
+
readonly internalType: "uint256";
|
|
1259
|
+
readonly name: "";
|
|
1260
|
+
readonly type: "uint256";
|
|
1261
|
+
}];
|
|
1262
|
+
readonly stateMutability: "view";
|
|
1263
|
+
readonly type: "function";
|
|
1264
|
+
}, {
|
|
1265
|
+
readonly inputs: readonly [];
|
|
1266
|
+
readonly name: "message";
|
|
1267
|
+
readonly outputs: readonly [{
|
|
1268
|
+
readonly internalType: "string";
|
|
1269
|
+
readonly name: "";
|
|
1270
|
+
readonly type: "string";
|
|
1271
|
+
}];
|
|
1272
|
+
readonly stateMutability: "view";
|
|
1273
|
+
readonly type: "function";
|
|
1274
|
+
}, {
|
|
1275
|
+
readonly inputs: readonly [];
|
|
1276
|
+
readonly name: "messageHash";
|
|
1277
|
+
readonly outputs: readonly [{
|
|
1278
|
+
readonly internalType: "bytes32";
|
|
1279
|
+
readonly name: "";
|
|
1280
|
+
readonly type: "bytes32";
|
|
1281
|
+
}];
|
|
1282
|
+
readonly stateMutability: "view";
|
|
1283
|
+
readonly type: "function";
|
|
1284
|
+
}, {
|
|
1285
|
+
readonly inputs: readonly [{
|
|
1286
|
+
readonly internalType: "bytes32";
|
|
1287
|
+
readonly name: "_campaignId";
|
|
1288
|
+
readonly type: "bytes32";
|
|
1289
|
+
}, {
|
|
1290
|
+
readonly components: readonly [{
|
|
1291
|
+
readonly internalType: "bytes32";
|
|
1292
|
+
readonly name: "campaignId";
|
|
1293
|
+
readonly type: "bytes32";
|
|
1294
|
+
}, {
|
|
1295
|
+
readonly internalType: "address";
|
|
1296
|
+
readonly name: "creator";
|
|
1297
|
+
readonly type: "address";
|
|
1298
|
+
}, {
|
|
1299
|
+
readonly internalType: "address";
|
|
1300
|
+
readonly name: "rewardToken";
|
|
1301
|
+
readonly type: "address";
|
|
1302
|
+
}, {
|
|
1303
|
+
readonly internalType: "uint256";
|
|
1304
|
+
readonly name: "amount";
|
|
1305
|
+
readonly type: "uint256";
|
|
1306
|
+
}, {
|
|
1307
|
+
readonly internalType: "uint32";
|
|
1308
|
+
readonly name: "campaignType";
|
|
1309
|
+
readonly type: "uint32";
|
|
1310
|
+
}, {
|
|
1311
|
+
readonly internalType: "uint32";
|
|
1312
|
+
readonly name: "startTimestamp";
|
|
1313
|
+
readonly type: "uint32";
|
|
1314
|
+
}, {
|
|
1315
|
+
readonly internalType: "uint32";
|
|
1316
|
+
readonly name: "duration";
|
|
1317
|
+
readonly type: "uint32";
|
|
1318
|
+
}, {
|
|
1319
|
+
readonly internalType: "bytes";
|
|
1320
|
+
readonly name: "campaignData";
|
|
1321
|
+
readonly type: "bytes";
|
|
1322
|
+
}];
|
|
1323
|
+
readonly internalType: "struct CampaignParameters";
|
|
1324
|
+
readonly name: "newCampaign";
|
|
1325
|
+
readonly type: "tuple";
|
|
1326
|
+
}];
|
|
1327
|
+
readonly name: "overrideCampaign";
|
|
1328
|
+
readonly outputs: readonly [];
|
|
1329
|
+
readonly stateMutability: "nonpayable";
|
|
1330
|
+
readonly type: "function";
|
|
1331
|
+
}, {
|
|
1332
|
+
readonly inputs: readonly [];
|
|
1333
|
+
readonly name: "proxiableUUID";
|
|
1334
|
+
readonly outputs: readonly [{
|
|
1335
|
+
readonly internalType: "bytes32";
|
|
1336
|
+
readonly name: "";
|
|
1337
|
+
readonly type: "bytes32";
|
|
1338
|
+
}];
|
|
1339
|
+
readonly stateMutability: "view";
|
|
1340
|
+
readonly type: "function";
|
|
1341
|
+
}, {
|
|
1342
|
+
readonly inputs: readonly [{
|
|
1343
|
+
readonly internalType: "bytes32";
|
|
1344
|
+
readonly name: "_campaignId";
|
|
1345
|
+
readonly type: "bytes32";
|
|
1346
|
+
}, {
|
|
1347
|
+
readonly internalType: "address[]";
|
|
1348
|
+
readonly name: "froms";
|
|
1349
|
+
readonly type: "address[]";
|
|
1350
|
+
}, {
|
|
1351
|
+
readonly internalType: "address";
|
|
1352
|
+
readonly name: "to";
|
|
1353
|
+
readonly type: "address";
|
|
1354
|
+
}];
|
|
1355
|
+
readonly name: "reallocateCampaignRewards";
|
|
1356
|
+
readonly outputs: readonly [];
|
|
1357
|
+
readonly stateMutability: "nonpayable";
|
|
1358
|
+
readonly type: "function";
|
|
1359
|
+
}, {
|
|
1360
|
+
readonly inputs: readonly [{
|
|
1361
|
+
readonly internalType: "address";
|
|
1362
|
+
readonly name: "token";
|
|
1363
|
+
readonly type: "address";
|
|
1364
|
+
}, {
|
|
1365
|
+
readonly internalType: "address";
|
|
1366
|
+
readonly name: "to";
|
|
1367
|
+
readonly type: "address";
|
|
1368
|
+
}, {
|
|
1369
|
+
readonly internalType: "uint256";
|
|
1370
|
+
readonly name: "amount";
|
|
1371
|
+
readonly type: "uint256";
|
|
1372
|
+
}];
|
|
1373
|
+
readonly name: "recover";
|
|
1374
|
+
readonly outputs: readonly [];
|
|
1375
|
+
readonly stateMutability: "nonpayable";
|
|
1376
|
+
readonly type: "function";
|
|
1377
|
+
}, {
|
|
1378
|
+
readonly inputs: readonly [{
|
|
1379
|
+
readonly internalType: "address";
|
|
1380
|
+
readonly name: "";
|
|
1381
|
+
readonly type: "address";
|
|
1382
|
+
}];
|
|
1383
|
+
readonly name: "rewardTokenMinAmounts";
|
|
1384
|
+
readonly outputs: readonly [{
|
|
1385
|
+
readonly internalType: "uint256";
|
|
1386
|
+
readonly name: "";
|
|
1387
|
+
readonly type: "uint256";
|
|
1388
|
+
}];
|
|
1389
|
+
readonly stateMutability: "view";
|
|
1390
|
+
readonly type: "function";
|
|
1391
|
+
}, {
|
|
1392
|
+
readonly inputs: readonly [{
|
|
1393
|
+
readonly internalType: "uint256";
|
|
1394
|
+
readonly name: "";
|
|
1395
|
+
readonly type: "uint256";
|
|
1396
|
+
}];
|
|
1397
|
+
readonly name: "rewardTokens";
|
|
1398
|
+
readonly outputs: readonly [{
|
|
1399
|
+
readonly internalType: "address";
|
|
1400
|
+
readonly name: "";
|
|
1401
|
+
readonly type: "address";
|
|
1402
|
+
}];
|
|
1403
|
+
readonly stateMutability: "view";
|
|
1404
|
+
readonly type: "function";
|
|
1405
|
+
}, {
|
|
1406
|
+
readonly inputs: readonly [{
|
|
1407
|
+
readonly internalType: "uint32";
|
|
1408
|
+
readonly name: "campaignType";
|
|
1409
|
+
readonly type: "uint32";
|
|
1410
|
+
}, {
|
|
1411
|
+
readonly internalType: "uint256";
|
|
1412
|
+
readonly name: "_fees";
|
|
1413
|
+
readonly type: "uint256";
|
|
1414
|
+
}];
|
|
1415
|
+
readonly name: "setCampaignFees";
|
|
1416
|
+
readonly outputs: readonly [];
|
|
1417
|
+
readonly stateMutability: "nonpayable";
|
|
1418
|
+
readonly type: "function";
|
|
1419
|
+
}, {
|
|
1420
|
+
readonly inputs: readonly [{
|
|
1421
|
+
readonly internalType: "address";
|
|
1422
|
+
readonly name: "_feeRecipient";
|
|
1423
|
+
readonly type: "address";
|
|
1424
|
+
}];
|
|
1425
|
+
readonly name: "setFeeRecipient";
|
|
1426
|
+
readonly outputs: readonly [];
|
|
1427
|
+
readonly stateMutability: "nonpayable";
|
|
1428
|
+
readonly type: "function";
|
|
1429
|
+
}, {
|
|
1430
|
+
readonly inputs: readonly [{
|
|
1431
|
+
readonly internalType: "uint256";
|
|
1432
|
+
readonly name: "_defaultFees";
|
|
1433
|
+
readonly type: "uint256";
|
|
1434
|
+
}];
|
|
1435
|
+
readonly name: "setFees";
|
|
1436
|
+
readonly outputs: readonly [];
|
|
1437
|
+
readonly stateMutability: "nonpayable";
|
|
1438
|
+
readonly type: "function";
|
|
1439
|
+
}, {
|
|
1440
|
+
readonly inputs: readonly [{
|
|
1441
|
+
readonly internalType: "string";
|
|
1442
|
+
readonly name: "_message";
|
|
1443
|
+
readonly type: "string";
|
|
1444
|
+
}];
|
|
1445
|
+
readonly name: "setMessage";
|
|
1446
|
+
readonly outputs: readonly [];
|
|
1447
|
+
readonly stateMutability: "nonpayable";
|
|
1448
|
+
readonly type: "function";
|
|
1449
|
+
}, {
|
|
1450
|
+
readonly inputs: readonly [{
|
|
1451
|
+
readonly internalType: "address";
|
|
1452
|
+
readonly name: "_distributor";
|
|
1453
|
+
readonly type: "address";
|
|
1454
|
+
}];
|
|
1455
|
+
readonly name: "setNewDistributor";
|
|
1456
|
+
readonly outputs: readonly [];
|
|
1457
|
+
readonly stateMutability: "nonpayable";
|
|
1458
|
+
readonly type: "function";
|
|
1459
|
+
}, {
|
|
1460
|
+
readonly inputs: readonly [{
|
|
1461
|
+
readonly internalType: "address[]";
|
|
1462
|
+
readonly name: "tokens";
|
|
1463
|
+
readonly type: "address[]";
|
|
1464
|
+
}, {
|
|
1465
|
+
readonly internalType: "uint256[]";
|
|
1466
|
+
readonly name: "amounts";
|
|
1467
|
+
readonly type: "uint256[]";
|
|
1468
|
+
}];
|
|
1469
|
+
readonly name: "setRewardTokenMinAmounts";
|
|
1470
|
+
readonly outputs: readonly [];
|
|
1471
|
+
readonly stateMutability: "nonpayable";
|
|
1472
|
+
readonly type: "function";
|
|
1473
|
+
}, {
|
|
1474
|
+
readonly inputs: readonly [{
|
|
1475
|
+
readonly internalType: "address";
|
|
1476
|
+
readonly name: "user";
|
|
1477
|
+
readonly type: "address";
|
|
1478
|
+
}, {
|
|
1479
|
+
readonly internalType: "uint256";
|
|
1480
|
+
readonly name: "userFeeRebate";
|
|
1481
|
+
readonly type: "uint256";
|
|
1482
|
+
}];
|
|
1483
|
+
readonly name: "setUserFeeRebate";
|
|
1484
|
+
readonly outputs: readonly [];
|
|
1485
|
+
readonly stateMutability: "nonpayable";
|
|
1486
|
+
readonly type: "function";
|
|
1487
|
+
}, {
|
|
1488
|
+
readonly inputs: readonly [{
|
|
1489
|
+
readonly components: readonly [{
|
|
1490
|
+
readonly internalType: "bytes32";
|
|
1491
|
+
readonly name: "campaignId";
|
|
1492
|
+
readonly type: "bytes32";
|
|
1493
|
+
}, {
|
|
1494
|
+
readonly internalType: "address";
|
|
1495
|
+
readonly name: "creator";
|
|
1496
|
+
readonly type: "address";
|
|
1497
|
+
}, {
|
|
1498
|
+
readonly internalType: "address";
|
|
1499
|
+
readonly name: "rewardToken";
|
|
1500
|
+
readonly type: "address";
|
|
1501
|
+
}, {
|
|
1502
|
+
readonly internalType: "uint256";
|
|
1503
|
+
readonly name: "amount";
|
|
1504
|
+
readonly type: "uint256";
|
|
1505
|
+
}, {
|
|
1506
|
+
readonly internalType: "uint32";
|
|
1507
|
+
readonly name: "campaignType";
|
|
1508
|
+
readonly type: "uint32";
|
|
1509
|
+
}, {
|
|
1510
|
+
readonly internalType: "uint32";
|
|
1511
|
+
readonly name: "startTimestamp";
|
|
1512
|
+
readonly type: "uint32";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly internalType: "uint32";
|
|
1515
|
+
readonly name: "duration";
|
|
1516
|
+
readonly type: "uint32";
|
|
1517
|
+
}, {
|
|
1518
|
+
readonly internalType: "bytes";
|
|
1519
|
+
readonly name: "campaignData";
|
|
1520
|
+
readonly type: "bytes";
|
|
1521
|
+
}];
|
|
1522
|
+
readonly internalType: "struct CampaignParameters";
|
|
1523
|
+
readonly name: "newCampaign";
|
|
1524
|
+
readonly type: "tuple";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly internalType: "bytes";
|
|
1527
|
+
readonly name: "";
|
|
1528
|
+
readonly type: "bytes";
|
|
1529
|
+
}];
|
|
1530
|
+
readonly name: "signAndCreateCampaign";
|
|
1531
|
+
readonly outputs: readonly [{
|
|
1532
|
+
readonly internalType: "bytes32";
|
|
1533
|
+
readonly name: "";
|
|
1534
|
+
readonly type: "bytes32";
|
|
1535
|
+
}];
|
|
1536
|
+
readonly stateMutability: "nonpayable";
|
|
1537
|
+
readonly type: "function";
|
|
1538
|
+
}, {
|
|
1539
|
+
readonly inputs: readonly [{
|
|
1540
|
+
readonly internalType: "address";
|
|
1541
|
+
readonly name: "user";
|
|
1542
|
+
readonly type: "address";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly internalType: "address";
|
|
1545
|
+
readonly name: "operator";
|
|
1546
|
+
readonly type: "address";
|
|
1547
|
+
}];
|
|
1548
|
+
readonly name: "toggleCampaignOperator";
|
|
1549
|
+
readonly outputs: readonly [];
|
|
1550
|
+
readonly stateMutability: "nonpayable";
|
|
1551
|
+
readonly type: "function";
|
|
1552
|
+
}, {
|
|
1553
|
+
readonly inputs: readonly [{
|
|
1554
|
+
readonly internalType: "address";
|
|
1555
|
+
readonly name: "user";
|
|
1556
|
+
readonly type: "address";
|
|
1557
|
+
}];
|
|
1558
|
+
readonly name: "toggleSigningWhitelist";
|
|
1559
|
+
readonly outputs: readonly [];
|
|
1560
|
+
readonly stateMutability: "nonpayable";
|
|
1561
|
+
readonly type: "function";
|
|
1562
|
+
}, {
|
|
1563
|
+
readonly inputs: readonly [{
|
|
1564
|
+
readonly internalType: "address";
|
|
1565
|
+
readonly name: "newImplementation";
|
|
1566
|
+
readonly type: "address";
|
|
1567
|
+
}];
|
|
1568
|
+
readonly name: "upgradeTo";
|
|
1569
|
+
readonly outputs: readonly [];
|
|
1570
|
+
readonly stateMutability: "nonpayable";
|
|
1571
|
+
readonly type: "function";
|
|
1572
|
+
}, {
|
|
1573
|
+
readonly inputs: readonly [{
|
|
1574
|
+
readonly internalType: "address";
|
|
1575
|
+
readonly name: "newImplementation";
|
|
1576
|
+
readonly type: "address";
|
|
1577
|
+
}, {
|
|
1578
|
+
readonly internalType: "bytes";
|
|
1579
|
+
readonly name: "data";
|
|
1580
|
+
readonly type: "bytes";
|
|
1581
|
+
}];
|
|
1582
|
+
readonly name: "upgradeToAndCall";
|
|
1583
|
+
readonly outputs: readonly [];
|
|
1584
|
+
readonly stateMutability: "payable";
|
|
1585
|
+
readonly type: "function";
|
|
1586
|
+
}, {
|
|
1587
|
+
readonly inputs: readonly [{
|
|
1588
|
+
readonly internalType: "address";
|
|
1589
|
+
readonly name: "";
|
|
1590
|
+
readonly type: "address";
|
|
1591
|
+
}];
|
|
1592
|
+
readonly name: "userSignatureWhitelist";
|
|
1593
|
+
readonly outputs: readonly [{
|
|
1594
|
+
readonly internalType: "uint256";
|
|
1595
|
+
readonly name: "";
|
|
1596
|
+
readonly type: "uint256";
|
|
1597
|
+
}];
|
|
1598
|
+
readonly stateMutability: "view";
|
|
1599
|
+
readonly type: "function";
|
|
1600
|
+
}, {
|
|
1601
|
+
readonly inputs: readonly [{
|
|
1602
|
+
readonly internalType: "address";
|
|
1603
|
+
readonly name: "";
|
|
1604
|
+
readonly type: "address";
|
|
1605
|
+
}];
|
|
1606
|
+
readonly name: "userSignatures";
|
|
1607
|
+
readonly outputs: readonly [{
|
|
1608
|
+
readonly internalType: "bytes32";
|
|
1609
|
+
readonly name: "";
|
|
1610
|
+
readonly type: "bytes32";
|
|
1611
|
+
}];
|
|
1612
|
+
readonly stateMutability: "view";
|
|
1613
|
+
readonly type: "function";
|
|
1614
|
+
}];
|
|
1615
|
+
/**
|
|
1616
|
+
* Type-safe ABI for DistributionCreator
|
|
1617
|
+
*/
|
|
1618
|
+
export type DistributionCreatorAbi = typeof DistributionCreatorAbi;
|
|
1619
|
+
/**
|
|
1620
|
+
* Contract instance type for DistributionCreator
|
|
1621
|
+
*/
|
|
1622
|
+
export type DistributionCreatorContract = any;
|
|
1623
|
+
/**
|
|
1624
|
+
* DistributionCreator Contract Class
|
|
1625
|
+
*
|
|
1626
|
+
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1627
|
+
*
|
|
1628
|
+
* @example
|
|
1629
|
+
* ```typescript
|
|
1630
|
+
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1631
|
+
* import { mainnet } from 'viem/chains';
|
|
1632
|
+
* import { DistributionCreator } from 'DistributionCreator';
|
|
1633
|
+
*
|
|
1634
|
+
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1635
|
+
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1636
|
+
*
|
|
1637
|
+
* const contract = new DistributionCreator('0x...', { publicClient, walletClient });
|
|
1638
|
+
*
|
|
1639
|
+
* // Read functions
|
|
1640
|
+
* const result = await contract.balanceOf('0x...');
|
|
1641
|
+
*
|
|
1642
|
+
* // Write functions
|
|
1643
|
+
* const hash = await contract.transfer('0x...', 1000n);
|
|
1644
|
+
*
|
|
1645
|
+
* // Simulate transactions (dry-run)
|
|
1646
|
+
* const simulation = await contract.simulate.transfer('0x...', 1000n);
|
|
1647
|
+
* console.log('Gas estimate:', simulation.request.gas);
|
|
1648
|
+
*
|
|
1649
|
+
* // Watch events
|
|
1650
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
1651
|
+
* console.log('Transfer event:', event);
|
|
1652
|
+
* });
|
|
1653
|
+
* ```
|
|
1654
|
+
*/
|
|
1655
|
+
export declare class DistributionCreator {
|
|
1656
|
+
private contract;
|
|
1657
|
+
private contractAddress;
|
|
1658
|
+
private publicClient;
|
|
1659
|
+
constructor(address: Address, clients: {
|
|
1660
|
+
publicClient: PublicClient;
|
|
1661
|
+
walletClient?: WalletClient;
|
|
1662
|
+
});
|
|
1663
|
+
/**
|
|
1664
|
+
* Get the contract address
|
|
1665
|
+
*/
|
|
1666
|
+
get address(): Address;
|
|
1667
|
+
/**
|
|
1668
|
+
* Get the underlying viem contract instance.
|
|
1669
|
+
*/
|
|
1670
|
+
getContract(): DistributionCreatorContract;
|
|
1671
|
+
/**
|
|
1672
|
+
* BASE_9
|
|
1673
|
+
* view
|
|
1674
|
+
*/
|
|
1675
|
+
BASE_9(): Promise<bigint>;
|
|
1676
|
+
/**
|
|
1677
|
+
* CHAIN_ID
|
|
1678
|
+
* view
|
|
1679
|
+
*/
|
|
1680
|
+
CHAIN_ID(): Promise<bigint>;
|
|
1681
|
+
/**
|
|
1682
|
+
* HOUR
|
|
1683
|
+
* view
|
|
1684
|
+
*/
|
|
1685
|
+
HOUR(): Promise<bigint>;
|
|
1686
|
+
/**
|
|
1687
|
+
* _nonces
|
|
1688
|
+
* view
|
|
1689
|
+
*/
|
|
1690
|
+
_nonces(arg0: `0x${string}`): Promise<bigint>;
|
|
1691
|
+
/**
|
|
1692
|
+
* accessControlManager
|
|
1693
|
+
* view
|
|
1694
|
+
*/
|
|
1695
|
+
accessControlManager(): Promise<`0x${string}`>;
|
|
1696
|
+
/**
|
|
1697
|
+
* campaign
|
|
1698
|
+
* view
|
|
1699
|
+
*/
|
|
1700
|
+
campaign(_campaignId: `0x${string}`): Promise<CampaignParameters>;
|
|
1701
|
+
/**
|
|
1702
|
+
* campaignId
|
|
1703
|
+
* view
|
|
1704
|
+
*/
|
|
1705
|
+
campaignId(campaignData: CampaignParameters): Promise<`0x${string}`>;
|
|
1706
|
+
/**
|
|
1707
|
+
* campaignList
|
|
1708
|
+
* view
|
|
1709
|
+
*/
|
|
1710
|
+
campaignList(arg0: bigint): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, bigint, bigint, bigint, bigint, `0x${string}`]>;
|
|
1711
|
+
/**
|
|
1712
|
+
* campaignListReallocation
|
|
1713
|
+
* view
|
|
1714
|
+
*/
|
|
1715
|
+
campaignListReallocation(arg0: `0x${string}`, arg1: bigint): Promise<`0x${string}`>;
|
|
1716
|
+
/**
|
|
1717
|
+
* campaignLookup
|
|
1718
|
+
* view
|
|
1719
|
+
*/
|
|
1720
|
+
campaignLookup(_campaignId: `0x${string}`): Promise<bigint>;
|
|
1721
|
+
/**
|
|
1722
|
+
* campaignOperators
|
|
1723
|
+
* view
|
|
1724
|
+
*/
|
|
1725
|
+
campaignOperators(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
1726
|
+
/**
|
|
1727
|
+
* campaignOverrides
|
|
1728
|
+
* view
|
|
1729
|
+
*/
|
|
1730
|
+
campaignOverrides(arg0: `0x${string}`): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, bigint, bigint, bigint, bigint, `0x${string}`]>;
|
|
1731
|
+
/**
|
|
1732
|
+
* campaignOverridesTimestamp
|
|
1733
|
+
* view
|
|
1734
|
+
*/
|
|
1735
|
+
campaignOverridesTimestamp(arg0: `0x${string}`, arg1: bigint): Promise<bigint>;
|
|
1736
|
+
/**
|
|
1737
|
+
* campaignReallocation
|
|
1738
|
+
* view
|
|
1739
|
+
*/
|
|
1740
|
+
campaignReallocation(arg0: `0x${string}`, arg1: `0x${string}`): Promise<`0x${string}`>;
|
|
1741
|
+
/**
|
|
1742
|
+
* campaignSpecificFees
|
|
1743
|
+
* view
|
|
1744
|
+
*/
|
|
1745
|
+
campaignSpecificFees(arg0: bigint): Promise<bigint>;
|
|
1746
|
+
/**
|
|
1747
|
+
* creatorAllowance
|
|
1748
|
+
* view
|
|
1749
|
+
*/
|
|
1750
|
+
creatorAllowance(arg0: `0x${string}`, arg1: `0x${string}`, arg2: `0x${string}`): Promise<bigint>;
|
|
1751
|
+
/**
|
|
1752
|
+
* creatorBalance
|
|
1753
|
+
* view
|
|
1754
|
+
*/
|
|
1755
|
+
creatorBalance(arg0: `0x${string}`, arg1: `0x${string}`): Promise<bigint>;
|
|
1756
|
+
/**
|
|
1757
|
+
* defaultFees
|
|
1758
|
+
* view
|
|
1759
|
+
*/
|
|
1760
|
+
defaultFees(): Promise<bigint>;
|
|
1761
|
+
/**
|
|
1762
|
+
* distributionList
|
|
1763
|
+
* view
|
|
1764
|
+
*/
|
|
1765
|
+
distributionList(arg0: bigint): Promise<[`0x${string}`, `0x${string}`, `0x${string}`, bigint, bigint, bigint, bigint, bigint, bigint, bigint, bigint, `0x${string}`, `0x${string}`]>;
|
|
1766
|
+
/**
|
|
1767
|
+
* distributor
|
|
1768
|
+
* view
|
|
1769
|
+
*/
|
|
1770
|
+
distributor(): Promise<`0x${string}`>;
|
|
1771
|
+
/**
|
|
1772
|
+
* feeRebate
|
|
1773
|
+
* view
|
|
1774
|
+
*/
|
|
1775
|
+
feeRebate(arg0: `0x${string}`): Promise<bigint>;
|
|
1776
|
+
/**
|
|
1777
|
+
* feeRecipient
|
|
1778
|
+
* view
|
|
1779
|
+
*/
|
|
1780
|
+
feeRecipient(): Promise<`0x${string}`>;
|
|
1781
|
+
/**
|
|
1782
|
+
* getCampaignListReallocation
|
|
1783
|
+
* view
|
|
1784
|
+
*/
|
|
1785
|
+
getCampaignListReallocation(_campaignId: `0x${string}`): Promise<`0x${string}`[]>;
|
|
1786
|
+
/**
|
|
1787
|
+
* getCampaignListReallocationAt
|
|
1788
|
+
* view
|
|
1789
|
+
*/
|
|
1790
|
+
getCampaignListReallocationAt(_campaignId: `0x${string}`, index: bigint): Promise<`0x${string}`>;
|
|
1791
|
+
/**
|
|
1792
|
+
* getCampaignOverridesTimestamp
|
|
1793
|
+
* view
|
|
1794
|
+
*/
|
|
1795
|
+
getCampaignOverridesTimestamp(_campaignId: `0x${string}`): Promise<bigint[]>;
|
|
1796
|
+
/**
|
|
1797
|
+
* getLatestCampaignParams
|
|
1798
|
+
* view
|
|
1799
|
+
*/
|
|
1800
|
+
getLatestCampaignParams(_campaignId: `0x${string}`): Promise<CampaignParameters>;
|
|
1801
|
+
getValidRewardTokens(): Promise<RewardTokenAmounts[]>;
|
|
1802
|
+
getValidRewardTokens(skip: bigint, first: bigint): Promise<[RewardTokenAmounts[], bigint]>;
|
|
1803
|
+
/**
|
|
1804
|
+
* isWhitelistedToken
|
|
1805
|
+
* view
|
|
1806
|
+
*/
|
|
1807
|
+
isWhitelistedToken(arg0: `0x${string}`): Promise<bigint>;
|
|
1808
|
+
/**
|
|
1809
|
+
* message
|
|
1810
|
+
* view
|
|
1811
|
+
*/
|
|
1812
|
+
message(): Promise<string>;
|
|
1813
|
+
/**
|
|
1814
|
+
* messageHash
|
|
1815
|
+
* view
|
|
1816
|
+
*/
|
|
1817
|
+
messageHash(): Promise<`0x${string}`>;
|
|
1818
|
+
/**
|
|
1819
|
+
* proxiableUUID
|
|
1820
|
+
* view
|
|
1821
|
+
*/
|
|
1822
|
+
proxiableUUID(): Promise<`0x${string}`>;
|
|
1823
|
+
/**
|
|
1824
|
+
* rewardTokenMinAmounts
|
|
1825
|
+
* view
|
|
1826
|
+
*/
|
|
1827
|
+
rewardTokenMinAmounts(arg0: `0x${string}`): Promise<bigint>;
|
|
1828
|
+
/**
|
|
1829
|
+
* rewardTokens
|
|
1830
|
+
* view
|
|
1831
|
+
*/
|
|
1832
|
+
rewardTokens(arg0: bigint): Promise<`0x${string}`>;
|
|
1833
|
+
/**
|
|
1834
|
+
* userSignatureWhitelist
|
|
1835
|
+
* view
|
|
1836
|
+
*/
|
|
1837
|
+
userSignatureWhitelist(arg0: `0x${string}`): Promise<bigint>;
|
|
1838
|
+
/**
|
|
1839
|
+
* userSignatures
|
|
1840
|
+
* view
|
|
1841
|
+
*/
|
|
1842
|
+
userSignatures(arg0: `0x${string}`): Promise<`0x${string}`>;
|
|
1843
|
+
/**
|
|
1844
|
+
* acceptConditions
|
|
1845
|
+
* nonpayable
|
|
1846
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1847
|
+
*/
|
|
1848
|
+
acceptConditions(options?: {
|
|
1849
|
+
accessList?: import('viem').AccessList;
|
|
1850
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1851
|
+
chain?: import('viem').Chain | null;
|
|
1852
|
+
dataSuffix?: `0x${string}`;
|
|
1853
|
+
gas?: bigint;
|
|
1854
|
+
gasPrice?: bigint;
|
|
1855
|
+
maxFeePerGas?: bigint;
|
|
1856
|
+
maxPriorityFeePerGas?: bigint;
|
|
1857
|
+
nonce?: number;
|
|
1858
|
+
value?: bigint;
|
|
1859
|
+
}): Promise<`0x${string}`>;
|
|
1860
|
+
/**
|
|
1861
|
+
* createCampaign
|
|
1862
|
+
* nonpayable
|
|
1863
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1864
|
+
*/
|
|
1865
|
+
createCampaign(newCampaign: CampaignParameters, options?: {
|
|
1866
|
+
accessList?: import('viem').AccessList;
|
|
1867
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1868
|
+
chain?: import('viem').Chain | null;
|
|
1869
|
+
dataSuffix?: `0x${string}`;
|
|
1870
|
+
gas?: bigint;
|
|
1871
|
+
gasPrice?: bigint;
|
|
1872
|
+
maxFeePerGas?: bigint;
|
|
1873
|
+
maxPriorityFeePerGas?: bigint;
|
|
1874
|
+
nonce?: number;
|
|
1875
|
+
value?: bigint;
|
|
1876
|
+
}): Promise<`0x${string}`>;
|
|
1877
|
+
/**
|
|
1878
|
+
* createCampaigns
|
|
1879
|
+
* nonpayable
|
|
1880
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1881
|
+
*/
|
|
1882
|
+
createCampaigns(campaigns: CampaignParameters[], options?: {
|
|
1883
|
+
accessList?: import('viem').AccessList;
|
|
1884
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1885
|
+
chain?: import('viem').Chain | null;
|
|
1886
|
+
dataSuffix?: `0x${string}`;
|
|
1887
|
+
gas?: bigint;
|
|
1888
|
+
gasPrice?: bigint;
|
|
1889
|
+
maxFeePerGas?: bigint;
|
|
1890
|
+
maxPriorityFeePerGas?: bigint;
|
|
1891
|
+
nonce?: number;
|
|
1892
|
+
value?: bigint;
|
|
1893
|
+
}): Promise<`0x${string}`>;
|
|
1894
|
+
/**
|
|
1895
|
+
* decreaseTokenAllowance
|
|
1896
|
+
* nonpayable
|
|
1897
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1898
|
+
*/
|
|
1899
|
+
decreaseTokenAllowance(user: `0x${string}`, operator: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
1900
|
+
accessList?: import('viem').AccessList;
|
|
1901
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1902
|
+
chain?: import('viem').Chain | null;
|
|
1903
|
+
dataSuffix?: `0x${string}`;
|
|
1904
|
+
gas?: bigint;
|
|
1905
|
+
gasPrice?: bigint;
|
|
1906
|
+
maxFeePerGas?: bigint;
|
|
1907
|
+
maxPriorityFeePerGas?: bigint;
|
|
1908
|
+
nonce?: number;
|
|
1909
|
+
value?: bigint;
|
|
1910
|
+
}): Promise<`0x${string}`>;
|
|
1911
|
+
/**
|
|
1912
|
+
* decreaseTokenBalance
|
|
1913
|
+
* nonpayable
|
|
1914
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1915
|
+
*/
|
|
1916
|
+
decreaseTokenBalance(user: `0x${string}`, rewardToken: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
1917
|
+
accessList?: import('viem').AccessList;
|
|
1918
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1919
|
+
chain?: import('viem').Chain | null;
|
|
1920
|
+
dataSuffix?: `0x${string}`;
|
|
1921
|
+
gas?: bigint;
|
|
1922
|
+
gasPrice?: bigint;
|
|
1923
|
+
maxFeePerGas?: bigint;
|
|
1924
|
+
maxPriorityFeePerGas?: bigint;
|
|
1925
|
+
nonce?: number;
|
|
1926
|
+
value?: bigint;
|
|
1927
|
+
}): Promise<`0x${string}`>;
|
|
1928
|
+
/**
|
|
1929
|
+
* increaseTokenAllowance
|
|
1930
|
+
* nonpayable
|
|
1931
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1932
|
+
*/
|
|
1933
|
+
increaseTokenAllowance(user: `0x${string}`, operator: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
1934
|
+
accessList?: import('viem').AccessList;
|
|
1935
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1936
|
+
chain?: import('viem').Chain | null;
|
|
1937
|
+
dataSuffix?: `0x${string}`;
|
|
1938
|
+
gas?: bigint;
|
|
1939
|
+
gasPrice?: bigint;
|
|
1940
|
+
maxFeePerGas?: bigint;
|
|
1941
|
+
maxPriorityFeePerGas?: bigint;
|
|
1942
|
+
nonce?: number;
|
|
1943
|
+
value?: bigint;
|
|
1944
|
+
}): Promise<`0x${string}`>;
|
|
1945
|
+
/**
|
|
1946
|
+
* increaseTokenBalance
|
|
1947
|
+
* nonpayable
|
|
1948
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1949
|
+
*/
|
|
1950
|
+
increaseTokenBalance(user: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
1951
|
+
accessList?: import('viem').AccessList;
|
|
1952
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1953
|
+
chain?: import('viem').Chain | null;
|
|
1954
|
+
dataSuffix?: `0x${string}`;
|
|
1955
|
+
gas?: bigint;
|
|
1956
|
+
gasPrice?: bigint;
|
|
1957
|
+
maxFeePerGas?: bigint;
|
|
1958
|
+
maxPriorityFeePerGas?: bigint;
|
|
1959
|
+
nonce?: number;
|
|
1960
|
+
value?: bigint;
|
|
1961
|
+
}): Promise<`0x${string}`>;
|
|
1962
|
+
/**
|
|
1963
|
+
* initialize
|
|
1964
|
+
* nonpayable
|
|
1965
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1966
|
+
*/
|
|
1967
|
+
initialize(_accessControlManager: `0x${string}`, _distributor: `0x${string}`, _fees: bigint, options?: {
|
|
1968
|
+
accessList?: import('viem').AccessList;
|
|
1969
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1970
|
+
chain?: import('viem').Chain | null;
|
|
1971
|
+
dataSuffix?: `0x${string}`;
|
|
1972
|
+
gas?: bigint;
|
|
1973
|
+
gasPrice?: bigint;
|
|
1974
|
+
maxFeePerGas?: bigint;
|
|
1975
|
+
maxPriorityFeePerGas?: bigint;
|
|
1976
|
+
nonce?: number;
|
|
1977
|
+
value?: bigint;
|
|
1978
|
+
}): Promise<`0x${string}`>;
|
|
1979
|
+
/**
|
|
1980
|
+
* overrideCampaign
|
|
1981
|
+
* nonpayable
|
|
1982
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1983
|
+
*/
|
|
1984
|
+
overrideCampaign(_campaignId: `0x${string}`, newCampaign: CampaignParameters, options?: {
|
|
1985
|
+
accessList?: import('viem').AccessList;
|
|
1986
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1987
|
+
chain?: import('viem').Chain | null;
|
|
1988
|
+
dataSuffix?: `0x${string}`;
|
|
1989
|
+
gas?: bigint;
|
|
1990
|
+
gasPrice?: bigint;
|
|
1991
|
+
maxFeePerGas?: bigint;
|
|
1992
|
+
maxPriorityFeePerGas?: bigint;
|
|
1993
|
+
nonce?: number;
|
|
1994
|
+
value?: bigint;
|
|
1995
|
+
}): Promise<`0x${string}`>;
|
|
1996
|
+
/**
|
|
1997
|
+
* reallocateCampaignRewards
|
|
1998
|
+
* nonpayable
|
|
1999
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2000
|
+
*/
|
|
2001
|
+
reallocateCampaignRewards(_campaignId: `0x${string}`, froms: `0x${string}`[], to: `0x${string}`, options?: {
|
|
2002
|
+
accessList?: import('viem').AccessList;
|
|
2003
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2004
|
+
chain?: import('viem').Chain | null;
|
|
2005
|
+
dataSuffix?: `0x${string}`;
|
|
2006
|
+
gas?: bigint;
|
|
2007
|
+
gasPrice?: bigint;
|
|
2008
|
+
maxFeePerGas?: bigint;
|
|
2009
|
+
maxPriorityFeePerGas?: bigint;
|
|
2010
|
+
nonce?: number;
|
|
2011
|
+
value?: bigint;
|
|
2012
|
+
}): Promise<`0x${string}`>;
|
|
2013
|
+
/**
|
|
2014
|
+
* recover
|
|
2015
|
+
* nonpayable
|
|
2016
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2017
|
+
*/
|
|
2018
|
+
recover(token: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2019
|
+
accessList?: import('viem').AccessList;
|
|
2020
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2021
|
+
chain?: import('viem').Chain | null;
|
|
2022
|
+
dataSuffix?: `0x${string}`;
|
|
2023
|
+
gas?: bigint;
|
|
2024
|
+
gasPrice?: bigint;
|
|
2025
|
+
maxFeePerGas?: bigint;
|
|
2026
|
+
maxPriorityFeePerGas?: bigint;
|
|
2027
|
+
nonce?: number;
|
|
2028
|
+
value?: bigint;
|
|
2029
|
+
}): Promise<`0x${string}`>;
|
|
2030
|
+
/**
|
|
2031
|
+
* setCampaignFees
|
|
2032
|
+
* nonpayable
|
|
2033
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2034
|
+
*/
|
|
2035
|
+
setCampaignFees(campaignType: bigint, _fees: bigint, options?: {
|
|
2036
|
+
accessList?: import('viem').AccessList;
|
|
2037
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2038
|
+
chain?: import('viem').Chain | null;
|
|
2039
|
+
dataSuffix?: `0x${string}`;
|
|
2040
|
+
gas?: bigint;
|
|
2041
|
+
gasPrice?: bigint;
|
|
2042
|
+
maxFeePerGas?: bigint;
|
|
2043
|
+
maxPriorityFeePerGas?: bigint;
|
|
2044
|
+
nonce?: number;
|
|
2045
|
+
value?: bigint;
|
|
2046
|
+
}): Promise<`0x${string}`>;
|
|
2047
|
+
/**
|
|
2048
|
+
* setFeeRecipient
|
|
2049
|
+
* nonpayable
|
|
2050
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2051
|
+
*/
|
|
2052
|
+
setFeeRecipient(_feeRecipient: `0x${string}`, options?: {
|
|
2053
|
+
accessList?: import('viem').AccessList;
|
|
2054
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2055
|
+
chain?: import('viem').Chain | null;
|
|
2056
|
+
dataSuffix?: `0x${string}`;
|
|
2057
|
+
gas?: bigint;
|
|
2058
|
+
gasPrice?: bigint;
|
|
2059
|
+
maxFeePerGas?: bigint;
|
|
2060
|
+
maxPriorityFeePerGas?: bigint;
|
|
2061
|
+
nonce?: number;
|
|
2062
|
+
value?: bigint;
|
|
2063
|
+
}): Promise<`0x${string}`>;
|
|
2064
|
+
/**
|
|
2065
|
+
* setFees
|
|
2066
|
+
* nonpayable
|
|
2067
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2068
|
+
*/
|
|
2069
|
+
setFees(_defaultFees: bigint, options?: {
|
|
2070
|
+
accessList?: import('viem').AccessList;
|
|
2071
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2072
|
+
chain?: import('viem').Chain | null;
|
|
2073
|
+
dataSuffix?: `0x${string}`;
|
|
2074
|
+
gas?: bigint;
|
|
2075
|
+
gasPrice?: bigint;
|
|
2076
|
+
maxFeePerGas?: bigint;
|
|
2077
|
+
maxPriorityFeePerGas?: bigint;
|
|
2078
|
+
nonce?: number;
|
|
2079
|
+
value?: bigint;
|
|
2080
|
+
}): Promise<`0x${string}`>;
|
|
2081
|
+
/**
|
|
2082
|
+
* setMessage
|
|
2083
|
+
* nonpayable
|
|
2084
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2085
|
+
*/
|
|
2086
|
+
setMessage(_message: string, options?: {
|
|
2087
|
+
accessList?: import('viem').AccessList;
|
|
2088
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2089
|
+
chain?: import('viem').Chain | null;
|
|
2090
|
+
dataSuffix?: `0x${string}`;
|
|
2091
|
+
gas?: bigint;
|
|
2092
|
+
gasPrice?: bigint;
|
|
2093
|
+
maxFeePerGas?: bigint;
|
|
2094
|
+
maxPriorityFeePerGas?: bigint;
|
|
2095
|
+
nonce?: number;
|
|
2096
|
+
value?: bigint;
|
|
2097
|
+
}): Promise<`0x${string}`>;
|
|
2098
|
+
/**
|
|
2099
|
+
* setNewDistributor
|
|
2100
|
+
* nonpayable
|
|
2101
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2102
|
+
*/
|
|
2103
|
+
setNewDistributor(_distributor: `0x${string}`, options?: {
|
|
2104
|
+
accessList?: import('viem').AccessList;
|
|
2105
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2106
|
+
chain?: import('viem').Chain | null;
|
|
2107
|
+
dataSuffix?: `0x${string}`;
|
|
2108
|
+
gas?: bigint;
|
|
2109
|
+
gasPrice?: bigint;
|
|
2110
|
+
maxFeePerGas?: bigint;
|
|
2111
|
+
maxPriorityFeePerGas?: bigint;
|
|
2112
|
+
nonce?: number;
|
|
2113
|
+
value?: bigint;
|
|
2114
|
+
}): Promise<`0x${string}`>;
|
|
2115
|
+
/**
|
|
2116
|
+
* setRewardTokenMinAmounts
|
|
2117
|
+
* nonpayable
|
|
2118
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2119
|
+
*/
|
|
2120
|
+
setRewardTokenMinAmounts(tokens: `0x${string}`[], amounts: bigint[], options?: {
|
|
2121
|
+
accessList?: import('viem').AccessList;
|
|
2122
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2123
|
+
chain?: import('viem').Chain | null;
|
|
2124
|
+
dataSuffix?: `0x${string}`;
|
|
2125
|
+
gas?: bigint;
|
|
2126
|
+
gasPrice?: bigint;
|
|
2127
|
+
maxFeePerGas?: bigint;
|
|
2128
|
+
maxPriorityFeePerGas?: bigint;
|
|
2129
|
+
nonce?: number;
|
|
2130
|
+
value?: bigint;
|
|
2131
|
+
}): Promise<`0x${string}`>;
|
|
2132
|
+
/**
|
|
2133
|
+
* setUserFeeRebate
|
|
2134
|
+
* nonpayable
|
|
2135
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2136
|
+
*/
|
|
2137
|
+
setUserFeeRebate(user: `0x${string}`, userFeeRebate: bigint, options?: {
|
|
2138
|
+
accessList?: import('viem').AccessList;
|
|
2139
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2140
|
+
chain?: import('viem').Chain | null;
|
|
2141
|
+
dataSuffix?: `0x${string}`;
|
|
2142
|
+
gas?: bigint;
|
|
2143
|
+
gasPrice?: bigint;
|
|
2144
|
+
maxFeePerGas?: bigint;
|
|
2145
|
+
maxPriorityFeePerGas?: bigint;
|
|
2146
|
+
nonce?: number;
|
|
2147
|
+
value?: bigint;
|
|
2148
|
+
}): Promise<`0x${string}`>;
|
|
2149
|
+
/**
|
|
2150
|
+
* signAndCreateCampaign
|
|
2151
|
+
* nonpayable
|
|
2152
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2153
|
+
*/
|
|
2154
|
+
signAndCreateCampaign(newCampaign: CampaignParameters, arg1: `0x${string}`, options?: {
|
|
2155
|
+
accessList?: import('viem').AccessList;
|
|
2156
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2157
|
+
chain?: import('viem').Chain | null;
|
|
2158
|
+
dataSuffix?: `0x${string}`;
|
|
2159
|
+
gas?: bigint;
|
|
2160
|
+
gasPrice?: bigint;
|
|
2161
|
+
maxFeePerGas?: bigint;
|
|
2162
|
+
maxPriorityFeePerGas?: bigint;
|
|
2163
|
+
nonce?: number;
|
|
2164
|
+
value?: bigint;
|
|
2165
|
+
}): Promise<`0x${string}`>;
|
|
2166
|
+
/**
|
|
2167
|
+
* toggleCampaignOperator
|
|
2168
|
+
* nonpayable
|
|
2169
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2170
|
+
*/
|
|
2171
|
+
toggleCampaignOperator(user: `0x${string}`, operator: `0x${string}`, options?: {
|
|
2172
|
+
accessList?: import('viem').AccessList;
|
|
2173
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2174
|
+
chain?: import('viem').Chain | null;
|
|
2175
|
+
dataSuffix?: `0x${string}`;
|
|
2176
|
+
gas?: bigint;
|
|
2177
|
+
gasPrice?: bigint;
|
|
2178
|
+
maxFeePerGas?: bigint;
|
|
2179
|
+
maxPriorityFeePerGas?: bigint;
|
|
2180
|
+
nonce?: number;
|
|
2181
|
+
value?: bigint;
|
|
2182
|
+
}): Promise<`0x${string}`>;
|
|
2183
|
+
/**
|
|
2184
|
+
* toggleSigningWhitelist
|
|
2185
|
+
* nonpayable
|
|
2186
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2187
|
+
*/
|
|
2188
|
+
toggleSigningWhitelist(user: `0x${string}`, options?: {
|
|
2189
|
+
accessList?: import('viem').AccessList;
|
|
2190
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2191
|
+
chain?: import('viem').Chain | null;
|
|
2192
|
+
dataSuffix?: `0x${string}`;
|
|
2193
|
+
gas?: bigint;
|
|
2194
|
+
gasPrice?: bigint;
|
|
2195
|
+
maxFeePerGas?: bigint;
|
|
2196
|
+
maxPriorityFeePerGas?: bigint;
|
|
2197
|
+
nonce?: number;
|
|
2198
|
+
value?: bigint;
|
|
2199
|
+
}): Promise<`0x${string}`>;
|
|
2200
|
+
/**
|
|
2201
|
+
* upgradeTo
|
|
2202
|
+
* nonpayable
|
|
2203
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2204
|
+
*/
|
|
2205
|
+
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
2206
|
+
accessList?: import('viem').AccessList;
|
|
2207
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2208
|
+
chain?: import('viem').Chain | null;
|
|
2209
|
+
dataSuffix?: `0x${string}`;
|
|
2210
|
+
gas?: bigint;
|
|
2211
|
+
gasPrice?: bigint;
|
|
2212
|
+
maxFeePerGas?: bigint;
|
|
2213
|
+
maxPriorityFeePerGas?: bigint;
|
|
2214
|
+
nonce?: number;
|
|
2215
|
+
value?: bigint;
|
|
2216
|
+
}): Promise<`0x${string}`>;
|
|
2217
|
+
/**
|
|
2218
|
+
* upgradeToAndCall
|
|
2219
|
+
* payable
|
|
2220
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2221
|
+
*/
|
|
2222
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
2223
|
+
accessList?: import('viem').AccessList;
|
|
2224
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
2225
|
+
chain?: import('viem').Chain | null;
|
|
2226
|
+
dataSuffix?: `0x${string}`;
|
|
2227
|
+
gas?: bigint;
|
|
2228
|
+
gasPrice?: bigint;
|
|
2229
|
+
maxFeePerGas?: bigint;
|
|
2230
|
+
maxPriorityFeePerGas?: bigint;
|
|
2231
|
+
nonce?: number;
|
|
2232
|
+
value?: bigint;
|
|
2233
|
+
}): Promise<`0x${string}`>;
|
|
2234
|
+
/**
|
|
2235
|
+
* Simulate contract write operations (dry-run without sending transaction)
|
|
2236
|
+
*
|
|
2237
|
+
* @example
|
|
2238
|
+
* const result = await contract.simulate.transfer('0x...', 1000n);
|
|
2239
|
+
* console.log('Gas estimate:', result.request.gas);
|
|
2240
|
+
* console.log('Would succeed:', result.result);
|
|
2241
|
+
*/
|
|
2242
|
+
get simulate(): {
|
|
2243
|
+
/**
|
|
2244
|
+
* Simulate acceptConditions
|
|
2245
|
+
* Returns gas estimate and result without sending transaction
|
|
2246
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2247
|
+
*/
|
|
2248
|
+
acceptConditions(options?: {
|
|
2249
|
+
accessList?: import("viem").AccessList;
|
|
2250
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2251
|
+
chain?: import("viem").Chain | null;
|
|
2252
|
+
dataSuffix?: `0x${string}`;
|
|
2253
|
+
gas?: bigint;
|
|
2254
|
+
gasPrice?: bigint;
|
|
2255
|
+
maxFeePerGas?: bigint;
|
|
2256
|
+
maxPriorityFeePerGas?: bigint;
|
|
2257
|
+
nonce?: number;
|
|
2258
|
+
value?: bigint;
|
|
2259
|
+
}): Promise<void>;
|
|
2260
|
+
/**
|
|
2261
|
+
* Simulate createCampaign
|
|
2262
|
+
* Returns gas estimate and result without sending transaction
|
|
2263
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2264
|
+
*/
|
|
2265
|
+
createCampaign(newCampaign: CampaignParameters, options?: {
|
|
2266
|
+
accessList?: import("viem").AccessList;
|
|
2267
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2268
|
+
chain?: import("viem").Chain | null;
|
|
2269
|
+
dataSuffix?: `0x${string}`;
|
|
2270
|
+
gas?: bigint;
|
|
2271
|
+
gasPrice?: bigint;
|
|
2272
|
+
maxFeePerGas?: bigint;
|
|
2273
|
+
maxPriorityFeePerGas?: bigint;
|
|
2274
|
+
nonce?: number;
|
|
2275
|
+
value?: bigint;
|
|
2276
|
+
}): Promise<`0x${string}`>;
|
|
2277
|
+
/**
|
|
2278
|
+
* Simulate createCampaigns
|
|
2279
|
+
* Returns gas estimate and result without sending transaction
|
|
2280
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2281
|
+
*/
|
|
2282
|
+
createCampaigns(campaigns: CampaignParameters[], options?: {
|
|
2283
|
+
accessList?: import("viem").AccessList;
|
|
2284
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2285
|
+
chain?: import("viem").Chain | null;
|
|
2286
|
+
dataSuffix?: `0x${string}`;
|
|
2287
|
+
gas?: bigint;
|
|
2288
|
+
gasPrice?: bigint;
|
|
2289
|
+
maxFeePerGas?: bigint;
|
|
2290
|
+
maxPriorityFeePerGas?: bigint;
|
|
2291
|
+
nonce?: number;
|
|
2292
|
+
value?: bigint;
|
|
2293
|
+
}): Promise<`0x${string}`[]>;
|
|
2294
|
+
/**
|
|
2295
|
+
* Simulate decreaseTokenAllowance
|
|
2296
|
+
* Returns gas estimate and result without sending transaction
|
|
2297
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2298
|
+
*/
|
|
2299
|
+
decreaseTokenAllowance(user: `0x${string}`, operator: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
2300
|
+
accessList?: import("viem").AccessList;
|
|
2301
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2302
|
+
chain?: import("viem").Chain | null;
|
|
2303
|
+
dataSuffix?: `0x${string}`;
|
|
2304
|
+
gas?: bigint;
|
|
2305
|
+
gasPrice?: bigint;
|
|
2306
|
+
maxFeePerGas?: bigint;
|
|
2307
|
+
maxPriorityFeePerGas?: bigint;
|
|
2308
|
+
nonce?: number;
|
|
2309
|
+
value?: bigint;
|
|
2310
|
+
}): Promise<void>;
|
|
2311
|
+
/**
|
|
2312
|
+
* Simulate decreaseTokenBalance
|
|
2313
|
+
* Returns gas estimate and result without sending transaction
|
|
2314
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2315
|
+
*/
|
|
2316
|
+
decreaseTokenBalance(user: `0x${string}`, rewardToken: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2317
|
+
accessList?: import("viem").AccessList;
|
|
2318
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2319
|
+
chain?: import("viem").Chain | null;
|
|
2320
|
+
dataSuffix?: `0x${string}`;
|
|
2321
|
+
gas?: bigint;
|
|
2322
|
+
gasPrice?: bigint;
|
|
2323
|
+
maxFeePerGas?: bigint;
|
|
2324
|
+
maxPriorityFeePerGas?: bigint;
|
|
2325
|
+
nonce?: number;
|
|
2326
|
+
value?: bigint;
|
|
2327
|
+
}): Promise<void>;
|
|
2328
|
+
/**
|
|
2329
|
+
* Simulate increaseTokenAllowance
|
|
2330
|
+
* Returns gas estimate and result without sending transaction
|
|
2331
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2332
|
+
*/
|
|
2333
|
+
increaseTokenAllowance(user: `0x${string}`, operator: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
2334
|
+
accessList?: import("viem").AccessList;
|
|
2335
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2336
|
+
chain?: import("viem").Chain | null;
|
|
2337
|
+
dataSuffix?: `0x${string}`;
|
|
2338
|
+
gas?: bigint;
|
|
2339
|
+
gasPrice?: bigint;
|
|
2340
|
+
maxFeePerGas?: bigint;
|
|
2341
|
+
maxPriorityFeePerGas?: bigint;
|
|
2342
|
+
nonce?: number;
|
|
2343
|
+
value?: bigint;
|
|
2344
|
+
}): Promise<void>;
|
|
2345
|
+
/**
|
|
2346
|
+
* Simulate increaseTokenBalance
|
|
2347
|
+
* Returns gas estimate and result without sending transaction
|
|
2348
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2349
|
+
*/
|
|
2350
|
+
increaseTokenBalance(user: `0x${string}`, rewardToken: `0x${string}`, amount: bigint, options?: {
|
|
2351
|
+
accessList?: import("viem").AccessList;
|
|
2352
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2353
|
+
chain?: import("viem").Chain | null;
|
|
2354
|
+
dataSuffix?: `0x${string}`;
|
|
2355
|
+
gas?: bigint;
|
|
2356
|
+
gasPrice?: bigint;
|
|
2357
|
+
maxFeePerGas?: bigint;
|
|
2358
|
+
maxPriorityFeePerGas?: bigint;
|
|
2359
|
+
nonce?: number;
|
|
2360
|
+
value?: bigint;
|
|
2361
|
+
}): Promise<void>;
|
|
2362
|
+
/**
|
|
2363
|
+
* Simulate initialize
|
|
2364
|
+
* Returns gas estimate and result without sending transaction
|
|
2365
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2366
|
+
*/
|
|
2367
|
+
initialize(_accessControlManager: `0x${string}`, _distributor: `0x${string}`, _fees: bigint, options?: {
|
|
2368
|
+
accessList?: import("viem").AccessList;
|
|
2369
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2370
|
+
chain?: import("viem").Chain | null;
|
|
2371
|
+
dataSuffix?: `0x${string}`;
|
|
2372
|
+
gas?: bigint;
|
|
2373
|
+
gasPrice?: bigint;
|
|
2374
|
+
maxFeePerGas?: bigint;
|
|
2375
|
+
maxPriorityFeePerGas?: bigint;
|
|
2376
|
+
nonce?: number;
|
|
2377
|
+
value?: bigint;
|
|
2378
|
+
}): Promise<void>;
|
|
2379
|
+
/**
|
|
2380
|
+
* Simulate overrideCampaign
|
|
2381
|
+
* Returns gas estimate and result without sending transaction
|
|
2382
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2383
|
+
*/
|
|
2384
|
+
overrideCampaign(_campaignId: `0x${string}`, newCampaign: CampaignParameters, options?: {
|
|
2385
|
+
accessList?: import("viem").AccessList;
|
|
2386
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2387
|
+
chain?: import("viem").Chain | null;
|
|
2388
|
+
dataSuffix?: `0x${string}`;
|
|
2389
|
+
gas?: bigint;
|
|
2390
|
+
gasPrice?: bigint;
|
|
2391
|
+
maxFeePerGas?: bigint;
|
|
2392
|
+
maxPriorityFeePerGas?: bigint;
|
|
2393
|
+
nonce?: number;
|
|
2394
|
+
value?: bigint;
|
|
2395
|
+
}): Promise<void>;
|
|
2396
|
+
/**
|
|
2397
|
+
* Simulate reallocateCampaignRewards
|
|
2398
|
+
* Returns gas estimate and result without sending transaction
|
|
2399
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2400
|
+
*/
|
|
2401
|
+
reallocateCampaignRewards(_campaignId: `0x${string}`, froms: `0x${string}`[], to: `0x${string}`, options?: {
|
|
2402
|
+
accessList?: import("viem").AccessList;
|
|
2403
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2404
|
+
chain?: import("viem").Chain | null;
|
|
2405
|
+
dataSuffix?: `0x${string}`;
|
|
2406
|
+
gas?: bigint;
|
|
2407
|
+
gasPrice?: bigint;
|
|
2408
|
+
maxFeePerGas?: bigint;
|
|
2409
|
+
maxPriorityFeePerGas?: bigint;
|
|
2410
|
+
nonce?: number;
|
|
2411
|
+
value?: bigint;
|
|
2412
|
+
}): Promise<void>;
|
|
2413
|
+
/**
|
|
2414
|
+
* Simulate recover
|
|
2415
|
+
* Returns gas estimate and result without sending transaction
|
|
2416
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2417
|
+
*/
|
|
2418
|
+
recover(token: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2419
|
+
accessList?: import("viem").AccessList;
|
|
2420
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2421
|
+
chain?: import("viem").Chain | null;
|
|
2422
|
+
dataSuffix?: `0x${string}`;
|
|
2423
|
+
gas?: bigint;
|
|
2424
|
+
gasPrice?: bigint;
|
|
2425
|
+
maxFeePerGas?: bigint;
|
|
2426
|
+
maxPriorityFeePerGas?: bigint;
|
|
2427
|
+
nonce?: number;
|
|
2428
|
+
value?: bigint;
|
|
2429
|
+
}): Promise<void>;
|
|
2430
|
+
/**
|
|
2431
|
+
* Simulate setCampaignFees
|
|
2432
|
+
* Returns gas estimate and result without sending transaction
|
|
2433
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2434
|
+
*/
|
|
2435
|
+
setCampaignFees(campaignType: bigint, _fees: bigint, options?: {
|
|
2436
|
+
accessList?: import("viem").AccessList;
|
|
2437
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2438
|
+
chain?: import("viem").Chain | null;
|
|
2439
|
+
dataSuffix?: `0x${string}`;
|
|
2440
|
+
gas?: bigint;
|
|
2441
|
+
gasPrice?: bigint;
|
|
2442
|
+
maxFeePerGas?: bigint;
|
|
2443
|
+
maxPriorityFeePerGas?: bigint;
|
|
2444
|
+
nonce?: number;
|
|
2445
|
+
value?: bigint;
|
|
2446
|
+
}): Promise<void>;
|
|
2447
|
+
/**
|
|
2448
|
+
* Simulate setFeeRecipient
|
|
2449
|
+
* Returns gas estimate and result without sending transaction
|
|
2450
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2451
|
+
*/
|
|
2452
|
+
setFeeRecipient(_feeRecipient: `0x${string}`, options?: {
|
|
2453
|
+
accessList?: import("viem").AccessList;
|
|
2454
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2455
|
+
chain?: import("viem").Chain | null;
|
|
2456
|
+
dataSuffix?: `0x${string}`;
|
|
2457
|
+
gas?: bigint;
|
|
2458
|
+
gasPrice?: bigint;
|
|
2459
|
+
maxFeePerGas?: bigint;
|
|
2460
|
+
maxPriorityFeePerGas?: bigint;
|
|
2461
|
+
nonce?: number;
|
|
2462
|
+
value?: bigint;
|
|
2463
|
+
}): Promise<void>;
|
|
2464
|
+
/**
|
|
2465
|
+
* Simulate setFees
|
|
2466
|
+
* Returns gas estimate and result without sending transaction
|
|
2467
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2468
|
+
*/
|
|
2469
|
+
setFees(_defaultFees: bigint, options?: {
|
|
2470
|
+
accessList?: import("viem").AccessList;
|
|
2471
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2472
|
+
chain?: import("viem").Chain | null;
|
|
2473
|
+
dataSuffix?: `0x${string}`;
|
|
2474
|
+
gas?: bigint;
|
|
2475
|
+
gasPrice?: bigint;
|
|
2476
|
+
maxFeePerGas?: bigint;
|
|
2477
|
+
maxPriorityFeePerGas?: bigint;
|
|
2478
|
+
nonce?: number;
|
|
2479
|
+
value?: bigint;
|
|
2480
|
+
}): Promise<void>;
|
|
2481
|
+
/**
|
|
2482
|
+
* Simulate setMessage
|
|
2483
|
+
* Returns gas estimate and result without sending transaction
|
|
2484
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2485
|
+
*/
|
|
2486
|
+
setMessage(_message: string, options?: {
|
|
2487
|
+
accessList?: import("viem").AccessList;
|
|
2488
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2489
|
+
chain?: import("viem").Chain | null;
|
|
2490
|
+
dataSuffix?: `0x${string}`;
|
|
2491
|
+
gas?: bigint;
|
|
2492
|
+
gasPrice?: bigint;
|
|
2493
|
+
maxFeePerGas?: bigint;
|
|
2494
|
+
maxPriorityFeePerGas?: bigint;
|
|
2495
|
+
nonce?: number;
|
|
2496
|
+
value?: bigint;
|
|
2497
|
+
}): Promise<void>;
|
|
2498
|
+
/**
|
|
2499
|
+
* Simulate setNewDistributor
|
|
2500
|
+
* Returns gas estimate and result without sending transaction
|
|
2501
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2502
|
+
*/
|
|
2503
|
+
setNewDistributor(_distributor: `0x${string}`, options?: {
|
|
2504
|
+
accessList?: import("viem").AccessList;
|
|
2505
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2506
|
+
chain?: import("viem").Chain | null;
|
|
2507
|
+
dataSuffix?: `0x${string}`;
|
|
2508
|
+
gas?: bigint;
|
|
2509
|
+
gasPrice?: bigint;
|
|
2510
|
+
maxFeePerGas?: bigint;
|
|
2511
|
+
maxPriorityFeePerGas?: bigint;
|
|
2512
|
+
nonce?: number;
|
|
2513
|
+
value?: bigint;
|
|
2514
|
+
}): Promise<void>;
|
|
2515
|
+
/**
|
|
2516
|
+
* Simulate setRewardTokenMinAmounts
|
|
2517
|
+
* Returns gas estimate and result without sending transaction
|
|
2518
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2519
|
+
*/
|
|
2520
|
+
setRewardTokenMinAmounts(tokens: `0x${string}`[], amounts: bigint[], options?: {
|
|
2521
|
+
accessList?: import("viem").AccessList;
|
|
2522
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2523
|
+
chain?: import("viem").Chain | null;
|
|
2524
|
+
dataSuffix?: `0x${string}`;
|
|
2525
|
+
gas?: bigint;
|
|
2526
|
+
gasPrice?: bigint;
|
|
2527
|
+
maxFeePerGas?: bigint;
|
|
2528
|
+
maxPriorityFeePerGas?: bigint;
|
|
2529
|
+
nonce?: number;
|
|
2530
|
+
value?: bigint;
|
|
2531
|
+
}): Promise<void>;
|
|
2532
|
+
/**
|
|
2533
|
+
* Simulate setUserFeeRebate
|
|
2534
|
+
* Returns gas estimate and result without sending transaction
|
|
2535
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2536
|
+
*/
|
|
2537
|
+
setUserFeeRebate(user: `0x${string}`, userFeeRebate: bigint, options?: {
|
|
2538
|
+
accessList?: import("viem").AccessList;
|
|
2539
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2540
|
+
chain?: import("viem").Chain | null;
|
|
2541
|
+
dataSuffix?: `0x${string}`;
|
|
2542
|
+
gas?: bigint;
|
|
2543
|
+
gasPrice?: bigint;
|
|
2544
|
+
maxFeePerGas?: bigint;
|
|
2545
|
+
maxPriorityFeePerGas?: bigint;
|
|
2546
|
+
nonce?: number;
|
|
2547
|
+
value?: bigint;
|
|
2548
|
+
}): Promise<void>;
|
|
2549
|
+
/**
|
|
2550
|
+
* Simulate signAndCreateCampaign
|
|
2551
|
+
* Returns gas estimate and result without sending transaction
|
|
2552
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2553
|
+
*/
|
|
2554
|
+
signAndCreateCampaign(newCampaign: CampaignParameters, arg1: `0x${string}`, options?: {
|
|
2555
|
+
accessList?: import("viem").AccessList;
|
|
2556
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2557
|
+
chain?: import("viem").Chain | null;
|
|
2558
|
+
dataSuffix?: `0x${string}`;
|
|
2559
|
+
gas?: bigint;
|
|
2560
|
+
gasPrice?: bigint;
|
|
2561
|
+
maxFeePerGas?: bigint;
|
|
2562
|
+
maxPriorityFeePerGas?: bigint;
|
|
2563
|
+
nonce?: number;
|
|
2564
|
+
value?: bigint;
|
|
2565
|
+
}): Promise<`0x${string}`>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Simulate toggleCampaignOperator
|
|
2568
|
+
* Returns gas estimate and result without sending transaction
|
|
2569
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2570
|
+
*/
|
|
2571
|
+
toggleCampaignOperator(user: `0x${string}`, operator: `0x${string}`, options?: {
|
|
2572
|
+
accessList?: import("viem").AccessList;
|
|
2573
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2574
|
+
chain?: import("viem").Chain | null;
|
|
2575
|
+
dataSuffix?: `0x${string}`;
|
|
2576
|
+
gas?: bigint;
|
|
2577
|
+
gasPrice?: bigint;
|
|
2578
|
+
maxFeePerGas?: bigint;
|
|
2579
|
+
maxPriorityFeePerGas?: bigint;
|
|
2580
|
+
nonce?: number;
|
|
2581
|
+
value?: bigint;
|
|
2582
|
+
}): Promise<void>;
|
|
2583
|
+
/**
|
|
2584
|
+
* Simulate toggleSigningWhitelist
|
|
2585
|
+
* Returns gas estimate and result without sending transaction
|
|
2586
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2587
|
+
*/
|
|
2588
|
+
toggleSigningWhitelist(user: `0x${string}`, options?: {
|
|
2589
|
+
accessList?: import("viem").AccessList;
|
|
2590
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2591
|
+
chain?: import("viem").Chain | null;
|
|
2592
|
+
dataSuffix?: `0x${string}`;
|
|
2593
|
+
gas?: bigint;
|
|
2594
|
+
gasPrice?: bigint;
|
|
2595
|
+
maxFeePerGas?: bigint;
|
|
2596
|
+
maxPriorityFeePerGas?: bigint;
|
|
2597
|
+
nonce?: number;
|
|
2598
|
+
value?: bigint;
|
|
2599
|
+
}): Promise<void>;
|
|
2600
|
+
/**
|
|
2601
|
+
* Simulate upgradeTo
|
|
2602
|
+
* Returns gas estimate and result without sending transaction
|
|
2603
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2604
|
+
*/
|
|
2605
|
+
upgradeTo(newImplementation: `0x${string}`, options?: {
|
|
2606
|
+
accessList?: import("viem").AccessList;
|
|
2607
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2608
|
+
chain?: import("viem").Chain | null;
|
|
2609
|
+
dataSuffix?: `0x${string}`;
|
|
2610
|
+
gas?: bigint;
|
|
2611
|
+
gasPrice?: bigint;
|
|
2612
|
+
maxFeePerGas?: bigint;
|
|
2613
|
+
maxPriorityFeePerGas?: bigint;
|
|
2614
|
+
nonce?: number;
|
|
2615
|
+
value?: bigint;
|
|
2616
|
+
}): Promise<void>;
|
|
2617
|
+
/**
|
|
2618
|
+
* Simulate upgradeToAndCall
|
|
2619
|
+
* Returns gas estimate and result without sending transaction
|
|
2620
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2621
|
+
*/
|
|
2622
|
+
upgradeToAndCall(newImplementation: `0x${string}`, data: `0x${string}`, options?: {
|
|
2623
|
+
accessList?: import("viem").AccessList;
|
|
2624
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
2625
|
+
chain?: import("viem").Chain | null;
|
|
2626
|
+
dataSuffix?: `0x${string}`;
|
|
2627
|
+
gas?: bigint;
|
|
2628
|
+
gasPrice?: bigint;
|
|
2629
|
+
maxFeePerGas?: bigint;
|
|
2630
|
+
maxPriorityFeePerGas?: bigint;
|
|
2631
|
+
nonce?: number;
|
|
2632
|
+
value?: bigint;
|
|
2633
|
+
}): Promise<void>;
|
|
2634
|
+
};
|
|
2635
|
+
/**
|
|
2636
|
+
* Watch contract events
|
|
2637
|
+
*
|
|
2638
|
+
* @example
|
|
2639
|
+
* // Watch all Transfer events
|
|
2640
|
+
* const unwatch = contract.watch.Transfer((event) => {
|
|
2641
|
+
* console.log('Transfer:', event);
|
|
2642
|
+
* });
|
|
2643
|
+
*
|
|
2644
|
+
* // Stop watching
|
|
2645
|
+
* unwatch();
|
|
2646
|
+
*/
|
|
2647
|
+
get watch(): {
|
|
2648
|
+
/**
|
|
2649
|
+
* Watch AdminChanged events
|
|
2650
|
+
* @param callback Function to call when event is emitted
|
|
2651
|
+
* @param filter Optional filter for indexed parameters
|
|
2652
|
+
* @returns Unwatch function to stop listening
|
|
2653
|
+
*/
|
|
2654
|
+
AdminChanged: (callback: (event: {
|
|
2655
|
+
previousAdmin: `0x${string}`;
|
|
2656
|
+
newAdmin: `0x${string}`;
|
|
2657
|
+
}) => void) => () => void;
|
|
2658
|
+
/**
|
|
2659
|
+
* Watch BeaconUpgraded events
|
|
2660
|
+
* @param callback Function to call when event is emitted
|
|
2661
|
+
* @param filter Optional filter for indexed parameters
|
|
2662
|
+
* @returns Unwatch function to stop listening
|
|
2663
|
+
*/
|
|
2664
|
+
BeaconUpgraded: (callback: (event: {
|
|
2665
|
+
beacon: `0x${string}`;
|
|
2666
|
+
}) => void, filter?: {
|
|
2667
|
+
beacon?: `0x${string}` | `0x${string}`[] | null;
|
|
2668
|
+
}) => () => void;
|
|
2669
|
+
/**
|
|
2670
|
+
* Watch CampaignOperatorToggled events
|
|
2671
|
+
* @param callback Function to call when event is emitted
|
|
2672
|
+
* @param filter Optional filter for indexed parameters
|
|
2673
|
+
* @returns Unwatch function to stop listening
|
|
2674
|
+
*/
|
|
2675
|
+
CampaignOperatorToggled: (callback: (event: {
|
|
2676
|
+
user: `0x${string}`;
|
|
2677
|
+
operator: `0x${string}`;
|
|
2678
|
+
isWhitelisted: boolean;
|
|
2679
|
+
}) => void, filter?: {
|
|
2680
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2681
|
+
operator?: `0x${string}` | `0x${string}`[] | null;
|
|
2682
|
+
}) => () => void;
|
|
2683
|
+
/**
|
|
2684
|
+
* Watch CampaignOverride events
|
|
2685
|
+
* @param callback Function to call when event is emitted
|
|
2686
|
+
* @param filter Optional filter for indexed parameters
|
|
2687
|
+
* @returns Unwatch function to stop listening
|
|
2688
|
+
*/
|
|
2689
|
+
CampaignOverride: (callback: (event: {
|
|
2690
|
+
_campaignId: `0x${string}`;
|
|
2691
|
+
campaign: CampaignParameters;
|
|
2692
|
+
}) => void) => () => void;
|
|
2693
|
+
/**
|
|
2694
|
+
* Watch CampaignReallocation events
|
|
2695
|
+
* @param callback Function to call when event is emitted
|
|
2696
|
+
* @param filter Optional filter for indexed parameters
|
|
2697
|
+
* @returns Unwatch function to stop listening
|
|
2698
|
+
*/
|
|
2699
|
+
CampaignReallocation: (callback: (event: {
|
|
2700
|
+
_campaignId: `0x${string}`;
|
|
2701
|
+
from: `0x${string}`[];
|
|
2702
|
+
to: `0x${string}`;
|
|
2703
|
+
}) => void, filter?: {
|
|
2704
|
+
to?: `0x${string}` | `0x${string}`[] | null;
|
|
2705
|
+
}) => () => void;
|
|
2706
|
+
/**
|
|
2707
|
+
* Watch CampaignSpecificFeesSet events
|
|
2708
|
+
* @param callback Function to call when event is emitted
|
|
2709
|
+
* @param filter Optional filter for indexed parameters
|
|
2710
|
+
* @returns Unwatch function to stop listening
|
|
2711
|
+
*/
|
|
2712
|
+
CampaignSpecificFeesSet: (callback: (event: {
|
|
2713
|
+
campaignType: bigint;
|
|
2714
|
+
_fees: bigint;
|
|
2715
|
+
}) => void) => () => void;
|
|
2716
|
+
/**
|
|
2717
|
+
* Watch ConditionsAccepted events
|
|
2718
|
+
* @param callback Function to call when event is emitted
|
|
2719
|
+
* @param filter Optional filter for indexed parameters
|
|
2720
|
+
* @returns Unwatch function to stop listening
|
|
2721
|
+
*/
|
|
2722
|
+
ConditionsAccepted: (callback: (event: {
|
|
2723
|
+
user: `0x${string}`;
|
|
2724
|
+
conditionsHash: `0x${string}`;
|
|
2725
|
+
}) => void, filter?: {
|
|
2726
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2727
|
+
}) => () => void;
|
|
2728
|
+
/**
|
|
2729
|
+
* Watch CreatorAllowanceUpdated events
|
|
2730
|
+
* @param callback Function to call when event is emitted
|
|
2731
|
+
* @param filter Optional filter for indexed parameters
|
|
2732
|
+
* @returns Unwatch function to stop listening
|
|
2733
|
+
*/
|
|
2734
|
+
CreatorAllowanceUpdated: (callback: (event: {
|
|
2735
|
+
user: `0x${string}`;
|
|
2736
|
+
operator: `0x${string}`;
|
|
2737
|
+
token: `0x${string}`;
|
|
2738
|
+
amount: bigint;
|
|
2739
|
+
}) => void, filter?: {
|
|
2740
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2741
|
+
operator?: `0x${string}` | `0x${string}`[] | null;
|
|
2742
|
+
token?: `0x${string}` | `0x${string}`[] | null;
|
|
2743
|
+
}) => () => void;
|
|
2744
|
+
/**
|
|
2745
|
+
* Watch CreatorBalanceUpdated events
|
|
2746
|
+
* @param callback Function to call when event is emitted
|
|
2747
|
+
* @param filter Optional filter for indexed parameters
|
|
2748
|
+
* @returns Unwatch function to stop listening
|
|
2749
|
+
*/
|
|
2750
|
+
CreatorBalanceUpdated: (callback: (event: {
|
|
2751
|
+
user: `0x${string}`;
|
|
2752
|
+
token: `0x${string}`;
|
|
2753
|
+
amount: bigint;
|
|
2754
|
+
}) => void, filter?: {
|
|
2755
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2756
|
+
token?: `0x${string}` | `0x${string}`[] | null;
|
|
2757
|
+
}) => () => void;
|
|
2758
|
+
/**
|
|
2759
|
+
* Watch DistributorUpdated events
|
|
2760
|
+
* @param callback Function to call when event is emitted
|
|
2761
|
+
* @param filter Optional filter for indexed parameters
|
|
2762
|
+
* @returns Unwatch function to stop listening
|
|
2763
|
+
*/
|
|
2764
|
+
DistributorUpdated: (callback: (event: {
|
|
2765
|
+
_distributor: `0x${string}`;
|
|
2766
|
+
}) => void, filter?: {
|
|
2767
|
+
_distributor?: `0x${string}` | `0x${string}`[] | null;
|
|
2768
|
+
}) => () => void;
|
|
2769
|
+
/**
|
|
2770
|
+
* Watch FeeRebateUpdated events
|
|
2771
|
+
* @param callback Function to call when event is emitted
|
|
2772
|
+
* @param filter Optional filter for indexed parameters
|
|
2773
|
+
* @returns Unwatch function to stop listening
|
|
2774
|
+
*/
|
|
2775
|
+
FeeRebateUpdated: (callback: (event: {
|
|
2776
|
+
user: `0x${string}`;
|
|
2777
|
+
userFeeRebate: bigint;
|
|
2778
|
+
}) => void, filter?: {
|
|
2779
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2780
|
+
}) => () => void;
|
|
2781
|
+
/**
|
|
2782
|
+
* Watch FeeRecipientUpdated events
|
|
2783
|
+
* @param callback Function to call when event is emitted
|
|
2784
|
+
* @param filter Optional filter for indexed parameters
|
|
2785
|
+
* @returns Unwatch function to stop listening
|
|
2786
|
+
*/
|
|
2787
|
+
FeeRecipientUpdated: (callback: (event: {
|
|
2788
|
+
_feeRecipient: `0x${string}`;
|
|
2789
|
+
}) => void, filter?: {
|
|
2790
|
+
_feeRecipient?: `0x${string}` | `0x${string}`[] | null;
|
|
2791
|
+
}) => () => void;
|
|
2792
|
+
/**
|
|
2793
|
+
* Watch FeesSet events
|
|
2794
|
+
* @param callback Function to call when event is emitted
|
|
2795
|
+
* @param filter Optional filter for indexed parameters
|
|
2796
|
+
* @returns Unwatch function to stop listening
|
|
2797
|
+
*/
|
|
2798
|
+
FeesSet: (callback: (event: {
|
|
2799
|
+
_fees: bigint;
|
|
2800
|
+
}) => void) => () => void;
|
|
2801
|
+
/**
|
|
2802
|
+
* Watch Initialized events
|
|
2803
|
+
* @param callback Function to call when event is emitted
|
|
2804
|
+
* @param filter Optional filter for indexed parameters
|
|
2805
|
+
* @returns Unwatch function to stop listening
|
|
2806
|
+
*/
|
|
2807
|
+
Initialized: (callback: (event: {
|
|
2808
|
+
version: bigint;
|
|
2809
|
+
}) => void) => () => void;
|
|
2810
|
+
/**
|
|
2811
|
+
* Watch MessageUpdated events
|
|
2812
|
+
* @param callback Function to call when event is emitted
|
|
2813
|
+
* @param filter Optional filter for indexed parameters
|
|
2814
|
+
* @returns Unwatch function to stop listening
|
|
2815
|
+
*/
|
|
2816
|
+
MessageUpdated: (callback: (event: {
|
|
2817
|
+
_messageHash: `0x${string}`;
|
|
2818
|
+
}) => void) => () => void;
|
|
2819
|
+
/**
|
|
2820
|
+
* Watch NewCampaign events
|
|
2821
|
+
* @param callback Function to call when event is emitted
|
|
2822
|
+
* @param filter Optional filter for indexed parameters
|
|
2823
|
+
* @returns Unwatch function to stop listening
|
|
2824
|
+
*/
|
|
2825
|
+
NewCampaign: (callback: (event: {
|
|
2826
|
+
campaign: CampaignParameters;
|
|
2827
|
+
}) => void) => () => void;
|
|
2828
|
+
/**
|
|
2829
|
+
* Watch RewardTokenMinimumAmountUpdated events
|
|
2830
|
+
* @param callback Function to call when event is emitted
|
|
2831
|
+
* @param filter Optional filter for indexed parameters
|
|
2832
|
+
* @returns Unwatch function to stop listening
|
|
2833
|
+
*/
|
|
2834
|
+
RewardTokenMinimumAmountUpdated: (callback: (event: {
|
|
2835
|
+
token: `0x${string}`;
|
|
2836
|
+
amount: bigint;
|
|
2837
|
+
}) => void, filter?: {
|
|
2838
|
+
token?: `0x${string}` | `0x${string}`[] | null;
|
|
2839
|
+
}) => () => void;
|
|
2840
|
+
/**
|
|
2841
|
+
* Watch Upgraded events
|
|
2842
|
+
* @param callback Function to call when event is emitted
|
|
2843
|
+
* @param filter Optional filter for indexed parameters
|
|
2844
|
+
* @returns Unwatch function to stop listening
|
|
2845
|
+
*/
|
|
2846
|
+
Upgraded: (callback: (event: {
|
|
2847
|
+
implementation: `0x${string}`;
|
|
2848
|
+
}) => void, filter?: {
|
|
2849
|
+
implementation?: `0x${string}` | `0x${string}`[] | null;
|
|
2850
|
+
}) => () => void;
|
|
2851
|
+
/**
|
|
2852
|
+
* Watch UserSigningWhitelistToggled events
|
|
2853
|
+
* @param callback Function to call when event is emitted
|
|
2854
|
+
* @param filter Optional filter for indexed parameters
|
|
2855
|
+
* @returns Unwatch function to stop listening
|
|
2856
|
+
*/
|
|
2857
|
+
UserSigningWhitelistToggled: (callback: (event: {
|
|
2858
|
+
user: `0x${string}`;
|
|
2859
|
+
toggleStatus: bigint;
|
|
2860
|
+
}) => void, filter?: {
|
|
2861
|
+
user?: `0x${string}` | `0x${string}`[] | null;
|
|
2862
|
+
}) => () => void;
|
|
2863
|
+
};
|
|
2864
|
+
}
|