import { getSubgraphSdk } from "../utils/graphql";
export async function getEventLogs(subgraphUrl, queryVars = {}) {
    const subgraphSdk = getSubgraphSdk(subgraphUrl);
    const { eventLogs = [] } = await subgraphSdk.getEventLogsQuery(queryVars);
    return eventLogs;
}
export async function getConditionalCommitAuthorizedEventLogs(subgraphUrl, queryVars = {}) {
    const subgraphSdk = getSubgraphSdk(subgraphUrl);
    const { conditionalCommitAuthorizedEventLogs = [] } = await subgraphSdk.getConditionalCommitAuthorizedEventLogsQuery(queryVars);
    return conditionalCommitAuthorizedEventLogs;
}
//# sourceMappingURL=subgraph.js.map