@typus/typus-sdk 1.2.34 → 1.2.35
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.
|
@@ -135,4 +135,4 @@ registry: string, strategy_pool: string, vault_index: string, signal_index: stri
|
|
|
135
135
|
export declare function getCloseStrategyTx(gasBudget: number, packageId: string, typeArguments: string[], // D_TOKEN, B_TOKEN
|
|
136
136
|
registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, mfudPackageId: string, mfudRegistry: string, sender: string): TransactionBlock;
|
|
137
137
|
export declare function getWithdrawProfitStrategyTx(gasBudget: number, packageId: string, typeArguments: string[], // D_TOKEN, B_TOKEN
|
|
138
|
-
registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, mfudPackageId: string, mfudRegistry: string, sender: string): TransactionBlock;
|
|
138
|
+
registry: string, strategy_pool: string, vault_index: string, signal_index: string, strategy_index: string, mfudPackageId: string, mfudRegistry: string, sender: string, txBlock?: TransactionBlock): TransactionBlock;
|
|
@@ -458,8 +458,8 @@ registry, strategy_pool, vault_index, signal_index, strategy_index, mfudPackageI
|
|
|
458
458
|
}
|
|
459
459
|
exports.getCloseStrategyTx = getCloseStrategyTx;
|
|
460
460
|
function getWithdrawProfitStrategyTx(gasBudget, packageId, typeArguments, // D_TOKEN, B_TOKEN
|
|
461
|
-
registry, strategy_pool, vault_index, signal_index, strategy_index, mfudPackageId, mfudRegistry, sender) {
|
|
462
|
-
var tx = new transactions_1.TransactionBlock();
|
|
461
|
+
registry, strategy_pool, vault_index, signal_index, strategy_index, mfudPackageId, mfudRegistry, sender, txBlock) {
|
|
462
|
+
var tx = txBlock ? txBlock : new transactions_1.TransactionBlock();
|
|
463
463
|
var d_token = tx.moveCall({
|
|
464
464
|
target: "".concat(packageId, "::auto_bid::withdraw_profit"),
|
|
465
465
|
typeArguments: typeArguments,
|