import { LCDClient } from "@osmonauts/lcd"; import { QueryWasmxParamsRequest, QueryWasmxParamsResponseSDKType, QueryModuleStateRequest, QueryModuleStateResponseSDKType } from "./query"; export class LCDQueryClient { req: LCDClient; constructor({ requestClient }: { requestClient: LCDClient; }) { this.req = requestClient; this.wasmxParams = this.wasmxParams.bind(this); this.wasmxModuleState = this.wasmxModuleState.bind(this); } /* Retrieves wasmx params */ async wasmxParams(_params: QueryWasmxParamsRequest = {}): Promise { const endpoint = `injective/wasmx/v1/params`; return await this.req.get(endpoint); } /* Retrieves the entire wasmx module's state */ async wasmxModuleState(_params: QueryModuleStateRequest = {}): Promise { const endpoint = `injective/wasmx/v1/module_state`; return await this.req.get(endpoint); } }