app

package
v0.0.0-...-c04c664 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 6 Imported by: 0

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