@gainsnetwork/sdk 0.2.0-rc4 → 0.2.0-rc5
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/constants.d.ts +10 -1
- package/lib/constants.js +11 -3
- package/lib/contracts/addresses.json +8 -8
- package/lib/contracts/utils/pairs.js +10 -2
- package/lib/trade/types.d.ts +11 -2
- package/lib/trade/types.js +11 -2
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -220,8 +220,17 @@ export declare const pairs: {
|
|
|
220
220
|
"RONIN/USD": string;
|
|
221
221
|
"ENA/USD": string;
|
|
222
222
|
"W/USD": string;
|
|
223
|
-
"TNSR/USD": string;
|
|
224
223
|
"ZEUS/USD": string;
|
|
224
|
+
"TNSR/USD": string;
|
|
225
|
+
"TAO/USD": string;
|
|
226
|
+
"OMNI/USD": string;
|
|
227
|
+
"PRCL/USD": string;
|
|
228
|
+
"MERL/USD": string;
|
|
229
|
+
"SAFE/USD": string;
|
|
230
|
+
"SAGA/USD": string;
|
|
231
|
+
"LL/USD": string;
|
|
232
|
+
"MSN/USD": string;
|
|
233
|
+
"REZ/USD": string;
|
|
225
234
|
};
|
|
226
235
|
export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
|
|
227
236
|
export declare const tickerChanges: {
|
package/lib/constants.js
CHANGED
|
@@ -228,8 +228,17 @@ exports.pairs = {
|
|
|
228
228
|
"RONIN/USD": CRYPTO,
|
|
229
229
|
"ENA/USD": CRYPTO,
|
|
230
230
|
"W/USD": CRYPTO,
|
|
231
|
-
"TNSR/USD": CRYPTO,
|
|
232
231
|
"ZEUS/USD": CRYPTO,
|
|
232
|
+
"TNSR/USD": CRYPTO,
|
|
233
|
+
"TAO/USD": CRYPTO,
|
|
234
|
+
"OMNI/USD": CRYPTO,
|
|
235
|
+
"PRCL/USD": CRYPTO,
|
|
236
|
+
"MERL/USD": CRYPTO,
|
|
237
|
+
"SAFE/USD": CRYPTO,
|
|
238
|
+
"SAGA/USD": CRYPTO,
|
|
239
|
+
"LL/USD": CRYPTO,
|
|
240
|
+
"MSN/USD": CRYPTO,
|
|
241
|
+
"REZ/USD": CRYPTO,
|
|
233
242
|
};
|
|
234
243
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
235
244
|
switch (groupIndex) {
|
|
@@ -263,7 +272,6 @@ exports.stockSplits = {
|
|
|
263
272
|
exports.delistedPairIxs = new Set([
|
|
264
273
|
6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
|
|
265
274
|
70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
|
|
266
|
-
89, 97, 99, 101, 106,
|
|
267
|
-
221, 222,
|
|
275
|
+
89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229,
|
|
268
276
|
]);
|
|
269
277
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
"gToken": "0xd3443ee1e91aF28e5FB858Fbd0D72A63bA8046E0"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"
|
|
36
|
+
"421614": {
|
|
37
37
|
"global": {
|
|
38
|
-
"gnsMultiCollatDiamond": "
|
|
38
|
+
"gnsMultiCollatDiamond": "0xd659a15812064C79E189fd950A189b15c75d3186"
|
|
39
39
|
},
|
|
40
40
|
"DAI": {
|
|
41
|
-
"gTokenOpenPnlFeed": "
|
|
42
|
-
"gToken": "
|
|
41
|
+
"gTokenOpenPnlFeed": "0x371a924C2DC433D0C83b67Ff71A4CBd2013b5046",
|
|
42
|
+
"gToken": "0xD6e33C7560009D60052d7A5E0476A8Db295bF8C7"
|
|
43
43
|
},
|
|
44
44
|
"ETH": {
|
|
45
|
-
"gTokenOpenPnlFeed": "
|
|
46
|
-
"gToken": "
|
|
45
|
+
"gTokenOpenPnlFeed": "0xab1042C2767461D59ABC9547b3B717ccae3Eb7C9",
|
|
46
|
+
"gToken": "0xfd7E69042812f3416C18261673b55eD005F67E01"
|
|
47
47
|
},
|
|
48
48
|
"USDC": {
|
|
49
|
-
"gTokenOpenPnlFeed": "
|
|
50
|
-
"gToken": "
|
|
49
|
+
"gTokenOpenPnlFeed": "0x38e6cEFcE96bdB65D64Fce8f4736b3763A5F9eD2",
|
|
50
|
+
"gToken": "0xb0C25646774Ad985B4f9ccD262623bA6D6F64677"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -82,7 +82,6 @@ const fetchFees = (contracts, feeIxs) => __awaiter(void 0, void 0, void 0, funct
|
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
exports.fetchFees = fetchFees;
|
|
85
|
-
// @todo test
|
|
86
85
|
const fetchOpenInterest = (collateralIndex, contracts, pairIxs) => __awaiter(void 0, void 0, void 0, function* () {
|
|
87
86
|
if (pairIxs.length === 0) {
|
|
88
87
|
return [];
|
|
@@ -334,6 +333,15 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
334
333
|
[types_1.PairIndex.RONINUSD]: "Ronin to US Dollar",
|
|
335
334
|
[types_1.PairIndex.ENAUSD]: "Ethena to US Dollar",
|
|
336
335
|
[types_1.PairIndex.WUSD]: "Wormhole to US Dollar",
|
|
337
|
-
[types_1.PairIndex.TNSRUSD]: "Tensor to US Dollar",
|
|
338
336
|
[types_1.PairIndex.ZEUSUSD]: "Zeus to US Dollar",
|
|
337
|
+
[types_1.PairIndex.TNSRUSD]: "Tensor to US Dollar",
|
|
338
|
+
[types_1.PairIndex.TAOUSD]: "Bittensor to US Dollar",
|
|
339
|
+
[types_1.PairIndex.OMNIUSD]: "Omni Network to US Dollar",
|
|
340
|
+
[types_1.PairIndex.PRCLUSD]: "Parcl to US Dollar",
|
|
341
|
+
[types_1.PairIndex.MERLUSD]: "Merlin Chain to US Dollar",
|
|
342
|
+
[types_1.PairIndex.SAFEUSD]: "Safe to US Dollar",
|
|
343
|
+
[types_1.PairIndex.SAGAUSD]: "Saga to US Dollar",
|
|
344
|
+
[types_1.PairIndex.LLUSD]: "Light Link to US Dollar",
|
|
345
|
+
[types_1.PairIndex.MSNUSD]: "Meson Network to US Dollar",
|
|
346
|
+
[types_1.PairIndex.REZUSD]: "Renzo to US Dollar",
|
|
339
347
|
};
|
package/lib/trade/types.d.ts
CHANGED
|
@@ -408,6 +408,15 @@ export declare enum PairIndex {
|
|
|
408
408
|
RONINUSD = 218,
|
|
409
409
|
ENAUSD = 219,
|
|
410
410
|
WUSD = 220,
|
|
411
|
-
|
|
412
|
-
|
|
411
|
+
ZEUSUSD = 221,
|
|
412
|
+
TNSRUSD = 222,
|
|
413
|
+
TAOUSD = 223,
|
|
414
|
+
OMNIUSD = 224,
|
|
415
|
+
PRCLUSD = 225,
|
|
416
|
+
MERLUSD = 226,
|
|
417
|
+
SAFEUSD = 227,
|
|
418
|
+
SAGAUSD = 228,
|
|
419
|
+
LLUSD = 229,
|
|
420
|
+
MSNUSD = 230,
|
|
421
|
+
REZUSD = 231
|
|
413
422
|
}
|
package/lib/trade/types.js
CHANGED
|
@@ -250,6 +250,15 @@ var PairIndex;
|
|
|
250
250
|
PairIndex[PairIndex["RONINUSD"] = 218] = "RONINUSD";
|
|
251
251
|
PairIndex[PairIndex["ENAUSD"] = 219] = "ENAUSD";
|
|
252
252
|
PairIndex[PairIndex["WUSD"] = 220] = "WUSD";
|
|
253
|
-
PairIndex[PairIndex["
|
|
254
|
-
PairIndex[PairIndex["
|
|
253
|
+
PairIndex[PairIndex["ZEUSUSD"] = 221] = "ZEUSUSD";
|
|
254
|
+
PairIndex[PairIndex["TNSRUSD"] = 222] = "TNSRUSD";
|
|
255
|
+
PairIndex[PairIndex["TAOUSD"] = 223] = "TAOUSD";
|
|
256
|
+
PairIndex[PairIndex["OMNIUSD"] = 224] = "OMNIUSD";
|
|
257
|
+
PairIndex[PairIndex["PRCLUSD"] = 225] = "PRCLUSD";
|
|
258
|
+
PairIndex[PairIndex["MERLUSD"] = 226] = "MERLUSD";
|
|
259
|
+
PairIndex[PairIndex["SAFEUSD"] = 227] = "SAFEUSD";
|
|
260
|
+
PairIndex[PairIndex["SAGAUSD"] = 228] = "SAGAUSD";
|
|
261
|
+
PairIndex[PairIndex["LLUSD"] = 229] = "LLUSD";
|
|
262
|
+
PairIndex[PairIndex["MSNUSD"] = 230] = "MSNUSD";
|
|
263
|
+
PairIndex[PairIndex["REZUSD"] = 231] = "REZUSD";
|
|
255
264
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|