Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AddPlan(ctx sdk.Context, planToAdd types.Plan, modify bool) error
- func (k Keeper) DelPlan(ctx sdk.Context, index string) error
- func (k Keeper) ExportPlans(ctx sdk.Context) fixationtypes.GenesisState
- 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) InitPlans(ctx sdk.Context, gs fixationtypes.GenesisState)
- func (k Keeper) IsEpochStart(ctx sdk.Context) bool
- 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)
- func (k Keeper) ValidatePlanFields(ctx sdk.Context, planToAdd *types.Plan) error
- 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 storetypes.StoreKey, ps paramtypes.Subspace, epochstorageKeeper types.EpochStorageKeeper, specKeeper types.SpecKeeper, fixationStoreKeeper types.FixationStoreKeeper, stakingKeeper types.StakingKeeper, ) *Keeper
func (Keeper) DelPlan ¶
DelPlan deletes a plan, so it is not visible/gettable for new subscriptions (however, existing referenced versions remain intact until not used anymore)
func (Keeper) ExportPlans ¶
func (k Keeper) ExportPlans(ctx sdk.Context) fixationtypes.GenesisState
Export all plans from the KVStore
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) InitPlans ¶
func (k Keeper) InitPlans(ctx sdk.Context, gs fixationtypes.GenesisState)
Init all plans in the KVStore
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)
Click to show internal directories.
Click to hide internal directories.