From 3b9d9c1044db95843830b774e2f3b0600b342cce Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 30 Jul 2020 16:57:42 +0200 Subject: [PATCH] Add missing "extends Msg" for Cosmos SDK messages --- packages/launchpad/src/msgs.ts | 18 +++++++++--------- packages/launchpad/types/msgs.d.ts | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/launchpad/src/msgs.ts b/packages/launchpad/src/msgs.ts index 9774ef7c..6fdd31d0 100644 --- a/packages/launchpad/src/msgs.ts +++ b/packages/launchpad/src/msgs.ts @@ -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 */ diff --git a/packages/launchpad/types/msgs.d.ts b/packages/launchpad/types/msgs.d.ts index 3d30555a..b29d58c7 100644 --- a/packages/launchpad/types/msgs.d.ts +++ b/packages/launchpad/types/msgs.d.ts @@ -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 */