@super-protocol/sdk-js 3.12.1-beta.2 → 3.12.2-beta.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/dist/cjs/contracts/Campaign.d.ts +345 -303
- package/dist/cjs/contracts/Campaign.js +422 -368
- package/dist/cjs/staticModels/Campaign.d.ts +29 -18
- package/dist/cjs/staticModels/Campaign.js +80 -39
- package/dist/cjs/types/Campaign.d.ts +19 -31
- package/dist/cjs/types/Campaign.js +10 -5
- package/dist/mjs/contracts/Campaign.d.ts +345 -303
- package/dist/mjs/contracts/Campaign.js +421 -367
- package/dist/mjs/staticModels/Campaign.d.ts +29 -18
- package/dist/mjs/staticModels/Campaign.js +80 -39
- package/dist/mjs/types/Campaign.d.ts +19 -31
- package/dist/mjs/types/Campaign.js +9 -4
- package/package.json +1 -1
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
export declare const CompetitionToggled: "CompetitionToggled";
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
2
|
+
export declare const MigrationStatusUpdated: "MigrationStatusUpdated";
|
|
3
|
+
export declare const MigrationSubmitted: "MigrationSubmitted";
|
|
4
|
+
export declare const MigrationTransactionsUpdated: "MigrationTransactionsUpdated";
|
|
5
|
+
export declare const NodeInserted: "NodeInserted";
|
|
6
|
+
export declare const NodeRemoved: "NodeRemoved";
|
|
7
|
+
export declare const NodeUpdated: "NodeUpdated";
|
|
4
8
|
export declare const ParticipantRegistered: "ParticipantRegistered";
|
|
5
9
|
export declare const RewardClaimed: "RewardClaimed";
|
|
6
10
|
export declare const RoleAdminChanged: "RoleAdminChanged";
|
|
7
11
|
export declare const RoleGranted: "RoleGranted";
|
|
8
12
|
export declare const RoleRevoked: "RoleRevoked";
|
|
9
13
|
export declare const ScoreUpdated: "ScoreUpdated";
|
|
10
|
-
export type AbiEvent = typeof CompetitionToggled | typeof
|
|
14
|
+
export type AbiEvent = typeof CompetitionToggled | typeof MigrationStatusUpdated | typeof MigrationSubmitted | typeof MigrationTransactionsUpdated | typeof NodeInserted | typeof NodeRemoved | typeof NodeUpdated | typeof ParticipantRegistered | typeof RewardClaimed | typeof RoleAdminChanged | typeof RoleGranted | typeof RoleRevoked | typeof ScoreUpdated;
|
|
11
15
|
export declare const abi: readonly [{
|
|
12
16
|
readonly inputs: readonly [{
|
|
13
17
|
readonly internalType: "uint32";
|
|
@@ -21,10 +25,6 @@ export declare const abi: readonly [{
|
|
|
21
25
|
readonly internalType: "address";
|
|
22
26
|
readonly name: "_usdt";
|
|
23
27
|
readonly type: "address";
|
|
24
|
-
}, {
|
|
25
|
-
readonly internalType: "uint8";
|
|
26
|
-
readonly name: "_maxDayAttempts";
|
|
27
|
-
readonly type: "uint8";
|
|
28
28
|
}];
|
|
29
29
|
readonly stateMutability: "nonpayable";
|
|
30
30
|
readonly type: "constructor";
|
|
@@ -38,6 +38,21 @@ export declare const abi: readonly [{
|
|
|
38
38
|
}];
|
|
39
39
|
readonly name: "CompetitionToggled";
|
|
40
40
|
readonly type: "event";
|
|
41
|
+
}, {
|
|
42
|
+
readonly anonymous: false;
|
|
43
|
+
readonly inputs: readonly [{
|
|
44
|
+
readonly indexed: true;
|
|
45
|
+
readonly internalType: "uint256";
|
|
46
|
+
readonly name: "migrationIndex";
|
|
47
|
+
readonly type: "uint256";
|
|
48
|
+
}, {
|
|
49
|
+
readonly indexed: true;
|
|
50
|
+
readonly internalType: "enum Campaign.Status";
|
|
51
|
+
readonly name: "status";
|
|
52
|
+
readonly type: "uint8";
|
|
53
|
+
}];
|
|
54
|
+
readonly name: "MigrationStatusUpdated";
|
|
55
|
+
readonly type: "event";
|
|
41
56
|
}, {
|
|
42
57
|
readonly anonymous: false;
|
|
43
58
|
readonly inputs: readonly [{
|
|
@@ -48,30 +63,65 @@ export declare const abi: readonly [{
|
|
|
48
63
|
}, {
|
|
49
64
|
readonly indexed: true;
|
|
50
65
|
readonly internalType: "uint256";
|
|
51
|
-
readonly name: "
|
|
66
|
+
readonly name: "migrationIndex";
|
|
67
|
+
readonly type: "uint256";
|
|
68
|
+
}];
|
|
69
|
+
readonly name: "MigrationSubmitted";
|
|
70
|
+
readonly type: "event";
|
|
71
|
+
}, {
|
|
72
|
+
readonly anonymous: false;
|
|
73
|
+
readonly inputs: readonly [{
|
|
74
|
+
readonly indexed: true;
|
|
75
|
+
readonly internalType: "uint256";
|
|
76
|
+
readonly name: "migrationIndex";
|
|
52
77
|
readonly type: "uint256";
|
|
53
78
|
}, {
|
|
54
79
|
readonly indexed: false;
|
|
55
|
-
readonly internalType: "
|
|
56
|
-
readonly name: "
|
|
57
|
-
readonly type: "
|
|
80
|
+
readonly internalType: "uint256";
|
|
81
|
+
readonly name: "transactions";
|
|
82
|
+
readonly type: "uint256";
|
|
58
83
|
}];
|
|
59
|
-
readonly name: "
|
|
84
|
+
readonly name: "MigrationTransactionsUpdated";
|
|
60
85
|
readonly type: "event";
|
|
61
86
|
}, {
|
|
62
87
|
readonly anonymous: false;
|
|
63
88
|
readonly inputs: readonly [{
|
|
64
89
|
readonly indexed: true;
|
|
90
|
+
readonly internalType: "address";
|
|
91
|
+
readonly name: "participant";
|
|
92
|
+
readonly type: "address";
|
|
93
|
+
}, {
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "int256";
|
|
96
|
+
readonly name: "score";
|
|
97
|
+
readonly type: "int256";
|
|
98
|
+
}, {
|
|
99
|
+
readonly indexed: false;
|
|
65
100
|
readonly internalType: "uint256";
|
|
66
|
-
readonly name: "
|
|
101
|
+
readonly name: "nodeId";
|
|
67
102
|
readonly type: "uint256";
|
|
68
|
-
}
|
|
103
|
+
}];
|
|
104
|
+
readonly name: "NodeInserted";
|
|
105
|
+
readonly type: "event";
|
|
106
|
+
}, {
|
|
107
|
+
readonly anonymous: false;
|
|
108
|
+
readonly inputs: readonly [{
|
|
69
109
|
readonly indexed: true;
|
|
70
|
-
readonly internalType: "
|
|
71
|
-
readonly name: "
|
|
72
|
-
readonly type: "
|
|
110
|
+
readonly internalType: "address";
|
|
111
|
+
readonly name: "participant";
|
|
112
|
+
readonly type: "address";
|
|
113
|
+
}, {
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly internalType: "int256";
|
|
116
|
+
readonly name: "score";
|
|
117
|
+
readonly type: "int256";
|
|
118
|
+
}, {
|
|
119
|
+
readonly indexed: false;
|
|
120
|
+
readonly internalType: "uint256";
|
|
121
|
+
readonly name: "nodeId";
|
|
122
|
+
readonly type: "uint256";
|
|
73
123
|
}];
|
|
74
|
-
readonly name: "
|
|
124
|
+
readonly name: "NodeRemoved";
|
|
75
125
|
readonly type: "event";
|
|
76
126
|
}, {
|
|
77
127
|
readonly anonymous: false;
|
|
@@ -81,9 +131,29 @@ export declare const abi: readonly [{
|
|
|
81
131
|
readonly name: "participant";
|
|
82
132
|
readonly type: "address";
|
|
83
133
|
}, {
|
|
134
|
+
readonly indexed: false;
|
|
135
|
+
readonly internalType: "int256";
|
|
136
|
+
readonly name: "oldScore";
|
|
137
|
+
readonly type: "int256";
|
|
138
|
+
}, {
|
|
139
|
+
readonly indexed: false;
|
|
140
|
+
readonly internalType: "int256";
|
|
141
|
+
readonly name: "newScore";
|
|
142
|
+
readonly type: "int256";
|
|
143
|
+
}, {
|
|
144
|
+
readonly indexed: false;
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly name: "nodeId";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}];
|
|
149
|
+
readonly name: "NodeUpdated";
|
|
150
|
+
readonly type: "event";
|
|
151
|
+
}, {
|
|
152
|
+
readonly anonymous: false;
|
|
153
|
+
readonly inputs: readonly [{
|
|
84
154
|
readonly indexed: true;
|
|
85
155
|
readonly internalType: "address";
|
|
86
|
-
readonly name: "
|
|
156
|
+
readonly name: "participant";
|
|
87
157
|
readonly type: "address";
|
|
88
158
|
}];
|
|
89
159
|
readonly name: "ParticipantRegistered";
|
|
@@ -195,13 +265,17 @@ export declare const abi: readonly [{
|
|
|
195
265
|
readonly type: "function";
|
|
196
266
|
}, {
|
|
197
267
|
readonly inputs: readonly [{
|
|
198
|
-
readonly internalType: "
|
|
199
|
-
readonly name: "
|
|
200
|
-
readonly type: "
|
|
268
|
+
readonly internalType: "uint256";
|
|
269
|
+
readonly name: "transactions";
|
|
270
|
+
readonly type: "uint256";
|
|
201
271
|
}];
|
|
202
|
-
readonly name: "
|
|
203
|
-
readonly outputs: readonly [
|
|
204
|
-
|
|
272
|
+
readonly name: "_getTransactionScoreDetailed";
|
|
273
|
+
readonly outputs: readonly [{
|
|
274
|
+
readonly internalType: "int256";
|
|
275
|
+
readonly name: "";
|
|
276
|
+
readonly type: "int256";
|
|
277
|
+
}];
|
|
278
|
+
readonly stateMutability: "pure";
|
|
205
279
|
readonly type: "function";
|
|
206
280
|
}, {
|
|
207
281
|
readonly inputs: readonly [];
|
|
@@ -219,54 +293,6 @@ export declare const abi: readonly [{
|
|
|
219
293
|
}];
|
|
220
294
|
readonly stateMutability: "view";
|
|
221
295
|
readonly type: "function";
|
|
222
|
-
}, {
|
|
223
|
-
readonly inputs: readonly [{
|
|
224
|
-
readonly internalType: "bytes32";
|
|
225
|
-
readonly name: "contentHash";
|
|
226
|
-
readonly type: "bytes32";
|
|
227
|
-
}];
|
|
228
|
-
readonly name: "contentHashExists";
|
|
229
|
-
readonly outputs: readonly [{
|
|
230
|
-
readonly internalType: "bool";
|
|
231
|
-
readonly name: "";
|
|
232
|
-
readonly type: "bool";
|
|
233
|
-
}];
|
|
234
|
-
readonly stateMutability: "view";
|
|
235
|
-
readonly type: "function";
|
|
236
|
-
}, {
|
|
237
|
-
readonly inputs: readonly [{
|
|
238
|
-
readonly internalType: "uint256";
|
|
239
|
-
readonly name: "";
|
|
240
|
-
readonly type: "uint256";
|
|
241
|
-
}];
|
|
242
|
-
readonly name: "contents";
|
|
243
|
-
readonly outputs: readonly [{
|
|
244
|
-
readonly internalType: "enum Campaign.Status";
|
|
245
|
-
readonly name: "status";
|
|
246
|
-
readonly type: "uint8";
|
|
247
|
-
}, {
|
|
248
|
-
readonly internalType: "address";
|
|
249
|
-
readonly name: "participant";
|
|
250
|
-
readonly type: "address";
|
|
251
|
-
}, {
|
|
252
|
-
readonly internalType: "uint32";
|
|
253
|
-
readonly name: "dayNumber";
|
|
254
|
-
readonly type: "uint32";
|
|
255
|
-
}, {
|
|
256
|
-
readonly internalType: "string";
|
|
257
|
-
readonly name: "link";
|
|
258
|
-
readonly type: "string";
|
|
259
|
-
}, {
|
|
260
|
-
readonly internalType: "bytes32";
|
|
261
|
-
readonly name: "contentHash";
|
|
262
|
-
readonly type: "bytes32";
|
|
263
|
-
}, {
|
|
264
|
-
readonly internalType: "int256";
|
|
265
|
-
readonly name: "referralBonus";
|
|
266
|
-
readonly type: "int256";
|
|
267
|
-
}];
|
|
268
|
-
readonly stateMutability: "view";
|
|
269
|
-
readonly type: "function";
|
|
270
296
|
}, {
|
|
271
297
|
readonly inputs: readonly [];
|
|
272
298
|
readonly name: "getCompetitionSetup";
|
|
@@ -282,20 +308,6 @@ export declare const abi: readonly [{
|
|
|
282
308
|
readonly internalType: "uint256";
|
|
283
309
|
readonly name: "notValidAfterTs";
|
|
284
310
|
readonly type: "uint256";
|
|
285
|
-
}, {
|
|
286
|
-
readonly internalType: "uint256";
|
|
287
|
-
readonly name: "maxDayAttemptsCount";
|
|
288
|
-
readonly type: "uint256";
|
|
289
|
-
}];
|
|
290
|
-
readonly stateMutability: "view";
|
|
291
|
-
readonly type: "function";
|
|
292
|
-
}, {
|
|
293
|
-
readonly inputs: readonly [];
|
|
294
|
-
readonly name: "getContentCount";
|
|
295
|
-
readonly outputs: readonly [{
|
|
296
|
-
readonly internalType: "uint256";
|
|
297
|
-
readonly name: "";
|
|
298
|
-
readonly type: "uint256";
|
|
299
311
|
}];
|
|
300
312
|
readonly stateMutability: "view";
|
|
301
313
|
readonly type: "function";
|
|
@@ -313,86 +325,117 @@ export declare const abi: readonly [{
|
|
|
313
325
|
readonly name: "status";
|
|
314
326
|
readonly type: "uint8";
|
|
315
327
|
}];
|
|
316
|
-
readonly name: "
|
|
328
|
+
readonly name: "getMigrationRange";
|
|
317
329
|
readonly outputs: readonly [{
|
|
318
330
|
readonly components: readonly [{
|
|
319
331
|
readonly components: readonly [{
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
readonly name: "participant";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
}, {
|
|
336
|
+
readonly internalType: "uint16";
|
|
337
|
+
readonly name: "score";
|
|
338
|
+
readonly type: "uint16";
|
|
339
|
+
}, {
|
|
340
|
+
readonly internalType: "bool";
|
|
341
|
+
readonly name: "firstSourceMigration";
|
|
342
|
+
readonly type: "bool";
|
|
343
|
+
}, {
|
|
344
|
+
readonly internalType: "enum Campaign.MigrationNetwork";
|
|
345
|
+
readonly name: "sourceNetwork";
|
|
346
|
+
readonly type: "uint8";
|
|
347
|
+
}, {
|
|
320
348
|
readonly internalType: "enum Campaign.Status";
|
|
321
349
|
readonly name: "status";
|
|
322
350
|
readonly type: "uint8";
|
|
323
351
|
}, {
|
|
324
352
|
readonly internalType: "address";
|
|
325
|
-
readonly name: "
|
|
353
|
+
readonly name: "sourceAddress";
|
|
326
354
|
readonly type: "address";
|
|
327
355
|
}, {
|
|
328
|
-
readonly internalType: "
|
|
329
|
-
readonly name: "
|
|
330
|
-
readonly type: "
|
|
356
|
+
readonly internalType: "address";
|
|
357
|
+
readonly name: "destinationAddress";
|
|
358
|
+
readonly type: "address";
|
|
331
359
|
}, {
|
|
332
360
|
readonly internalType: "string";
|
|
333
|
-
readonly name: "
|
|
361
|
+
readonly name: "sourceUrl";
|
|
334
362
|
readonly type: "string";
|
|
335
363
|
}, {
|
|
336
|
-
readonly internalType: "
|
|
337
|
-
readonly name: "
|
|
338
|
-
readonly type: "
|
|
339
|
-
}, {
|
|
340
|
-
readonly internalType: "int256";
|
|
341
|
-
readonly name: "referralBonus";
|
|
342
|
-
readonly type: "int256";
|
|
364
|
+
readonly internalType: "string";
|
|
365
|
+
readonly name: "destinationUrl";
|
|
366
|
+
readonly type: "string";
|
|
343
367
|
}];
|
|
344
|
-
readonly internalType: "struct Campaign.
|
|
345
|
-
readonly name: "
|
|
368
|
+
readonly internalType: "struct Campaign.Migration";
|
|
369
|
+
readonly name: "migration";
|
|
346
370
|
readonly type: "tuple";
|
|
347
371
|
}, {
|
|
348
372
|
readonly internalType: "uint256";
|
|
349
373
|
readonly name: "index";
|
|
350
374
|
readonly type: "uint256";
|
|
351
375
|
}];
|
|
352
|
-
readonly internalType: "struct Campaign.
|
|
376
|
+
readonly internalType: "struct Campaign.MigrationWithIndex[]";
|
|
353
377
|
readonly name: "result";
|
|
354
378
|
readonly type: "tuple[]";
|
|
355
379
|
}];
|
|
356
380
|
readonly stateMutability: "view";
|
|
357
381
|
readonly type: "function";
|
|
358
382
|
}, {
|
|
359
|
-
readonly inputs: readonly [
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
readonly
|
|
363
|
-
readonly name: "linkSubmissionScore";
|
|
364
|
-
readonly type: "int256";
|
|
365
|
-
}, {
|
|
366
|
-
readonly internalType: "int256";
|
|
367
|
-
readonly name: "referralBonus";
|
|
368
|
-
readonly type: "int256";
|
|
383
|
+
readonly inputs: readonly [{
|
|
384
|
+
readonly internalType: "uint256[]";
|
|
385
|
+
readonly name: "indexes";
|
|
386
|
+
readonly type: "uint256[]";
|
|
369
387
|
}];
|
|
370
|
-
readonly
|
|
371
|
-
readonly type: "function";
|
|
372
|
-
}, {
|
|
373
|
-
readonly inputs: readonly [];
|
|
374
|
-
readonly name: "getLinksStat";
|
|
388
|
+
readonly name: "getMigrationsByIndexes";
|
|
375
389
|
readonly outputs: readonly [{
|
|
376
390
|
readonly components: readonly [{
|
|
377
|
-
readonly
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
391
|
+
readonly components: readonly [{
|
|
392
|
+
readonly internalType: "address";
|
|
393
|
+
readonly name: "participant";
|
|
394
|
+
readonly type: "address";
|
|
395
|
+
}, {
|
|
396
|
+
readonly internalType: "uint16";
|
|
397
|
+
readonly name: "score";
|
|
398
|
+
readonly type: "uint16";
|
|
399
|
+
}, {
|
|
400
|
+
readonly internalType: "bool";
|
|
401
|
+
readonly name: "firstSourceMigration";
|
|
402
|
+
readonly type: "bool";
|
|
403
|
+
}, {
|
|
404
|
+
readonly internalType: "enum Campaign.MigrationNetwork";
|
|
405
|
+
readonly name: "sourceNetwork";
|
|
406
|
+
readonly type: "uint8";
|
|
407
|
+
}, {
|
|
408
|
+
readonly internalType: "enum Campaign.Status";
|
|
409
|
+
readonly name: "status";
|
|
410
|
+
readonly type: "uint8";
|
|
411
|
+
}, {
|
|
412
|
+
readonly internalType: "address";
|
|
413
|
+
readonly name: "sourceAddress";
|
|
414
|
+
readonly type: "address";
|
|
415
|
+
}, {
|
|
416
|
+
readonly internalType: "address";
|
|
417
|
+
readonly name: "destinationAddress";
|
|
418
|
+
readonly type: "address";
|
|
419
|
+
}, {
|
|
420
|
+
readonly internalType: "string";
|
|
421
|
+
readonly name: "sourceUrl";
|
|
422
|
+
readonly type: "string";
|
|
423
|
+
}, {
|
|
424
|
+
readonly internalType: "string";
|
|
425
|
+
readonly name: "destinationUrl";
|
|
426
|
+
readonly type: "string";
|
|
427
|
+
}];
|
|
428
|
+
readonly internalType: "struct Campaign.Migration";
|
|
429
|
+
readonly name: "migration";
|
|
430
|
+
readonly type: "tuple";
|
|
388
431
|
}, {
|
|
389
432
|
readonly internalType: "uint256";
|
|
390
|
-
readonly name: "
|
|
433
|
+
readonly name: "index";
|
|
391
434
|
readonly type: "uint256";
|
|
392
435
|
}];
|
|
393
|
-
readonly internalType: "struct Campaign.
|
|
394
|
-
readonly name: "
|
|
395
|
-
readonly type: "tuple";
|
|
436
|
+
readonly internalType: "struct Campaign.MigrationWithIndex[]";
|
|
437
|
+
readonly name: "result";
|
|
438
|
+
readonly type: "tuple[]";
|
|
396
439
|
}];
|
|
397
440
|
readonly stateMutability: "view";
|
|
398
441
|
readonly type: "function";
|
|
@@ -428,19 +471,6 @@ export declare const abi: readonly [{
|
|
|
428
471
|
readonly name: "getParticipantInfo";
|
|
429
472
|
readonly outputs: readonly [{
|
|
430
473
|
readonly components: readonly [{
|
|
431
|
-
readonly components: readonly [{
|
|
432
|
-
readonly internalType: "uint8";
|
|
433
|
-
readonly name: "totalDayAttempts";
|
|
434
|
-
readonly type: "uint8";
|
|
435
|
-
}, {
|
|
436
|
-
readonly internalType: "uint8";
|
|
437
|
-
readonly name: "totalValidatedLinks";
|
|
438
|
-
readonly type: "uint8";
|
|
439
|
-
}];
|
|
440
|
-
readonly internalType: "struct Campaign.DayParticipantInfo";
|
|
441
|
-
readonly name: "currentDayParticipantInfo";
|
|
442
|
-
readonly type: "tuple";
|
|
443
|
-
}, {
|
|
444
474
|
readonly components: readonly [{
|
|
445
475
|
readonly internalType: "bool";
|
|
446
476
|
readonly name: "isParticipantRegistered";
|
|
@@ -450,37 +480,9 @@ export declare const abi: readonly [{
|
|
|
450
480
|
readonly name: "isRewardClaimed";
|
|
451
481
|
readonly type: "bool";
|
|
452
482
|
}, {
|
|
453
|
-
readonly internalType: "
|
|
454
|
-
readonly name: "
|
|
455
|
-
readonly type: "
|
|
456
|
-
}, {
|
|
457
|
-
readonly internalType: "uint256";
|
|
458
|
-
readonly name: "referralsCount";
|
|
459
|
-
readonly type: "uint256";
|
|
460
|
-
}, {
|
|
461
|
-
readonly internalType: "int256";
|
|
462
|
-
readonly name: "totalReferrerProfit";
|
|
463
|
-
readonly type: "int256";
|
|
464
|
-
}, {
|
|
465
|
-
readonly internalType: "int256";
|
|
466
|
-
readonly name: "totalReferralsProfit";
|
|
467
|
-
readonly type: "int256";
|
|
468
|
-
}, {
|
|
469
|
-
readonly internalType: "uint256";
|
|
470
|
-
readonly name: "totalAddedLinks";
|
|
471
|
-
readonly type: "uint256";
|
|
472
|
-
}, {
|
|
473
|
-
readonly internalType: "uint256";
|
|
474
|
-
readonly name: "totalDuplicatedLinks";
|
|
475
|
-
readonly type: "uint256";
|
|
476
|
-
}, {
|
|
477
|
-
readonly internalType: "uint256";
|
|
478
|
-
readonly name: "totalValidatedLinks";
|
|
479
|
-
readonly type: "uint256";
|
|
480
|
-
}, {
|
|
481
|
-
readonly internalType: "uint256";
|
|
482
|
-
readonly name: "totalInvalidLinks";
|
|
483
|
-
readonly type: "uint256";
|
|
483
|
+
readonly internalType: "uint256[]";
|
|
484
|
+
readonly name: "migrationsIndexes";
|
|
485
|
+
readonly type: "uint256[]";
|
|
484
486
|
}];
|
|
485
487
|
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
486
488
|
readonly name: "storedInfo";
|
|
@@ -502,10 +504,6 @@ export declare const abi: readonly [{
|
|
|
502
504
|
readonly internalType: "uint256";
|
|
503
505
|
readonly name: "reward";
|
|
504
506
|
readonly type: "uint256";
|
|
505
|
-
}, {
|
|
506
|
-
readonly internalType: "uint256";
|
|
507
|
-
readonly name: "points";
|
|
508
|
-
readonly type: "uint256";
|
|
509
507
|
}];
|
|
510
508
|
readonly internalType: "struct Campaign.ParticipantInfoViewed";
|
|
511
509
|
readonly name: "viewedInfo";
|
|
@@ -542,10 +540,6 @@ export declare const abi: readonly [{
|
|
|
542
540
|
readonly internalType: "uint256";
|
|
543
541
|
readonly name: "reward";
|
|
544
542
|
readonly type: "uint256";
|
|
545
|
-
}, {
|
|
546
|
-
readonly internalType: "uint256";
|
|
547
|
-
readonly name: "points";
|
|
548
|
-
readonly type: "uint256";
|
|
549
543
|
}];
|
|
550
544
|
readonly stateMutability: "view";
|
|
551
545
|
readonly type: "function";
|
|
@@ -630,19 +624,6 @@ export declare const abi: readonly [{
|
|
|
630
624
|
readonly name: "getParticipantsInfoByRange";
|
|
631
625
|
readonly outputs: readonly [{
|
|
632
626
|
readonly components: readonly [{
|
|
633
|
-
readonly components: readonly [{
|
|
634
|
-
readonly internalType: "uint8";
|
|
635
|
-
readonly name: "totalDayAttempts";
|
|
636
|
-
readonly type: "uint8";
|
|
637
|
-
}, {
|
|
638
|
-
readonly internalType: "uint8";
|
|
639
|
-
readonly name: "totalValidatedLinks";
|
|
640
|
-
readonly type: "uint8";
|
|
641
|
-
}];
|
|
642
|
-
readonly internalType: "struct Campaign.DayParticipantInfo";
|
|
643
|
-
readonly name: "currentDayParticipantInfo";
|
|
644
|
-
readonly type: "tuple";
|
|
645
|
-
}, {
|
|
646
627
|
readonly components: readonly [{
|
|
647
628
|
readonly internalType: "bool";
|
|
648
629
|
readonly name: "isParticipantRegistered";
|
|
@@ -652,37 +633,9 @@ export declare const abi: readonly [{
|
|
|
652
633
|
readonly name: "isRewardClaimed";
|
|
653
634
|
readonly type: "bool";
|
|
654
635
|
}, {
|
|
655
|
-
readonly internalType: "
|
|
656
|
-
readonly name: "
|
|
657
|
-
readonly type: "
|
|
658
|
-
}, {
|
|
659
|
-
readonly internalType: "uint256";
|
|
660
|
-
readonly name: "referralsCount";
|
|
661
|
-
readonly type: "uint256";
|
|
662
|
-
}, {
|
|
663
|
-
readonly internalType: "int256";
|
|
664
|
-
readonly name: "totalReferrerProfit";
|
|
665
|
-
readonly type: "int256";
|
|
666
|
-
}, {
|
|
667
|
-
readonly internalType: "int256";
|
|
668
|
-
readonly name: "totalReferralsProfit";
|
|
669
|
-
readonly type: "int256";
|
|
670
|
-
}, {
|
|
671
|
-
readonly internalType: "uint256";
|
|
672
|
-
readonly name: "totalAddedLinks";
|
|
673
|
-
readonly type: "uint256";
|
|
674
|
-
}, {
|
|
675
|
-
readonly internalType: "uint256";
|
|
676
|
-
readonly name: "totalDuplicatedLinks";
|
|
677
|
-
readonly type: "uint256";
|
|
678
|
-
}, {
|
|
679
|
-
readonly internalType: "uint256";
|
|
680
|
-
readonly name: "totalValidatedLinks";
|
|
681
|
-
readonly type: "uint256";
|
|
682
|
-
}, {
|
|
683
|
-
readonly internalType: "uint256";
|
|
684
|
-
readonly name: "totalInvalidLinks";
|
|
685
|
-
readonly type: "uint256";
|
|
636
|
+
readonly internalType: "uint256[]";
|
|
637
|
+
readonly name: "migrationsIndexes";
|
|
638
|
+
readonly type: "uint256[]";
|
|
686
639
|
}];
|
|
687
640
|
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
688
641
|
readonly name: "storedInfo";
|
|
@@ -704,10 +657,6 @@ export declare const abi: readonly [{
|
|
|
704
657
|
readonly internalType: "uint256";
|
|
705
658
|
readonly name: "reward";
|
|
706
659
|
readonly type: "uint256";
|
|
707
|
-
}, {
|
|
708
|
-
readonly internalType: "uint256";
|
|
709
|
-
readonly name: "points";
|
|
710
|
-
readonly type: "uint256";
|
|
711
660
|
}];
|
|
712
661
|
readonly internalType: "struct Campaign.ParticipantInfoViewed";
|
|
713
662
|
readonly name: "viewedInfo";
|
|
@@ -733,6 +682,24 @@ export declare const abi: readonly [{
|
|
|
733
682
|
}];
|
|
734
683
|
readonly stateMutability: "view";
|
|
735
684
|
readonly type: "function";
|
|
685
|
+
}, {
|
|
686
|
+
readonly inputs: readonly [];
|
|
687
|
+
readonly name: "getStat";
|
|
688
|
+
readonly outputs: readonly [{
|
|
689
|
+
readonly internalType: "uint256";
|
|
690
|
+
readonly name: "totalMigrations";
|
|
691
|
+
readonly type: "uint256";
|
|
692
|
+
}, {
|
|
693
|
+
readonly internalType: "uint256";
|
|
694
|
+
readonly name: "_totalDeployedMigrations";
|
|
695
|
+
readonly type: "uint256";
|
|
696
|
+
}, {
|
|
697
|
+
readonly internalType: "uint256";
|
|
698
|
+
readonly name: "_totalNotDeployedMigrations";
|
|
699
|
+
readonly type: "uint256";
|
|
700
|
+
}];
|
|
701
|
+
readonly stateMutability: "view";
|
|
702
|
+
readonly type: "function";
|
|
736
703
|
}, {
|
|
737
704
|
readonly inputs: readonly [{
|
|
738
705
|
readonly internalType: "uint256";
|
|
@@ -765,19 +732,6 @@ export declare const abi: readonly [{
|
|
|
765
732
|
readonly name: "getTopParticipantsInfo";
|
|
766
733
|
readonly outputs: readonly [{
|
|
767
734
|
readonly components: readonly [{
|
|
768
|
-
readonly components: readonly [{
|
|
769
|
-
readonly internalType: "uint8";
|
|
770
|
-
readonly name: "totalDayAttempts";
|
|
771
|
-
readonly type: "uint8";
|
|
772
|
-
}, {
|
|
773
|
-
readonly internalType: "uint8";
|
|
774
|
-
readonly name: "totalValidatedLinks";
|
|
775
|
-
readonly type: "uint8";
|
|
776
|
-
}];
|
|
777
|
-
readonly internalType: "struct Campaign.DayParticipantInfo";
|
|
778
|
-
readonly name: "currentDayParticipantInfo";
|
|
779
|
-
readonly type: "tuple";
|
|
780
|
-
}, {
|
|
781
735
|
readonly components: readonly [{
|
|
782
736
|
readonly internalType: "bool";
|
|
783
737
|
readonly name: "isParticipantRegistered";
|
|
@@ -787,37 +741,9 @@ export declare const abi: readonly [{
|
|
|
787
741
|
readonly name: "isRewardClaimed";
|
|
788
742
|
readonly type: "bool";
|
|
789
743
|
}, {
|
|
790
|
-
readonly internalType: "
|
|
791
|
-
readonly name: "
|
|
792
|
-
readonly type: "
|
|
793
|
-
}, {
|
|
794
|
-
readonly internalType: "uint256";
|
|
795
|
-
readonly name: "referralsCount";
|
|
796
|
-
readonly type: "uint256";
|
|
797
|
-
}, {
|
|
798
|
-
readonly internalType: "int256";
|
|
799
|
-
readonly name: "totalReferrerProfit";
|
|
800
|
-
readonly type: "int256";
|
|
801
|
-
}, {
|
|
802
|
-
readonly internalType: "int256";
|
|
803
|
-
readonly name: "totalReferralsProfit";
|
|
804
|
-
readonly type: "int256";
|
|
805
|
-
}, {
|
|
806
|
-
readonly internalType: "uint256";
|
|
807
|
-
readonly name: "totalAddedLinks";
|
|
808
|
-
readonly type: "uint256";
|
|
809
|
-
}, {
|
|
810
|
-
readonly internalType: "uint256";
|
|
811
|
-
readonly name: "totalDuplicatedLinks";
|
|
812
|
-
readonly type: "uint256";
|
|
813
|
-
}, {
|
|
814
|
-
readonly internalType: "uint256";
|
|
815
|
-
readonly name: "totalValidatedLinks";
|
|
816
|
-
readonly type: "uint256";
|
|
817
|
-
}, {
|
|
818
|
-
readonly internalType: "uint256";
|
|
819
|
-
readonly name: "totalInvalidLinks";
|
|
820
|
-
readonly type: "uint256";
|
|
744
|
+
readonly internalType: "uint256[]";
|
|
745
|
+
readonly name: "migrationsIndexes";
|
|
746
|
+
readonly type: "uint256[]";
|
|
821
747
|
}];
|
|
822
748
|
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
823
749
|
readonly name: "storedInfo";
|
|
@@ -839,10 +765,6 @@ export declare const abi: readonly [{
|
|
|
839
765
|
readonly internalType: "uint256";
|
|
840
766
|
readonly name: "reward";
|
|
841
767
|
readonly type: "uint256";
|
|
842
|
-
}, {
|
|
843
|
-
readonly internalType: "uint256";
|
|
844
|
-
readonly name: "points";
|
|
845
|
-
readonly type: "uint256";
|
|
846
768
|
}];
|
|
847
769
|
readonly internalType: "struct Campaign.ParticipantInfoViewed";
|
|
848
770
|
readonly name: "viewedInfo";
|
|
@@ -854,6 +776,16 @@ export declare const abi: readonly [{
|
|
|
854
776
|
}];
|
|
855
777
|
readonly stateMutability: "view";
|
|
856
778
|
readonly type: "function";
|
|
779
|
+
}, {
|
|
780
|
+
readonly inputs: readonly [];
|
|
781
|
+
readonly name: "getTotalMigrations";
|
|
782
|
+
readonly outputs: readonly [{
|
|
783
|
+
readonly internalType: "uint256";
|
|
784
|
+
readonly name: "";
|
|
785
|
+
readonly type: "uint256";
|
|
786
|
+
}];
|
|
787
|
+
readonly stateMutability: "view";
|
|
788
|
+
readonly type: "function";
|
|
857
789
|
}, {
|
|
858
790
|
readonly inputs: readonly [];
|
|
859
791
|
readonly name: "getTotalParticipants";
|
|
@@ -898,18 +830,14 @@ export declare const abi: readonly [{
|
|
|
898
830
|
readonly type: "function";
|
|
899
831
|
}, {
|
|
900
832
|
readonly inputs: readonly [{
|
|
901
|
-
readonly internalType: "
|
|
902
|
-
readonly name: "
|
|
903
|
-
readonly type: "
|
|
833
|
+
readonly internalType: "address";
|
|
834
|
+
readonly name: "";
|
|
835
|
+
readonly type: "address";
|
|
904
836
|
}];
|
|
905
|
-
readonly name: "
|
|
837
|
+
readonly name: "isUniqueDstAddress";
|
|
906
838
|
readonly outputs: readonly [{
|
|
907
|
-
readonly internalType: "string";
|
|
908
|
-
readonly name: "clearedLink";
|
|
909
|
-
readonly type: "string";
|
|
910
|
-
}, {
|
|
911
839
|
readonly internalType: "bool";
|
|
912
|
-
readonly name: "
|
|
840
|
+
readonly name: "";
|
|
913
841
|
readonly type: "bool";
|
|
914
842
|
}];
|
|
915
843
|
readonly stateMutability: "view";
|
|
@@ -917,10 +845,28 @@ export declare const abi: readonly [{
|
|
|
917
845
|
}, {
|
|
918
846
|
readonly inputs: readonly [{
|
|
919
847
|
readonly internalType: "address";
|
|
920
|
-
readonly name: "
|
|
848
|
+
readonly name: "";
|
|
921
849
|
readonly type: "address";
|
|
922
850
|
}];
|
|
923
|
-
readonly name: "
|
|
851
|
+
readonly name: "isUniqueSrcAddress";
|
|
852
|
+
readonly outputs: readonly [{
|
|
853
|
+
readonly internalType: "bool";
|
|
854
|
+
readonly name: "";
|
|
855
|
+
readonly type: "bool";
|
|
856
|
+
}];
|
|
857
|
+
readonly stateMutability: "view";
|
|
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 name: "isUniqueSrcAddressByParticipant";
|
|
924
870
|
readonly outputs: readonly [{
|
|
925
871
|
readonly internalType: "bool";
|
|
926
872
|
readonly name: "";
|
|
@@ -928,13 +874,69 @@ export declare const abi: readonly [{
|
|
|
928
874
|
}];
|
|
929
875
|
readonly stateMutability: "view";
|
|
930
876
|
readonly type: "function";
|
|
877
|
+
}, {
|
|
878
|
+
readonly inputs: readonly [{
|
|
879
|
+
readonly internalType: "uint256";
|
|
880
|
+
readonly name: "";
|
|
881
|
+
readonly type: "uint256";
|
|
882
|
+
}];
|
|
883
|
+
readonly name: "migrations";
|
|
884
|
+
readonly outputs: readonly [{
|
|
885
|
+
readonly internalType: "address";
|
|
886
|
+
readonly name: "participant";
|
|
887
|
+
readonly type: "address";
|
|
888
|
+
}, {
|
|
889
|
+
readonly internalType: "uint16";
|
|
890
|
+
readonly name: "score";
|
|
891
|
+
readonly type: "uint16";
|
|
892
|
+
}, {
|
|
893
|
+
readonly internalType: "bool";
|
|
894
|
+
readonly name: "firstSourceMigration";
|
|
895
|
+
readonly type: "bool";
|
|
896
|
+
}, {
|
|
897
|
+
readonly internalType: "enum Campaign.MigrationNetwork";
|
|
898
|
+
readonly name: "sourceNetwork";
|
|
899
|
+
readonly type: "uint8";
|
|
900
|
+
}, {
|
|
901
|
+
readonly internalType: "enum Campaign.Status";
|
|
902
|
+
readonly name: "status";
|
|
903
|
+
readonly type: "uint8";
|
|
904
|
+
}, {
|
|
905
|
+
readonly internalType: "address";
|
|
906
|
+
readonly name: "sourceAddress";
|
|
907
|
+
readonly type: "address";
|
|
908
|
+
}, {
|
|
909
|
+
readonly internalType: "address";
|
|
910
|
+
readonly name: "destinationAddress";
|
|
911
|
+
readonly type: "address";
|
|
912
|
+
}, {
|
|
913
|
+
readonly internalType: "string";
|
|
914
|
+
readonly name: "sourceUrl";
|
|
915
|
+
readonly type: "string";
|
|
916
|
+
}, {
|
|
917
|
+
readonly internalType: "string";
|
|
918
|
+
readonly name: "destinationUrl";
|
|
919
|
+
readonly type: "string";
|
|
920
|
+
}];
|
|
921
|
+
readonly stateMutability: "view";
|
|
922
|
+
readonly type: "function";
|
|
931
923
|
}, {
|
|
932
924
|
readonly inputs: readonly [{
|
|
933
925
|
readonly internalType: "address";
|
|
934
|
-
readonly name: "
|
|
926
|
+
readonly name: "participant";
|
|
935
927
|
readonly type: "address";
|
|
936
928
|
}];
|
|
937
|
-
readonly name: "
|
|
929
|
+
readonly name: "participantExist";
|
|
930
|
+
readonly outputs: readonly [{
|
|
931
|
+
readonly internalType: "bool";
|
|
932
|
+
readonly name: "";
|
|
933
|
+
readonly type: "bool";
|
|
934
|
+
}];
|
|
935
|
+
readonly stateMutability: "view";
|
|
936
|
+
readonly type: "function";
|
|
937
|
+
}, {
|
|
938
|
+
readonly inputs: readonly [];
|
|
939
|
+
readonly name: "registry";
|
|
938
940
|
readonly outputs: readonly [];
|
|
939
941
|
readonly stateMutability: "nonpayable";
|
|
940
942
|
readonly type: "function";
|
|
@@ -976,6 +978,32 @@ export declare const abi: readonly [{
|
|
|
976
978
|
readonly outputs: readonly [];
|
|
977
979
|
readonly stateMutability: "nonpayable";
|
|
978
980
|
readonly type: "function";
|
|
981
|
+
}, {
|
|
982
|
+
readonly inputs: readonly [{
|
|
983
|
+
readonly internalType: "enum Campaign.MigrationNetwork";
|
|
984
|
+
readonly name: "srcNetwork";
|
|
985
|
+
readonly type: "uint8";
|
|
986
|
+
}, {
|
|
987
|
+
readonly internalType: "address";
|
|
988
|
+
readonly name: "srcAddress";
|
|
989
|
+
readonly type: "address";
|
|
990
|
+
}, {
|
|
991
|
+
readonly internalType: "address";
|
|
992
|
+
readonly name: "dstAddress";
|
|
993
|
+
readonly type: "address";
|
|
994
|
+
}, {
|
|
995
|
+
readonly internalType: "string";
|
|
996
|
+
readonly name: "srcUrl";
|
|
997
|
+
readonly type: "string";
|
|
998
|
+
}, {
|
|
999
|
+
readonly internalType: "string";
|
|
1000
|
+
readonly name: "dstUrl";
|
|
1001
|
+
readonly type: "string";
|
|
1002
|
+
}];
|
|
1003
|
+
readonly name: "submitMigration";
|
|
1004
|
+
readonly outputs: readonly [];
|
|
1005
|
+
readonly stateMutability: "nonpayable";
|
|
1006
|
+
readonly type: "function";
|
|
979
1007
|
}, {
|
|
980
1008
|
readonly inputs: readonly [{
|
|
981
1009
|
readonly internalType: "bytes4";
|
|
@@ -992,19 +1020,33 @@ export declare const abi: readonly [{
|
|
|
992
1020
|
readonly type: "function";
|
|
993
1021
|
}, {
|
|
994
1022
|
readonly inputs: readonly [{
|
|
1023
|
+
readonly internalType: "uint64";
|
|
1024
|
+
readonly name: "migrationIndex";
|
|
1025
|
+
readonly type: "uint64";
|
|
1026
|
+
}, {
|
|
1027
|
+
readonly internalType: "bool";
|
|
1028
|
+
readonly name: "isDeployed";
|
|
1029
|
+
readonly type: "bool";
|
|
1030
|
+
}, {
|
|
995
1031
|
readonly internalType: "uint256";
|
|
996
|
-
readonly name: "
|
|
1032
|
+
readonly name: "transactions";
|
|
997
1033
|
readonly type: "uint256";
|
|
1034
|
+
}];
|
|
1035
|
+
readonly name: "updateMigrationStatusByApp";
|
|
1036
|
+
readonly outputs: readonly [];
|
|
1037
|
+
readonly stateMutability: "nonpayable";
|
|
1038
|
+
readonly type: "function";
|
|
1039
|
+
}, {
|
|
1040
|
+
readonly inputs: readonly [{
|
|
1041
|
+
readonly internalType: "uint64";
|
|
1042
|
+
readonly name: "migrationIndex";
|
|
1043
|
+
readonly type: "uint64";
|
|
998
1044
|
}, {
|
|
999
|
-
readonly internalType: "
|
|
1000
|
-
readonly name: "
|
|
1001
|
-
readonly type: "
|
|
1002
|
-
}, {
|
|
1003
|
-
readonly internalType: "enum Campaign.Status";
|
|
1004
|
-
readonly name: "status";
|
|
1005
|
-
readonly type: "uint8";
|
|
1045
|
+
readonly internalType: "uint256";
|
|
1046
|
+
readonly name: "transactions";
|
|
1047
|
+
readonly type: "uint256";
|
|
1006
1048
|
}];
|
|
1007
|
-
readonly name: "
|
|
1049
|
+
readonly name: "updateMigrationTransactionsByApp";
|
|
1008
1050
|
readonly outputs: readonly [];
|
|
1009
1051
|
readonly stateMutability: "nonpayable";
|
|
1010
1052
|
readonly type: "function";
|