"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useArrakisHistoricalFees = void 0;
var useError_1 = require("../useError");
var arkiverTypes_1 = require("../../gql/arkiverTypes");
var useArrakisHistoricalFees = function (address, chain) {
    var query = (0, arkiverTypes_1.useArrakisV2HistoricalFeesQuery)({
        context: { arkiver: 'arrakis' },
        variables: { address: address === null || address === void 0 ? void 0 : address.toLowerCase(), chain: chain || '' },
        pollInterval: 20000,
    });
    var error = query.error;
    (0, useError_1.useError)(error);
    return query;
};
exports.useArrakisHistoricalFees = useArrakisHistoricalFees;
//# sourceMappingURL=useArrakisHistoricalFees.js.map