117342b1b3
* evm, rpc: access lists, JSON-RPC and transaction updates (wip) * ante, evm, rpc: update signature verification * evm: msg server and tests updates * evm: tests (wip) * evm: fix cdc and params * evm: cleanup state transition * fix nil cases * lint
35 lines
852 B
Go
35 lines
852 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"
|
|
)
|
|
|
|
type (
|
|
ExtensionOptionsEthereumTxI interface{}
|
|
ExtensionOptionsWeb3TxI interface{}
|
|
)
|
|
|
|
// RegisterInterfaces registers the client interfaces to protobuf Any.
|
|
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
|
|
registry.RegisterImplementations(
|
|
(*sdk.Msg)(nil),
|
|
&MsgEthereumTx{},
|
|
)
|
|
registry.RegisterInterface(
|
|
"ethermint.evm.v1alpha1.ExtensionOptionsEthereumTx",
|
|
(*ExtensionOptionsEthereumTxI)(nil),
|
|
&ExtensionOptionsEthereumTx{},
|
|
)
|
|
registry.RegisterInterface(
|
|
"ethermint.evm.v1alpha1.ExtensionOptionsWeb3Tx",
|
|
(*ExtensionOptionsWeb3TxI)(nil),
|
|
&ExtensionOptionsWeb3Tx{},
|
|
)
|
|
}
|
|
|
|
var (
|
|
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
|
|
)
|