keeper

package
v0.0.0-...-3ea6778 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultParamspace = types.ModuleName
)

Default parameter namespace

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) sdk.Querier

creates a querier for staking REST endpoints

Types

type Keeper

type Keeper struct {
	SupplyKeeper types.SupplyKeeper
	// contains filtered or unexported fields
}

Keeper of the global paramstore

func NewKeeper

func NewKeeper(cdc *codec.Codec, key *sdk.KVStoreKey, tkey *sdk.TransientStoreKey, codespace sdk.CodespaceType, supplyKeeper types.SupplyKeeper, subspaces ...sdk.Subspace) (k Keeper)

NewKeeper constructs a params keeper

func (Keeper) AddSubspaces

func (k Keeper) AddSubspaces(subspaces ...sdk.Subspace)

func (Keeper) DAOBurn

func (k Keeper) DAOBurn(ctx sdk.Ctx, owner sdk.Address, amount sdk.Int) sdk.Result

func (Keeper) DAOTransferFrom

func (k Keeper) DAOTransferFrom(ctx sdk.Ctx, owner, to sdk.Address, amount sdk.Int) sdk.Result

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Ctx) types.GenesisState

ExportGenesis returns a GenesisState for a given context and keeper

func (Keeper) GetACL

func (k Keeper) GetACL(ctx sdk.Ctx) (res types.ACL)

Access control list of parameters

func (Keeper) GetAllParamNames

func (k Keeper) GetAllParamNames(ctx sdk.Ctx) (paramNames map[string]bool)

func (Keeper) GetDAOAccount

func (k Keeper) GetDAOAccount(ctx sdk.Ctx) (stakedPool exported.ModuleAccountI)

GetStakedPool returns the staked tokens pool's module account

func (Keeper) GetDAOOwner

func (k Keeper) GetDAOOwner(ctx sdk.Ctx) (res sdk.Address)

func (Keeper) GetDAOTokens

func (k Keeper) GetDAOTokens(ctx sdk.Ctx) sdk.Int

func (Keeper) GetParams

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

Get all parameteras as types.Params

func (Keeper) GetSubspace

func (k Keeper) GetSubspace(s string) (sdk.Subspace, bool)

Get existing substore from keeper

func (Keeper) GetUpgrade

func (k Keeper) GetUpgrade(ctx sdk.Ctx) (res types.Upgrade)

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Ctx, data types.GenesisState) []abci.ValidatorUpdate

InitGenesis - Init store state from genesis data

func (Keeper) Logger

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

Logger returns a module-specific logger.

func (Keeper) ModifyParam

func (k Keeper) ModifyParam(ctx sdk.Ctx, aclKey string, paramValue interface{}, owner sdk.Address) sdk.Result

func (Keeper) SetParams

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

set the params

func (Keeper) Subspace

func (k Keeper) Subspace(s string) sdk.Subspace

Allocate subspace used for keepers

func (Keeper) VerifyACL

func (k Keeper) VerifyACL(ctx sdk.Ctx, paramName string, owner sdk.Address) sdk.Error

Jump to

Keyboard shortcuts

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