@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.
- package/lib/utils/auto-bid/view-function.d.ts +1 -0
- package/lib/utils/auto-bid/view-function.js +1 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.d.ts +2 -0
- package/lib/utils/typus-dov-single-v2/mfud-user-entry.js +2 -0
- package/lib/utils/typus-dov-single-v2/user-entry.d.ts +2 -0
- package/lib/utils/typus-dov-single-v2/user-entry.js +4 -0
- package/package.json +1 -1
|
@@ -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] }),
|