github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/order/types/codec.go (about) 1 package types 2 3 import ( 4 "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 5 ) 6 7 // RegisterCodec registers concrete types on the Amino codec 8 func RegisterCodec(cdc *codec.Codec) { 9 cdc.RegisterConcrete(MsgNewOrders{}, "fbexchain/order/MsgNew", nil) 10 cdc.RegisterConcrete(MsgCancelOrders{}, "fbexchain/order/MsgCancel", nil) 11 } 12 13 // ModuleCdc generic sealed codec to be used throughout this module 14 var ModuleCdc *codec.Codec 15 16 func init() { 17 ModuleCdc = codec.New() 18 RegisterCodec(ModuleCdc) 19 codec.RegisterCrypto(ModuleCdc) 20 ModuleCdc.Seal() 21 }