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: 0

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