github.com/Finschia/finschia-sdk@v0.48.1/types/codec.go (about) 1 package types 2 3 import ( 4 "github.com/Finschia/finschia-sdk/codec" 5 "github.com/Finschia/finschia-sdk/codec/types" 6 ) 7 8 const ( 9 // MsgInterfaceProtoName defines the protobuf name of the cosmos Msg interface 10 MsgInterfaceProtoName = "cosmos.base.v1beta1.Msg" 11 ) 12 13 // RegisterLegacyAminoCodec registers the sdk message type. 14 func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { 15 cdc.RegisterInterface((*Msg)(nil), nil) 16 cdc.RegisterInterface((*Tx)(nil), nil) 17 } 18 19 // RegisterInterfaces registers the sdk message type. 20 func RegisterInterfaces(registry types.InterfaceRegistry) { 21 registry.RegisterInterface(MsgInterfaceProtoName, (*Msg)(nil)) 22 }