keeper

package
v7.4.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keeper

type Keeper struct {
	*stakingkeeper.Keeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(k *stakingkeeper.Keeper, storeKey storetypes.StoreKey, cdc codec.Codec, ak types.AccountKeeper) *Keeper

NewKeeper creates a new staking Keeper instance

func (Keeper) ConsensusProcess

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

func (Keeper) ConsensusPubKeyUpdate

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

func (Keeper) DeleteConsensusProcess

func (k Keeper) DeleteConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, process types.CProcess)

func (Keeper) DisableValidatorAddress

func (k Keeper) DisableValidatorAddress(ctx sdk.Context, val sdk.ValAddress) error

func (Keeper) EndBlock

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

func (Keeper) ExportGenesis

func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState

func (Keeper) GetAllowance

func (k Keeper) GetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress) *big.Int

GetAllowance returns the allowance of a spender for a delegator.

func (Keeper) GetConsensusProcess

func (k Keeper) GetConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, process types.CProcess) (cryptotypes.PubKey, error)

func (Keeper) GetConsensusPubKey

func (k Keeper) GetConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress) (cryptotypes.PubKey, bool)

func (Keeper) GetValidatorOperator

func (k Keeper) GetValidatorOperator(ctx sdk.Context, val sdk.ValAddress) (sdk.AccAddress, bool)

func (Keeper) GrantAuthorization

func (k Keeper) GrantAuthorization(ctx sdk.Context, grantee, granter sdk.AccAddress, auths []authz.Authorization, exp time.Time) error

func (Keeper) GrantPrivilege

func (Keeper) HasConsensusProcess

func (k Keeper) HasConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress) bool

func (Keeper) HasConsensusPubKey

func (k Keeper) HasConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress) bool

func (Keeper) HasValidatorGrant

func (k Keeper) HasValidatorGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.ValAddress) bool

func (Keeper) HasValidatorOperator

func (k Keeper) HasValidatorOperator(ctx sdk.Context, val sdk.ValAddress) bool

func (Keeper) InitGenesis

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

func (Keeper) IterateAllAllowance

func (k Keeper) IterateAllAllowance(ctx sdk.Context, handler func(valAddr sdk.ValAddress, owner, spender sdk.AccAddress, allowance *big.Int) (stop bool))

IterateAllAllowance iterates over the allowances and performs a callback function.

func (Keeper) IteratorConsensusProcess

func (k Keeper) IteratorConsensusProcess(ctx sdk.Context, process types.CProcess, h func(valAddr sdk.ValAddress, pkBytes []byte))

func (Keeper) IteratorConsensusPubKey

func (k Keeper) IteratorConsensusPubKey(ctx sdk.Context, h func(valAddr sdk.ValAddress, pkBytes []byte) bool)

func (Keeper) RemoveConsensusPubKey

func (k Keeper) RemoveConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress)

func (Keeper) RemoveValidatorConsAddr

func (k Keeper) RemoveValidatorConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress)

func (Keeper) RevokeAuthorization

func (k Keeper) RevokeAuthorization(ctx sdk.Context, grantee, granter sdk.AccAddress) error

func (Keeper) SetAllowance

func (k Keeper) SetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress, shares *big.Int)

SetAllowance sets the allowance of a spender for a delegator. shares must be non-negative.

func (*Keeper) SetAuthzKeeper

func (k *Keeper) SetAuthzKeeper(authzKeeper types.AuthzKeeper) *Keeper

func (Keeper) SetConsensusProcess

func (k Keeper) SetConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, pubKey cryptotypes.PubKey, process types.CProcess) error

func (Keeper) SetConsensusPubKey

func (k Keeper) SetConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress, pubKey cryptotypes.PubKey) error

func (*Keeper) SetSlashingKeeper

func (k *Keeper) SetSlashingKeeper(slashingKeeper types.SlashingKeeper) *Keeper

func (Keeper) SetValidatorConsAddr

func (k Keeper) SetValidatorConsAddr(ctx sdk.Context, newConsAddr sdk.ConsAddress, valOperator sdk.ValAddress)

func (Keeper) UpdateValidatorOperator

func (k Keeper) UpdateValidatorOperator(ctx sdk.Context, val sdk.ValAddress, from sdk.AccAddress)

Jump to

Keyboard shortcuts

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