@typus/typus-sdk 1.6.17 → 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",
|
|
@@ -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
|
-
|
|
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;
|