@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.
- package/dist/cjs/browser.js.map +1 -1
- package/dist/cjs/index.d.ts +1 -0
- package/dist/cjs/index.js +37 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/control-api/farms-router.d.ts +4 -0
- package/dist/cjs/lib/types/index.d.ts +11 -0
- package/dist/esm/browser.js.map +1 -1
- package/dist/esm/index.d.ts +1 -0
- package/dist/esm/index.js +37 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/control-api/farms-router.d.ts +4 -0
- package/dist/esm/lib/types/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/lib/control-api/farms-router.ts +44 -0
- package/src/lib/types/index.ts +13 -0
|
@@ -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
|
}
|