github.com/InjectiveLabs/sdk-go@v1.53.0/chain/types/codec.go (about) 1 package types 2 3 import ( 4 codectypes "github.com/cosmos/cosmos-sdk/codec/types" 5 "github.com/cosmos/cosmos-sdk/types" 6 "github.com/cosmos/cosmos-sdk/types/tx" 7 authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" 8 ) 9 10 // RegisterInterfaces registers the tendermint concrete client-related 11 // implementations and interfaces. 12 func RegisterInterfaces(registry codectypes.InterfaceRegistry) { 13 registry.RegisterInterface("injective.types.v1beta1.EthAccount", (*types.AccountI)(nil)) 14 15 registry.RegisterImplementations( 16 (*types.AccountI)(nil), 17 &EthAccount{}, 18 ) 19 20 registry.RegisterImplementations( 21 (*authtypes.GenesisAccount)(nil), 22 &EthAccount{}, 23 ) 24 25 registry.RegisterInterface("injective.types.v1beta1.ExtensionOptionsWeb3Tx", (*tx.TxExtensionOptionI)(nil)) 26 registry.RegisterImplementations( 27 (*tx.TxExtensionOptionI)(nil), 28 &ExtensionOptionsWeb3Tx{}, 29 ) 30 }