keeper

package
v0.0.0-...-039593e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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) Abstain

func (k Keeper) Abstain(ctx sdk.Context, veID uint64)

func (Keeper) CreateGauge

func (k Keeper) CreateGauge(ctx sdk.Context, depoistDenom string)

func (Keeper) DeletePoolWeightedVotesByUser

func (k Keeper) DeletePoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string)

func (Keeper) DeleteTotalVotesByUser

func (k Keeper) DeleteTotalVotesByUser(ctx sdk.Context, veID uint64)

func (Keeper) DepositReward

func (k Keeper) DepositReward(ctx sdk.Context, sender sdk.AccAddress, amount sdk.Int)

func (Keeper) DistributeReward

func (k Keeper) DistributeReward(ctx sdk.Context, poolDenom string)

func (Keeper) EmitReward

func (k Keeper) EmitReward(ctx sdk.Context)

func (Keeper) GetClaimableRewardByGauge

func (k Keeper) GetClaimableRewardByGauge(ctx sdk.Context, poolDenom string) sdk.Int

func (Keeper) GetIndex

func (k Keeper) GetIndex(ctx sdk.Context) sdk.Int

func (Keeper) GetIndexAtLastUpdatedByGauge

func (k Keeper) GetIndexAtLastUpdatedByGauge(ctx sdk.Context, poolDenom string) sdk.Int

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetPoolWeightedVotes

func (k Keeper) GetPoolWeightedVotes(ctx sdk.Context, poolDenom string) sdk.Int

func (Keeper) GetPoolWeightedVotesByUser

func (k Keeper) GetPoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string) sdk.Int

func (Keeper) GetTotalVotes

func (k Keeper) GetTotalVotes(ctx sdk.Context) sdk.Int

func (Keeper) GetTotalVotesByUser

func (k Keeper) GetTotalVotesByUser(ctx sdk.Context, veID uint64) sdk.Int

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) Params

func (Keeper) Poke

func (k Keeper) Poke(ctx sdk.Context, veID uint64)

Poke adjusts votes due to updated voting power of user

func (Keeper) SetClaimableRewardByGauge

func (k Keeper) SetClaimableRewardByGauge(ctx sdk.Context, poolDenom string, claimable sdk.Int)

func (Keeper) SetIndex

func (k Keeper) SetIndex(ctx sdk.Context, index sdk.Int)

func (Keeper) SetIndexAtLastUpdatedByGauge

func (k Keeper) SetIndexAtLastUpdatedByGauge(ctx sdk.Context, poolDenom string, index sdk.Int)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetPoolWeightedVotes

func (k Keeper) SetPoolWeightedVotes(ctx sdk.Context, poolDenom string, votes sdk.Int)

func (Keeper) SetPoolWeightedVotesByUser

func (k Keeper) SetPoolWeightedVotesByUser(ctx sdk.Context, veID uint64, poolDenom string, votes sdk.Int)

func (Keeper) SetTotalVotes

func (k Keeper) SetTotalVotes(ctx sdk.Context, votes sdk.Int)

func (Keeper) SetTotalVotesByUser

func (k Keeper) SetTotalVotesByUser(ctx sdk.Context, veID uint64, votes sdk.Int)

func (Keeper) Vote

func (k Keeper) Vote(ctx sdk.Context, veID uint64, poolWeights map[string]sdk.Dec)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL