Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BeginBlocker ¶
func BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock, bm BandwidthKeeper)
BeginBlocker
func EndBlocker ¶
func EndBlocker( ctx sdk.Context, req abci.RequestEndBlock, bm BandwidthKeeper)
EndBlocker
func NewQuerier ¶
func NewQuerier(bm BandwidthKeeper) sdk.Querier
creates a querier for account REST endpoints
Types ¶
type BandwidthKeeper ¶
type BandwidthKeeper interface { InitGenesis(ctx sdk.Context) error DecayMaxMPS(ctx sdk.Context) sdk.Error ReCalculateAppBandwidthInfo(ctx sdk.Context) sdk.Error CheckBandwidth(ctx sdk.Context, addr sdk.AccAddress, fee auth.StdFee) sdk.Error EndBlocker(ctx sdk.Context) sdk.Error BeginBlocker(ctx sdk.Context) sdk.Error // getter GetBandwidthInfo(ctx sdk.Context) (*model.BandwidthInfo, sdk.Error) GetBlockInfo(ctx sdk.Context) (*model.BlockInfo, sdk.Error) GetAppBandwidthInfo(ctx sdk.Context, accKey linotypes.AccountKey) (*model.AppBandwidthInfo, sdk.Error) }
Click to show internal directories.
Click to hide internal directories.