Documentation ¶
Index ¶
- type BCChainApplication
- func (app *BCChainApplication) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock
- func (app *BCChainApplication) ChainVersion() int64
- func (app *BCChainApplication) CheckTx(tx []byte) types.ResponseCheckTx
- func (app *BCChainApplication) CleanData() types.ResponseCleanData
- func (app *BCChainApplication) Commit() types.ResponseCommit
- func (app *BCChainApplication) DeliverTx(tx []byte) types.ResponseDeliverTx
- func (app *BCChainApplication) Echo(req types.RequestEcho) types.ResponseEcho
- func (app *BCChainApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock
- func (app *BCChainApplication) Flush(req types.RequestFlush) types.ResponseFlush
- func (app *BCChainApplication) GetGenesis() types.ResponseGetGenesis
- func (app *BCChainApplication) Info(req types.RequestInfo) types.ResponseInfo
- func (app *BCChainApplication) InitChain(req types.RequestInitChain) types.ResponseInitChain
- func (app *BCChainApplication) Query(reqQuery types.RequestQuery) types.ResponseQuery
- func (app *BCChainApplication) QueryEx(reqQuery types.RequestQueryEx) types.ResponseQueryEx
- func (app *BCChainApplication) Rollback() types.ResponseRollback
- func (app *BCChainApplication) SetOption(req types.RequestSetOption) types.ResponseSetOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BCChainApplication ¶
type BCChainApplication struct { types.BaseApplication // contains filtered or unexported fields }
BCChainApplication object of application
func NewBCChainApplication ¶
func NewBCChainApplication(config common.Config, logger log.Loggerf) *BCChainApplication
NewBCChainApplication create an application object
func (*BCChainApplication) BeginBlock ¶
func (app *BCChainApplication) BeginBlock(req types.RequestBeginBlock) types.ResponseBeginBlock
BeginBlock beginblock interface
func (*BCChainApplication) ChainVersion ¶
func (app *BCChainApplication) ChainVersion() int64
func (*BCChainApplication) CheckTx ¶
func (app *BCChainApplication) CheckTx(tx []byte) types.ResponseCheckTx
CheckTx checkTx interface
func (*BCChainApplication) CleanData ¶
func (app *BCChainApplication) CleanData() types.ResponseCleanData
CleanData clean all bcchain data when side chain genesis
func (*BCChainApplication) Commit ¶
func (app *BCChainApplication) Commit() types.ResponseCommit
Commit commit interface
func (*BCChainApplication) DeliverTx ¶
func (app *BCChainApplication) DeliverTx(tx []byte) types.ResponseDeliverTx
DeliverTx deliverTx interface
func (*BCChainApplication) Echo ¶
func (app *BCChainApplication) Echo(req types.RequestEcho) types.ResponseEcho
Echo echo interface
func (*BCChainApplication) EndBlock ¶
func (app *BCChainApplication) EndBlock(req types.RequestEndBlock) types.ResponseEndBlock
EndBlock endblock interface
func (*BCChainApplication) Flush ¶
func (app *BCChainApplication) Flush(req types.RequestFlush) types.ResponseFlush
Flush flush interface
func (*BCChainApplication) GetGenesis ¶
func (app *BCChainApplication) GetGenesis() types.ResponseGetGenesis
func (*BCChainApplication) Info ¶
func (app *BCChainApplication) Info(req types.RequestInfo) types.ResponseInfo
Info info interface
func (*BCChainApplication) InitChain ¶
func (app *BCChainApplication) InitChain(req types.RequestInitChain) types.ResponseInitChain
InitChain 初次初始化链后立马注册合约
func (*BCChainApplication) Query ¶
func (app *BCChainApplication) Query(reqQuery types.RequestQuery) types.ResponseQuery
Query query interface
func (*BCChainApplication) QueryEx ¶
func (app *BCChainApplication) QueryEx(reqQuery types.RequestQueryEx) types.ResponseQueryEx
Query queryEx interface
func (*BCChainApplication) Rollback ¶
func (app *BCChainApplication) Rollback() types.ResponseRollback
func (*BCChainApplication) SetOption ¶
func (app *BCChainApplication) SetOption(req types.RequestSetOption) types.ResponseSetOption
SetOption set option interface
Click to show internal directories.
Click to hide internal directories.