@glowlabs-org/utils 0.2.135 → 0.2.137

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-DQfM--mo.js');
3
+ var farmsRouter = require('./farms-router-BFFs_D4v.js');
4
4
  var viem = require('viem');
5
5
  require('ethers');
6
6
 
@@ -2486,6 +2486,14 @@ function ControlRouter(baseUrl) {
2486
2486
  isMigratingUser = false;
2487
2487
  }
2488
2488
  };
2489
+ const fetchMigrationAmount = async (wallet) => {
2490
+ try {
2491
+ return await request(`/migration-amount/${encodeURIComponent(wallet)}`);
2492
+ }
2493
+ catch (error) {
2494
+ throw new Error(parseApiError$4(error));
2495
+ }
2496
+ };
2489
2497
  // --------------------------- Public API ----------------------------------
2490
2498
  return {
2491
2499
  // Queries
@@ -2505,6 +2513,7 @@ function ControlRouter(baseUrl) {
2505
2513
  fetchWalletRegionCommittedBalance,
2506
2514
  fetchTransferDetails: getTransferDetails,
2507
2515
  fetchGlwRegionRewards,
2516
+ fetchMigrationAmount,
2508
2517
  // Mutations
2509
2518
  stakeGctl,
2510
2519
  unstakeGctl,
@@ -3558,20 +3567,11 @@ function WalletsRouter(baseUrl) {
3558
3567
  throw new Error(parseApiError$1(error));
3559
3568
  }
3560
3569
  };
3561
- const fetchMigrationAmount = async (wallet) => {
3562
- try {
3563
- return await request(`/wallets/migration-amount/${encodeURIComponent(wallet)}`);
3564
- }
3565
- catch (error) {
3566
- throw new Error(parseApiError$1(error));
3567
- }
3568
- };
3569
3570
  return {
3570
3571
  fetchAllWallets,
3571
3572
  fetchWalletByAddress,
3572
3573
  fetchWalletMintedEvents,
3573
3574
  fetchWalletStakeEvents,
3574
- fetchMigrationAmount,
3575
3575
  };
3576
3576
  }
3577
3577
 
@@ -3719,4 +3719,4 @@ exports.regionMetadata = regionMetadata;
3719
3719
  exports.usStates = usStates;
3720
3720
  exports.useForwarder = useForwarder;
3721
3721
  exports.useOffchainFractions = useOffchainFractions;
3722
- //# sourceMappingURL=farms-router-DQfM--mo.js.map
3722
+ //# sourceMappingURL=farms-router-BFFs_D4v.js.map