"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useCallsSubgraph = void 0;
var types_1 = require("../../../gql/types");
var useError_1 = require("../../useError");
var useCallsSubgraph = function (chain) {
    var query = (0, types_1.useCallsQuery)({
        context: { chain: chain },
        pollInterval: 20000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useCallsSubgraph = useCallsSubgraph;
//# sourceMappingURL=useCallsSubgraph.js.map