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"
|
2020-06-13 02:07:51 -07:00
|
|
|
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
|
2019-11-08 06:40:56 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
// RegisterCodec registers concrete types on the Amino codec
|
|
|
|
func RegisterCodec(cdc *codec.Codec) {
|
|
|
|
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{},
|
|
|
|
)
|
|
|
|
}
|