app

package
v1.2.1-lite-1 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 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.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