@typus/typus-sdk 1.1.56 → 1.1.57

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.
@@ -32,7 +32,7 @@ export declare function getWithdrawTx(tx: TransactionBlock, typusFrameworkOrigin
32
32
  ctx: &mut TxContext,
33
33
  )
34
34
  */
35
- export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, typusFrameworkPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string, share?: string): TransactionBlock;
35
+ export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string, share?: string): TransactionBlock;
36
36
  /**
37
37
  public fun compound<D_TOKEN, B_TOKEN>(
38
38
  registry: &mut Registry,
@@ -42,7 +42,7 @@ export declare function getUnsubscribeTx(tx: TransactionBlock, typusFrameworkOri
42
42
  ctx: &mut TxContext,
43
43
  )
44
44
  */
45
- export declare function getCompoundTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, typusFrameworkPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string): TransactionBlock;
45
+ export declare function getCompoundTx(tx: TransactionBlock, typusFrameworkOriginPackageId: string, packageId: string, typeArguments: string[], registry: string, index: string, receipts: string[], user: string): TransactionBlock;
46
46
  /**
47
47
  public fun claim<D_TOKEN, B_TOKEN>(
48
48
  registry: &mut Registry,
@@ -131,7 +131,7 @@ exports.getWithdrawTx = getWithdrawTx;
131
131
  ctx: &mut TxContext,
132
132
  )
133
133
  */
134
- function getUnsubscribeTx(tx, typusFrameworkOriginPackageId, typusFrameworkPackageId, packageId, typeArguments, registry, index, receipts, user, share) {
134
+ function getUnsubscribeTx(tx, typusFrameworkOriginPackageId, packageId, typeArguments, registry, index, receipts, user, share) {
135
135
  var result = tx.moveCall({
136
136
  target: "".concat(packageId, "::tails_staking::unsubscribe"),
137
137
  typeArguments: typeArguments,
@@ -146,10 +146,7 @@ function getUnsubscribeTx(tx, typusFrameworkOriginPackageId, typusFrameworkPacka
146
146
  tx.pure(constants_1.CLOCK),
147
147
  ],
148
148
  });
149
- tx.moveCall({
150
- target: "".concat(typusFrameworkPackageId, "::vault::transfer_deposit_receipt"),
151
- arguments: [tx.object(result[0]), tx.pure(user)],
152
- });
149
+ tx.transferObjects([tx.object(result[0])], user);
153
150
  return tx;
154
151
  }
155
152
  exports.getUnsubscribeTx = getUnsubscribeTx;
@@ -162,7 +159,7 @@ exports.getUnsubscribeTx = getUnsubscribeTx;
162
159
  ctx: &mut TxContext,
163
160
  )
164
161
  */
165
- function getCompoundTx(tx, typusFrameworkOriginPackageId, typusFrameworkPackageId, packageId, typeArguments, registry, index, receipts, user) {
162
+ function getCompoundTx(tx, typusFrameworkOriginPackageId, packageId, typeArguments, registry, index, receipts, user) {
166
163
  var result = tx.moveCall({
167
164
  target: "".concat(packageId, "::tails_staking::compound"),
168
165
  typeArguments: typeArguments,
@@ -176,10 +173,7 @@ function getCompoundTx(tx, typusFrameworkOriginPackageId, typusFrameworkPackageI
176
173
  tx.object(constants_1.CLOCK),
177
174
  ],
178
175
  });
179
- tx.moveCall({
180
- target: "".concat(typusFrameworkPackageId, "::vault::transfer_deposit_receipt"),
181
- arguments: [tx.object(result[0]), tx.pure(user)],
182
- });
176
+ tx.transferObjects([tx.object(result[0])], user);
183
177
  return tx;
184
178
  }
185
179
  exports.getCompoundTx = getCompoundTx;
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.56",
5
+ "version": "1.1.57",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",