@super-protocol/sdk-js 3.12.0-beta.5 → 3.12.0-beta.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/Campaign.d.ts +191 -165
- package/dist/cjs/contracts/Campaign.js +232 -198
- package/dist/cjs/staticModels/Campaign.d.ts +10 -15
- package/dist/cjs/staticModels/Campaign.js +17 -21
- package/dist/cjs/types/Campaign.d.ts +23 -12
- package/dist/mjs/contracts/Campaign.d.ts +191 -165
- package/dist/mjs/contracts/Campaign.js +232 -198
- package/dist/mjs/staticModels/Campaign.d.ts +10 -15
- package/dist/mjs/staticModels/Campaign.js +17 -21
- package/dist/mjs/types/Campaign.d.ts +23 -12
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Contract, TransactionReceipt } from 'web3';
|
|
2
2
|
import { abi } from '../contracts/Campaign.js';
|
|
3
|
-
import { TransactionOptions, BlockInfo, Status,
|
|
3
|
+
import { TransactionOptions, BlockInfo, Status, ContentWithIndex, ParticipantInfo, LinksStat, ParticipantScore } from '../types/index.js';
|
|
4
4
|
declare class Campaign {
|
|
5
5
|
private static _addressHttps;
|
|
6
6
|
private static _addressWss;
|
|
@@ -17,22 +17,17 @@ declare class Campaign {
|
|
|
17
17
|
*/
|
|
18
18
|
private static checkInit;
|
|
19
19
|
private static getContract;
|
|
20
|
-
static
|
|
20
|
+
static isLinkUnique(link: string, contract?: Contract<typeof abi>): Promise<{
|
|
21
21
|
clearedLink: string;
|
|
22
|
-
|
|
22
|
+
isUnique: boolean;
|
|
23
23
|
}>;
|
|
24
|
-
static
|
|
25
|
-
static
|
|
26
|
-
static
|
|
27
|
-
static
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}>;
|
|
32
|
-
static getContentRange(from: number, to: number, status: Status, contract?: Contract<typeof abi>): Promise<Content[]>;
|
|
33
|
-
static getTotalPlayers(contract?: Contract<typeof abi>): Promise<Content[]>;
|
|
34
|
-
static getTopPlayers(count: number, contract?: Contract<typeof abi>): Promise<Content[]>;
|
|
35
|
-
static getPlayersAroundRank(centerRank: number, range: number, contract?: Contract<typeof abi>): Promise<Content[]>;
|
|
24
|
+
static getLinksStat(contract?: Contract<typeof abi>): Promise<LinksStat>;
|
|
25
|
+
static getParticipantInfo(participant: string, contract?: Contract<typeof abi>): Promise<ParticipantInfo>;
|
|
26
|
+
static getTopParticipantsInfo(count: number, contract?: Contract<typeof abi>): Promise<ParticipantInfo[]>;
|
|
27
|
+
static getContentRange(from: number, to: number, status: Status, contract?: Contract<typeof abi>): Promise<ContentWithIndex[]>;
|
|
28
|
+
static getTotalParticipants(contract?: Contract<typeof abi>): Promise<number>;
|
|
29
|
+
static getTopParticipants(count: number, contract?: Contract<typeof abi>): Promise<ParticipantScore[]>;
|
|
30
|
+
static getParticipantsAroundRank(centerRank: number, range: number, contract?: Contract<typeof abi>): Promise<ParticipantScore[]>;
|
|
36
31
|
static getContentCount(contract?: Contract<typeof abi>): Promise<number>;
|
|
37
32
|
static addContent(link: string, referrer: string, transactionOptions?: TransactionOptions, checkTxBeforeSend?: boolean): Promise<TransactionReceipt>;
|
|
38
33
|
static updateContent(index: number, contentHash: string, status: Status, transactionOptions?: TransactionOptions, checkTxBeforeSend?: boolean): Promise<TransactionReceipt>;
|
|
@@ -53,36 +53,32 @@ class Campaign {
|
|
|
53
53
|
static getContract(contract) {
|
|
54
54
|
return contract ? contract : Campaign.checkInit();
|
|
55
55
|
}
|
|
56
|
-
static async
|
|
57
|
-
return await this.getContract(contract).methods.
|
|
56
|
+
static async isLinkUnique(link, contract) {
|
|
57
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.isLinkUnique(link).call());
|
|
58
58
|
}
|
|
59
|
-
static async
|
|
60
|
-
return await this.getContract(contract).methods.
|
|
59
|
+
static async getLinksStat(contract) {
|
|
60
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getLinksStat().call());
|
|
61
61
|
}
|
|
62
|
-
static async
|
|
63
|
-
return await this.getContract(contract).methods.
|
|
62
|
+
static async getParticipantInfo(participant, contract) {
|
|
63
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getParticipantInfo(participant).call());
|
|
64
64
|
}
|
|
65
|
-
static async
|
|
66
|
-
|
|
67
|
-
return await transformedContract.methods.getStatsByPointsBatch(points).call();
|
|
68
|
-
}
|
|
69
|
-
static async getParticipantData(participant, contract) {
|
|
70
|
-
return await this.getContract(contract).methods.getParticipantData(participant).call();
|
|
65
|
+
static async getTopParticipantsInfo(count, contract) {
|
|
66
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getTopParticipantsInfo(count).call());
|
|
71
67
|
}
|
|
72
68
|
static async getContentRange(from, to, status, contract) {
|
|
73
|
-
return await this.getContract(contract).methods.getContentRange(from, to, status).call();
|
|
69
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getContentRange(from, to, status).call());
|
|
74
70
|
}
|
|
75
|
-
static async
|
|
76
|
-
return await this.getContract(contract).methods.
|
|
71
|
+
static async getTotalParticipants(contract) {
|
|
72
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getTotalParticipants().call());
|
|
77
73
|
}
|
|
78
|
-
static async
|
|
79
|
-
return await this.getContract(contract).methods.
|
|
74
|
+
static async getTopParticipants(count, contract) {
|
|
75
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getTopParticipants(count).call());
|
|
80
76
|
}
|
|
81
|
-
static async
|
|
82
|
-
return await this.getContract(contract).methods.
|
|
77
|
+
static async getParticipantsAroundRank(centerRank, range, contract) {
|
|
78
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getParticipantsAroundRank(centerRank, range).call());
|
|
83
79
|
}
|
|
84
80
|
static async getContentCount(contract) {
|
|
85
|
-
return await this.getContract(contract).methods.getContentCount().call();
|
|
81
|
+
return (0, helper_js_1.cleanWeb3Data)(await this.getContract(contract).methods.getContentCount().call());
|
|
86
82
|
}
|
|
87
83
|
static async addContent(link, referrer, transactionOptions, checkTxBeforeSend = false) {
|
|
88
84
|
const contract = this.checkInit();
|
|
@@ -144,4 +140,4 @@ class Campaign {
|
|
|
144
140
|
}
|
|
145
141
|
}
|
|
146
142
|
exports.default = Campaign;
|
|
147
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
143
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2FtcGFpZ24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvc3RhdGljTW9kZWxzL0NhbXBhaWduLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQ0EsNkRBQXNDO0FBQ3RDLDBEQUErQztBQUMvQywyREFBZ0M7QUFDaEMsa0RBQW9GO0FBV3BGLHlFQUE4QztBQUM5QyxxREFBa0U7QUFNbEUsTUFBTSxRQUFRO0lBQ0osTUFBTSxDQUFDLGFBQWEsQ0FBUztJQUM3QixNQUFNLENBQUMsV0FBVyxDQUFTO0lBQzNCLE1BQU0sQ0FBQyxhQUFhLENBQXdCO0lBQzVDLE1BQU0sQ0FBQyxXQUFXLENBQXdCO0lBQzFDLE1BQU0sQ0FBVSxNQUFNLEdBQUcsbUJBQVUsQ0FBQyxLQUFLLENBQUMsRUFBRSxTQUFTLEVBQUUsVUFBVSxFQUFFLENBQUMsQ0FBQztJQUV0RSxNQUFNLEtBQUssWUFBWTtRQUM1QixPQUFPLFFBQVEsQ0FBQyxhQUFhLENBQUM7SUFDaEMsQ0FBQztJQUVNLE1BQU0sS0FBSyxZQUFZLENBQUMsVUFBa0I7UUFDL0MsUUFBUSxDQUFDLGFBQWEsR0FBRyxVQUFVLENBQUM7UUFDcEMsTUFBTSxDQUFDLGFBQWEsRUFBRSxXQUFXLENBQUMsR0FBRyxRQUFR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UEseUJBQWEsRUFBQyxLQUFLLENBQUMsWUFBWSxDQUFDLENBQUM7WUFDdEQsUUFBUSxDQUFTLFdBQVcsQ0FBQyxLQUFLLEVBQVUsV0FBVyxDQUFDLE1BQU0sRUFBRTtnQkFDOUQsS0FBSyxFQUFFLE1BQU0sQ0FBQyxLQUFLLENBQUMsV0FBVyxDQUFDO2dCQUNoQyxJQUFJLEVBQVUsS0FBSyxDQUFDLFNBQVM7YUFDOUIsQ0FBQyxDQUFDO1FBQ0wsQ0FBQyxDQUFDO1FBQ0YsTUFBTSxPQUFPLEdBQTZCLENBQUMsS0FBWSxFQUFFLEVBQUU7WUFDekQsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNyQixDQUFDLENBQUM7UUFDRixNQUFNLFFBQVEsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFDLElBQUksQ0FBQyxDQUFDO1FBRXRDLE9BQU8sUUFBUSxDQUFDLGNBQWMsQ0FBQztZQUM3QixPQUFPO1lBQ1AsTUFBTTtZQUNOLEtBQUssRUFBRSxnQkFBZ0I7WUFDdkIsUUFBUSxFQUFFLFFBQVE7U0FDbkIsQ0FBQyxDQUFDO0lBQ0wsQ0FBQzs7QUFhSCxrQkFBZSxRQUFRLENBQUMifQ==
|
|
@@ -4,20 +4,23 @@ export declare enum Status {
|
|
|
4
4
|
NotValid = 2,
|
|
5
5
|
Duplicate = 3
|
|
6
6
|
}
|
|
7
|
-
export type
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
export type LinksStat = {
|
|
8
|
+
totalAddedLinks: number;
|
|
9
|
+
totalDuplicatedLinks: number;
|
|
10
|
+
totalValidatedLinks: number;
|
|
11
|
+
totalInvalidLinks: number;
|
|
11
12
|
};
|
|
12
|
-
export type
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
export type ParticipantInfo = {
|
|
14
|
+
nextAttemptTs: number;
|
|
15
|
+
totalDayAttempts: number;
|
|
15
16
|
referrer: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
referralsCount: number;
|
|
18
|
+
totalAddedLinks: number;
|
|
19
|
+
totalDuplicatedLinks: number;
|
|
20
|
+
totalValidatedLinks: number;
|
|
21
|
+
totalInvalidLinks: number;
|
|
22
|
+
rank: number;
|
|
23
|
+
score: number;
|
|
21
24
|
};
|
|
22
25
|
export type Content = {
|
|
23
26
|
status: Status;
|
|
@@ -25,3 +28,11 @@ export type Content = {
|
|
|
25
28
|
link: string;
|
|
26
29
|
contentHash: string;
|
|
27
30
|
};
|
|
31
|
+
export type ContentWithIndex = {
|
|
32
|
+
content: Content;
|
|
33
|
+
index: number;
|
|
34
|
+
};
|
|
35
|
+
export type ParticipantScore = {
|
|
36
|
+
participant: string;
|
|
37
|
+
score: number;
|
|
38
|
+
};
|
|
@@ -94,23 +94,18 @@ export declare const abi: readonly [{
|
|
|
94
94
|
readonly inputs: readonly [{
|
|
95
95
|
readonly indexed: true;
|
|
96
96
|
readonly internalType: "address";
|
|
97
|
-
readonly name: "
|
|
97
|
+
readonly name: "participant";
|
|
98
98
|
readonly type: "address";
|
|
99
99
|
}, {
|
|
100
100
|
readonly indexed: false;
|
|
101
|
-
readonly internalType: "
|
|
101
|
+
readonly internalType: "int256";
|
|
102
102
|
readonly name: "oldScore";
|
|
103
|
-
readonly type: "
|
|
103
|
+
readonly type: "int256";
|
|
104
104
|
}, {
|
|
105
105
|
readonly indexed: false;
|
|
106
|
-
readonly internalType: "
|
|
106
|
+
readonly internalType: "int256";
|
|
107
107
|
readonly name: "newScore";
|
|
108
|
-
readonly type: "
|
|
109
|
-
}, {
|
|
110
|
-
readonly indexed: false;
|
|
111
|
-
readonly internalType: "uint256";
|
|
112
|
-
readonly name: "newRank";
|
|
113
|
-
readonly type: "uint256";
|
|
108
|
+
readonly type: "int256";
|
|
114
109
|
}];
|
|
115
110
|
readonly name: "ScoreUpdated";
|
|
116
111
|
readonly type: "event";
|
|
@@ -128,6 +123,16 @@ export declare const abi: readonly [{
|
|
|
128
123
|
readonly outputs: readonly [];
|
|
129
124
|
readonly stateMutability: "nonpayable";
|
|
130
125
|
readonly type: "function";
|
|
126
|
+
}, {
|
|
127
|
+
readonly inputs: readonly [];
|
|
128
|
+
readonly name: "competitionActive";
|
|
129
|
+
readonly outputs: readonly [{
|
|
130
|
+
readonly internalType: "bool";
|
|
131
|
+
readonly name: "";
|
|
132
|
+
readonly type: "bool";
|
|
133
|
+
}];
|
|
134
|
+
readonly stateMutability: "view";
|
|
135
|
+
readonly type: "function";
|
|
131
136
|
}, {
|
|
132
137
|
readonly inputs: readonly [];
|
|
133
138
|
readonly name: "getContentCount";
|
|
@@ -155,25 +160,84 @@ export declare const abi: readonly [{
|
|
|
155
160
|
readonly name: "getContentRange";
|
|
156
161
|
readonly outputs: readonly [{
|
|
157
162
|
readonly components: readonly [{
|
|
158
|
-
readonly
|
|
159
|
-
|
|
160
|
-
|
|
163
|
+
readonly components: readonly [{
|
|
164
|
+
readonly internalType: "enum Campaign.Status";
|
|
165
|
+
readonly name: "status";
|
|
166
|
+
readonly type: "uint8";
|
|
167
|
+
}, {
|
|
168
|
+
readonly internalType: "address";
|
|
169
|
+
readonly name: "participant";
|
|
170
|
+
readonly type: "address";
|
|
171
|
+
}, {
|
|
172
|
+
readonly internalType: "string";
|
|
173
|
+
readonly name: "link";
|
|
174
|
+
readonly type: "string";
|
|
175
|
+
}, {
|
|
176
|
+
readonly internalType: "bytes32";
|
|
177
|
+
readonly name: "contentHash";
|
|
178
|
+
readonly type: "bytes32";
|
|
179
|
+
}];
|
|
180
|
+
readonly internalType: "struct Campaign.Content";
|
|
181
|
+
readonly name: "content";
|
|
182
|
+
readonly type: "tuple";
|
|
183
|
+
}, {
|
|
184
|
+
readonly internalType: "uint256";
|
|
185
|
+
readonly name: "index";
|
|
186
|
+
readonly type: "uint256";
|
|
187
|
+
}];
|
|
188
|
+
readonly internalType: "struct Campaign.ContentWithIndex[]";
|
|
189
|
+
readonly name: "result";
|
|
190
|
+
readonly type: "tuple[]";
|
|
191
|
+
}];
|
|
192
|
+
readonly stateMutability: "view";
|
|
193
|
+
readonly type: "function";
|
|
194
|
+
}, {
|
|
195
|
+
readonly inputs: readonly [];
|
|
196
|
+
readonly name: "getLinksStat";
|
|
197
|
+
readonly outputs: readonly [{
|
|
198
|
+
readonly components: readonly [{
|
|
199
|
+
readonly internalType: "uint256";
|
|
200
|
+
readonly name: "totalAddedLinks";
|
|
201
|
+
readonly type: "uint256";
|
|
202
|
+
}, {
|
|
203
|
+
readonly internalType: "uint256";
|
|
204
|
+
readonly name: "totalDuplicatedLinks";
|
|
205
|
+
readonly type: "uint256";
|
|
161
206
|
}, {
|
|
207
|
+
readonly internalType: "uint256";
|
|
208
|
+
readonly name: "totalValidatedLinks";
|
|
209
|
+
readonly type: "uint256";
|
|
210
|
+
}, {
|
|
211
|
+
readonly internalType: "uint256";
|
|
212
|
+
readonly name: "totalInvalidLinks";
|
|
213
|
+
readonly type: "uint256";
|
|
214
|
+
}];
|
|
215
|
+
readonly internalType: "struct Campaign.LinksStat";
|
|
216
|
+
readonly name: "output";
|
|
217
|
+
readonly type: "tuple";
|
|
218
|
+
}];
|
|
219
|
+
readonly stateMutability: "view";
|
|
220
|
+
readonly type: "function";
|
|
221
|
+
}, {
|
|
222
|
+
readonly inputs: readonly [{
|
|
223
|
+
readonly internalType: "uint256";
|
|
224
|
+
readonly name: "rank";
|
|
225
|
+
readonly type: "uint256";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "getParticipantByRank";
|
|
228
|
+
readonly outputs: readonly [{
|
|
229
|
+
readonly components: readonly [{
|
|
162
230
|
readonly internalType: "address";
|
|
163
231
|
readonly name: "participant";
|
|
164
232
|
readonly type: "address";
|
|
165
233
|
}, {
|
|
166
|
-
readonly internalType: "
|
|
167
|
-
readonly name: "
|
|
168
|
-
readonly type: "
|
|
169
|
-
}, {
|
|
170
|
-
readonly internalType: "bytes32";
|
|
171
|
-
readonly name: "contentHash";
|
|
172
|
-
readonly type: "bytes32";
|
|
234
|
+
readonly internalType: "int256";
|
|
235
|
+
readonly name: "score";
|
|
236
|
+
readonly type: "int256";
|
|
173
237
|
}];
|
|
174
|
-
readonly internalType: "struct
|
|
175
|
-
readonly name: "
|
|
176
|
-
readonly type: "tuple
|
|
238
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore";
|
|
239
|
+
readonly name: "";
|
|
240
|
+
readonly type: "tuple";
|
|
177
241
|
}];
|
|
178
242
|
readonly stateMutability: "view";
|
|
179
243
|
readonly type: "function";
|
|
@@ -183,76 +247,62 @@ export declare const abi: readonly [{
|
|
|
183
247
|
readonly name: "participant";
|
|
184
248
|
readonly type: "address";
|
|
185
249
|
}];
|
|
186
|
-
readonly name: "
|
|
250
|
+
readonly name: "getParticipantInfo";
|
|
187
251
|
readonly outputs: readonly [{
|
|
188
252
|
readonly components: readonly [{
|
|
253
|
+
readonly internalType: "uint32";
|
|
254
|
+
readonly name: "nextAttemptTs";
|
|
255
|
+
readonly type: "uint32";
|
|
256
|
+
}, {
|
|
257
|
+
readonly internalType: "uint8";
|
|
258
|
+
readonly name: "totalDayAttempts";
|
|
259
|
+
readonly type: "uint8";
|
|
260
|
+
}, {
|
|
189
261
|
readonly internalType: "address";
|
|
190
262
|
readonly name: "referrer";
|
|
191
263
|
readonly type: "address";
|
|
192
264
|
}, {
|
|
193
|
-
readonly internalType: "
|
|
194
|
-
readonly name: "
|
|
195
|
-
readonly type: "
|
|
265
|
+
readonly internalType: "uint256";
|
|
266
|
+
readonly name: "referralsCount";
|
|
267
|
+
readonly type: "uint256";
|
|
196
268
|
}, {
|
|
197
|
-
readonly internalType: "
|
|
198
|
-
readonly name: "
|
|
199
|
-
readonly type: "
|
|
269
|
+
readonly internalType: "uint256";
|
|
270
|
+
readonly name: "totalAddedLinks";
|
|
271
|
+
readonly type: "uint256";
|
|
200
272
|
}, {
|
|
201
273
|
readonly internalType: "uint256";
|
|
202
|
-
readonly name: "
|
|
274
|
+
readonly name: "totalDuplicatedLinks";
|
|
203
275
|
readonly type: "uint256";
|
|
204
276
|
}, {
|
|
205
277
|
readonly internalType: "uint256";
|
|
206
|
-
readonly name: "
|
|
278
|
+
readonly name: "totalValidatedLinks";
|
|
207
279
|
readonly type: "uint256";
|
|
208
280
|
}, {
|
|
209
281
|
readonly internalType: "uint256";
|
|
210
|
-
readonly name: "
|
|
282
|
+
readonly name: "totalInvalidLinks";
|
|
211
283
|
readonly type: "uint256";
|
|
212
284
|
}, {
|
|
213
285
|
readonly internalType: "uint256";
|
|
214
|
-
readonly name: "
|
|
286
|
+
readonly name: "rank";
|
|
215
287
|
readonly type: "uint256";
|
|
288
|
+
}, {
|
|
289
|
+
readonly internalType: "int256";
|
|
290
|
+
readonly name: "score";
|
|
291
|
+
readonly type: "int256";
|
|
216
292
|
}];
|
|
217
|
-
readonly internalType: "struct Campaign.
|
|
293
|
+
readonly internalType: "struct Campaign.ParticipantInfo";
|
|
218
294
|
readonly name: "data";
|
|
219
295
|
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
296
|
}];
|
|
247
297
|
readonly stateMutability: "view";
|
|
248
298
|
readonly type: "function";
|
|
249
299
|
}, {
|
|
250
300
|
readonly inputs: readonly [{
|
|
251
301
|
readonly internalType: "address";
|
|
252
|
-
readonly name: "
|
|
302
|
+
readonly name: "participant";
|
|
253
303
|
readonly type: "address";
|
|
254
304
|
}];
|
|
255
|
-
readonly name: "
|
|
305
|
+
readonly name: "getParticipantRank";
|
|
256
306
|
readonly outputs: readonly [{
|
|
257
307
|
readonly internalType: "uint256";
|
|
258
308
|
readonly name: "rank";
|
|
@@ -263,14 +313,14 @@ export declare const abi: readonly [{
|
|
|
263
313
|
}, {
|
|
264
314
|
readonly inputs: readonly [{
|
|
265
315
|
readonly internalType: "address";
|
|
266
|
-
readonly name: "
|
|
316
|
+
readonly name: "participant";
|
|
267
317
|
readonly type: "address";
|
|
268
318
|
}];
|
|
269
|
-
readonly name: "
|
|
319
|
+
readonly name: "getParticipantScore";
|
|
270
320
|
readonly outputs: readonly [{
|
|
271
|
-
readonly internalType: "
|
|
321
|
+
readonly internalType: "int256";
|
|
272
322
|
readonly name: "score";
|
|
273
|
-
readonly type: "
|
|
323
|
+
readonly type: "int256";
|
|
274
324
|
}];
|
|
275
325
|
readonly stateMutability: "view";
|
|
276
326
|
readonly type: "function";
|
|
@@ -284,66 +334,43 @@ export declare const abi: readonly [{
|
|
|
284
334
|
readonly name: "range";
|
|
285
335
|
readonly type: "uint256";
|
|
286
336
|
}];
|
|
287
|
-
readonly name: "
|
|
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[]";
|
|
296
|
-
}];
|
|
297
|
-
readonly stateMutability: "view";
|
|
298
|
-
readonly type: "function";
|
|
299
|
-
}, {
|
|
300
|
-
readonly inputs: readonly [];
|
|
301
|
-
readonly name: "getStat";
|
|
337
|
+
readonly name: "getParticipantsAroundRank";
|
|
302
338
|
readonly outputs: readonly [{
|
|
303
339
|
readonly components: readonly [{
|
|
304
|
-
readonly internalType: "
|
|
305
|
-
readonly name: "
|
|
306
|
-
readonly type: "
|
|
307
|
-
}, {
|
|
308
|
-
readonly internalType: "uint256";
|
|
309
|
-
readonly name: "totalValidLinksCount";
|
|
310
|
-
readonly type: "uint256";
|
|
340
|
+
readonly internalType: "address";
|
|
341
|
+
readonly name: "participant";
|
|
342
|
+
readonly type: "address";
|
|
311
343
|
}, {
|
|
312
|
-
readonly internalType: "
|
|
313
|
-
readonly name: "
|
|
314
|
-
readonly type: "
|
|
344
|
+
readonly internalType: "int256";
|
|
345
|
+
readonly name: "score";
|
|
346
|
+
readonly type: "int256";
|
|
315
347
|
}];
|
|
316
|
-
readonly internalType: "struct
|
|
317
|
-
readonly name: "";
|
|
318
|
-
readonly type: "tuple";
|
|
319
|
-
}];
|
|
320
|
-
readonly stateMutability: "view";
|
|
321
|
-
readonly type: "function";
|
|
322
|
-
}, {
|
|
323
|
-
readonly inputs: readonly [{
|
|
324
|
-
readonly internalType: "int256";
|
|
325
|
-
readonly name: "pointCount";
|
|
326
|
-
readonly type: "int256";
|
|
327
|
-
}];
|
|
328
|
-
readonly name: "getStatsByPoints";
|
|
329
|
-
readonly outputs: readonly [{
|
|
330
|
-
readonly internalType: "address[]";
|
|
331
|
-
readonly name: "";
|
|
332
|
-
readonly type: "address[]";
|
|
348
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
349
|
+
readonly name: "participants";
|
|
350
|
+
readonly type: "tuple[]";
|
|
333
351
|
}];
|
|
334
352
|
readonly stateMutability: "view";
|
|
335
353
|
readonly type: "function";
|
|
336
354
|
}, {
|
|
337
355
|
readonly inputs: readonly [{
|
|
338
|
-
readonly internalType: "
|
|
339
|
-
readonly name: "
|
|
340
|
-
readonly type: "
|
|
356
|
+
readonly internalType: "uint256";
|
|
357
|
+
readonly name: "count";
|
|
358
|
+
readonly type: "uint256";
|
|
341
359
|
}];
|
|
342
|
-
readonly name: "
|
|
360
|
+
readonly name: "getTopParticipants";
|
|
343
361
|
readonly outputs: readonly [{
|
|
344
|
-
readonly
|
|
345
|
-
|
|
346
|
-
|
|
362
|
+
readonly components: readonly [{
|
|
363
|
+
readonly internalType: "address";
|
|
364
|
+
readonly name: "participant";
|
|
365
|
+
readonly type: "address";
|
|
366
|
+
}, {
|
|
367
|
+
readonly internalType: "int256";
|
|
368
|
+
readonly name: "score";
|
|
369
|
+
readonly type: "int256";
|
|
370
|
+
}];
|
|
371
|
+
readonly internalType: "struct AVLTreeLib.ParticipantScore[]";
|
|
372
|
+
readonly name: "participants";
|
|
373
|
+
readonly type: "tuple[]";
|
|
347
374
|
}];
|
|
348
375
|
readonly stateMutability: "view";
|
|
349
376
|
readonly type: "function";
|
|
@@ -353,21 +380,58 @@ export declare const abi: readonly [{
|
|
|
353
380
|
readonly name: "count";
|
|
354
381
|
readonly type: "uint256";
|
|
355
382
|
}];
|
|
356
|
-
readonly name: "
|
|
383
|
+
readonly name: "getTopParticipantsInfo";
|
|
357
384
|
readonly outputs: readonly [{
|
|
358
|
-
readonly
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
385
|
+
readonly components: readonly [{
|
|
386
|
+
readonly internalType: "uint32";
|
|
387
|
+
readonly name: "nextAttemptTs";
|
|
388
|
+
readonly type: "uint32";
|
|
389
|
+
}, {
|
|
390
|
+
readonly internalType: "uint8";
|
|
391
|
+
readonly name: "totalDayAttempts";
|
|
392
|
+
readonly type: "uint8";
|
|
393
|
+
}, {
|
|
394
|
+
readonly internalType: "address";
|
|
395
|
+
readonly name: "referrer";
|
|
396
|
+
readonly type: "address";
|
|
397
|
+
}, {
|
|
398
|
+
readonly internalType: "uint256";
|
|
399
|
+
readonly name: "referralsCount";
|
|
400
|
+
readonly type: "uint256";
|
|
401
|
+
}, {
|
|
402
|
+
readonly internalType: "uint256";
|
|
403
|
+
readonly name: "totalAddedLinks";
|
|
404
|
+
readonly type: "uint256";
|
|
405
|
+
}, {
|
|
406
|
+
readonly internalType: "uint256";
|
|
407
|
+
readonly name: "totalDuplicatedLinks";
|
|
408
|
+
readonly type: "uint256";
|
|
409
|
+
}, {
|
|
410
|
+
readonly internalType: "uint256";
|
|
411
|
+
readonly name: "totalValidatedLinks";
|
|
412
|
+
readonly type: "uint256";
|
|
413
|
+
}, {
|
|
414
|
+
readonly internalType: "uint256";
|
|
415
|
+
readonly name: "totalInvalidLinks";
|
|
416
|
+
readonly type: "uint256";
|
|
417
|
+
}, {
|
|
418
|
+
readonly internalType: "uint256";
|
|
419
|
+
readonly name: "rank";
|
|
420
|
+
readonly type: "uint256";
|
|
421
|
+
}, {
|
|
422
|
+
readonly internalType: "int256";
|
|
423
|
+
readonly name: "score";
|
|
424
|
+
readonly type: "int256";
|
|
425
|
+
}];
|
|
426
|
+
readonly internalType: "struct Campaign.ParticipantInfo[]";
|
|
427
|
+
readonly name: "datas";
|
|
428
|
+
readonly type: "tuple[]";
|
|
365
429
|
}];
|
|
366
430
|
readonly stateMutability: "view";
|
|
367
431
|
readonly type: "function";
|
|
368
432
|
}, {
|
|
369
433
|
readonly inputs: readonly [];
|
|
370
|
-
readonly name: "
|
|
434
|
+
readonly name: "getTotalParticipants";
|
|
371
435
|
readonly outputs: readonly [{
|
|
372
436
|
readonly internalType: "uint256";
|
|
373
437
|
readonly name: "count";
|
|
@@ -381,14 +445,14 @@ export declare const abi: readonly [{
|
|
|
381
445
|
readonly name: "link";
|
|
382
446
|
readonly type: "string";
|
|
383
447
|
}];
|
|
384
|
-
readonly name: "
|
|
448
|
+
readonly name: "isLinkUnique";
|
|
385
449
|
readonly outputs: readonly [{
|
|
386
450
|
readonly internalType: "string";
|
|
387
451
|
readonly name: "clearedLink";
|
|
388
452
|
readonly type: "string";
|
|
389
453
|
}, {
|
|
390
454
|
readonly internalType: "bool";
|
|
391
|
-
readonly name: "
|
|
455
|
+
readonly name: "isUnique";
|
|
392
456
|
readonly type: "bool";
|
|
393
457
|
}];
|
|
394
458
|
readonly stateMutability: "view";
|
|
@@ -433,44 +497,6 @@ export declare const abi: readonly [{
|
|
|
433
497
|
}];
|
|
434
498
|
readonly stateMutability: "view";
|
|
435
499
|
readonly type: "function";
|
|
436
|
-
}, {
|
|
437
|
-
readonly inputs: readonly [{
|
|
438
|
-
readonly internalType: "address";
|
|
439
|
-
readonly name: "";
|
|
440
|
-
readonly type: "address";
|
|
441
|
-
}];
|
|
442
|
-
readonly name: "participantData";
|
|
443
|
-
readonly outputs: readonly [{
|
|
444
|
-
readonly internalType: "address";
|
|
445
|
-
readonly name: "referrer";
|
|
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";
|
|
471
|
-
}];
|
|
472
|
-
readonly stateMutability: "view";
|
|
473
|
-
readonly type: "function";
|
|
474
500
|
}, {
|
|
475
501
|
readonly inputs: readonly [];
|
|
476
502
|
readonly name: "renounceOwnership";
|