@gainsnetwork/sdk 0.2.12-rc4 → 0.2.12

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 (49) hide show
  1. package/lib/constants.d.ts +0 -1
  2. package/lib/constants.js +2 -3
  3. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.d.ts +979 -0
  4. package/lib/contracts/types/generated/GNSBorrowingFeesV6_3_2.js +2 -0
  5. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.d.ts +1058 -0
  6. package/lib/contracts/types/generated/GNSBorrowingFeesV6_4.js +2 -0
  7. package/lib/contracts/types/generated/GNSMultiCollatDiamond.d.ts +412 -892
  8. package/lib/contracts/types/generated/GNSPairInfosV6_1.d.ts +911 -0
  9. package/lib/contracts/types/generated/GNSPairInfosV6_1.js +2 -0
  10. package/lib/contracts/types/generated/GNSPairsStorageV6.d.ts +660 -0
  11. package/lib/contracts/types/generated/GNSPairsStorageV6.js +2 -0
  12. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.d.ts +806 -0
  13. package/lib/contracts/types/generated/GNSTradingCallbacksV6_3_2.js +2 -0
  14. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.d.ts +821 -0
  15. package/lib/contracts/types/generated/GNSTradingCallbacksV6_4.js +2 -0
  16. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +1838 -0
  17. package/lib/contracts/types/generated/GTokenV6_3_2.js +2 -0
  18. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.d.ts +88 -0
  19. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_3_2__factory.js +1654 -0
  20. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.d.ts +113 -0
  21. package/lib/contracts/types/generated/factories/GNSBorrowingFeesV6_4__factory.js +1742 -0
  22. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.d.ts +94 -0
  23. package/lib/contracts/types/generated/factories/GNSMultiCollatDiamond__factory.js +852 -2130
  24. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.d.ts +98 -0
  25. package/lib/contracts/types/generated/factories/GNSPairInfosV6_1__factory.js +1485 -0
  26. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.d.ts +117 -0
  27. package/lib/contracts/types/generated/factories/GNSPairsStorageV6__factory.js +1265 -0
  28. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.d.ts +82 -0
  29. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_3_2__factory.js +1273 -0
  30. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.d.ts +82 -0
  31. package/lib/contracts/types/generated/factories/GNSTradingCallbacksV6_4__factory.js +1326 -0
  32. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +110 -0
  33. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +2682 -0
  34. package/lib/contracts/utils/openLimitOrders.d.ts +8 -0
  35. package/lib/contracts/utils/openLimitOrders.js +88 -0
  36. package/lib/contracts/utils/openTrades.js +2 -11
  37. package/lib/contracts/utils/pairs.d.ts +0 -1
  38. package/lib/contracts/utils/pairs.js +1 -18
  39. package/lib/markets/forex.js +2 -2
  40. package/lib/trade/liquidation.d.ts +2 -7
  41. package/lib/trade/liquidation.js +3 -34
  42. package/lib/trade/openLimitOrder.d.ts +2 -0
  43. package/lib/trade/openLimitOrder.js +23 -0
  44. package/lib/trade/pnl.d.ts +2 -2
  45. package/lib/trade/pnl.js +2 -4
  46. package/lib/trade/spread.d.ts +2 -13
  47. package/lib/trade/spread.js +8 -54
  48. package/lib/trade/types.d.ts +1 -10
  49. package/package.json +1 -1
@@ -282,4 +282,3 @@ export declare const stockSplits: {
282
282
  };
283
283
  export declare const delistedPairIxs: Set<number>;
284
284
  export declare const delistedGroupsIxs: Set<number>;
285
- export declare const DEFAULT_PROTECTION_CLOSE_FACTOR = 1;
package/lib/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DEFAULT_PROTECTION_CLOSE_FACTOR = exports.delistedGroupsIxs = exports.delistedPairIxs = exports.stockSplits = exports.tickerChanges = exports.getAssetClassFromGroupIndex = exports.pairs = void 0;
3
+ exports.delistedGroupsIxs = exports.delistedPairIxs = exports.stockSplits = exports.tickerChanges = exports.getAssetClassFromGroupIndex = exports.pairs = void 0;
4
4
  const CRYPTO = "crypto";
5
5
  const FOREX = "forex";
6
6
  const STOCKS = "stocks";
@@ -296,7 +296,6 @@ exports.delistedPairIxs = new Set([
296
296
  6, 31, 36, 42, 45, 48, 51, 54, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69,
297
297
  70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88,
298
298
  89, 97, 99, 101, 106, 108, 52, 131, 147, 160, 179, 182, 183, 190, 229, 163,
299
- 155, 15, 170, 239, 251, 252, 253, 254,
299
+ 155, 15, 170, 239, 254,
300
300
  ]);
301
301
  exports.delistedGroupsIxs = new Set([6, 7]);
302
- exports.DEFAULT_PROTECTION_CLOSE_FACTOR = 1;