@gainsnetwork/sdk 0.2.18 → 0.2.19-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 +7 -0
  2. package/lib/constants.js +11 -4
  3. package/lib/contracts/utils/pairs.js +7 -0
  4. package/lib/trade/types.d.ts +8 -1
  5. package/lib/trade/types.js +7 -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
@@ -256,6 +256,13 @@ export declare const pairs: {
256
256
  "UXLINK/USD": string;
257
257
  "AVAIL/USD": string;
258
258
  "BANANA/USD": string;
259
+ "RARE/USD": string;
260
+ "SYS/USD": string;
261
+ "NMR/USD": string;
262
+ "RSR/USD": string;
263
+ "SYN/USD": string;
264
+ "AUCTION/USD": string;
265
+ "ALICE/USD": string;
259
266
  };
260
267
  export declare const getAssetClassFromGroupIndex: (groupIndex: number) => string | undefined;
261
268
  export declare const tickerChanges: {
package/lib/constants.js CHANGED
@@ -264,6 +264,13 @@ exports.pairs = {
264
264
  "UXLINK/USD": CRYPTO,
265
265
  "AVAIL/USD": CRYPTO,
266
266
  "BANANA/USD": CRYPTO,
267
+ "RARE/USD": CRYPTO,
268
+ "SYS/USD": CRYPTO,
269
+ "NMR/USD": CRYPTO,
270
+ "RSR/USD": CRYPTO,
271
+ "SYN/USD": CRYPTO,
272
+ "AUCTION/USD": CRYPTO,
273
+ "ALICE/USD": CRYPTO,
267
274
  };
268
275
  const getAssetClassFromGroupIndex = (groupIndex) => {
269
276
  switch (groupIndex) {
@@ -296,9 +303,9 @@ exports.stockSplits = {
296
303
  "TSLA_1/USD": { date: "8/25/2022", split: 3 },
297
304
  };
298
305
  exports.delistedPairIxs = new Set([
299
- 6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
300
- 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
301
- 89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
302
- 155, 15, 170, 239, 254, 230,
306
+ 6, 31, 36, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70,
307
+ 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89,
308
+ 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163, 155,
309
+ 15, 170, 239, 254, 230,
303
310
  ]);
304
311
  exports.delistedGroupsIxs = new Set([6, 7]);
@@ -362,4 +362,11 @@ const PAIR_INDEX_TO_DESCRIPTION = {
362
362
  [types_1.PairIndex.UXLINKUSD]: "UXLINK to US Dollar",
363
363
  [types_1.PairIndex.AVAILUSD]: "Avail to US Dollar",
364
364
  [types_1.PairIndex.BANANAUSD]: "Banana Gun to US Dollar",
365
+ [types_1.PairIndex.RAREUSD]: "SuperRare to US Dollar",
366
+ [types_1.PairIndex.SYSUSD]: "Syscoin to US Dollar",
367
+ [types_1.PairIndex.NMRUSD]: "Numeraire to US Dollar",
368
+ [types_1.PairIndex.RSRUSD]: "Reserve Rights to US Dollar",
369
+ [types_1.PairIndex.SYNUSD]: "Synapse to US Dollar",
370
+ [types_1.PairIndex.AUCTIONUSD]: "Bounce to US Dollar",
371
+ [types_1.PairIndex.ALICEUSD]: "My Neighbor Alice to US Dollar",
365
372
  };
@@ -446,5 +446,12 @@ export declare enum PairIndex {
446
446
  SLERFUSD = 253,
447
447
  UXLINKUSD = 254,
448
448
  AVAILUSD = 255,
449
- BANANAUSD = 256
449
+ BANANAUSD = 256,
450
+ RAREUSD = 257,
451
+ SYSUSD = 258,
452
+ NMRUSD = 259,
453
+ RSRUSD = 260,
454
+ SYNUSD = 261,
455
+ AUCTIONUSD = 262,
456
+ ALICEUSD = 263
450
457
  }
@@ -286,4 +286,11 @@ var PairIndex;
286
286
  PairIndex[PairIndex["UXLINKUSD"] = 254] = "UXLINKUSD";
287
287
  PairIndex[PairIndex["AVAILUSD"] = 255] = "AVAILUSD";
288
288
  PairIndex[PairIndex["BANANAUSD"] = 256] = "BANANAUSD";
289
+ PairIndex[PairIndex["RAREUSD"] = 257] = "RAREUSD";
290
+ PairIndex[PairIndex["SYSUSD"] = 258] = "SYSUSD";
291
+ PairIndex[PairIndex["NMRUSD"] = 259] = "NMRUSD";
292
+ PairIndex[PairIndex["RSRUSD"] = 260] = "RSRUSD";
293
+ PairIndex[PairIndex["SYNUSD"] = 261] = "SYNUSD";
294
+ PairIndex[PairIndex["AUCTIONUSD"] = 262] = "AUCTIONUSD";
295
+ PairIndex[PairIndex["ALICEUSD"] = 263] = "ALICEUSD";
289
296
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.18",
3
+ "version": "0.2.19-rc2",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [