Merge pull request #326 from CosmWasm/extens-Msg

Add missing "extends Msg" for Cosmos SDK messages
This commit is contained in:
Simon Warta 2020-07-30 17:06:35 +02:00 committed by GitHub
commit fb38b6aba0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 18 deletions

View File

@ -135,7 +135,7 @@ interface Any {
}
/** Supports submitting arbitrary evidence */
export interface MsgSubmitEvidence {
export interface MsgSubmitEvidence extends Msg {
readonly type: "cosmos-sdk/MsgSubmitEvidence";
readonly value: {
/** Bech32 account address */
@ -151,7 +151,7 @@ export function isMsgSubmitEvidence(msg: Msg): msg is MsgSubmitEvidence {
// gov - https://github.com/cosmos/cosmos-sdk/blob/efa73c7edb31a7bd65786501da213b294f89267a/proto/cosmos/gov/gov.proto
/** Supports submitting arbitrary proposal content. */
export interface MsgSubmitProposal {
export interface MsgSubmitProposal extends Msg {
readonly type: "cosmos-sdk/MsgSubmitProposal";
readonly value: {
readonly content: Any;
@ -174,7 +174,7 @@ enum VoteOption {
}
/** Casts a vote */
export interface MsgVote {
export interface MsgVote extends Msg {
readonly type: "cosmos-sdk/MsgVote";
readonly value: {
readonly proposal_id: number;
@ -189,7 +189,7 @@ export function isMsgVote(msg: Msg): msg is MsgVote {
}
/** Submits a deposit to an existing proposal */
export interface MsgDeposit {
export interface MsgDeposit extends Msg {
readonly type: "cosmos-sdk/MsgDeposit";
readonly value: {
readonly proposal_id: number;
@ -212,7 +212,7 @@ export function isMsgDeposit(msg: Msg): msg is MsgDeposit {
// slashing - see https://github.com/cosmos/cosmos-sdk/blob/efa73c7/proto/cosmos/slashing/slashing.proto
/** Unjails a jailed validator */
export interface MsgUnjail {
export interface MsgUnjail extends Msg {
readonly type: "cosmos-sdk/MsgUnjail";
readonly value: {
/** Bech32 account address */
@ -243,7 +243,7 @@ interface Description {
}
/** Creates a new validator. */
export interface MsgCreateValidator {
export interface MsgCreateValidator extends Msg {
readonly type: "cosmos-sdk/MsgCreateValidator";
readonly value: {
readonly description: Description;
@ -264,7 +264,7 @@ export function isMsgCreateValidator(msg: Msg): msg is MsgCreateValidator {
}
/** Edits an existing validator. */
export interface MsgEditValidator {
export interface MsgEditValidator extends Msg {
readonly type: "cosmos-sdk/MsgEditValidator";
readonly value: {
readonly description: Description;
@ -300,7 +300,7 @@ export function isMsgDelegate(msg: Msg): msg is MsgDelegate {
}
/** Performs a redelegation from a delegate and source validator to a destination validator */
export interface MsgBeginRedelegate {
export interface MsgBeginRedelegate extends Msg {
readonly type: "cosmos-sdk/MsgBeginRedelegate";
readonly value: {
/** Bech32 encoded delegator address */
@ -318,7 +318,7 @@ export function isMsgBeginRedelegate(msg: Msg): msg is MsgBeginRedelegate {
}
/** Performs an undelegation from a delegate and a validator */
export interface MsgUndelegate {
export interface MsgUndelegate extends Msg {
readonly type: "cosmos-sdk/MsgUndelegate";
readonly value: {
/** Bech32 encoded delegator address */

View File

@ -91,7 +91,7 @@ interface Any {
readonly value: Uint8Array;
}
/** Supports submitting arbitrary evidence */
export interface MsgSubmitEvidence {
export interface MsgSubmitEvidence extends Msg {
readonly type: "cosmos-sdk/MsgSubmitEvidence";
readonly value: {
/** Bech32 account address */
@ -101,7 +101,7 @@ export interface MsgSubmitEvidence {
}
export declare function isMsgSubmitEvidence(msg: Msg): msg is MsgSubmitEvidence;
/** Supports submitting arbitrary proposal content. */
export interface MsgSubmitProposal {
export interface MsgSubmitProposal extends Msg {
readonly type: "cosmos-sdk/MsgSubmitProposal";
readonly value: {
readonly content: Any;
@ -119,7 +119,7 @@ declare enum VoteOption {
VoteOptionNoWithVeto = 4,
}
/** Casts a vote */
export interface MsgVote {
export interface MsgVote extends Msg {
readonly type: "cosmos-sdk/MsgVote";
readonly value: {
readonly proposal_id: number;
@ -130,7 +130,7 @@ export interface MsgVote {
}
export declare function isMsgVote(msg: Msg): msg is MsgVote;
/** Submits a deposit to an existing proposal */
export interface MsgDeposit {
export interface MsgDeposit extends Msg {
readonly type: "cosmos-sdk/MsgDeposit";
readonly value: {
readonly proposal_id: number;
@ -141,7 +141,7 @@ export interface MsgDeposit {
}
export declare function isMsgDeposit(msg: Msg): msg is MsgDeposit;
/** Unjails a jailed validator */
export interface MsgUnjail {
export interface MsgUnjail extends Msg {
readonly type: "cosmos-sdk/MsgUnjail";
readonly value: {
/** Bech32 account address */
@ -164,7 +164,7 @@ interface Description {
readonly details: string;
}
/** Creates a new validator. */
export interface MsgCreateValidator {
export interface MsgCreateValidator extends Msg {
readonly type: "cosmos-sdk/MsgCreateValidator";
readonly value: {
readonly description: Description;
@ -181,7 +181,7 @@ export interface MsgCreateValidator {
}
export declare function isMsgCreateValidator(msg: Msg): msg is MsgCreateValidator;
/** Edits an existing validator. */
export interface MsgEditValidator {
export interface MsgEditValidator extends Msg {
readonly type: "cosmos-sdk/MsgEditValidator";
readonly value: {
readonly description: Description;
@ -209,7 +209,7 @@ export interface MsgDelegate extends Msg {
}
export declare function isMsgDelegate(msg: Msg): msg is MsgDelegate;
/** Performs a redelegation from a delegate and source validator to a destination validator */
export interface MsgBeginRedelegate {
export interface MsgBeginRedelegate extends Msg {
readonly type: "cosmos-sdk/MsgBeginRedelegate";
readonly value: {
/** Bech32 encoded delegator address */
@ -223,7 +223,7 @@ export interface MsgBeginRedelegate {
}
export declare function isMsgBeginRedelegate(msg: Msg): msg is MsgBeginRedelegate;
/** Performs an undelegation from a delegate and a validator */
export interface MsgUndelegate {
export interface MsgUndelegate extends Msg {
readonly type: "cosmos-sdk/MsgUndelegate";
readonly value: {
/** Bech32 encoded delegator address */