@glowlabs-org/utils 0.2.156 → 0.2.158

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.
@@ -17,3 +17,4 @@ export * from "./constants/urls";
17
17
  export * from "./utils/stake-control";
18
18
  export * from "./utils/transaction-utils";
19
19
  export { configureSentry, type SentryClientLike } from "./utils/sentry";
20
+ export * from "./utils/calculate-farm-efficiency";
@@ -1,6 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var farmsRouter = require('./farms-router-DekpTBQj.js');
3
+ var calculateFarmEfficiency = require('./calculate-farm-efficiency-CLa5037R.js');
4
+ require('decimal.js');
4
5
  var viem = require('viem');
5
6
  require('ethers');
6
7
 
@@ -12372,7 +12373,7 @@ async function validatePayProtocolDepositUsingStakedControlSignature(input, doma
12372
12373
  address: viem.checksumAddress(input.wallet),
12373
12374
  domain,
12374
12375
  types: payProtocolDepositUsingStakedControlEIP712Types,
12375
- primaryType: farmsRouter.TRANSFER_TYPES.PayProtocolDepositUsingStakedControl,
12376
+ primaryType: calculateFarmEfficiency.TRANSFER_TYPES.PayProtocolDepositUsingStakedControl,
12376
12377
  message,
12377
12378
  signature: input.signature,
12378
12379
  });
@@ -12410,60 +12411,61 @@ async function validateVerifyUserSignature(input, domain = stakeControlEIP712Dom
12410
12411
  }
12411
12412
  }
12412
12413
 
12413
- exports.ControlRouter = farmsRouter.ControlRouter;
12414
- exports.DECIMALS_BY_TOKEN = farmsRouter.DECIMALS_BY_TOKEN;
12415
- exports.FORWARDER_ABI = farmsRouter.FORWARDER_ABI;
12416
- exports.FarmsRouter = farmsRouter.FarmsRouter;
12414
+ exports.ControlRouter = calculateFarmEfficiency.ControlRouter;
12415
+ exports.DECIMALS_BY_TOKEN = calculateFarmEfficiency.DECIMALS_BY_TOKEN;
12416
+ exports.FORWARDER_ABI = calculateFarmEfficiency.FORWARDER_ABI;
12417
+ exports.FarmsRouter = calculateFarmEfficiency.FarmsRouter;
12417
12418
  Object.defineProperty(exports, "ForwarderError", {
12418
12419
  enumerable: true,
12419
- get: function () { return farmsRouter.ForwarderError; }
12420
+ get: function () { return calculateFarmEfficiency.ForwarderError; }
12420
12421
  });
12421
- exports.GCA_URLS = farmsRouter.GCA_URLS;
12422
- exports.GLOW_WEIGHT_DECIMAL_PRECISION = farmsRouter.GLOW_WEIGHT_DECIMAL_PRECISION;
12423
- exports.HUB_URL = farmsRouter.HUB_URL;
12422
+ exports.GCA_URLS = calculateFarmEfficiency.GCA_URLS;
12423
+ exports.GLOW_WEIGHT_DECIMAL_PRECISION = calculateFarmEfficiency.GLOW_WEIGHT_DECIMAL_PRECISION;
12424
+ exports.HUB_URL = calculateFarmEfficiency.HUB_URL;
12424
12425
  Object.defineProperty(exports, "KICKSTARTER_STATUS", {
12425
12426
  enumerable: true,
12426
- get: function () { return farmsRouter.KICKSTARTER_STATUS; }
12427
+ get: function () { return calculateFarmEfficiency.KICKSTARTER_STATUS; }
12427
12428
  });
12428
- exports.KickstarterRouter = farmsRouter.KickstarterRouter;
12429
- exports.MAX_WEIGHT = farmsRouter.MAX_WEIGHT;
12430
- exports.OFFCHAIN_FRACTIONS_ABI = farmsRouter.OFFCHAIN_FRACTIONS_ABI;
12431
- exports.OFF_CHAIN_PAYMENT_CURRENCIES = farmsRouter.OFF_CHAIN_PAYMENT_CURRENCIES;
12429
+ exports.KickstarterRouter = calculateFarmEfficiency.KickstarterRouter;
12430
+ exports.MAX_WEIGHT = calculateFarmEfficiency.MAX_WEIGHT;
12431
+ exports.OFFCHAIN_FRACTIONS_ABI = calculateFarmEfficiency.OFFCHAIN_FRACTIONS_ABI;
12432
+ exports.OFF_CHAIN_PAYMENT_CURRENCIES = calculateFarmEfficiency.OFF_CHAIN_PAYMENT_CURRENCIES;
12432
12433
  Object.defineProperty(exports, "OffchainFractionsError", {
12433
12434
  enumerable: true,
12434
- get: function () { return farmsRouter.OffchainFractionsError; }
12435
+ get: function () { return calculateFarmEfficiency.OffchainFractionsError; }
12435
12436
  });
12436
- exports.PAYMENT_CURRENCIES = farmsRouter.PAYMENT_CURRENCIES;
12437
+ exports.PAYMENT_CURRENCIES = calculateFarmEfficiency.PAYMENT_CURRENCIES;
12437
12438
  Object.defineProperty(exports, "REGIONS", {
12438
12439
  enumerable: true,
12439
- get: function () { return farmsRouter.REGIONS; }
12440
+ get: function () { return calculateFarmEfficiency.REGIONS; }
12440
12441
  });
12441
- exports.REWARDS_KERNEL_ABI = farmsRouter.REWARDS_KERNEL_ABI;
12442
- exports.RegionRouter = farmsRouter.RegionRouter;
12442
+ exports.REWARDS_KERNEL_ABI = calculateFarmEfficiency.REWARDS_KERNEL_ABI;
12443
+ exports.RegionRouter = calculateFarmEfficiency.RegionRouter;
12443
12444
  Object.defineProperty(exports, "RewardsKernelError", {
12444
12445
  enumerable: true,
12445
- get: function () { return farmsRouter.RewardsKernelError; }
12446
+ get: function () { return calculateFarmEfficiency.RewardsKernelError; }
12446
12447
  });
12447
12448
  Object.defineProperty(exports, "STAKING_DIRECTIONS", {
12448
12449
  enumerable: true,
12449
- get: function () { return farmsRouter.STAKING_DIRECTIONS; }
12450
- });
12451
- exports.TRANSFER_TYPES = farmsRouter.TRANSFER_TYPES;
12452
- exports.USDG_WEIGHT_DECIMAL_PRECISION = farmsRouter.USDG_WEIGHT_DECIMAL_PRECISION;
12453
- exports.WalletsRouter = farmsRouter.WalletsRouter;
12454
- exports.allRegions = farmsRouter.allRegions;
12455
- exports.configureSentry = farmsRouter.configureSentry;
12456
- exports.countries = farmsRouter.countries;
12457
- exports.getAddresses = farmsRouter.getAddresses;
12458
- exports.parseEthersError = farmsRouter.parseEthersError;
12459
- exports.parseViemError = farmsRouter.parseViemError;
12460
- exports.regionMetadata = farmsRouter.regionMetadata;
12461
- exports.usStates = farmsRouter.usStates;
12462
- exports.useForwarder = farmsRouter.useForwarder;
12463
- exports.useOffchainFractions = farmsRouter.useOffchainFractions;
12464
- exports.useRewardsKernel = farmsRouter.useRewardsKernel;
12465
- exports.waitForEthersTransactionWithRetry = farmsRouter.waitForEthersTransactionWithRetry;
12466
- exports.waitForViemTransactionWithRetry = farmsRouter.waitForViemTransactionWithRetry;
12450
+ get: function () { return calculateFarmEfficiency.STAKING_DIRECTIONS; }
12451
+ });
12452
+ exports.TRANSFER_TYPES = calculateFarmEfficiency.TRANSFER_TYPES;
12453
+ exports.USDG_WEIGHT_DECIMAL_PRECISION = calculateFarmEfficiency.USDG_WEIGHT_DECIMAL_PRECISION;
12454
+ exports.WalletsRouter = calculateFarmEfficiency.WalletsRouter;
12455
+ exports.allRegions = calculateFarmEfficiency.allRegions;
12456
+ exports.calculateFarmEfficiency = calculateFarmEfficiency.calculateFarmEfficiency;
12457
+ exports.configureSentry = calculateFarmEfficiency.configureSentry;
12458
+ exports.countries = calculateFarmEfficiency.countries;
12459
+ exports.getAddresses = calculateFarmEfficiency.getAddresses;
12460
+ exports.parseEthersError = calculateFarmEfficiency.parseEthersError;
12461
+ exports.parseViemError = calculateFarmEfficiency.parseViemError;
12462
+ exports.regionMetadata = calculateFarmEfficiency.regionMetadata;
12463
+ exports.usStates = calculateFarmEfficiency.usStates;
12464
+ exports.useForwarder = calculateFarmEfficiency.useForwarder;
12465
+ exports.useOffchainFractions = calculateFarmEfficiency.useOffchainFractions;
12466
+ exports.useRewardsKernel = calculateFarmEfficiency.useRewardsKernel;
12467
+ exports.waitForEthersTransactionWithRetry = calculateFarmEfficiency.waitForEthersTransactionWithRetry;
12468
+ exports.waitForViemTransactionWithRetry = calculateFarmEfficiency.waitForViemTransactionWithRetry;
12467
12469
  exports.applyCertifiedInstallerEIP712Types = applyCertifiedInstallerEIP712Types;
12468
12470
  exports.applyCertifiedInstallerSignatureRequestSchema = applyCertifiedInstallerSignatureRequestSchema;
12469
12471
  exports.buildApplyCertifiedInstallerMessage = buildApplyCertifiedInstallerMessage;