keeper

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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

func (k Keeper) CommunityProvision(ctx sdk.Context) (res sdk.Dec)

CommunityProvision returns the EachProvision param

func (Keeper) DoDistribute

func (k Keeper) DoDistribute(ctx sdk.Context)

func (Keeper) EachProvision added in v1.0.0

func (k Keeper) EachProvision(ctx sdk.Context) (res sdk.Dec)

EachProvision returns the EachProvision param

func (Keeper) FirstDist added in v0.0.2

func (k Keeper) FirstDist(ctx sdk.Context, pa types.Params) error

func (Keeper) GetDistInfo

func (k Keeper) GetDistInfo(ctx sdk.Context) (h types.HistoricalDistInfo)

GetDistInfo returns a createPool from its index

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) SetDistInfo

func (k Keeper) SetDistInfo(ctx sdk.Context, h types.HistoricalDistInfo)

SetDistInfo sets the historical distribution info

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) TotalDays added in v1.0.0

func (k Keeper) TotalDays(ctx sdk.Context) (res uint64)

TotalDays returns the TotalDays param

func (Keeper) Unit

func (k Keeper) Unit(ctx sdk.Context) (res string)

Unit returns the EachProvision param

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL