@typus/typus-sdk 1.8.2 → 1.8.3

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.
@@ -1,4 +1,4 @@
1
- import { Transaction } from "@mysten/sui/transactions";
1
+ import { Argument, Transaction } from "@mysten/sui/transactions";
2
2
  import { TypusConfig } from "../../src/utils";
3
3
  /**
4
4
  entry fun new_strategy<B_TOKEN>(
@@ -73,3 +73,19 @@ export declare function getUpdateStrategyTx(config: TypusConfig, tx: Transaction
73
73
  maxTimes: string | null;
74
74
  targetRounds: string[];
75
75
  }): Transaction;
76
+ /**
77
+ public fun withdraw_bid_receipt(
78
+ registry: &mut Registry,
79
+ strategy_pool: &mut StrategyPoolV2,
80
+ vault_index: u64,
81
+ signal_index: u64,
82
+ strategy_index: u64,
83
+ ctx: &mut TxContext
84
+ ): TypusBidReceipt {
85
+ */
86
+ export declare function getWithdrawBidReceiptTx(config: TypusConfig, tx: Transaction, input: {
87
+ vaultIndex: string;
88
+ signalIndex: string;
89
+ strategyIndex: string;
90
+ user: string;
91
+ }): Argument;
@@ -20,6 +20,7 @@ exports.getNewStrategyTx = getNewStrategyTx;
20
20
  exports.getCloseStrategyTx = getCloseStrategyTx;
21
21
  exports.getWithdrawProfitStrategyTx = getWithdrawProfitStrategyTx;
22
22
  exports.getUpdateStrategyTx = getUpdateStrategyTx;
23
+ exports.getWithdrawBidReceiptTx = getWithdrawBidReceiptTx;
23
24
  var utils_1 = require("../../src/utils");
24
25
  /**
25
26
  entry fun new_strategy<B_TOKEN>(
@@ -126,3 +127,27 @@ function getUpdateStrategyTx(config, tx, input) {
126
127
  });
127
128
  return tx;
128
129
  }
130
+ /**
131
+ public fun withdraw_bid_receipt(
132
+ registry: &mut Registry,
133
+ strategy_pool: &mut StrategyPoolV2,
134
+ vault_index: u64,
135
+ signal_index: u64,
136
+ strategy_index: u64,
137
+ ctx: &mut TxContext
138
+ ): TypusBidReceipt {
139
+ */
140
+ function getWithdrawBidReceiptTx(config, tx, input) {
141
+ var receipt = tx.moveCall({
142
+ target: "".concat(config.package.dovSingle, "::auto_bid::withdraw_bid_receipt"),
143
+ typeArguments: [],
144
+ arguments: [
145
+ tx.object(config.registry.dov.dovSingle),
146
+ tx.object(config.registry.dov.autoBid),
147
+ tx.pure.u64(input.vaultIndex),
148
+ tx.pure.u64(input.signalIndex),
149
+ tx.pure.u64(input.strategyIndex),
150
+ ],
151
+ });
152
+ return receipt;
153
+ }
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.8.2",
5
+ "version": "1.8.3",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "1.6.1",
8
8
  "@mysten/kiosk": "0.12.6",