Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) ConsensusProcess(ctx sdk.Context)
- func (k Keeper) ConsensusPubKeyUpdate(ctx sdk.Context) []abci.ValidatorUpdate
- func (k Keeper) DeleteConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, process types.CProcess)
- func (k Keeper) DisableValidatorAddress(ctx sdk.Context, val sdk.ValAddress) error
- func (k Keeper) EditConsensusPubKey(goCtx context.Context, msg *types.MsgEditConsensusPubKey) (*types.MsgEditConsensusPubKeyResponse, error)
- func (k Keeper) EndBlock(ctx sdk.Context) []abci.ValidatorUpdate
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) GetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress) *big.Int
- func (k Keeper) GetConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, process types.CProcess) (cryptotypes.PubKey, error)
- func (k Keeper) GetConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress) (cryptotypes.PubKey, bool)
- func (k Keeper) GetValidatorOperator(ctx sdk.Context, val sdk.ValAddress) (sdk.AccAddress, bool)
- func (k Keeper) GrantAuthorization(ctx sdk.Context, grantee, granter sdk.AccAddress, auths []authz.Authorization, ...) error
- func (k Keeper) GrantPrivilege(goCtx context.Context, msg *types.MsgGrantPrivilege) (*types.MsgGrantPrivilegeResponse, error)
- func (k Keeper) HasConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress) bool
- func (k Keeper) HasConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress) bool
- func (k Keeper) HasValidatorGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.ValAddress) bool
- func (k Keeper) HasValidatorOperator(ctx sdk.Context, val sdk.ValAddress) bool
- func (k Keeper) InitGenesis(ctx sdk.Context, data *types.GenesisState) (res []abci.ValidatorUpdate)
- func (k Keeper) IterateAllAllowance(ctx sdk.Context, ...)
- func (k Keeper) IteratorConsensusProcess(ctx sdk.Context, process types.CProcess, ...)
- func (k Keeper) IteratorConsensusPubKey(ctx sdk.Context, h func(valAddr sdk.ValAddress, pkBytes []byte) bool)
- func (k Keeper) RemoveConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress)
- func (k Keeper) RemoveValidatorConsAddr(ctx sdk.Context, consAddr sdk.ConsAddress)
- func (k Keeper) RevokeAuthorization(ctx sdk.Context, grantee, granter sdk.AccAddress) error
- func (k Keeper) SetAllowance(ctx sdk.Context, valAddr sdk.ValAddress, owner, spender sdk.AccAddress, ...)
- func (k *Keeper) SetAuthzKeeper(authzKeeper types.AuthzKeeper) *Keeper
- func (k Keeper) SetConsensusProcess(ctx sdk.Context, valAddr sdk.ValAddress, pubKey cryptotypes.PubKey, ...) error
- func (k Keeper) SetConsensusPubKey(ctx sdk.Context, valAddr sdk.ValAddress, pubKey cryptotypes.PubKey) error
- func (k *Keeper) SetSlashingKeeper(slashingKeeper types.SlashingKeeper) *Keeper
- func (k Keeper) SetValidatorConsAddr(ctx sdk.Context, newConsAddr sdk.ConsAddress, valOperator sdk.ValAddress)
- func (k Keeper) UpdateValidatorOperator(ctx sdk.Context, val sdk.ValAddress, from sdk.AccAddress)
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 (Keeper) ConsensusPubKeyUpdate ¶
func (k Keeper) ConsensusPubKeyUpdate(ctx sdk.Context) []abci.ValidatorUpdate
func (Keeper) DeleteConsensusProcess ¶
func (Keeper) DisableValidatorAddress ¶
func (Keeper) EditConsensusPubKey ¶
func (k Keeper) EditConsensusPubKey(goCtx context.Context, msg *types.MsgEditConsensusPubKey) (*types.MsgEditConsensusPubKeyResponse, error)
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 (k Keeper) GrantPrivilege(goCtx context.Context, msg *types.MsgGrantPrivilege) (*types.MsgGrantPrivilegeResponse, error)
func (Keeper) HasConsensusProcess ¶
func (Keeper) HasConsensusPubKey ¶
func (Keeper) HasValidatorGrant ¶
func (k Keeper) HasValidatorGrant(ctx sdk.Context, grantee sdk.AccAddress, granter sdk.ValAddress) bool
func (Keeper) HasValidatorOperator ¶
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 (Keeper) IteratorConsensusPubKey ¶
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 (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)
Click to show internal directories.
Click to hide internal directories.