import { getSubgraphSdk } from "../utils/graphql";
export async function getExchangeTokenById(subgraphUrl, exchangeTokenId, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { exchangeToken } = await sdk.getExchangeTokenByIdQuery({
        exchangeTokenId: exchangeTokenId.toLowerCase(),
        ...queryVars
    });
    return exchangeToken;
}
export async function getExchangeTokens(subgraphUrl, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { exchangeTokens = [] } = await sdk.getExchangeTokensQuery(queryVars);
    return exchangeTokens;
}
//# sourceMappingURL=subgraph.js.map