import { getSubgraphSdk } from "../utils/graphql";
export async function getFunds(subgraphUrl, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { fundsEntities = [] } = await sdk.getFunds(queryVars);
    return fundsEntities;
}
export async function getFundsById(subgraphUrl, fundsId, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { fundsEntity } = await sdk.getFundsById({
        fundsId: fundsId.toString(),
        ...queryVars
    });
    return fundsEntity;
}
//# sourceMappingURL=subgraph.js.map