keeper

package
v0.0.0-...-b0ad14f Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2023 License: Apache-2.0 Imports: 10 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 {
	ZBankKeeper types.ZBankKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,
	sudoKeeper types.SudoKeeper,
	zBankKeeper types.ZBankKeeper,
	ledgerKeeper types.LedgerKeeper,
) *Keeper

func (Keeper) AddSelectedZValidator

func (k Keeper) AddSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)

func (Keeper) GetAllCycleSeconds

func (k Keeper) GetAllCycleSeconds(ctx sdk.Context) []*types.CycleSeconds

func (Keeper) GetAllDealingZvalidators

func (k Keeper) GetAllDealingZvalidators(ctx sdk.Context) []*types.DealingZValidator

func (Keeper) GetAllLatestDealedCycle

func (k Keeper) GetAllLatestDealedCycle(ctx sdk.Context) []*types.Cycle

func (Keeper) GetAllLatestVotedCycle

func (k Keeper) GetAllLatestVotedCycle(ctx sdk.Context) []*types.Cycle

func (Keeper) GetAllShuffleSeconds

func (k Keeper) GetAllShuffleSeconds(ctx sdk.Context) []*types.ShuffleSeconds

func (Keeper) GetCycleSeconds

func (k Keeper) GetCycleSeconds(ctx sdk.Context, denom string) *types.CycleSeconds

func (Keeper) GetDealingZValidator

func (k Keeper) GetDealingZValidator(ctx sdk.Context, denom, poolAddress string) (*types.DealingZValidator, bool)

func (Keeper) GetLatestDealedCycle

func (k Keeper) GetLatestDealedCycle(ctx sdk.Context, denom, poolAddress string) *types.Cycle

func (Keeper) GetLatestVotedCycle

func (k Keeper) GetLatestVotedCycle(ctx sdk.Context, denom, poolAddress string) *types.Cycle

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetSelectedZValidatorList

func (k Keeper) GetSelectedZValidatorList(ctx sdk.Context) []*types.ZValidator

func (Keeper) GetSelectedZValidatorListByDenomPoolAddress

func (k Keeper) GetSelectedZValidatorListByDenomPoolAddress(ctx sdk.Context, denom, poolAddress string) []*types.ZValidator

func (Keeper) GetShuffleSeconds

func (k Keeper) GetShuffleSeconds(ctx sdk.Context, denom string) *types.ShuffleSeconds

func (Keeper) HasSelectedZValidator

func (k Keeper) HasSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator) bool

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) ProcessUpdateZValidatorProposal

func (k Keeper) ProcessUpdateZValidatorProposal(ctx sdk.Context, p *types.UpdateZValidatorProposal) error

old val must exist && new val may exist or not exist in selectedZValidator pool will redelegate all delegation from old to new val

func (Keeper) ProcessUpdateZValidatorReportProposal

func (k Keeper) ProcessUpdateZValidatorReportProposal(ctx sdk.Context, p *types.UpdateZValidatorReportProposal) error

func (Keeper) RemoveDealingZValidator

func (k Keeper) RemoveDealingZValidator(ctx sdk.Context, denom, poolAddress string)

func (Keeper) RemoveSelectedZValidator

func (k Keeper) RemoveSelectedZValidator(ctx sdk.Context, zValidator *types.ZValidator)

func (Keeper) SetCycleSeconds

func (k Keeper) SetCycleSeconds(ctx sdk.Context, cycleSeconds *types.CycleSeconds)

func (Keeper) SetDealingZValidator

func (k Keeper) SetDealingZValidator(ctx sdk.Context, zValidator *types.DealingZValidator)

func (Keeper) SetLatestDealedCycle

func (k Keeper) SetLatestDealedCycle(ctx sdk.Context, cycle *types.Cycle)

func (Keeper) SetLatestVotedCycle

func (k Keeper) SetLatestVotedCycle(ctx sdk.Context, cycle *types.Cycle)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetShuffleSeconds

func (k Keeper) SetShuffleSeconds(ctx sdk.Context, shuffleSeconds *types.ShuffleSeconds)

Jump to

Keyboard shortcuts

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