Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper *Keeper) types.MsgServer
- func NewQuerierImpl(k *Keeper) types.QueryServer
- type Keeper
- func (k *Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
- func (k Keeper) CalculateRewards(ctx sdk.Context, nodes []captainnodetypes.Node) (sdk.DecCoins, error)
- func (k Keeper) CalculateRewardsByNodeId(ctx sdk.Context, nodeId string) (sdk.DecCoins, error)
- func (k Keeper) GetParams(ctx sdk.Context) (params types.Params)
- func (k Keeper) HolderTotalRewards(goCtx context.Context, request *types.QueryHolderTotalRewardsRequest) (*types.QueryHolderTotalRewardsResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) NodeTotalRewards(goCtx context.Context, request *types.QueryNodeTotalRewardsRequest) (*types.QueryNodeTotalRewardsResponse, error)
- func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k *Keeper) SetCaptainsKeeper(ck types.CaptainsKeeper)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params) error
- func (k Keeper) WithdrawRewards(ctx sdk.Context, sender, receiver sdk.Address) (sdk.Coins, error)
- type Querier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the mint MsgServer interface for the provided Keeper.
func NewQuerierImpl ¶
func NewQuerierImpl(k *Keeper) types.QueryServer
NewQuerierImpl returns an implementation of the captains QueryServer interface.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper(cdc codec.Codec, authority sdk.AccAddress, key storetypes.StoreKey, ak types.AccountKeeper, bk types.BankKeeper, ck types.CaptainsKeeper, ) Keeper
NewKeeper returns a mint keeper
func (*Keeper) BeginBlock ¶
func (k *Keeper) BeginBlock(ctx sdk.Context, _ abci.RequestBeginBlock)
BeginBlock updates node block reward
func (Keeper) CalculateRewards ¶
func (Keeper) CalculateRewardsByNodeId ¶
func (Keeper) HolderTotalRewards ¶
func (k Keeper) HolderTotalRewards(goCtx context.Context, request *types.QueryHolderTotalRewardsRequest) (*types.QueryHolderTotalRewardsResponse, error)
func (Keeper) NodeTotalRewards ¶
func (k Keeper) NodeTotalRewards(goCtx context.Context, request *types.QueryNodeTotalRewardsRequest) (*types.QueryNodeTotalRewardsResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, _ *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
Params queries the staking parameters
func (*Keeper) SetCaptainsKeeper ¶
func (k *Keeper) SetCaptainsKeeper(ck types.CaptainsKeeper)
SetCaptainsKeeper
Click to show internal directories.
Click to hide internal directories.