@gainsnetwork/sdk 0.2.44-rc2 → 0.2.46

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.
@@ -306,6 +306,14 @@ export declare const pairs: {
306
306
  "ZEN/USD": string;
307
307
  "LUMIA/USD": string;
308
308
  "ALPH/USD": string;
309
+ "VIRTUAL/USD": string;
310
+ "SPX/USD": string;
311
+ "ACX/USD": string;
312
+ "CHILLGUY/USD": string;
313
+ "CHEX/USD": string;
314
+ "BITCOIN/USD": string;
315
+ "ETHDEGEN/USD": string;
316
+ "SOLDEGEN/USD": string;
309
317
  };
310
318
  export declare const syntheticPairs: Set<string>;
311
319
  export declare const parentToSyntheticPairMap: Map<string, string>;
package/lib/constants.js CHANGED
@@ -314,9 +314,25 @@ exports.pairs = {
314
314
  "ZEN/USD": CRYPTO,
315
315
  "LUMIA/USD": CRYPTO,
316
316
  "ALPH/USD": CRYPTO,
317
+ "VIRTUAL/USD": CRYPTO,
318
+ "SPX/USD": CRYPTO,
319
+ "ACX/USD": CRYPTO,
320
+ "CHILLGUY/USD": CRYPTO,
321
+ "CHEX/USD": CRYPTO,
322
+ "BITCOIN/USD": CRYPTO,
323
+ "ETHDEGEN/USD": CRYPTO,
324
+ "SOLDEGEN/USD": CRYPTO,
317
325
  };
318
- exports.syntheticPairs = new Set(["BTCDEGEN/USD"]);
319
- exports.parentToSyntheticPairMap = new Map([["BTC/USD", "BTCDEGEN/USD"]]);
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
+ ]);
320
336
  const getAssetClassFromGroupIndex = (groupIndex) => {
321
337
  switch (groupIndex) {
322
338
  case 0:
@@ -352,7 +368,7 @@ exports.delistedPairIxs = new Set([
352
368
  6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
353
369
  71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
354
370
  97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 15,
355
- 170, 239, 254, 230, 4, 275, 290, 296,
371
+ 170, 239, 254, 230, 4, 275, 290, 296, 307, 308, 309, 310, 311, 312,
356
372
  ]);
357
373
  exports.delistedGroupsIxs = new Set([6, 7]);
358
374
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -412,4 +412,12 @@ const PAIR_INDEX_TO_DESCRIPTION = {
412
412
  [types_1.PairIndex.ZENUSD]: "Horizen to US Dollar",
413
413
  [types_1.PairIndex.LUMIAUSD]: "Lumia to US Dollar",
414
414
  [types_1.PairIndex.ALPHUSD]: "Alephium to US Dollar",
415
+ [types_1.PairIndex.VIRTUALUSD]: "Virtuals Protocol to US Dollar",
416
+ [types_1.PairIndex.SPXUSD]: "SPX6900 to US Dollar",
417
+ [types_1.PairIndex.ACXUSD]: "Across Protocol to US Dollar",
418
+ [types_1.PairIndex.CHILLGUYUSD]: "Just a chill guy to US Dollar",
419
+ [types_1.PairIndex.CHEXUSD]: "CHEX to US Dollar",
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",
415
423
  };
@@ -525,5 +525,13 @@ export declare enum PairIndex {
525
525
  GRASSUSD = 303,
526
526
  ZENUSD = 304,
527
527
  LUMIAUSD = 305,
528
- ALPHUSD = 306
528
+ ALPHUSD = 306,
529
+ VIRTUALUSD = 307,
530
+ SPXUSD = 308,
531
+ ACXUSD = 309,
532
+ CHILLGUYUSD = 310,
533
+ CHEXUSD = 311,
534
+ BITCOINUSD = 312,
535
+ ETHDEGEN = 313,
536
+ SOLDEGEN = 314
529
537
  }
@@ -336,4 +336,12 @@ var PairIndex;
336
336
  PairIndex[PairIndex["ZENUSD"] = 304] = "ZENUSD";
337
337
  PairIndex[PairIndex["LUMIAUSD"] = 305] = "LUMIAUSD";
338
338
  PairIndex[PairIndex["ALPHUSD"] = 306] = "ALPHUSD";
339
+ PairIndex[PairIndex["VIRTUALUSD"] = 307] = "VIRTUALUSD";
340
+ PairIndex[PairIndex["SPXUSD"] = 308] = "SPXUSD";
341
+ PairIndex[PairIndex["ACXUSD"] = 309] = "ACXUSD";
342
+ PairIndex[PairIndex["CHILLGUYUSD"] = 310] = "CHILLGUYUSD";
343
+ PairIndex[PairIndex["CHEXUSD"] = 311] = "CHEXUSD";
344
+ PairIndex[PairIndex["BITCOINUSD"] = 312] = "BITCOINUSD";
345
+ PairIndex[PairIndex["ETHDEGEN"] = 313] = "ETHDEGEN";
346
+ PairIndex[PairIndex["SOLDEGEN"] = 314] = "SOLDEGEN";
339
347
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.44-rc2",
3
+ "version": "0.2.46",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [