@gainsnetwork/sdk 1.8.8 → 1.8.9-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 +1 -0
- package/lib/constants.js +3 -0
- package/lib/contracts/utils/pairs.js +1 -0
- package/lib/trade/types.d.ts +2 -1
- package/lib/trade/types.js +1 -0
- package/package.json +1 -1
package/lib/constants.d.ts
CHANGED
|
@@ -451,6 +451,7 @@ export declare const pairs: {
|
|
|
451
451
|
"NATGAS/USD": string;
|
|
452
452
|
"BRENT/USD": string;
|
|
453
453
|
"URNM/USD": string;
|
|
454
|
+
"HYPEDEGEN/USD": string;
|
|
454
455
|
};
|
|
455
456
|
export declare const syntheticPairs: Set<string>;
|
|
456
457
|
export declare const parentToSyntheticPairMap: Map<string, string>;
|
package/lib/constants.js
CHANGED
|
@@ -459,6 +459,7 @@ exports.pairs = {
|
|
|
459
459
|
"NATGAS/USD": COMMODITIES,
|
|
460
460
|
"BRENT/USD": COMMODITIES,
|
|
461
461
|
"URNM/USD": INDICES,
|
|
462
|
+
"HYPEDEGEN/USD": CRYPTO,
|
|
462
463
|
};
|
|
463
464
|
exports.syntheticPairs = new Set([
|
|
464
465
|
"BTCDEGEN/USD",
|
|
@@ -466,6 +467,7 @@ exports.syntheticPairs = new Set([
|
|
|
466
467
|
"SOLDEGEN/USD",
|
|
467
468
|
"XRPDEGEN/USD",
|
|
468
469
|
"BNBDEGEN/USD",
|
|
470
|
+
"HYPEDEGEN/USD",
|
|
469
471
|
]);
|
|
470
472
|
exports.parentToSyntheticPairMap = new Map([
|
|
471
473
|
["BTC/USD", "BTCDEGEN/USD"],
|
|
@@ -473,6 +475,7 @@ exports.parentToSyntheticPairMap = new Map([
|
|
|
473
475
|
["SOL/USD", "SOLDEGEN/USD"],
|
|
474
476
|
["XRP/USD", "XRPDEGEN/USD"],
|
|
475
477
|
["BNB/USD", "BNBDEGEN/USD"],
|
|
478
|
+
["HYPE/USD", "HYPEDEGEN/USD"],
|
|
476
479
|
]);
|
|
477
480
|
const getAssetClassFromGroupIndex = (groupIndex) => {
|
|
478
481
|
switch (groupIndex) {
|
|
@@ -605,4 +605,5 @@ 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",
|
|
608
609
|
};
|
package/lib/trade/types.d.ts
CHANGED
package/lib/trade/types.js
CHANGED
|
@@ -481,4 +481,5 @@ 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";
|
|
484
485
|
})(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
|