@gainsnetwork/sdk 1.6.0 → 1.6.2-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 (35) hide show
  1. package/lib/constants.d.ts +8 -0
  2. package/lib/constants.js +14 -8
  3. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +1911 -0
  4. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +2 -0
  5. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +1067 -0
  6. package/lib/contracts/types/generated/GNSBorrowingFees.js +2 -0
  7. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +533 -0
  8. package/lib/contracts/types/generated/GNSNftRewardsV6.js +2 -0
  9. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +613 -0
  10. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +2 -0
  11. package/lib/contracts/types/generated/GNSTrading.d.ts +758 -0
  12. package/lib/contracts/types/generated/GNSTrading.js +2 -0
  13. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +875 -0
  14. package/lib/contracts/types/generated/GNSTradingCallbacks.js +2 -0
  15. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +1387 -0
  16. package/lib/contracts/types/generated/GNSTradingStorage.js +2 -0
  17. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +83 -0
  18. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +2691 -0
  19. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +124 -0
  20. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +1784 -0
  21. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +100 -0
  22. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +1116 -0
  23. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +100 -0
  24. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +1003 -0
  25. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +113 -0
  26. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +1428 -0
  27. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +96 -0
  28. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +2241 -0
  29. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +95 -0
  30. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +1071 -0
  31. package/lib/contracts/utils/pairs.js +4 -0
  32. package/lib/trade/fees/borrowingV2/fetcher.d.ts +0 -1
  33. package/lib/trade/types.d.ts +5 -1
  34. package/lib/trade/types.js +4 -0
  35. package/package.json +1 -1
@@ -589,4 +589,8 @@ const PAIR_INDEX_TO_DESCRIPTION = {
589
589
  [types_1.PairIndex.MONUSD]: "Monad to US Dollar",
590
590
  [types_1.PairIndex.METUSD]: "Meteora to US Dollar",
591
591
  [types_1.PairIndex.TURTLEUSD]: "Turtle to US Dollar",
592
+ [types_1.PairIndex.SPX500USD]: "S&P500 to US Dollar",
593
+ [types_1.PairIndex.NAS100USD]: "NASDAQ 100 to US Dollar",
594
+ [types_1.PairIndex.USA30USD]: "Down Jones 30 to US Dollar",
595
+ [types_1.PairIndex.NFLXUSD2]: "Netflix to US Dollar",
592
596
  };
@@ -1,4 +1,3 @@
1
- /// <reference types="mocha" />
2
1
  import type { GNSMultiCollatDiamond } from "../../../contracts/types/generated";
3
2
  import { BorrowingFeeV2 } from ".";
4
3
  /**
@@ -763,5 +763,9 @@ export declare enum PairIndex {
763
763
  USELESSUSD = 432,
764
764
  MONUSD = 433,
765
765
  METUSD = 434,
766
- TURTLEUSD = 435
766
+ TURTLEUSD = 435,
767
+ SPX500USD = 436,
768
+ NAS100USD = 437,
769
+ USA30USD = 438,
770
+ NFLXUSD2 = 439
767
771
  }
@@ -465,4 +465,8 @@ var PairIndex;
465
465
  PairIndex[PairIndex["MONUSD"] = 433] = "MONUSD";
466
466
  PairIndex[PairIndex["METUSD"] = 434] = "METUSD";
467
467
  PairIndex[PairIndex["TURTLEUSD"] = 435] = "TURTLEUSD";
468
+ PairIndex[PairIndex["SPX500USD"] = 436] = "SPX500USD";
469
+ PairIndex[PairIndex["NAS100USD"] = 437] = "NAS100USD";
470
+ PairIndex[PairIndex["USA30USD"] = 438] = "USA30USD";
471
+ PairIndex[PairIndex["NFLXUSD2"] = 439] = "NFLXUSD2";
468
472
  })(PairIndex = exports.PairIndex || (exports.PairIndex = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.2-rc1",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [