Versions in this module Expand all Collapse all v0 v0.3.15 Nov 25, 2024 v0.3.14 Nov 25, 2024 Changes in this version + var File_blockchain_ronin_saigon_ronin_saigon_index_types_proto protoreflect.FileDescriptor + func ToEntireBlocksBatchFromLogProto(obj *RoninSaigonBlocksBatch) *seer_common.BlocksBatchJson + func ToEvenFromLogProto(obj *RoninSaigonEventLog) *seer_common.EventJson + type Client struct + func NewClient(url string, timeout int) (*Client, error) + func (c *Client) BlockByHash(ctx context.Context, hash common.Hash) (*seer_common.BlockJson, error) + func (c *Client) ChainType() string + func (c *Client) ClientFilterLogs(ctx context.Context, q ethereum.FilterQuery, debug bool) ([]*seer_common.EventJson, error) + func (c *Client) Close() + func (c *Client) DecodeProtoBlocks(data []string) ([]*RoninSaigonBlock, error) + func (c *Client) DecodeProtoEntireBlockToJson(rawData *bytes.Buffer) (*seer_common.BlocksBatchJson, error) + func (c *Client) DecodeProtoEntireBlockToLabels(rawData *bytes.Buffer, abiMap map[string]map[string]*indexer.AbiEntry, ...) ([]indexer.EventLabel, []indexer.TransactionLabel, error) + func (c *Client) DecodeProtoEventLogs(data []string) ([]*RoninSaigonEventLog, error) + func (c *Client) DecodeProtoTransactions(data []string) ([]*RoninSaigonTransaction, error) + func (c *Client) DecodeProtoTransactionsToLabels(transactions []string, blocksCache map[uint64]uint64, ...) ([]indexer.TransactionLabel, error) + func (c *Client) FetchAsProtoBlocksWithEvents(from, to *big.Int, debug bool, maxRequests int) ([]proto.Message, []indexer.BlockIndex, uint64, error) + func (c *Client) FetchBlocksInRange(from, to *big.Int, debug bool) ([]*seer_common.BlockJson, error) + func (c *Client) FetchBlocksInRangeAsync(from, to *big.Int, debug bool, maxRequests int) ([]*seer_common.BlockJson, error) + func (c *Client) GetBlockByNumber(ctx context.Context, number *big.Int, withTransactions bool) (*seer_common.BlockJson, error) + func (c *Client) GetCode(ctx context.Context, address common.Address, blockNumber uint64) ([]byte, error) + func (c *Client) GetEventsLabels(startBlock uint64, endBlock uint64, ...) ([]indexer.EventLabel, error) + func (c *Client) GetLatestBlockNumber() (*big.Int, error) + func (c *Client) GetTransactionByHash(ctx context.Context, hash string) (*seer_common.TransactionJson, error) + func (c *Client) GetTransactionsLabels(startBlock uint64, endBlock uint64, ...) ([]indexer.TransactionLabel, map[uint64]seer_common.BlockWithTransactions, ...) + func (c *Client) ParseBlocksWithTransactions(from, to *big.Int, debug bool, maxRequests int) ([]*RoninSaigonBlock, error) + func (c *Client) ParseEvents(from, to *big.Int, blocksCache map[uint64]indexer.BlockCache, debug bool) ([]*RoninSaigonEventLog, error) + func (c *Client) ProcessBlocksToBatch(msgs []proto.Message) (proto.Message, error) + func (c *Client) TransactionReceipt(ctx context.Context, hash common.Hash) (*types.Receipt, error) + type RoninSaigonBlock struct + BaseFeePerGas string + BlockNumber uint64 + Difficulty uint64 + ExtraData string + GasLimit uint64 + GasUsed uint64 + Hash string + IndexedAt uint64 + LogsBloom string + Miner string + Nonce string + ParentHash string + ReceiptsRoot string + Sha3Uncles string + Size uint64 + StateRoot string + Timestamp uint64 + TotalDifficulty string + Transactions []*RoninSaigonTransaction + TransactionsRoot string + func ToProtoSingleBlock(obj *seer_common.BlockJson) *RoninSaigonBlock + func (*RoninSaigonBlock) Descriptor() ([]byte, []int) + func (*RoninSaigonBlock) ProtoMessage() + func (x *RoninSaigonBlock) GetBaseFeePerGas() string + func (x *RoninSaigonBlock) GetBlockNumber() uint64 + func (x *RoninSaigonBlock) GetDifficulty() uint64 + func (x *RoninSaigonBlock) GetExtraData() string + func (x *RoninSaigonBlock) GetGasLimit() uint64 + func (x *RoninSaigonBlock) GetGasUsed() uint64 + func (x *RoninSaigonBlock) GetHash() string + func (x *RoninSaigonBlock) GetIndexedAt() uint64 + func (x *RoninSaigonBlock) GetLogsBloom() string + func (x *RoninSaigonBlock) GetMiner() string + func (x *RoninSaigonBlock) GetNonce() string + func (x *RoninSaigonBlock) GetParentHash() string + func (x *RoninSaigonBlock) GetReceiptsRoot() string + func (x *RoninSaigonBlock) GetSha3Uncles() string + func (x *RoninSaigonBlock) GetSize() uint64 + func (x *RoninSaigonBlock) GetStateRoot() string + func (x *RoninSaigonBlock) GetTimestamp() uint64 + func (x *RoninSaigonBlock) GetTotalDifficulty() string + func (x *RoninSaigonBlock) GetTransactions() []*RoninSaigonTransaction + func (x *RoninSaigonBlock) GetTransactionsRoot() string + func (x *RoninSaigonBlock) ProtoReflect() protoreflect.Message + func (x *RoninSaigonBlock) Reset() + func (x *RoninSaigonBlock) String() string + type RoninSaigonBlocksBatch struct + Blocks []*RoninSaigonBlock + SeerVersion string + func (*RoninSaigonBlocksBatch) Descriptor() ([]byte, []int) + func (*RoninSaigonBlocksBatch) ProtoMessage() + func (x *RoninSaigonBlocksBatch) GetBlocks() []*RoninSaigonBlock + func (x *RoninSaigonBlocksBatch) GetSeerVersion() string + func (x *RoninSaigonBlocksBatch) ProtoReflect() protoreflect.Message + func (x *RoninSaigonBlocksBatch) Reset() + func (x *RoninSaigonBlocksBatch) String() string + type RoninSaigonEventLog struct + Address string + BlockHash string + BlockNumber uint64 + Data string + LogIndex uint64 + Removed bool + Topics []string + TransactionHash string + TransactionIndex uint64 + func ToProtoSingleEventLog(obj *seer_common.EventJson) *RoninSaigonEventLog + func (*RoninSaigonEventLog) Descriptor() ([]byte, []int) + func (*RoninSaigonEventLog) ProtoMessage() + func (x *RoninSaigonEventLog) GetAddress() string + func (x *RoninSaigonEventLog) GetBlockHash() string + func (x *RoninSaigonEventLog) GetBlockNumber() uint64 + func (x *RoninSaigonEventLog) GetData() string + func (x *RoninSaigonEventLog) GetLogIndex() uint64 + func (x *RoninSaigonEventLog) GetRemoved() bool + func (x *RoninSaigonEventLog) GetTopics() []string + func (x *RoninSaigonEventLog) GetTransactionHash() string + func (x *RoninSaigonEventLog) GetTransactionIndex() uint64 + func (x *RoninSaigonEventLog) ProtoReflect() protoreflect.Message + func (x *RoninSaigonEventLog) Reset() + func (x *RoninSaigonEventLog) String() string + type RoninSaigonTransaction struct + AccessList []*RoninSaigonTransactionAccessList + BlockHash string + BlockNumber uint64 + BlockTimestamp uint64 + ChainId string + FromAddress string + Gas string + GasPrice string + Hash string + IndexedAt uint64 + Input string + Logs []*RoninSaigonEventLog + MaxFeePerGas string + MaxPriorityFeePerGas string + Nonce string + R string + S string + ToAddress string + TransactionIndex uint64 + TransactionType uint64 + V string + Value string + YParity string + func ToProtoSingleTransaction(obj *seer_common.TransactionJson) *RoninSaigonTransaction + func (*RoninSaigonTransaction) Descriptor() ([]byte, []int) + func (*RoninSaigonTransaction) ProtoMessage() + func (x *RoninSaigonTransaction) GetAccessList() []*RoninSaigonTransactionAccessList + func (x *RoninSaigonTransaction) GetBlockHash() string + func (x *RoninSaigonTransaction) GetBlockNumber() uint64 + func (x *RoninSaigonTransaction) GetBlockTimestamp() uint64 + func (x *RoninSaigonTransaction) GetChainId() string + func (x *RoninSaigonTransaction) GetFromAddress() string + func (x *RoninSaigonTransaction) GetGas() string + func (x *RoninSaigonTransaction) GetGasPrice() string + func (x *RoninSaigonTransaction) GetHash() string + func (x *RoninSaigonTransaction) GetIndexedAt() uint64 + func (x *RoninSaigonTransaction) GetInput() string + func (x *RoninSaigonTransaction) GetLogs() []*RoninSaigonEventLog + func (x *RoninSaigonTransaction) GetMaxFeePerGas() string + func (x *RoninSaigonTransaction) GetMaxPriorityFeePerGas() string + func (x *RoninSaigonTransaction) GetNonce() string + func (x *RoninSaigonTransaction) GetR() string + func (x *RoninSaigonTransaction) GetS() string + func (x *RoninSaigonTransaction) GetToAddress() string + func (x *RoninSaigonTransaction) GetTransactionIndex() uint64 + func (x *RoninSaigonTransaction) GetTransactionType() uint64 + func (x *RoninSaigonTransaction) GetV() string + func (x *RoninSaigonTransaction) GetValue() string + func (x *RoninSaigonTransaction) GetYParity() string + func (x *RoninSaigonTransaction) ProtoReflect() protoreflect.Message + func (x *RoninSaigonTransaction) Reset() + func (x *RoninSaigonTransaction) String() string + type RoninSaigonTransactionAccessList struct + Address string + StorageKeys []string + func (*RoninSaigonTransactionAccessList) Descriptor() ([]byte, []int) + func (*RoninSaigonTransactionAccessList) ProtoMessage() + func (x *RoninSaigonTransactionAccessList) GetAddress() string + func (x *RoninSaigonTransactionAccessList) GetStorageKeys() []string + func (x *RoninSaigonTransactionAccessList) ProtoReflect() protoreflect.Message + func (x *RoninSaigonTransactionAccessList) Reset() + func (x *RoninSaigonTransactionAccessList) String() string