app

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 12, 2020 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 (*GHApplication) CheckTx

func (*GHApplication) Commit

func (app *GHApplication) Commit() abcitypes.ResponseCommit

func (*GHApplication) DeliverTx

func (*GHApplication) EndBlock

func (*GHApplication) Info

func (*GHApplication) InitChain

func (*GHApplication) Query

func (app *GHApplication) Query(reqQuery abcitypes.RequestQuery) (resQuery abcitypes.ResponseQuery)

func (*GHApplication) SetOption

type Genesis

type Genesis struct {
	ConsulsCount              int
	OraclesAddressByValidator map[account.ConsulPubKey][]OraclesAddresses
}

type OraclesAddresses

type OraclesAddresses struct {
	account.ChainType
	account.OraclesPubKey
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL