import { Api, CosmosStakingV1Beta1Pool } from "../rest/cosmos"; import { snakeToCamelCase } from "./camel"; async function pool(cosmos_rest: string): Promise { const queryClient = new Api({ baseUrl: cosmos_rest }); const response = await queryClient.cosmos.cosmosStakingV1Beta1Pool({ format: "json", }); snakeToCamelCase(response.data); return response.data as CosmosStakingV1Beta1Pool; } export { pool };