Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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) TxQcpResultHandler ¶
func (base *QstarsBaseApp) TxQcpResultHandler(ctx context.Context, txQcpResult interface{})
Click to show internal directories.
Click to hide internal directories.