From ff02273aac72add77d39dcb78e12f1c2ce22283c Mon Sep 17 00:00:00 2001 From: Kevin Yang <5478483+k-yang@users.noreply.github.com> Date: Tue, 26 Sep 2023 06:15:57 -0400 Subject: [PATCH] chore: msg interfaces (#1604) * chore: msg interfaces * chore: conform x/sudo msgs to Amino legacy msg --- x/perp/v2/types/msgs.go | 4 +++- x/spot/types/message.go | 7 ++++++- x/stablecoin/types/messages.go | 7 ++++++- x/sudo/types/msgs.go | 5 +++-- 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/x/perp/v2/types/msgs.go b/x/perp/v2/types/msgs.go index 3d69abf45..8eda3d24c 100644 --- a/x/perp/v2/types/msgs.go +++ b/x/perp/v2/types/msgs.go @@ -13,8 +13,10 @@ var ( _ sdk.Msg = &MsgRemoveMargin{} _ sdk.Msg = &MsgAddMargin{} _ sdk.Msg = &MsgMarketOrder{} - _ sdk.Msg = &MsgClosePosition{} _ sdk.Msg = &MsgMultiLiquidate{} + _ sdk.Msg = &MsgClosePosition{} + _ sdk.Msg = &MsgDonateToEcosystemFund{} + _ sdk.Msg = &MsgPartialClose{} ) // MsgRemoveMargin diff --git a/x/spot/types/message.go b/x/spot/types/message.go index e89e8e129..8724d6b5b 100644 --- a/x/spot/types/message.go +++ b/x/spot/types/message.go @@ -13,7 +13,12 @@ const ( TypeMsgCreatePool = "create_pool" ) -var _ sdk.Msg = &MsgExitPool{} +var ( + _ sdk.Msg = &MsgExitPool{} + _ sdk.Msg = &MsgJoinPool{} + _ sdk.Msg = &MsgSwapAssets{} + _ sdk.Msg = &MsgCreatePool{} +) func NewMsgExitPool(sender string, poolId uint64, poolShares sdk.Coin) *MsgExitPool { return &MsgExitPool{ diff --git a/x/stablecoin/types/messages.go b/x/stablecoin/types/messages.go index 032f6d184..1ac40303f 100644 --- a/x/stablecoin/types/messages.go +++ b/x/stablecoin/types/messages.go @@ -10,7 +10,12 @@ import ( // MsgMintStable // ---------------------------------------------------------------- -var _ sdk.Msg = &MsgMintStable{} +var ( + _ sdk.Msg = &MsgMintStable{} + _ sdk.Msg = &MsgBurnStable{} + _ sdk.Msg = &MsgRecollateralize{} + _ sdk.Msg = &MsgBuyback{} +) func (msg *MsgMintStable) Route() string { return RouterKey diff --git a/x/sudo/types/msgs.go b/x/sudo/types/msgs.go index ea11fcfd4..ed883fc9a 100644 --- a/x/sudo/types/msgs.go +++ b/x/sudo/types/msgs.go @@ -4,11 +4,12 @@ import ( "fmt" sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/x/auth/migrations/legacytx" ) var ( - _ sdk.Msg = &MsgEditSudoers{} - _ sdk.Msg = &MsgChangeRoot{} + _ legacytx.LegacyMsg = &MsgEditSudoers{} + _ legacytx.LegacyMsg = &MsgChangeRoot{} ) // MsgEditSudoers