keeper

package
v0.0.15-testnet Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey storetypes.StoreKey,
	ps paramtypes.Subspace,
	accountKeeper types.AccountKeeper,
	bankKeeper types.BankKeeper,
	distributionKeeper types.DistributionKeeper,
	stakingKeeper stakingkeeper.Keeper,
	feeCollectorName string,
) *Keeper

func (Keeper) CommunityProvision

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

CommunityProvision returns the CurrentProvision param

func (Keeper) CurrentProvision

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

CurrentProvision returns the CurrentProvision param

func (Keeper) DoDistribute

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

func (Keeper) FirstDist added in v0.0.2

func (k Keeper) FirstDist(ctx sdk.Context) error

func (Keeper) FirstProvision

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

FirstProvision returns the CurrentProvision param

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) HalfCount

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

HalfCount returns the half count param

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) Unit

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

Unit returns the CurrentProvision param

Jump to

Keyboard shortcuts

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