baseapp

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: Apache-2.0 Imports: 18 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

This section is empty.

Variables

This section is empty.

Functions

func InitApp

func InitApp()

Types

type BaseXTransaction

type BaseXTransaction interface {
	RegisterCdc(cdc *go_amino.Codec)
	StartX(base *QstarsBaseApp) error
	ResultNotify(ctx context.Context, txQcpResult interface{}) *types.Result
	EndBlockNotify(ctx context.Context)
	CustomerQuery(ctx ctx.Context, route []string, req abci.RequestQuery) (res []byte, err types.Error)
	Name() string
}

type QStarsContext

type QStarsContext struct {
	ServerContext      *server.Context
	QStarsSignerPriv   crypto.PrivKey
	QStarsTransactions []string
}

func GetServerContext

func GetServerContext() *QStarsContext

type QstarsBaseApp

type QstarsBaseApp struct {
	Transactions    BaseXTransaction
	Baseapp         *baseabci.BaseApp
	TransactionList []BaseXTransaction
	Logger          log.Logger
	RootDir         string
}

func NewAPP

func NewAPP(sconf *config.ServerConf, cdc *go_amino.Codec) (QstarsBaseApp, error)

* startup a qstar chain instance

func (*QstarsBaseApp) Register

func (base *QstarsBaseApp) Register(basecontract BaseXTransaction)

call every transaction to register

func (*QstarsBaseApp) RegisterCDC

func (base *QstarsBaseApp) RegisterCDC(cdc *go_amino.Codec)

Rigster every x transaction

func (*QstarsBaseApp) Start

func (base *QstarsBaseApp) Start() error

* start transaction

func (*QstarsBaseApp) TxQcpResultHandler

func (base *QstarsBaseApp) TxQcpResultHandler(ctx context.Context, txQcpResult interface{})

Jump to

Keyboard shortcuts

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