@typus/typus-sdk 1.2.46 → 1.2.47

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.
@@ -26,6 +26,7 @@ export interface StrategyV2 {
26
26
  accumulated_profit: string;
27
27
  remaining_balance: string | undefined;
28
28
  gain_to_harvest: string | undefined;
29
+ accumulated_cost: string | undefined;
29
30
  my_bids: {
30
31
  [key: string]: BidShare;
31
32
  };
@@ -209,6 +209,7 @@ function getUserStrategies(provider, packageId, registry, strategyPool, user
209
209
  strategy.my_bids = my_bids;
210
210
  strategy.remaining_balance = strategy.u64_padding.at(0);
211
211
  strategy.gain_to_harvest = strategy.u64_padding.at(1);
212
+ strategy.accumulated_cost = strategy.u64_padding.at(2);
212
213
  if (Number(strategy.bid_times) >= Number(strategy.max_times)) {
213
214
  strategy.status = "finished";
214
215
  }
@@ -94,6 +94,8 @@ export declare function getRedeemTx(input: {
94
94
  }): TransactionBlock;
95
95
  export declare function getNewBidTx(input: {
96
96
  tx: TransactionBlock;
97
+ typusEcosystemVersion: string;
98
+ typusPointRegistry: string;
97
99
  typusDovSinglePackageId: string;
98
100
  typusDovSingleRegistry: string;
99
101
  mfudPackageId: string;
@@ -311,6 +311,8 @@ function getNewBidTx(input) {
311
311
  target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
312
312
  typeArguments: input.typeArguments,
313
313
  arguments: [
314
+ input.tx.object(input.typusEcosystemVersion),
315
+ input.tx.object(input.typusPointRegistry),
314
316
  input.tx.object(input.typusDovSingleRegistry),
315
317
  input.tx.pure(input.index),
316
318
  input.tx.makeMoveVec({ objects: [mfud] }),
@@ -173,6 +173,8 @@ export declare function getWithdrawHarvestClaimTx(input: {
173
173
  */
174
174
  export declare function getNewBidTx(input: {
175
175
  tx: TransactionBlock;
176
+ typusEcosystemVersion: string;
177
+ typusPointRegistry: string;
176
178
  typusFrameworkPackageId: string;
177
179
  typusDovSinglePackageId: string;
178
180
  typusDovSingleRegistry: string;
@@ -445,6 +445,8 @@ function getNewBidTx(input) {
445
445
  target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
446
446
  typeArguments: input.typeArguments,
447
447
  arguments: [
448
+ input.tx.object(input.typusEcosystemVersion),
449
+ input.tx.object(input.typusPointRegistry),
448
450
  input.tx.object(input.typusDovSingleRegistry),
449
451
  input.tx.pure(input.index),
450
452
  input.tx.makeMoveVec({ objects: [coin] }),
@@ -472,6 +474,8 @@ function getNewBidTx(input) {
472
474
  target: "".concat(input.typusDovSinglePackageId, "::tails_staking::new_bid"),
473
475
  typeArguments: input.typeArguments,
474
476
  arguments: [
477
+ input.tx.object(input.typusEcosystemVersion),
478
+ input.tx.object(input.typusPointRegistry),
475
479
  input.tx.object(input.typusDovSingleRegistry),
476
480
  input.tx.pure(input.index),
477
481
  input.tx.makeMoveVec({ objects: [coin] }),
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.46",
5
+ "version": "1.2.47",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.3",
8
8
  "@mysten/kiosk": "0.7.12",