Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type ExpectedKeepers
- type Keeper
- func (k Keeper) AddCollectedFees(ctx sdk.Context, fees sdk.Coins) error
- func (k Keeper) BondedRatio(ctx sdk.Context) sdkmath.LegacyDec
- 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 (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) sdkmath.Int
- func (k Keeper) TokenSupply(ctx sdk.Context, denom string) sdkmath.Int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶ added in v1.4.5
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
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 storetypes.StoreKey, ps paramtypes.Subspace, ak types.AccountKeeper, expectedKeepers ExpectedKeepers, feeCollectorName string, authority 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.