2018-08-09 01:06:34 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/wire"
|
2018-10-04 20:12:13 +00:00
|
|
|
"github.com/cosmos/cosmos-sdk/x/auth"
|
2018-08-09 01:06:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var typesCodec = wire.NewCodec()
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
RegisterWire(typesCodec)
|
|
|
|
}
|
|
|
|
|
|
|
|
// RegisterWire registers all the necessary types with amino for the given
|
|
|
|
// codec.
|
|
|
|
func RegisterWire(codec *wire.Codec) {
|
|
|
|
sdk.RegisterWire(codec)
|
2018-10-04 20:12:13 +00:00
|
|
|
codec.RegisterInterface((*auth.Account)(nil), nil)
|
2018-08-31 18:26:45 +00:00
|
|
|
codec.RegisterConcrete(&Transaction{}, "types/Transaction", nil)
|
2018-08-24 18:56:43 +00:00
|
|
|
codec.RegisterConcrete(&Account{}, "types/Account", nil)
|
2018-08-09 01:06:34 +00:00
|
|
|
}
|