Documentation ¶
Index ¶
- type Keeper
- func (k Keeper) DistributeTokens(goCtx context.Context, msg *types.MsgDistributeTokens) (*types.MsgDistributeTokensResponse, error)
- func (k Keeper) GetAuthority() string
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) SendCoinsFromAccountToFeeCollector(ctx sdk.Context, senderAddr sdk.AccAddress, amt sdk.Coins) error
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
- type Querier
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
}
Keeper of this module maintains distributing tokens to all stakers.
func NewKeeper ¶
func NewKeeper( storeKey storetypes.StoreKey, cdc codec.BinaryCodec, bk driptypes.BankKeeper, feeCollector string, authority string, ) Keeper
NewKeeper creates new instances of the Keeper
func (Keeper) DistributeTokens ¶
func (k Keeper) DistributeTokens( goCtx context.Context, msg *types.MsgDistributeTokens, ) (*types.MsgDistributeTokensResponse, error)
DistributeTokens distribute tokens to all stakers at the next block
func (Keeper) GetAuthority ¶
GetAuthority returns the x/mint module's authority.
func (Keeper) SendCoinsFromAccountToFeeCollector ¶
func (k Keeper) SendCoinsFromAccountToFeeCollector(ctx sdk.Context, senderAddr sdk.AccAddress, amt sdk.Coins) error
SendCoinsFromAccountToFeeCollector transfers amt to the fee collector account, where it will be catch up by the distribution module at the next block
func (Keeper) UpdateParams ¶
func (k Keeper) UpdateParams(goCtx context.Context, req *types.MsgUpdateParams) (*types.MsgUpdateParamsResponse, error)
type Querier ¶
type Querier struct {
Keeper
}
Querier defines a wrapper around the x/FeeShare keeper providing gRPC method handlers.
func NewQuerier ¶
func (Querier) Params ¶
func (q Querier) Params( c context.Context, _ *types.QueryParamsRequest, ) (*types.QueryParamsResponse, error)
Params returns the fees module params
Click to show internal directories.
Click to hide internal directories.