@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.
@@ -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.vault_index;
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(input.tgldRegistry),
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(input.tgldRegistry),
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),
@@ -7,7 +7,7 @@ export declare function createTradingOrderWithBidReceipt(config: TypusConfig, tx
7
7
  isLong: boolean;
8
8
  user: string;
9
9
  index: string;
10
- bToken: string;
10
+ bToken: TOKEN;
11
11
  bidReceipt: string;
12
12
  share: string | null;
13
13
  }): Promise<TransactionBlock>;
@@ -1,4 +1,3 @@
1
1
  export * from "./view-function";
2
2
  export * from "./user-entry";
3
3
  export * from "./user-history";
4
- export declare const NETWORK = "MAINNET";
@@ -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";
@@ -13,7 +13,7 @@ export interface Vault {
13
13
  export interface Info {
14
14
  index: string;
15
15
  round: string;
16
- portfolio_vault_index: string;
16
+ portfolio_vaultIndex: string;
17
17
  refresh_ts_ms: string;
18
18
  status: string;
19
19
  lending_enabled: string;
@@ -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
- portfolio_vault_index: infoArray[2],
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
  });
@@ -98,6 +98,6 @@ function getExpLeaderBoard(startTimestamp, endTimestamp) {
98
98
  });
99
99
  }
100
100
  // (async () => {
101
- // const res1 = await getExpLeaderBoard("0");
101
+ // let res1 = await getExpLeaderBoard("0");
102
102
  // console.log(res1);
103
103
  // })();
@@ -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
- usdc: string;
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
- // const { default: json } = await import("../../config-testnet.json");
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);
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.4.30",
5
+ "version": "1.4.32",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.8.10",