@typus/typus-sdk 1.8.17 → 1.8.18-testnet
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,13 +26,14 @@ export interface StrategyV2 {
|
|
|
26
26
|
bid_ts_ms: string;
|
|
27
27
|
bid_rounds: string[];
|
|
28
28
|
accumulated_profit: string;
|
|
29
|
+
strategy_index: string;
|
|
29
30
|
remaining_balance: string | undefined;
|
|
30
31
|
gain_to_harvest: string | undefined;
|
|
31
32
|
accumulated_cost: string | undefined;
|
|
32
33
|
my_bids: {
|
|
33
34
|
[key: string]: BidShare;
|
|
34
35
|
};
|
|
35
|
-
status: "active" | "insufficient balance" | "finished";
|
|
36
|
+
status: "active" | "insufficient balance" | "finished" | undefined;
|
|
36
37
|
}
|
|
37
38
|
export interface TypusBidReceipt {
|
|
38
39
|
id: string;
|
|
@@ -122,7 +122,7 @@ function getUserStrategies(config, input
|
|
|
122
122
|
}),
|
|
123
123
|
};
|
|
124
124
|
}),
|
|
125
|
-
active: reader.read8(),
|
|
125
|
+
active: reader.read8() == 1,
|
|
126
126
|
u64_padding: reader.readVec(function (reader) {
|
|
127
127
|
return reader.read64();
|
|
128
128
|
}),
|
|
@@ -134,6 +134,11 @@ function getUserStrategies(config, input
|
|
|
134
134
|
}),
|
|
135
135
|
accumulated_profit: reader.read64(),
|
|
136
136
|
strategy_index: reader.read64(),
|
|
137
|
+
remaining_balance: undefined,
|
|
138
|
+
gain_to_harvest: undefined,
|
|
139
|
+
accumulated_cost: undefined,
|
|
140
|
+
my_bids: {},
|
|
141
|
+
status: undefined,
|
|
137
142
|
};
|
|
138
143
|
var my_bids = Array.from(new Map()).reduce(function (map, _a) {
|
|
139
144
|
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "@typus/typus-sdk",
|
|
3
3
|
"author": "Typus",
|
|
4
4
|
"description": "typus sdk",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.18-testnet",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@mysten/bcs": "1.6.1",
|
|
8
|
-
"@mysten/kiosk": "0.12.6",
|
|
9
|
-
"@mysten/sui": "1.30.0",
|
|
7
|
+
"@mysten/bcs": "^1.6.1",
|
|
8
|
+
"@mysten/kiosk": "^0.12.6",
|
|
9
|
+
"@mysten/sui": "^1.30.0",
|
|
10
10
|
"@pythnetwork/pyth-sui-js": "^2.2.0",
|
|
11
11
|
"@shinami/clients": "^0.9.6",
|
|
12
12
|
"@types/node": "^20.5.7",
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"moment": "^2.30.1",
|
|
19
19
|
"node-rsa": "^1.1.1"
|
|
20
20
|
},
|
|
21
|
+
"resolutions": {
|
|
22
|
+
"@mysten/sui": "^1.30.0"
|
|
23
|
+
},
|
|
21
24
|
"devDependencies": {
|
|
22
25
|
"@types/camelcase-keys-deep": "^0.1.2",
|
|
23
26
|
"@types/crypto-js": "^4.2.2",
|
|
@@ -45,5 +48,6 @@
|
|
|
45
48
|
"bugs": {
|
|
46
49
|
"url": "https://github.com/Typus-Lab/typus-sdk/issues"
|
|
47
50
|
},
|
|
48
|
-
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme"
|
|
51
|
+
"homepage": "https://github.com/Typus-Lab/typus-sdk#readme",
|
|
52
|
+
"packageManager": "yarn@4.10.3+sha512.c38cafb5c7bb273f3926d04e55e1d8c9dfa7d9c3ea1f36a4868fa028b9e5f72298f0b7f401ad5eb921749eb012eb1c3bb74bf7503df3ee43fd600d14a018266f"
|
|
49
53
|
}
|