bcostars

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

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

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) ReadBlock

func (st *Block) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*Block) ReadFrom

func (st *Block) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*Block) ResetDefault

func (st *Block) ResetDefault()

func (*Block) WriteBlock

func (st *Block) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*Block) WriteTo

func (st *Block) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type BlockHeader

type BlockHeader struct {
	Data          BlockHeaderData `json:"data"`
	DataHash      []int8          `json:"dataHash"`
	SignatureList []Signature     `json:"signatureList"`
}

BlockHeader struct implement

func (*BlockHeader) ReadBlock

func (st *BlockHeader) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*BlockHeader) WriteTo

func (st *BlockHeader) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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

func (st *BlockHeaderData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*BlockHeaderData) WriteTo

func (st *BlockHeaderData) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type LogEntry

type LogEntry struct {
	Address string   `json:"address"`
	Topic   [][]int8 `json:"topic"`
	Data    []int8   `json:"data"`
}

LogEntry struct implement

func (*LogEntry) ReadBlock

func (st *LogEntry) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*LogEntry) ReadFrom

func (st *LogEntry) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*LogEntry) ResetDefault

func (st *LogEntry) ResetDefault()

func (*LogEntry) WriteBlock

func (st *LogEntry) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*LogEntry) WriteTo

func (st *LogEntry) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type ParentInfo

type ParentInfo struct {
	BlockNumber int64  `json:"blockNumber"`
	BlockHash   []int8 `json:"blockHash"`
}

ParentInfo struct implement

func (*ParentInfo) ReadBlock

func (st *ParentInfo) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*ParentInfo) WriteTo

func (st *ParentInfo) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type Signature

type Signature struct {
	SealerIndex int64  `json:"sealerIndex"`
	Signature   []int8 `json:"signature"`
}

Signature struct implement

func (*Signature) ReadBlock

func (st *Signature) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

func (*Signature) ReadFrom

func (st *Signature) ReadFrom(readBuf *codec.Reader) error

ReadFrom reads from readBuf and put into struct.

func (*Signature) ResetDefault

func (st *Signature) ResetDefault()

func (*Signature) WriteBlock

func (st *Signature) WriteBlock(buf *codec.Buffer, tag byte) error

WriteBlock encode struct

func (*Signature) WriteTo

func (st *Signature) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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) ReadBlock

func (st *Transaction) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

ReadBlock reads struct from the given tag , require or optional.

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

func (*Transaction) WriteTo

func (st *Transaction) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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

func (st *TransactionData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*TransactionData) WriteTo

func (st *TransactionData) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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

func (st *TransactionMetaData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*TransactionMetaData) WriteTo

func (st *TransactionMetaData) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

type TransactionReceipt

type TransactionReceipt struct {
	Data     TransactionReceiptData `json:"data"`
	DataHash []int8                 `json:"dataHash"`
}

TransactionReceipt struct implement

func (*TransactionReceipt) ReadBlock

func (st *TransactionReceipt) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*TransactionReceipt) WriteTo

func (st *TransactionReceipt) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

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

func (st *TransactionReceiptData) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (*TransactionReceiptData) WriteTo

func (st *TransactionReceiptData) WriteTo(buf *codec.Buffer) (err error)

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL