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
- func (m Migrator) Migrate2to3(ctx sdk.Context) error
- func (m Migrator) Migrate3to4(ctx sdk.Context) error
- func (m Migrator) Migrate4to5(ctx sdk.Context) error
- func (m Migrator) Migrate5to6(ctx sdk.Context) error
- func (m Migrator) Migrate6to7(ctx sdk.Context) error
- func (m Migrator) Migrate7to8(ctx sdk.Context) 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 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)
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"
func (Migrator) Migrate4to5 ¶
Migrate4to5 implements store migration from v4 to v5:
- Trigger the version upgrade of the planFS fixation store (so it will call the version upgrade of its timer store).
func (Migrator) Migrate5to6 ¶
Migrate5to6 implements store migration from v5 to v6: -- trigger fixation migration, deleteat and live variables
func (Migrator) Migrate6to7 ¶
Migrate6to7 implements store migration from v6 to v7: -- trigger fixation migration (v4->v5), initialize IsLatest field