laconicd-deprecated/types/codec.go

23 lines
402 B
Go
Raw Normal View History

package types
import (
2018-10-24 14:49:37 +00:00
"github.com/cosmos/cosmos-sdk/codec"
)
2018-10-24 14:49:37 +00:00
var typesCodec = codec.New()
func init() {
2018-10-24 14:49:37 +00:00
RegisterCodec(typesCodec)
}
const (
// Amino encoding name
EthermintAccountName = "emint/Account"
)
2018-10-24 14:49:37 +00:00
// RegisterCodec registers all the necessary types with amino for the given
// codec.
2018-10-24 14:49:37 +00:00
func RegisterCodec(cdc *codec.Codec) {
cdc.RegisterConcrete(&Account{}, EthermintAccountName, nil)
}