@glowlabs-org/utils 0.2.129 → 0.2.130

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 farmsRouter = require('./farms-router-BJHzbi9K.js');
3
+ var farmsRouter = require('./farms-router-DXTR8f4V.js');
4
4
  var viem = require('viem');
5
5
  require('ethers');
6
6
 
@@ -3640,12 +3640,28 @@ function FarmsRouter(baseUrl) {
3640
3640
  throw new Error(parseApiError(error));
3641
3641
  }
3642
3642
  };
3643
+ const calculateMiningScoresBatch = async (params) => {
3644
+ try {
3645
+ const data = await request("/farms/mining-scores-batch", {
3646
+ method: "POST",
3647
+ headers: {
3648
+ "Content-Type": "application/json",
3649
+ },
3650
+ body: JSON.stringify(params),
3651
+ });
3652
+ return data;
3653
+ }
3654
+ catch (error) {
3655
+ throw new Error(parseApiError(error));
3656
+ }
3657
+ };
3643
3658
  return {
3644
3659
  fetchFarmRewardSplits,
3645
3660
  fetchSponsoredFarms,
3646
3661
  fetchWalletFarmsWithRewards,
3647
3662
  estimateRewardScore,
3648
3663
  estimateRewardScoresBatch,
3664
+ calculateMiningScoresBatch,
3649
3665
  };
3650
3666
  }
3651
3667
 
@@ -3672,4 +3688,4 @@ exports.regionMetadata = regionMetadata;
3672
3688
  exports.usStates = usStates;
3673
3689
  exports.useForwarder = useForwarder;
3674
3690
  exports.useOffchainFractions = useOffchainFractions;
3675
- //# sourceMappingURL=farms-router-BJHzbi9K.js.map
3691
+ //# sourceMappingURL=farms-router-DXTR8f4V.js.map