Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddPlan(ctx sdk.Context, planToAdd types.Plan) error
- 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) 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) bool
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) ShowAllPlans(goCtx context.Context, req *types.QueryShowAllPlansRequest) (*types.QueryShowAllPlansResponse, error)
- func (k Keeper) ShowPlanInfo(goCtx context.Context, req *types.QueryShowPlanInfoRequest) (*types.QueryShowPlanInfoResponse, error)
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) AddPlan ¶
AddPlan adds a new plan to the KVStore. The function returns if the added plan is a first version plans
func (Keeper) FindPlan ¶
FindPlan gets a plan from the KVStore. It does nothing to the plan's refCount
func (Keeper) GetAllPlanIndices ¶
GetAllPlanIndices gets from the KVStore all the plans' indices
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) ShowAllPlans ¶ added in v0.7.0
func (k Keeper) ShowAllPlans(goCtx context.Context, req *types.QueryShowAllPlansRequest) (*types.QueryShowAllPlansResponse, error)
func (Keeper) ShowPlanInfo ¶ added in v0.7.0
func (k Keeper) ShowPlanInfo(goCtx context.Context, req *types.QueryShowPlanInfoRequest) (*types.QueryShowPlanInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.