Documentation ¶
Index ¶
- Constants
- type GHApplication
- func (app *GHApplication) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
- func (app *GHApplication) CheckTx(req abcitypes.RequestCheckTx) abcitypes.ResponseCheckTx
- func (app *GHApplication) Commit() abcitypes.ResponseCommit
- func (app *GHApplication) DeliverTx(req abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx
- func (app *GHApplication) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
- func (app *GHApplication) Info(req abcitypes.RequestInfo) abcitypes.ResponseInfo
- func (app *GHApplication) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
- func (app *GHApplication) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)
- func (app *GHApplication) SetOption(req abcitypes.RequestSetOption) abcitypes.ResponseSetOption
- type Genesis
- type OraclesAddresses
Constants ¶
View Source
const ( Success uint32 = 0 Error uint32 = 500 NotFoundCode uint32 = 404 AppVersion uint64 = 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GHApplication ¶
type GHApplication struct { IsSync bool // contains filtered or unexported fields }
func NewGHApplication ¶
func NewGHApplication(adaptors map[account.ChainType]adaptors.IBlockchainAdaptor, scheduler *scheduler.Scheduler, db *badger.DB, genesis *Genesis, ctx context.Context, config *config.LedgerConfig) (*GHApplication, error)
func (*GHApplication) BeginBlock ¶
func (app *GHApplication) BeginBlock(req abcitypes.RequestBeginBlock) abcitypes.ResponseBeginBlock
func (*GHApplication) CheckTx ¶
func (app *GHApplication) CheckTx(req abcitypes.RequestCheckTx) abcitypes.ResponseCheckTx
func (*GHApplication) Commit ¶
func (app *GHApplication) Commit() abcitypes.ResponseCommit
func (*GHApplication) DeliverTx ¶
func (app *GHApplication) DeliverTx(req abcitypes.RequestDeliverTx) abcitypes.ResponseDeliverTx
func (*GHApplication) EndBlock ¶
func (app *GHApplication) EndBlock(req abcitypes.RequestEndBlock) abcitypes.ResponseEndBlock
func (*GHApplication) Info ¶
func (app *GHApplication) Info(req abcitypes.RequestInfo) abcitypes.ResponseInfo
func (*GHApplication) InitChain ¶
func (app *GHApplication) InitChain(req abcitypes.RequestInitChain) abcitypes.ResponseInitChain
func (*GHApplication) Query ¶
func (app *GHApplication) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)
func (*GHApplication) SetOption ¶
func (app *GHApplication) SetOption(req abcitypes.RequestSetOption) abcitypes.ResponseSetOption
type Genesis ¶
type Genesis struct { ConsulsCount int OraclesAddressByValidator map[account.ConsulPubKey][]OraclesAddresses }
type OraclesAddresses ¶
type OraclesAddresses struct { account.ChainType account.OraclesPubKey }
Click to show internal directories.
Click to hide internal directories.