@typus/typus-sdk 1.0.111 → 1.0.113

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.
@@ -48,11 +48,11 @@ export declare function getDailyAttendTx(gasBudget: number, nftPackageId: string
48
48
  ctx: &mut TxContext
49
49
  )
50
50
  */
51
- export declare function getSanpshotTx(gasBudget: number, nftPackageId: string, registry: string): Promise<TransactionBlock>;
51
+ export declare function getSnapshotTx(gasBudget: number, nftPackageId: string, registry: string): Promise<TransactionBlock>;
52
52
  export declare function getNewBidTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string, priceOracle: string, coins: string[], size: string, premium_required: string, // fe float * b_token_decimal
53
53
  usingSponsoredGasCoin?: boolean): Promise<TransactionBlock>;
54
54
  export declare function getDepositTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string, coins: string[], amount: string, usingSponsoredGasCoin?: boolean): Promise<TransactionBlock>;
55
- export declare function getWithdrawTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, index: string, share?: string): Promise<TransactionBlock>;
55
+ export declare function getWithdrawTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string, share?: string): Promise<TransactionBlock>;
56
56
  export declare function getUnsubscribeTx(gasBudget: number, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string, share?: string): Promise<TransactionBlock>;
57
57
  /**
58
58
  public fun level_up(
@@ -52,7 +52,7 @@ var __read = (this && this.__read) || function (o, n) {
52
52
  return ar;
53
53
  };
54
54
  Object.defineProperty(exports, "__esModule", { value: true });
55
- exports.getLevelUpTx = exports.getUnsubscribeTx = exports.getWithdrawTx = exports.getDepositTx = exports.getNewBidTx = exports.getSanpshotTx = exports.getDailyAttendTx = exports.getUnstakeNftTx = exports.getCreateKioskAndLockNftTx = exports.getStakeNftTx = exports.getTransferNftsTx = exports.getTransferNftTx = void 0;
55
+ exports.getLevelUpTx = exports.getUnsubscribeTx = exports.getWithdrawTx = exports.getDepositTx = exports.getNewBidTx = exports.getSnapshotTx = exports.getDailyAttendTx = exports.getUnstakeNftTx = exports.getCreateKioskAndLockNftTx = exports.getStakeNftTx = exports.getTransferNftsTx = exports.getTransferNftTx = void 0;
56
56
  var sui_js_1 = require("@mysten/sui.js");
57
57
  var constants_1 = require("../../constants");
58
58
  var kiosk_1 = require("@mysten/kiosk");
@@ -211,7 +211,7 @@ exports.getDailyAttendTx = getDailyAttendTx;
211
211
  ctx: &mut TxContext
212
212
  )
213
213
  */
214
- function getSanpshotTx(gasBudget, nftPackageId, registry) {
214
+ function getSnapshotTx(gasBudget, nftPackageId, registry) {
215
215
  return __awaiter(this, void 0, void 0, function () {
216
216
  var tx;
217
217
  return __generator(this, function (_a) {
@@ -226,7 +226,7 @@ function getSanpshotTx(gasBudget, nftPackageId, registry) {
226
226
  });
227
227
  });
228
228
  }
229
- exports.getSanpshotTx = getSanpshotTx;
229
+ exports.getSnapshotTx = getSnapshotTx;
230
230
  function getNewBidTx(gasBudget, packageId, typeArguments, registry, additional_config_registry, index, priceOracle, coins, size, premium_required, // fe float * b_token_decimal
231
231
  usingSponsoredGasCoin) {
232
232
  if (usingSponsoredGasCoin === void 0) { usingSponsoredGasCoin = false; }
@@ -292,6 +292,7 @@ function getDepositTx(gasBudget, packageId, typeArguments, registry, additional_
292
292
  tx.pure(index),
293
293
  tx.makeMoveVec({ objects: [coin] }),
294
294
  tx.pure(amount),
295
+ tx.object(constants_1.CLOCK),
295
296
  ],
296
297
  });
297
298
  }
@@ -305,6 +306,7 @@ function getDepositTx(gasBudget, packageId, typeArguments, registry, additional_
305
306
  tx.pure(index),
306
307
  tx.makeMoveVec({ objects: coins.map(function (id) { return tx.object(id); }) }),
307
308
  tx.pure(amount),
309
+ tx.object(constants_1.CLOCK),
308
310
  ],
309
311
  });
310
312
  }
@@ -314,7 +316,7 @@ function getDepositTx(gasBudget, packageId, typeArguments, registry, additional_
314
316
  });
315
317
  }
316
318
  exports.getDepositTx = getDepositTx;
317
- function getWithdrawTx(gasBudget, packageId, typeArguments, registry, index, share) {
319
+ function getWithdrawTx(gasBudget, packageId, typeArguments, registry, additional_config_registry, index, share) {
318
320
  return __awaiter(this, void 0, void 0, function () {
319
321
  var tx;
320
322
  return __generator(this, function (_a) {
@@ -322,7 +324,13 @@ function getWithdrawTx(gasBudget, packageId, typeArguments, registry, index, sha
322
324
  tx.moveCall({
323
325
  target: "".concat(packageId, "::tails_staking::withdraw"),
324
326
  typeArguments: typeArguments,
325
- arguments: [tx.pure(registry), tx.pure(index), tx.pure(share ? [share] : [])],
327
+ arguments: [
328
+ tx.pure(registry),
329
+ tx.pure(additional_config_registry),
330
+ tx.pure(index),
331
+ tx.pure(share ? [share] : []),
332
+ tx.object(constants_1.CLOCK),
333
+ ],
326
334
  });
327
335
  tx.setGasBudget(gasBudget);
328
336
  return [2 /*return*/, tx];
@@ -338,7 +346,13 @@ function getUnsubscribeTx(gasBudget, packageId, typeArguments, registry, additio
338
346
  tx.moveCall({
339
347
  target: "".concat(packageId, "::tails_staking::unsubscribe"),
340
348
  typeArguments: typeArguments,
341
- arguments: [tx.pure(registry), tx.pure(additional_config_registry), tx.pure(index), tx.pure(share ? [share] : [])],
349
+ arguments: [
350
+ tx.pure(registry),
351
+ tx.pure(additional_config_registry),
352
+ tx.pure(index),
353
+ tx.pure(share ? [share] : []),
354
+ tx.object(constants_1.CLOCK),
355
+ ],
342
356
  });
343
357
  tx.setGasBudget(gasBudget);
344
358
  return [2 /*return*/, tx];
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.111",
5
+ "version": "1.0.113",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",