interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
163 lines (162 loc) • 6 kB
TypeScript
import { Duration, DurationAmino } from "../../../google/protobuf/duration";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* ValidatorSigningInfo defines a validator's signing info for monitoring their
* liveness activity.
* @name ValidatorSigningInfo
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.ValidatorSigningInfo
*/
export interface ValidatorSigningInfo {
address: string;
/**
* Height at which validator was first a candidate OR was un-jailed
*/
startHeight: bigint;
/**
* Index which is incremented every time a validator is bonded in a block and
* _may_ have signed a pre-commit or not. This in conjunction with the
* signed_blocks_window param determines the index in the missed block bitmap.
*/
indexOffset: bigint;
/**
* Timestamp until which the validator is jailed due to liveness downtime.
*/
jailedUntil: Date;
/**
* 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 misbehavior.
*/
tombstoned: boolean;
/**
* A counter of missed (unsigned) blocks. It is used to avoid unnecessary
* reads in the missed block bitmap.
*/
missedBlocksCounter: bigint;
}
export interface ValidatorSigningInfoProtoMsg {
typeUrl: "/cosmos.slashing.v1beta1.ValidatorSigningInfo";
value: Uint8Array;
}
/**
* ValidatorSigningInfo defines a validator's signing info for monitoring their
* liveness activity.
* @name ValidatorSigningInfoAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.ValidatorSigningInfo
*/
export interface ValidatorSigningInfoAmino {
address: string;
/**
* Height at which validator was first a candidate OR was un-jailed
*/
start_height: string;
/**
* Index which is incremented every time a validator is bonded in a block and
* _may_ have signed a pre-commit or not. This in conjunction with the
* signed_blocks_window param determines the index in the missed block bitmap.
*/
index_offset: string;
/**
* Timestamp until which the validator is jailed due to liveness downtime.
*/
jailed_until: string;
/**
* 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 misbehavior.
*/
tombstoned: boolean;
/**
* A counter of missed (unsigned) blocks. It is used to avoid unnecessary
* reads in the missed block bitmap.
*/
missed_blocks_counter: string;
}
export interface ValidatorSigningInfoAminoMsg {
type: "cosmos-sdk/ValidatorSigningInfo";
value: ValidatorSigningInfoAmino;
}
/**
* Params represents the parameters used for by the slashing module.
* @name Params
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.Params
*/
export interface Params {
signedBlocksWindow: bigint;
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.
* @name ParamsAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.Params
*/
export interface ParamsAmino {
signed_blocks_window: string;
min_signed_per_window: string;
downtime_jail_duration: DurationAmino;
slash_fraction_double_sign: string;
slash_fraction_downtime: string;
}
export interface ParamsAminoMsg {
type: "cosmos-sdk/x/slashing/Params";
value: ParamsAmino;
}
/**
* ValidatorSigningInfo defines a validator's signing info for monitoring their
* liveness activity.
* @name ValidatorSigningInfo
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.ValidatorSigningInfo
*/
export declare const ValidatorSigningInfo: {
typeUrl: string;
aminoType: string;
is(o: any): o is ValidatorSigningInfo;
isAmino(o: any): o is ValidatorSigningInfoAmino;
encode(message: ValidatorSigningInfo, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): ValidatorSigningInfo;
fromPartial(object: DeepPartial<ValidatorSigningInfo>): 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;
registerTypeUrl(): void;
};
/**
* Params represents the parameters used for by the slashing module.
* @name Params
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.Params
*/
export declare const Params: {
typeUrl: string;
aminoType: string;
is(o: any): o is Params;
isAmino(o: any): o is ParamsAmino;
encode(message: Params, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Params;
fromPartial(object: DeepPartial<Params>): 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;
registerTypeUrl(): void;
};