@gainsnetwork/sdk 0.2.12-rc1 → 0.2.12-rc2

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.
@@ -250,6 +250,10 @@ export declare const pairs: {
250
250
  "CORE/USD": string;
251
251
  "JASMY/USD": string;
252
252
  "DAR/USD": string;
253
+ "MEW/USD": string;
254
+ "DEGEN/USD": string;
255
+ "SLERF/USD": string;
256
+ "UXLINK/USD": string;
253
257
  };
254
258
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
255
259
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -258,6 +258,10 @@ exports.pairs = {
258
258
  "CORE/USD": CRYPTO,
259
259
  "JASMY/USD": CRYPTO,
260
260
  "DAR/USD": CRYPTO,
261
+ "MEW/USD": CRYPTO,
262
+ "DEGEN/USD": CRYPTO,
263
+ "SLERF/USD": CRYPTO,
264
+ "UXLINK/USD": CRYPTO,
261
265
  };
262
266
  const getAssetClassFromGroupIndex = (groupIndex) => {
263
267
  switch (groupIndex) {
@@ -292,7 +296,7 @@ exports.delistedPairIxs = new Set([
292
296
  6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
293
297
  70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
294
298
  89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
295
- 155, 15, 170, 239, 247, 248, 249, 250,
299
+ 155, 15, 170, 239, 251, 252, 253, 254,
296
300
  ]);
297
301
  exports.delistedGroupsIxs = new Set([6, 7]);
298
302
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -373,4 +373,8 @@ const PAIR_INDEX_TO_DESCRIPTION = {
373
373
  [types_1.PairIndex.COREUSD]: "Core to US Dollar",
374
374
  [types_1.PairIndex.JASMYUSD]: "Jasmy Coin to US Dollar",
375
375
  [types_1.PairIndex.DARUSD]: "Mines of Dalarnia to US Dollar",
376
+ [types_1.PairIndex.MEWUSD]: "cat in a dogs world to US Dollar",
377
+ [types_1.PairIndex.DEGENUSD]: "Degen to US Dollar",
378
+ [types_1.PairIndex.SLERFUSD]: "Slerf to US Dollar",
379
+ [types_1.PairIndex.UXLINKUSD]: "UXLINK to US Dollar",
376
380
  };
@@ -32,7 +32,7 @@ const getSpreadWithPriceImpactP = (pairSpreadP, buy, collateral, leverage, pairD
32
32
  ? pairDepth === null || pairDepth === void 0 ? void 0 : pairDepth.onePercentDepthAboveUsd
33
33
  : pairDepth === null || pairDepth === void 0 ? void 0 : pairDepth.onePercentDepthBelowUsd
34
34
  : // if `short`
35
- (spreadCtx === null || spreadCtx === void 0 ? void 0 : spreadCtx.isOpen) !== false // assumes it's an open unless it's explicitly false
35
+ (spreadCtx === null || spreadCtx === void 0 ? void 0 : spreadCtx.isOpen) !== false
36
36
  ? pairDepth === null || pairDepth === void 0 ? void 0 : pairDepth.onePercentDepthBelowUsd
37
37
  : pairDepth === null || pairDepth === void 0 ? void 0 : pairDepth.onePercentDepthAboveUsd;
38
38
  let activeOi = undefined;
@@ -449,5 +449,9 @@ export declare enum PairIndex {
449
449
  OMUSD = 247,
450
450
  COREUSD = 248,
451
451
  JASMYUSD = 249,
452
- DARUSD = 250
452
+ DARUSD = 250,
453
+ MEWUSD = 251,
454
+ DEGENUSD = 252,
455
+ SLERFUSD = 253,
456
+ UXLINKUSD = 254
453
457
  }
@@ -280,4 +280,8 @@ var PairIndex;
280
280
  PairIndex[PairIndex["COREUSD"] = 248] = "COREUSD";
281
281
  PairIndex[PairIndex["JASMYUSD"] = 249] = "JASMYUSD";
282
282
  PairIndex[PairIndex["DARUSD"] = 250] = "DARUSD";
283
+ PairIndex[PairIndex["MEWUSD"] = 251] = "MEWUSD";
284
+ PairIndex[PairIndex["DEGENUSD"] = 252] = "DEGENUSD";
285
+ PairIndex[PairIndex["SLERFUSD"] = 253] = "SLERFUSD";
286
+ PairIndex[PairIndex["UXLINKUSD"] = 254] = "UXLINKUSD";
283
287
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.12-rc1",
3
+ "version": "0.2.12-rc2",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [