import { getSubgraphSdk } from "../utils/graphql";
export async function getDisputeById(subgraphUrl, disputeId, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { dispute } = await sdk.getDisputeByIdQuery({
        disputeId: disputeId.toString(),
        ...queryVars
    });
    return dispute;
}
export async function getDisputes(subgraphUrl, queryVars = {}) {
    const sdk = getSubgraphSdk(subgraphUrl);
    const { disputes = [] } = await sdk.getDisputesQuery(queryVars);
    return disputes;
}
//# sourceMappingURL=subgraph.js.map