"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useArrakisVaultSubgraph = void 0;
var arrakisTypes_1 = require("../../gql/arrakisTypes");
var useError_1 = require("../useError");
var useArrakisVaultSubgraph = function (chain, address) {
    var query = (0, arrakisTypes_1.useArrakisV2Query)({
        context: { chain: chain, arrakis: true },
        variables: { id: address },
        pollInterval: 20000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useArrakisVaultSubgraph = useArrakisVaultSubgraph;
//# sourceMappingURL=useArrakisVaultSubgraph.js.map