"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
    function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
    return new (P || (P = Promise))(function (resolve, reject) {
        function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
        function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
        function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
        step((generator = generator.apply(thisArg, _arguments || [])).next());
    });
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.EventLogsMixin = void 0;
const base_core_sdk_1 = require("./../mixins/base-core-sdk");
const subgraph_1 = require("./subgraph");
class EventLogsMixin extends base_core_sdk_1.BaseCoreSDK {
    /**
     * Returns event logs from subgraph.
     * @param queryVars - Optional query variables to skip, order or filter.
     * @returns Event log entities from subgraph.
     */
    getEventLogs(queryVars) {
        return __awaiter(this, void 0, void 0, function* () {
            return (0, subgraph_1.getEventLogs)(this._subgraphUrl, queryVars);
        });
    }
    /**
     * Returns conditionalCommitAuthorized event logs from subgraph.
     * @param queryVars - Optional query variables to skip, order or filter.
     * @returns ConditionalCommitAuthorized event log entities from subgraph.
     */
    getConditionalCommitAuthorizedEventLogs(queryVars) {
        return __awaiter(this, void 0, void 0, function* () {
            return (0, subgraph_1.getConditionalCommitAuthorizedEventLogs)(this._subgraphUrl, queryVars);
        });
    }
}
exports.EventLogsMixin = EventLogsMixin;
//# sourceMappingURL=mixin.js.map