@glowlabs-org/utils 0.2.178 → 0.2.179

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,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var calculateFarmEfficiency = require('./calculate-farm-efficiency-DQqLqk0-.js');
3
+ var calculateFarmEfficiency = require('./calculate-farm-efficiency-K4OucflI.js');
4
4
  require('decimal.js');
5
5
  var viem = require('viem');
6
6
  require('ethers');
@@ -5499,6 +5499,32 @@ function FarmsRouter(baseUrl) {
5499
5499
  throw new Error(parseApiError(error));
5500
5500
  }
5501
5501
  };
5502
+ const fetchFarmImagesBatch = async (params) => {
5503
+ try {
5504
+ sentryAddBreadcrumb({
5505
+ category: "control-api",
5506
+ message: "POST /farms/images/batch",
5507
+ level: "info",
5508
+ data: { baseUrl, farmsCount: params.farmIds?.length },
5509
+ });
5510
+ const data = await request("/farms/images/batch", {
5511
+ method: "POST",
5512
+ headers: {
5513
+ "Content-Type": "application/json",
5514
+ },
5515
+ body: JSON.stringify(params),
5516
+ });
5517
+ return data;
5518
+ }
5519
+ catch (error) {
5520
+ sentryCaptureException(error, {
5521
+ action: "fetchFarmImagesBatch",
5522
+ baseUrl,
5523
+ farmsCount: params.farmIds?.length,
5524
+ });
5525
+ throw new Error(parseApiError(error));
5526
+ }
5527
+ };
5502
5528
  return {
5503
5529
  fetchFarmRewardSplits,
5504
5530
  fetchSponsoredFarms,
@@ -5511,6 +5537,7 @@ function FarmsRouter(baseUrl) {
5511
5537
  fetchFarmWeeklyRewardsBatch,
5512
5538
  fetchWalletFarmRewardsHistory,
5513
5539
  fetchWalletFarmRewardsHistoryBatch,
5540
+ fetchFarmImagesBatch,
5514
5541
  };
5515
5542
  }
5516
5543
 
@@ -5588,4 +5615,4 @@ exports.useOffchainFractions = useOffchainFractions;
5588
5615
  exports.useRewardsKernel = useRewardsKernel;
5589
5616
  exports.waitForEthersTransactionWithRetry = waitForEthersTransactionWithRetry;
5590
5617
  exports.waitForViemTransactionWithRetry = waitForViemTransactionWithRetry;
5591
- //# sourceMappingURL=calculate-farm-efficiency-DQqLqk0-.js.map
5618
+ //# sourceMappingURL=calculate-farm-efficiency-K4OucflI.js.map