proto

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_block_proto protoreflect.FileDescriptor
View Source
var File_event_proto protoreflect.FileDescriptor
View Source
var File_transaction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Hash                string         `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Number              uint64         `protobuf:"varint,2,opt,name=number,proto3" json:"number,omitempty"`
	Time                uint64         `protobuf:"varint,3,opt,name=time,proto3" json:"time,omitempty"`
	ParentHash          string         `protobuf:"bytes,4,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	Difficulty          string         `protobuf:"bytes,5,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	GasUsed             uint64         `protobuf:"varint,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`
	GasLimit            uint64         `protobuf:"varint,7,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"`
	Nonce               string         `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Miner               string         `protobuf:"bytes,9,opt,name=miner,proto3" json:"miner,omitempty"`
	Size                float64        `protobuf:"fixed64,10,opt,name=size,proto3" json:"size,omitempty"`
	StateRootHash       string         `protobuf:"bytes,11,opt,name=state_root_hash,json=stateRootHash,proto3" json:"state_root_hash,omitempty"`
	UncleHash           string         `protobuf:"bytes,12,opt,name=uncle_hash,json=uncleHash,proto3" json:"uncle_hash,omitempty"`
	TransactionRootHash string         `protobuf:"bytes,13,opt,name=transaction_root_hash,json=transactionRootHash,proto3" json:"transaction_root_hash,omitempty"`
	ReceiptRootHash     string         `protobuf:"bytes,14,opt,name=receipt_root_hash,json=receiptRootHash,proto3" json:"receipt_root_hash,omitempty"`
	ExtraData           []byte         `protobuf:"bytes,15,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
	Transactions        []*Transaction `protobuf:"bytes,16,rep,name=transactions,proto3" json:"transactions,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

func (*Block) Descriptor() ([]byte, []int)

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetDifficulty

func (x *Block) GetDifficulty() string

func (*Block) GetExtraData added in v1.7.0

func (x *Block) GetExtraData() []byte

func (*Block) GetGasLimit

func (x *Block) GetGasLimit() uint64

func (*Block) GetGasUsed

func (x *Block) GetGasUsed() uint64

func (*Block) GetHash

func (x *Block) GetHash() string

func (*Block) GetMiner

func (x *Block) GetMiner() string

func (*Block) GetNonce

func (x *Block) GetNonce() string

func (*Block) GetNumber

func (x *Block) GetNumber() uint64

func (*Block) GetParentHash

func (x *Block) GetParentHash() string

func (*Block) GetReceiptRootHash

func (x *Block) GetReceiptRootHash() string

func (*Block) GetSize

func (x *Block) GetSize() float64

func (*Block) GetStateRootHash added in v1.7.0

func (x *Block) GetStateRootHash() string

func (*Block) GetTime

func (x *Block) GetTime() uint64

func (*Block) GetTransactionRootHash

func (x *Block) GetTransactionRootHash() string

func (*Block) GetTransactions

func (x *Block) GetTransactions() []*Transaction

func (*Block) GetUncleHash added in v1.7.0

func (x *Block) GetUncleHash() string

func (*Block) ProtoMessage

func (*Block) ProtoMessage()

func (*Block) ProtoReflect

func (x *Block) ProtoReflect() protoreflect.Message

func (*Block) Reset

func (x *Block) Reset()

func (*Block) String

func (x *Block) String() string

type Event

type Event struct {
	BlockHash       string   `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	Index           uint32   `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
	Origin          string   `protobuf:"bytes,3,opt,name=origin,proto3" json:"origin,omitempty"`
	Topics          []string `protobuf:"bytes,4,rep,name=topics,proto3" json:"topics,omitempty"`
	Data            []byte   `protobuf:"bytes,5,opt,name=data,proto3" json:"data,omitempty"`
	TransactionHash string   `protobuf:"bytes,6,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Event) Descriptor deprecated

func (*Event) Descriptor() ([]byte, []int)

Deprecated: Use Event.ProtoReflect.Descriptor instead.

func (*Event) GetBlockHash

func (x *Event) GetBlockHash() string

func (*Event) GetData

func (x *Event) GetData() []byte

func (*Event) GetIndex

func (x *Event) GetIndex() uint32

func (*Event) GetOrigin

func (x *Event) GetOrigin() string

func (*Event) GetTopics

func (x *Event) GetTopics() []string

func (*Event) GetTransactionHash

func (x *Event) GetTransactionHash() string

func (*Event) ProtoMessage

func (*Event) ProtoMessage()

func (*Event) ProtoReflect

func (x *Event) ProtoReflect() protoreflect.Message

func (*Event) Reset

func (x *Event) Reset()

func (*Event) String

func (x *Event) String() string

type Transaction

type Transaction struct {
	Hash      string   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	From      string   `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
	To        string   `protobuf:"bytes,3,opt,name=to,proto3" json:"to,omitempty"`
	Contract  string   `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
	Value     string   `protobuf:"bytes,5,opt,name=value,proto3" json:"value,omitempty"`
	Data      []byte   `protobuf:"bytes,6,opt,name=data,proto3" json:"data,omitempty"`
	Gas       uint64   `protobuf:"varint,7,opt,name=gas,proto3" json:"gas,omitempty"`
	GasPrice  string   `protobuf:"bytes,8,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"`
	Cost      string   `protobuf:"bytes,9,opt,name=cost,proto3" json:"cost,omitempty"`
	Nonce     uint64   `protobuf:"varint,10,opt,name=nonce,proto3" json:"nonce,omitempty"`
	State     uint64   `protobuf:"varint,11,opt,name=state,proto3" json:"state,omitempty"`
	BlockHash string   `protobuf:"bytes,12,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	Events    []*Event `protobuf:"bytes,13,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

func (*Transaction) Descriptor() ([]byte, []int)

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetBlockHash

func (x *Transaction) GetBlockHash() string

func (*Transaction) GetContract

func (x *Transaction) GetContract() string

func (*Transaction) GetCost

func (x *Transaction) GetCost() string

func (*Transaction) GetData

func (x *Transaction) GetData() []byte

func (*Transaction) GetEvents

func (x *Transaction) GetEvents() []*Event

func (*Transaction) GetFrom

func (x *Transaction) GetFrom() string

func (*Transaction) GetGas

func (x *Transaction) GetGas() uint64

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() string

func (*Transaction) GetHash

func (x *Transaction) GetHash() string

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() uint64

func (*Transaction) GetState

func (x *Transaction) GetState() uint64

func (*Transaction) GetTo

func (x *Transaction) GetTo() string

func (*Transaction) GetValue

func (x *Transaction) GetValue() string

func (*Transaction) ProtoMessage

func (*Transaction) ProtoMessage()

func (*Transaction) ProtoReflect

func (x *Transaction) ProtoReflect() protoreflect.Message

func (*Transaction) Reset

func (x *Transaction) Reset()

func (*Transaction) String

func (x *Transaction) String() string

Jump to

Keyboard shortcuts

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