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"
|
2021-04-18 15:54:18 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type (
|
|
|
|
ExtensionOptionsEthereumTxI interface{}
|
|
|
|
ExtensionOptionsWeb3TxI interface{}
|
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(
|
2021-04-18 15:54:18 +00:00
|
|
|
(*sdk.Msg)(nil),
|
2021-04-17 10:00:07 +00:00
|
|
|
&MsgEthereumTx{},
|
|
|
|
)
|
2021-04-18 15:54:18 +00:00
|
|
|
|
|
|
|
registry.RegisterInterface("injective.evm.v1beta1.ExtensionOptionsEthereumTx", (*ExtensionOptionsEthereumTxI)(nil))
|
2021-04-17 10:00:07 +00:00
|
|
|
registry.RegisterImplementations(
|
2021-04-18 15:54:18 +00:00
|
|
|
(*ExtensionOptionsEthereumTxI)(nil),
|
|
|
|
&ExtensionOptionsEthereumTx{},
|
2021-04-17 10:00:07 +00:00
|
|
|
)
|
2018-11-28 22:19:22 +00:00
|
|
|
|
2021-04-18 15:54:18 +00:00
|
|
|
registry.RegisterInterface("injective.evm.v1beta1.ExtensionOptionsWeb3Tx", (*ExtensionOptionsWeb3TxI)(nil))
|
|
|
|
registry.RegisterImplementations(
|
|
|
|
(*ExtensionOptionsWeb3TxI)(nil),
|
|
|
|
&ExtensionOptionsWeb3Tx{},
|
|
|
|
)
|
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 = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
|
|
|
|
)
|