@typus/typus-sdk 1.2.37-exp → 1.2.37

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.
@@ -327,15 +327,7 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
327
327
  });
328
328
  }
329
329
  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
- }); })();
330
+ // (async () => {
331
+ // let res = await getExpLeaderBoard("1709539200", "1709625600");
332
+ // console.log(res);
333
+ // })();
@@ -145,7 +145,12 @@ function getSwitchNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft
145
145
  tx.moveCall({
146
146
  target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
147
147
  typeArguments: typeArguments,
148
- arguments: [tx.object(registry)],
148
+ arguments: [tx.object(registry), tx.pure("dice_profit")],
149
+ });
150
+ tx.moveCall({
151
+ target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
152
+ typeArguments: typeArguments,
153
+ arguments: [tx.object(registry), tx.pure("exp_profit")],
149
154
  });
150
155
  tx.moveCall({
151
156
  target: "".concat(nftPackageId, "::tails_staking::switch_nft"),
@@ -207,7 +212,12 @@ function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, ty
207
212
  tx.moveCall({
208
213
  target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
209
214
  typeArguments: typeArguments,
210
- arguments: [tx.object(registry)],
215
+ arguments: [tx.object(registry), tx.pure("dice_profit")],
216
+ });
217
+ tx.moveCall({
218
+ target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
219
+ typeArguments: typeArguments,
220
+ arguments: [tx.object(registry), tx.pure("exp_profit")],
211
221
  });
212
222
  tx.moveCall({
213
223
  target: "".concat(nftPackageId, "::tails_staking::unstake_nft"),
@@ -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, options: { withKioskFields: true, withObjects: true } })];
163
+ case 0: return [4 /*yield*/, kioskClient.getKiosk({ id: kioskOwnerCap.kioskId })];
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.37-exp",
5
+ "version": "1.2.37",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",