laconicd/x/evm/types/codec.go

37 lines
988 B
Go
Raw Normal View History

2018-11-28 22:19:22 +00:00
package types
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{}
)
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
2021-04-19 07:10:57 +00:00
registry.RegisterInterface("injective.evm.v1alpha1.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-19 07:10:57 +00:00
registry.RegisterInterface("injective.evm.v1alpha1.ExtensionOptionsWeb3Tx", (*ExtensionOptionsWeb3TxI)(nil))
2021-04-18 15:54:18 +00:00
registry.RegisterImplementations(
(*ExtensionOptionsWeb3TxI)(nil),
&ExtensionOptionsWeb3Tx{},
)
2018-11-28 22:19:22 +00:00
}
2021-04-17 10:00:07 +00:00
var (
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)