Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) CreateCandidatePool(ctx sdk.Context, pool *types.CandidatePool) error
- func (k Keeper) CreateIncentivePool(ctx sdk.Context, pool *types.IncentivePool) error
- func (k Keeper) ExportGenesis(ctx sdk.Context) *types.GenesisState
- func (k Keeper) FindCandidatePoolById(ctx sdk.Context, poolId string) (*types.CandidatePool, error)
- func (k Keeper) FindCandidatePoolByIdWithIndex(ctx sdk.Context, poolId string) (int, *types.CandidatePool, error)
- func (k Keeper) FindIncentivePoolById(ctx sdk.Context, poolId string) (*types.IncentivePool, error)
- func (k Keeper) FindIncentivePoolByIdWithIndex(ctx sdk.Context, poolId string) (int, *types.IncentivePool, error)
- func (k Keeper) GetAllCandidatePool(ctx sdk.Context) []*types.CandidatePool
- func (k Keeper) GetAllIncentivePool(ctx sdk.Context) []*types.IncentivePool
- func (k Keeper) GetCandidatePoolInfo(ctx sdk.Context) *types.CandidatePoolInfo
- func (k Keeper) GetIncentivePoolInfo(ctx sdk.Context) *types.IncentivePoolInfo
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) GetTotalWeight(ctx sdk.Context) uint64
- func (k Keeper) HandleReplacePoolIncentivesProposal(ctx sdk.Context, proposal *types.ReplacePoolIncentivesProposal) error
- func (k Keeper) HandleUpdatePoolIncentivesProposal(ctx sdk.Context, proposal *types.UpdatePoolIncentivesProposal) error
- func (k Keeper) InitGenesis(ctx sdk.Context, genesisState *types.GenesisState)
- func (k Keeper) IsIncentivePool(ctx sdk.Context, poolId string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) SetCandidatePoolInfo(ctx sdk.Context, candidatePoolInfo types.CandidatePoolInfo)
- func (k Keeper) SetIncentivePoolInfo(ctx sdk.Context, incentivePoolInfo types.IncentivePoolInfo)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
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 ¶
CreateCandidatePool creates a new candidate pool and stores its information.
func (Keeper) CreateIncentivePool ¶
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 ¶
FindCandidatePoolById searches for candidate pools based on poolId.
func (Keeper) FindCandidatePoolByIdWithIndex ¶
func (Keeper) FindIncentivePoolById ¶
FindIncentivePoolById searches for incentive pools based on poolId.
func (Keeper) FindIncentivePoolByIdWithIndex ¶
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) HandleReplacePoolIncentivesProposal ¶
func (Keeper) HandleUpdatePoolIncentivesProposal ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, genesisState *types.GenesisState)
func (Keeper) IsIncentivePool ¶
IsIncentivePool searches if the entered poolId is an incentive pool.
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)
Click to show internal directories.
Click to hide internal directories.