Versions in this module Expand all Collapse all v0 v0.4.1 Dec 25, 2018 v0.4.0 Dec 24, 2018 Changes in this version + const AccountResultType + const PREF_ADD + var Accounturl string + var KVurl string + var Mhost string + var QOSAccounturl string + var QResulturl string + var QSCAccounturl string + var Shost string + func AccountCreateStr(password string) string + func AccountRecoverStr(mncode, password string) string + func AesDecrypt(keystring, cryptoText string) string + func AesEncrypt(keystring, text string) string + func Int2Byte(in int64) []byte + func JQInvestAd(QOSchainId, QSCchainId, articleHash, coins, privatekey string) string + func PubAddrRetrievalStr(s string) string + func QOSCommitResultCheck(txhash, height string) string + func QOSQueryAccountGet(addr string) string + func QSCKVStoreGetQuery(k string) string + func QSCKVStoreSetPost(k, v, privkey, chain string) (result string) + func QSCQueryAccountGet(addr string) string + func QSCtransferSendStr(addrto, coinstr, privkey, chainid string) string + func RegisterAmino(cdc *amino.Codec) + func RegisterCodec(cdc *amino.Codec) + func SetBlockchainEntrance(qstarshost, qmoonhost string) + type Address []byte + func (add *Address) UnmarshalJSON(bech32Addr []byte) error + func (add Address) Bytes() []byte + func (add Address) MarshalJSON() ([]byte, error) + func (add Address) String() string + type BaseAccount struct + AccountAddress Address + Nonce int64 + Publickey ed25519local.PubKey + type BaseCoin struct + Amount BigInt + Name string + func (coin *BaseCoin) String() string + type BaseCoins []*BaseCoin + func (coins BaseCoins) String() string + type BigInt struct + func NewBigInt(n int64) BigInt + func ZeroInt() BigInt + func (bi BigInt) IsNil() bool + func (i *BigInt) UnmarshalAmino(text string) error + func (i *BigInt) UnmarshalJSON(bz []byte) error + func (i BigInt) Add(i2 BigInt) (res BigInt) + func (i BigInt) Int64() int64 + func (i BigInt) MarshalAmino() (string, error) + func (i BigInt) MarshalJSON() ([]byte, error) + func (i BigInt) NilToZero() BigInt + func (i BigInt) String() string + type Codec = amino.Codec + var Cdc *Codec + func NewCodec() *Codec + type Coin struct + Amount Int + Denom string + func ParseCoin(coinStr string) (coin Coin, err error) + func (coin Coin) IsZero() bool + type Coins []Coin + func ParseCoins(coinsStr string) (coins Coins, err error) + func (coins Coins) IsValid() bool + func (coins Coins) IsZero() bool + func (coins Coins) Len() int + func (coins Coins) Less(i, j int) bool + func (coins Coins) Sort() Coins + func (coins Coins) Swap(i, j int) + type ITx interface + GetSignData func() []byte + func NewTransfer(sender Address, receiver Address, coin []BaseCoin) ITx + type Int struct + func NewInt(n int64) Int + func (i Int) Int64() int64 + func (i Int) IsZero() bool + type InvestTx struct + ArticleHash []byte + Std *TxStd + func (it InvestTx) GetSignData() []byte + type PrivkeyAmino struct + Type string + Value string + type PubAddrRetrieval struct + Addr string + PubKey string + type PubkeyAmino struct + Type string + Value string + type QOSAccount struct + QOS BigInt + QSCs QSCs + type QSCs = BaseCoins + type ResultCreateAccount struct + Addr string + Mnemonic string + PrivKey string + PubKey string + Type string + func AccountCreate(password string) *ResultCreateAccount + type ResultInvest struct + Code string + Reason string + Result json.RawMessage + func InternalError(reason string) ResultInvest + func (ri ResultInvest) Marshal() string + type Signature struct + Nonce int64 + Pubkey ed25519local.PubKey + Signature []byte + type TransItem struct + Address Address + QOS BigInt + QSCs QSCs + type TxStd struct + ChainID string + ITx ITx + MaxGas BigInt + Signature []Signature + func NewTxStd(itx ITx, cid string, mgas BigInt) (rTx *TxStd) + func (tx *TxStd) BuildSignatureBytes(nonce int64, qcpFromChainID string) []byte + func (tx *TxStd) GetSignData() []byte + func (tx *TxStd) SignTx(privkey ed25519local.PrivKey, nonce int64, fromChainID string) (signedbyte []byte, err error) + type TxTransfer struct + Receivers []TransItem + Senders []TransItem + func (tx TxTransfer) GetSignData() (ret []byte)