@typus/typus-sdk 1.6.16 → 1.6.18

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.
@@ -331,6 +331,7 @@ exports.oracle = {
331
331
  STSUI: "0xe3bf33dddfb5d67482fdbab3167eb1ebde9aa89e6cd6e88a6265d281ee5a7d5c",
332
332
  WAL: "0xb3cf4c510dae839c627633531f1dace4e964c99c8ca18f65d2d2f646677ce4aa",
333
333
  LBTC: "0x7781a2f3a77a9a2b4a8fe8a5ce54eb8d155e924966ff9b8d4459c08efedc946b",
334
+ wAPT: "0x25f9ffcc52776d5f8656bbdb4a3339a411c1550f288560ab0b101170f23b8245",
334
335
  },
335
336
  TESTNET: {
336
337
  SUI: "0x9083c9ce1a1eef569bb1a8b31dfa5e0fce2e05887e68ba79ca6ae522acd041f3",
@@ -41,6 +41,7 @@ exports.priceIDs = {
41
41
  SUI: "0x50c67b3fd225db8912a424dd4baed60ffdde625ed2feaaf283724f9608fea266",
42
42
  CETUS: "0xcb324dafd531712dd31c39969ae0246ee4c6ae167257bcf8ac27e28ca35e6a0c",
43
43
  USDC: "0x41f3625971ca2ed2263e78573fe5ce23e13d2558ed3f2e47ab0f84fb9e7ae722",
44
+ wUSDC: "0x41f3625971ca2ed2263e78573fe5ce23e13d2558ed3f2e47ab0f84fb9e7ae722", // USDC/USD price ID
44
45
  wBTC: "0xf9c0172ba10dfa4d19088d94f5bf61d3b54d5bd7483a322a982e1373ee8ea31b",
45
46
  wETH: "0xca80ba6dc32e08d06f1aa886011eed1d77c77be9eb761cc10d72b7d0a2fd57a6",
46
47
  wSOL: "0xfe650f0367d4a7ef9815a593ea15d36593f0643aaaf0149bb04be67ab851decd",
@@ -8,5 +8,8 @@ export declare class PythClient {
8
8
  connection: SuiPriceServiceConnection;
9
9
  }
10
10
  export declare function createPythClient(provider: any, network: "MAINNET" | "TESTNET"): PythClient;
11
- export declare function updatePyth(pythClient: PythClient, tx: Transaction, tokens: string[]): Promise<ObjectId[]>;
11
+ /**
12
+ * @returns priceInfoObjectIds
13
+ */
14
+ export declare function updatePyth(pythClient: PythClient, tx: Transaction, tokens: TOKEN[]): Promise<ObjectId[]>;
12
15
  export declare function updateOracleWithPythUsd(pythClient: PythClient, tx: Transaction, oraclePackage: string, baseToken: TOKEN): void;
@@ -50,6 +50,9 @@ function createPythClient(provider, network) {
50
50
  var pythClient = { network: network, client: client, connection: connection };
51
51
  return pythClient;
52
52
  }
53
+ /**
54
+ * @returns priceInfoObjectIds
55
+ */
53
56
  function updatePyth(pythClient, tx, tokens) {
54
57
  return __awaiter(this, void 0, void 0, function () {
55
58
  var _priceIDs, priceFeedUpdateData, priceInfoObjectIds;
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.6.16",
5
+ "version": "1.6.18",
6
6
  "dependencies": {
7
7
  "@mysten/bcs": "^0.11.1",
8
8
  "@mysten/kiosk": "0.9.34",