@gainsnetwork/sdk 0.2.55 → 0.2.56-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.
Files changed (39) hide show
  1. package/lib/constants.d.ts +4 -0
  2. package/lib/constants.js +6 -1
  3. package/lib/contracts/utils/borrowingFees.js +1 -0
  4. package/lib/contracts/utils/pairs.js +4 -0
  5. package/lib/trade/types.d.ts +5 -1
  6. package/lib/trade/types.js +4 -0
  7. package/package.json +1 -1
  8. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
  9. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
  10. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
  11. package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
  12. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  13. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  14. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  15. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  16. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  17. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  18. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  19. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  20. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  21. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  22. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  23. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  24. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  25. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  26. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  27. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  28. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  29. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  30. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  31. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  32. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  33. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  34. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  35. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  36. package/lib/contracts/utils/openLimitOrders.d.ts +0 -8
  37. package/lib/contracts/utils/openLimitOrders.js +0 -88
  38. package/lib/trade/openLimitOrder.d.ts +0 -2
  39. package/lib/trade/openLimitOrder.js +0 -23
@@ -342,6 +342,10 @@ export declare const pairs: {
342
342
  "VINE/USD": string;
343
343
  "TOSHI/USD": string;
344
344
  "BERA/USD": string;
345
+ "LAYER/USD": string;
346
+ "CHEEMS/USD": string;
347
+ "SOLV/USD": string;
348
+ "TST/USD": string;
345
349
  };
346
350
  export declare const syntheticPairs: Set<string>;
347
351
  export declare const parentToSyntheticPairMap: Map<string, string>;
package/lib/constants.js CHANGED
@@ -350,6 +350,10 @@ exports.pairs = {
350
350
  "VINE/USD": CRYPTO,
351
351
  "TOSHI/USD": CRYPTO,
352
352
  "BERA/USD": CRYPTO,
353
+ "LAYER/USD": CRYPTO,
354
+ "CHEEMS/USD": CRYPTO,
355
+ "SOLV/USD": CRYPTO,
356
+ "TST/USD": CRYPTO,
353
357
  };
354
358
  exports.syntheticPairs = new Set([
355
359
  "BTCDEGEN/USD",
@@ -400,7 +404,8 @@ exports.delistedPairIxs = new Set([
400
404
  4, 6, 31, 36, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
401
405
  71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
402
406
  97, 99, 101, 106, 108, 52, 131, 147, 152, 160, 179, 182, 183, 190, 229, 163,
403
- 15, 170, 239, 254, 230, 4, 275, 290, 296, 311, 330, 250, 276,
407
+ 15, 170, 239, 254, 230, 4, 275, 290, 296, 311, 330, 250, 276, 343, 344, 345,
408
+ 346,
404
409
  ]);
405
410
  exports.delistedGroupsIxs = new Set([6, 7]);
406
411
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -26,6 +26,7 @@ const getBorrowingGroupName = (groupIndex) => {
26
26
  "Forex GBP Majors",
27
27
  "Forex AUD",
28
28
  "Forex NZD",
29
+ "Crypto Degen",
29
30
  ];
30
31
  return groupNamesByIndex[groupIndex - 1] || "Unknown";
31
32
  };
@@ -448,4 +448,8 @@ const PAIR_INDEX_TO_DESCRIPTION = {
448
448
  [types_1.PairIndex.VINEUSD]: "Vine coin to US Dollar",
449
449
  [types_1.PairIndex.TOSHIUSD]: "Toshi to US Dollar",
450
450
  [types_1.PairIndex.BERAUSD]: "Berachain to US Dollar",
451
+ [types_1.PairIndex.LAYERUSD]: "Solayer to US Dollar",
452
+ [types_1.PairIndex.CHEEMSUSD]: "Cheems Token to US Dollar",
453
+ [types_1.PairIndex.SOLVUSD]: "Solv Protocol to US Dollar",
454
+ [types_1.PairIndex.TSTUSD]: "Test to US Dollar",
451
455
  };
@@ -561,5 +561,9 @@ export declare enum PairIndex {
561
561
  VVVUSD = 339,
562
562
  VINEUSD = 340,
563
563
  TOSHIUSD = 341,
564
- BERAUSD = 342
564
+ BERAUSD = 342,
565
+ LAYERUSD = 343,
566
+ CHEEMSUSD = 344,
567
+ SOLVUSD = 345,
568
+ TSTUSD = 346
565
569
  }
@@ -372,4 +372,8 @@ var PairIndex;
372
372
  PairIndex[PairIndex["VINEUSD"] = 340] = "VINEUSD";
373
373
  PairIndex[PairIndex["TOSHIUSD"] = 341] = "TOSHIUSD";
374
374
  PairIndex[PairIndex["BERAUSD"] = 342] = "BERAUSD";
375
+ PairIndex[PairIndex["LAYERUSD"] = 343] = "LAYERUSD";
376
+ PairIndex[PairIndex["CHEEMSUSD"] = 344] = "CHEEMSUSD";
377
+ PairIndex[PairIndex["SOLVUSD"] = 345] = "SOLVUSD";
378
+ PairIndex[PairIndex["TSTUSD"] = 346] = "TSTUSD";
375
379
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.55",
3
+ "version": "0.2.56-rc2",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [