app

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: Apache-2.0, Apache-2.0 Imports: 11 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// PluginTypeByteBase defines the base plugin's byte code
	PluginTypeByteBase = 0x01
	// PluginTypeByteEyes defines the eyes plugin's byte code
	PluginTypeByteEyes = 0x02

	// PluginNameBase defines the base plugin's name
	PluginNameBase = "base"
	// PluginNameEyes defines the eyes plugin's name
	PluginNameEyes = "eyes"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ledger

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

Ledger defines the attributes of the app

func NewLedger

func NewLedger(eyesCli *eyes.Client) *Ledger

NewLedger creates a new instance of the app

func (*Ledger) BeginBlock

func (app *Ledger) BeginBlock(hash []byte, header *abci.Header)

abci::BeginBlock

func (*Ledger) CheckTx

func (app *Ledger) CheckTx(txBytes []byte) (res abci.Result)

CheckTx handles checkTx

func (*Ledger) Commit

func (app *Ledger) Commit() (res abci.Result)

Commit handles commitTx

func (*Ledger) DeliverTx

func (app *Ledger) DeliverTx(txBytes []byte) (res abci.Result)

DeliverTx handles deliverTx

func (*Ledger) EndBlock

func (app *Ledger) EndBlock(height uint64) (res abci.ResponseEndBlock)

abci::EndBlock

func (*Ledger) Info

func (app *Ledger) Info() abci.ResponseInfo

Info returns app's generic information

func (*Ledger) InitChain

func (app *Ledger) InitChain(validators []*abci.Validator)

InitChain initializes the chain

func (*Ledger) Query

func (app *Ledger) Query(req abci.RequestQuery) (res abci.ResponseQuery)

Query handles queryTx

func (*Ledger) RegisterPlugin

func (app *Ledger) RegisterPlugin(plugin bctypes.Plugin)

func (*Ledger) SetOption

func (app *Ledger) SetOption(key string, value string) (log string)

SetOption modifies app's configuration

Jump to

Keyboard shortcuts

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