@gainsnetwork/sdk 0.2.45-rc1 → 0.2.46-rc1
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 +2 -0
- package/lib/constants.js +13 -3
- package/lib/contracts/utils/pairs.js +2 -0
- package/lib/trade/types.d.ts +3 -1
- package/lib/trade/types.js +2 -0
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -312,6 +312,8 @@ export declare const pairs: {
|
|
|
312
312
|
"CHILLGUY/USD": string;
|
|
313
313
|
"CHEX/USD": string;
|
|
314
314
|
"BITCOIN/USD": string;
|
|
315
|
+
"ETHDEGEN/USD": string;
|
|
316
|
+
"SOLDEGEN/USD": string;
|
|
315
317
|
};
|
|
316
318
|
export declare const syntheticPairs: Set<string>;
|
|
317
319
|
export declare const parentToSyntheticPairMap: Map<string, string>;
|
package/lib/constants.js
CHANGED
|
@@ -320,9 +320,19 @@ exports.pairs = {
|
|
|
320
320
|
"CHILLGUY/USD": CRYPTO,
|
|
321
321
|
"CHEX/USD": CRYPTO,
|
|
322
322
|
"BITCOIN/USD": CRYPTO,
|
|
323
|
+
"ETHDEGEN/USD": CRYPTO,
|
|
324
|
+
"SOLDEGEN/USD": CRYPTO,
|
|
323
325
|
};
|
|
324
|
-
exports.syntheticPairs = new Set([
|
|
325
|
-
|
|
326
|
+
exports.syntheticPairs = new Set([
|
|
327
|
+
"BTCDEGEN/USD",
|
|
328
|
+
"ETHDEGEN/USD",
|
|
329
|
+
"SOLDEGEN/USD",
|
|
330
|
+
]);
|
|
331
|
+
exports.parentToSyntheticPairMap = new Map([
|
|
332
|
+
["BTC/USD", "BTCDEGEN/USD"],
|
|
333
|
+
["ETH/USD", "ETHDEGEN/USD"],
|
|
334
|
+
["SOL/USD", "SOLDEGEN/USD"],
|
|
335
|
+
]);
|
|
326
336
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
327
337
|
switch (groupIndex) {
|
|
328
338
|
case 0:
|
|
@@ -358,7 +368,7 @@ exports.delistedPairIxs = new Set([
|
|
|
358
368
|
6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
|
|
359
369
|
71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
|
|
360
370
|
97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 15,
|
|
361
|
-
170, 239, 254, 230, 4, 275, 290, 296, 307, 308, 309, 310, 311, 312,
|
|
371
|
+
170, 239, 254, 230, 4, 275, 290, 296, 307, 308, 309, 310, 311, 312, 313, 314,
|
|
362
372
|
]);
|
|
363
373
|
exports.delistedGroupsIxs = new Set([6, 7]);
|
|
364
374
|
exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
|
|
@@ -418,4 +418,6 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
418
418
|
[types_1.PairIndex.CHILLGUYUSD]: "Just a chill guy to US Dollar",
|
|
419
419
|
[types_1.PairIndex.CHEXUSD]: "CHEX to US Dollar",
|
|
420
420
|
[types_1.PairIndex.BITCOINUSD]: "HarryPotterObamaSonic10Inu to US Dollar",
|
|
421
|
+
[types_1.PairIndex.ETHDEGEN]: "Ethereum to US Dollar",
|
|
422
|
+
[types_1.PairIndex.SOLDEGEN]: "Solana to US Dollar",
|
|
421
423
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -342,4 +342,6 @@ var PairIndex;
|
|
|
342
342
|
PairIndex[PairIndex["CHILLGUYUSD"] = 310] = "CHILLGUYUSD";
|
|
343
343
|
PairIndex[PairIndex["CHEXUSD"] = 311] = "CHEXUSD";
|
|
344
344
|
PairIndex[PairIndex["BITCOINUSD"] = 312] = "BITCOINUSD";
|
|
345
|
+
PairIndex[PairIndex["ETHDEGEN"] = 313] = "ETHDEGEN";
|
|
346
|
+
PairIndex[PairIndex["SOLDEGEN"] = 314] = "SOLDEGEN";
|
|
345
347
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|