Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) sdk.Querier
- type Keeper
- func (k Keeper) AddSubspaces(subspaces ...sdk.Subspace)
- func (k Keeper) DAOBurn(ctx sdk.Ctx, owner sdk.Address, amount sdk.Int) sdk.Result
- func (k Keeper) DAOTransferFrom(ctx sdk.Ctx, owner, to sdk.Address, amount sdk.Int) sdk.Result
- func (k Keeper) ExportGenesis(ctx sdk.Ctx) types.GenesisState
- func (k Keeper) GetACL(ctx sdk.Ctx) (res types.ACL)
- func (k Keeper) GetAllParamNames(ctx sdk.Ctx) (paramNames map[string]bool)
- func (k Keeper) GetDAOAccount(ctx sdk.Ctx) (stakedPool exported.ModuleAccountI)
- func (k Keeper) GetDAOOwner(ctx sdk.Ctx) (res sdk.Address)
- func (k Keeper) GetDAOTokens(ctx sdk.Ctx) sdk.Int
- func (k Keeper) GetParams(ctx sdk.Ctx) types.Params
- func (k Keeper) GetSubspace(s string) (sdk.Subspace, bool)
- func (k Keeper) GetUpgrade(ctx sdk.Ctx) (res types.Upgrade)
- func (k Keeper) InitGenesis(ctx sdk.Ctx, data types.GenesisState) []abci.ValidatorUpdate
- func (k Keeper) Logger(ctx sdk.Ctx) log.Logger
- func (k Keeper) ModifyParam(ctx sdk.Ctx, aclKey string, paramValue interface{}, owner sdk.Address) sdk.Result
- func (k Keeper) SetParams(ctx sdk.Ctx, params types.Params)
- func (k Keeper) Subspace(s string) sdk.Subspace
- func (k Keeper) VerifyACL(ctx sdk.Ctx, paramName string, owner sdk.Address) sdk.Error
Constants ¶
View Source
const (
DefaultParamspace = types.ModuleName
)
Default parameter namespace
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
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 (Keeper) DAOTransferFrom ¶
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Ctx) types.GenesisState
ExportGenesis returns a GenesisState for a given context and keeper
func (Keeper) GetAllParamNames ¶
func (Keeper) GetDAOAccount ¶
func (k Keeper) GetDAOAccount(ctx sdk.Ctx) (stakedPool exported.ModuleAccountI)
GetStakedPool returns the staked tokens pool's module account
func (Keeper) GetSubspace ¶
Get existing substore from keeper
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Ctx, data types.GenesisState) []abci.ValidatorUpdate
InitGenesis - Init store state from genesis data
func (Keeper) ModifyParam ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.