import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Duration, Message, proto3 } from "@bufbuild/protobuf"; /** * ConsensusParams contains consensus critical parameters that determine the * validity of blocks. * * @generated from message tendermint.types.ConsensusParams */ export declare class ConsensusParams extends Message { /** * @generated from field: tendermint.types.BlockParams block = 1; */ block?: BlockParams; /** * @generated from field: tendermint.types.EvidenceParams evidence = 2; */ evidence?: EvidenceParams; /** * @generated from field: tendermint.types.ValidatorParams validator = 3; */ validator?: ValidatorParams; /** * @generated from field: tendermint.types.VersionParams version = 4; */ version?: VersionParams; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.ConsensusParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ConsensusParams; static fromJson(jsonValue: JsonValue, options?: Partial): ConsensusParams; static fromJsonString(jsonString: string, options?: Partial): ConsensusParams; static equals(a: ConsensusParams | PlainMessage | undefined, b: ConsensusParams | PlainMessage | undefined): boolean; } /** * BlockParams contains limits on the block size. * * @generated from message tendermint.types.BlockParams */ export declare class BlockParams extends Message { /** * Max block size, in bytes. * Note: must be greater than 0 * * @generated from field: int64 max_bytes = 1; */ maxBytes: bigint; /** * Max gas per block. * Note: must be greater or equal to -1 * * @generated from field: int64 max_gas = 2; */ maxGas: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.BlockParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): BlockParams; static fromJson(jsonValue: JsonValue, options?: Partial): BlockParams; static fromJsonString(jsonString: string, options?: Partial): BlockParams; static equals(a: BlockParams | PlainMessage | undefined, b: BlockParams | PlainMessage | undefined): boolean; } /** * EvidenceParams determine how we handle evidence of malfeasance. * * @generated from message tendermint.types.EvidenceParams */ export declare class EvidenceParams extends Message { /** * Max age of evidence, in blocks. * * The basic formula for calculating this is: MaxAgeDuration / {average block * time}. * * @generated from field: int64 max_age_num_blocks = 1; */ maxAgeNumBlocks: bigint; /** * 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). * * @generated from field: google.protobuf.Duration max_age_duration = 2; */ maxAgeDuration?: Duration; /** * 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 * * @generated from field: int64 max_bytes = 3; */ maxBytes: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.EvidenceParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EvidenceParams; static fromJson(jsonValue: JsonValue, options?: Partial): EvidenceParams; static fromJsonString(jsonString: string, options?: Partial): EvidenceParams; static equals(a: EvidenceParams | PlainMessage | undefined, b: EvidenceParams | PlainMessage | undefined): boolean; } /** * ValidatorParams restrict the public key types validators can use. * NOTE: uses ABCI pubkey naming, not Amino names. * * @generated from message tendermint.types.ValidatorParams */ export declare class ValidatorParams extends Message { /** * @generated from field: repeated string pub_key_types = 1; */ pubKeyTypes: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.ValidatorParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): ValidatorParams; static fromJson(jsonValue: JsonValue, options?: Partial): ValidatorParams; static fromJsonString(jsonString: string, options?: Partial): ValidatorParams; static equals(a: ValidatorParams | PlainMessage | undefined, b: ValidatorParams | PlainMessage | undefined): boolean; } /** * VersionParams contains the ABCI application version. * * @generated from message tendermint.types.VersionParams */ export declare class VersionParams extends Message { /** * @generated from field: uint64 app = 1; */ app: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.VersionParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): VersionParams; static fromJson(jsonValue: JsonValue, options?: Partial): VersionParams; static fromJsonString(jsonString: string, options?: Partial): VersionParams; static equals(a: VersionParams | PlainMessage | undefined, b: VersionParams | PlainMessage | undefined): boolean; } /** * HashedParams is a subset of ConsensusParams. * * It is hashed into the Header.ConsensusHash. * * @generated from message tendermint.types.HashedParams */ export declare class HashedParams extends Message { /** * @generated from field: int64 block_max_bytes = 1; */ blockMaxBytes: bigint; /** * @generated from field: int64 block_max_gas = 2; */ blockMaxGas: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "tendermint.types.HashedParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): HashedParams; static fromJson(jsonValue: JsonValue, options?: Partial): HashedParams; static fromJsonString(jsonString: string, options?: Partial): HashedParams; static equals(a: HashedParams | PlainMessage | undefined, b: HashedParams | PlainMessage | undefined): boolean; } //# sourceMappingURL=params_pb.d.ts.map