keeper

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

Types

type Keeper

type Keeper struct {
	UpgradePlan collections.Item[upgradetypes.Plan]
	UpgradeTime collections.Item[prototypes.Timestamp]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	authority string,
) Keeper

func (Keeper) CleanTimeUpgrade

func (k Keeper) CleanTimeUpgrade(ctx sdk.Context) error

CleanTimeUpgrade removes the upgrade time and plan from the store

func (Keeper) GetUpgradeTime

func (k Keeper) GetUpgradeTime(ctx sdk.Context) (time.Time, error)

GetUpgradeTime gets the upgrade time from the store

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ScheduleUpgradePlan

func (k Keeper) ScheduleUpgradePlan(ctx sdk.Context, upgradeTime *prototypes.Timestamp, drs uint32) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL