@super-protocol/sdk-js 3.16.4 → 3.16.6
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/CampaignTxPart.d.ts +454 -0
- package/dist/cjs/contracts/CampaignTxPart.js +592 -0
- package/dist/cjs/staticModels/Campaign.d.ts +1 -0
- package/dist/cjs/staticModels/Campaign.js +1 -1
- package/dist/cjs/staticModels/CampaignTxPart.d.ts +19 -0
- package/dist/cjs/staticModels/CampaignTxPart.js +58 -0
- package/dist/mjs/contracts/CampaignTxPart.d.ts +454 -0
- package/dist/mjs/contracts/CampaignTxPart.js +589 -0
- package/dist/mjs/staticModels/Campaign.d.ts +1 -0
- package/dist/mjs/staticModels/Campaign.js +1 -1
- package/dist/mjs/staticModels/CampaignTxPart.d.ts +19 -0
- package/dist/mjs/staticModels/CampaignTxPart.js +51 -0
- package/package.json +1 -1
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
export declare const CompetitionToggled: "CompetitionToggled";
|
|
2
|
+
export declare const MigrationTransactionsUpdated: "MigrationTransactionsUpdated";
|
|
3
|
+
export declare const NodeInserted: "NodeInserted";
|
|
4
|
+
export declare const NodeUpdated: "NodeUpdated";
|
|
5
|
+
export declare const RoleAdminChanged: "RoleAdminChanged";
|
|
6
|
+
export declare const RoleGranted: "RoleGranted";
|
|
7
|
+
export declare const RoleRevoked: "RoleRevoked";
|
|
8
|
+
export declare const ScoreUpdated: "ScoreUpdated";
|
|
9
|
+
export type AbiEvent = typeof CompetitionToggled | typeof MigrationTransactionsUpdated | typeof NodeInserted | typeof NodeUpdated | typeof RoleAdminChanged | typeof RoleGranted | typeof RoleRevoked | typeof ScoreUpdated;
|
|
10
|
+
export declare const abi: readonly [{
|
|
11
|
+
readonly inputs: readonly [];
|
|
12
|
+
readonly stateMutability: "nonpayable";
|
|
13
|
+
readonly type: "constructor";
|
|
14
|
+
}, {
|
|
15
|
+
readonly anonymous: false;
|
|
16
|
+
readonly inputs: readonly [{
|
|
17
|
+
readonly indexed: false;
|
|
18
|
+
readonly internalType: "bool";
|
|
19
|
+
readonly name: "active";
|
|
20
|
+
readonly type: "bool";
|
|
21
|
+
}];
|
|
22
|
+
readonly name: "CompetitionToggled";
|
|
23
|
+
readonly type: "event";
|
|
24
|
+
}, {
|
|
25
|
+
readonly anonymous: false;
|
|
26
|
+
readonly inputs: readonly [{
|
|
27
|
+
readonly indexed: true;
|
|
28
|
+
readonly internalType: "address";
|
|
29
|
+
readonly name: "participant";
|
|
30
|
+
readonly type: "address";
|
|
31
|
+
}, {
|
|
32
|
+
readonly indexed: false;
|
|
33
|
+
readonly internalType: "int256";
|
|
34
|
+
readonly name: "transactions";
|
|
35
|
+
readonly type: "int256";
|
|
36
|
+
}];
|
|
37
|
+
readonly name: "MigrationTransactionsUpdated";
|
|
38
|
+
readonly type: "event";
|
|
39
|
+
}, {
|
|
40
|
+
readonly anonymous: false;
|
|
41
|
+
readonly inputs: readonly [{
|
|
42
|
+
readonly indexed: true;
|
|
43
|
+
readonly internalType: "address";
|
|
44
|
+
readonly name: "participant";
|
|
45
|
+
readonly type: "address";
|
|
46
|
+
}, {
|
|
47
|
+
readonly indexed: false;
|
|
48
|
+
readonly internalType: "int256";
|
|
49
|
+
readonly name: "score";
|
|
50
|
+
readonly type: "int256";
|
|
51
|
+
}, {
|
|
52
|
+
readonly indexed: false;
|
|
53
|
+
readonly internalType: "uint256";
|
|
54
|
+
readonly name: "nodeId";
|
|
55
|
+
readonly type: "uint256";
|
|
56
|
+
}];
|
|
57
|
+
readonly name: "NodeInserted";
|
|
58
|
+
readonly type: "event";
|
|
59
|
+
}, {
|
|
60
|
+
readonly anonymous: false;
|
|
61
|
+
readonly inputs: readonly [{
|
|
62
|
+
readonly indexed: true;
|
|
63
|
+
readonly internalType: "address";
|
|
64
|
+
readonly name: "participant";
|
|
65
|
+
readonly type: "address";
|
|
66
|
+
}, {
|
|
67
|
+
readonly indexed: false;
|
|
68
|
+
readonly internalType: "int256";
|
|
69
|
+
readonly name: "oldScore";
|
|
70
|
+
readonly type: "int256";
|
|
71
|
+
}, {
|
|
72
|
+
readonly indexed: false;
|
|
73
|
+
readonly internalType: "int256";
|
|
74
|
+
readonly name: "newScore";
|
|
75
|
+
readonly type: "int256";
|
|
76
|
+
}, {
|
|
77
|
+
readonly indexed: false;
|
|
78
|
+
readonly internalType: "uint256";
|
|
79
|
+
readonly name: "nodeId";
|
|
80
|
+
readonly type: "uint256";
|
|
81
|
+
}];
|
|
82
|
+
readonly name: "NodeUpdated";
|
|
83
|
+
readonly type: "event";
|
|
84
|
+
}, {
|
|
85
|
+
readonly anonymous: false;
|
|
86
|
+
readonly inputs: readonly [{
|
|
87
|
+
readonly indexed: true;
|
|
88
|
+
readonly internalType: "bytes32";
|
|
89
|
+
readonly name: "role";
|
|
90
|
+
readonly type: "bytes32";
|
|
91
|
+
}, {
|
|
92
|
+
readonly indexed: true;
|
|
93
|
+
readonly internalType: "bytes32";
|
|
94
|
+
readonly name: "previousAdminRole";
|
|
95
|
+
readonly type: "bytes32";
|
|
96
|
+
}, {
|
|
97
|
+
readonly indexed: true;
|
|
98
|
+
readonly internalType: "bytes32";
|
|
99
|
+
readonly name: "newAdminRole";
|
|
100
|
+
readonly type: "bytes32";
|
|
101
|
+
}];
|
|
102
|
+
readonly name: "RoleAdminChanged";
|
|
103
|
+
readonly type: "event";
|
|
104
|
+
}, {
|
|
105
|
+
readonly anonymous: false;
|
|
106
|
+
readonly inputs: readonly [{
|
|
107
|
+
readonly indexed: true;
|
|
108
|
+
readonly internalType: "bytes32";
|
|
109
|
+
readonly name: "role";
|
|
110
|
+
readonly type: "bytes32";
|
|
111
|
+
}, {
|
|
112
|
+
readonly indexed: true;
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "account";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly indexed: true;
|
|
118
|
+
readonly internalType: "address";
|
|
119
|
+
readonly name: "sender";
|
|
120
|
+
readonly type: "address";
|
|
121
|
+
}];
|
|
122
|
+
readonly name: "RoleGranted";
|
|
123
|
+
readonly type: "event";
|
|
124
|
+
}, {
|
|
125
|
+
readonly anonymous: false;
|
|
126
|
+
readonly inputs: readonly [{
|
|
127
|
+
readonly indexed: true;
|
|
128
|
+
readonly internalType: "bytes32";
|
|
129
|
+
readonly name: "role";
|
|
130
|
+
readonly type: "bytes32";
|
|
131
|
+
}, {
|
|
132
|
+
readonly indexed: true;
|
|
133
|
+
readonly internalType: "address";
|
|
134
|
+
readonly name: "account";
|
|
135
|
+
readonly type: "address";
|
|
136
|
+
}, {
|
|
137
|
+
readonly indexed: true;
|
|
138
|
+
readonly internalType: "address";
|
|
139
|
+
readonly name: "sender";
|
|
140
|
+
readonly type: "address";
|
|
141
|
+
}];
|
|
142
|
+
readonly name: "RoleRevoked";
|
|
143
|
+
readonly type: "event";
|
|
144
|
+
}, {
|
|
145
|
+
readonly anonymous: false;
|
|
146
|
+
readonly inputs: readonly [{
|
|
147
|
+
readonly indexed: true;
|
|
148
|
+
readonly internalType: "address";
|
|
149
|
+
readonly name: "participant";
|
|
150
|
+
readonly type: "address";
|
|
151
|
+
}, {
|
|
152
|
+
readonly indexed: false;
|
|
153
|
+
readonly internalType: "int256";
|
|
154
|
+
readonly name: "oldScore";
|
|
155
|
+
readonly type: "int256";
|
|
156
|
+
}, {
|
|
157
|
+
readonly indexed: false;
|
|
158
|
+
readonly internalType: "int256";
|
|
159
|
+
readonly name: "newScore";
|
|
160
|
+
readonly type: "int256";
|
|
161
|
+
}];
|
|
162
|
+
readonly name: "ScoreUpdated";
|
|
163
|
+
readonly type: "event";
|
|
164
|
+
}, {
|
|
165
|
+
readonly inputs: readonly [];
|
|
166
|
+
readonly name: "DEFAULT_ADMIN_ROLE";
|
|
167
|
+
readonly outputs: readonly [{
|
|
168
|
+
readonly internalType: "bytes32";
|
|
169
|
+
readonly name: "";
|
|
170
|
+
readonly type: "bytes32";
|
|
171
|
+
}];
|
|
172
|
+
readonly stateMutability: "view";
|
|
173
|
+
readonly type: "function";
|
|
174
|
+
}, {
|
|
175
|
+
readonly inputs: readonly [{
|
|
176
|
+
readonly components: readonly [{
|
|
177
|
+
readonly internalType: "address";
|
|
178
|
+
readonly name: "participant";
|
|
179
|
+
readonly type: "address";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "int256";
|
|
182
|
+
readonly name: "transactions";
|
|
183
|
+
readonly type: "int256";
|
|
184
|
+
}];
|
|
185
|
+
readonly internalType: "struct CampaignTxPart.UpdateTxsArgs[]";
|
|
186
|
+
readonly name: "args";
|
|
187
|
+
readonly type: "tuple[]";
|
|
188
|
+
}];
|
|
189
|
+
readonly name: "batchUpdateMigrationTransactionsByApp";
|
|
190
|
+
readonly outputs: readonly [];
|
|
191
|
+
readonly stateMutability: "nonpayable";
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [];
|
|
195
|
+
readonly name: "competitionActive";
|
|
196
|
+
readonly outputs: readonly [{
|
|
197
|
+
readonly internalType: "bool";
|
|
198
|
+
readonly name: "";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
}];
|
|
201
|
+
readonly stateMutability: "view";
|
|
202
|
+
readonly type: "function";
|
|
203
|
+
}, {
|
|
204
|
+
readonly inputs: readonly [{
|
|
205
|
+
readonly internalType: "uint256";
|
|
206
|
+
readonly name: "rank";
|
|
207
|
+
readonly type: "uint256";
|
|
208
|
+
}];
|
|
209
|
+
readonly name: "getParticipantByRank";
|
|
210
|
+
readonly outputs: readonly [{
|
|
211
|
+
readonly components: readonly [{
|
|
212
|
+
readonly internalType: "address";
|
|
213
|
+
readonly name: "participant";
|
|
214
|
+
readonly type: "address";
|
|
215
|
+
}, {
|
|
216
|
+
readonly internalType: "int256";
|
|
217
|
+
readonly name: "score";
|
|
218
|
+
readonly type: "int256";
|
|
219
|
+
}];
|
|
220
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore";
|
|
221
|
+
readonly name: "";
|
|
222
|
+
readonly type: "tuple";
|
|
223
|
+
}];
|
|
224
|
+
readonly stateMutability: "view";
|
|
225
|
+
readonly type: "function";
|
|
226
|
+
}, {
|
|
227
|
+
readonly inputs: readonly [{
|
|
228
|
+
readonly internalType: "address";
|
|
229
|
+
readonly name: "participant";
|
|
230
|
+
readonly type: "address";
|
|
231
|
+
}];
|
|
232
|
+
readonly name: "getParticipantRank";
|
|
233
|
+
readonly outputs: readonly [{
|
|
234
|
+
readonly internalType: "uint256";
|
|
235
|
+
readonly name: "rank";
|
|
236
|
+
readonly type: "uint256";
|
|
237
|
+
}];
|
|
238
|
+
readonly stateMutability: "view";
|
|
239
|
+
readonly type: "function";
|
|
240
|
+
}, {
|
|
241
|
+
readonly inputs: readonly [{
|
|
242
|
+
readonly internalType: "address";
|
|
243
|
+
readonly name: "participant";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
}];
|
|
246
|
+
readonly name: "getParticipantScore";
|
|
247
|
+
readonly outputs: readonly [{
|
|
248
|
+
readonly internalType: "int256";
|
|
249
|
+
readonly name: "score";
|
|
250
|
+
readonly type: "int256";
|
|
251
|
+
}];
|
|
252
|
+
readonly stateMutability: "view";
|
|
253
|
+
readonly type: "function";
|
|
254
|
+
}, {
|
|
255
|
+
readonly inputs: readonly [{
|
|
256
|
+
readonly internalType: "uint256";
|
|
257
|
+
readonly name: "centerRank";
|
|
258
|
+
readonly type: "uint256";
|
|
259
|
+
}, {
|
|
260
|
+
readonly internalType: "uint256";
|
|
261
|
+
readonly name: "range";
|
|
262
|
+
readonly type: "uint256";
|
|
263
|
+
}];
|
|
264
|
+
readonly name: "getParticipantsAroundRank";
|
|
265
|
+
readonly outputs: readonly [{
|
|
266
|
+
readonly components: readonly [{
|
|
267
|
+
readonly internalType: "address";
|
|
268
|
+
readonly name: "participant";
|
|
269
|
+
readonly type: "address";
|
|
270
|
+
}, {
|
|
271
|
+
readonly internalType: "int256";
|
|
272
|
+
readonly name: "score";
|
|
273
|
+
readonly type: "int256";
|
|
274
|
+
}];
|
|
275
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
276
|
+
readonly name: "participants";
|
|
277
|
+
readonly type: "tuple[]";
|
|
278
|
+
}];
|
|
279
|
+
readonly stateMutability: "view";
|
|
280
|
+
readonly type: "function";
|
|
281
|
+
}, {
|
|
282
|
+
readonly inputs: readonly [{
|
|
283
|
+
readonly internalType: "uint256";
|
|
284
|
+
readonly name: "startRank";
|
|
285
|
+
readonly type: "uint256";
|
|
286
|
+
}, {
|
|
287
|
+
readonly internalType: "uint256";
|
|
288
|
+
readonly name: "endRank";
|
|
289
|
+
readonly type: "uint256";
|
|
290
|
+
}];
|
|
291
|
+
readonly name: "getParticipantsByRange";
|
|
292
|
+
readonly outputs: readonly [{
|
|
293
|
+
readonly components: readonly [{
|
|
294
|
+
readonly internalType: "address";
|
|
295
|
+
readonly name: "participant";
|
|
296
|
+
readonly type: "address";
|
|
297
|
+
}, {
|
|
298
|
+
readonly internalType: "int256";
|
|
299
|
+
readonly name: "score";
|
|
300
|
+
readonly type: "int256";
|
|
301
|
+
}];
|
|
302
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
303
|
+
readonly name: "participants";
|
|
304
|
+
readonly type: "tuple[]";
|
|
305
|
+
}];
|
|
306
|
+
readonly stateMutability: "view";
|
|
307
|
+
readonly type: "function";
|
|
308
|
+
}, {
|
|
309
|
+
readonly inputs: readonly [{
|
|
310
|
+
readonly internalType: "bytes32";
|
|
311
|
+
readonly name: "role";
|
|
312
|
+
readonly type: "bytes32";
|
|
313
|
+
}];
|
|
314
|
+
readonly name: "getRoleAdmin";
|
|
315
|
+
readonly outputs: readonly [{
|
|
316
|
+
readonly internalType: "bytes32";
|
|
317
|
+
readonly name: "";
|
|
318
|
+
readonly type: "bytes32";
|
|
319
|
+
}];
|
|
320
|
+
readonly stateMutability: "view";
|
|
321
|
+
readonly type: "function";
|
|
322
|
+
}, {
|
|
323
|
+
readonly inputs: readonly [{
|
|
324
|
+
readonly internalType: "uint256";
|
|
325
|
+
readonly name: "count";
|
|
326
|
+
readonly type: "uint256";
|
|
327
|
+
}];
|
|
328
|
+
readonly name: "getTopParticipants";
|
|
329
|
+
readonly outputs: readonly [{
|
|
330
|
+
readonly components: readonly [{
|
|
331
|
+
readonly internalType: "address";
|
|
332
|
+
readonly name: "participant";
|
|
333
|
+
readonly type: "address";
|
|
334
|
+
}, {
|
|
335
|
+
readonly internalType: "int256";
|
|
336
|
+
readonly name: "score";
|
|
337
|
+
readonly type: "int256";
|
|
338
|
+
}];
|
|
339
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
340
|
+
readonly name: "participants";
|
|
341
|
+
readonly type: "tuple[]";
|
|
342
|
+
}];
|
|
343
|
+
readonly stateMutability: "view";
|
|
344
|
+
readonly type: "function";
|
|
345
|
+
}, {
|
|
346
|
+
readonly inputs: readonly [];
|
|
347
|
+
readonly name: "getTotalParticipants";
|
|
348
|
+
readonly outputs: readonly [{
|
|
349
|
+
readonly internalType: "uint256";
|
|
350
|
+
readonly name: "count";
|
|
351
|
+
readonly type: "uint256";
|
|
352
|
+
}];
|
|
353
|
+
readonly stateMutability: "view";
|
|
354
|
+
readonly type: "function";
|
|
355
|
+
}, {
|
|
356
|
+
readonly inputs: readonly [{
|
|
357
|
+
readonly internalType: "bytes32";
|
|
358
|
+
readonly name: "role";
|
|
359
|
+
readonly type: "bytes32";
|
|
360
|
+
}, {
|
|
361
|
+
readonly internalType: "address";
|
|
362
|
+
readonly name: "account";
|
|
363
|
+
readonly type: "address";
|
|
364
|
+
}];
|
|
365
|
+
readonly name: "grantRole";
|
|
366
|
+
readonly outputs: readonly [];
|
|
367
|
+
readonly stateMutability: "nonpayable";
|
|
368
|
+
readonly type: "function";
|
|
369
|
+
}, {
|
|
370
|
+
readonly inputs: readonly [{
|
|
371
|
+
readonly internalType: "bytes32";
|
|
372
|
+
readonly name: "role";
|
|
373
|
+
readonly type: "bytes32";
|
|
374
|
+
}, {
|
|
375
|
+
readonly internalType: "address";
|
|
376
|
+
readonly name: "account";
|
|
377
|
+
readonly type: "address";
|
|
378
|
+
}];
|
|
379
|
+
readonly name: "hasRole";
|
|
380
|
+
readonly outputs: readonly [{
|
|
381
|
+
readonly internalType: "bool";
|
|
382
|
+
readonly name: "";
|
|
383
|
+
readonly type: "bool";
|
|
384
|
+
}];
|
|
385
|
+
readonly stateMutability: "view";
|
|
386
|
+
readonly type: "function";
|
|
387
|
+
}, {
|
|
388
|
+
readonly inputs: readonly [{
|
|
389
|
+
readonly internalType: "address";
|
|
390
|
+
readonly name: "participant";
|
|
391
|
+
readonly type: "address";
|
|
392
|
+
}];
|
|
393
|
+
readonly name: "participantExist";
|
|
394
|
+
readonly outputs: readonly [{
|
|
395
|
+
readonly internalType: "bool";
|
|
396
|
+
readonly name: "";
|
|
397
|
+
readonly type: "bool";
|
|
398
|
+
}];
|
|
399
|
+
readonly stateMutability: "view";
|
|
400
|
+
readonly type: "function";
|
|
401
|
+
}, {
|
|
402
|
+
readonly inputs: readonly [{
|
|
403
|
+
readonly internalType: "bytes32";
|
|
404
|
+
readonly name: "role";
|
|
405
|
+
readonly type: "bytes32";
|
|
406
|
+
}, {
|
|
407
|
+
readonly internalType: "address";
|
|
408
|
+
readonly name: "account";
|
|
409
|
+
readonly type: "address";
|
|
410
|
+
}];
|
|
411
|
+
readonly name: "renounceRole";
|
|
412
|
+
readonly outputs: readonly [];
|
|
413
|
+
readonly stateMutability: "nonpayable";
|
|
414
|
+
readonly type: "function";
|
|
415
|
+
}, {
|
|
416
|
+
readonly inputs: readonly [{
|
|
417
|
+
readonly internalType: "bytes32";
|
|
418
|
+
readonly name: "role";
|
|
419
|
+
readonly type: "bytes32";
|
|
420
|
+
}, {
|
|
421
|
+
readonly internalType: "address";
|
|
422
|
+
readonly name: "account";
|
|
423
|
+
readonly type: "address";
|
|
424
|
+
}];
|
|
425
|
+
readonly name: "revokeRole";
|
|
426
|
+
readonly outputs: readonly [];
|
|
427
|
+
readonly stateMutability: "nonpayable";
|
|
428
|
+
readonly type: "function";
|
|
429
|
+
}, {
|
|
430
|
+
readonly inputs: readonly [{
|
|
431
|
+
readonly internalType: "bytes4";
|
|
432
|
+
readonly name: "interfaceId";
|
|
433
|
+
readonly type: "bytes4";
|
|
434
|
+
}];
|
|
435
|
+
readonly name: "supportsInterface";
|
|
436
|
+
readonly outputs: readonly [{
|
|
437
|
+
readonly internalType: "bool";
|
|
438
|
+
readonly name: "";
|
|
439
|
+
readonly type: "bool";
|
|
440
|
+
}];
|
|
441
|
+
readonly stateMutability: "view";
|
|
442
|
+
readonly type: "function";
|
|
443
|
+
}, {
|
|
444
|
+
readonly inputs: readonly [];
|
|
445
|
+
readonly name: "totalTransactions";
|
|
446
|
+
readonly outputs: readonly [{
|
|
447
|
+
readonly internalType: "uint256";
|
|
448
|
+
readonly name: "";
|
|
449
|
+
readonly type: "uint256";
|
|
450
|
+
}];
|
|
451
|
+
readonly stateMutability: "view";
|
|
452
|
+
readonly type: "function";
|
|
453
|
+
}];
|
|
454
|
+
export default abi;
|