Documentation ¶
Overview ¶
Package bcostars comment This file was generated by tars2go 1.1.10 Generated from Block.tars
Package bcostars comment This file was generated by tars2go 1.1.10 Generated from Transaction.tars
Package bcostars comment This file was generated by tars2go 1.1.10 Generated from TransactionMetaData.tars
Package bcostars comment This file was generated by tars2go 1.1.10 Generated from TransactionReceipt.tars
Index ¶
- type Block
- type BlockHeader
- func (st *BlockHeader) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *BlockHeader) ReadFrom(readBuf *codec.Reader) error
- func (st *BlockHeader) ResetDefault()
- func (st *BlockHeader) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *BlockHeader) WriteTo(buf *codec.Buffer) (err error)
- type BlockHeaderData
- func (st *BlockHeaderData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *BlockHeaderData) ReadFrom(readBuf *codec.Reader) error
- func (st *BlockHeaderData) ResetDefault()
- func (st *BlockHeaderData) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *BlockHeaderData) WriteTo(buf *codec.Buffer) (err error)
- type LogEntry
- func (st *LogEntry) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *LogEntry) ReadFrom(readBuf *codec.Reader) error
- func (st *LogEntry) ResetDefault()
- func (st *LogEntry) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *LogEntry) WriteTo(buf *codec.Buffer) (err error)
- type ParentInfo
- func (st *ParentInfo) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *ParentInfo) ReadFrom(readBuf *codec.Reader) error
- func (st *ParentInfo) ResetDefault()
- func (st *ParentInfo) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *ParentInfo) WriteTo(buf *codec.Buffer) (err error)
- type Signature
- func (st *Signature) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *Signature) ReadFrom(readBuf *codec.Reader) error
- func (st *Signature) ResetDefault()
- func (st *Signature) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *Signature) WriteTo(buf *codec.Buffer) (err error)
- type Transaction
- func (st *Transaction) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *Transaction) ReadFrom(readBuf *codec.Reader) error
- func (st *Transaction) ResetDefault()
- func (st *Transaction) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *Transaction) WriteTo(buf *codec.Buffer) (err error)
- type TransactionData
- func (st *TransactionData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *TransactionData) ReadFrom(readBuf *codec.Reader) error
- func (st *TransactionData) ResetDefault()
- func (st *TransactionData) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *TransactionData) WriteTo(buf *codec.Buffer) (err error)
- type TransactionMetaData
- func (st *TransactionMetaData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *TransactionMetaData) ReadFrom(readBuf *codec.Reader) error
- func (st *TransactionMetaData) ResetDefault()
- func (st *TransactionMetaData) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *TransactionMetaData) WriteTo(buf *codec.Buffer) (err error)
- type TransactionReceipt
- func (st *TransactionReceipt) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *TransactionReceipt) ReadFrom(readBuf *codec.Reader) error
- func (st *TransactionReceipt) ResetDefault()
- func (st *TransactionReceipt) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *TransactionReceipt) WriteTo(buf *codec.Buffer) (err error)
- type TransactionReceiptData
- func (st *TransactionReceiptData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *TransactionReceiptData) ReadFrom(readBuf *codec.Reader) error
- func (st *TransactionReceiptData) ResetDefault()
- func (st *TransactionReceiptData) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *TransactionReceiptData) WriteTo(buf *codec.Buffer) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { Version int32 `json:"version"` Type int32 `json:"type"` BlockHeader BlockHeader `json:"blockHeader"` Transactions []Transaction `json:"transactions"` Receipts []TransactionReceipt `json:"receipts"` TransactionsMetaData []TransactionMetaData `json:"transactionsMetaData"` ReceiptsHash [][]int8 `json:"receiptsHash"` NonceList []string `json:"nonceList"` }
Block struct implement
func (*Block) ResetDefault ¶
func (st *Block) ResetDefault()
func (*Block) WriteBlock ¶
WriteBlock encode struct
type BlockHeader ¶
type BlockHeader struct { Data BlockHeaderData `json:"data"` DataHash []int8 `json:"dataHash"` SignatureList []Signature `json:"signatureList"` }
BlockHeader struct implement
func (*BlockHeader) ReadFrom ¶
func (st *BlockHeader) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*BlockHeader) ResetDefault ¶
func (st *BlockHeader) ResetDefault()
func (*BlockHeader) WriteBlock ¶
func (st *BlockHeader) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type BlockHeaderData ¶
type BlockHeaderData struct { Version int32 `json:"version"` ParentInfo []ParentInfo `json:"parentInfo"` TxsRoot []int8 `json:"txsRoot"` ReceiptRoot []int8 `json:"receiptRoot"` StateRoot []int8 `json:"stateRoot"` BlockNumber int64 `json:"blockNumber"` GasUsed string `json:"gasUsed"` Timestamp int64 `json:"timestamp"` Sealer int64 `json:"sealer"` SealerList [][]int8 `json:"sealerList"` ExtraData []int8 `json:"extraData"` ConsensusWeights []int64 `json:"consensusWeights"` }
BlockHeaderData struct implement
func (*BlockHeaderData) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*BlockHeaderData) ReadFrom ¶
func (st *BlockHeaderData) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*BlockHeaderData) ResetDefault ¶
func (st *BlockHeaderData) ResetDefault()
func (*BlockHeaderData) WriteBlock ¶
func (st *BlockHeaderData) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type LogEntry ¶
type LogEntry struct { Address string `json:"address"` Topic [][]int8 `json:"topic"` Data []int8 `json:"data"` }
LogEntry struct implement
func (*LogEntry) ResetDefault ¶
func (st *LogEntry) ResetDefault()
func (*LogEntry) WriteBlock ¶
WriteBlock encode struct
type ParentInfo ¶
type ParentInfo struct { BlockNumber int64 `json:"blockNumber"` BlockHash []int8 `json:"blockHash"` }
ParentInfo struct implement
func (*ParentInfo) ReadFrom ¶
func (st *ParentInfo) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*ParentInfo) ResetDefault ¶
func (st *ParentInfo) ResetDefault()
func (*ParentInfo) WriteBlock ¶
func (st *ParentInfo) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type Signature ¶
type Signature struct { SealerIndex int64 `json:"sealerIndex"` Signature []int8 `json:"signature"` }
Signature struct implement
func (*Signature) ResetDefault ¶
func (st *Signature) ResetDefault()
func (*Signature) WriteBlock ¶
WriteBlock encode struct
type Transaction ¶
type Transaction struct { Data TransactionData `json:"data"` DataHash []int8 `json:"dataHash"` Signature []int8 `json:"signature"` ImportTime int64 `json:"importTime"` Attribute int32 `json:"attribute"` Sender []int8 `json:"sender"` ExtraData string `json:"extraData"` }
Transaction struct implement
func (*Transaction) ReadFrom ¶
func (st *Transaction) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*Transaction) ResetDefault ¶
func (st *Transaction) ResetDefault()
func (*Transaction) WriteBlock ¶
func (st *Transaction) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type TransactionData ¶
type TransactionData struct { Version int32 `json:"version"` ChainID string `json:"chainID"` GroupID string `json:"groupID"` BlockLimit int64 `json:"blockLimit"` Nonce string `json:"nonce"` To string `json:"to"` Input []int8 `json:"input"` Abi string `json:"abi"` }
TransactionData struct implement
func (*TransactionData) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*TransactionData) ReadFrom ¶
func (st *TransactionData) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*TransactionData) ResetDefault ¶
func (st *TransactionData) ResetDefault()
func (*TransactionData) WriteBlock ¶
func (st *TransactionData) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type TransactionMetaData ¶
type TransactionMetaData struct { Hash []int8 `json:"hash"` To string `json:"to"` Source string `json:"source"` Attribute uint32 `json:"attribute"` }
TransactionMetaData struct implement
func (*TransactionMetaData) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*TransactionMetaData) ReadFrom ¶
func (st *TransactionMetaData) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*TransactionMetaData) ResetDefault ¶
func (st *TransactionMetaData) ResetDefault()
func (*TransactionMetaData) WriteBlock ¶
func (st *TransactionMetaData) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type TransactionReceipt ¶
type TransactionReceipt struct { Data TransactionReceiptData `json:"data"` DataHash []int8 `json:"dataHash"` }
TransactionReceipt struct implement
func (*TransactionReceipt) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*TransactionReceipt) ReadFrom ¶
func (st *TransactionReceipt) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*TransactionReceipt) ResetDefault ¶
func (st *TransactionReceipt) ResetDefault()
func (*TransactionReceipt) WriteBlock ¶
func (st *TransactionReceipt) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
type TransactionReceiptData ¶
type TransactionReceiptData struct { Version int32 `json:"version"` GasUsed string `json:"gasUsed"` ContractAddress string `json:"contractAddress"` Status int32 `json:"status"` Output []int8 `json:"output"` LogEntries []LogEntry `json:"logEntries"` BlockNumber int64 `json:"blockNumber"` }
TransactionReceiptData struct implement
func (*TransactionReceiptData) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*TransactionReceiptData) ReadFrom ¶
func (st *TransactionReceiptData) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*TransactionReceiptData) ResetDefault ¶
func (st *TransactionReceiptData) ResetDefault()
func (*TransactionReceiptData) WriteBlock ¶
func (st *TransactionReceiptData) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct