polygon

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_protos_chains_polygon_raw_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Access

type Access struct {
	Address     string   `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	StorageKeys []string `protobuf:"bytes,2,rep,name=storage_keys,json=storageKeys,proto3" json:"storage_keys,omitempty"`
	// contains filtered or unexported fields
}

func (*Access) Descriptor deprecated

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

Deprecated: Use Access.ProtoReflect.Descriptor instead.

func (*Access) GetAddress

func (x *Access) GetAddress() string

func (*Access) GetStorageKeys

func (x *Access) GetStorageKeys() []string

func (*Access) ProtoMessage

func (*Access) ProtoMessage()

func (*Access) ProtoReflect

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

func (*Access) Reset

func (x *Access) Reset()

func (*Access) String

func (x *Access) String() string

type Block

type Block struct {
	Number           string         `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"` // hex string
	Hash             string         `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	ParentHash       string         `protobuf:"bytes,3,opt,name=parent_hash,json=parentHash,proto3" json:"parent_hash,omitempty"`
	Nonce            string         `protobuf:"bytes,4,opt,name=nonce,proto3" json:"nonce,omitempty"`
	Sha3Uncles       string         `protobuf:"bytes,5,opt,name=sha3_uncles,json=sha3Uncles,proto3" json:"sha3_uncles,omitempty"`
	LogsBloom        string         `protobuf:"bytes,6,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`
	TransactionsRoot string         `protobuf:"bytes,7,opt,name=transactions_root,json=transactionsRoot,proto3" json:"transactions_root,omitempty"`
	StateRoot        string         `protobuf:"bytes,8,opt,name=state_root,json=stateRoot,proto3" json:"state_root,omitempty"`
	ReceiptsRoot     string         `protobuf:"bytes,9,opt,name=receipts_root,json=receiptsRoot,proto3" json:"receipts_root,omitempty"`
	Miner            string         `protobuf:"bytes,10,opt,name=miner,proto3" json:"miner,omitempty"`
	Difficulty       string         `protobuf:"bytes,11,opt,name=difficulty,proto3" json:"difficulty,omitempty"`                                  // hex string
	TotalDifficulty  string         `protobuf:"bytes,12,opt,name=total_difficulty,json=totalDifficulty,proto3" json:"total_difficulty,omitempty"` // hex string
	ExtraData        string         `protobuf:"bytes,13,opt,name=extra_data,json=extraData,proto3" json:"extra_data,omitempty"`
	Size             string         `protobuf:"bytes,14,opt,name=size,proto3" json:"size,omitempty"`                         // hex string
	GasLimit         string         `protobuf:"bytes,15,opt,name=gas_limit,json=gasLimit,proto3" json:"gas_limit,omitempty"` // hex string
	GasUsed          string         `protobuf:"bytes,16,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`    // hex string
	Timestamp        string         `protobuf:"bytes,17,opt,name=timestamp,proto3" json:"timestamp,omitempty"`               // hex string
	Transactions     []*Transaction `protobuf:"bytes,18,rep,name=transactions,proto3" json:"transactions,omitempty"`
	Uncles           []string       `protobuf:"bytes,19,rep,name=uncles,proto3" json:"uncles,omitempty"`
	// extra fields from alchemy and quicknode
	BaseFeePerGas string `protobuf:"bytes,20,opt,name=base_fee_per_gas,json=baseFeePerGas,proto3" json:"base_fee_per_gas,omitempty"` // hex string
	MixHash       string `protobuf:"bytes,21,opt,name=mix_hash,json=mixHash,proto3" json:"mix_hash,omitempty"`
	// contains filtered or unexported fields
}

func (*Block) Descriptor deprecated

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

Deprecated: Use Block.ProtoReflect.Descriptor instead.

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

func (x *Block) GetSize() string

func (*Block) GetStateRoot

func (x *Block) GetStateRoot() string

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 CallTrace

type CallTrace struct {
	Type         string       `protobuf:"bytes,1,opt,name=type,proto3" json:"type,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"`
	Value        string       `protobuf:"bytes,4,opt,name=value,proto3" json:"value,omitempty"`                    // hex string
	Gas          string       `protobuf:"bytes,5,opt,name=gas,proto3" json:"gas,omitempty"`                        // hex string
	GasUsed      string       `protobuf:"bytes,6,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"` // hex string
	Input        string       `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"`
	Output       string       `protobuf:"bytes,8,opt,name=output,proto3" json:"output,omitempty"`
	Time         string       `protobuf:"bytes,9,opt,name=time,proto3" json:"time,omitempty"`
	Error        string       `protobuf:"bytes,10,opt,name=error,proto3" json:"error,omitempty"`
	RevertReason string       `protobuf:"bytes,11,opt,name=revert_reason,json=revertReason,proto3" json:"revert_reason,omitempty"`
	Calls        []*CallTrace `protobuf:"bytes,12,rep,name=calls,proto3" json:"calls,omitempty"`
	// contains filtered or unexported fields
}

quicknode structure

func (*CallTrace) Descriptor deprecated

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

Deprecated: Use CallTrace.ProtoReflect.Descriptor instead.

func (*CallTrace) GetCalls

func (x *CallTrace) GetCalls() []*CallTrace

func (*CallTrace) GetError

func (x *CallTrace) GetError() string

func (*CallTrace) GetFrom

func (x *CallTrace) GetFrom() string

func (*CallTrace) GetGas

func (x *CallTrace) GetGas() string

func (*CallTrace) GetGasUsed

func (x *CallTrace) GetGasUsed() string

func (*CallTrace) GetInput

func (x *CallTrace) GetInput() string

func (*CallTrace) GetOutput

func (x *CallTrace) GetOutput() string

func (*CallTrace) GetRevertReason

func (x *CallTrace) GetRevertReason() string

func (*CallTrace) GetTime

func (x *CallTrace) GetTime() string

func (*CallTrace) GetTo

func (x *CallTrace) GetTo() string

func (*CallTrace) GetType

func (x *CallTrace) GetType() string

func (*CallTrace) GetValue

func (x *CallTrace) GetValue() string

func (*CallTrace) ProtoMessage

func (*CallTrace) ProtoMessage()

func (*CallTrace) ProtoReflect

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

func (*CallTrace) Reset

func (x *CallTrace) Reset()

func (*CallTrace) String

func (x *CallTrace) String() string

type Data

type Data struct {
	Block               *Block                `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"`
	TransactionReceipts []*TransactionReceipt `protobuf:"bytes,2,rep,name=transaction_receipts,json=transactionReceipts,proto3" json:"transaction_receipts,omitempty"`
	CallTraces          []*CallTrace          `protobuf:"bytes,3,rep,name=call_traces,json=callTraces,proto3" json:"call_traces,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) Descriptor deprecated

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

Deprecated: Use Data.ProtoReflect.Descriptor instead.

func (*Data) GetBlock

func (x *Data) GetBlock() *Block

func (*Data) GetCallTraces

func (x *Data) GetCallTraces() []*CallTrace

func (*Data) GetTransactionReceipts

func (x *Data) GetTransactionReceipts() []*TransactionReceipt

func (*Data) ProtoMessage

func (*Data) ProtoMessage()

func (*Data) ProtoReflect

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

func (*Data) Reset

func (x *Data) Reset()

func (*Data) String

func (x *Data) String() string

type Log

type Log struct {
	Removed          bool     `protobuf:"varint,1,opt,name=removed,proto3" json:"removed,omitempty"`
	LogIndex         string   `protobuf:"bytes,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"`                         // hex string
	TransactionIndex string   `protobuf:"bytes,3,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // hex string
	TransactionHash  string   `protobuf:"bytes,4,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	BlockNumber      string   `protobuf:"bytes,5,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // hex string
	BlockHash        string   `protobuf:"bytes,6,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	Address          string   `protobuf:"bytes,7,opt,name=address,proto3" json:"address,omitempty"`
	Data             string   `protobuf:"bytes,8,opt,name=data,proto3" json:"data,omitempty"`
	Topics           []string `protobuf:"bytes,9,rep,name=topics,proto3" json:"topics,omitempty"`
	// contains filtered or unexported fields
}

func (*Log) Descriptor deprecated

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

Deprecated: Use Log.ProtoReflect.Descriptor instead.

func (*Log) GetAddress

func (x *Log) GetAddress() string

func (*Log) GetBlockHash

func (x *Log) GetBlockHash() string

func (*Log) GetBlockNumber

func (x *Log) GetBlockNumber() string

func (*Log) GetData

func (x *Log) GetData() string

func (*Log) GetLogIndex

func (x *Log) GetLogIndex() string

func (*Log) GetRemoved

func (x *Log) GetRemoved() bool

func (*Log) GetTopics

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

func (*Log) GetTransactionHash

func (x *Log) GetTransactionHash() string

func (*Log) GetTransactionIndex

func (x *Log) GetTransactionIndex() string

func (*Log) ProtoMessage

func (*Log) ProtoMessage()

func (*Log) ProtoReflect

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

func (*Log) Reset

func (x *Log) Reset()

func (*Log) String

func (x *Log) String() string

type Transaction

type Transaction struct {
	BlockHash        string `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`       // hex string
	BlockNumber      string `protobuf:"bytes,2,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // hex string
	From             string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	Gas              string `protobuf:"bytes,4,opt,name=gas,proto3" json:"gas,omitempty"`                           // hex string
	GasPrice         string `protobuf:"bytes,5,opt,name=gas_price,json=gasPrice,proto3" json:"gas_price,omitempty"` // hex string
	Hash             string `protobuf:"bytes,6,opt,name=hash,proto3" json:"hash,omitempty"`
	Input            string `protobuf:"bytes,7,opt,name=input,proto3" json:"input,omitempty"`
	Nonce            string `protobuf:"bytes,8,opt,name=nonce,proto3" json:"nonce,omitempty"` // hex string
	To               string `protobuf:"bytes,9,opt,name=to,proto3" json:"to,omitempty"`
	TransactionIndex string `protobuf:"bytes,10,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // hex string
	Value            string `protobuf:"bytes,11,opt,name=value,proto3" json:"value,omitempty"`                                               // hex string
	V                string `protobuf:"bytes,12,opt,name=v,proto3" json:"v,omitempty"`
	R                string `protobuf:"bytes,13,opt,name=r,proto3" json:"r,omitempty"`
	S                string `protobuf:"bytes,14,opt,name=s,proto3" json:"s,omitempty"`
	// extra fields from alchemy and quicknode
	AccessList           []*Access `protobuf:"bytes,15,rep,name=access_list,json=accessList,proto3" json:"access_list,omitempty"`
	ChainId              string    `protobuf:"bytes,16,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`                    // hex string
	MaxFeePerGas         string    `protobuf:"bytes,17,opt,name=max_fee_per_gas,json=maxFeePerGas,proto3" json:"max_fee_per_gas,omitempty"` // hex string
	MaxPriorityFeePerGas string    ``                                                                                                       // hex string
	/* 128-byte string literal not displayed */
	Type string `protobuf:"bytes,19,opt,name=type,proto3" json:"type,omitempty"` // hex string
	// contains filtered or unexported fields
}

func (*Transaction) Descriptor deprecated

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

Deprecated: Use Transaction.ProtoReflect.Descriptor instead.

func (*Transaction) GetAccessList

func (x *Transaction) GetAccessList() []*Access

func (*Transaction) GetBlockHash

func (x *Transaction) GetBlockHash() string

func (*Transaction) GetBlockNumber

func (x *Transaction) GetBlockNumber() string

func (*Transaction) GetChainId

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

func (x *Transaction) GetMaxFeePerGas() string

func (*Transaction) GetMaxPriorityFeePerGas

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

type TransactionReceipt

type TransactionReceipt struct {
	TransactionHash   string `protobuf:"bytes,1,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
	TransactionIndex  string `protobuf:"bytes,2,opt,name=transaction_index,json=transactionIndex,proto3" json:"transaction_index,omitempty"` // hex string
	BlockHash         string `protobuf:"bytes,3,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	BlockNumber       string `protobuf:"bytes,4,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` // hex string
	From              string `protobuf:"bytes,5,opt,name=from,proto3" json:"from,omitempty"`
	To                string `protobuf:"bytes,6,opt,name=to,proto3" json:"to,omitempty"`
	CumulativeGasUsed string `protobuf:"bytes,7,opt,name=cumulative_gas_used,json=cumulativeGasUsed,proto3" json:"cumulative_gas_used,omitempty"` // hex string
	EffectiveGasPrice string `protobuf:"bytes,8,opt,name=effective_gas_price,json=effectiveGasPrice,proto3" json:"effective_gas_price,omitempty"` // hex string
	GasUsed           string `protobuf:"bytes,9,opt,name=gas_used,json=gasUsed,proto3" json:"gas_used,omitempty"`                                 // hex string
	ContractAddress   string `protobuf:"bytes,10,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	Logs              []*Log `protobuf:"bytes,11,rep,name=logs,proto3" json:"logs,omitempty"`
	LogsBloom         string `protobuf:"bytes,12,opt,name=logs_bloom,json=logsBloom,proto3" json:"logs_bloom,omitempty"`
	Type              string `protobuf:"bytes,13,opt,name=type,proto3" json:"type,omitempty"` // hex string
	Root              string `protobuf:"bytes,14,opt,name=root,proto3" json:"root,omitempty"`
	Status            string `protobuf:"bytes,15,opt,name=status,proto3" json:"status,omitempty"` // hex string
	// contains filtered or unexported fields
}

func (*TransactionReceipt) Descriptor deprecated

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

Deprecated: Use TransactionReceipt.ProtoReflect.Descriptor instead.

func (*TransactionReceipt) GetBlockHash

func (x *TransactionReceipt) GetBlockHash() string

func (*TransactionReceipt) GetBlockNumber

func (x *TransactionReceipt) GetBlockNumber() string

func (*TransactionReceipt) GetContractAddress

func (x *TransactionReceipt) GetContractAddress() string

func (*TransactionReceipt) GetCumulativeGasUsed

func (x *TransactionReceipt) GetCumulativeGasUsed() string

func (*TransactionReceipt) GetEffectiveGasPrice

func (x *TransactionReceipt) GetEffectiveGasPrice() string

func (*TransactionReceipt) GetFrom

func (x *TransactionReceipt) GetFrom() string

func (*TransactionReceipt) GetGasUsed

func (x *TransactionReceipt) GetGasUsed() string

func (*TransactionReceipt) GetLogs

func (x *TransactionReceipt) GetLogs() []*Log

func (*TransactionReceipt) GetLogsBloom

func (x *TransactionReceipt) GetLogsBloom() string

func (*TransactionReceipt) GetRoot

func (x *TransactionReceipt) GetRoot() string

func (*TransactionReceipt) GetStatus

func (x *TransactionReceipt) GetStatus() string

func (*TransactionReceipt) GetTo

func (x *TransactionReceipt) GetTo() string

func (*TransactionReceipt) GetTransactionHash

func (x *TransactionReceipt) GetTransactionHash() string

func (*TransactionReceipt) GetTransactionIndex

func (x *TransactionReceipt) GetTransactionIndex() string

func (*TransactionReceipt) GetType

func (x *TransactionReceipt) GetType() string

func (*TransactionReceipt) ProtoMessage

func (*TransactionReceipt) ProtoMessage()

func (*TransactionReceipt) ProtoReflect

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

func (*TransactionReceipt) Reset

func (x *TransactionReceipt) Reset()

func (*TransactionReceipt) String

func (x *TransactionReceipt) String() string

Jump to

Keyboard shortcuts

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