forked from cerc-io/laconicd-deprecated
22 lines
522 B
Go
22 lines
522 B
Go
|
package types
|
||
|
|
||
|
import (
|
||
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
||
|
"github.com/cosmos/cosmos-sdk/wire"
|
||
|
)
|
||
|
|
||
|
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)
|
||
|
codec.RegisterConcrete(&EthSignature{}, "types/EthSignature", nil)
|
||
|
codec.RegisterConcrete(TxData{}, "types/TxData", nil)
|
||
|
codec.RegisterConcrete(Transaction{}, "types/Transaction", nil)
|
||
|
}
|