import { LCDClient } from "@osmonauts/lcd"; import { ConfigRequest, ConfigResponseSDKType, StatusRequest, StatusResponseSDKType } from "./query"; export class LCDQueryClient { req: LCDClient; constructor({ requestClient }: { requestClient: LCDClient; }) { this.req = requestClient; this.config = this.config.bind(this); this.status = this.status.bind(this); } /* Config queries for the operator configuration. */ async config(_params: ConfigRequest = {}): Promise { const endpoint = `cosmos/base/node/v1beta1/config`; return await this.req.get(endpoint); } /* Status queries for the node status. */ async status(_params: StatusRequest = {}): Promise { const endpoint = `cosmos/base/node/v1beta1/status`; return await this.req.get(endpoint); } }