@typus/typus-sdk 1.2.85 → 1.2.86
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/lib/config.json
CHANGED
|
@@ -46,7 +46,9 @@
|
|
|
46
46
|
"SUI": "0xeb6b3e3300ff884604ead6172b0aeadee3854980cab65a7feb57300b04b74cc1",
|
|
47
47
|
"TURBOS": "0x819ff07b5768d7b9b428b69b123140f6a74b04eaa978a4cbab9055025bd1536d",
|
|
48
48
|
"WBTC": "0x61813dc2e46dba41b14507857827f0ed7e99b0be242548828769728b81c8fab5",
|
|
49
|
-
"WETH": "0x253bbaaa35275240cf6df03258489707ea059762831e4102ebaabafd442bc935"
|
|
49
|
+
"WETH": "0x253bbaaa35275240cf6df03258489707ea059762831e4102ebaabafd442bc935",
|
|
50
|
+
"VSUI": "0x454a942594b52fbe08f7bab38c4ee3f677564a23ac1636dc21231f6fb5fc4538",
|
|
51
|
+
"HASUI": "0xae6f3bb346766afa6165190b78419316947b431d135e152a2f0324932caba33c"
|
|
50
52
|
}
|
|
51
53
|
},
|
|
52
54
|
"TESTNET": {
|
package/lib/utils/token.js
CHANGED
|
@@ -52,6 +52,14 @@ export declare const ASSET_INFO: {
|
|
|
52
52
|
product: PublicKey;
|
|
53
53
|
price: PublicKey;
|
|
54
54
|
};
|
|
55
|
+
HASUI: {
|
|
56
|
+
product: PublicKey;
|
|
57
|
+
price: PublicKey;
|
|
58
|
+
};
|
|
59
|
+
VSUI: {
|
|
60
|
+
product: PublicKey;
|
|
61
|
+
price: PublicKey;
|
|
62
|
+
};
|
|
55
63
|
};
|
|
56
64
|
export declare const tokenOrder: {
|
|
57
65
|
[key: string]: number;
|
|
@@ -151,6 +151,14 @@ exports.ASSET_INFO = {
|
|
|
151
151
|
product: new web3_js_1.PublicKey("AykbyeHZbUbEtEAPVpBLoPAMHBrUrDMtXJkPWZw4TRDX"),
|
|
152
152
|
price: new web3_js_1.PublicKey("g6eRCbboSwK4tSWngn773RCMexr1APQr4uA9bGZBYfo"),
|
|
153
153
|
},
|
|
154
|
+
HASUI: {
|
|
155
|
+
product: new web3_js_1.PublicKey("FGJutsZ3Hr9BaamiNUq369AamUEMArCxFeMnjZZ1u4oG"),
|
|
156
|
+
price: new web3_js_1.PublicKey("7Y9jRRHvqig2wdSkjnACwt1SV1qocjY81C9nKKVJ6zJs"),
|
|
157
|
+
},
|
|
158
|
+
VSUI: {
|
|
159
|
+
product: new web3_js_1.PublicKey("9L4zWUnRWEqHT9fvH5WkmQgXf7qrr97SGV4pofTSdK5k"),
|
|
160
|
+
price: new web3_js_1.PublicKey("6vWPEigSDaAi6m6HuX24aK4fJGJxvQZ8TLQKADC65S2S"),
|
|
161
|
+
},
|
|
154
162
|
};
|
|
155
163
|
exports.tokenOrder = {
|
|
156
164
|
// Basically it's a to z but put SUI at first
|
|
@@ -175,6 +183,8 @@ exports.tokenOrder = {
|
|
|
175
183
|
USDC: 16,
|
|
176
184
|
USDT: 17,
|
|
177
185
|
USDY: 18,
|
|
186
|
+
HASUI: 19,
|
|
187
|
+
VSUI: 19,
|
|
178
188
|
};
|
|
179
189
|
exports.optionTypeOrder = {
|
|
180
190
|
0: 0,
|
|
@@ -212,6 +222,8 @@ var DefaultOracleDecimal = {
|
|
|
212
222
|
MFUD: "8",
|
|
213
223
|
INJ: "8",
|
|
214
224
|
SCA: "8",
|
|
225
|
+
VSUI: "8",
|
|
226
|
+
HASUI: "8",
|
|
215
227
|
};
|
|
216
228
|
var parsePythOracleData = function (data, decimals) {
|
|
217
229
|
var prices = {};
|