github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/types/codec.go (about)

     1  package types
     2  
     3  import (
     4  	"github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec"
     5  )
     6  
     7  const (
     8  	// MsgInterfaceProtoName defines the protobuf name of the cosmos Msg interface
     9  	MsgInterfaceProtoName = "cosmos.base.v1beta1.Msg"
    10  )
    11  
    12  // Register the sdk message type
    13  func RegisterCodec(cdc *codec.Codec) {
    14  	cdc.RegisterInterface((*Msg)(nil), nil)
    15  	cdc.RegisterInterface((*MsgProtoAdapter)(nil), nil)
    16  	cdc.RegisterInterface((*Tx)(nil), nil)
    17  }