Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) BeginBlocker(ctx sdk.Context)
- func (k Keeper) EndBlocker(ctx sdk.Context)
- func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
- func (k Keeper) GetAPY(ctx sdk.Context) sdk.Dec
- func (k Keeper) GetBalanceUsdValue(ctx sdk.Context, balance sdk.Coin, tokenPrice auctiontypes.TokenPrice) sdk.Dec
- func (k Keeper) GetEmission(ctx sdk.Context, remainingRewardsSupply math.Int) sdk.Coins
- func (k Keeper) GetFeeBalance(ctx sdk.Context, denom string) (sdk.Coin, bool)
- func (k Keeper) GetFeesAccount(ctx sdk.Context) authtypes.ModuleAccountI
- func (k Keeper) GetLastRewardSupplyPeak(ctx sdk.Context) math.Int
- func (k Keeper) GetParamSetIfExists(ctx sdk.Context) types.Params
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) QueryAPY(c context.Context, _ *types.QueryAPYRequest) (*types.QueryAPYResponse, error)
- func (k Keeper) QueryFeeTokenBalance(c context.Context, req *types.QueryFeeTokenBalanceRequest) (*types.QueryFeeTokenBalanceResponse, error)
- func (k Keeper) QueryFeeTokenBalances(c context.Context, _ *types.QueryFeeTokenBalancesRequest) (*types.QueryFeeTokenBalancesResponse, error)
- func (k Keeper) QueryLastRewardSupplyPeak(c context.Context, req *types.QueryLastRewardSupplyPeakRequest) (*types.QueryLastRewardSupplyPeakResponse, error)
- func (k Keeper) QueryModuleAccounts(c context.Context, req *types.QueryModuleAccountsRequest) (*types.QueryModuleAccountsResponse, error)
- func (k Keeper) QueryParams(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) SetLastRewardSupplyPeak(ctx sdk.Context, amount math.Int)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- type Migrator
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 storetypes.StoreKey, paramSpace paramtypes.Subspace, accountKeeper cellarfeestypes.AccountKeeper, bankKeeper cellarfeestypes.BankKeeper, mintKeeper cellarfeestypes.MintKeeper, corkKeeper cellarfeestypes.CorkKeeper, auctionKeeper cellarfeestypes.AuctionKeeper, ) Keeper
func (Keeper) BeginBlocker ¶
BeginBlocker emits rewards each block they are available by sending them to the distribution module's fee collector account. Emissions are a constant value based on the last peak supply of distributable fees so that the reward supply will decrease linearly until exhausted.
func (Keeper) EndBlocker ¶
EndBlocker is called at the end of every block
func (Keeper) ExportGenesis ¶
func (k Keeper) ExportGenesis(ctx sdk.Context) types.GenesisState
ExportGenesis returns the module's exported genesis.
func (Keeper) GetBalanceUsdValue ¶
func (k Keeper) GetBalanceUsdValue(ctx sdk.Context, balance sdk.Coin, tokenPrice auctiontypes.TokenPrice) sdk.Dec
func (Keeper) GetEmission ¶
func (Keeper) GetFeeBalance ¶
func (Keeper) GetFeesAccount ¶
func (k Keeper) GetFeesAccount(ctx sdk.Context) authtypes.ModuleAccountI
Getter for module account that holds the fee pool funds
func (Keeper) GetLastRewardSupplyPeak ¶
func (Keeper) GetParamSetIfExists ¶
func (Keeper) InitGenesis ¶
func (k Keeper) InitGenesis(ctx sdk.Context, gs types.GenesisState)
InitGenesis initializes the module's state from a provided genesis state.
func (Keeper) QueryAPY ¶
func (k Keeper) QueryAPY(c context.Context, _ *types.QueryAPYRequest) (*types.QueryAPYResponse, error)
func (Keeper) QueryFeeTokenBalance ¶
func (k Keeper) QueryFeeTokenBalance(c context.Context, req *types.QueryFeeTokenBalanceRequest) (*types.QueryFeeTokenBalanceResponse, error)
func (Keeper) QueryFeeTokenBalances ¶
func (k Keeper) QueryFeeTokenBalances(c context.Context, _ *types.QueryFeeTokenBalancesRequest) (*types.QueryFeeTokenBalancesResponse, error)
func (Keeper) QueryLastRewardSupplyPeak ¶
func (k Keeper) QueryLastRewardSupplyPeak(c context.Context, req *types.QueryLastRewardSupplyPeakRequest) (*types.QueryLastRewardSupplyPeakResponse, error)
func (Keeper) QueryModuleAccounts ¶
func (k Keeper) QueryModuleAccounts(c context.Context, req *types.QueryModuleAccountsRequest) (*types.QueryModuleAccountsResponse, error)
func (Keeper) QueryParams ¶
func (k Keeper) QueryParams(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) SetLastRewardSupplyPeak ¶
type Migrator ¶
type Migrator struct {
// contains filtered or unexported fields
}
Migrator is a struct for handling in-place store migrations.
func NewMigrator ¶
func NewMigrator(keeper Keeper, legacySubspace paramtypes.Subspace) Migrator
NewMigrator returns a new Migrator.
Click to show internal directories.
Click to hide internal directories.