@typus/typus-sdk 1.2.33 → 1.2.34

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.
@@ -24,9 +24,9 @@ registry: string, strategy_pool: string, vault_index: string, signal_index: stri
24
24
  )
25
25
  */
26
26
  export declare function getCloseStrategyTx(gasBudget: number, packageId: string, typeArguments: string[], // D_TOKEN, B_TOKEN
27
- registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, sender: string): TransactionBlock;
27
+ registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, sender: string, txBlock?: TransactionBlock): TransactionBlock;
28
28
  export declare function getWithdrawProfitStrategyTx(gasBudget: number, packageId: string, typeArguments: string[], // D_TOKEN, B_TOKEN
29
- registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, sender: string): TransactionBlock;
29
+ registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, sender: string, txBlock?: TransactionBlock): TransactionBlock;
30
30
  /**
31
31
  entry fun update_strategy<D_TOKEN, B_TOKEN>(
32
32
  strategy_pool: &mut StrategyPoolV2,
@@ -91,8 +91,8 @@ exports.getNewStrategyTx = getNewStrategyTx;
91
91
  )
92
92
  */
93
93
  function getCloseStrategyTx(gasBudget, packageId, typeArguments, // D_TOKEN, B_TOKEN
94
- registry, strategy_pool, vault_index, signal_index, strategy_index, sender) {
95
- var tx = new transactions_1.TransactionBlock();
94
+ registry, strategy_pool, vault_index, signal_index, strategy_index, sender, txBlock) {
95
+ var tx = txBlock ? txBlock : new transactions_1.TransactionBlock();
96
96
  var _a = __read(tx.moveCall({
97
97
  target: "".concat(packageId, "::auto_bid::close_strategy"),
98
98
  typeArguments: typeArguments,
@@ -104,8 +104,8 @@ registry, strategy_pool, vault_index, signal_index, strategy_index, sender) {
104
104
  }
105
105
  exports.getCloseStrategyTx = getCloseStrategyTx;
106
106
  function getWithdrawProfitStrategyTx(gasBudget, packageId, typeArguments, // D_TOKEN, B_TOKEN
107
- registry, strategy_pool, vault_index, signal_index, strategy_index, sender) {
108
- var tx = new transactions_1.TransactionBlock();
107
+ registry, strategy_pool, vault_index, signal_index, strategy_index, sender, txBlock) {
108
+ var tx = txBlock ? txBlock : new transactions_1.TransactionBlock();
109
109
  var d_token = tx.moveCall({
110
110
  target: "".concat(packageId, "::auto_bid::withdraw_profit"),
111
111
  typeArguments: typeArguments,
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.33",
5
+ "version": "1.2.34",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",