@typus/typus-sdk 1.0.111 → 1.0.112

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.
@@ -52,7 +52,7 @@ export declare function getSanpshotTx(gasBudget: number, nftPackageId: string, r
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(
@@ -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.112",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",