interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
217 lines (216 loc) • 8.04 kB
TypeScript
import { Params, ParamsAmino } from "./slashing";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* MsgUnjail defines the Msg/Unjail request type
* @name MsgUnjail
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjail
*/
export interface MsgUnjail {
validatorAddr: string;
}
export interface MsgUnjailProtoMsg {
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjail";
value: Uint8Array;
}
/**
* MsgUnjail defines the Msg/Unjail request type
* @name MsgUnjailAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjail
*/
export interface MsgUnjailAmino {
validator_addr: string;
}
export interface MsgUnjailAminoMsg {
type: "cosmos-sdk/MsgUnjail";
value: MsgUnjailAmino;
}
/**
* MsgUnjailResponse defines the Msg/Unjail response type
* @name MsgUnjailResponse
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjailResponse
*/
export interface MsgUnjailResponse {
}
export interface MsgUnjailResponseProtoMsg {
typeUrl: "/cosmos.slashing.v1beta1.MsgUnjailResponse";
value: Uint8Array;
}
/**
* MsgUnjailResponse defines the Msg/Unjail response type
* @name MsgUnjailResponseAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjailResponse
*/
export interface MsgUnjailResponseAmino {
}
export interface MsgUnjailResponseAminoMsg {
type: "cosmos-sdk/MsgUnjailResponse";
value: MsgUnjailResponseAmino;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParams
*/
export interface MsgUpdateParams {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/slashing parameters to update.
*
* NOTE: All parameters must be supplied.
*/
params: Params;
}
export interface MsgUpdateParamsProtoMsg {
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParams";
value: Uint8Array;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParamsAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParams
*/
export interface MsgUpdateParamsAmino {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/slashing parameters to update.
*
* NOTE: All parameters must be supplied.
*/
params: ParamsAmino;
}
export interface MsgUpdateParamsAminoMsg {
type: "cosmos-sdk/x/slashing/MsgUpdateParams";
value: MsgUpdateParamsAmino;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponse
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponse {
}
export interface MsgUpdateParamsResponseProtoMsg {
typeUrl: "/cosmos.slashing.v1beta1.MsgUpdateParamsResponse";
value: Uint8Array;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponseAmino
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponseAmino {
}
export interface MsgUpdateParamsResponseAminoMsg {
type: "cosmos-sdk/MsgUpdateParamsResponse";
value: MsgUpdateParamsResponseAmino;
}
/**
* MsgUnjail defines the Msg/Unjail request type
* @name MsgUnjail
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjail
*/
export declare const MsgUnjail: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUnjail;
isAmino(o: any): o is MsgUnjailAmino;
encode(message: MsgUnjail, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjail;
fromPartial(object: DeepPartial<MsgUnjail>): MsgUnjail;
fromAmino(object: MsgUnjailAmino): MsgUnjail;
toAmino(message: MsgUnjail): MsgUnjailAmino;
fromAminoMsg(object: MsgUnjailAminoMsg): MsgUnjail;
toAminoMsg(message: MsgUnjail): MsgUnjailAminoMsg;
fromProtoMsg(message: MsgUnjailProtoMsg): MsgUnjail;
toProto(message: MsgUnjail): Uint8Array;
toProtoMsg(message: MsgUnjail): MsgUnjailProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUnjailResponse defines the Msg/Unjail response type
* @name MsgUnjailResponse
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUnjailResponse
*/
export declare const MsgUnjailResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUnjailResponse;
isAmino(o: any): o is MsgUnjailResponseAmino;
encode(_: MsgUnjailResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUnjailResponse;
fromPartial(_: DeepPartial<MsgUnjailResponse>): MsgUnjailResponse;
fromAmino(_: MsgUnjailResponseAmino): MsgUnjailResponse;
toAmino(_: MsgUnjailResponse): MsgUnjailResponseAmino;
fromAminoMsg(object: MsgUnjailResponseAminoMsg): MsgUnjailResponse;
toAminoMsg(message: MsgUnjailResponse): MsgUnjailResponseAminoMsg;
fromProtoMsg(message: MsgUnjailResponseProtoMsg): MsgUnjailResponse;
toProto(message: MsgUnjailResponse): Uint8Array;
toProtoMsg(message: MsgUnjailResponse): MsgUnjailResponseProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParams
*/
export declare const MsgUpdateParams: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParams;
isAmino(o: any): o is MsgUpdateParamsAmino;
encode(message: MsgUpdateParams, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParams;
fromPartial(object: DeepPartial<MsgUpdateParams>): MsgUpdateParams;
fromAmino(object: MsgUpdateParamsAmino): MsgUpdateParams;
toAmino(message: MsgUpdateParams): MsgUpdateParamsAmino;
fromAminoMsg(object: MsgUpdateParamsAminoMsg): MsgUpdateParams;
toAminoMsg(message: MsgUpdateParams): MsgUpdateParamsAminoMsg;
fromProtoMsg(message: MsgUpdateParamsProtoMsg): MsgUpdateParams;
toProto(message: MsgUpdateParams): Uint8Array;
toProtoMsg(message: MsgUpdateParams): MsgUpdateParamsProtoMsg;
registerTypeUrl(): void;
};
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponse
* @package cosmos.slashing.v1beta1
* @see proto type: cosmos.slashing.v1beta1.MsgUpdateParamsResponse
*/
export declare const MsgUpdateParamsResponse: {
typeUrl: string;
aminoType: string;
is(o: any): o is MsgUpdateParamsResponse;
isAmino(o: any): o is MsgUpdateParamsResponseAmino;
encode(_: MsgUpdateParamsResponse, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): MsgUpdateParamsResponse;
fromPartial(_: DeepPartial<MsgUpdateParamsResponse>): MsgUpdateParamsResponse;
fromAmino(_: MsgUpdateParamsResponseAmino): MsgUpdateParamsResponse;
toAmino(_: MsgUpdateParamsResponse): MsgUpdateParamsResponseAmino;
fromAminoMsg(object: MsgUpdateParamsResponseAminoMsg): MsgUpdateParamsResponse;
toAminoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseAminoMsg;
fromProtoMsg(message: MsgUpdateParamsResponseProtoMsg): MsgUpdateParamsResponse;
toProto(message: MsgUpdateParamsResponse): Uint8Array;
toProtoMsg(message: MsgUpdateParamsResponse): MsgUpdateParamsResponseProtoMsg;
registerTypeUrl(): void;
};