@typus/typus-sdk 1.0.50 → 1.0.52

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.
@@ -137,7 +137,7 @@ function getDepositorLeaderBoard(start, end, step) {
137
137
  case 3:
138
138
  data = _a.sent();
139
139
  samples = data.results[0].matrix.samples;
140
- len_1 = samples.reduce(function (acc, curr) { return (acc > curr.values.length ? acc : curr.values.length); }, 0);
140
+ len_1 = samples.reduce(function (acc, curr) { return (acc > curr.values.length ? acc : curr.values.length); }, 0) - 1;
141
141
  leader_board = samples
142
142
  .map(function (element) {
143
143
  // console.log("metric:", element.metric, "values: ", element.values);
@@ -268,19 +268,7 @@ function getBidderLeaderBoard(startTimestamp, end) {
268
268
  }
269
269
  exports.getBidderLeaderBoard = getBidderLeaderBoard;
270
270
  (function () { return __awaiter(void 0, void 0, void 0, function () {
271
- var _a, _b, _c, _d;
272
- return __generator(this, function (_e) {
273
- switch (_e.label) {
274
- case 0:
275
- _b = (_a = console).log;
276
- return [4 /*yield*/, getDepositorLeaderBoard("1684886400")];
277
- case 1:
278
- _b.apply(_a, [_e.sent()]);
279
- _d = (_c = console).log;
280
- return [4 /*yield*/, getBidderLeaderBoard("1684886400")];
281
- case 2:
282
- _d.apply(_c, [_e.sent()]);
283
- return [2 /*return*/];
284
- }
271
+ return __generator(this, function (_a) {
272
+ return [2 /*return*/];
285
273
  });
286
274
  }); })();
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@typus/typus-sdk",
3
3
  "author": "Typus",
4
4
  "description": "typus sdk",
5
- "version": "1.0.50",
5
+ "version": "1.0.52",
6
6
  "dependencies": {
7
7
  "@mysten/sui.js": "^0.34.0",
8
8
  "@types/node": "^17.0.0",