import { BinaryReader, BinaryWriter } from "../../binary.js"; import { DeepPartial } from "../../helpers.js"; import { PublicKey, PublicKeyAmino } from "../crypto/keys.js"; //#region src/tendermint/types/validator.d.ts /** BlockIdFlag indicates which BlockID the signature is for */ declare enum BlockIDFlag { /** BLOCK_ID_FLAG_UNKNOWN - indicates an error condition */ BLOCK_ID_FLAG_UNKNOWN = 0, /** BLOCK_ID_FLAG_ABSENT - the vote was not received */ BLOCK_ID_FLAG_ABSENT = 1, BLOCK_ID_FLAG_COMMIT = 2, /** BLOCK_ID_FLAG_NIL - voted for nil */ BLOCK_ID_FLAG_NIL = 3, UNRECOGNIZED = -1 } declare const BlockIDFlagAmino: typeof BlockIDFlag; declare function blockIDFlagFromJSON(object: any): BlockIDFlag; declare function blockIDFlagToJSON(object: BlockIDFlag): string; /** * @name ValidatorSet * @package tendermint.types * @see proto type: tendermint.types.ValidatorSet */ interface ValidatorSet { validators: Validator[]; proposer?: Validator; totalVotingPower: bigint; } interface ValidatorSetProtoMsg { typeUrl: "/tendermint.types.ValidatorSet"; value: Uint8Array; } /** * @name ValidatorSetAmino * @package tendermint.types * @see proto type: tendermint.types.ValidatorSet */ interface ValidatorSetAmino { validators: ValidatorAmino[]; proposer?: ValidatorAmino; total_voting_power: string; } interface ValidatorSetAminoMsg { type: "/tendermint.types.ValidatorSet"; value: ValidatorSetAmino; } /** * @name Validator * @package tendermint.types * @see proto type: tendermint.types.Validator */ interface Validator { address: Uint8Array; pubKey: PublicKey; votingPower: bigint; proposerPriority: bigint; } interface ValidatorProtoMsg { typeUrl: "/tendermint.types.Validator"; value: Uint8Array; } /** * @name ValidatorAmino * @package tendermint.types * @see proto type: tendermint.types.Validator */ interface ValidatorAmino { address: string; pub_key: PublicKeyAmino; voting_power: string; proposer_priority: string; } interface ValidatorAminoMsg { type: "/tendermint.types.Validator"; value: ValidatorAmino; } /** * @name SimpleValidator * @package tendermint.types * @see proto type: tendermint.types.SimpleValidator */ interface SimpleValidator { pubKey?: PublicKey; votingPower: bigint; } interface SimpleValidatorProtoMsg { typeUrl: "/tendermint.types.SimpleValidator"; value: Uint8Array; } /** * @name SimpleValidatorAmino * @package tendermint.types * @see proto type: tendermint.types.SimpleValidator */ interface SimpleValidatorAmino { pub_key?: PublicKeyAmino; voting_power: string; } interface SimpleValidatorAminoMsg { type: "/tendermint.types.SimpleValidator"; value: SimpleValidatorAmino; } /** * @name ValidatorSet * @package tendermint.types * @see proto type: tendermint.types.ValidatorSet */ declare const ValidatorSet: { typeUrl: string; is(o: any): o is ValidatorSet; isAmino(o: any): o is ValidatorSetAmino; encode(message: ValidatorSet, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSet; fromPartial(object: DeepPartial): ValidatorSet; fromAmino(object: ValidatorSetAmino): ValidatorSet; toAmino(message: ValidatorSet): ValidatorSetAmino; fromAminoMsg(object: ValidatorSetAminoMsg): ValidatorSet; fromProtoMsg(message: ValidatorSetProtoMsg): ValidatorSet; toProto(message: ValidatorSet): Uint8Array; toProtoMsg(message: ValidatorSet): ValidatorSetProtoMsg; registerTypeUrl(): void; }; /** * @name Validator * @package tendermint.types * @see proto type: tendermint.types.Validator */ declare const Validator: { typeUrl: string; is(o: any): o is Validator; isAmino(o: any): o is ValidatorAmino; encode(message: Validator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): Validator; fromPartial(object: DeepPartial): Validator; fromAmino(object: ValidatorAmino): Validator; toAmino(message: Validator): ValidatorAmino; fromAminoMsg(object: ValidatorAminoMsg): Validator; fromProtoMsg(message: ValidatorProtoMsg): Validator; toProto(message: Validator): Uint8Array; toProtoMsg(message: Validator): ValidatorProtoMsg; registerTypeUrl(): void; }; /** * @name SimpleValidator * @package tendermint.types * @see proto type: tendermint.types.SimpleValidator */ declare const SimpleValidator: { typeUrl: string; is(o: any): o is SimpleValidator; isAmino(o: any): o is SimpleValidatorAmino; encode(message: SimpleValidator, writer?: BinaryWriter): BinaryWriter; decode(input: BinaryReader | Uint8Array, length?: number): SimpleValidator; fromPartial(object: DeepPartial): SimpleValidator; fromAmino(object: SimpleValidatorAmino): SimpleValidator; toAmino(message: SimpleValidator): SimpleValidatorAmino; fromAminoMsg(object: SimpleValidatorAminoMsg): SimpleValidator; fromProtoMsg(message: SimpleValidatorProtoMsg): SimpleValidator; toProto(message: SimpleValidator): Uint8Array; toProtoMsg(message: SimpleValidator): SimpleValidatorProtoMsg; registerTypeUrl(): void; }; //#endregion export { BlockIDFlag, BlockIDFlagAmino, SimpleValidator, SimpleValidatorAmino, SimpleValidatorAminoMsg, SimpleValidatorProtoMsg, Validator, ValidatorAmino, ValidatorAminoMsg, ValidatorProtoMsg, ValidatorSet, ValidatorSetAmino, ValidatorSetAminoMsg, ValidatorSetProtoMsg, blockIDFlagFromJSON, blockIDFlagToJSON };