@glowlabs-org/utils 0.2.158 → 0.2.159

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/esm/index.js CHANGED
@@ -13,8 +13,8 @@ import { parseUnits, formatUnits } from 'viem';
13
13
  import { MerkleTree } from 'merkletreejs';
14
14
  import { solidityPackedKeccak256, keccak256 } from 'ethers';
15
15
  import Decimal from 'decimal.js';
16
- import { H as HUB_URL, U as USDG_WEIGHT_DECIMAL_PRECISION, G as GLOW_WEIGHT_DECIMAL_PRECISION, M as MAX_WEIGHT } from './calculate-farm-efficiency-Ceoa2xwl.js';
17
- export { C as ControlRouter, F as FarmsRouter, e as KICKSTARTER_STATUS, K as KickstarterRouter, O as OFF_CHAIN_PAYMENT_CURRENCIES, P as PAYMENT_CURRENCIES, d as REGIONS, R as RegionRouter, S as STAKING_DIRECTIONS, T as TRANSFER_TYPES, W as WalletsRouter, f as calculateFarmEfficiency, c as configureSentry, u as useForwarder, a as useOffchainFractions, b as useRewardsKernel } from './calculate-farm-efficiency-Ceoa2xwl.js';
16
+ import { H as HUB_URL, U as USDG_WEIGHT_DECIMAL_PRECISION, G as GLOW_WEIGHT_DECIMAL_PRECISION, M as MAX_WEIGHT } from './calculate-farm-efficiency-Bd0xGhLH.js';
17
+ export { C as ControlRouter, F as FarmsRouter, e as KICKSTARTER_STATUS, K as KickstarterRouter, O as OFF_CHAIN_PAYMENT_CURRENCIES, P as PAYMENT_CURRENCIES, d as REGIONS, R as RegionRouter, S as STAKING_DIRECTIONS, T as TRANSFER_TYPES, W as WalletsRouter, f as calculateFarmEfficiency, c as configureSentry, u as useForwarder, a as useOffchainFractions, b as useRewardsKernel } from './calculate-farm-efficiency-Bd0xGhLH.js';
18
18
 
19
19
  const GENESIS_TIMESTAMP = 1700352000;
20
20
 
@@ -156,6 +156,7 @@ export interface RegionWithMetadata extends Region {
156
156
  activationSolarFarmThreshold: number;
157
157
  installerCount: number;
158
158
  activationInstallerThreshold: number;
159
+ efficiencyScore: number;
159
160
  }
160
161
  export interface ActivationConfig {
161
162
  duration: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glowlabs-org/utils",
3
- "version": "0.2.158",
3
+ "version": "0.2.159",
4
4
  "description": "A library containing all typechain types and addresses relating to the glow guarded launch",
5
5
  "keywords": [],
6
6
  "author": "",
@@ -231,6 +231,7 @@ export function RegionRouter(baseUrl: string) {
231
231
  installerCount: 1,
232
232
  createdAt: new Date(),
233
233
  activationInstallerThreshold: 1,
234
+ efficiencyScore: 0,
234
235
  };
235
236
  };
236
237
 
@@ -198,6 +198,7 @@ export interface RegionWithMetadata extends Region {
198
198
  activationSolarFarmThreshold: number;
199
199
  installerCount: number;
200
200
  activationInstallerThreshold: number;
201
+ efficiencyScore: number; // Carbon credits per $100,000 deposit/week (aggregated)
201
202
  }
202
203
 
203
204
  export interface ActivationConfig {