Skip to content

Commit

Permalink
ExtensionOptionsWeb3Tx moved
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim committed Mar 18, 2021
1 parent dee4071 commit 12941ee
Show file tree
Hide file tree
Showing 3 changed files with 310 additions and 7 deletions.
7 changes: 0 additions & 7 deletions chain/evm/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (

type (
ExtensionOptionsEthereumTxI interface{}
ExtensionOptionsWeb3TxI interface{}
)

// RegisterInterfaces registers the client interfaces to protobuf Any.
Expand All @@ -23,12 +22,6 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*ExtensionOptionsEthereumTxI)(nil),
&ExtensionOptionsEthereumTx{},
)

registry.RegisterInterface("injective.evm.v1beta1.ExtensionOptionsWeb3Tx", (*ExtensionOptionsWeb3TxI)(nil))
registry.RegisterImplementations(
(*ExtensionOptionsWeb3TxI)(nil),
&ExtensionOptionsWeb3Tx{},
)
}

var (
Expand Down
10 changes: 10 additions & 0 deletions chain/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import (
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)

type (
ExtensionOptionsWeb3TxI interface{}
)

// RegisterInterfaces registers the tendermint concrete client-related
// implementations and interfaces.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
Expand All @@ -19,4 +23,10 @@ func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
(*authtypes.GenesisAccount)(nil),
&EthAccount{},
)

registry.RegisterInterface("injective.types.v1beta1.ExtensionOptionsWeb3Tx", (*ExtensionOptionsWeb3TxI)(nil))
registry.RegisterImplementations(
(*ExtensionOptionsWeb3TxI)(nil),
&ExtensionOptionsWeb3Tx{},
)
}
300 changes: 300 additions & 0 deletions chain/types/tx_ext.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 12941ee

Please sign in to comment.