@0xsquid/react-hooks 8.1.0 → 8.1.1
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/{index-BKqLCAGR.js → index-CumomA_e.js} +7 -7
- package/dist/{index-XaN56jYV.js.map → index-CumomA_e.js.map} +1 -1
- package/dist/{index-XaN56jYV.js → index-Dns9m27b.js} +7 -7
- package/dist/{index-BKqLCAGR.js.map → index-Dns9m27b.js.map} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{secretService-DcoMsLKe.js → secretService-DQbR7c-h.js} +2 -2
- package/dist/{secretService-DcoMsLKe.js.map → secretService-DQbR7c-h.js.map} +1 -1
- package/dist/{secretService-D6uk5KwH.js → secretService-xh6N3W9l.js} +2 -2
- package/dist/{secretService-D6uk5KwH.js.map → secretService-xh6N3W9l.js.map} +1 -1
- package/dist/{stellarService.client-CoXSgyM8.js → stellarService.client-Clze3MKI.js} +2 -2
- package/dist/{stellarService.client-CoXSgyM8.js.map → stellarService.client-Clze3MKI.js.map} +1 -1
- package/dist/{stellarService.client-Bu_6QaBd.js → stellarService.client-FQblggHS.js} +2 -2
- package/dist/{stellarService.client-Bu_6QaBd.js.map → stellarService.client-FQblggHS.js.map} +1 -1
- package/package.json +1 -1
|
@@ -23101,7 +23101,7 @@ const filterViewableTokens = (tokens, config, direction) => {
|
|
|
23101
23101
|
};
|
|
23102
23102
|
const getSecretNetworkBalances = async (chainData, cosmosAddress, squidTokens, keplrTypeWallet) => {
|
|
23103
23103
|
const squidSecretTokens = squidTokens.filter((t) => t.chainId === CHAIN_IDS.SECRET);
|
|
23104
|
-
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-
|
|
23104
|
+
const { fetchAllSecretBalances } = await Promise.resolve().then(function () { return require('./secretService-xh6N3W9l.js'); });
|
|
23105
23105
|
return fetchAllSecretBalances(chainData, cosmosAddress, squidSecretTokens, keplrTypeWallet);
|
|
23106
23106
|
};
|
|
23107
23107
|
function getTokenAssetsKey(token) {
|
|
@@ -26285,7 +26285,7 @@ function useStellarWallets() {
|
|
|
26285
26285
|
return;
|
|
26286
26286
|
try {
|
|
26287
26287
|
const { allowAllModules: initializeAllModules } = await import('@creit.tech/stellar-wallets-kit');
|
|
26288
|
-
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-
|
|
26288
|
+
const { formatStellarWallet } = await Promise.resolve().then(function () { return require('./stellarService.client-Clze3MKI.js'); });
|
|
26289
26289
|
const modules = initializeAllModules();
|
|
26290
26290
|
const promises = modules.map(async (module) => {
|
|
26291
26291
|
const isAvailable = await module.isAvailable();
|
|
@@ -31503,16 +31503,16 @@ const useApproval = ({ squidRoute, }) => {
|
|
|
31503
31503
|
* @returns {boolean} approved
|
|
31504
31504
|
*/
|
|
31505
31505
|
const routeApproved = reactQuery.useQuery(keys().routeApproved(squidRoute, allowanceInWei), async () => {
|
|
31506
|
-
|
|
31507
|
-
if (getChainType(squidRoute?.params.fromChain) === squidTypes.ChainType.EVM) {
|
|
31506
|
+
if (erc20AllowanceQueryEnabled) {
|
|
31508
31507
|
return hasAllowance;
|
|
31509
31508
|
}
|
|
31510
31509
|
return true;
|
|
31511
31510
|
}, {
|
|
31512
31511
|
enabled: !!squidRoute &&
|
|
31513
31512
|
!!sourceUserAddress &&
|
|
31514
|
-
|
|
31515
|
-
|
|
31513
|
+
// Only wait for allowance if that query is actually enabled
|
|
31514
|
+
(!erc20AllowanceQueryEnabled ||
|
|
31515
|
+
(!allowanceQuery?.isLoading && allowanceQuery?.isFetched)),
|
|
31516
31516
|
});
|
|
31517
31517
|
// USDT has a very specific way of handling approvals
|
|
31518
31518
|
// ```
|
|
@@ -36475,4 +36475,4 @@ exports.useXrplTrustLine = useXrplTrustLine;
|
|
|
36475
36475
|
exports.waitForReceiptWithRetry = waitForReceiptWithRetry;
|
|
36476
36476
|
exports.walletIconBaseUrl = walletIconBaseUrl;
|
|
36477
36477
|
exports.walletSupportsChainType = walletSupportsChainType;
|
|
36478
|
-
//# sourceMappingURL=index-
|
|
36478
|
+
//# sourceMappingURL=index-CumomA_e.js.map
|