github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/params/codec.go (about) 1 package params 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 5 "github.com/fibonacci-chain/fbc/x/params/types" 6 ) 7 8 // ModuleCdc is the codec of module 9 var ModuleCdc *codec.Codec 10 11 func init() { 12 ModuleCdc = codec.New() 13 RegisterCodec(ModuleCdc) 14 ModuleCdc.Seal() 15 } 16 17 // RegisterCodec registers all necessary param module types with a given codec. 18 func RegisterCodec(cdc *codec.Codec) { 19 cdc.RegisterConcrete(types.ParameterChangeProposal{}, "fbexchain/params/ParameterChangeProposal", nil) 20 cdc.RegisterConcrete(types.UpgradeProposal{}, "fbexchain/params/UpgradeProposal", nil) 21 cdc.RegisterConcrete(types.UpgradeInfo{}, "fbexchain/params/UpgradeInfo", nil) 22 }