2018-11-28 22:19:22 +00:00
|
|
|
package types
|
|
|
|
|
2019-08-11 14:50:30 +00:00
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2021-04-17 10:00:07 +00:00
|
|
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
|
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
2019-08-11 14:50:30 +00:00
|
|
|
)
|
2018-11-28 22:19:22 +00:00
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
// RegisterInterfaces registers the client interfaces to protobuf Any.
|
|
|
|
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
|
|
|
registry.RegisterImplementations(
|
|
|
|
(*sdk.Tx)(nil),
|
|
|
|
&MsgEthereumTx{},
|
|
|
|
)
|
|
|
|
registry.RegisterImplementations(
|
|
|
|
(*sdk.Msg)(nil),
|
|
|
|
&MsgEthereumTx{},
|
|
|
|
)
|
2018-11-28 22:19:22 +00:00
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
2018-11-28 22:19:22 +00:00
|
|
|
}
|
2020-04-16 15:47:39 +00:00
|
|
|
|
2021-04-17 10:00:07 +00:00
|
|
|
var (
|
|
|
|
// ModuleCdc references the global evm module codec. Note, the codec should
|
|
|
|
// ONLY be used in certain instances of tests and for JSON encoding.
|
|
|
|
//
|
|
|
|
// The actual codec used for serialization should be provided to x/evm and
|
|
|
|
// defined at the application level.
|
|
|
|
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
|
|
|
|
)
|