func (msg MsgAddLiquidity) GetSigners() []sdk.AccAddress {
	from, err := sdk.AccAddressFromBech32(msg.Sender)
	if err != nil {
		panic(err)
	}
	return []sdk.AccAddress{from}
}
GetSigners implements Msg.
package types
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
var (
	_ sdk.Msg = &MsgSwapOrder{}
	_ sdk.Msg = &MsgAddLiquidity{}
	_ sdk.Msg = &MsgRemoveLiquidity{}
)
const (
	LptTokenPrefix = "lpt"
	LptTokenFormat = "lpt-%d"
	TypeMsgAddLiquidity = "add_liquidity"
	TypeMsgRemoveLiquidity = "remove_liquidity"
	TypeMsgSwapOrder = "swap_order"
)
func NewMsgSwapOrder(
	input Input,
	output Output,
	deadline int64,
	isBuyOrder bool,
) *MsgSwapOrder {
	return &MsgSwapOrder{
		Input:      input,
		Output:     output,
		Deadline:   deadline,
		IsBuyOrder: isBuyOrder,
	}
}
func (msg MsgSwapOrder) Route() string { return RouterKey }
func (msg MsgSwapOrder) Type() string { return TypeMsgSwapOrder }
func (msg MsgSwapOrder) ValidateBasic() error {
	if err := ValidateInput(msg.Input); err != nil {
		return err
	}
	if err := ValidateOutput(msg.Output); err != nil {
		return err
	}
	if msg.Input.Coin.Denom == msg.Output.Coin.Denom {
		return sdkerrors.Wrap(ErrEqualDenom, "invalid swap")
	}
	return ValidateDeadline(msg.Deadline)
}
func (msg MsgSwapOrder) GetSignBytes() []byte {
	return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
}
func (msg MsgSwapOrder) GetSigners() []sdk.AccAddress {
	from, err := sdk.AccAddressFromBech32(msg.Input.Address)
	if err != nil {
		panic(err)
	}
	return []sdk.AccAddress{from}
}
func NewMsgAddLiquidity(
	maxToken sdk.Coin,
	exactStandardAmt sdk.Int,
	minLiquidity sdk.Int,
	deadline int64,
	sender string,
) *MsgAddLiquidity {
	return &MsgAddLiquidity{
		MaxToken:         maxToken,
		ExactStandardAmt: exactStandardAmt,
		MinLiquidity:     minLiquidity,
		Deadline:         deadline,
		Sender:           sender,
	}
}
func (msg MsgAddLiquidity) Route() string { return RouterKey }
func (msg MsgAddLiquidity) Type() string { return TypeMsgAddLiquidity }
func (msg MsgAddLiquidity) ValidateBasic() error {
	if err := ValidateMaxToken(msg.MaxToken); err != nil {
		return err
	}
	if err := ValidateExactStandardAmt(msg.ExactStandardAmt); err != nil {
		return err
	}
	if err := ValidateMinLiquidity(msg.MinLiquidity); err != nil {
		return err
	}
	if err := ValidateDeadline(msg.Deadline); err != nil {
		return err
	}
	if _, err := sdk.AccAddressFromBech32(msg.Sender); err != nil {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid sender address (%s)", err)
	}
	return nil
}
func (msg MsgAddLiquidity) GetSignBytes() []byte {
	return sdk.MustSortJSON(ModuleCdc.MustMarshalJSON(&msg))
}