github.com/cosmos/cosmos-sdk@v0.50.10/x/crisis/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 codectypes "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 // RegisterLegacyAminoCodec registers the necessary x/crisis interfaces and concrete types 12 // on the provided LegacyAmino codec. These types are used for Amino JSON serialization. 13 func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { 14 legacy.RegisterAminoMsg(cdc, &MsgVerifyInvariant{}, "cosmos-sdk/MsgVerifyInvariant") 15 legacy.RegisterAminoMsg(cdc, &MsgUpdateParams{}, "cosmos-sdk/x/crisis/MsgUpdateParams") 16 } 17 18 // RegisterInterfaces registers the interfaces types with the Interface Registry. 19 func RegisterInterfaces(registry codectypes.InterfaceRegistry) { 20 registry.RegisterImplementations((*sdk.Msg)(nil), 21 &MsgVerifyInvariant{}, 22 &MsgUpdateParams{}, 23 ) 24 25 msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc) 26 }