Skip to content

Commit

Permalink
chore: msg interfaces (#1604)
Browse files Browse the repository at this point in the history
* chore: msg interfaces

* chore: conform x/sudo msgs to Amino legacy msg
  • Loading branch information
k-yang authored Sep 26, 2023
1 parent e95f331 commit ff02273
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 5 deletions.
4 changes: 3 additions & 1 deletion x/perp/v2/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 6 additions & 1 deletion x/spot/types/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
7 changes: 6 additions & 1 deletion x/stablecoin/types/messages.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions x/sudo/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff02273

Please sign in to comment.