schema

package
v0.0.0-...-716ec33 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountBalanceUpdate

type AccountBalanceUpdate struct {
	Address []byte
	Balance []byte
	Nonce   int64
}

func NewAccountBalanceUpdate

func NewAccountBalanceUpdate() *AccountBalanceUpdate

func (*AccountBalanceUpdate) Schema

func (o *AccountBalanceUpdate) Schema() avro.Schema

type Block

type Block struct {
	Nonce                 int64
	Round                 int64
	Epoch                 int32
	Hash                  []byte
	MiniBlocks            []*MiniBlock
	NotarizedBlocksHashes [][]byte
	Proposer              int64
	Validators            []int64
	PubKeysBitmap         []byte
	Size                  int64
	Timestamp             int64
	StateRootHash         []byte
	PrevHash              []byte
	ShardID               int32
	TxCount               int32
	AccumulatedFees       []byte
	DeveloperFees         []byte
	EpochStartBlock       bool
	EpochStartInfo        *EpochStartInfo
}

func NewBlock

func NewBlock() *Block

func (*Block) Schema

func (o *Block) Schema() avro.Schema

type BlockResult

type BlockResult struct {
	Block        *Block
	Transactions []*Transaction
	SCResults    []*SCResult
	Receipts     []*Receipt
	Logs         []*Log
	StateChanges []*AccountBalanceUpdate
}

func NewBlockResult

func NewBlockResult() *BlockResult

func (*BlockResult) Schema

func (o *BlockResult) Schema() avro.Schema

type EpochStartInfo

type EpochStartInfo struct {
	TotalSupply                      []byte
	TotalToDistribute                []byte
	TotalNewlyMinted                 []byte
	RewardsPerBlock                  []byte
	RewardsForProtocolSustainability []byte
	NodePrice                        []byte
	PrevEpochStartRound              int32
	PrevEpochStartHash               []byte
}

func NewEpochStartInfo

func NewEpochStartInfo() *EpochStartInfo

func (*EpochStartInfo) Schema

func (o *EpochStartInfo) Schema() avro.Schema

type Event

type Event struct {
	Address    []byte
	Identifier []byte
	Topics     [][]byte
	Data       []byte
}

func NewEvent

func NewEvent() *Event

func (*Event) Schema

func (o *Event) Schema() avro.Schema

type Log

type Log struct {
	ID      []byte
	Address []byte
	Events  []*Event
}

func NewLog

func NewLog() *Log

func (*Log) Schema

func (o *Log) Schema() avro.Schema

type MiniBlock

type MiniBlock struct {
	Hash            []byte
	SenderShardID   int32
	ReceiverShardID int32
	Type            int32
	Timestamp       int64
	TxHashes        [][]byte
}

func NewMiniBlock

func NewMiniBlock() *MiniBlock

func (*MiniBlock) Schema

func (o *MiniBlock) Schema() avro.Schema

type Receipt

type Receipt struct {
	Hash      []byte
	Value     []byte
	Sender    []byte
	Data      []byte
	TxHash    []byte
	Timestamp int64
}

func NewReceipt

func NewReceipt() *Receipt

func (*Receipt) Schema

func (o *Receipt) Schema() avro.Schema

type SCResult

type SCResult struct {
	Hash           []byte
	Nonce          int64
	GasLimit       int64
	GasPrice       int64
	Value          []byte
	Sender         []byte
	Receiver       []byte
	RelayerAddr    []byte
	RelayedValue   []byte
	Code           []byte
	Data           []byte
	PrevTxHash     []byte
	OriginalTxHash []byte
	CallType       int32
	CodeMetadata   []byte
	ReturnMessage  []byte
	Timestamp      int64
}

func NewSCResult

func NewSCResult() *SCResult

func (*SCResult) Schema

func (o *SCResult) Schema() avro.Schema

type Transaction

type Transaction struct {
	Hash             []byte
	MiniBlockHash    []byte
	BlockHash        []byte
	Nonce            int64
	Round            int64
	Value            []byte
	Receiver         []byte
	Sender           []byte
	ReceiverShard    int32
	SenderShard      int32
	GasPrice         int64
	GasLimit         int64
	Data             []byte
	Signature        []byte
	Timestamp        int64
	SenderUserName   []byte
	ReceiverUserName []byte
}

func NewTransaction

func NewTransaction() *Transaction

func (*Transaction) Schema

func (o *Transaction) Schema() avro.Schema

Jump to

Keyboard shortcuts

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