laconicd-deprecated/types/codec.go

26 lines
661 B
Go
Raw Permalink Normal View History

package types
import (
2021-04-17 10:00:07 +00:00
codectypes "github.com/cosmos/cosmos-sdk/codec/types"
2022-06-02 07:53:03 +00:00
"github.com/cosmos/cosmos-sdk/types/tx"
2021-04-17 10:00:07 +00:00
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)
2021-04-17 10:00:07 +00:00
// RegisterInterfaces registers the tendermint concrete client-related
// implementations and interfaces.
func RegisterInterfaces(registry codectypes.InterfaceRegistry) {
registry.RegisterImplementations(
(*authtypes.AccountI)(nil),
&EthAccount{},
)
registry.RegisterImplementations(
(*authtypes.GenesisAccount)(nil),
&EthAccount{},
)
2022-10-10 10:38:33 +00:00
registry.RegisterImplementations(
2022-06-02 07:53:03 +00:00
(*tx.TxExtensionOptionI)(nil),
&ExtensionOptionsWeb3Tx{},
2022-10-10 10:38:33 +00:00
&ExtensionOptionDynamicFeeTx{},
2022-06-02 07:53:03 +00:00
)
}