@gainsnetwork/sdk 0.2.6-rc1 → 0.2.8-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 (66) hide show
  1. package/lib/constants.d.ts +11 -0
  2. package/lib/constants.js +12 -1
  3. package/lib/contracts/utils/pairs.js +11 -0
  4. package/lib/trade/types.d.ts +12 -1
  5. package/lib/trade/types.js +11 -0
  6. package/package.json +1 -1
  7. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
  8. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
  9. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
  10. package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
  11. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +0 -979
  12. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +0 -2
  13. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +0 -1058
  14. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +0 -2
  15. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  16. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  17. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  18. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  19. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +0 -911
  20. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +0 -2
  21. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +0 -660
  22. package/lib/contracts/types/generated/GNSPairsStorageV6.js +0 -2
  23. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  24. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  25. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  26. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  27. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +0 -806
  28. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +0 -2
  29. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +0 -821
  30. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +0 -2
  31. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  32. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  33. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
  34. package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
  35. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  36. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  37. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +0 -88
  38. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +0 -1654
  39. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +0 -113
  40. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +0 -1742
  41. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  42. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  43. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  44. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  45. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  46. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  47. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +0 -98
  48. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +0 -1485
  49. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +0 -117
  50. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +0 -1265
  51. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +0 -82
  52. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +0 -1273
  53. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +0 -82
  54. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +0 -1326
  55. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  56. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  57. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  58. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  59. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  60. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  61. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
  62. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
  63. package/lib/contracts/utils/openLimitOrders.d.ts +0 -8
  64. package/lib/contracts/utils/openLimitOrders.js +0 -88
  65. package/lib/trade/openLimitOrder.d.ts +0 -2
  66. package/lib/trade/openLimitOrder.js +0 -23
@@ -239,6 +239,17 @@ export declare const pairs: {
239
239
  "ZK/USD": string;
240
240
  "LISTA/USD": string;
241
241
  "BLAST/USD": string;
242
+ "RATS/USD": string;
243
+ "BNX/USD": string;
244
+ "PEOPLE/USD": string;
245
+ "TURBO/USD": string;
246
+ "SATS/USD": string;
247
+ "POPCAT/USD": string;
248
+ "MOG/USD": string;
249
+ "OM/USD": string;
250
+ "CORE/USD": string;
251
+ "JASMY/USD": string;
252
+ "DAR/USD": string;
242
253
  };
243
254
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
244
255
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -247,6 +247,17 @@ exports.pairs = {
247
247
  "ZK/USD": CRYPTO,
248
248
  "LISTA/USD": CRYPTO,
249
249
  "BLAST/USD": CRYPTO,
250
+ "RATS/USD": CRYPTO,
251
+ "BNX/USD": CRYPTO,
252
+ "PEOPLE/USD": CRYPTO,
253
+ "TURBO/USD": CRYPTO,
254
+ "SATS/USD": CRYPTO,
255
+ "POPCAT/USD": CRYPTO,
256
+ "MOG/USD": CRYPTO,
257
+ "OM/USD": CRYPTO,
258
+ "CORE/USD": CRYPTO,
259
+ "JASMY/USD": CRYPTO,
260
+ "DAR/USD": CRYPTO,
250
261
  };
251
262
  const getAssetClassFromGroupIndex = (groupIndex) => {
252
263
  switch (groupIndex) {
@@ -281,6 +292,6 @@ exports.delistedPairIxs = new Set([
281
292
  6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
282
293
  70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
283
294
  89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
284
- 155, 15, 170, 239,
295
+ 155, 15, 170, 239, 247, 248, 249, 250,
285
296
  ]);
286
297
  exports.delistedGroupsIxs = new Set([6, 7]);
@@ -345,4 +345,15 @@ const PAIR_INDEX_TO_DESCRIPTION = {
345
345
  [types_1.PairIndex.ZKUSD]: "ZKsync to US Dollar",
346
346
  [types_1.PairIndex.LISTAUSD]: "Lista DAO to US Dollar",
347
347
  [types_1.PairIndex.BLASTUSD]: "Blast to US Dollar",
348
+ [types_1.PairIndex.RATSUSD]: "Rats to US Dollar",
349
+ [types_1.PairIndex.BNXUSD]: "BinaryX to US Dollar",
350
+ [types_1.PairIndex.PEOPLEUSD]: "Constitution DAO to US Dollar",
351
+ [types_1.PairIndex.TURBOUSD]: "Turbo to US Dollar",
352
+ [types_1.PairIndex.SATSUSD]: "SATS Ordinals to US Dollar",
353
+ [types_1.PairIndex.POPCATUSD]: "Popcat to US Dollar",
354
+ [types_1.PairIndex.MOGUSD]: "Mog Coin to US Dollar",
355
+ [types_1.PairIndex.OMUSD]: "Mantra Chain to US Dollar",
356
+ [types_1.PairIndex.COREUSD]: "Core to US Dollar",
357
+ [types_1.PairIndex.JASMYUSD]: "Jasmy Coin to US Dollar",
358
+ [types_1.PairIndex.DARUSD]: "Mines of Dalarnia to US Dollar",
348
359
  };
@@ -429,5 +429,16 @@ export declare enum PairIndex {
429
429
  ZROUSD = 236,
430
430
  ZKUSD = 237,
431
431
  LISTAUSD = 238,
432
- BLASTUSD = 239
432
+ BLASTUSD = 239,
433
+ RATSUSD = 240,
434
+ BNXUSD = 241,
435
+ PEOPLEUSD = 242,
436
+ TURBOUSD = 243,
437
+ SATSUSD = 244,
438
+ POPCATUSD = 245,
439
+ MOGUSD = 246,
440
+ OMUSD = 247,
441
+ COREUSD = 248,
442
+ JASMYUSD = 249,
443
+ DARUSD = 250
433
444
  }
@@ -269,4 +269,15 @@ var PairIndex;
269
269
  PairIndex[PairIndex["ZKUSD"] = 237] = "ZKUSD";
270
270
  PairIndex[PairIndex["LISTAUSD"] = 238] = "LISTAUSD";
271
271
  PairIndex[PairIndex["BLASTUSD"] = 239] = "BLASTUSD";
272
+ PairIndex[PairIndex["RATSUSD"] = 240] = "RATSUSD";
273
+ PairIndex[PairIndex["BNXUSD"] = 241] = "BNXUSD";
274
+ PairIndex[PairIndex["PEOPLEUSD"] = 242] = "PEOPLEUSD";
275
+ PairIndex[PairIndex["TURBOUSD"] = 243] = "TURBOUSD";
276
+ PairIndex[PairIndex["SATSUSD"] = 244] = "SATSUSD";
277
+ PairIndex[PairIndex["POPCATUSD"] = 245] = "POPCATUSD";
278
+ PairIndex[PairIndex["MOGUSD"] = 246] = "MOGUSD";
279
+ PairIndex[PairIndex["OMUSD"] = 247] = "OMUSD";
280
+ PairIndex[PairIndex["COREUSD"] = 248] = "COREUSD";
281
+ PairIndex[PairIndex["JASMYUSD"] = 249] = "JASMYUSD";
282
+ PairIndex[PairIndex["DARUSD"] = 250] = "DARUSD";
272
283
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.6-rc1",
3
+ "version": "0.2.8-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [