32 lines
909 B
Go
32 lines
909 B
Go
package types
|
|
|
|
import (
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
|
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
"github.com/cosmos/cosmos-sdk/types/msgservice"
|
|
)
|
|
|
|
// 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{},
|
|
)
|
|
|
|
msgservice.RegisterMsgServiceDesc(registry, &_Msg_serviceDesc)
|
|
}
|
|
|
|
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())
|
|
)
|