keeper

package
v0.0.0-...-21d70e9 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DefaultParamspace = types.ModuleName
)

Default parameter namespace

View Source
const (
	FeatureUpgradeKey = "FEATURE"
)

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 {
	AuthKeeper types.AuthKeeper
	// 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, authKeeper types.AuthKeeper, subspaces ...sdk.Subspace) (k Keeper)

NewKeeper constructs a params keeper

func (Keeper) AddSubspaces

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

func (Keeper) ConvertState

func (k Keeper) ConvertState(ctx sdk.Ctx)

func (Keeper) DAOBurn

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

func (Keeper) DAOTransferFrom

func (k Keeper) DAOTransferFrom(ctx sdk.Ctx, owner, to sdk.Address, amount sdk.BigInt) 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) GetAllParamNameValue

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

func (Keeper) GetAllParamNames

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

func (Keeper) GetCodec

func (k Keeper) GetCodec() *codec.Codec

func (Keeper) GetDAOAccount

func (k Keeper) GetDAOAccount(ctx sdk.Ctx) (stakedPool exported2.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.BigInt

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

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

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 []byte, 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) UpgradeCodec

func (k Keeper) UpgradeCodec(ctx sdk.Ctx)

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