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
|
|
|
}
|
|
|
|
|
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) {
|
|
|
|
cdc.RegisterConcrete(&Account{}, "types/Account", nil)
|
2018-08-09 01:06:34 +00:00
|
|
|
}
|