Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AfterEpochEnd(ctx sdk.Context, identifier string, epochNumber int64)
- func (k Keeper) BeforeEpochStart(ctx sdk.Context, identifier string, epochNumber int64)
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) EpochInfo(goCtx context.Context, req *types.QueryGetEpochInfoRequest) (*types.QueryGetEpochInfoResponse, error)
- func (k Keeper) EpochInfoAll(goCtx context.Context, req *types.QueryAllEpochInfoRequest) (*types.QueryAllEpochInfoResponse, error)
- func (k Keeper) GetAllEpochInfo(ctx sdk.Context) (list []types.EpochInfo)
- func (k Keeper) GetEpochInfo(ctx sdk.Context, identifier string) (val types.EpochInfo, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveEpochInfo(ctx sdk.Context, identifier string)
- func (k *Keeper) RemoveHooks() *Keeper
- func (k Keeper) SetEpochInfo(ctx sdk.Context, epochInfo types.EpochInfo)
- func (k *Keeper) SetHooks(eh types.EpochHooks) *Keeper
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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, ) *Keeper
func (Keeper) AfterEpochEnd ¶
AfterEpochEnd epoch hook
func (Keeper) BeforeEpochStart ¶
BeforeEpochStart epoch hook
func (Keeper) BeginBlocker ¶
BeginBlocker of epochs module.
func (Keeper) EndBlocker ¶ added in v0.1.0
func (Keeper) EpochInfo ¶
func (k Keeper) EpochInfo(goCtx context.Context, req *types.QueryGetEpochInfoRequest) (*types.QueryGetEpochInfoResponse, error)
func (Keeper) EpochInfoAll ¶
func (k Keeper) EpochInfoAll(goCtx context.Context, req *types.QueryAllEpochInfoRequest) (*types.QueryAllEpochInfoResponse, error)
func (Keeper) GetAllEpochInfo ¶
GetAllEpochInfo returns all epochInfo
func (Keeper) GetEpochInfo ¶
func (k Keeper) GetEpochInfo( ctx sdk.Context, identifier string, ) (val types.EpochInfo, found bool)
GetEpochInfo returns a epochInfo from its index
func (Keeper) IterateEpochInfo ¶
func (k Keeper) IterateEpochInfo(ctx sdk.Context, fn func(index int64, epochInfo types.EpochInfo) (stop bool))
Iterate though epochs
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveEpochInfo ¶
RemoveEpochInfo removes a epochInfo from the store
func (*Keeper) RemoveHooks ¶ added in v0.1.0
Remove all hooks. Only used for testing.
func (Keeper) SetEpochInfo ¶
SetEpochInfo set a specific epochInfo in the store from its index
Click to show internal directories.
Click to hide internal directories.