Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) CreateModuleAccount(ctx sdk.Context, name string, permissions ...string)
- func (k Keeper) CreateRewardsModuleAccount(ctx sdk.Context, params types.Params) error
- func (k Keeper) GetAllRewards(ctx sdk.Context) (list []types.Reward)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetDecayedRewardAmount(ctx sdk.Context, totalReward sdk.Coin, series types.Series) (sdk.Coin, error)
- func (k Keeper) GetParams(ctx sdk.Context) (p types.Params)
- func (k Keeper) GetParamsOfType(ctx sdk.Context, p interface{})
- func (k Keeper) GetReward(ctx sdk.Context, recipient string) (val types.Reward, found bool)
- func (k Keeper) GetTotalClaimableAmount(ctx sdk.Context, addr string, totalReward sdk.Coin) (sdk.Coin, error)
- func (k Keeper) IterateRewards(ctx sdk.Context, fn func(validator types.Reward))
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintRewardsModuleAccount(ctx sdk.Context, rp *types.RewardPool, accountName string) error
- func (k Keeper) Params(goCtx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveReward(ctx sdk.Context, recipient string)
- func (k Keeper) Reward(c context.Context, req *types.QueryGetRewardRequest) (*types.QueryGetRewardResponse, error)
- func (k Keeper) RewardsAll(c context.Context, req *types.QueryAllRewardsRequest) (*types.QueryAllRewardsResponse, error)
- func (k Keeper) SetParams(ctx sdk.Context, p types.Params) error
- func (k Keeper) SetReward(ctx sdk.Context, reward types.Reward)
- func (k Keeper) Tasks(c context.Context, req *types.QueryTasksRequest) (*types.QueryTasksResponse, error)
- func (k Keeper) TransferRewardPoolBalance(ctx sdk.Context, rewardPool *types.RewardPool, moduleAcc string) error
Constants ¶
View Source
const (
SERIES_ONE = 1
)
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey storetypes.StoreKey, gk *gitopiakeeper.Keeper, sk stakingkeeper.Keeper, gok govkeeper.Keeper, bk bankkeeper.Keeper, ak authkeeper.AccountKeeper, dk *distrkeeper.Keeper, authority string, ) *Keeper
func (Keeper) BeginBlocker ¶
func (Keeper) CreateModuleAccount ¶
func (Keeper) CreateRewardsModuleAccount ¶
func (Keeper) GetAllRewards ¶
GetAllRewards returns all rewards
func (Keeper) GetAuthority ¶
GetAuthority returns the x/rewards module's authority.
func (Keeper) GetDecayedRewardAmount ¶
func (Keeper) GetParamsOfType ¶
func (Keeper) GetTotalClaimableAmount ¶
func (Keeper) IterateRewards ¶ added in v3.3.0
iterate through the rewards and perform the provided function
func (Keeper) MintRewardsModuleAccount ¶
func (Keeper) Params ¶
func (k Keeper) Params(goCtx context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveReward ¶
RemoveReward removes a rewards from the store
func (Keeper) Reward ¶
func (k Keeper) Reward(c context.Context, req *types.QueryGetRewardRequest) (*types.QueryGetRewardResponse, error)
func (Keeper) RewardsAll ¶
func (k Keeper) RewardsAll(c context.Context, req *types.QueryAllRewardsRequest) (*types.QueryAllRewardsResponse, error)
func (Keeper) Tasks ¶
func (k Keeper) Tasks(c context.Context, req *types.QueryTasksRequest) (*types.QueryTasksResponse, error)
func (Keeper) TransferRewardPoolBalance ¶
Click to show internal directories.
Click to hide internal directories.