diff --git a/x/feemarket/types/codec.go b/x/feemarket/types/codec.go new file mode 100644 index 0000000..2269b95 --- /dev/null +++ b/x/feemarket/types/codec.go @@ -0,0 +1,25 @@ +package types + +import ( + "github.com/cosmos/cosmos-sdk/codec" + "github.com/cosmos/cosmos-sdk/codec/legacy" + "github.com/cosmos/cosmos-sdk/codec/types" + sdk "github.com/cosmos/cosmos-sdk/types" + "github.com/cosmos/cosmos-sdk/types/msgservice" +) + +// RegisterLegacyAminoCodec registers the necessary x/feemarket interfaces (messages) on the +// provided LegacyAmino codec. +func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { + legacy.RegisterAminoMsg(cdc, &MsgParams{}, "feemarket/MsgParams") +} + +// RegisterInterfaces registers the x/feemarket interfaces (messages + msg server) on the +// provided InterfaceRegistry. +func RegisterInterfaces(registry types.InterfaceRegistry) { + registry.RegisterImplementations((*sdk.Msg)(nil), + &MsgParams{}, + ) + + msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) +}