Documentation ¶
Index ¶
- Constants
- type Application
- func (app *Application) CheckTx(req types.RequestCheckTx) types.ResponseCheckTx
- func (app *Application) Commit() (resp types.ResponseCommit)
- func (app *Application) DeliverTx(req types.RequestDeliverTx) types.ResponseDeliverTx
- func (app *Application) Query(reqQuery types.RequestQuery) types.ResponseQuery
- type Status
Constants ¶
View Source
const ( Correct = iota Malicious )
View Source
const (
CodeTxIsNotValid = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application struct { types.BaseApplication Status Status State int NewState *int }
func NewApplication ¶
func NewApplication() *Application
func (*Application) CheckTx ¶
func (app *Application) CheckTx(req types.RequestCheckTx) types.ResponseCheckTx
func (*Application) Commit ¶
func (app *Application) Commit() (resp types.ResponseCommit)
func (*Application) DeliverTx ¶
func (app *Application) DeliverTx(req types.RequestDeliverTx) types.ResponseDeliverTx
func (*Application) Query ¶
func (app *Application) Query(reqQuery types.RequestQuery) types.ResponseQuery
Click to show internal directories.
Click to hide internal directories.