keeper

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,
) *Keeper

func (Keeper) AddPlan

func (k Keeper) AddPlan(ctx sdk.Context, planToAdd types.Plan) error

AddPlan adds a new plan to the KVStore. The function returns if the added plan is a first version plans

func (Keeper) FindPlan

func (k Keeper) FindPlan(ctx sdk.Context, index string, block uint64) (val types.Plan, found bool)

FindPlan gets a plan from the KVStore. It does nothing to the plan's refCount

func (Keeper) GetAllPlanIndices

func (k Keeper) GetAllPlanIndices(ctx sdk.Context) (val []string)

GetAllPlanIndices gets from the KVStore all the plans' indices

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetPlan

func (k Keeper) GetPlan(ctx sdk.Context, index string) (val types.Plan, found bool)

GetPlan gets a plan from the KVStore. It increases the plan's refCount by 1

func (Keeper) Info

func (Keeper) List

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) PutPlan

func (k Keeper) PutPlan(ctx sdk.Context, index string, block uint64) bool

PutPlan gets a plan from the KVStore. It decreases the plan's refCount by 1

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

Jump to

Keyboard shortcuts

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