@glowlabs-org/utils 0.2.87 → 0.2.89

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.
@@ -0,0 +1,4 @@
1
+ import type { SponsoredFarm } from "../types";
2
+ export declare function FarmsRouter(baseUrl: string): {
3
+ readonly fetchSponsoredFarms: (sponsorWallet?: string) => Promise<SponsoredFarm[]>;
4
+ };
@@ -212,14 +212,21 @@ export interface ActivationEvent {
212
212
  activated: boolean;
213
213
  ts: string;
214
214
  }
215
+ export interface FarmRewardSplit {
216
+ walletAddress: string;
217
+ glowSplitPercent6Decimals: string;
218
+ depositSplitPercent6Decimals: string;
219
+ }
215
220
  export interface SponsoredFarm {
216
221
  farmId: string;
222
+ regionId: number;
217
223
  name: string;
218
224
  location: string;
219
225
  certifiedInstallerId: string | null;
220
226
  kwhCapacity: string;
221
227
  solarPanelsQuantity: number;
222
228
  adjustedWeeklyCarbonCredits: string;
229
+ protocolDepositUSDC6Decimals: string;
223
230
  protocolDepositPaidAmount: string;
224
231
  protocolDepositPaidCurrency: string;
225
232
  protocolDepositPayerWallet: string | null;
@@ -233,6 +240,7 @@ export interface SponsoredFarm {
233
240
  url: string;
234
241
  isShowingSolarPanels: boolean;
235
242
  }[];
243
+ rewardSplits: FarmRewardSplit[];
236
244
  }
237
245
  export interface SolarFarmApplication {
238
246
  applicationId: string;
@@ -265,6 +273,9 @@ export interface ActivationEventsResponse {
265
273
  export interface RegionSolarFarmsResponse {
266
274
  sponsoredFarms: SponsoredFarm[];
267
275
  }
276
+ export interface SponsoredFarmsResponse {
277
+ farms: SponsoredFarm[];
278
+ }
268
279
  export interface FetchRegionsParams {
269
280
  isActive?: boolean;
270
281
  }