@gainsnetwork/sdk 1.6.9 → 1.6.10

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/markets/schedules/builders.js +6 -5
  2. package/lib/markets/schedules/holidays.js +2 -2
  3. package/package.json +1 -1
  4. package/lib/contracts/types/generated/GFarmTradingStorageV5.d.ts +0 -1911
  5. package/lib/contracts/types/generated/GFarmTradingStorageV5.js +0 -2
  6. package/lib/contracts/types/generated/GNSBorrowingFees.d.ts +0 -1067
  7. package/lib/contracts/types/generated/GNSBorrowingFees.js +0 -2
  8. package/lib/contracts/types/generated/GNSNftRewardsV6.d.ts +0 -533
  9. package/lib/contracts/types/generated/GNSNftRewardsV6.js +0 -2
  10. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.d.ts +0 -613
  11. package/lib/contracts/types/generated/GNSNftRewardsV6_3_1.js +0 -2
  12. package/lib/contracts/types/generated/GNSTrading.d.ts +0 -758
  13. package/lib/contracts/types/generated/GNSTrading.js +0 -2
  14. package/lib/contracts/types/generated/GNSTradingCallbacks.d.ts +0 -875
  15. package/lib/contracts/types/generated/GNSTradingCallbacks.js +0 -2
  16. package/lib/contracts/types/generated/GNSTradingStorage.d.ts +0 -1387
  17. package/lib/contracts/types/generated/GNSTradingStorage.js +0 -2
  18. package/lib/contracts/types/generated/GTokenV6_3_2.d.ts +0 -1838
  19. package/lib/contracts/types/generated/GTokenV6_3_2.js +0 -2
  20. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.d.ts +0 -83
  21. package/lib/contracts/types/generated/factories/GFarmTradingStorageV5__factory.js +0 -2691
  22. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.d.ts +0 -124
  23. package/lib/contracts/types/generated/factories/GNSBorrowingFees__factory.js +0 -1784
  24. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.d.ts +0 -100
  25. package/lib/contracts/types/generated/factories/GNSNftRewardsV6_3_1__factory.js +0 -1116
  26. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.d.ts +0 -100
  27. package/lib/contracts/types/generated/factories/GNSNftRewardsV6__factory.js +0 -1003
  28. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.d.ts +0 -113
  29. package/lib/contracts/types/generated/factories/GNSTradingCallbacks__factory.js +0 -1428
  30. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.d.ts +0 -96
  31. package/lib/contracts/types/generated/factories/GNSTradingStorage__factory.js +0 -2241
  32. package/lib/contracts/types/generated/factories/GNSTrading__factory.d.ts +0 -95
  33. package/lib/contracts/types/generated/factories/GNSTrading__factory.js +0 -1071
  34. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.d.ts +0 -110
  35. package/lib/contracts/types/generated/factories/GTokenV6_3_2__factory.js +0 -2682
@@ -24,8 +24,9 @@ const buildForexWeeklySchedule = (currentDate = new Date(), opts) => {
24
24
  const lowLiq = emptyWeekly();
25
25
  const openHour = isInDST ? 16 : 17; // Monday open
26
26
  const closeHour = isInDST ? 16 : 17; // Friday close
27
- // Open windows (ET): Mon 16/17:00 -> 24:00, Tue-Thu 0-24, Fri 0 -> 16/17:00
28
- add(open, types_1.WeekDay.Monday, { start: { hour: openHour, minute: 0 }, end: { hour: 24, minute: 0 } });
27
+ // Open windows (ET): Sun 16/17:00 -> 24:00, Mon-Thu 0-24, Fri 0 -> 16/17:00
28
+ add(open, types_1.WeekDay.Sunday, { start: { hour: openHour, minute: 0 }, end: { hour: 24, minute: 0 } });
29
+ add(open, types_1.WeekDay.Monday, { start: { hour: 0, minute: 0 }, end: { hour: 24, minute: 0 } });
29
30
  add(open, types_1.WeekDay.Tuesday, { start: { hour: 0, minute: 0 }, end: { hour: 24, minute: 0 } });
30
31
  add(open, types_1.WeekDay.Wednesday, { start: { hour: 0, minute: 0 }, end: { hour: 24, minute: 0 } });
31
32
  add(open, types_1.WeekDay.Thursday, { start: { hour: 0, minute: 0 }, end: { hour: 24, minute: 0 } });
@@ -37,13 +38,13 @@ const buildForexWeeklySchedule = (currentDate = new Date(), opts) => {
37
38
  const llStartMinute = 45;
38
39
  const llEndHour = isInDST ? (useExtended ? 21 : 19) : (useExtended ? 22 : 20);
39
40
  const llEndMinute = 0;
40
- for (const d of [types_1.WeekDay.Monday, types_1.WeekDay.Tuesday, types_1.WeekDay.Wednesday, types_1.WeekDay.Thursday, types_1.WeekDay.Friday]) {
41
+ for (const d of [types_1.WeekDay.Sunday, types_1.WeekDay.Monday, types_1.WeekDay.Tuesday, types_1.WeekDay.Wednesday, types_1.WeekDay.Thursday, types_1.WeekDay.Friday]) {
41
42
  add(lowLiq, d, { start: { hour: llStartHour, minute: llStartMinute }, end: { hour: llEndHour, minute: llEndMinute } });
42
43
  }
43
44
  const holidays = (0, holidays_1.getHolidaysInCurrentWeek)('forex', currentDate);
44
45
  const summary = isInDST
45
- ? 'Monday 4:00 pm - Friday 4:00 pm ET (Closed weekends & holidays)'
46
- : 'Monday 5:00 pm - Friday 5:00 pm ET (Closed weekends & holidays)';
46
+ ? 'Sunday 4:00 pm - Friday 4:00 pm ET (Closed weekends & holidays)'
47
+ : 'Sunday 5:00 pm - Friday 5:00 pm ET (Closed weekends & holidays)';
47
48
  return { open, lowLiq, holidays, summary };
48
49
  };
49
50
  exports.buildForexWeeklySchedule = buildForexWeeklySchedule;
@@ -28,10 +28,10 @@ const HOLIDAYS_OVERRIDES = {
28
28
  partial(2025, 12, 24, "Christmas Eve", 9, 30, 13, 0),
29
29
  ],
30
30
  indices: [
31
- partial(2025, 12, 24, "Christmas Eve", 9, 30, 13, 0),
31
+ partial(2025, 12, 24, "Christmas Eve", 9, 30, 12, 15),
32
32
  ],
33
33
  commodities: [
34
- partial(2025, 12, 24, "Christmas Eve", 0, 0, 12, 0),
34
+ partial(2025, 12, 24, "Christmas Eve", 0, 0, 12, 45),
35
35
  ],
36
36
  forex: [
37
37
  partial(2025, 12, 24, "Christmas Eve", 0, 0, 12, 45),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gainsnetwork/sdk",
3
- "version": "1.6.9",
3
+ "version": "1.6.10",
4
4
  "description": "Gains Network SDK",
5
5
  "main": "./lib/index.js",
6
6
  "files": [