@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.
@@ -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-D6uk5KwH.js'); });
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-CoXSgyM8.js'); });
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
- // Approval is only needed for EVM chains
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
- !allowanceQuery?.isLoading &&
31515
- allowanceQuery?.isFetched,
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-BKqLCAGR.js.map
36478
+ //# sourceMappingURL=index-CumomA_e.js.map