@gainsnetwork/sdk 0.2.65 → 0.2.66-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 (62) hide show
  1. package/lib/constants.d.ts +7 -0
  2. package/lib/constants.js +9 -1
  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/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
@@ -369,6 +369,13 @@ export declare const pairs: {
369
369
  "WCT/USD": string;
370
370
  "BIGTIME/USD": string;
371
371
  "BABY/USD": string;
372
+ "COOKIE/USD": string;
373
+ "KMNO/USD": string;
374
+ "INIT/USD": string;
375
+ "SYRUP/USD": string;
376
+ "SIGN/USD": string;
377
+ "ZORA/USD": string;
378
+ "COIN/USD": string;
372
379
  };
373
380
  export declare const syntheticPairs: Set<string>;
374
381
  export declare const parentToSyntheticPairMap: Map<string, string>;
package/lib/constants.js CHANGED
@@ -377,6 +377,13 @@ exports.pairs = {
377
377
  "WCT/USD": CRYPTO,
378
378
  "BIGTIME/USD": CRYPTO,
379
379
  "BABY/USD": CRYPTO,
380
+ "COOKIE/USD": CRYPTO,
381
+ "KMNO/USD": CRYPTO,
382
+ "INIT/USD": CRYPTO,
383
+ "SYRUP/USD": CRYPTO,
384
+ "SIGN/USD": CRYPTO,
385
+ "ZORA/USD": CRYPTO,
386
+ "COIN/USD": STOCKS,
380
387
  };
381
388
  exports.syntheticPairs = new Set([
382
389
  "BTCDEGEN/USD",
@@ -429,7 +436,8 @@ exports.delistedPairIxs = new Set([
429
436
  99, 101, 106, 111, 113, 114, 116, 118, 120, 122, 123, 125, 127, 130, 147, 152,
430
437
  160, 163, 170, 179, 182, 183, 187, 188, 189, 190, 208, 209, 225, 229, 230,
431
438
  231, 238, 239, 241, 250, 253, 254, 258, 270, 275, 276, 278, 279, 282, 285,
432
- 290, 294, 296, 305, 330, 349, 352, 353, 354, 355, 357, 365, 366,
439
+ 290, 294, 296, 305, 330, 349, 352, 353, 354, 355, 357, 365, 366, 370, 371,
440
+ 372, 373, 374, 375, 376,
433
441
  ]);
434
442
  exports.delistedGroupsIxs = new Set([]);
435
443
  exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
@@ -475,4 +475,11 @@ const PAIR_INDEX_TO_DESCRIPTION = {
475
475
  [types_1.PairIndex.WCTUSD]: "WalletConnect Token to US Dollar",
476
476
  [types_1.PairIndex.BIGTIMEUSD]: "Big Time to US Dollar",
477
477
  [types_1.PairIndex.BABYUSD]: "Babylon to US Dollar",
478
+ [types_1.PairIndex.COOKIEUSD]: "Cookie DAO to US Dollar",
479
+ [types_1.PairIndex.KMNOUSD]: "Kamino to US Dollar",
480
+ [types_1.PairIndex.INITUSD]: "Initia to US Dollar",
481
+ [types_1.PairIndex.SYRUPUSD]: "Maple Finance to US Dollar",
482
+ [types_1.PairIndex.SIGNUSD]: "Sign to US Dollar",
483
+ [types_1.PairIndex.ZORAUSD]: "ZORA to US Dollar",
484
+ [types_1.PairIndex.COINUSD]: "Coinbase to US Dollar",
478
485
  };
@@ -592,5 +592,12 @@ export declare enum PairIndex {
592
592
  RFCUSD = 366,
593
593
  WCTUSD = 367,
594
594
  BIGTIMEUSD = 368,
595
- BABYUSD = 369
595
+ BABYUSD = 369,
596
+ COOKIEUSD = 370,
597
+ KMNOUSD = 371,
598
+ INITUSD = 372,
599
+ SYRUPUSD = 373,
600
+ SIGNUSD = 374,
601
+ ZORAUSD = 375,
602
+ COINUSD = 376
596
603
  }
@@ -399,4 +399,11 @@ var PairIndex;
399
399
  PairIndex[PairIndex["WCTUSD"] = 367] = "WCTUSD";
400
400
  PairIndex[PairIndex["BIGTIMEUSD"] = 368] = "BIGTIMEUSD";
401
401
  PairIndex[PairIndex["BABYUSD"] = 369] = "BABYUSD";
402
+ PairIndex[PairIndex["COOKIEUSD"] = 370] = "COOKIEUSD";
403
+ PairIndex[PairIndex["KMNOUSD"] = 371] = "KMNOUSD";
404
+ PairIndex[PairIndex["INITUSD"] = 372] = "INITUSD";
405
+ PairIndex[PairIndex["SYRUPUSD"] = 373] = "SYRUPUSD";
406
+ PairIndex[PairIndex["SIGNUSD"] = 374] = "SIGNUSD";
407
+ PairIndex[PairIndex["ZORAUSD"] = 375] = "ZORAUSD";
408
+ PairIndex[PairIndex["COINUSD"] = 376] = "COINUSD";
402
409
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "0.2.65",
3
+ "version": "0.2.66-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [