Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCodec(cdc *codec.Codec)
- type Keeper
- func (keeper Keeper) ClearUpgradeConfig(ctx sdk.Context)
- func (keeper Keeper) GetCurrentProtocolVersion(ctx sdk.Context) uint64
- func (keeper Keeper) GetCurrentProtocolVersionByStore(kvStore sdk.KVStore) uint64
- func (keeper Keeper) GetLastFailureVersion(ctx sdk.Context) uint64
- func (keeper Keeper) GetUpgradeConfig(ctx sdk.Context) (upgradeConfig UpgradeConfig, found bool)
- func (keeper Keeper) GetUpgradeConfigByStore(kvStore sdk.KVStore) (upgradeConfig UpgradeConfig, found bool)
- func (Keeper Keeper) IsValidProtocolVersion(ctx sdk.Context, protocolVersion uint64) bool
- func (keeper Keeper) SetCurrentProtocolVersion(ctx sdk.Context, currentProtocolVersion uint64)
- func (keeper Keeper) SetLastFailureVersion(ctx sdk.Context, lastFailureVersion uint64)
- func (keeper Keeper) SetUpgradeConfig(ctx sdk.Context, upgradeConfig UpgradeConfig)
- type UpgradeConfig
Constants ¶
View Source
const AppVersionTag = "app_version"
Variables ¶
View Source
var ( CurrentProtocolVersionKey = []byte("currentProtocolVersionKey") UpgradeConfigkey = []byte("upgradeConfigkey") LastFailureVersionKey = []byte("lastFailureVersionKey") )
Functions ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func (Keeper) ClearUpgradeConfig ¶
func (Keeper) GetCurrentProtocolVersion ¶
func (Keeper) GetCurrentProtocolVersionByStore ¶
func (Keeper) GetLastFailureVersion ¶
func (Keeper) GetUpgradeConfig ¶
func (keeper Keeper) GetUpgradeConfig(ctx sdk.Context) (upgradeConfig UpgradeConfig, found bool)
func (Keeper) GetUpgradeConfigByStore ¶
func (keeper Keeper) GetUpgradeConfigByStore(kvStore sdk.KVStore) (upgradeConfig UpgradeConfig, found bool)
func (Keeper) IsValidProtocolVersion ¶
func (Keeper) SetCurrentProtocolVersion ¶
func (Keeper) SetLastFailureVersion ¶
func (Keeper) SetUpgradeConfig ¶
func (keeper Keeper) SetUpgradeConfig(ctx sdk.Context, upgradeConfig UpgradeConfig)
type UpgradeConfig ¶
type UpgradeConfig struct {
ProposalID uint64
Definition common.ProtocolDefinition
}
Click to show internal directories.
Click to hide internal directories.