github.com/Finschia/finschia-sdk@v0.48.1/x/params/types/proposal/codec.go (about) 1 package proposal 2 3 import ( 4 "github.com/Finschia/finschia-sdk/codec" 5 "github.com/Finschia/finschia-sdk/codec/types" 6 govtypes "github.com/Finschia/finschia-sdk/x/gov/types" 7 ) 8 9 // RegisterLegacyAminoCodec registers all necessary param module types with a given LegacyAmino codec. 10 func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) { 11 cdc.RegisterConcrete(&ParameterChangeProposal{}, "cosmos-sdk/ParameterChangeProposal", nil) 12 } 13 14 func RegisterInterfaces(registry types.InterfaceRegistry) { 15 registry.RegisterImplementations( 16 (*govtypes.Content)(nil), 17 &ParameterChangeProposal{}, 18 ) 19 }