model

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2021 License: MPL-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 Block

type Block struct {
	Difficulty       int64
	Epoch            string
	ExtraData        string
	GasLimit         string
	GasUsed          string
	Hash             string
	LogBloom         string
	Miner            string
	MixHash          string
	Nonce            int64
	Number           string
	ParentHash       string
	ReceiptsRoot     string
	Size             string
	StateRoot        string
	Timestamp        string
	Transactions     []*Transaction
	TransactionsRoot string
	ViewID           string
}

func (*Block) Save

func (block *Block) Save() (map[string]bigquery.Value, string, error)
type Header struct {
	BlockHash   string `json:"blockHash"`
	BlockNumber int64  `json:"blockNumber"`
}

type Transaction

type Transaction struct {
	BlockHash        string
	BlockNumber      string
	EthHash          string
	From             string
	Gas              string
	GasPrice         string
	Hash             string
	Input            string
	Nonce            string
	R                string
	S                string
	ShardID          int64
	Timestamp        string
	To               string
	ToShardID        int64
	TransactionIndex string
	V                string
	Value            string
}

func (*Transaction) Save

func (txn *Transaction) Save() (map[string]bigquery.Value, string, error)

Jump to

Keyboard shortcuts

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