github.com/lino-network/lino@v0.6.11/x/price/types/codec.go (about)

     1  package types
     2  
     3  import (
     4  	"github.com/cosmos/cosmos-sdk/codec"
     5  )
     6  
     7  // RegisterCodec concrete types on wire codec
     8  func RegisterCodec(cdc *codec.Codec) {
     9  	cdc.RegisterConcrete(FeedPriceMsg{}, "lino/feedprice", nil)
    10  }
    11  
    12  // ModuleCdc is the module codec
    13  var ModuleCdc *codec.Codec
    14  
    15  func init() {
    16  	ModuleCdc = codec.New()
    17  	RegisterCodec(ModuleCdc)
    18  	ModuleCdc.Seal()
    19  }