import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import { setPaginationParams } from "../../../helpers";
export class LCDQueryClient {
  constructor({
    requestClient
  }) {
    _defineProperty(this, "req", void 0);
    this.req = requestClient;
    this.schedule = this.schedule.bind(this);
    this.schedules = this.schedules.bind(this);
  }
  /* Schedule queries an incentives schedule by identifier */

  async schedule(params) {
    const endpoint = `mars/incentives/v1beta1/schedule/${params.id}`;
    return await this.req.get(endpoint);
  }
  /* Schedules queries all incentives schedules */

  async schedules(params = {
    pagination: undefined
  }) {
    const options = {
      params: {}
    };
    if (typeof (params === null || params === void 0 ? void 0 : params.pagination) !== "undefined") {
      setPaginationParams(options, params.pagination);
    }
    const endpoint = `mars/incentives/v1beta1/schedules`;
    return await this.req.get(endpoint, options);
  }
}