laconicd/x/evm/types/codec.go

35 lines
852 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{},
)
registry.RegisterInterface(
"ethermint.evm.v1alpha1.ExtensionOptionsEthereumTx",
2021-04-18 15:54:18 +00:00
(*ExtensionOptionsEthereumTxI)(nil),
&ExtensionOptionsEthereumTx{},
2021-04-17 10:00:07 +00:00
)
registry.RegisterInterface(
"ethermint.evm.v1alpha1.ExtensionOptionsWeb3Tx",
2021-04-18 15:54:18 +00:00
(*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())
)