@typus/typus-sdk 1.0.107 → 1.0.108

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.
@@ -22,7 +22,7 @@ export declare function getTransferNftsTx(gasBudget: number, nftPackageId: strin
22
22
  )
23
23
  */
24
24
  export declare function getStakeNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string, nft_id: string): Promise<TransactionBlock>;
25
- export declare function getStakeNftFromNoKioskTx(gasBudget: number, PackageId: string, nftPackageId: string, policy: string, registry: string, nft_id: string, singer: string): Promise<TransactionBlock>;
25
+ export declare function getCreateKioskAndLockNftTx(gasBudget: number, nftPackageId: string, policy: string, nft_id: string, singer: string): Promise<TransactionBlock>;
26
26
  /**
27
27
  public fun unstake_nft(
28
28
  registry: &mut Registry,
@@ -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.getDepositWithNftTx = exports.getNewBidWithNftTx = exports.getDailyAttendTx = exports.getUnstakeNftTx = exports.getStakeNftFromNoKioskTx = exports.getStakeNftTx = exports.getTransferNftsTx = exports.getTransferNftTx = void 0;
55
+ exports.getLevelUpTx = exports.getDepositWithNftTx = exports.getNewBidWithNftTx = 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");
@@ -128,17 +128,17 @@ function getStakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft_
128
128
  });
129
129
  }
130
130
  exports.getStakeNftTx = getStakeNftTx;
131
- function getStakeNftFromNoKioskTx(gasBudget, PackageId, nftPackageId, policy, registry, nft_id, singer) {
131
+ function getCreateKioskAndLockNftTx(gasBudget, nftPackageId, policy, nft_id, singer) {
132
132
  return __awaiter(this, void 0, void 0, function () {
133
133
  var tx, _a, kiosk, kiosk_cap;
134
134
  return __generator(this, function (_b) {
135
135
  tx = new sui_js_1.TransactionBlock();
136
136
  _a = __read((0, kiosk_1.createKiosk)(tx), 2), kiosk = _a[0], kiosk_cap = _a[1];
137
- (0, kiosk_1.lock)(tx, "".concat(nftPackageId, "::typus_nft::Tails"), kiosk, kiosk_cap, policy, tx.object(nft_id));
137
+ (0, kiosk_1.lock)(tx, "".concat(nftPackageId, "::typus_nft::Tails"), kiosk, kiosk_cap, tx.object(policy), tx.object(nft_id));
138
138
  tx.moveCall({
139
- target: "".concat(PackageId, "::tails_staking::stake_nft"),
140
- typeArguments: [],
141
- arguments: [tx.object(registry), kiosk, kiosk_cap, tx.object(nft_id), tx.object(constants_1.CLOCK)],
139
+ target: "0x2::transfer::public_share_object",
140
+ typeArguments: [kiosk_1.KIOSK_TYPE],
141
+ arguments: [kiosk],
142
142
  });
143
143
  tx.transferObjects([kiosk_cap], tx.pure(singer));
144
144
  tx.setGasBudget(gasBudget);
@@ -146,7 +146,7 @@ function getStakeNftFromNoKioskTx(gasBudget, PackageId, nftPackageId, policy, re
146
146
  });
147
147
  });
148
148
  }
149
- exports.getStakeNftFromNoKioskTx = getStakeNftFromNoKioskTx;
149
+ exports.getCreateKioskAndLockNftTx = getCreateKioskAndLockNftTx;
150
150
  /**
151
151
  public fun unstake_nft(
152
152
  registry: &mut Registry,
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.107",
5
+ "version": "1.0.108",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "^0.3.3",