qosgroup / qstars Goto Github PK
View Code? Open in Web Editor NEWqos联盟链SDK
License: Apache License 2.0
qos联盟链SDK
License: Apache License 2.0
一次转账要等4秒左右,如果网络阻塞可能还要更久
2018/12/13 14:44:57 buyad.BuyAdBackground ts:&{ITx:0xc000926720 Signature:[{Pubkey:PubKeyEd25519{08282EBBCFF9694637B834037A16968C056B888E159C61E2391F1321DA74CE42} Signature:[107 221 239 243 96 241 65 19 85 130 235 174 146 110 25 10 5 235 244 153 158 214 222 82 107 38 253 34 150 95 108 253 243 205 124 218 108 212 43 4 41 16 195 88 216 143 115 102 65 57 27 191 68 46 140 93 240 200 218 180 199 160 202 3] Nonce:85}] ChainID:qstars-test MaxGas:0}, err:
[SendTx] txStd:&{ITx:0xc000926720 Signature:[{Pubkey:PubKeyEd25519{08282EBBCFF9694637B834037A16968C056B888E159C61E2391F1321DA74CE42} Signature:[107 221 239 243 96 241 65 19 85 130 235 174 146 110 25 10 5 235 244 153 158 214 222 82 107 38 253 34 150 95 108 253 243 205 124 218 108 212 43 4 41 16 195 88 216 143 115 102 65 57 27 191 68 46 140 93 240 200 218 180 199 160 202 3] Nonce:85}] ChainID:qstars-test MaxGas:0}
[SendTx] txStd.ITx:&{Std:0xc0009321c0 ArticleHash:[97 98 99 100]}
2018/12/13 14:44:57 [SendTx] tmpStd:&{ITx:0xc000927520 Signature:[{Pubkey:PubKeyEd25519{08282EBBCFF9694637B834037A16968C056B888E159C61E2391F1321DA74CE42} Signature:[107 221 239 243 96 241 65 19 85 130 235 174 146 110 25 10 5 235 244 153 158 214 222 82 107 38 253 34 150 95 108 253 243 205 124 218 108 212 43 4 41 16 195 88 216 143 115 102 65 57 27 191 68 46 140 93 240 200 218 180 199 160 202 3] Nonce:85}] ChainID:qstars-test MaxGas:0},err:
2018/12/13 14:44:57 buyad.BuyAdBackground SendTx commitresult:&{CheckTx:{Code:65537 Data:[] Log:{"codespace":1,"code":1,"abci_code":65537,"message":"TxStd's ITx ValidateData error: 超过投资期限"} Info: GasWanted:0 GasUsed:0 Tags:[] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} DeliverTx:{Code:0 Data:[] Log: Info: GasWanted:0 GasUsed:0 Tags:[] XXX_NoUnkeyedLiteral:{} XXX_unrecognized:[] XXX_sizecache:0} Hash:958F5CE8F04EDF8F2E827AAF7C877D86704E0342 Height:0}, err:checkTx failed: (65537) {"codespace":1,"code":1,"abci_code":65537,"message":"TxStd's ITx ValidateData error: 超过投资期限"}
github.com/QOSGroup/qstars/client/context.CLIContext.BroadcastTx
/home/vagrant/QOSGroup/qstars/client/context/query.go:125
github.com/QOSGroup/qstars/client/context.CLIContext.ensureBroadcastTx
/home/vagrant/QOSGroup/qstars/client/context/query.go:199
github.com/QOSGroup/qstars/client/context.CLIContext.EnsureBroadcastTx
/home/vagrant/QOSGroup/qstars/client/context/query.go:165
github.com/QOSGroup/qstars/client/utils.SendTx
/home/vagrant/QOSGroup/qstars/client/utils/utils.go:32
github.com/QOSGroup/qstars/x/jianqian/buyad.BuyAdBackground
/home/vagrant/QOSGroup/qstars/x/jianqian/buyad/process.go:77
github.com/QOSGroup/qstars/x/jianqian/buyad.buyadCmd.func1
/home/vagrant/QOSGroup/qstars/x/jianqian/buyad/cmd.go:97
github.com/spf13/cobra.(*Command).execute
/home/vagrant/gocode/pkg/mod/github.com/spf13/[email protected]/command.go:762
github.com/spf13/cobra.(*Command).ExecuteC
/home/vagrant/gocode/pkg/mod/github.com/spf13/[email protected]/command.go:852
github.com/spf13/cobra.(*Command).Execute
/home/vagrant/gocode/pkg/mod/github.com/spf13/[email protected]/command.go:800
github.com/tendermint/tendermint/libs/cli.Executor.Execute
/home/vagrant/gocode/pkg/mod/github.com/tendermint/[email protected]/libs/cli/setup.go:89
main.main
/home/vagrant/QOSGroup/qstars/cmd/qstarscli/main.go:122
runtime.main
/opt/go/src/runtime/proc.go:201
runtime.goexit
/opt/go/src/runtime/asm_amd64.s:1333
2018/12/13 14:44:57 {
"code": "-1",
"reason": "checkTx failed: (65537) {"codespace":1,"code":1,"abci_code":65537,"message":"TxStd's ITx ValidateData error: 超过投资期限"}"
}
[vagrant@vagrant-192-168-1-193 qstarscli]$
func createHandler(cdc *wire.Codec) http.Handler {
r := mux.NewRouter()
CLIVersionRegisterRoutes( cdc,r)
NodeVersionRegisterRoutes( cdc,r)
auth.RegisterRoutes(cdc, r)
bank.RegisterRoutes(cdc, r)
kvstore.RegisterRoutes( cdc,r)
return r
}
其他数据类型,直接拷贝出来,减少项目依赖,从而缩小app文件尺寸
first get nounce
create a std tx
sign tx
send to SDK
not using localhost
Right now there are 4 fields in the struct ResultCreateAccount:{PubKey,PrivKey,Addr,Seed}, to further improve the function on the mnemonic phrase to recovering the account in case of password missing.
So the new struct of ResultCreateAccount are designed to {PubKey,PrivKey,Addr,Mnemonic,Type}
@
crypital keys keystore
Mobile app send one request on default password for mnemonic generation, corresponding part should be updated with.
To have alignment with the unique mnemonics with cosmos and qos wallet, the mnemonics output should be the same one.
This part would be started after Spring Festivel.
反射层可以根据sdk抛过来的“方法名”,“参数”,调用对应的方法
@datalj
Payment verification function is in need, add query verify function in qstars context/query.go for the verification process. So this part would be updated to accumlate this new function.
项目中不要直接使用fmt,使用log,可以跟cassini、qbase、qos、qmoon协商使用统一的log方案
查找一个不存在的文章,返回值的code应该不是0
stub作为临时目录,后期的代码会删除掉,其中相应方法的引用需要迁移到其他包上去。
not use cosmosaddr1 header
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.