import { Timestamp, TimestampAmino, TimestampSDKType } from "../../../google/protobuf/timestamp"; import { Duration, DurationAmino, DurationSDKType } from "../../../google/protobuf/duration"; import { Long } from "../../../helpers"; import * as _m0 from "protobufjs/minimal"; /** * ValidatorSigningInfo defines a validator's signing info for monitoring their * liveness activity. */ export interface ValidatorSigningInfo { address: string; /** Height at which validator was first a candidate OR was unjailed */ startHeight: Long; /** * Index which is incremented each time the validator was a bonded * in a block and may have signed a precommit or not. This in conjunction with the * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. */ indexOffset: Long; /** Timestamp until which the validator is jailed due to liveness downtime. */ jailedUntil?: Timestamp; /** * Whether or not a validator has been tombstoned (killed out of validator set). It is set * once the validator commits an equivocation or for any other configured misbehiavor. */ tombstoned: boolean; /** * A counter kept to avoid unnecessary array reads. * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. */ missedBlocksCounter: Long; } export interface ValidatorSigningInfoProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo"; value: Uint8Array; } /** * ValidatorSigningInfo defines a validator's signing info for monitoring their * liveness activity. */ export interface ValidatorSigningInfoAmino { address: string; /** Height at which validator was first a candidate OR was unjailed */ start_height: string; /** * Index which is incremented each time the validator was a bonded * in a block and may have signed a precommit or not. This in conjunction with the * `SignedBlocksWindow` param determines the index in the `MissedBlocksBitArray`. */ index_offset: string; /** Timestamp until which the validator is jailed due to liveness downtime. */ jailed_until?: TimestampAmino; /** * Whether or not a validator has been tombstoned (killed out of validator set). It is set * once the validator commits an equivocation or for any other configured misbehiavor. */ tombstoned: boolean; /** * A counter kept to avoid unnecessary array reads. * Note that `Sum(MissedBlocksBitArray)` always equals `MissedBlocksCounter`. */ missed_blocks_counter: string; } export interface ValidatorSigningInfoAminoMsg { type: "cosmos-sdk/ValidatorSigningInfo"; value: ValidatorSigningInfoAmino; } /** * ValidatorSigningInfo defines a validator's signing info for monitoring their * liveness activity. */ export interface ValidatorSigningInfoSDKType { address: string; start_height: Long; index_offset: Long; jailed_until?: TimestampSDKType; tombstoned: boolean; missed_blocks_counter: Long; } /** Params represents the parameters used for by the slashing module. */ export interface Params { signedBlocksWindow: Long; minSignedPerWindow: Uint8Array; downtimeJailDuration?: Duration; slashFractionDoubleSign: Uint8Array; slashFractionDowntime: Uint8Array; } export interface ParamsProtoMsg { typeUrl: "/cosmos.slashing.v1beta1.Params"; value: Uint8Array; } /** Params represents the parameters used for by the slashing module. */ export interface ParamsAmino { signed_blocks_window: string; min_signed_per_window: Uint8Array; downtime_jail_duration?: DurationAmino; slash_fraction_double_sign: Uint8Array; slash_fraction_downtime: Uint8Array; } export interface ParamsAminoMsg { type: "cosmos-sdk/Params"; value: ParamsAmino; } /** Params represents the parameters used for by the slashing module. */ export interface ParamsSDKType { signed_blocks_window: Long; min_signed_per_window: Uint8Array; downtime_jail_duration?: DurationSDKType; slash_fraction_double_sign: Uint8Array; slash_fraction_downtime: Uint8Array; } export declare const ValidatorSigningInfo: { encode(message: ValidatorSigningInfo, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ValidatorSigningInfo; fromJSON(object: any): ValidatorSigningInfo; toJSON(message: ValidatorSigningInfo): unknown; fromPartial(object: Partial): ValidatorSigningInfo; fromAmino(object: ValidatorSigningInfoAmino): ValidatorSigningInfo; toAmino(message: ValidatorSigningInfo): ValidatorSigningInfoAmino; fromAminoMsg(object: ValidatorSigningInfoAminoMsg): ValidatorSigningInfo; toAminoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoAminoMsg; fromProtoMsg(message: ValidatorSigningInfoProtoMsg): ValidatorSigningInfo; toProto(message: ValidatorSigningInfo): Uint8Array; toProtoMsg(message: ValidatorSigningInfo): ValidatorSigningInfoProtoMsg; }; export declare const Params: { encode(message: Params, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Params; fromJSON(object: any): Params; toJSON(message: Params): unknown; fromPartial(object: Partial): Params; fromAmino(object: ParamsAmino): Params; toAmino(message: Params): ParamsAmino; fromAminoMsg(object: ParamsAminoMsg): Params; toAminoMsg(message: Params): ParamsAminoMsg; fromProtoMsg(message: ParamsProtoMsg): Params; toProto(message: Params): Uint8Array; toProtoMsg(message: Params): ParamsProtoMsg; };