@gainsnetwork/sdk 0.2.13 → 0.2.15-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.
Files changed (67) hide show
  1. package/lib/constants.d.ts +2 -0
  2. package/lib/constants.js +3 -1
  3. package/lib/contracts/utils/pairs.js +2 -0
  4. package/lib/markets/forex.js +1 -1
  5. package/lib/trade/types.d.ts +3 -1
  6. package/lib/trade/types.js +2 -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/GNSBorrowingFeesV6_3_2.d.ts +0 -979
  13. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +0 -2
  14. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
  15. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
  16. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  17. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  18. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  19. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  20. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
  21. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
  22. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
  23. package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
  24. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  25. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  26. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  27. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  28. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +0 -806
  29. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +0 -2
  30. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
  31. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
  32. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  33. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  34. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
  35. package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
  36. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  37. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  38. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +0 -88
  39. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +0 -1654
  40. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
  41. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
  42. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  43. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  44. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  45. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  46. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  47. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  48. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
  49. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
  50. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
  51. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
  52. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +0 -82
  53. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +0 -1273
  54. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
  55. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
  56. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  57. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  58. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  59. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  60. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  61. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  62. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
  63. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
  64. package/lib/contracts/utils/openLimitOrders.d.ts +0 -8
  65. package/lib/contracts/utils/openLimitOrders.js +0 -88
  66. package/lib/trade/openLimitOrder.d.ts +0 -2
  67. package/lib/trade/openLimitOrder.js +0 -23
@@ -254,6 +254,8 @@ export declare const pairs: {
254
254
  "DEGEN/USD": string;
255
255
  "SLERF/USD": string;
256
256
  "UXLINK/USD": string;
257
+ "AVAIL/USD": string;
258
+ "BANANA/USD": string;
257
259
  };
258
260
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
259
261
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -262,6 +262,8 @@ exports.pairs = {
262
262
  "DEGEN/USD": CRYPTO,
263
263
  "SLERF/USD": CRYPTO,
264
264
  "UXLINK/USD": CRYPTO,
265
+ "AVAIL/USD": CRYPTO,
266
+ "BANANA/USD": CRYPTO,
265
267
  };
266
268
  const getAssetClassFromGroupIndex = (groupIndex) => {
267
269
  switch (groupIndex) {
@@ -296,6 +298,6 @@ exports.delistedPairIxs = new Set([
296
298
  6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
297
299
  70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
298
300
  89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
299
- 155, 15, 170, 239, 254,
301
+ 155, 15, 170, 239, 254, 255, 256,
300
302
  ]);
301
303
  exports.delistedGroupsIxs = new Set([6, 7]);
@@ -360,4 +360,6 @@ const PAIR_INDEX_TO_DESCRIPTION = {
360
360
  [types_1.PairIndex.DEGENUSD]: "Degen to US Dollar",
361
361
  [types_1.PairIndex.SLERFUSD]: "Slerf to US Dollar",
362
362
  [types_1.PairIndex.UXLINKUSD]: "UXLINK to US Dollar",
363
+ [types_1.PairIndex.AVAILUSD]: "Avail to US Dollar",
364
+ [types_1.PairIndex.BANANAUSD]: "Banana Gun to US Dollar",
363
365
  };
@@ -39,7 +39,7 @@ const isForexLowLiquidity = (timestampToCheck, pair) => {
39
39
  ((hour == 14 && minute >= 45) || (hour >= 15 && hour < 21))) ||
40
40
  (!isInDST && ((hour == 15 && minute >= 45) || (hour >= 16 && hour < 22))));
41
41
  }
42
- return ((isInDST && ((hour == 15 && minute >= 45) || (hour >= 15 && hour < 19))) ||
42
+ return ((isInDST && ((hour == 15 && minute >= 45) || (hour >= 16 && hour < 19))) ||
43
43
  (!isInDST && ((hour == 16 && minute >= 45) || (hour >= 17 && hour < 20))));
44
44
  };
45
45
  exports.isForexLowLiquidity = isForexLowLiquidity;
@@ -444,5 +444,7 @@ export declare enum PairIndex {
444
444
  MEWUSD = 251,
445
445
  DEGENUSD = 252,
446
446
  SLERFUSD = 253,
447
- UXLINKUSD = 254
447
+ UXLINKUSD = 254,
448
+ AVAILUSD = 255,
449
+ BANANAUSD = 256
448
450
  }
@@ -284,4 +284,6 @@ var PairIndex;
284
284
  PairIndex[PairIndex["DEGENUSD"] = 252] = "DEGENUSD";
285
285
  PairIndex[PairIndex["SLERFUSD"] = 253] = "SLERFUSD";
286
286
  PairIndex[PairIndex["UXLINKUSD"] = 254] = "UXLINKUSD";
287
+ PairIndex[PairIndex["AVAILUSD"] = 255] = "AVAILUSD";
288
+ PairIndex[PairIndex["BANANAUSD"] = 256] = "BANANAUSD";
287
289
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.13",
3
+ "version": "0.2.15-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [