export interface ProtobufAny { "@type"?: string; } export interface RpcStatus { /** @format int32 */ code?: number; message?: string; details?: ProtobufAny[]; } /** * BlockParams contains limits on the block size. */ export interface TypesBlockParams { /** * Max block size, in bytes. * Note: must be greater than 0 * @format int64 */ max_bytes?: string; /** * Max gas per block. * Note: must be greater or equal to -1 * @format int64 */ max_gas?: string; } /** * ConsensusParams contains consensus critical parameters that determine the validity of blocks. */ export interface TypesConsensusParams { /** BlockParams contains limits on the block size. */ block?: TypesBlockParams; /** EvidenceParams determine how we handle evidence of malfeasance. */ evidence?: TypesEvidenceParams; /** * ValidatorParams restrict the public key types validators can use. * NOTE: uses ABCI pubkey naming, not Amino names. */ validator?: TypesValidatorParams; /** VersionParams contains the ABCI application version. */ version?: TypesVersionParams; } /** * EvidenceParams determine how we handle evidence of malfeasance. */ export interface TypesEvidenceParams { /** * Max age of evidence, in blocks. * * The basic formula for calculating this is: MaxAgeDuration / {average block * time}. * @format int64 */ max_age_num_blocks?: string; /** * Max age of evidence, in time. * * It should correspond with an app's "unbonding period" or other similar * mechanism for handling [Nothing-At-Stake * attacks](https://github.com/ethereum/wiki/wiki/Proof-of-Stake-FAQ#what-is-the-nothing-at-stake-problem-and-how-can-it-be-fixed). */ max_age_duration?: string; /** * This sets the maximum size of total evidence in bytes that can be committed in a single block. * and should fall comfortably under the max block bytes. * Default is 1048576 or 1MB * @format int64 */ max_bytes?: string; } /** * ValidatorParams restrict the public key types validators can use. NOTE: uses ABCI pubkey naming, not Amino names. */ export interface TypesValidatorParams { pub_key_types?: string[]; } /** * VersionParams contains the ABCI application version. */ export interface TypesVersionParams { /** @format uint64 */ app?: string; } /** * MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message. */ export declare type V1MsgUpdateParamsResponse = object; /** * QueryParamsResponse defines the response type for querying x/consensus parameters. */ export interface V1QueryParamsResponse { /** * params are the tendermint consensus params stored in the consensus module. * Please note that `params.version` is not populated in this response, it is * tracked separately in the x/upgrade module. */ params?: TypesConsensusParams; } import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios"; export declare type QueryParamsType = Record; export interface FullRequestParams extends Omit { /** set parameter to `true` for call `securityWorker` for this request */ secure?: boolean; /** request path */ path: string; /** content type of request body */ type?: ContentType; /** query params */ query?: QueryParamsType; /** format of response (i.e. response.json() -> format: "json") */ format?: ResponseType; /** request body */ body?: unknown; } export declare type RequestParams = Omit; export interface ApiConfig extends Omit { securityWorker?: (securityData: SecurityDataType | null) => Promise | AxiosRequestConfig | void; secure?: boolean; format?: ResponseType; } export declare enum ContentType { Json = "application/json", FormData = "multipart/form-data", UrlEncoded = "application/x-www-form-urlencoded" } export declare class HttpClient { instance: AxiosInstance; private securityData; private securityWorker?; private secure?; private format?; constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig); setSecurityData: (data: SecurityDataType | null) => void; private mergeRequestParams; private createFormData; request: ({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise>; } /** * @title cosmos/consensus/v1/query.proto * @version version not set */ export declare class Api extends HttpClient { /** * No description * * @tags Query * @name QueryParams * @summary Params queries the parameters of x/consensus_param module. * @request GET:/cosmos/consensus/v1/params */ queryParams: (params?: RequestParams) => Promise>; }