Documentation
¶
Index ¶
- Constants
- type Ledger
- func (app *Ledger) BeginBlock(hash []byte, header *abci.Header)
- func (app *Ledger) CheckTx(txBytes []byte) (res abci.Result)
- func (app *Ledger) Commit() (res abci.Result)
- func (app *Ledger) DeliverTx(txBytes []byte) (res abci.Result)
- func (app *Ledger) EndBlock(height uint64) (res abci.ResponseEndBlock)
- func (app *Ledger) Info() abci.ResponseInfo
- func (app *Ledger) InitChain(validators []*abci.Validator)
- func (app *Ledger) Query(req abci.RequestQuery) (res abci.ResponseQuery)
- func (app *Ledger) RegisterPlugin(plugin bctypes.Plugin)
- func (app *Ledger) SetOption(key string, value string) (log string)
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 ¶
NewLedger creates a new instance of the app
func (*Ledger) BeginBlock ¶
abci::BeginBlock
func (*Ledger) CheckTx ¶
CheckTx handles checkTx
func (*Ledger) DeliverTx ¶
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 ¶
InitChain initializes the chain
func (*Ledger) Query ¶
func (app *Ledger) Query(req abci.RequestQuery) (res abci.ResponseQuery)
Query handles queryTx
Source Files
¶
- app.go
Click to show internal directories.
Click to hide internal directories.