keeper

package
v0.0.0-...-299f09a Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

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

func NewKeeper

func NewKeeper(
	cdc codec.Marshaler,
	storeKey,
	memKey sdk.StoreKey,
	vaultStaking types.VaultStaking,
	bankKeeper types.BankKeeper,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) AfterValidatorBeginUnbonding

func (k Keeper) AfterValidatorBeginUnbonding(ctx sdk.Context, consAddr sdk.ConsAddress, valAddr sdk.ValAddress) error

AfterValidatorBeginUnbonding - call hook if registered

func (Keeper) ApplyAndReturnValidatorSetUpdates

func (k Keeper) ApplyAndReturnValidatorSetUpdates(ctx sdk.Context) (updates []abci.ValidatorUpdate, err error)

func (Keeper) BlockChurnInterval

func (k Keeper) BlockChurnInterval(ctx sdk.Context) (res int64)

func (Keeper) BlockValidatorUpdates

func (k Keeper) BlockValidatorUpdates(ctx sdk.Context) []abci.ValidatorUpdate

func (Keeper) CandidateRatio

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

func (Keeper) GetAllCreatePool

func (k Keeper) GetAllCreatePool(ctx sdk.Context) (list []types.CreatePool)

GetAllCreatePool returns all createPool

func (Keeper) GetAllIssueToken

func (k Keeper) GetAllIssueToken(ctx sdk.Context) (list []types.IssueToken)

GetAllIssueToken returns all issueToken

func (Keeper) GetCreatePool

func (k Keeper) GetCreatePool(ctx sdk.Context, index string) (val types.CreatePool, found bool)

GetCreatePool returns a createPool from its index

func (Keeper) GetEligibleValidators

func (k Keeper) GetEligibleValidators(ctx sdk.Context) (stakingtypes.Validators, error)

func (Keeper) GetIssueToken

func (k Keeper) GetIssueToken(ctx sdk.Context, index string) (val types.IssueToken, found bool)

GetIssueToken returns a issueToken from its index

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) vaultmoduletypes.Params

Get all parameteras as types.Params

func (Keeper) Logger

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

func (Keeper) NewUpdate

func (k Keeper) NewUpdate(ctx sdk.Context) []abci.ValidatorUpdate

func (Keeper) Power

func (k Keeper) Power(ctx sdk.Context) (res int64)

func (Keeper) RemoveCreatePool

func (k Keeper) RemoveCreatePool(ctx sdk.Context, index string)

RemoveCreatePool removes a createPool from the store

func (Keeper) SetCreatePool

func (k Keeper) SetCreatePool(ctx sdk.Context, createPool types.CreatePool)

SetCreatePool set a specific createPool in the store from its index

func (Keeper) SetIssueToken

func (k Keeper) SetIssueToken(ctx sdk.Context, issueToken types.IssueToken)

SetIssueToken set a specific issueToken in the store from its index

func (Keeper) SetParams

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

set the params

func (Keeper) StakingInfo

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

func (Keeper) Step

func (k Keeper) Step(ctx sdk.Context) (res int64)

Jump to

Keyboard shortcuts

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