Documentation ¶
Index ¶
- type App
- func (a *App) ApplySnapshotChunk(_ abcitypes.RequestApplySnapshotChunk) abcitypes.ResponseApplySnapshotChunk
- func (a *App) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
- func (a *App) CheckTx(req abcitypes.RequestCheckTx) abcitypes.ResponseCheckTx
- func (a *App) Commit() abcitypes.ResponseCommit
- func (a *App) DeliverTx(req abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx
- func (a *App) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
- func (a *App) Info(abcitypes.RequestInfo) abcitypes.ResponseInfo
- func (a *App) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
- func (a *App) ListSnapshots(_ abcitypes.RequestListSnapshots) abcitypes.ResponseListSnapshots
- func (a *App) LoadSnapshotChunk(_ abcitypes.RequestLoadSnapshotChunk) abcitypes.ResponseLoadSnapshotChunk
- func (a *App) OfferSnapshot(_ abcitypes.RequestOfferSnapshot) abcitypes.ResponseOfferSnapshot
- func (a *App) Query(abcitypes.RequestQuery) abcitypes.ResponseQuery
- type Node
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
}
App implements tendermint ABCI interface to
func NewApp ¶
func NewApp( cfg *config.AppConfig, db storagetypes.Engine, logic core.AtomicLogic, ticketMgr tickettypes.TicketManager) *App
NewApp creates an instance of App
func (*App) ApplySnapshotChunk ¶
func (a *App) ApplySnapshotChunk(_ abcitypes.RequestApplySnapshotChunk) abcitypes.ResponseApplySnapshotChunk
func (*App) BeginBlock ¶
func (a *App) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
BeginBlock indicates the beginning of a new block.
func (*App) CheckTx ¶
func (a *App) CheckTx(req abcitypes.RequestCheckTx) abcitypes.ResponseCheckTx
CheckTx a proposed transaction for admission into the mempool. A non-zero response means the transaction is rejected and will not be broadcast to other nodes.
func (*App) Commit ¶
func (a *App) Commit() abcitypes.ResponseCommit
Commit persist the application state. It must return a merkle root hash of the application state.
func (*App) DeliverTx ¶
func (a *App) DeliverTx(req abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx
DeliverTx processes transactions included in a proposed block. Execute the transaction such that in modifies the blockchain state.
func (*App) EndBlock ¶
func (a *App) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
EndBlock indicates the end of a block. Note: Any error from operations in here should panic to stop the block from being committed.
func (*App) Info ¶
func (a *App) Info(abcitypes.RequestInfo) abcitypes.ResponseInfo
Info returns information about the application state. Used to sync tendermint with the application during a handshake that happens on startup. The returned AppVersion will be included in the header of every block. Tendermint expects LastBlockAppHash and LastBlockHeight to be updated during commit.
func (*App) InitChain ¶
func (a *App) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
InitChain is called once upon genesis.
func (*App) ListSnapshots ¶
func (a *App) ListSnapshots(_ abcitypes.RequestListSnapshots) abcitypes.ResponseListSnapshots
func (*App) LoadSnapshotChunk ¶
func (a *App) LoadSnapshotChunk(_ abcitypes.RequestLoadSnapshotChunk) abcitypes.ResponseLoadSnapshotChunk
func (*App) OfferSnapshot ¶
func (a *App) OfferSnapshot(_ abcitypes.RequestOfferSnapshot) abcitypes.ResponseOfferSnapshot
func (*App) Query ¶
func (a *App) Query(abcitypes.RequestQuery) abcitypes.ResponseQuery
Query for data from the application.
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node represents the client
func (*Node) GetChainHeight ¶
GetChainHeight returns the current chain height
func (*Node) GetModulesHub ¶
func (n *Node) GetModulesHub() modtypes.ModulesHub
GetModulesHub returns the modules hub