bandwidth

package
v0.6.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

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)
}

Directories

Path Synopsis
client
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL