laconicd/types/wire.go

21 lines
452 B
Go
Raw Normal View History

package types
import (
2018-10-24 14:49:37 +00:00
"github.com/cosmos/cosmos-sdk/codec"
sdk "github.com/cosmos/cosmos-sdk/types"
)
2018-10-24 14:49:37 +00:00
var typesCodec = codec.New()
func init() {
2018-10-24 14:49:37 +00:00
RegisterCodec(typesCodec)
}
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) {
sdk.RegisterCodec(cdc)
cdc.RegisterConcrete(&Transaction{}, "types/Transaction", nil)
cdc.RegisterConcrete(&Account{}, "types/Account", nil)
}