@glowlabs-org/utils 0.2.153 → 0.2.154

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.
@@ -72,3 +72,7 @@ export declare function createWeeklyReport({ week, gcaUrls, apiUrl, }: CreateWee
72
72
  deviationPercent: number;
73
73
  }[];
74
74
  }>;
75
+ export declare function fetchWeeklyFarmsData({ week, gcaUrls, apiUrl, }: CreateWeeklyReportArgs): Promise<{
76
+ farms: import("./types").Farm[];
77
+ rawData: import("./types").GCAServerResponse;
78
+ }>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowlabs-org/utils",
3
- "version": "0.2.153",
3
+ "version": "0.2.154",
4
4
  "description": "A library containing all typechain types and addresses relating to the glow guarded launch",
5
5
  "keywords": [],
6
6
  "author": "",
package/src/index.ts CHANGED
@@ -4,6 +4,7 @@ export * from "./constants/index";
4
4
  export {
5
5
  createWeeklyReport,
6
6
  createWeeklyReportLegacy,
7
+ fetchWeeklyFarmsData,
7
8
  } from "./lib/create-weekly-report/index";
8
9
  export * from "./lib/types";
9
10
  export { useForwarder } from "./lib/hooks/use-forwarder";
@@ -774,3 +774,16 @@ export async function createWeeklyReport({
774
774
  creditsDeviationList, // Detailed deviation report per farm
775
775
  };
776
776
  }
777
+
778
+ export async function fetchWeeklyFarmsData({
779
+ week,
780
+ gcaUrls,
781
+ apiUrl,
782
+ }: CreateWeeklyReportArgs) {
783
+ const apiResponse = await fetchFarmsForWeek(week, gcaUrls, apiUrl);
784
+
785
+ return {
786
+ farms: apiResponse.filteredFarms,
787
+ rawData: apiResponse.rawData,
788
+ };
789
+ }