investad

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: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InvestAd

func InvestAd(cdc *wire.Codec, chainId, articleHash, coins, privatekey string, qosnonce, qscnonce int64) string

InvestAd 投资广告

func InvestAdBackground

func InvestAdBackground(cdc *wire.Codec, txb string, timeout time.Duration) string

InvestAdBackground 提交到链上

func InvestadCmd

func InvestadCmd(cdc *wire.Codec) *cobra.Command

InvestadCmd will create a send tx and sign it with the given key.

func NewTransfer

func NewTransfer(sender qbasetypes.Address, receiver qbasetypes.Address, coin []qbasetypes.BaseCoin) qostxs.TxTransfer

NewTransfer ...

func RetrieveInvestors

func RetrieveInvestors(cdc *wire.Codec, articleHash string) string

RetrieveInvestors 查询投资者

Types

type InvestTx

type InvestTx struct {
	Std         *txs.TxStd
	ArticleHash []byte `json:"articleHash"` // 文章hash
}

func (InvestTx) CalcGas

func (it InvestTx) CalcGas() qbasetypes.BigInt

func (InvestTx) Exec

func (it InvestTx) Exec(ctx context.Context) (result qbasetypes.Result, crossTxQcps *txs.TxQcp)

func (InvestTx) GetGasPayer

func (it InvestTx) GetGasPayer() qbasetypes.Address

func (InvestTx) GetSignData

func (it InvestTx) GetSignData() []byte

func (InvestTx) GetSigner

func (it InvestTx) GetSigner() []qbasetypes.Address

func (InvestTx) Name

func (it InvestTx) Name() string

func (InvestTx) ValidateData

func (it InvestTx) ValidateData(ctx context.Context) error

type InvestadStub

type InvestadStub struct {
}

func NewStub

func NewStub() InvestadStub

func (InvestadStub) CustomerQuery

func (s InvestadStub) CustomerQuery(ctx ctx.Context, route []string, req abci.RequestQuery) (res []byte, err types.Error)

func (InvestadStub) EndBlockNotify

func (s InvestadStub) EndBlockNotify(ctx context.Context)

func (InvestadStub) Name

func (s InvestadStub) Name() string

func (InvestadStub) RegisterCdc

func (s InvestadStub) RegisterCdc(cdc *go_amino.Codec)

func (InvestadStub) ResultNotify

func (s InvestadStub) ResultNotify(ctx context.Context, txQcpResult interface{}) *types.Result

func (InvestadStub) StartX

func (s InvestadStub) StartX(base *baseapp.QstarsBaseApp) error

type ResultInvest

type ResultInvest struct {
	Code   string          `json:"code"`
	Reason string          `json:"reason,omitempty"`
	Result json.RawMessage `json:"result,omitempty"`
}

func InternalError

func InternalError(reason string) ResultInvest

func NewResultInvest

func NewResultInvest(cdc *wire.Codec, code, reason string, res interface{}) ResultInvest

func (ResultInvest) Marshal

func (ri ResultInvest) Marshal() string

Jump to

Keyboard shortcuts

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