keepers

package
v0.0.0-...-962cb54 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2020 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryParameters = "parameters"
)

Variables

View Source
var (
	StateKey = []byte{0x01}
)

Functions

func NewQuerier

func NewQuerier(keeper Keeper) sdk.Querier

creates a querier for incentive REST endpoints

Types

type Keeper

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

func NewKeeper

func NewKeeper(cdc *codec.Codec, key sdk.StoreKey, paramSubspace params.Subspace,
	bk types.BankKeeper, supplyKeeper authtypes.SupplyKeeper, feeCollectorName string) Keeper

func (Keeper) AddNewPlan

func (k Keeper) AddNewPlan(ctx sdk.Context, plan types.Plan) sdk.Error

func (Keeper) GetParams

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

func (Keeper) GetState

func (k Keeper) GetState(ctx sdk.Context) (state types.State)

func (Keeper) HasCoins

func (k Keeper) HasCoins(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coins) bool

func (Keeper) SendCoinsFromAccountToModule

func (k Keeper) SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) sdk.Error

func (Keeper) SetParams

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

func (Keeper) SetState

func (k Keeper) SetState(ctx sdk.Context, state types.State) sdk.Error

Jump to

Keyboard shortcuts

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