@super-protocol/sdk-js 3.12.0-beta.2 → 3.12.0-beta.5

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.
@@ -4,7 +4,8 @@ exports.Status = void 0;
4
4
  var Status;
5
5
  (function (Status) {
6
6
  Status[Status["InQueue"] = 0] = "InQueue";
7
- Status[Status["Validated"] = 1] = "Validated";
8
- Status[Status["NotValidated"] = 2] = "NotValidated";
7
+ Status[Status["Valid"] = 1] = "Valid";
8
+ Status[Status["NotValid"] = 2] = "NotValid";
9
+ Status[Status["Duplicate"] = 3] = "Duplicate";
9
10
  })(Status || (exports.Status = Status = {}));
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FtcGFpZ24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHlwZXMvQ2FtcGFpZ24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsSUFBWSxNQUlYO0FBSkQsV0FBWSxNQUFNO0lBQ2hCLHlDQUFPLENBQUE7SUFDUCw2Q0FBUyxDQUFBO0lBQ1QsbURBQVksQ0FBQTtBQUNkLENBQUMsRUFKVyxNQUFNLHNCQUFOLE1BQU0sUUFJakIifQ==
11
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FtcGFpZ24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHlwZXMvQ2FtcGFpZ24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsSUFBWSxNQUtYO0FBTEQsV0FBWSxNQUFNO0lBQ2hCLHlDQUFPLENBQUE7SUFDUCxxQ0FBSyxDQUFBO0lBQ0wsMkNBQVEsQ0FBQTtJQUNSLDZDQUFTLENBQUE7QUFDWCxDQUFDLEVBTFcsTUFBTSxzQkFBTixNQUFNLFFBS2pCIn0=
@@ -1,6 +1,9 @@
1
+ export declare const CompetitionToggled: "CompetitionToggled";
1
2
  export declare const ContentAdded: "ContentAdded";
2
3
  export declare const ContentUpdated: "ContentUpdated";
3
- export type AbiEvent = typeof ContentAdded | typeof ContentUpdated;
4
+ export declare const OwnershipTransferred: "OwnershipTransferred";
5
+ export declare const ScoreUpdated: "ScoreUpdated";
6
+ export type AbiEvent = typeof CompetitionToggled | typeof ContentAdded | typeof ContentUpdated | typeof OwnershipTransferred | typeof ScoreUpdated;
4
7
  export declare const abi: readonly [{
5
8
  readonly inputs: readonly [{
6
9
  readonly internalType: "uint32";
@@ -14,9 +17,23 @@ export declare const abi: readonly [{
14
17
  readonly internalType: "address";
15
18
  readonly name: "_rewarder";
16
19
  readonly type: "address";
20
+ }, {
21
+ readonly internalType: "uint8";
22
+ readonly name: "_maxDayAttempts";
23
+ readonly type: "uint8";
17
24
  }];
18
25
  readonly stateMutability: "nonpayable";
19
26
  readonly type: "constructor";
27
+ }, {
28
+ readonly anonymous: false;
29
+ readonly inputs: readonly [{
30
+ readonly indexed: false;
31
+ readonly internalType: "bool";
32
+ readonly name: "active";
33
+ readonly type: "bool";
34
+ }];
35
+ readonly name: "CompetitionToggled";
36
+ readonly type: "event";
20
37
  }, {
21
38
  readonly anonymous: false;
22
39
  readonly inputs: readonly [{
@@ -57,6 +74,46 @@ export declare const abi: readonly [{
57
74
  }];
58
75
  readonly name: "ContentUpdated";
59
76
  readonly type: "event";
77
+ }, {
78
+ readonly anonymous: false;
79
+ readonly inputs: readonly [{
80
+ readonly indexed: true;
81
+ readonly internalType: "address";
82
+ readonly name: "previousOwner";
83
+ readonly type: "address";
84
+ }, {
85
+ readonly indexed: true;
86
+ readonly internalType: "address";
87
+ readonly name: "newOwner";
88
+ readonly type: "address";
89
+ }];
90
+ readonly name: "OwnershipTransferred";
91
+ readonly type: "event";
92
+ }, {
93
+ readonly anonymous: false;
94
+ readonly inputs: readonly [{
95
+ readonly indexed: true;
96
+ readonly internalType: "address";
97
+ readonly name: "player";
98
+ readonly type: "address";
99
+ }, {
100
+ readonly indexed: false;
101
+ readonly internalType: "uint256";
102
+ readonly name: "oldScore";
103
+ readonly type: "uint256";
104
+ }, {
105
+ readonly indexed: false;
106
+ readonly internalType: "uint256";
107
+ readonly name: "newScore";
108
+ readonly type: "uint256";
109
+ }, {
110
+ readonly indexed: false;
111
+ readonly internalType: "uint256";
112
+ readonly name: "newRank";
113
+ readonly type: "uint256";
114
+ }];
115
+ readonly name: "ScoreUpdated";
116
+ readonly type: "event";
60
117
  }, {
61
118
  readonly inputs: readonly [{
62
119
  readonly internalType: "string";
@@ -71,6 +128,16 @@ export declare const abi: readonly [{
71
128
  readonly outputs: readonly [];
72
129
  readonly stateMutability: "nonpayable";
73
130
  readonly type: "function";
131
+ }, {
132
+ readonly inputs: readonly [];
133
+ readonly name: "getContentCount";
134
+ readonly outputs: readonly [{
135
+ readonly internalType: "uint256";
136
+ readonly name: "";
137
+ readonly type: "uint256";
138
+ }];
139
+ readonly stateMutability: "view";
140
+ readonly type: "function";
74
141
  }, {
75
142
  readonly inputs: readonly [{
76
143
  readonly internalType: "uint256";
@@ -119,26 +186,113 @@ export declare const abi: readonly [{
119
186
  readonly name: "getParticipantData";
120
187
  readonly outputs: readonly [{
121
188
  readonly components: readonly [{
122
- readonly components: readonly [{
123
- readonly internalType: "int256";
124
- readonly name: "points";
125
- readonly type: "int256";
126
- }, {
127
- readonly internalType: "uint256";
128
- readonly name: "index";
129
- readonly type: "uint256";
130
- }];
131
- readonly internalType: "struct Campaign.PointsData";
132
- readonly name: "pointsData";
133
- readonly type: "tuple";
134
- }, {
135
189
  readonly internalType: "address";
136
190
  readonly name: "referrer";
137
191
  readonly type: "address";
192
+ }, {
193
+ readonly internalType: "uint8";
194
+ readonly name: "dayAttemptsCount";
195
+ readonly type: "uint8";
196
+ }, {
197
+ readonly internalType: "uint32";
198
+ readonly name: "resetAttemptsTime";
199
+ readonly type: "uint32";
200
+ }, {
201
+ readonly internalType: "uint256";
202
+ readonly name: "refferalsCount";
203
+ readonly type: "uint256";
204
+ }, {
205
+ readonly internalType: "uint256";
206
+ readonly name: "totalAddedLinksCount";
207
+ readonly type: "uint256";
208
+ }, {
209
+ readonly internalType: "uint256";
210
+ readonly name: "validLinksCount";
211
+ readonly type: "uint256";
212
+ }, {
213
+ readonly internalType: "uint256";
214
+ readonly name: "notValidLinksCount";
215
+ readonly type: "uint256";
138
216
  }];
139
217
  readonly internalType: "struct Campaign.ParticipantData";
140
- readonly name: "";
218
+ readonly name: "data";
141
219
  readonly type: "tuple";
220
+ }, {
221
+ readonly internalType: "uint256";
222
+ readonly name: "score";
223
+ readonly type: "uint256";
224
+ }, {
225
+ readonly internalType: "uint256";
226
+ readonly name: "rank";
227
+ readonly type: "uint256";
228
+ }];
229
+ readonly stateMutability: "view";
230
+ readonly type: "function";
231
+ }, {
232
+ readonly inputs: readonly [{
233
+ readonly internalType: "uint256";
234
+ readonly name: "rank";
235
+ readonly type: "uint256";
236
+ }];
237
+ readonly name: "getPlayerByRank";
238
+ readonly outputs: readonly [{
239
+ readonly internalType: "address";
240
+ readonly name: "player";
241
+ readonly type: "address";
242
+ }, {
243
+ readonly internalType: "uint256";
244
+ readonly name: "score";
245
+ readonly type: "uint256";
246
+ }];
247
+ readonly stateMutability: "view";
248
+ readonly type: "function";
249
+ }, {
250
+ readonly inputs: readonly [{
251
+ readonly internalType: "address";
252
+ readonly name: "player";
253
+ readonly type: "address";
254
+ }];
255
+ readonly name: "getPlayerRank";
256
+ readonly outputs: readonly [{
257
+ readonly internalType: "uint256";
258
+ readonly name: "rank";
259
+ readonly type: "uint256";
260
+ }];
261
+ readonly stateMutability: "view";
262
+ readonly type: "function";
263
+ }, {
264
+ readonly inputs: readonly [{
265
+ readonly internalType: "address";
266
+ readonly name: "player";
267
+ readonly type: "address";
268
+ }];
269
+ readonly name: "getPlayerScore";
270
+ readonly outputs: readonly [{
271
+ readonly internalType: "uint256";
272
+ readonly name: "score";
273
+ readonly type: "uint256";
274
+ }];
275
+ readonly stateMutability: "view";
276
+ readonly type: "function";
277
+ }, {
278
+ readonly inputs: readonly [{
279
+ readonly internalType: "uint256";
280
+ readonly name: "centerRank";
281
+ readonly type: "uint256";
282
+ }, {
283
+ readonly internalType: "uint256";
284
+ readonly name: "range";
285
+ readonly type: "uint256";
286
+ }];
287
+ readonly name: "getPlayersAroundRank";
288
+ readonly outputs: readonly [{
289
+ readonly internalType: "address[]";
290
+ readonly name: "players";
291
+ readonly type: "address[]";
292
+ }, {
293
+ readonly internalType: "uint256[]";
294
+ readonly name: "scores";
295
+ readonly type: "uint256[]";
142
296
  }];
143
297
  readonly stateMutability: "view";
144
298
  readonly type: "function";
@@ -150,21 +304,13 @@ export declare const abi: readonly [{
150
304
  readonly internalType: "uint256";
151
305
  readonly name: "totalParticipants";
152
306
  readonly type: "uint256";
153
- }, {
154
- readonly internalType: "int256";
155
- readonly name: "maxPoint";
156
- readonly type: "int256";
157
- }, {
158
- readonly internalType: "int256";
159
- readonly name: "minPoint";
160
- readonly type: "int256";
161
307
  }, {
162
308
  readonly internalType: "uint256";
163
- readonly name: "totalValidatedLink";
309
+ readonly name: "totalValidLinksCount";
164
310
  readonly type: "uint256";
165
311
  }, {
166
312
  readonly internalType: "uint256";
167
- readonly name: "totalNotValidatedLinks";
313
+ readonly name: "totalNotValidLinksCount";
168
314
  readonly type: "uint256";
169
315
  }];
170
316
  readonly internalType: "struct Campaign.Stat";
@@ -187,6 +333,76 @@ export declare const abi: readonly [{
187
333
  }];
188
334
  readonly stateMutability: "view";
189
335
  readonly type: "function";
336
+ }, {
337
+ readonly inputs: readonly [{
338
+ readonly internalType: "int256[]";
339
+ readonly name: "pointCounts";
340
+ readonly type: "int256[]";
341
+ }];
342
+ readonly name: "getStatsByPointsBatch";
343
+ readonly outputs: readonly [{
344
+ readonly internalType: "address[][]";
345
+ readonly name: "output";
346
+ readonly type: "address[][]";
347
+ }];
348
+ readonly stateMutability: "view";
349
+ readonly type: "function";
350
+ }, {
351
+ readonly inputs: readonly [{
352
+ readonly internalType: "uint256";
353
+ readonly name: "count";
354
+ readonly type: "uint256";
355
+ }];
356
+ readonly name: "getTopPlayers";
357
+ readonly outputs: readonly [{
358
+ readonly internalType: "address[]";
359
+ readonly name: "players";
360
+ readonly type: "address[]";
361
+ }, {
362
+ readonly internalType: "uint256[]";
363
+ readonly name: "scores";
364
+ readonly type: "uint256[]";
365
+ }];
366
+ readonly stateMutability: "view";
367
+ readonly type: "function";
368
+ }, {
369
+ readonly inputs: readonly [];
370
+ readonly name: "getTotalPlayers";
371
+ readonly outputs: readonly [{
372
+ readonly internalType: "uint256";
373
+ readonly name: "count";
374
+ readonly type: "uint256";
375
+ }];
376
+ readonly stateMutability: "view";
377
+ readonly type: "function";
378
+ }, {
379
+ readonly inputs: readonly [{
380
+ readonly internalType: "string";
381
+ readonly name: "link";
382
+ readonly type: "string";
383
+ }];
384
+ readonly name: "isLinkUniqe";
385
+ readonly outputs: readonly [{
386
+ readonly internalType: "string";
387
+ readonly name: "clearedLink";
388
+ readonly type: "string";
389
+ }, {
390
+ readonly internalType: "bool";
391
+ readonly name: "isUniqe";
392
+ readonly type: "bool";
393
+ }];
394
+ readonly stateMutability: "view";
395
+ readonly type: "function";
396
+ }, {
397
+ readonly inputs: readonly [];
398
+ readonly name: "maxDayAttempts";
399
+ readonly outputs: readonly [{
400
+ readonly internalType: "uint8";
401
+ readonly name: "";
402
+ readonly type: "uint8";
403
+ }];
404
+ readonly stateMutability: "view";
405
+ readonly type: "function";
190
406
  }, {
191
407
  readonly inputs: readonly [];
192
408
  readonly name: "notValidAfter";
@@ -207,6 +423,16 @@ export declare const abi: readonly [{
207
423
  }];
208
424
  readonly stateMutability: "view";
209
425
  readonly type: "function";
426
+ }, {
427
+ readonly inputs: readonly [];
428
+ readonly name: "owner";
429
+ readonly outputs: readonly [{
430
+ readonly internalType: "address";
431
+ readonly name: "";
432
+ readonly type: "address";
433
+ }];
434
+ readonly stateMutability: "view";
435
+ readonly type: "function";
210
436
  }, {
211
437
  readonly inputs: readonly [{
212
438
  readonly internalType: "address";
@@ -215,25 +441,42 @@ export declare const abi: readonly [{
215
441
  }];
216
442
  readonly name: "participantData";
217
443
  readonly outputs: readonly [{
218
- readonly components: readonly [{
219
- readonly internalType: "int256";
220
- readonly name: "points";
221
- readonly type: "int256";
222
- }, {
223
- readonly internalType: "uint256";
224
- readonly name: "index";
225
- readonly type: "uint256";
226
- }];
227
- readonly internalType: "struct Campaign.PointsData";
228
- readonly name: "pointsData";
229
- readonly type: "tuple";
230
- }, {
231
444
  readonly internalType: "address";
232
445
  readonly name: "referrer";
233
446
  readonly type: "address";
447
+ }, {
448
+ readonly internalType: "uint8";
449
+ readonly name: "dayAttemptsCount";
450
+ readonly type: "uint8";
451
+ }, {
452
+ readonly internalType: "uint32";
453
+ readonly name: "resetAttemptsTime";
454
+ readonly type: "uint32";
455
+ }, {
456
+ readonly internalType: "uint256";
457
+ readonly name: "refferalsCount";
458
+ readonly type: "uint256";
459
+ }, {
460
+ readonly internalType: "uint256";
461
+ readonly name: "totalAddedLinksCount";
462
+ readonly type: "uint256";
463
+ }, {
464
+ readonly internalType: "uint256";
465
+ readonly name: "validLinksCount";
466
+ readonly type: "uint256";
467
+ }, {
468
+ readonly internalType: "uint256";
469
+ readonly name: "notValidLinksCount";
470
+ readonly type: "uint256";
234
471
  }];
235
472
  readonly stateMutability: "view";
236
473
  readonly type: "function";
474
+ }, {
475
+ readonly inputs: readonly [];
476
+ readonly name: "renounceOwnership";
477
+ readonly outputs: readonly [];
478
+ readonly stateMutability: "nonpayable";
479
+ readonly type: "function";
237
480
  }, {
238
481
  readonly inputs: readonly [];
239
482
  readonly name: "rewarder";
@@ -250,6 +493,16 @@ export declare const abi: readonly [{
250
493
  readonly outputs: readonly [];
251
494
  readonly stateMutability: "nonpayable";
252
495
  readonly type: "function";
496
+ }, {
497
+ readonly inputs: readonly [{
498
+ readonly internalType: "address";
499
+ readonly name: "newOwner";
500
+ readonly type: "address";
501
+ }];
502
+ readonly name: "transferOwnership";
503
+ readonly outputs: readonly [];
504
+ readonly stateMutability: "nonpayable";
505
+ readonly type: "function";
253
506
  }, {
254
507
  readonly inputs: readonly [{
255
508
  readonly internalType: "uint256";