pb

package
v0.1.49 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: AGPL-3.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_transaction_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Block

type Block struct {
	Author           string         `protobuf:"bytes,1,opt,name=author,proto3" json:"author,omitempty"`
	Difficulty       string         `protobuf:"bytes,2,opt,name=difficulty,proto3" json:"difficulty,omitempty"`
	ExtraData        string         `protobuf:"bytes,3,opt,name=extraData,proto3" json:"extraData,omitempty"`
	GasLimit         string         `protobuf:"bytes,4,opt,name=gasLimit,proto3" json:"gasLimit,omitempty"`
	GasUsed          string         `protobuf:"bytes,5,opt,name=gasUsed,proto3" json:"gasUsed,omitempty"`
	Hash             string         `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	LogsBloom        string         `protobuf:"bytes,7,opt,name=logsBloom,proto3" json:"logsBloom,omitempty"`
	Miner            string         `protobuf:"bytes,8,opt,name=miner,proto3" json:"miner,omitempty"`
	Number           string         `protobuf:"bytes,9,opt,name=number,proto3" json:"number,omitempty"`
	ParentHash       string         `protobuf:"bytes,10,opt,name=parentHash,proto3" json:"parentHash,omitempty"`
	ReceiptsRoot     string         `protobuf:"bytes,11,opt,name=receiptsRoot,proto3" json:"receiptsRoot,omitempty"`
	Sha3Uncles       string         `protobuf:"bytes,12,opt,name=sha3Uncles,proto3" json:"sha3Uncles,omitempty"`
	Signature        string         `protobuf:"bytes,13,opt,name=signature,proto3" json:"signature,omitempty"`
	Size             string         `protobuf:"bytes,14,opt,name=size,proto3" json:"size,omitempty"`
	StateRoot        string         `protobuf:"bytes,15,opt,name=stateRoot,proto3" json:"stateRoot,omitempty"`
	Step             uint32         `protobuf:"varint,16,opt,name=step,proto3" json:"step,omitempty"`
	TotalDifficulty  string         `protobuf:"bytes,17,opt,name=totalDifficulty,proto3" json:"totalDifficulty,omitempty"`
	Timestamp        string         `protobuf:"bytes,18,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Transactions     []*Transaction `protobuf:"bytes,19,rep,name=transactions,proto3" json:"transactions,omitempty"`
	TransactionsRoot string         `protobuf:"bytes,20,opt,name=transactionsRoot,proto3" json:"transactionsRoot,omitempty"`
	Uncles           []string       `protobuf:"bytes,21,rep,name=uncles,proto3" json:"uncles,omitempty"`
	BaseFeePerGas    string         `protobuf:"bytes,22,opt,name=baseFeePerGas,proto3" json:"baseFeePerGas,omitempty"`
	MixHash          string         `protobuf:"bytes,23,opt,name=mixHash,proto3" json:"mixHash,omitempty"`
	Nonce            string         `protobuf:"bytes,24,opt,name=nonce,proto3" json:"nonce,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

func (*Block) GetAuthor

func (x *Block) GetAuthor() string

func (*Block) GetBaseFeePerGas

func (x *Block) GetBaseFeePerGas() string

func (*Block) GetDifficulty

func (x *Block) GetDifficulty() string

func (*Block) GetExtraData

func (x *Block) GetExtraData() string

func (*Block) GetGasLimit

func (x *Block) GetGasLimit() string

func (*Block) GetGasUsed

func (x *Block) GetGasUsed() string

func (*Block) GetHash

func (x *Block) GetHash() string

func (*Block) GetLogsBloom

func (x *Block) GetLogsBloom() string

func (*Block) GetMiner

func (x *Block) GetMiner() string

func (*Block) GetMixHash

func (x *Block) GetMixHash() string

func (*Block) GetNonce

func (x *Block) GetNonce() string

func (*Block) GetNumber

func (x *Block) GetNumber() string

func (*Block) GetParentHash

func (x *Block) GetParentHash() string

func (*Block) GetReceiptsRoot

func (x *Block) GetReceiptsRoot() string

func (*Block) GetSha3Uncles

func (x *Block) GetSha3Uncles() string

func (*Block) GetSignature

func (x *Block) GetSignature() string

func (*Block) GetSize

func (x *Block) GetSize() string

func (*Block) GetStateRoot

func (x *Block) GetStateRoot() string

func (*Block) GetStep

func (x *Block) GetStep() uint32

func (*Block) GetTimestamp

func (x *Block) GetTimestamp() string

func (*Block) GetTotalDifficulty

func (x *Block) GetTotalDifficulty() string

func (*Block) GetTransactions

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

func (*Block) GetTransactionsRoot

func (x *Block) GetTransactionsRoot() string

func (*Block) GetUncles

func (x *Block) GetUncles() []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 Transaction

type Transaction struct {
	Hash             string  `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
	Nonce            string  `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"`
	BlockHash        string  `protobuf:"bytes,3,opt,name=blockHash,proto3" json:"blockHash,omitempty"`
	BlockNumber      string  `protobuf:"bytes,4,opt,name=blockNumber,proto3" json:"blockNumber,omitempty"`
	TransactionIndex string  `protobuf:"bytes,5,opt,name=transactionIndex,proto3" json:"transactionIndex,omitempty"`
	From             string  `protobuf:"bytes,6,opt,name=from,proto3" json:"from,omitempty"`
	To               *string `protobuf:"bytes,7,opt,name=to,proto3,oneof" json:"to,omitempty"`
	Value            string  `protobuf:"bytes,8,opt,name=value,proto3" json:"value,omitempty"`
	GasPrice         string  `protobuf:"bytes,9,opt,name=gasPrice,proto3" json:"gasPrice,omitempty"`
	Gas              string  `protobuf:"bytes,10,opt,name=gas,proto3" json:"gas,omitempty"`
	Data             string  `protobuf:"bytes,11,opt,name=data,proto3" json:"data,omitempty"`
	Input            string  `protobuf:"bytes,12,opt,name=input,proto3" json:"input,omitempty"`
	Type             string  `protobuf:"bytes,13,opt,name=type,proto3" json:"type,omitempty"`
	V                string  `protobuf:"bytes,14,opt,name=v,proto3" json:"v,omitempty"`
	S                string  `protobuf:"bytes,15,opt,name=s,proto3" json:"s,omitempty"`
	R                string  `protobuf:"bytes,16,opt,name=r,proto3" json:"r,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) GetBlockNumber

func (x *Transaction) GetBlockNumber() string

func (*Transaction) GetData

func (x *Transaction) GetData() string

func (*Transaction) GetFrom

func (x *Transaction) GetFrom() string

func (*Transaction) GetGas

func (x *Transaction) GetGas() string

func (*Transaction) GetGasPrice

func (x *Transaction) GetGasPrice() string

func (*Transaction) GetHash

func (x *Transaction) GetHash() string

func (*Transaction) GetInput

func (x *Transaction) GetInput() string

func (*Transaction) GetNonce

func (x *Transaction) GetNonce() string

func (*Transaction) GetR

func (x *Transaction) GetR() string

func (*Transaction) GetS

func (x *Transaction) GetS() string

func (*Transaction) GetTo

func (x *Transaction) GetTo() string

func (*Transaction) GetTransactionIndex

func (x *Transaction) GetTransactionIndex() string

func (*Transaction) GetType

func (x *Transaction) GetType() string

func (*Transaction) GetV

func (x *Transaction) GetV() 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