2020-06-04 03:38:24 -07:00
|
|
|
package legacy
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
|
|
cryptocodec "github.com/cosmos/cosmos-sdk/crypto/codec"
|
|
|
|
)
|
|
|
|
|
2020-06-12 09:23:08 -07:00
|
|
|
// Cdc defines a global generic sealed Amino codec to be used throughout sdk. It
|
2020-06-04 03:38:24 -07:00
|
|
|
// has all Tendermint crypto and evidence types registered.
|
|
|
|
//
|
2020-06-12 09:23:08 -07:00
|
|
|
// TODO: Deprecated - remove this global.
|
2020-08-10 12:41:21 -07:00
|
|
|
var Cdc *codec.LegacyAmino
|
2020-06-04 03:38:24 -07:00
|
|
|
|
|
|
|
func init() {
|
|
|
|
Cdc = codec.New()
|
|
|
|
cryptocodec.RegisterCrypto(Cdc)
|
|
|
|
codec.RegisterEvidences(Cdc)
|
|
|
|
Cdc.Seal()
|
|
|
|
}
|