interchainjs
Version:
InterchainJS is a JavaScript library for interacting with Cosmos SDK based blockchains.
137 lines (136 loc) • 5.23 kB
TypeScript
import { BlockParams, BlockParamsAmino, EvidenceParams, EvidenceParamsAmino, ValidatorParams, ValidatorParamsAmino, ABCIParams, ABCIParamsAmino } from "../../../tendermint/types/params";
import { BinaryReader, BinaryWriter } from "../../../binary";
import { DeepPartial } from "../../../helpers";
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.consensus.v1
* @see proto type: cosmos.consensus.v1.MsgUpdateParams
*/
export interface MsgUpdateParams {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/consensus parameters to update.
* VersionsParams is not included in this Msg because it is tracked
* separarately in x/upgrade.
*
* NOTE: All parameters must be supplied.
*/
block?: BlockParams;
evidence?: EvidenceParams;
validator?: ValidatorParams;
/**
* Since: cosmos-sdk 0.50
*/
abci?: ABCIParams;
}
export interface MsgUpdateParamsProtoMsg {
typeUrl: "/cosmos.consensus.v1.MsgUpdateParams";
value: Uint8Array;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParamsAmino
* @package cosmos.consensus.v1
* @see proto type: cosmos.consensus.v1.MsgUpdateParams
*/
export interface MsgUpdateParamsAmino {
/**
* authority is the address that controls the module (defaults to x/gov unless overwritten).
*/
authority: string;
/**
* params defines the x/consensus parameters to update.
* VersionsParams is not included in this Msg because it is tracked
* separarately in x/upgrade.
*
* NOTE: All parameters must be supplied.
*/
block?: BlockParamsAmino;
evidence?: EvidenceParamsAmino;
validator?: ValidatorParamsAmino;
/**
* Since: cosmos-sdk 0.50
*/
abci?: ABCIParamsAmino;
}
export interface MsgUpdateParamsAminoMsg {
type: "cosmos-sdk/x/consensus/MsgUpdateParams";
value: MsgUpdateParamsAmino;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponse
* @package cosmos.consensus.v1
* @see proto type: cosmos.consensus.v1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponse {
}
export interface MsgUpdateParamsResponseProtoMsg {
typeUrl: "/cosmos.consensus.v1.MsgUpdateParamsResponse";
value: Uint8Array;
}
/**
* MsgUpdateParamsResponse defines the response structure for executing a
* MsgUpdateParams message.
* @name MsgUpdateParamsResponseAmino
* @package cosmos.consensus.v1
* @see proto type: cosmos.consensus.v1.MsgUpdateParamsResponse
*/
export interface MsgUpdateParamsResponseAmino {
}
export interface MsgUpdateParamsResponseAminoMsg {
type: "cosmos-sdk/MsgUpdateParamsResponse";
value: MsgUpdateParamsResponseAmino;
}
/**
* MsgUpdateParams is the Msg/UpdateParams request type.
* @name MsgUpdateParams
* @package cosmos.consensus.v1
* @see proto type: cosmos.consensus.v1.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.consensus.v1
* @see proto type: cosmos.consensus.v1.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;
};