keeper

package
v0.6.7-rc6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(cdc codec.BinaryCodec, storeKey sdk.StoreKey, paramSpace paramtypes.Subspace) Keeper

NewKeeper returns a new instance of poolincentive keeper.

func (Keeper) CreateCandidatePool

func (k Keeper) CreateCandidatePool(ctx sdk.Context, pool *types.CandidatePool) error

CreateCandidatePool creates a new candidate pool and stores its information.

func (Keeper) CreateIncentivePool

func (k Keeper) CreateIncentivePool(ctx sdk.Context, pool *types.IncentivePool) error

CreateIncentivePool creates a new incentive pool and stores its information.

func (Keeper) ExportGenesis

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

func (Keeper) FindCandidatePoolById

func (k Keeper) FindCandidatePoolById(ctx sdk.Context, poolId string) (*types.CandidatePool, error)

FindCandidatePoolById searches for candidate pools based on poolId.

func (Keeper) FindCandidatePoolByIdWithIndex

func (k Keeper) FindCandidatePoolByIdWithIndex(ctx sdk.Context, poolId string) (int, *types.CandidatePool, error)

func (Keeper) FindIncentivePoolById

func (k Keeper) FindIncentivePoolById(ctx sdk.Context, poolId string) (*types.IncentivePool, error)

FindIncentivePoolById searches for incentive pools based on poolId.

func (Keeper) FindIncentivePoolByIdWithIndex

func (k Keeper) FindIncentivePoolByIdWithIndex(ctx sdk.Context, poolId string) (int, *types.IncentivePool, error)

func (Keeper) GetAllCandidatePool

func (k Keeper) GetAllCandidatePool(ctx sdk.Context) []*types.CandidatePool

func (Keeper) GetAllIncentivePool

func (k Keeper) GetAllIncentivePool(ctx sdk.Context) []*types.IncentivePool

func (Keeper) GetCandidatePoolInfo

func (k Keeper) GetCandidatePoolInfo(ctx sdk.Context) *types.CandidatePoolInfo

func (Keeper) GetIncentivePoolInfo

func (k Keeper) GetIncentivePoolInfo(ctx sdk.Context) *types.IncentivePoolInfo

func (Keeper) GetParams

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

func (Keeper) GetTotalWeight

func (k Keeper) GetTotalWeight(ctx sdk.Context) uint64

func (Keeper) HandleReplacePoolIncentivesProposal

func (k Keeper) HandleReplacePoolIncentivesProposal(ctx sdk.Context, proposal *types.ReplacePoolIncentivesProposal) error

func (Keeper) HandleUpdatePoolIncentivesProposal

func (k Keeper) HandleUpdatePoolIncentivesProposal(ctx sdk.Context, proposal *types.UpdatePoolIncentivesProposal) error

func (Keeper) InitGenesis

func (k Keeper) InitGenesis(ctx sdk.Context, genesisState *types.GenesisState)

func (Keeper) IsIncentivePool

func (k Keeper) IsIncentivePool(ctx sdk.Context, poolId string) bool

IsIncentivePool searches if the entered poolId is an incentive pool.

func (Keeper) Logger

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

Logger returns logger for poolincentive keeper.

func (Keeper) SetCandidatePoolInfo

func (k Keeper) SetCandidatePoolInfo(ctx sdk.Context, candidatePoolInfo types.CandidatePoolInfo)

func (Keeper) SetIncentivePoolInfo

func (k Keeper) SetIncentivePoolInfo(ctx sdk.Context, incentivePoolInfo types.IncentivePoolInfo)

func (Keeper) SetParams

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

Jump to

Keyboard shortcuts

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