Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddPlan(ctx sdk.Context, planToAdd types.Plan) error
- func (k Keeper) BeginBlock(ctx sdk.Context)
- func (k Keeper) FindPlan(ctx sdk.Context, index string, block uint64) (val types.Plan, found bool)
- func (k Keeper) GetAllPlanIndices(ctx sdk.Context) (val []string)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPlan(ctx sdk.Context, index string) (val types.Plan, found bool)
- func (k Keeper) Info(goCtx context.Context, req *types.QueryInfoRequest) (*types.QueryInfoResponse, error)
- func (k Keeper) List(goCtx context.Context, req *types.QueryListRequest) (*types.QueryListResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PutPlan(ctx sdk.Context, index string, block uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Migrator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
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) BeginBlock ¶ added in v0.10.0
func (Keeper) FindPlan ¶
FindPlan gets a plan with nearest-smaller block (without changing its refcount)
func (Keeper) GetAllPlanIndices ¶
GetAllPlanIndices gets from the KVStore all the plans' indices
func (Keeper) Info ¶
func (k Keeper) Info(goCtx context.Context, req *types.QueryInfoRequest) (*types.QueryInfoResponse, error)
func (Keeper) List ¶
func (k Keeper) List(goCtx context.Context, req *types.QueryListRequest) (*types.QueryListResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
func NewMigrator ¶
func (Migrator) Migrate2to3 ¶
Migrate2to3 implements store migration from v1 to v2:
- Trigger the version upgrade of the planFS fixation store
- Update plan policy
func (Migrator) Migrate3to4 ¶
Migrate3to4 implements store migration from v3 to v4:
- Trigger the version upgrade of the planFS fixation store
- Replace the store prefix from module-name ("plan") to "plan-fs"
Click to show internal directories.
Click to hide internal directories.