keeper

package
v0.0.0-...-3315d20 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 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 {
	RBankKeeper types.RBankKeeper
	// contains filtered or unexported fields
}

func NewKeeper

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

func (Keeper) AddSelectedRValidator

func (k Keeper) AddSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)

func (Keeper) GetAllCycleSeconds

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

func (Keeper) GetAllDealingRvalidators

func (k Keeper) GetAllDealingRvalidators(ctx sdk.Context) []*types.DealingRValidator

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

func (k Keeper) GetDealingRValidator(ctx sdk.Context, denom, poolAddress string) (*types.DealingRValidator, 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) GetSelectedRValidatorList

func (k Keeper) GetSelectedRValidatorList(ctx sdk.Context) []*types.RValidator

func (Keeper) GetSelectedRValidatorListByDenomPoolAddress

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

func (Keeper) GetShuffleSeconds

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

func (Keeper) HasSelectedRValidator

func (k Keeper) HasSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator) bool

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) ProcessUpdateRValidatorProposal

func (k Keeper) ProcessUpdateRValidatorProposal(ctx sdk.Context, p *types.UpdateRValidatorProposal) error

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

func (Keeper) ProcessUpdateRValidatorReportProposal

func (k Keeper) ProcessUpdateRValidatorReportProposal(ctx sdk.Context, p *types.UpdateRValidatorReportProposal) error

func (Keeper) RemoveDealingRValidator

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

func (Keeper) RemoveSelectedRValidator

func (k Keeper) RemoveSelectedRValidator(ctx sdk.Context, rValidator *types.RValidator)

func (Keeper) SetCycleSeconds

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

func (Keeper) SetDealingRValidator

func (k Keeper) SetDealingRValidator(ctx sdk.Context, rValidator *types.DealingRValidator)

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