@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.
- package/dist/cjs/browser.js +1 -1
- package/dist/cjs/{farms-router-DQfM--mo.js → farms-router-BFFs_D4v.js} +10 -10
- package/dist/cjs/farms-router-BFFs_D4v.js.map +1 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/lib/control-api/control-router.d.ts +2 -1
- package/dist/cjs/lib/control-api/wallets-router.d.ts +1 -2
- package/dist/esm/browser.js +2 -2
- package/dist/esm/{farms-router-COx2_plO.js → farms-router-C1WmJIpM.js} +10 -10
- package/dist/esm/farms-router-C1WmJIpM.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/lib/control-api/control-router.d.ts +2 -1
- package/dist/esm/lib/control-api/wallets-router.d.ts +1 -2
- package/package.json +1 -1
- package/src/lib/control-api/control-router.ts +14 -0
- package/src/lib/control-api/wallets-router.ts +1 -19
- package/dist/cjs/farms-router-DQfM--mo.js.map +0 -1
- package/dist/esm/farms-router-COx2_plO.js.map +0 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -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-
|
|
3722
|
+
//# sourceMappingURL=farms-router-BFFs_D4v.js.map
|