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)
- type QueryServer
- func (q QueryServer) NewQueryAllCandidatePool(goCtx context.Context, request *types.QueryAllCandidatePoolRequest) *types.QueryAllCandidatePoolResponse
- func (q QueryServer) NewQueryAllIncentivePool(goCtx context.Context, request *types.QueryAllIncentivePoolRequest) *types.QueryAllIncentivePoolResponse
- func (q QueryServer) NewQuerySingleCandidatePool(goCtx context.Context, request *types.QuerySingleCandidatePoolRequest) *types.QuerySingleCandidatePoolResponse
- func (q QueryServer) NewQuerySingleIncentivePool(goCtx context.Context, request *types.QuerySingleIncentivePoolRequest) *types.QuerySingleIncentivePoolResponse
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)
type QueryServer ¶ added in v0.6.7
type QueryServer struct { types.QueryServer // contains filtered or unexported fields }
func NewQueryServer ¶ added in v0.6.7
func NewQueryServer(keeper *Keeper) *QueryServer
func (QueryServer) NewQueryAllCandidatePool ¶ added in v0.6.7
func (q QueryServer) NewQueryAllCandidatePool(goCtx context.Context, request *types.QueryAllCandidatePoolRequest) *types.QueryAllCandidatePoolResponse
func (QueryServer) NewQueryAllIncentivePool ¶ added in v0.6.7
func (q QueryServer) NewQueryAllIncentivePool(goCtx context.Context, request *types.QueryAllIncentivePoolRequest) *types.QueryAllIncentivePoolResponse
func (QueryServer) NewQuerySingleCandidatePool ¶ added in v0.6.7
func (q QueryServer) NewQuerySingleCandidatePool(goCtx context.Context, request *types.QuerySingleCandidatePoolRequest) *types.QuerySingleCandidatePoolResponse
func (QueryServer) NewQuerySingleIncentivePool ¶ added in v0.6.7
func (q QueryServer) NewQuerySingleIncentivePool(goCtx context.Context, request *types.QuerySingleIncentivePoolRequest) *types.QuerySingleIncentivePoolResponse
Source Files ¶
Click to show internal directories.
Click to hide internal directories.