github.com/cosmos/cosmos-sdk@v0.50.10/x/consensus/types/codec.go (about) 1 package types 2 3 import ( 4 "github.com/cosmos/cosmos-sdk/codec" 5 "github.com/cosmos/cosmos-sdk/codec/legacy" 6 "github.com/cosmos/cosmos-sdk/codec/types" 7 sdk "github.com/cosmos/cosmos-sdk/types" 8 "github.com/cosmos/cosmos-sdk/types/msgservice" 9 ) 10 11 func RegisterInterfaces(registry types.InterfaceRegistry) { 12 registry.RegisterImplementations( 13 (*sdk.Msg)(nil), 14 &MsgUpdateParams{}, 15 ) 16 17 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) 18 } 19 20 // RegisterLegacyAminoCodec registers the necessary x/consensus interfaces and concrete types 21 // on the provided LegacyAmino codec. These types are used for Amino JSON serialization. 22 func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { 23 legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/consensus/MsgUpdateParams") 24 }