github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/slashing/internal/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 codec
     8  func RegisterCodec(cdc *codec.Codec) {
     9  	cdc.RegisterConcrete(MsgUnjail{}, "cosmos-sdk/MsgUnjail", nil)
    10  }
    11  
    12  // ModuleCdc defines the module codec
    13  var ModuleCdc *codec.Codec
    14  
    15  func init() {
    16  	ModuleCdc = codec.New()
    17  	RegisterCodec(ModuleCdc)
    18  	codec.RegisterCrypto(ModuleCdc)
    19  	ModuleCdc.Seal()
    20  }