2018-08-09 01:06:34 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
2018-10-24 14:49:37 +00:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2018-08-09 01:06:34 +00:00
|
|
|
)
|
|
|
|
|
2018-10-24 14:49:37 +00:00
|
|
|
var typesCodec = codec.New()
|
2018-08-09 01:06:34 +00:00
|
|
|
|
|
|
|
func init() {
|
2018-10-24 14:49:37 +00:00
|
|
|
RegisterCodec(typesCodec)
|
2018-08-09 01:06:34 +00:00
|
|
|
}
|
|
|
|
|
2019-11-13 17:00:21 +00:00
|
|
|
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
|
2018-08-09 01:06:34 +00:00
|
|
|
// codec.
|
2018-10-24 14:49:37 +00:00
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
2019-11-13 17:00:21 +00:00
|
|
|
cdc.RegisterConcrete(&Account{}, EthermintAccountName, nil)
|
2018-08-09 01:06:34 +00:00
|
|
|
}
|