@typus/typus-sdk 1.0.63 → 1.0.64

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.
@@ -7,9 +7,9 @@ function typeArgsToAssets(typeArgs) {
7
7
  var typeArgs = x.split("::");
8
8
  switch ((0, sui_js_1.normalizeSuiAddress)(typeArgs[0])) {
9
9
  case "0x027792d9fed7f9844eb4839566001bb6f6cb4804f66aa2da6fe1ee242d896881":
10
- return "WBTC";
10
+ return "BTC";
11
11
  case "0xaf8cd5edc19c4512f4259f0bee101a40d41ebed738ade5874359610ef8eeced5":
12
- return "WETH";
12
+ return "ETH";
13
13
  case "0x5d4b302506645c37ff133b98c4b50a5ae14841659738d6d733d59d0d217a93bf":
14
14
  return "USDC";
15
15
  case "0xc060006111016b8a020ad5b33834984a437aaa7d3c74c18e09a95d48aceab08c":
@@ -25,9 +25,9 @@ function assetToDecimal(asset) {
25
25
  switch (asset) {
26
26
  case "SUI":
27
27
  return 9;
28
- case "WBTC":
28
+ case "BTC":
29
29
  return 8;
30
- case "WETH":
30
+ case "ETH":
31
31
  return 8;
32
32
  case "USDC":
33
33
  return 6;
@@ -32,6 +32,7 @@ export interface AdditionalConfig {
32
32
  auction_lot_size: string;
33
33
  auction_benchmark_price: string;
34
34
  oracle_id: string;
35
+ risk_level: string;
35
36
  }
36
37
  export declare function getUserShares(provider: JsonRpcProvider, packageId: string, registry: string, indexes: string[], user: string): Promise<Map<string, UserShare>>;
37
38
  export declare function getAuctionMaxSize(provider: JsonRpcProvider, packageId: string, typeArguments: string[], registry: string, additional_config_registry: string, index: string, priceOracle: string): Promise<BigInt>;
@@ -367,12 +367,18 @@ function getAdditionalConfigs(provider, packageId, additional_config_registry, i
367
367
  return (0, tools_1.AddressFromBytes)(reader.readBytes(32));
368
368
  })
369
369
  .at(0);
370
+ var risk_level = reader
371
+ .readVec(function (reader) {
372
+ return reader.read8();
373
+ })
374
+ .at(0);
370
375
  result[index] = {
371
376
  index: index,
372
377
  auction_start_delay_ts_ms: auction_start_delay_ts_ms ? auction_start_delay_ts_ms : "0",
373
378
  auction_lot_size: auction_lot_size ? auction_lot_size : "0",
374
379
  auction_benchmark_price: auction_benchmark_price ? auction_benchmark_price : "0",
375
380
  oracle_id: oracle_id ? oracle_id : "0",
381
+ risk_level: risk_level ? risk_level : "0",
376
382
  };
377
383
  });
378
384
  // @ts-ignore
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.0.63",
5
+ "version": "1.0.64",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.7.1",
8
8
  "@mysten/sui.js": "^0.34.1",