@glowlabs-org/utils 0.2.131 → 0.2.133

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.
@@ -2384,6 +2384,7 @@ function ControlRouter(baseUrl) {
2384
2384
  let isRestaking = false;
2385
2385
  let isRetryingFailedOperation = false;
2386
2386
  let isPayingProtocolDepositUsingStakedControl = false;
2387
+ let isMigratingUser = false;
2387
2388
  const stakeGctl = async (stakeRequest) => {
2388
2389
  isStaking = true;
2389
2390
  try {
@@ -2468,6 +2469,23 @@ function ControlRouter(baseUrl) {
2468
2469
  isPayingProtocolDepositUsingStakedControl = false;
2469
2470
  }
2470
2471
  };
2472
+ const migrateUser = async (migrateRequest) => {
2473
+ isMigratingUser = true;
2474
+ try {
2475
+ const response = await request(`/migrate-user`, {
2476
+ method: "POST",
2477
+ headers: { "Content-Type": "application/json" },
2478
+ body: JSON.stringify(migrateRequest),
2479
+ });
2480
+ return response;
2481
+ }
2482
+ catch (error) {
2483
+ throw new Error(parseApiError$4(error));
2484
+ }
2485
+ finally {
2486
+ isMigratingUser = false;
2487
+ }
2488
+ };
2471
2489
  // --------------------------- Public API ----------------------------------
2472
2490
  return {
2473
2491
  // Queries
@@ -2493,6 +2511,7 @@ function ControlRouter(baseUrl) {
2493
2511
  restakeGctl,
2494
2512
  retryFailedOperation,
2495
2513
  payProtocolDepositUsingStakedControl,
2514
+ migrateUser,
2496
2515
  // Processing flags
2497
2516
  get isStaking() {
2498
2517
  return isStaking;
@@ -2509,6 +2528,9 @@ function ControlRouter(baseUrl) {
2509
2528
  get isPayingProtocolDepositUsingStakedControl() {
2510
2529
  return isPayingProtocolDepositUsingStakedControl;
2511
2530
  },
2531
+ get isMigratingUser() {
2532
+ return isMigratingUser;
2533
+ },
2512
2534
  };
2513
2535
  }
2514
2536
 
@@ -3688,4 +3710,4 @@ exports.regionMetadata = regionMetadata;
3688
3710
  exports.usStates = usStates;
3689
3711
  exports.useForwarder = useForwarder;
3690
3712
  exports.useOffchainFractions = useOffchainFractions;
3691
- //# sourceMappingURL=farms-router-DXTR8f4V.js.map
3713
+ //# sourceMappingURL=farms-router-Dxx681nB.js.map