func (msg MsgRequestRandom) GetSigners() []sdk.AccAddress {
	consumer, err := sdk.AccAddressFromBech32(msg.Consumer)
	if err != nil {
		panic(err)
	}
	return []sdk.AccAddress{consumer}
}
GetSigners implements Msg.
package types
import (
	sdk "github.com/cosmos/cosmos-sdk/types"
	sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
const (
	TypeMsgRequestRandom = "request_random"  
	DefaultBlockInterval = uint64(10)  
)
var _ sdk.Msg = &MsgRequestRandom{}
func NewMsgRequestRandom(
	consumer string,
	blockInterval uint64,
	oracle bool,
	serviceFeeCap sdk.Coins,
) *MsgRequestRandom {
	return &MsgRequestRandom{
		Consumer:      consumer,
		BlockInterval: blockInterval,
		Oracle:        oracle,
		ServiceFeeCap: serviceFeeCap,
	}
}
func (msg MsgRequestRandom) Route() string { return RouterKey }
func (msg MsgRequestRandom) Type() string { return TypeMsgRequestRandom }
func (msg MsgRequestRandom) ValidateBasic() error {
	if _, err := sdk.AccAddressFromBech32(msg.Consumer); err != nil {
		return sdkerrors.Wrapf(sdkerrors.ErrInvalidAddress, "invalid consumer address (%s)", err)
	}
	return ValidateServiceFeeCap(msg.ServiceFeeCap)
}
func (msg MsgRequestRandom) GetSignBytes() []byte {
	b, err := ModuleCdc.MarshalJSON(&msg)
	if err != nil {
		panic(err)
	}
	return sdk.MustSortJSON(b)
}