Documentation ¶
Index ¶
- func InvestAd(cdc *wire.Codec, chainId, articleHash, coins, privatekey string, ...) string
- func InvestAdBackground(cdc *wire.Codec, txb string, timeout time.Duration) string
- func InvestadCmd(cdc *wire.Codec) *cobra.Command
- func NewTransfer(sender qbasetypes.Address, receiver qbasetypes.Address, ...) qostxs.TxTransfer
- func RetrieveInvestors(cdc *wire.Codec, articleHash string) string
- type InvestTx
- func (it InvestTx) CalcGas() qbasetypes.BigInt
- func (it InvestTx) Exec(ctx context.Context) (result qbasetypes.Result, crossTxQcps *txs.TxQcp)
- func (it InvestTx) GetGasPayer() qbasetypes.Address
- func (it InvestTx) GetSignData() []byte
- func (it InvestTx) GetSigner() []qbasetypes.Address
- func (it InvestTx) Name() string
- func (it InvestTx) ValidateData(ctx context.Context) error
- type InvestadStub
- func (s InvestadStub) CustomerQuery(ctx ctx.Context, route []string, req abci.RequestQuery) (res []byte, err types.Error)
- func (s InvestadStub) EndBlockNotify(ctx context.Context)
- func (s InvestadStub) Name() string
- func (s InvestadStub) RegisterCdc(cdc *go_amino.Codec)
- func (s InvestadStub) ResultNotify(ctx context.Context, txQcpResult interface{}) *types.Result
- func (s InvestadStub) StartX(base *baseapp.QstarsBaseApp) error
- type ResultInvest
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 ¶
InvestAdBackground 提交到链上
func InvestadCmd ¶
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 ...
Types ¶
type InvestTx ¶
func (InvestTx) CalcGas ¶
func (it InvestTx) CalcGas() qbasetypes.BigInt
func (InvestTx) GetGasPayer ¶
func (it InvestTx) GetGasPayer() qbasetypes.Address
func (InvestTx) GetSignData ¶
func (InvestTx) GetSigner ¶
func (it InvestTx) GetSigner() []qbasetypes.Address
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
Click to show internal directories.
Click to hide internal directories.