import { z as t } from "zod";
import { feeServiceApi as o } from "../network.js";
const r = t.object({
  token_id: t.string(),
  blockchain: t.string(),
  symbol: t.string(),
  volume_amount_usd: t.string()
}), c = t.object({
  asset_stats: t.array(t.unknown()),
  tokens: t.array(t.unknown())
}), i = (e) => {
  const s = r.safeParse(e);
  return s.success ? {
    tokenId: s.data.token_id,
    blockchain: s.data.blockchain,
    symbol: s.data.symbol,
    volumeAmountUsd: s.data.volume_amount_usd
  } : null;
}, l = "fee-service-tokens", d = async (e) => {
  const s = await o.get(`/api/tokens/${e}`), a = c.safeParse(s.data);
  return a.success ? {
    assetStats: a.data.asset_stats.map(i).filter((n) => n !== null),
    tokens: a.data.tokens
  } : { assetStats: [], tokens: [] };
};
export {
  l as FEE_SERVICE_TOKENS_QUERY_KEY,
  d as fetchFeeServiceTokens
};
//# sourceMappingURL=feeServiceTokens.js.map
