@typus/typus-sdk 1.2.38 → 1.2.39-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.
package/lib/mainnet.json CHANGED
@@ -30,12 +30,12 @@
30
30
  "SCALLOP_MARKET": "0xa757975255146dc9686aa823b7838b507f315d704f428cbadad2f4ea061939d9",
31
31
  "SCALLOP_REWARD_POOL_FOR_SUI": "0x162250ef72393a4ad3d46294c4e1bdfcb03f04c869d390e7efbfc995353a7ee9",
32
32
  "SCALLOP_REWARD_POOL_FOR_USDC": "0xf4268cc9b9413b9bfe09e8966b8de650494c9e5784bf0930759cfef4904daff8",
33
- "VERSION": "2.18.13",
33
+ "VERSION": "2.18.12",
34
34
  "EXP_GUESS_PACKAGE": "0x32d670520a10a87b8c042d2259c2d1f7c319329bafcf6f893ad9aaf01a43db8b",
35
35
  "EXP_GUESS_PACKAGE_ORIGIN": "0x32d670520a10a87b8c042d2259c2d1f7c319329bafcf6f893ad9aaf01a43db8b",
36
36
  "EXP_GUESS_REGISTRY": "0x70c6cbe6764b315cee1b24f483a0fc8307f047f1fab2a0d4438624845e6ba3f2",
37
37
  "FRAMEWORK_PACKAGE": "0xb4f25230ba74837d8299e92951306100c4a532e8c48cc3d8828abe9b91c8b274",
38
- "SINGLE_COLLATERAL_PACKAGE": "0xb12e58dee672ad3161e023ac2315e2d39866fbf0960abcb1ce755f24f5578b59",
38
+ "SINGLE_COLLATERAL_PACKAGE": "0x05b81d86deb99c33a46042ee92a0e6665cea64dffa3ad23a114ce08f449b8bdb",
39
39
  "SINGLE_COLLATERAL_PACKAGE_ORIGIN": "0x321848bf1ae327a9e022ccb3701940191e02fa193ab160d9c0e49cd3c003de3a",
40
40
  "SINGLE_COLLATERAL_REGISTRY": "0x3d70b09359e3ca8301ae0abeda4f2fdf72ce313ba58c919ce568e5f535fd2ea8",
41
41
  "SINGLE_COLLATERAL_PORTFOLIO_VAULT_REGISTRY": "0xa1a186d050e3172ef4701c16048c99b11f785969874fa2642b9cbcf59cde7fc0",
@@ -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>): Promise<ExpLeaderBoard[]>;
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 __awaiter(this, void 0, void 0, function () {
272
- return __generator(this, function (_a) {
273
- return [2 /*return*/, expLeaderBoard.map(function (l) {
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,7 +323,3 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
327
323
  });
328
324
  }
329
325
  exports.getExpLeaderBoard = getExpLeaderBoard;
330
- // (async () => {
331
- // let res = await getExpLeaderBoard("1709539200", "1709625600");
332
- // console.log(res);
333
- // })();
@@ -160,7 +160,7 @@ function getTailsIds(kioskClient, nftConfig, address) {
160
160
  var res, tails;
161
161
  return __generator(this, function (_e) {
162
162
  switch (_e.label) {
163
- case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId })];
163
+ case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId, options: { withKioskFields: true, withObjects: true } })];
164
164
  case 1:
165
165
  res = _e.sent();
166
166
  tails = res.items
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.2.38",
5
+ "version": "1.2.39-exp",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",