Documentation
¶
Index ¶
- func ConvertWalletTxDetailToJson(in *types.WalletTxDetails, out *WalletTxDetails) error
- type Account
- type AllExecBalance
- type Block
- type BlockDetail
- type BlockDetails
- type BlockOverview
- type BlockParam
- type ChainExecutor
- type ChannelClient
- type CreateTxIn
- type ExecAccount
- type ExecNameParm
- type Header
- type Headers
- type NodeNetinfo
- type Peer
- type PeerList
- type Query4Jrpc
- type QueryParm
- type RPCServer
- type RawParm
- type ReceiptData
- type ReceiptDataResult
- type ReceiptLog
- type ReceiptLogResult
- type Reply
- type ReplyBlkSeq
- type ReplyBlkSeqs
- type ReplyCacheTxList
- type ReplyHash
- type ReplyHashes
- type ReplyPrivacyPkPair
- type ReplyTxInfo
- type ReplyTxInfos
- type ReplyTxList
- type ReqAddr
- type ReqHashes
- type ReqWalletTransactionList
- type Signature
- type SignedTx
- type TimeStatus
- type TransParm
- type Transaction
- type TransactionDetail
- type TransactionDetails
- type WalletAccount
- type WalletAccounts
- type WalletStatus
- type WalletTxDetail
- type WalletTxDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertWalletTxDetailToJson ¶
func ConvertWalletTxDetailToJson(in *types.WalletTxDetails, out *WalletTxDetails) error
Types ¶
type AllExecBalance ¶
type AllExecBalance struct { Addr string `json:"addr"` ExecAccount []*ExecAccount `json:"execAccount"` }
type BlockDetail ¶
type BlockDetail struct { Block *Block `json:"block"` Receipts []*ReceiptDataResult `json:"recipts"` }
type BlockDetails ¶
type BlockDetails struct {
Items []*BlockDetail `json:"items"`
}
type BlockOverview ¶
type BlockParam ¶
type ChainExecutor ¶
type ChainExecutor struct { Driver string `json:"execer"` FuncName string `json:"funcName"` StateHash string `json:"stateHash"` Payload json.RawMessage `json:"payload"` }
type ChannelClient ¶
type ChannelClient struct { client.QueueProtocolAPI // contains filtered or unexported fields }
func (*ChannelClient) GetCoinsAccountDB ¶
func (c *ChannelClient) GetCoinsAccountDB() *account.DB
func (*ChannelClient) Init ¶
func (c *ChannelClient) Init(name string, s RPCServer, jrpc, grpc interface{})
type CreateTxIn ¶
type CreateTxIn struct { Execer string `json:"execer"` ActionName string `json:"actionName"` Payload json.RawMessage `json:"payload"` }
type ExecAccount ¶
type ExecNameParm ¶
type ExecNameParm struct {
ExecName string `json:"execname"`
}
type Header ¶
type Header struct { Version int64 `json:"version"` ParentHash string `json:"parentHash"` TxHash string `json:"txHash"` StateHash string `json:"stateHash"` Height int64 `json:"height"` BlockTime int64 `json:"blockTime"` TxCount int64 `json:"txCount"` Hash string `json:"hash"` Difficulty uint32 `json:"difficulty"` Signature *Signature `json:"signature,omitempty"` }
type NodeNetinfo ¶
type Query4Jrpc ¶
type Query4Jrpc struct { Execer string `json:"execer"` FuncName string `json:"funcName"` Payload json.RawMessage `json:"payload"` }
type ReceiptData ¶
type ReceiptData struct { Ty int32 `json:"ty"` Logs []*ReceiptLog `json:"logs"` }
type ReceiptDataResult ¶
type ReceiptDataResult struct { Ty int32 `json:"ty"` TyName string `json:"tyName"` Logs []*ReceiptLogResult `json:"logs"` }
func DecodeLog ¶
func DecodeLog(execer []byte, rlog *ReceiptData) (*ReceiptDataResult, error)
type ReceiptLog ¶
type ReceiptLogResult ¶
type ReceiptLogResult struct { Ty int32 `json:"ty"` TyName string `json:"tyName"` Log json.RawMessage `json:"log"` RawLog string `json:"rawLog"` }
type ReplyBlkSeq ¶
type ReplyBlkSeqs ¶
type ReplyBlkSeqs struct {
BlkSeqInfos []*ReplyBlkSeq `json:"blkseqInfos"`
}
type ReplyCacheTxList ¶
type ReplyCacheTxList struct {
Txs []*Transaction `json:"txs,omitempty"`
}
type ReplyHashes ¶
type ReplyHashes struct {
Hashes []string `json:"hashes"`
}
type ReplyPrivacyPkPair ¶
type ReplyTxInfo ¶
type ReplyTxInfos ¶
type ReplyTxInfos struct {
TxInfos []*ReplyTxInfo `json:"txInfos"`
}
type ReplyTxList ¶
type ReplyTxList struct {
Txs []*Transaction `json:"txs"`
}
type ReqWalletTransactionList ¶
type ReqWalletTransactionList struct { FromTx string `json:"fromTx"` Count int32 `json:"count"` Direction int32 `json:"direction"` Mode int32 `json:"mode,omitempty"` SendRecvPrivacy int32 `json:"sendRecvPrivacy,omitempty"` Address string `json:"address,omitempty"` TokenName string `json:"tokenname,omitempty"` }
type TimeStatus ¶
type Transaction ¶
type Transaction struct { Execer string `json:"execer"` Payload json.RawMessage `json:"payload"` RawPayload string `json:"rawPayload"` Signature *Signature `json:"signature"` Fee int64 `json:"fee"` FeeFmt string `json:"feefmt"` Expire int64 `json:"expire"` Nonce int64 `json:"nonce"` From string `json:"from,omitempty"` To string `json:"to"` Amount int64 `json:"amount,omitempty"` AmountFmt string `json:"amountfmt,omitempty"` GroupCount int32 `json:"groupCount,omitempty"` Header string `json:"header,omitempty"` Next string `json:"next,omitempty"` }
func DecodeTx ¶
func DecodeTx(tx *types.Transaction) (*Transaction, error)
type TransactionDetail ¶
type TransactionDetail struct { Tx *Transaction `json:"tx"` Receipt *ReceiptDataResult `json:"receipt"` Proofs []string `json:"proofs"` Height int64 `json:"height"` Index int64 `json:"index"` Blocktime int64 `json:"blockTime"` Amount int64 `json:"amount"` Fromaddr string `json:"fromAddr"` ActionName string `json:"actionName"` Assets []*types.Asset `json:"assets"` }
type TransactionDetails ¶
type TransactionDetails struct { //Txs []*Transaction `json:"txs"` Txs []*TransactionDetail `json:"txs"` }
type WalletAccount ¶
type WalletAccounts ¶
type WalletAccounts struct {
Wallets []*WalletAccount `json:"wallets"`
}
Wallet Module
type WalletStatus ¶
type WalletTxDetail ¶
type WalletTxDetail struct { Tx *Transaction `json:"tx"` Receipt *ReceiptDataResult `json:"receipt"` Height int64 `json:"height"` Index int64 `json:"index"` BlockTime int64 `json:"blockTime"` Amount int64 `json:"amount"` FromAddr string `json:"fromAddr"` TxHash string `json:"txHash"` ActionName string `json:"actionName"` }
type WalletTxDetails ¶
type WalletTxDetails struct {
TxDetails []*WalletTxDetail `json:"txDetails"`
}
Click to show internal directories.
Click to hide internal directories.