github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/genutil/types/codec.go (about) 1 package types 2 3 import ( 4 stakingtypes "github.com/fibonacci-chain/fbc/x/staking/types" 5 6 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 7 sdk "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/types" 8 authtypes "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/x/auth/types" 9 ) 10 11 // ModuleCdc defines a generic sealed codec to be used throughout this module 12 var ModuleCdc *codec.Codec 13 14 // TODO: abstract genesis transactions registration back to staking 15 // required for genesis transactions 16 func init() { 17 ModuleCdc = codec.New() 18 stakingtypes.RegisterCodec(ModuleCdc) 19 authtypes.RegisterCodec(ModuleCdc) 20 sdk.RegisterCodec(ModuleCdc) 21 codec.RegisterCrypto(ModuleCdc) 22 ModuleCdc.Seal() 23 }