Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) ClearUpgradePlan(ctx sdk.Context) error
- func (k Keeper) IsSkipHeight(height int64) bool
- func (k Keeper) ReadUpgradeInfoFromDisk() (store.UpgradeInfo, error)
- func (k Keeper) ScheduleUpgrade(ctx sdk.Context, msg *types.MsgUpgradeSoftware) error
- func (k *Keeper) SetUpgradeHandler(name string, upgradeHandler upgradetypes.UpgradeHandler)
- func (k Keeper) UpgradeKeeper() upgradekeeper.Keeper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the bank MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(uk upgradekeeper.Keeper) Keeper
func (Keeper) ClearUpgradePlan ¶
ClearUpgradePlan clears currently schedule upgrade
func (Keeper) IsSkipHeight ¶
IsSkipHeight checks if the given height is part of skipUpgradeHeights
func (Keeper) ReadUpgradeInfoFromDisk ¶
func (k Keeper) ReadUpgradeInfoFromDisk() (store.UpgradeInfo, error)
ReadUpgradeInfoFromDisk returns the name and height of the upgrade which is written to disk by the old binary when panic'ing if there's an error in reading the info, it assumes that the upgrade info is not available
func (Keeper) ScheduleUpgrade ¶
ScheduleUpgrade schedules an upgrade based on the specified plan.
func (*Keeper) SetUpgradeHandler ¶
func (k *Keeper) SetUpgradeHandler(name string, upgradeHandler upgradetypes.UpgradeHandler)
SetUpgradeHandler sets an UpgradeHandler for the upgrade specified by name. This handler will be called when the upgrade with this name is applied. In order for an upgrade with the given name to proceed, a handler for this upgrade must be set even if it is a no-op function.
func (Keeper) UpgradeKeeper ¶
func (k Keeper) UpgradeKeeper() upgradekeeper.Keeper