@glowlabs-org/utils 0.2.69 → 0.2.71

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.
@@ -1,9 +1,7 @@
1
- import type { Kickstarter, CreateKickstarterPayload, KickstarterCreateResponse, CommitKickstarterPayload, CommitKickstarterResponse } from "../types";
1
+ import type { Kickstarter, CreateKickstarterPayload, KickstarterCreateResponse, CommitKickstarterPayload, CommitKickstarterResponse, KickstarterDetails } from "../types";
2
2
  export declare function KickstarterRouter(baseUrl: string): {
3
3
  readonly fetchKickstarters: () => Promise<Kickstarter[]>;
4
- readonly fetchKickstarter: (idOrSlug: string) => Promise<Kickstarter & {
5
- contributorsCount: number;
6
- }>;
4
+ readonly fetchKickstarter: (idOrSlug: string) => Promise<KickstarterDetails>;
7
5
  readonly fetchKickstartersByWallet: (wallet: string) => Promise<Kickstarter[]>;
8
6
  readonly commitKickstarter: (kickstarterId: string, payload: CommitKickstarterPayload) => Promise<CommitKickstarterResponse>;
9
7
  readonly createKickstarter: (payload: CreateKickstarterPayload) => Promise<KickstarterCreateResponse>;
@@ -181,6 +181,11 @@ export interface Kickstarter {
181
181
  kickoffMintTxId?: string;
182
182
  kickoffStakeEventId?: string;
183
183
  }
184
+ export interface KickstarterDetails extends Kickstarter {
185
+ contributorsCount: number;
186
+ farmCount: number;
187
+ solarFarmApplications: SolarFarmApplication[];
188
+ }
184
189
  export interface CommitKickstarterPayload {
185
190
  wallet: string;
186
191
  amount: string;
@@ -224,8 +229,19 @@ export interface SponsoredFarm {
224
229
  isShowingSolarPanels: boolean;
225
230
  }[];
226
231
  }
232
+ export interface SolarFarmApplication {
233
+ applicationId: string;
234
+ farmId: string | null;
235
+ farmOwnerWallet: string;
236
+ regionId: number;
237
+ gcaWallet: string;
238
+ protocolDepositUSDC6Decimals: string;
239
+ status: "audit_fees_paid" | "completed";
240
+ createdAt: string;
241
+ }
227
242
  export interface RegionDetails extends RegionWithMetadata {
228
243
  sponsoredFarms: SponsoredFarm[];
244
+ solarFarmApplications: SolarFarmApplication[];
229
245
  glwPerWeek: number;
230
246
  usdgPerWeek: number;
231
247
  gctlPerWeek: number;