Documentation ¶
Index ¶
- Constants
- func DispatchAOE(cdc *wire.Codec, ctx *config.CLIConfig, ...) string
- func DispatchAOECmd(cdc *wire.Codec) *cobra.Command
- func DispatchSend(cdc *wire.Codec, ctx *config.CLIConfig, privkey string, to []types.Address, ...) string
- func GetCoins(cdc *wire.Codec, ctx *context.CLIContext, tx string) string
- func GetResultKey(heigth1 string, tx1 string) string
- func QueryCoinsCmd(cdc *wire.Codec) *cobra.Command
- type CoinsStub
- func (cstub CoinsStub) CustomerQuery(ctx ctx.Context, route []string, req abci.RequestQuery) (res []byte, err types.Error)
- func (cstub CoinsStub) EndBlockNotify(ctx context.Context)
- func (cstub CoinsStub) Name() string
- func (cstub CoinsStub) RegisterCdc(cdc *go_amino.Codec)
- func (cstub CoinsStub) ResultNotify(ctx context.Context, txQcpResult interface{}) *types.Result
- func (cstub CoinsStub) StartX(base *baseapp.QstarsBaseApp) error
- type DispatchAOETx
- func (tx DispatchAOETx) CalcGas() types.BigInt
- func (tx DispatchAOETx) Exec(ctx context.Context) (result types.Result, crossTxQcps *txs.TxQcp)
- func (tx DispatchAOETx) GetGasPayer() types.Address
- func (tx DispatchAOETx) GetSignData() (ret []byte)
- func (tx DispatchAOETx) GetSigner() []types.Address
- func (tx DispatchAOETx) Name() string
- func (tx DispatchAOETx) ValidateData(ctx context.Context) error
Constants ¶
View Source
const ( COINS_PARA_LEN_ERR = "101" //参数长度不一致 COINS_PRIV_ERR = "102" //私钥获取地址错误 COINS_SENDTX_ERR = "103" //交易出错 COINS_FETCH_RESULT_ERR = "104" //查询跨链结果错误 COINS_QUERY_ERR = "105" //查询跨链结果错误 )
type SendResult struct { Hash string `json:"hash"` Error string `json:"error"` Code string `json:"code"` Result string `json:"result"` Heigth string `json:"heigth"` }
View Source
const COINNAME = "AOE"
Variables ¶
This section is empty.
Functions ¶
func DispatchAOE ¶
func DispatchAOE(cdc *wire.Codec, ctx *config.CLIConfig, address, coins, causecodes, causestrings, gas string) string
活动奖励发放 address 接收奖励地址(必填) 多个地址用|隔开 coins 接收奖励数额(必填) 多个地址用|隔开 causecodes 奖励类型(必填) 多个地址用|隔开 causestrings 奖励类型描述(必填) 多个地址用|隔开 gas gas费 默认为0
func DispatchAOECmd ¶
SendTxCmd will create a send tx and sign it with the given key.
func DispatchSend ¶
func DispatchSend(cdc *wire.Codec, ctx *config.CLIConfig, privkey string, to []types.Address, amount []types.BigInt, causecode []string, causeStr []string) string
发放活动奖励 一转多
func GetResultKey ¶
Types ¶
type CoinsStub ¶
type CoinsStub struct { }
func NewCoinsStub ¶
func NewCoinsStub() CoinsStub
func (CoinsStub) CustomerQuery ¶
func (CoinsStub) EndBlockNotify ¶
func (CoinsStub) RegisterCdc ¶
func (CoinsStub) ResultNotify ¶
type DispatchAOETx ¶
type DispatchAOETx struct { Wrapper *txs.TxStd //已封装好的 TxCreateQSC 结构体 From types.Address Address []types.Address CoinAmount []types.BigInt CausesCode []string CausesStr []string Gas types.BigInt }
活动奖励
func NewDispatchAOE ¶
func (DispatchAOETx) CalcGas ¶
func (tx DispatchAOETx) CalcGas() types.BigInt
func (DispatchAOETx) GetGasPayer ¶
func (tx DispatchAOETx) GetGasPayer() types.Address
func (DispatchAOETx) GetSignData ¶
func (tx DispatchAOETx) GetSignData() (ret []byte)
func (DispatchAOETx) GetSigner ¶
func (tx DispatchAOETx) GetSigner() []types.Address
func (DispatchAOETx) Name ¶
func (tx DispatchAOETx) Name() string
func (DispatchAOETx) ValidateData ¶
func (tx DispatchAOETx) ValidateData(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.