@super-protocol/sdk-js 3.12.0-beta.0 → 3.12.0-beta.10
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/dist/cjs/contracts/Campaign.d.ts +574 -68
- package/dist/cjs/contracts/Campaign.js +772 -116
- package/dist/cjs/staticModels/Campaign.d.ts +19 -9
- package/dist/cjs/staticModels/Campaign.js +56 -18
- package/dist/cjs/types/Campaign.d.ts +35 -13
- package/dist/cjs/types/Campaign.js +4 -3
- package/dist/mjs/contracts/Campaign.d.ts +574 -68
- package/dist/mjs/contracts/Campaign.js +771 -115
- package/dist/mjs/staticModels/Campaign.d.ts +19 -9
- package/dist/mjs/staticModels/Campaign.js +56 -18
- package/dist/mjs/types/Campaign.d.ts +35 -13
- package/dist/mjs/types/Campaign.js +4 -3
- package/package.json +1 -1
|
@@ -1,6 +1,11 @@
|
|
|
1
|
+
export declare const CompetitionToggled: "CompetitionToggled";
|
|
1
2
|
export declare const ContentAdded: "ContentAdded";
|
|
2
3
|
export declare const ContentUpdated: "ContentUpdated";
|
|
3
|
-
export
|
|
4
|
+
export declare const RoleAdminChanged: "RoleAdminChanged";
|
|
5
|
+
export declare const RoleGranted: "RoleGranted";
|
|
6
|
+
export declare const RoleRevoked: "RoleRevoked";
|
|
7
|
+
export declare const ScoreUpdated: "ScoreUpdated";
|
|
8
|
+
export type AbiEvent = typeof CompetitionToggled | typeof ContentAdded | typeof ContentUpdated | typeof RoleAdminChanged | typeof RoleGranted | typeof RoleRevoked | typeof ScoreUpdated;
|
|
4
9
|
export declare const abi: readonly [{
|
|
5
10
|
readonly inputs: readonly [{
|
|
6
11
|
readonly internalType: "uint32";
|
|
@@ -10,13 +15,35 @@ export declare const abi: readonly [{
|
|
|
10
15
|
readonly internalType: "uint32";
|
|
11
16
|
readonly name: "_notValidAfter";
|
|
12
17
|
readonly type: "uint32";
|
|
18
|
+
}, {
|
|
19
|
+
readonly internalType: "uint32";
|
|
20
|
+
readonly name: "_claimDateAfter";
|
|
21
|
+
readonly type: "uint32";
|
|
13
22
|
}, {
|
|
14
23
|
readonly internalType: "address";
|
|
15
24
|
readonly name: "_rewarder";
|
|
16
25
|
readonly type: "address";
|
|
26
|
+
}, {
|
|
27
|
+
readonly internalType: "address";
|
|
28
|
+
readonly name: "_usdt";
|
|
29
|
+
readonly type: "address";
|
|
30
|
+
}, {
|
|
31
|
+
readonly internalType: "uint8";
|
|
32
|
+
readonly name: "_maxDayAttempts";
|
|
33
|
+
readonly type: "uint8";
|
|
17
34
|
}];
|
|
18
35
|
readonly stateMutability: "nonpayable";
|
|
19
36
|
readonly type: "constructor";
|
|
37
|
+
}, {
|
|
38
|
+
readonly anonymous: false;
|
|
39
|
+
readonly inputs: readonly [{
|
|
40
|
+
readonly indexed: false;
|
|
41
|
+
readonly internalType: "bool";
|
|
42
|
+
readonly name: "active";
|
|
43
|
+
readonly type: "bool";
|
|
44
|
+
}];
|
|
45
|
+
readonly name: "CompetitionToggled";
|
|
46
|
+
readonly type: "event";
|
|
20
47
|
}, {
|
|
21
48
|
readonly anonymous: false;
|
|
22
49
|
readonly inputs: readonly [{
|
|
@@ -57,6 +84,96 @@ export declare const abi: readonly [{
|
|
|
57
84
|
}];
|
|
58
85
|
readonly name: "ContentUpdated";
|
|
59
86
|
readonly type: "event";
|
|
87
|
+
}, {
|
|
88
|
+
readonly anonymous: false;
|
|
89
|
+
readonly inputs: readonly [{
|
|
90
|
+
readonly indexed: true;
|
|
91
|
+
readonly internalType: "bytes32";
|
|
92
|
+
readonly name: "role";
|
|
93
|
+
readonly type: "bytes32";
|
|
94
|
+
}, {
|
|
95
|
+
readonly indexed: true;
|
|
96
|
+
readonly internalType: "bytes32";
|
|
97
|
+
readonly name: "previousAdminRole";
|
|
98
|
+
readonly type: "bytes32";
|
|
99
|
+
}, {
|
|
100
|
+
readonly indexed: true;
|
|
101
|
+
readonly internalType: "bytes32";
|
|
102
|
+
readonly name: "newAdminRole";
|
|
103
|
+
readonly type: "bytes32";
|
|
104
|
+
}];
|
|
105
|
+
readonly name: "RoleAdminChanged";
|
|
106
|
+
readonly type: "event";
|
|
107
|
+
}, {
|
|
108
|
+
readonly anonymous: false;
|
|
109
|
+
readonly inputs: readonly [{
|
|
110
|
+
readonly indexed: true;
|
|
111
|
+
readonly internalType: "bytes32";
|
|
112
|
+
readonly name: "role";
|
|
113
|
+
readonly type: "bytes32";
|
|
114
|
+
}, {
|
|
115
|
+
readonly indexed: true;
|
|
116
|
+
readonly internalType: "address";
|
|
117
|
+
readonly name: "account";
|
|
118
|
+
readonly type: "address";
|
|
119
|
+
}, {
|
|
120
|
+
readonly indexed: true;
|
|
121
|
+
readonly internalType: "address";
|
|
122
|
+
readonly name: "sender";
|
|
123
|
+
readonly type: "address";
|
|
124
|
+
}];
|
|
125
|
+
readonly name: "RoleGranted";
|
|
126
|
+
readonly type: "event";
|
|
127
|
+
}, {
|
|
128
|
+
readonly anonymous: false;
|
|
129
|
+
readonly inputs: readonly [{
|
|
130
|
+
readonly indexed: true;
|
|
131
|
+
readonly internalType: "bytes32";
|
|
132
|
+
readonly name: "role";
|
|
133
|
+
readonly type: "bytes32";
|
|
134
|
+
}, {
|
|
135
|
+
readonly indexed: true;
|
|
136
|
+
readonly internalType: "address";
|
|
137
|
+
readonly name: "account";
|
|
138
|
+
readonly type: "address";
|
|
139
|
+
}, {
|
|
140
|
+
readonly indexed: true;
|
|
141
|
+
readonly internalType: "address";
|
|
142
|
+
readonly name: "sender";
|
|
143
|
+
readonly type: "address";
|
|
144
|
+
}];
|
|
145
|
+
readonly name: "RoleRevoked";
|
|
146
|
+
readonly type: "event";
|
|
147
|
+
}, {
|
|
148
|
+
readonly anonymous: false;
|
|
149
|
+
readonly inputs: readonly [{
|
|
150
|
+
readonly indexed: true;
|
|
151
|
+
readonly internalType: "address";
|
|
152
|
+
readonly name: "participant";
|
|
153
|
+
readonly type: "address";
|
|
154
|
+
}, {
|
|
155
|
+
readonly indexed: false;
|
|
156
|
+
readonly internalType: "int256";
|
|
157
|
+
readonly name: "oldScore";
|
|
158
|
+
readonly type: "int256";
|
|
159
|
+
}, {
|
|
160
|
+
readonly indexed: false;
|
|
161
|
+
readonly internalType: "int256";
|
|
162
|
+
readonly name: "newScore";
|
|
163
|
+
readonly type: "int256";
|
|
164
|
+
}];
|
|
165
|
+
readonly name: "ScoreUpdated";
|
|
166
|
+
readonly type: "event";
|
|
167
|
+
}, {
|
|
168
|
+
readonly inputs: readonly [];
|
|
169
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
170
|
+
readonly outputs: readonly [{
|
|
171
|
+
readonly internalType: "bytes32";
|
|
172
|
+
readonly name: "";
|
|
173
|
+
readonly type: "bytes32";
|
|
174
|
+
}];
|
|
175
|
+
readonly stateMutability: "view";
|
|
176
|
+
readonly type: "function";
|
|
60
177
|
}, {
|
|
61
178
|
readonly inputs: readonly [{
|
|
62
179
|
readonly internalType: "string";
|
|
@@ -71,6 +188,42 @@ export declare const abi: readonly [{
|
|
|
71
188
|
readonly outputs: readonly [];
|
|
72
189
|
readonly stateMutability: "nonpayable";
|
|
73
190
|
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly inputs: readonly [];
|
|
193
|
+
readonly name: "claimDateAfter";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly internalType: "uint32";
|
|
196
|
+
readonly name: "";
|
|
197
|
+
readonly type: "uint32";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [];
|
|
203
|
+
readonly name: "claimReward";
|
|
204
|
+
readonly outputs: readonly [];
|
|
205
|
+
readonly stateMutability: "nonpayable";
|
|
206
|
+
readonly type: "function";
|
|
207
|
+
}, {
|
|
208
|
+
readonly inputs: readonly [];
|
|
209
|
+
readonly name: "competitionActive";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly internalType: "bool";
|
|
212
|
+
readonly name: "";
|
|
213
|
+
readonly type: "bool";
|
|
214
|
+
}];
|
|
215
|
+
readonly stateMutability: "view";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [];
|
|
219
|
+
readonly name: "getContentCount";
|
|
220
|
+
readonly outputs: readonly [{
|
|
221
|
+
readonly internalType: "uint256";
|
|
222
|
+
readonly name: "";
|
|
223
|
+
readonly type: "uint256";
|
|
224
|
+
}];
|
|
225
|
+
readonly stateMutability: "view";
|
|
226
|
+
readonly type: "function";
|
|
74
227
|
}, {
|
|
75
228
|
readonly inputs: readonly [{
|
|
76
229
|
readonly internalType: "uint256";
|
|
@@ -88,25 +241,84 @@ export declare const abi: readonly [{
|
|
|
88
241
|
readonly name: "getContentRange";
|
|
89
242
|
readonly outputs: readonly [{
|
|
90
243
|
readonly components: readonly [{
|
|
91
|
-
readonly
|
|
92
|
-
|
|
93
|
-
|
|
244
|
+
readonly components: readonly [{
|
|
245
|
+
readonly internalType: "enum Campaign.Status";
|
|
246
|
+
readonly name: "status";
|
|
247
|
+
readonly type: "uint8";
|
|
248
|
+
}, {
|
|
249
|
+
readonly internalType: "address";
|
|
250
|
+
readonly name: "participant";
|
|
251
|
+
readonly type: "address";
|
|
252
|
+
}, {
|
|
253
|
+
readonly internalType: "string";
|
|
254
|
+
readonly name: "link";
|
|
255
|
+
readonly type: "string";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "bytes32";
|
|
258
|
+
readonly name: "contentHash";
|
|
259
|
+
readonly type: "bytes32";
|
|
260
|
+
}];
|
|
261
|
+
readonly internalType: "struct Campaign.Content";
|
|
262
|
+
readonly name: "content";
|
|
263
|
+
readonly type: "tuple";
|
|
94
264
|
}, {
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
readonly name: "index";
|
|
267
|
+
readonly type: "uint256";
|
|
268
|
+
}];
|
|
269
|
+
readonly internalType: "struct Campaign.ContentWithIndex[]";
|
|
270
|
+
readonly name: "result";
|
|
271
|
+
readonly type: "tuple[]";
|
|
272
|
+
}];
|
|
273
|
+
readonly stateMutability: "view";
|
|
274
|
+
readonly type: "function";
|
|
275
|
+
}, {
|
|
276
|
+
readonly inputs: readonly [];
|
|
277
|
+
readonly name: "getLinksStat";
|
|
278
|
+
readonly outputs: readonly [{
|
|
279
|
+
readonly components: readonly [{
|
|
280
|
+
readonly internalType: "uint256";
|
|
281
|
+
readonly name: "totalAddedLinks";
|
|
282
|
+
readonly type: "uint256";
|
|
283
|
+
}, {
|
|
284
|
+
readonly internalType: "uint256";
|
|
285
|
+
readonly name: "totalDuplicatedLinks";
|
|
286
|
+
readonly type: "uint256";
|
|
287
|
+
}, {
|
|
288
|
+
readonly internalType: "uint256";
|
|
289
|
+
readonly name: "totalValidatedLinks";
|
|
290
|
+
readonly type: "uint256";
|
|
291
|
+
}, {
|
|
292
|
+
readonly internalType: "uint256";
|
|
293
|
+
readonly name: "totalInvalidLinks";
|
|
294
|
+
readonly type: "uint256";
|
|
295
|
+
}];
|
|
296
|
+
readonly internalType: "struct Campaign.LinksStat";
|
|
297
|
+
readonly name: "output";
|
|
298
|
+
readonly type: "tuple";
|
|
299
|
+
}];
|
|
300
|
+
readonly stateMutability: "view";
|
|
301
|
+
readonly type: "function";
|
|
302
|
+
}, {
|
|
303
|
+
readonly inputs: readonly [{
|
|
304
|
+
readonly internalType: "uint256";
|
|
305
|
+
readonly name: "rank";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}];
|
|
308
|
+
readonly name: "getParticipantByRank";
|
|
309
|
+
readonly outputs: readonly [{
|
|
310
|
+
readonly components: readonly [{
|
|
95
311
|
readonly internalType: "address";
|
|
96
312
|
readonly name: "participant";
|
|
97
313
|
readonly type: "address";
|
|
98
314
|
}, {
|
|
99
|
-
readonly internalType: "
|
|
100
|
-
readonly name: "
|
|
101
|
-
readonly type: "
|
|
102
|
-
}, {
|
|
103
|
-
readonly internalType: "bytes32";
|
|
104
|
-
readonly name: "contentHash";
|
|
105
|
-
readonly type: "bytes32";
|
|
315
|
+
readonly internalType: "int256";
|
|
316
|
+
readonly name: "score";
|
|
317
|
+
readonly type: "int256";
|
|
106
318
|
}];
|
|
107
|
-
readonly internalType: "struct
|
|
108
|
-
readonly name: "
|
|
109
|
-
readonly type: "tuple
|
|
319
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore";
|
|
320
|
+
readonly name: "";
|
|
321
|
+
readonly type: "tuple";
|
|
110
322
|
}];
|
|
111
323
|
readonly stateMutability: "view";
|
|
112
324
|
readonly type: "function";
|
|
@@ -116,74 +328,339 @@ export declare const abi: readonly [{
|
|
|
116
328
|
readonly name: "participant";
|
|
117
329
|
readonly type: "address";
|
|
118
330
|
}];
|
|
119
|
-
readonly name: "
|
|
331
|
+
readonly name: "getParticipantInfo";
|
|
120
332
|
readonly outputs: readonly [{
|
|
121
333
|
readonly components: readonly [{
|
|
122
334
|
readonly components: readonly [{
|
|
335
|
+
readonly internalType: "uint32";
|
|
336
|
+
readonly name: "nextAttemptTs";
|
|
337
|
+
readonly type: "uint32";
|
|
338
|
+
}, {
|
|
339
|
+
readonly internalType: "uint8";
|
|
340
|
+
readonly name: "totalDayAttempts";
|
|
341
|
+
readonly type: "uint8";
|
|
342
|
+
}, {
|
|
343
|
+
readonly internalType: "bool";
|
|
344
|
+
readonly name: "isClaimed";
|
|
345
|
+
readonly type: "bool";
|
|
346
|
+
}, {
|
|
347
|
+
readonly internalType: "address";
|
|
348
|
+
readonly name: "referrer";
|
|
349
|
+
readonly type: "address";
|
|
350
|
+
}, {
|
|
351
|
+
readonly internalType: "uint256";
|
|
352
|
+
readonly name: "referralsCount";
|
|
353
|
+
readonly type: "uint256";
|
|
354
|
+
}, {
|
|
355
|
+
readonly internalType: "uint256";
|
|
356
|
+
readonly name: "totalAddedLinks";
|
|
357
|
+
readonly type: "uint256";
|
|
358
|
+
}, {
|
|
359
|
+
readonly internalType: "uint256";
|
|
360
|
+
readonly name: "totalDuplicatedLinks";
|
|
361
|
+
readonly type: "uint256";
|
|
362
|
+
}, {
|
|
363
|
+
readonly internalType: "uint256";
|
|
364
|
+
readonly name: "totalValidatedLinks";
|
|
365
|
+
readonly type: "uint256";
|
|
366
|
+
}, {
|
|
367
|
+
readonly internalType: "uint256";
|
|
368
|
+
readonly name: "totalInvalidLinks";
|
|
369
|
+
readonly type: "uint256";
|
|
370
|
+
}];
|
|
371
|
+
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
372
|
+
readonly name: "storedInfo";
|
|
373
|
+
readonly type: "tuple";
|
|
374
|
+
}, {
|
|
375
|
+
readonly components: readonly [{
|
|
376
|
+
readonly internalType: "address";
|
|
377
|
+
readonly name: "participant";
|
|
378
|
+
readonly type: "address";
|
|
379
|
+
}, {
|
|
380
|
+
readonly internalType: "uint256";
|
|
381
|
+
readonly name: "rank";
|
|
382
|
+
readonly type: "uint256";
|
|
383
|
+
}, {
|
|
123
384
|
readonly internalType: "int256";
|
|
124
|
-
readonly name: "
|
|
385
|
+
readonly name: "score";
|
|
125
386
|
readonly type: "int256";
|
|
126
387
|
}, {
|
|
127
388
|
readonly internalType: "uint256";
|
|
128
|
-
readonly name: "
|
|
389
|
+
readonly name: "reward";
|
|
390
|
+
readonly type: "uint256";
|
|
391
|
+
}, {
|
|
392
|
+
readonly internalType: "uint256";
|
|
393
|
+
readonly name: "points";
|
|
129
394
|
readonly type: "uint256";
|
|
130
395
|
}];
|
|
131
|
-
readonly internalType: "struct Campaign.
|
|
132
|
-
readonly name: "
|
|
396
|
+
readonly internalType: "struct Campaign.ParticipantInfoViewed";
|
|
397
|
+
readonly name: "viewedInfo";
|
|
133
398
|
readonly type: "tuple";
|
|
134
|
-
}, {
|
|
135
|
-
readonly internalType: "address";
|
|
136
|
-
readonly name: "referrer";
|
|
137
|
-
readonly type: "address";
|
|
138
399
|
}];
|
|
139
|
-
readonly internalType: "struct Campaign.
|
|
140
|
-
readonly name: "";
|
|
400
|
+
readonly internalType: "struct Campaign.TotalParticipantInfo";
|
|
401
|
+
readonly name: "data";
|
|
141
402
|
readonly type: "tuple";
|
|
142
403
|
}];
|
|
143
404
|
readonly stateMutability: "view";
|
|
144
405
|
readonly type: "function";
|
|
145
406
|
}, {
|
|
146
|
-
readonly inputs: readonly [
|
|
147
|
-
|
|
407
|
+
readonly inputs: readonly [{
|
|
408
|
+
readonly internalType: "address";
|
|
409
|
+
readonly name: "participant";
|
|
410
|
+
readonly type: "address";
|
|
411
|
+
}];
|
|
412
|
+
readonly name: "getParticipantRank";
|
|
413
|
+
readonly outputs: readonly [{
|
|
414
|
+
readonly internalType: "uint256";
|
|
415
|
+
readonly name: "rank";
|
|
416
|
+
readonly type: "uint256";
|
|
417
|
+
}];
|
|
418
|
+
readonly stateMutability: "view";
|
|
419
|
+
readonly type: "function";
|
|
420
|
+
}, {
|
|
421
|
+
readonly inputs: readonly [{
|
|
422
|
+
readonly internalType: "address";
|
|
423
|
+
readonly name: "participant";
|
|
424
|
+
readonly type: "address";
|
|
425
|
+
}];
|
|
426
|
+
readonly name: "getParticipantRewardAndPoints";
|
|
427
|
+
readonly outputs: readonly [{
|
|
428
|
+
readonly internalType: "uint256";
|
|
429
|
+
readonly name: "reward";
|
|
430
|
+
readonly type: "uint256";
|
|
431
|
+
}, {
|
|
432
|
+
readonly internalType: "uint256";
|
|
433
|
+
readonly name: "points";
|
|
434
|
+
readonly type: "uint256";
|
|
435
|
+
}];
|
|
436
|
+
readonly stateMutability: "view";
|
|
437
|
+
readonly type: "function";
|
|
438
|
+
}, {
|
|
439
|
+
readonly inputs: readonly [{
|
|
440
|
+
readonly internalType: "address";
|
|
441
|
+
readonly name: "participant";
|
|
442
|
+
readonly type: "address";
|
|
443
|
+
}];
|
|
444
|
+
readonly name: "getParticipantScore";
|
|
445
|
+
readonly outputs: readonly [{
|
|
446
|
+
readonly internalType: "int256";
|
|
447
|
+
readonly name: "score";
|
|
448
|
+
readonly type: "int256";
|
|
449
|
+
}];
|
|
450
|
+
readonly stateMutability: "view";
|
|
451
|
+
readonly type: "function";
|
|
452
|
+
}, {
|
|
453
|
+
readonly inputs: readonly [{
|
|
454
|
+
readonly internalType: "uint256";
|
|
455
|
+
readonly name: "centerRank";
|
|
456
|
+
readonly type: "uint256";
|
|
457
|
+
}, {
|
|
458
|
+
readonly internalType: "uint256";
|
|
459
|
+
readonly name: "range";
|
|
460
|
+
readonly type: "uint256";
|
|
461
|
+
}];
|
|
462
|
+
readonly name: "getParticipantsAroundRank";
|
|
148
463
|
readonly outputs: readonly [{
|
|
149
464
|
readonly components: readonly [{
|
|
150
|
-
readonly internalType: "
|
|
151
|
-
readonly name: "
|
|
152
|
-
readonly type: "
|
|
465
|
+
readonly internalType: "address";
|
|
466
|
+
readonly name: "participant";
|
|
467
|
+
readonly type: "address";
|
|
153
468
|
}, {
|
|
154
469
|
readonly internalType: "int256";
|
|
155
|
-
readonly name: "
|
|
470
|
+
readonly name: "score";
|
|
156
471
|
readonly type: "int256";
|
|
472
|
+
}];
|
|
473
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
474
|
+
readonly name: "participants";
|
|
475
|
+
readonly type: "tuple[]";
|
|
476
|
+
}];
|
|
477
|
+
readonly stateMutability: "view";
|
|
478
|
+
readonly type: "function";
|
|
479
|
+
}, {
|
|
480
|
+
readonly inputs: readonly [{
|
|
481
|
+
readonly internalType: "bytes32";
|
|
482
|
+
readonly name: "role";
|
|
483
|
+
readonly type: "bytes32";
|
|
484
|
+
}];
|
|
485
|
+
readonly name: "getRoleAdmin";
|
|
486
|
+
readonly outputs: readonly [{
|
|
487
|
+
readonly internalType: "bytes32";
|
|
488
|
+
readonly name: "";
|
|
489
|
+
readonly type: "bytes32";
|
|
490
|
+
}];
|
|
491
|
+
readonly stateMutability: "view";
|
|
492
|
+
readonly type: "function";
|
|
493
|
+
}, {
|
|
494
|
+
readonly inputs: readonly [{
|
|
495
|
+
readonly internalType: "uint256";
|
|
496
|
+
readonly name: "count";
|
|
497
|
+
readonly type: "uint256";
|
|
498
|
+
}];
|
|
499
|
+
readonly name: "getTopParticipants";
|
|
500
|
+
readonly outputs: readonly [{
|
|
501
|
+
readonly components: readonly [{
|
|
502
|
+
readonly internalType: "address";
|
|
503
|
+
readonly name: "participant";
|
|
504
|
+
readonly type: "address";
|
|
157
505
|
}, {
|
|
158
506
|
readonly internalType: "int256";
|
|
159
|
-
readonly name: "
|
|
507
|
+
readonly name: "score";
|
|
160
508
|
readonly type: "int256";
|
|
509
|
+
}];
|
|
510
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
511
|
+
readonly name: "participants";
|
|
512
|
+
readonly type: "tuple[]";
|
|
513
|
+
}];
|
|
514
|
+
readonly stateMutability: "view";
|
|
515
|
+
readonly type: "function";
|
|
516
|
+
}, {
|
|
517
|
+
readonly inputs: readonly [{
|
|
518
|
+
readonly internalType: "uint256";
|
|
519
|
+
readonly name: "count";
|
|
520
|
+
readonly type: "uint256";
|
|
521
|
+
}];
|
|
522
|
+
readonly name: "getTopParticipantsInfo";
|
|
523
|
+
readonly outputs: readonly [{
|
|
524
|
+
readonly components: readonly [{
|
|
525
|
+
readonly components: readonly [{
|
|
526
|
+
readonly internalType: "uint32";
|
|
527
|
+
readonly name: "nextAttemptTs";
|
|
528
|
+
readonly type: "uint32";
|
|
529
|
+
}, {
|
|
530
|
+
readonly internalType: "uint8";
|
|
531
|
+
readonly name: "totalDayAttempts";
|
|
532
|
+
readonly type: "uint8";
|
|
533
|
+
}, {
|
|
534
|
+
readonly internalType: "bool";
|
|
535
|
+
readonly name: "isClaimed";
|
|
536
|
+
readonly type: "bool";
|
|
537
|
+
}, {
|
|
538
|
+
readonly internalType: "address";
|
|
539
|
+
readonly name: "referrer";
|
|
540
|
+
readonly type: "address";
|
|
541
|
+
}, {
|
|
542
|
+
readonly internalType: "uint256";
|
|
543
|
+
readonly name: "referralsCount";
|
|
544
|
+
readonly type: "uint256";
|
|
545
|
+
}, {
|
|
546
|
+
readonly internalType: "uint256";
|
|
547
|
+
readonly name: "totalAddedLinks";
|
|
548
|
+
readonly type: "uint256";
|
|
549
|
+
}, {
|
|
550
|
+
readonly internalType: "uint256";
|
|
551
|
+
readonly name: "totalDuplicatedLinks";
|
|
552
|
+
readonly type: "uint256";
|
|
553
|
+
}, {
|
|
554
|
+
readonly internalType: "uint256";
|
|
555
|
+
readonly name: "totalValidatedLinks";
|
|
556
|
+
readonly type: "uint256";
|
|
557
|
+
}, {
|
|
558
|
+
readonly internalType: "uint256";
|
|
559
|
+
readonly name: "totalInvalidLinks";
|
|
560
|
+
readonly type: "uint256";
|
|
561
|
+
}];
|
|
562
|
+
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
563
|
+
readonly name: "storedInfo";
|
|
564
|
+
readonly type: "tuple";
|
|
161
565
|
}, {
|
|
162
|
-
readonly
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
566
|
+
readonly components: readonly [{
|
|
567
|
+
readonly internalType: "address";
|
|
568
|
+
readonly name: "participant";
|
|
569
|
+
readonly type: "address";
|
|
570
|
+
}, {
|
|
571
|
+
readonly internalType: "uint256";
|
|
572
|
+
readonly name: "rank";
|
|
573
|
+
readonly type: "uint256";
|
|
574
|
+
}, {
|
|
575
|
+
readonly internalType: "int256";
|
|
576
|
+
readonly name: "score";
|
|
577
|
+
readonly type: "int256";
|
|
578
|
+
}, {
|
|
579
|
+
readonly internalType: "uint256";
|
|
580
|
+
readonly name: "reward";
|
|
581
|
+
readonly type: "uint256";
|
|
582
|
+
}, {
|
|
583
|
+
readonly internalType: "uint256";
|
|
584
|
+
readonly name: "points";
|
|
585
|
+
readonly type: "uint256";
|
|
586
|
+
}];
|
|
587
|
+
readonly internalType: "struct Campaign.ParticipantInfoViewed";
|
|
588
|
+
readonly name: "viewedInfo";
|
|
589
|
+
readonly type: "tuple";
|
|
169
590
|
}];
|
|
170
|
-
readonly internalType: "struct Campaign.
|
|
591
|
+
readonly internalType: "struct Campaign.TotalParticipantInfo[]";
|
|
592
|
+
readonly name: "datas";
|
|
593
|
+
readonly type: "tuple[]";
|
|
594
|
+
}];
|
|
595
|
+
readonly stateMutability: "view";
|
|
596
|
+
readonly type: "function";
|
|
597
|
+
}, {
|
|
598
|
+
readonly inputs: readonly [];
|
|
599
|
+
readonly name: "getTotalParticipants";
|
|
600
|
+
readonly outputs: readonly [{
|
|
601
|
+
readonly internalType: "uint256";
|
|
602
|
+
readonly name: "count";
|
|
603
|
+
readonly type: "uint256";
|
|
604
|
+
}];
|
|
605
|
+
readonly stateMutability: "view";
|
|
606
|
+
readonly type: "function";
|
|
607
|
+
}, {
|
|
608
|
+
readonly inputs: readonly [{
|
|
609
|
+
readonly internalType: "bytes32";
|
|
610
|
+
readonly name: "role";
|
|
611
|
+
readonly type: "bytes32";
|
|
612
|
+
}, {
|
|
613
|
+
readonly internalType: "address";
|
|
614
|
+
readonly name: "account";
|
|
615
|
+
readonly type: "address";
|
|
616
|
+
}];
|
|
617
|
+
readonly name: "grantRole";
|
|
618
|
+
readonly outputs: readonly [];
|
|
619
|
+
readonly stateMutability: "nonpayable";
|
|
620
|
+
readonly type: "function";
|
|
621
|
+
}, {
|
|
622
|
+
readonly inputs: readonly [{
|
|
623
|
+
readonly internalType: "bytes32";
|
|
624
|
+
readonly name: "role";
|
|
625
|
+
readonly type: "bytes32";
|
|
626
|
+
}, {
|
|
627
|
+
readonly internalType: "address";
|
|
628
|
+
readonly name: "account";
|
|
629
|
+
readonly type: "address";
|
|
630
|
+
}];
|
|
631
|
+
readonly name: "hasRole";
|
|
632
|
+
readonly outputs: readonly [{
|
|
633
|
+
readonly internalType: "bool";
|
|
171
634
|
readonly name: "";
|
|
172
|
-
readonly type: "
|
|
635
|
+
readonly type: "bool";
|
|
173
636
|
}];
|
|
174
637
|
readonly stateMutability: "view";
|
|
175
638
|
readonly type: "function";
|
|
176
639
|
}, {
|
|
177
640
|
readonly inputs: readonly [{
|
|
178
|
-
readonly internalType: "
|
|
179
|
-
readonly name: "
|
|
180
|
-
readonly type: "
|
|
641
|
+
readonly internalType: "string";
|
|
642
|
+
readonly name: "link";
|
|
643
|
+
readonly type: "string";
|
|
181
644
|
}];
|
|
182
|
-
readonly name: "
|
|
645
|
+
readonly name: "isLinkUnique";
|
|
646
|
+
readonly outputs: readonly [{
|
|
647
|
+
readonly internalType: "string";
|
|
648
|
+
readonly name: "clearedLink";
|
|
649
|
+
readonly type: "string";
|
|
650
|
+
}, {
|
|
651
|
+
readonly internalType: "bool";
|
|
652
|
+
readonly name: "isUnique";
|
|
653
|
+
readonly type: "bool";
|
|
654
|
+
}];
|
|
655
|
+
readonly stateMutability: "view";
|
|
656
|
+
readonly type: "function";
|
|
657
|
+
}, {
|
|
658
|
+
readonly inputs: readonly [];
|
|
659
|
+
readonly name: "maxDayAttempts";
|
|
183
660
|
readonly outputs: readonly [{
|
|
184
|
-
readonly internalType: "
|
|
661
|
+
readonly internalType: "uint8";
|
|
185
662
|
readonly name: "";
|
|
186
|
-
readonly type: "
|
|
663
|
+
readonly type: "uint8";
|
|
187
664
|
}];
|
|
188
665
|
readonly stateMutability: "view";
|
|
189
666
|
readonly type: "function";
|
|
@@ -209,30 +686,41 @@ export declare const abi: readonly [{
|
|
|
209
686
|
readonly type: "function";
|
|
210
687
|
}, {
|
|
211
688
|
readonly inputs: readonly [{
|
|
689
|
+
readonly internalType: "bytes32";
|
|
690
|
+
readonly name: "role";
|
|
691
|
+
readonly type: "bytes32";
|
|
692
|
+
}, {
|
|
212
693
|
readonly internalType: "address";
|
|
213
|
-
readonly name: "";
|
|
694
|
+
readonly name: "account";
|
|
214
695
|
readonly type: "address";
|
|
215
696
|
}];
|
|
216
|
-
readonly name: "
|
|
217
|
-
readonly outputs: readonly [
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
readonly type: "uint256";
|
|
226
|
-
}];
|
|
227
|
-
readonly internalType: "struct Campaign.PointsData";
|
|
228
|
-
readonly name: "pointsData";
|
|
229
|
-
readonly type: "tuple";
|
|
697
|
+
readonly name: "renounceRole";
|
|
698
|
+
readonly outputs: readonly [];
|
|
699
|
+
readonly stateMutability: "nonpayable";
|
|
700
|
+
readonly type: "function";
|
|
701
|
+
}, {
|
|
702
|
+
readonly inputs: readonly [{
|
|
703
|
+
readonly internalType: "bytes32";
|
|
704
|
+
readonly name: "role";
|
|
705
|
+
readonly type: "bytes32";
|
|
230
706
|
}, {
|
|
231
707
|
readonly internalType: "address";
|
|
232
|
-
readonly name: "
|
|
708
|
+
readonly name: "account";
|
|
233
709
|
readonly type: "address";
|
|
234
710
|
}];
|
|
235
|
-
readonly
|
|
711
|
+
readonly name: "revokeRole";
|
|
712
|
+
readonly outputs: readonly [];
|
|
713
|
+
readonly stateMutability: "nonpayable";
|
|
714
|
+
readonly type: "function";
|
|
715
|
+
}, {
|
|
716
|
+
readonly inputs: readonly [{
|
|
717
|
+
readonly internalType: "address";
|
|
718
|
+
readonly name: "participant";
|
|
719
|
+
readonly type: "address";
|
|
720
|
+
}];
|
|
721
|
+
readonly name: "revokeUser";
|
|
722
|
+
readonly outputs: readonly [];
|
|
723
|
+
readonly stateMutability: "nonpayable";
|
|
236
724
|
readonly type: "function";
|
|
237
725
|
}, {
|
|
238
726
|
readonly inputs: readonly [];
|
|
@@ -245,10 +733,18 @@ export declare const abi: readonly [{
|
|
|
245
733
|
readonly stateMutability: "view";
|
|
246
734
|
readonly type: "function";
|
|
247
735
|
}, {
|
|
248
|
-
readonly inputs: readonly [
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
736
|
+
readonly inputs: readonly [{
|
|
737
|
+
readonly internalType: "bytes4";
|
|
738
|
+
readonly name: "interfaceId";
|
|
739
|
+
readonly type: "bytes4";
|
|
740
|
+
}];
|
|
741
|
+
readonly name: "supportsInterface";
|
|
742
|
+
readonly outputs: readonly [{
|
|
743
|
+
readonly internalType: "bool";
|
|
744
|
+
readonly name: "";
|
|
745
|
+
readonly type: "bool";
|
|
746
|
+
}];
|
|
747
|
+
readonly stateMutability: "view";
|
|
252
748
|
readonly type: "function";
|
|
253
749
|
}, {
|
|
254
750
|
readonly inputs: readonly [{
|
|
@@ -268,5 +764,15 @@ export declare const abi: readonly [{
|
|
|
268
764
|
readonly outputs: readonly [];
|
|
269
765
|
readonly stateMutability: "nonpayable";
|
|
270
766
|
readonly type: "function";
|
|
767
|
+
}, {
|
|
768
|
+
readonly inputs: readonly [];
|
|
769
|
+
readonly name: "usdt";
|
|
770
|
+
readonly outputs: readonly [{
|
|
771
|
+
readonly internalType: "address";
|
|
772
|
+
readonly name: "";
|
|
773
|
+
readonly type: "address";
|
|
774
|
+
}];
|
|
775
|
+
readonly stateMutability: "view";
|
|
776
|
+
readonly type: "function";
|
|
271
777
|
}];
|
|
272
778
|
export default abi;
|