Versions in this module Expand all Collapse all v0 v0.1.1 May 14, 2023 Changes in this version + type AppUpgradeConfig struct + ProposalID uint64 + ProtocolDef ProtocolDefinition + func DefaultUpgradeConfig(software string) AppUpgradeConfig + func NewAppUpgradeConfig(proposalID uint64, protocolDef ProtocolDefinition) AppUpgradeConfig + func (auc AppUpgradeConfig) String() string + type ProtocolDefinition struct + Height uint64 + Software string + Threshold sdk.Dec + Version uint64 + func NewProtocolDefinition(version uint64, software string, height uint64, threshold sdk.Dec) ProtocolDefinition + type ProtocolKeeper struct + func NewProtocolKeeper(key sdk.StoreKey) ProtocolKeeper + func (pk ProtocolKeeper) ClearUpgradeConfig(ctx sdk.Context) + func (pk ProtocolKeeper) GetCurrentVersion(ctx sdk.Context) uint64 + func (pk ProtocolKeeper) GetCurrentVersionByStore(store sdk.KVStore) uint64 + func (pk ProtocolKeeper) GetLastFailedVersion(ctx sdk.Context) uint64 + func (pk ProtocolKeeper) GetUpgradeConfig(ctx sdk.Context) (upgradeConfig AppUpgradeConfig, found bool) + func (pk ProtocolKeeper) GetUpgradeConfigByStore(store sdk.KVStore) (upgradeConfig AppUpgradeConfig, found bool) + func (pk ProtocolKeeper) IsValidVersion(ctx sdk.Context, version uint64) bool + func (pk ProtocolKeeper) SetCurrentVersion(ctx sdk.Context, currentVersion uint64) + func (pk ProtocolKeeper) SetLastFailedVersion(ctx sdk.Context, lastFailedVersion uint64) + func (pk ProtocolKeeper) SetUpgradeConfig(ctx sdk.Context, upgradeConfig AppUpgradeConfig) + type VersionKeeper interface + GetCurrentVersionByStore func(store sdk.KVStore) uint64 + GetUpgradeConfigByStore func(store sdk.KVStore) (upgradeConfig AppUpgradeConfig, found bool)