@gainsnetwork/sdk 0.2.23 → 0.2.25-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 (34) hide show
  1. package/lib/constants.d.ts +4 -0
  2. package/lib/constants.js +5 -1
  3. package/lib/contracts/utils/pairs.js +4 -0
  4. package/lib/trade/types.d.ts +5 -1
  5. package/lib/trade/types.js +4 -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
@@ -268,6 +268,10 @@ export declare const pairs: {
268
268
  "DOGS/USD": string;
269
269
  "SSV/USD": string;
270
270
  "PONKE/USD": string;
271
+ "POL/USD": string;
272
+ "RDNT/USD": string;
273
+ "FLUX/USD": string;
274
+ "NEIRO/USD": string;
271
275
  };
272
276
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
273
277
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -276,6 +276,10 @@ exports.pairs = {
276
276
  "DOGS/USD": CRYPTO,
277
277
  "SSV/USD": CRYPTO,
278
278
  "PONKE/USD": CRYPTO,
279
+ "POL/USD": CRYPTO,
280
+ "RDNT/USD": CRYPTO,
281
+ "FLUX/USD": CRYPTO,
282
+ "NEIRO/USD": CRYPTO,
279
283
  };
280
284
  const getAssetClassFromGroupIndex = (groupIndex) => {
281
285
  switch (groupIndex) {
@@ -311,7 +315,7 @@ exports.delistedPairIxs = new Set([
311
315
  6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
312
316
  71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
313
317
  97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 155,
314
- 15, 170, 239, 254, 230,
318
+ 15, 170, 239, 254, 230, 269, 270, 271, 272,
315
319
  ]);
316
320
  exports.delistedGroupsIxs = new Set([6, 7]);
317
321
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -374,4 +374,8 @@ const PAIR_INDEX_TO_DESCRIPTION = {
374
374
  [types_1.PairIndex.DOGSUSD]: "DOGS to US Dollar",
375
375
  [types_1.PairIndex.SSVUSD]: "ssv.network to US Dollar",
376
376
  [types_1.PairIndex.PONKEUSD]: "Ponke to US Dollar",
377
+ [types_1.PairIndex.POLUSD]: "POL (ex-MATIC) to US Dollar",
378
+ [types_1.PairIndex.RDNTUSD]: "Radiant Capital to US Dollar",
379
+ [types_1.PairIndex.FLUXUSD]: "Flux to US Dollar",
380
+ [types_1.PairIndex.NEIROUSD]: "Neiro on ETH to US Dollar",
377
381
  };
@@ -474,5 +474,9 @@ export declare enum PairIndex {
474
474
  TRBUSD = 265,
475
475
  DOGSUSD = 266,
476
476
  SSVUSD = 267,
477
- PONKEUSD = 268
477
+ PONKEUSD = 268,
478
+ POLUSD = 269,
479
+ RDNTUSD = 270,
480
+ FLUXUSD = 271,
481
+ NEIROUSD = 272
478
482
  }
@@ -298,4 +298,8 @@ var PairIndex;
298
298
  PairIndex[PairIndex["DOGSUSD"] = 266] = "DOGSUSD";
299
299
  PairIndex[PairIndex["SSVUSD"] = 267] = "SSVUSD";
300
300
  PairIndex[PairIndex["PONKEUSD"] = 268] = "PONKEUSD";
301
+ PairIndex[PairIndex["POLUSD"] = 269] = "POLUSD";
302
+ PairIndex[PairIndex["RDNTUSD"] = 270] = "RDNTUSD";
303
+ PairIndex[PairIndex["FLUXUSD"] = 271] = "FLUXUSD";
304
+ PairIndex[PairIndex["NEIROUSD"] = 272] = "NEIROUSD";
301
305
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.23",
3
+ "version": "0.2.25-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [