app

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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.MTree) (*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) GetCoinsCount added in v1.2.0

func (v *App) GetCoinsCount() uint32

func (*App) GetMaxGas

func (v *App) GetMaxGas() uint64

func (*App) GetNextCoinID added in v1.2.0

func (v *App) GetNextCoinID() types.CoinID

func (*App) GetTotalSlashed

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

func (*App) SetCoinsCount added in v1.2.0

func (v *App) SetCoinsCount(count uint32)

func (*App) SetMaxGas

func (v *App) SetMaxGas(gas uint64)

func (*App) SetTotalSlashed

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

func (*App) Tree added in v1.2.0

func (v *App) Tree() tree.ReadOnlyTree

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
	CoinsCount   uint32
	MaxGas       uint64
	// contains filtered or unexported fields
}

type RApp added in v1.2.0

type RApp interface {
	Export(state *types.AppState, height uint64)
	GetMaxGas() uint64
	GetTotalSlashed() *big.Int
	GetCoinsCount() uint32
	GetNextCoinID() types.CoinID
}

Jump to

Keyboard shortcuts

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