2019-11-08 06:40:56 -08:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/cosmos/cosmos-sdk/codec"
|
2020-05-19 13:17:29 -07:00
|
|
|
"github.com/cosmos/cosmos-sdk/codec/types"
|
2021-12-13 10:48:44 -08:00
|
|
|
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
|
2019-11-08 06:40:56 -08:00
|
|
|
)
|
|
|
|
|
2020-09-07 07:47:12 -07:00
|
|
|
// RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
|
|
|
|
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) {
|
2019-11-08 06:40:56 -08:00
|
|
|
cdc.RegisterConcrete(Plan{}, "cosmos-sdk/Plan", nil)
|
2020-04-14 12:05:14 -07:00
|
|
|
cdc.RegisterConcrete(&SoftwareUpgradeProposal{}, "cosmos-sdk/SoftwareUpgradeProposal", nil)
|
|
|
|
cdc.RegisterConcrete(&CancelSoftwareUpgradeProposal{}, "cosmos-sdk/CancelSoftwareUpgradeProposal", nil)
|
2019-11-08 06:40:56 -08:00
|
|
|
}
|
2020-05-19 13:17:29 -07:00
|
|
|
|
|
|
|
func RegisterInterfaces(registry types.InterfaceRegistry) {
|
|
|
|
registry.RegisterImplementations(
|
2020-06-13 02:07:51 -07:00
|
|
|
(*govtypes.Content)(nil),
|
2020-05-19 13:17:29 -07:00
|
|
|
&SoftwareUpgradeProposal{},
|
|
|
|
&CancelSoftwareUpgradeProposal{},
|
|
|
|
)
|
|
|
|
}
|