Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) Abstain(ctx sdk.Context, veID uint64)
- func (k Keeper) CreateGauge(ctx sdk.Context, depoistDenom string)
- func (k Keeper) DeletePoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string)
- func (k Keeper) DeleteTotalVotesByUser(ctx sdk.Context, veID uint64)
- func (k Keeper) DepositReward(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Int)
- func (k Keeper) DistributeReward(ctx sdk.Context, poolDenom string)
- func (k Keeper) EmitReward(ctx sdk.Context)
- func (k Keeper) GetClaimableRewardByGauge(ctx sdk.Context, poolDenom string) sdk.Int
- func (k Keeper) GetIndex(ctx sdk.Context) sdk.Int
- func (k Keeper) GetIndexAtLastUpdatedByGauge(ctx sdk.Context, poolDenom string) sdk.Int
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetPoolWeightedVotes(ctx sdk.Context, poolDenom string) sdk.Int
- func (k Keeper) GetPoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string) sdk.Int
- func (k Keeper) GetTotalVotes(ctx sdk.Context) sdk.Int
- func (k Keeper) GetTotalVotesByUser(ctx sdk.Context, veID uint64) sdk.Int
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) Poke(ctx sdk.Context, veID uint64)
- func (k Keeper) SetClaimableRewardByGauge(ctx sdk.Context, poolDenom string, claimable sdk.Int)
- func (k Keeper) SetIndex(ctx sdk.Context, index sdk.Int)
- func (k Keeper) SetIndexAtLastUpdatedByGauge(ctx sdk.Context, poolDenom string, index sdk.Int)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetPoolWeightedVotes(ctx sdk.Context, poolDenom string, votes sdk.Int)
- func (k Keeper) SetPoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string, votes sdk.Int)
- func (k Keeper) SetTotalVotes(ctx sdk.Context, votes sdk.Int)
- func (k Keeper) SetTotalVotesByUser(ctx sdk.Context, veID uint64, votes sdk.Int)
- func (k Keeper) Vote(ctx sdk.Context, veID uint64, poolWeights map[string]sdk.Dec)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, accountKeeper types.AccountKeeper, bankKeeper types.BankKeeper, veKeeper types.Vekeeper, gaugeKeeper types.GaugeKeeper, ) *Keeper
func (Keeper) DeletePoolWeightedVotesByUser ¶
func (Keeper) DeleteTotalVotesByUser ¶
func (Keeper) DepositReward ¶
func (Keeper) DistributeReward ¶
func (Keeper) EmitReward ¶
func (Keeper) GetClaimableRewardByGauge ¶
func (Keeper) GetIndexAtLastUpdatedByGauge ¶
func (Keeper) GetPoolWeightedVotes ¶
func (Keeper) GetPoolWeightedVotesByUser ¶
func (Keeper) GetTotalVotesByUser ¶
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetClaimableRewardByGauge ¶
func (Keeper) SetIndexAtLastUpdatedByGauge ¶
func (Keeper) SetPoolWeightedVotes ¶
func (Keeper) SetPoolWeightedVotesByUser ¶
func (Keeper) SetTotalVotesByUser ¶
Click to show internal directories.
Click to hide internal directories.