@typus/typus-sdk 1.1.55-profit-sharing-fix → 1.1.55-switch

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.
@@ -23,7 +23,7 @@ export declare function getTransferNftsTx(gasBudget: number, nftPackageId: strin
23
23
  )
24
24
  */
25
25
  export declare function getStakeNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string, nft_id: string): Promise<TransactionBlock>;
26
- export declare function getSwitchNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string, nft_id: string): Promise<TransactionBlock>;
26
+ export declare function getSwitchNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string, nft_id: string, typeArguments: string[]): Promise<TransactionBlock>;
27
27
  export declare function getCreateKioskAndLockNftTx(kioskClient: KioskClient, gasBudget: number, nftPackageId: string, policy: string, nft_id: string, singer: string): Promise<TransactionBlock>;
28
28
  /**
29
29
  public fun unstake_nft(
@@ -34,7 +34,7 @@ export declare function getCreateKioskAndLockNftTx(kioskClient: KioskClient, gas
34
34
  ctx: &mut TxContext
35
35
  )
36
36
  */
37
- export declare function getUnstakeNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string): Promise<TransactionBlock>;
37
+ export declare function getUnstakeNftTx(gasBudget: number, nftPackageId: string, registry: string, kiosk: string, kiosk_cap: string, typeArguments: string[]): Promise<TransactionBlock>;
38
38
  /**
39
39
  public fun daily_attend(
40
40
  registry: &mut Registry,
@@ -131,7 +131,7 @@ function getStakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft_
131
131
  });
132
132
  }
133
133
  exports.getStakeNftTx = getStakeNftTx;
134
- function getSwitchNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft_id) {
134
+ function getSwitchNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft_id, typeArguments) {
135
135
  return __awaiter(this, void 0, void 0, function () {
136
136
  var tx, _a, coin;
137
137
  return __generator(this, function (_b) {
@@ -144,7 +144,7 @@ function getSwitchNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, nft
144
144
  });
145
145
  tx.moveCall({
146
146
  target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
147
- typeArguments: ["0x2::sui::SUI"],
147
+ typeArguments: typeArguments,
148
148
  arguments: [tx.object(registry)],
149
149
  });
150
150
  tx.moveCall({
@@ -193,7 +193,7 @@ exports.getCreateKioskAndLockNftTx = getCreateKioskAndLockNftTx;
193
193
  ctx: &mut TxContext
194
194
  )
195
195
  */
196
- function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap) {
196
+ function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap, typeArguments) {
197
197
  return __awaiter(this, void 0, void 0, function () {
198
198
  var tx;
199
199
  return __generator(this, function (_a) {
@@ -205,7 +205,7 @@ function getUnstakeNftTx(gasBudget, nftPackageId, registry, kiosk, kiosk_cap) {
205
205
  });
206
206
  tx.moveCall({
207
207
  target: "".concat(nftPackageId, "::tails_staking::claim_profit_sharing"),
208
- typeArguments: ["0x2::sui::SUI"],
208
+ typeArguments: typeArguments,
209
209
  arguments: [tx.object(registry)],
210
210
  });
211
211
  tx.moveCall({
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.1.55-profit-sharing-fix",
5
+ "version": "1.1.55-switch",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",