github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/ibc-go/testing/simapp/adapter/codec.go (about) 1 package adapter 2 3 import "github.com/fibonacci-chain/fbc/libs/cosmos-sdk/codec" 4 5 var ( 6 //amino = codec.NewLegacyAmino() 7 8 // ModuleCdc references the global x/ibc-transfer module codec. Note, the codec 9 // should ONLY be used in certain instances of tests and for JSON encoding. 10 // 11 // The actual codec used for serialization should be provided to x/ibc transfer and 12 // defined at the application level. 13 //ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry()) 14 ModuleCdc = codec.New() 15 Marshal *codec.CodecProxy 16 ) 17 18 func init() { 19 codec.RegisterCrypto(ModuleCdc) 20 } 21 22 func SetMarshal(m *codec.CodecProxy) { 23 Marshal = m 24 }