@typus/typus-sdk 1.2.59 → 1.2.60

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.
@@ -94,6 +94,7 @@ export declare function getRedeemTx(input: {
94
94
  }): TransactionBlock;
95
95
  export declare function getNewBidTx(input: {
96
96
  tx: TransactionBlock;
97
+ typusFrameworkPackageId: string;
97
98
  typusDovSinglePackageId: string;
98
99
  typusDovSingleRegistry: string;
99
100
  mfudPackageId: string;
@@ -308,7 +308,7 @@ function getNewBidTx(input) {
308
308
  ],
309
309
  });
310
310
  var result = input.tx.moveCall({
311
- target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
311
+ target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid_v2"),
312
312
  typeArguments: input.typeArguments,
313
313
  arguments: [
314
314
  input.tx.object(input.typusDovSingleRegistry),
@@ -324,6 +324,11 @@ function getNewBidTx(input) {
324
324
  arguments: [input.tx.object(input.mfudRegistry), input.tx.object(result[1])],
325
325
  });
326
326
  input.tx.transferObjects([input.tx.object(fud_coin)], input.user);
327
+ input.tx.moveCall({
328
+ target: "".concat(input.typusFrameworkPackageId, "::utils::transfer_coins"),
329
+ typeArguments: [input.typeArguments[1]],
330
+ arguments: [input.tx.makeMoveVec({ objects: [input.tx.object(result[1])] }), input.tx.pure(input.user)],
331
+ });
327
332
  return input.tx;
328
333
  }
329
334
  exports.getNewBidTx = getNewBidTx;
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.59",
5
+ "version": "1.2.60",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",