2020-03-25 08:20:36 -07:00
|
|
|
package keyring
|
2018-06-28 17:54:47 -07:00
|
|
|
|
|
|
|
import (
|
2019-06-05 16:26:17 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2020-12-02 05:50:50 -08:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/legacy"
|
2020-04-08 02:38:28 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/crypto/hd"
|
2018-06-28 17:54:47 -07:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
2020-12-02 05:50:50 -08:00
|
|
|
RegisterLegacyAminoCodec(legacy.Cdc)
|
2019-12-12 13:52:24 -08:00
|
|
|
}
|
|
|
|
|
2020-09-07 07:47:12 -07:00
|
|
|
// RegisterLegacyAminoCodec registers concrete types and interfaces on the given codec.
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
2021-09-20 05:02:15 -07:00
|
|
|
cdc.RegisterInterface((*LegacyInfo)(nil), nil)
|
2019-02-11 09:02:47 -08:00
|
|
|
cdc.RegisterConcrete(hd.BIP44Params{}, "crypto/keys/hd/BIP44Params", nil)
|
2021-09-20 05:02:15 -07:00
|
|
|
cdc.RegisterConcrete(legacyLocalInfo{}, "crypto/keys/localInfo", nil)
|
|
|
|
cdc.RegisterConcrete(legacyLedgerInfo{}, "crypto/keys/ledgerInfo", nil)
|
|
|
|
cdc.RegisterConcrete(legacyOfflineInfo{}, "crypto/keys/offlineInfo", nil)
|
|
|
|
cdc.RegisterConcrete(LegacyMultiInfo{}, "crypto/keys/multiInfo", nil)
|
2018-06-28 17:54:47 -07:00
|
|
|
}
|