@gainsnetwork/sdk 1.8.8 → 1.8.10
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 +4 -0
- 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
|
@@ -451,6 +451,8 @@ export declare const pairs: {
|
|
|
451
451
|
"NATGAS/USD": string;
|
|
452
452
|
"BRENT/USD": string;
|
|
453
453
|
"URNM/USD": string;
|
|
454
|
+
"HYPEDEGEN/USD": string;
|
|
455
|
+
"MEGA/USD": string;
|
|
454
456
|
};
|
|
455
457
|
export declare const syntheticPairs: Set<string>;
|
|
456
458
|
export declare const parentToSyntheticPairMap: Map<string, string>;
|
package/lib/constants.js
CHANGED
|
@@ -459,6 +459,8 @@ exports.pairs = {
|
|
|
459
459
|
"NATGAS/USD": COMMODITIES,
|
|
460
460
|
"BRENT/USD": COMMODITIES,
|
|
461
461
|
"URNM/USD": INDICES,
|
|
462
|
+
"HYPEDEGEN/USD": CRYPTO,
|
|
463
|
+
"MEGA/USD": CRYPTO,
|
|
462
464
|
};
|
|
463
465
|
exports.syntheticPairs = new Set([
|
|
464
466
|
"BTCDEGEN/USD",
|
|
@@ -466,6 +468,7 @@ exports.syntheticPairs = new Set([
|
|
|
466
468
|
"SOLDEGEN/USD",
|
|
467
469
|
"XRPDEGEN/USD",
|
|
468
470
|
"BNBDEGEN/USD",
|
|
471
|
+
"HYPEDEGEN/USD",
|
|
469
472
|
]);
|
|
470
473
|
exports.parentToSyntheticPairMap = new Map([
|
|
471
474
|
["BTC/USD", "BTCDEGEN/USD"],
|
|
@@ -473,6 +476,7 @@ exports.parentToSyntheticPairMap = new Map([
|
|
|
473
476
|
["SOL/USD", "SOLDEGEN/USD"],
|
|
474
477
|
["XRP/USD", "XRPDEGEN/USD"],
|
|
475
478
|
["BNB/USD", "BNBDEGEN/USD"],
|
|
479
|
+
["HYPE/USD", "HYPEDEGEN/USD"],
|
|
476
480
|
]);
|
|
477
481
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
478
482
|
switch (groupIndex) {
|
|
@@ -605,4 +605,6 @@ const PAIR_INDEX_TO_DESCRIPTION = {
|
|
|
605
605
|
[types_1.PairIndex.NATGASUSD]: "Natural Gas to US Dollar",
|
|
606
606
|
[types_1.PairIndex.BRENTUSD]: "Brent Crude Oil to US Dollar",
|
|
607
607
|
[types_1.PairIndex.URNMUSD]: "Sprott Uranium Miners ETF to US Dollar",
|
|
608
|
+
[types_1.PairIndex.HYPEDEGEN]: "Hyperliquid to US Dollar",
|
|
609
|
+
[types_1.PairIndex.MEGA]: "MegaETH to US Dollar",
|
|
608
610
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -481,4 +481,6 @@ var PairIndex;
|
|
|
481
481
|
PairIndex[PairIndex["NATGASUSD"] = 449] = "NATGASUSD";
|
|
482
482
|
PairIndex[PairIndex["BRENTUSD"] = 450] = "BRENTUSD";
|
|
483
483
|
PairIndex[PairIndex["URNMUSD"] = 451] = "URNMUSD";
|
|
484
|
+
PairIndex[PairIndex["HYPEDEGEN"] = 452] = "HYPEDEGEN";
|
|
485
|
+
PairIndex[PairIndex["MEGA"] = 453] = "MEGA";
|
|
484
486
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|