Documentation ¶
Index ¶
- Constants
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Base
- func (b *Base) DeleteDepositedAmountByUser(ctx sdk.Context, veID uint64)
- func (b *Base) DeleteUserVeIDByAddress(ctx sdk.Context, acc sdk.AccAddress)
- func (b *Base) EscrowPool(ctx sdk.Context) authtypes.AccountI
- func (b *Base) GetCheckpoint(ctx sdk.Context, epoch uint64) types.Checkpoint
- func (b *Base) GetDepositedAmountByUser(ctx sdk.Context, veID uint64) sdk.Int
- func (b *Base) GetDerivedAmountByUser(ctx sdk.Context, veID uint64) sdk.Int
- func (b *Base) GetEpoch(ctx sdk.Context) uint64
- func (b *Base) GetReward(ctx sdk.Context, rewardDenom string) types.Reward
- func (b *Base) GetRewardCheckpoint(ctx sdk.Context, rewardDenom string, epoch uint64) types.Checkpoint
- func (b *Base) GetRewardEpoch(ctx sdk.Context, rewardDenom string) uint64
- func (b *Base) GetTotalDepositedAmount(ctx sdk.Context) sdk.Int
- func (b *Base) GetTotalDerivedAmount(ctx sdk.Context) sdk.Int
- func (b *Base) GetUserCheckpoint(ctx sdk.Context, veID uint64, epoch uint64) types.Checkpoint
- func (b *Base) GetUserEpoch(ctx sdk.Context, veID uint64) uint64
- func (b *Base) GetUserReward(ctx sdk.Context, rewardDenom string, veID uint64) types.UserReward
- func (b *Base) GetUserVeIDByAddress(ctx sdk.Context, acc sdk.AccAddress) uint64
- func (b *Base) IterateRewards(ctx sdk.Context, handler func(reward types.Reward) (stop bool))
- func (b *Base) PoolDenom() string
- func (b *Base) PoolName() string
- func (b *Base) RemainingReward(ctx sdk.Context, rewardDenom string) sdk.Int
- func (b *Base) SetCheckpoint(ctx sdk.Context, epoch uint64, point types.Checkpoint)
- func (b *Base) SetDepositedAmountByUser(ctx sdk.Context, veID uint64, amount sdk.Int)
- func (b *Base) SetDerivedAmountByUser(ctx sdk.Context, veID uint64, amount sdk.Int)
- func (b *Base) SetEpoch(ctx sdk.Context, epoch uint64)
- func (b *Base) SetReward(ctx sdk.Context, rewardDenom string, reward types.Reward)
- func (b *Base) SetRewardCheckpoint(ctx sdk.Context, rewardDenom string, epoch uint64, point types.Checkpoint)
- func (b *Base) SetRewardEpoch(ctx sdk.Context, rewardDenom string, epoch uint64)
- func (b *Base) SetTotalDepositedAmount(ctx sdk.Context, amount sdk.Int)
- func (b *Base) SetTotalDerivedAmount(ctx sdk.Context, amount sdk.Int)
- func (b *Base) SetUserCheckpoint(ctx sdk.Context, veID uint64, epoch uint64, point types.Checkpoint)
- func (b *Base) SetUserEpoch(ctx sdk.Context, veID uint64, epoch uint64)
- func (b *Base) SetUserReward(ctx sdk.Context, rewardDenom string, veID uint64, reward types.UserReward)
- func (b *Base) SetUserVeIDByAddress(ctx sdk.Context, acc sdk.AccAddress, veID uint64)
- type Bribe
- type FeeClaimee
- type Gauge
- func (g Gauge) ClaimReward(ctx sdk.Context, veID uint64, voterKeeper types.VoterKeeper) (err error)
- func (g Gauge) Deposit(ctx sdk.Context, veID uint64, amount sdk.Int) (err error)
- func (g Gauge) DepositFees(ctx sdk.Context, feeClaimee FeeClaimee) (err error)
- func (g Gauge) DepositReward(ctx sdk.Context, sender sdk.AccAddress, rewardDenom string, amount sdk.Int) error
- func (g Gauge) Withdraw(ctx sdk.Context, veID uint64, amount sdk.Int) (err error)
- type Keeper
- func (k Keeper) Bribe(ctx sdk.Context, depoistDenom string) Bribe
- func (k Keeper) CreateGauge(ctx sdk.Context, depoistDenom string)
- func (k Keeper) Gauge(ctx sdk.Context, depoistDenom string) Gauge
- func (k Keeper) GetGauges(ctx sdk.Context) (denoms []string)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) HasGauge(ctx sdk.Context, depositDenom string) bool
- 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) SetGauge(ctx sdk.Context, depositDenom string)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
Constants ¶
View Source
const ( EmptyEpoch = 0 FirstEpoch = 1 )
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
Types ¶
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
func (*Base) DeleteDepositedAmountByUser ¶
func (*Base) DeleteUserVeIDByAddress ¶
func (b *Base) DeleteUserVeIDByAddress(ctx sdk.Context, acc sdk.AccAddress)
func (*Base) GetCheckpoint ¶
func (*Base) GetDepositedAmountByUser ¶
func (*Base) GetDerivedAmountByUser ¶
func (*Base) GetRewardCheckpoint ¶
func (*Base) GetRewardEpoch ¶
func (*Base) GetTotalDepositedAmount ¶
func (*Base) GetUserCheckpoint ¶
func (*Base) GetUserReward ¶
func (*Base) GetUserVeIDByAddress ¶
func (*Base) IterateRewards ¶
func (*Base) RemainingReward ¶
func (*Base) SetCheckpoint ¶
func (*Base) SetDepositedAmountByUser ¶
func (*Base) SetDerivedAmountByUser ¶
func (*Base) SetRewardCheckpoint ¶
func (*Base) SetRewardEpoch ¶
func (*Base) SetTotalDepositedAmount ¶
func (*Base) SetTotalDerivedAmount ¶
func (*Base) SetUserCheckpoint ¶
func (*Base) SetUserReward ¶
func (*Base) SetUserVeIDByAddress ¶
type FeeClaimee ¶
type Gauge ¶
type Gauge struct { Base // contains filtered or unexported fields }
func (Gauge) ClaimReward ¶
func (Gauge) DepositFees ¶
func (g Gauge) DepositFees(ctx sdk.Context, feeClaimee FeeClaimee) (err error)
func (Gauge) DepositReward ¶
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, nftKeeper types.NftKeeper, veKeeper types.VeKeeper, ) *Keeper
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Click to show internal directories.
Click to hide internal directories.