@typus/typus-sdk 1.2.37-exp → 1.2.38-exp
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.
|
@@ -9,6 +9,6 @@ export interface ExpLeaderBoard {
|
|
|
9
9
|
total_exp_earn: number;
|
|
10
10
|
owner: string | undefined;
|
|
11
11
|
}
|
|
12
|
-
export declare function getExpLeaderBoardWithOwner(expLeaderBoard: ExpLeaderBoard[], ownerMap: Map<string, string>):
|
|
12
|
+
export declare function getExpLeaderBoardWithOwner(expLeaderBoard: ExpLeaderBoard[], ownerMap: Map<string, string>): ExpLeaderBoard[];
|
|
13
13
|
export declare function getExpLeaderBoard(startTimestamp: string, endTimestamp?: string): Promise<ExpLeaderBoard[]>;
|
|
14
14
|
export {};
|
|
@@ -268,13 +268,9 @@ function getBidderLeaderBoard(startTimestamp, end) {
|
|
|
268
268
|
}
|
|
269
269
|
exports.getBidderLeaderBoard = getBidderLeaderBoard;
|
|
270
270
|
function getExpLeaderBoardWithOwner(expLeaderBoard, ownerMap) {
|
|
271
|
-
return
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
l.owner = ownerMap.get(l.nft_id);
|
|
275
|
-
return l;
|
|
276
|
-
})];
|
|
277
|
-
});
|
|
271
|
+
return expLeaderBoard.map(function (l) {
|
|
272
|
+
l.owner = ownerMap.get(l.nft_id);
|
|
273
|
+
return l;
|
|
278
274
|
});
|
|
279
275
|
}
|
|
280
276
|
exports.getExpLeaderBoardWithOwner = getExpLeaderBoardWithOwner;
|
|
@@ -327,15 +323,3 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
|
|
|
327
323
|
});
|
|
328
324
|
}
|
|
329
325
|
exports.getExpLeaderBoard = getExpLeaderBoard;
|
|
330
|
-
(function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
331
|
-
var res;
|
|
332
|
-
return __generator(this, function (_a) {
|
|
333
|
-
switch (_a.label) {
|
|
334
|
-
case 0: return [4 /*yield*/, getExpLeaderBoard("1709539200", "1709625600")];
|
|
335
|
-
case 1:
|
|
336
|
-
res = _a.sent();
|
|
337
|
-
console.log(res);
|
|
338
|
-
return [2 /*return*/];
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
}); })();
|