Documentation ¶
Index ¶
- type ExpectedKeepers
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) BondedRatio(ctx sdk.Context) sdk.Dec
- func (k Keeper) EndPhaseStatus(c context.Context, _ *types.QueryEndPhaseStatusRequest) (*types.QueryEndPhaseStatusResponse, error)
- func (k Keeper) GetMinter(ctx sdk.Context) (minter types.Minter)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MintCoins(ctx sdk.Context, newCoins sdk.Coins) error
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) PhaseProvisions(c context.Context, _ *types.QueryPhaseProvisionsRequest) (*types.QueryPhaseProvisionsResponse, error)
- func (k Keeper) PhaseStep(c context.Context, _ *types.QueryPhaseStepRequest) (*types.QueryPhaseStepResponse, error)
- func (k Keeper) SetMinter(ctx sdk.Context, minter types.Minter)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) StakingTokenSupply(ctx sdk.Context) sdk.Int
- func (k Keeper) TokenSupply(ctx sdk.Context, denom string) sdk.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExpectedKeepers ¶
type ExpectedKeepers struct { StakingKeeper types.StakingKeeper BankKeeper types.BankKeeper }
ExpectedKeepers contains expected keepers parameter needed by NewKeeper
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper is the type for module properties
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey sdk.StoreKey, ps paramtypes.Subspace, ak types.AccountKeeper, expectedKeepers ExpectedKeepers, feeCollectorName string, ) *Keeper
NewKeeper creates new keeper object
func (Keeper) AddCollectedFees ¶
AddCollectedFees implements an alias call to the underlying supply keeper's to be used in BeginBlocker.
func (Keeper) BondedRatio ¶
BondedRatio implements an alias call to the underlying staking keeper's to be used in BeginBlocker.
func (Keeper) EndPhaseStatus ¶
func (k Keeper) EndPhaseStatus(c context.Context, _ *types.QueryEndPhaseStatusRequest) (*types.QueryEndPhaseStatusResponse, error)
EndPhaseStatus returns end phase status.
func (Keeper) Inflation ¶
func (k Keeper) Inflation(c context.Context, _ *types.QueryInflationRequest) (*types.QueryInflationResponse, error)
Inflation returns current inflation.
func (Keeper) MintCoins ¶
MintCoins implements an alias call to the underlying supply keeper's to be used in BeginBlocker.
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params returns the params of the module
func (Keeper) PhaseProvisions ¶
func (k Keeper) PhaseProvisions(c context.Context, _ *types.QueryPhaseProvisionsRequest) (*types.QueryPhaseProvisionsResponse, error)
PhaseProvisions returns current phase provision.
func (Keeper) PhaseStep ¶
func (k Keeper) PhaseStep(c context.Context, _ *types.QueryPhaseStepRequest) (*types.QueryPhaseStepResponse, error)
PhaseStep returns phase step.
func (Keeper) StakingTokenSupply ¶
StakingTokenSupply implements an alias call to the underlying staking keeper's to be used in BeginBlocker.