Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) CommunityProvision(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) Distribution(c context.Context, req *types.QueryHistoryDistRequest) (*types.QueryHistoryDistResponse, error)
- func (k Keeper) DoDistribute(ctx sdk.Context)
- func (k Keeper) EachProvision(ctx sdk.Context) (res sdk.Dec)
- func (k Keeper) FirstDist(ctx sdk.Context, pa types.Params) error
- func (k Keeper) GetDistInfo(ctx sdk.Context) (h types.HistoricalDistInfo)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- 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) SetDistInfo(ctx sdk.Context, h types.HistoricalDistInfo)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) TotalDays(ctx sdk.Context) (res uint64)
- func (k Keeper) Unit(ctx sdk.Context) (res string)
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 sdk.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, stakingKeeper stakingkeeper.Keeper, feeCollectorName string, ) *Keeper
func (Keeper) CommunityProvision ¶
CommunityProvision returns the EachProvision param
func (Keeper) Distribution ¶
func (k Keeper) Distribution(c context.Context, req *types.QueryHistoryDistRequest) (*types.QueryHistoryDistResponse, error)
func (Keeper) DoDistribute ¶
func (Keeper) EachProvision ¶ added in v1.0.0
EachProvision returns the EachProvision param
func (Keeper) GetDistInfo ¶
func (k Keeper) GetDistInfo(ctx sdk.Context) (h types.HistoricalDistInfo)
GetDistInfo returns a createPool from its index
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetDistInfo ¶
func (k Keeper) SetDistInfo(ctx sdk.Context, h types.HistoricalDistInfo)
SetDistInfo sets the historical distribution info
Click to show internal directories.
Click to hide internal directories.