@gainsnetwork/sdk 0.2.36 → 0.2.37-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 (34) hide show
  1. package/lib/constants.d.ts +8 -0
  2. package/lib/constants.js +9 -1
  3. package/lib/contracts/utils/pairs.js +8 -0
  4. package/lib/trade/types.d.ts +9 -1
  5. package/lib/trade/types.js +8 -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/GNSNftRewardsV6.d.ts +0 -533
  12. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  13. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  14. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  15. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  16. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  17. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  18. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  19. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  20. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  21. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  22. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  23. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  24. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  25. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  26. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  27. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  28. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  29. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  30. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  31. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  32. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  33. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  34. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
@@ -285,6 +285,14 @@ export declare const pairs: {
285
285
  "POLYX/USD": string;
286
286
  "MOODENG/USD": string;
287
287
  "MOTHER/USD": string;
288
+ "AERO/USD": string;
289
+ "CVC/USD": string;
290
+ "NEIROCTO/USD": string;
291
+ "ARK/USD": string;
292
+ "NPC/USD": string;
293
+ "ORBS/USD": string;
294
+ "APU/USD": string;
295
+ "BSV/USD": string;
288
296
  };
289
297
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
290
298
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -293,6 +293,14 @@ exports.pairs = {
293
293
  "POLYX/USD": CRYPTO,
294
294
  "MOODENG/USD": CRYPTO,
295
295
  "MOTHER/USD": CRYPTO,
296
+ "AERO/USD": CRYPTO,
297
+ "CVC/USD": CRYPTO,
298
+ "NEIROCTO/USD": CRYPTO,
299
+ "ARK/USD": CRYPTO,
300
+ "NPC/USD": CRYPTO,
301
+ "ORBS/USD": CRYPTO,
302
+ "APU/USD": CRYPTO,
303
+ "BSV/USD": CRYPTO,
296
304
  };
297
305
  const getAssetClassFromGroupIndex = (groupIndex) => {
298
306
  switch (groupIndex) {
@@ -328,7 +336,7 @@ exports.delistedPairIxs = new Set([
328
336
  6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
329
337
  71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
330
338
  97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 15,
331
- 170, 239, 254, 230, 4, 275,
339
+ 170, 239, 254, 230, 4, 275, 286, 287, 288, 289, 290, 291, 292, 293,
332
340
  ]);
333
341
  exports.delistedGroupsIxs = new Set([6, 7]);
334
342
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -391,4 +391,12 @@ const PAIR_INDEX_TO_DESCRIPTION = {
391
391
  [types_1.PairIndex.POLYXUSD]: "Polymesh to US Dollar",
392
392
  [types_1.PairIndex.MOODENGUSD]: "Moo Deng to US Dollar",
393
393
  [types_1.PairIndex.MOTHERUSD]: "Mother Iggy to US Dollar",
394
+ [types_1.PairIndex.AEROUSD]: "Aerodrome Finance to US Dollar",
395
+ [types_1.PairIndex.CVCUSD]: "Civic to US Dollar",
396
+ [types_1.PairIndex.NEIROCTOUSD]: "Neiro CTO to US Dollar",
397
+ [types_1.PairIndex.ARKUSD]: "Ark to US Dollar",
398
+ [types_1.PairIndex.NPCUSD]: "Non-Playable Coin to US Dollar",
399
+ [types_1.PairIndex.ORBSUSD]: "ORBS to US Dollar",
400
+ [types_1.PairIndex.APUUSD]: "Apu Apustaja to US Dollar",
401
+ [types_1.PairIndex.BSVUSD]: "Bitcoin SV to US Dollar",
394
402
  };
@@ -504,5 +504,13 @@ export declare enum PairIndex {
504
504
  EIGENUSD = 282,
505
505
  POLYXUSD = 283,
506
506
  MOODENGUSD = 284,
507
- MOTHERUSD = 285
507
+ MOTHERUSD = 285,
508
+ AEROUSD = 286,
509
+ CVCUSD = 287,
510
+ NEIROCTOUSD = 288,
511
+ ARKUSD = 289,
512
+ NPCUSD = 290,
513
+ ORBSUSD = 291,
514
+ APUUSD = 292,
515
+ BSVUSD = 293
508
516
  }
@@ -315,4 +315,12 @@ var PairIndex;
315
315
  PairIndex[PairIndex["POLYXUSD"] = 283] = "POLYXUSD";
316
316
  PairIndex[PairIndex["MOODENGUSD"] = 284] = "MOODENGUSD";
317
317
  PairIndex[PairIndex["MOTHERUSD"] = 285] = "MOTHERUSD";
318
+ PairIndex[PairIndex["AEROUSD"] = 286] = "AEROUSD";
319
+ PairIndex[PairIndex["CVCUSD"] = 287] = "CVCUSD";
320
+ PairIndex[PairIndex["NEIROCTOUSD"] = 288] = "NEIROCTOUSD";
321
+ PairIndex[PairIndex["ARKUSD"] = 289] = "ARKUSD";
322
+ PairIndex[PairIndex["NPCUSD"] = 290] = "NPCUSD";
323
+ PairIndex[PairIndex["ORBSUSD"] = 291] = "ORBSUSD";
324
+ PairIndex[PairIndex["APUUSD"] = 292] = "APUUSD";
325
+ PairIndex[PairIndex["BSVUSD"] = 293] = "BSVUSD";
318
326
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.36",
3
+ "version": "0.2.37-rc2",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [