@typus/typus-sdk 1.4.30 → 1.4.32
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/dist/config-mainnet.json +21 -5
- package/dist/config-testnet.json +15 -2
- package/dist/src/auto-bid/token-user-entry.d.ts +17 -21
- package/dist/src/auto-bid/token-user-entry.js +21 -21
- package/dist/src/auto-bid/user-entry.d.ts +23 -27
- package/dist/src/auto-bid/user-entry.js +47 -47
- package/dist/src/auto-bid/view-function.d.ts +1 -2
- package/dist/src/auto-bid/view-function.js +6 -6
- package/dist/src/dice/api.d.ts +1 -1
- package/dist/src/dice/api.js +1 -1
- package/dist/src/dice/fetch.js +14 -9
- package/dist/src/typus/tails-staking/user-entry.d.ts +11 -9
- package/dist/src/typus/tails-staking/user-entry.js +206 -283
- package/dist/src/typus-dov-single-v2/function/bidding.js +2 -6
- package/dist/src/typus-dov-single-v2/history/user-history.js +1 -1
- package/dist/src/typus-dov-single-v2/user-entry.d.ts +0 -1
- package/dist/src/typus-dov-single-v2/user-entry.js +2 -2
- package/dist/src/typus-perp/user/orderWithBidReceipt.d.ts +1 -1
- package/dist/src/typus-safu/index.d.ts +0 -1
- package/dist/src/typus-safu/index.js +0 -2
- package/dist/src/typus-safu/view-function.d.ts +1 -1
- package/dist/src/typus-safu/view-function.js +5 -7
- package/dist/src/utils/api/sentio/leader-board.js +1 -1
- package/dist/src/utils/typusConfig.d.ts +18 -2
- package/dist/src/utils/typusConfig.js +1 -1
- package/package.json +1 -1
|
@@ -178,7 +178,7 @@ function parseTxHistory(datas, originPackage, vaults) {
|
|
|
178
178
|
functionType = (_d = new RegExp("^([^::]+)::([^::]+)::([^<]+)").exec(event.type)) === null || _d === void 0 ? void 0 : _d.slice(1, 4);
|
|
179
179
|
action = functionType[2];
|
|
180
180
|
Tails = undefined;
|
|
181
|
-
Index = event.parsedJson.index || event.parsedJson.
|
|
181
|
+
Index = event.parsedJson.index || event.parsedJson.vaultIndex;
|
|
182
182
|
if (Index) {
|
|
183
183
|
_a = __read(parseVaultInfo(vaults, Index, action, event.parsedJson.log), 6), Period = _a[0], Vault = _a[1], RiskLevel = _a[2], d_token = _a[3], b_token = _a[4], o_token = _a[5];
|
|
184
184
|
}
|
|
@@ -82,7 +82,6 @@ export declare function getRefreshDepositSnapshotTx(config: TypusConfig, tx: Tra
|
|
|
82
82
|
)
|
|
83
83
|
*/
|
|
84
84
|
export declare function getNewBidTx(config: TypusConfig, tx: TransactionBlock, input: {
|
|
85
|
-
tgldRegistry: string;
|
|
86
85
|
typeArguments: string[];
|
|
87
86
|
index: string;
|
|
88
87
|
coins: string[];
|
|
@@ -205,7 +205,7 @@ function getNewBidTx(config, tx, input) {
|
|
|
205
205
|
arguments: [
|
|
206
206
|
tx.object(config.version.typus),
|
|
207
207
|
tx.object(config.registry.typus.user),
|
|
208
|
-
tx.object(
|
|
208
|
+
tx.object(config.registry.typus.tgld),
|
|
209
209
|
tx.object(config.registry.typus.leaderboard),
|
|
210
210
|
tx.object(config.registry.dov.dovSingle),
|
|
211
211
|
tx.pure(input.index),
|
|
@@ -238,7 +238,7 @@ function getNewBidTx(config, tx, input) {
|
|
|
238
238
|
arguments: [
|
|
239
239
|
tx.object(config.version.typus),
|
|
240
240
|
tx.object(config.registry.typus.user),
|
|
241
|
-
tx.object(
|
|
241
|
+
tx.object(config.registry.typus.tgld),
|
|
242
242
|
tx.object(config.registry.typus.leaderboard),
|
|
243
243
|
tx.object(config.registry.dov.dovSingle),
|
|
244
244
|
tx.pure(input.index),
|
|
@@ -14,8 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.NETWORK = void 0;
|
|
18
17
|
__exportStar(require("./view-function"), exports);
|
|
19
18
|
__exportStar(require("./user-entry"), exports);
|
|
20
19
|
__exportStar(require("./user-history"), exports);
|
|
21
|
-
exports.NETWORK = "MAINNET";
|
|
@@ -53,9 +53,7 @@ function getVaultData(config, input) {
|
|
|
53
53
|
transactionBlock = new transactions_1.TransactionBlock();
|
|
54
54
|
transactionBlock.moveCall({
|
|
55
55
|
target: "".concat(config.package.safu, "::view_function::get_vault_data_bcs"),
|
|
56
|
-
typeArguments: [
|
|
57
|
-
"".concat(config.package.framework, "::vault::TypusBidReceipt")
|
|
58
|
-
],
|
|
56
|
+
typeArguments: ["".concat(config.package.framework, "::vault::TypusBidReceipt")],
|
|
59
57
|
arguments: [transactionBlock.pure(config.registry.safu.safu), transactionBlock.pure(input.indexes)],
|
|
60
58
|
});
|
|
61
59
|
return [4 /*yield*/, provider.devInspectTransactionBlock({ sender: constants_1.SENDER, transactionBlock: transactionBlock })];
|
|
@@ -80,7 +78,7 @@ function getVaultData(config, input) {
|
|
|
80
78
|
var info = {
|
|
81
79
|
index: infoArray[0],
|
|
82
80
|
round: infoArray[1],
|
|
83
|
-
|
|
81
|
+
portfolio_vaultIndex: infoArray[2],
|
|
84
82
|
refresh_ts_ms: infoArray[3],
|
|
85
83
|
status: infoArray[4],
|
|
86
84
|
lending_enabled: infoArray[5],
|
|
@@ -142,8 +140,8 @@ function getVaultData(config, input) {
|
|
|
142
140
|
metadata: String.fromCharCode.apply(null, Array.from(reader.readBytes(reader.read8()))),
|
|
143
141
|
u64_padding: reader.readVec(function (reader) {
|
|
144
142
|
return reader.read64();
|
|
145
|
-
})
|
|
146
|
-
}
|
|
143
|
+
}),
|
|
144
|
+
},
|
|
147
145
|
];
|
|
148
146
|
}
|
|
149
147
|
else {
|
|
@@ -158,7 +156,7 @@ function getVaultData(config, input) {
|
|
|
158
156
|
u64Padding: u64Padding,
|
|
159
157
|
bcsPadding: bcsPadding,
|
|
160
158
|
},
|
|
161
|
-
null
|
|
159
|
+
null,
|
|
162
160
|
];
|
|
163
161
|
}
|
|
164
162
|
});
|
|
@@ -33,6 +33,7 @@ export interface Registry {
|
|
|
33
33
|
tailsExp: string;
|
|
34
34
|
};
|
|
35
35
|
dov: {
|
|
36
|
+
autoBid: string;
|
|
36
37
|
dovSingle: string;
|
|
37
38
|
};
|
|
38
39
|
perp: {
|
|
@@ -60,7 +61,6 @@ export interface Registry {
|
|
|
60
61
|
}
|
|
61
62
|
export interface Object {
|
|
62
63
|
nftTransferPolicy: string;
|
|
63
|
-
strategyPool: string;
|
|
64
64
|
tailsIds: string;
|
|
65
65
|
tgldCoinMetadata: string;
|
|
66
66
|
tgldTokenPolicy: string;
|
|
@@ -85,12 +85,28 @@ export interface Oracle {
|
|
|
85
85
|
}
|
|
86
86
|
export interface Token {
|
|
87
87
|
afsui: string;
|
|
88
|
+
apt: string;
|
|
89
|
+
btc: string;
|
|
90
|
+
buck: string;
|
|
91
|
+
cetus: string;
|
|
92
|
+
eth: string;
|
|
88
93
|
fud: string;
|
|
94
|
+
hasui: string;
|
|
95
|
+
inj: string;
|
|
96
|
+
jup: string;
|
|
89
97
|
mfud: string;
|
|
98
|
+
navx: string;
|
|
99
|
+
sca: string;
|
|
100
|
+
sei: string;
|
|
101
|
+
sol: string;
|
|
90
102
|
sui: string;
|
|
103
|
+
texp: string;
|
|
91
104
|
tgld: string;
|
|
92
105
|
tlp: string;
|
|
93
|
-
|
|
106
|
+
turbos: string;
|
|
94
107
|
usd: string;
|
|
108
|
+
usdc: string;
|
|
95
109
|
usdt: string;
|
|
110
|
+
usdy: string;
|
|
111
|
+
vsui: string;
|
|
96
112
|
}
|
|
@@ -25,7 +25,7 @@ var TypusConfig = /** @class */ (function () {
|
|
|
25
25
|
}());
|
|
26
26
|
exports.TypusConfig = TypusConfig;
|
|
27
27
|
// (async () => {
|
|
28
|
-
//
|
|
28
|
+
// let { default: json } = await import("../../config-testnet.json");
|
|
29
29
|
// let config = TypusConfig.parse(json);
|
|
30
30
|
// console.log(config);
|
|
31
31
|
// console.log(config.rpcEndpoint);
|