app

package
v1.1.0-beta11 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(stateBus *bus.Bus, iavl tree.Tree) (*App, error)

func (*App) AddTotalSlashed

func (v *App) AddTotalSlashed(amount *big.Int)

func (*App) Commit

func (v *App) Commit() error

func (*App) Export

func (v *App) Export(state *types.AppState, height uint64)

func (*App) GetMaxGas

func (v *App) GetMaxGas() uint64

func (*App) GetTotalSlashed

func (v *App) GetTotalSlashed() *big.Int

func (*App) SetMaxGas

func (v *App) SetMaxGas(gas uint64)

func (*App) SetTotalSlashed

func (v *App) SetTotalSlashed(amount *big.Int)

type Bus

type Bus struct {
	// contains filtered or unexported fields
}

func NewBus

func NewBus(app *App) *Bus

func (*Bus) AddTotalSlashed

func (b *Bus) AddTotalSlashed(amount *big.Int)

type Model

type Model struct {
	TotalSlashed *big.Int
	MaxGas       uint64
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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