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_ronin_index_types_proto protoreflect.FileDescriptor + func ToEntireBlocksBatchFromLogProto(obj *RoninBlocksBatch) *seer_common.BlocksBatchJson + func ToEvenFromLogProto(obj *RoninEventLog) *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) ([]*RoninBlock, 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) ([]*RoninEventLog, error) + func (c *Client) DecodeProtoTransactions(data []string) ([]*RoninTransaction, 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) ([]*RoninBlock, error) + func (c *Client) ParseEvents(from, to *big.Int, blocksCache map[uint64]indexer.BlockCache, debug bool) ([]*RoninEventLog, 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 RoninBlock 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 []*RoninTransaction + TransactionsRoot string + func ToProtoSingleBlock(obj *seer_common.BlockJson) *RoninBlock + func (*RoninBlock) Descriptor() ([]byte, []int) + func (*RoninBlock) ProtoMessage() + func (x *RoninBlock) GetBaseFeePerGas() string + func (x *RoninBlock) GetBlockNumber() uint64 + func (x *RoninBlock) GetDifficulty() uint64 + func (x *RoninBlock) GetExtraData() string + func (x *RoninBlock) GetGasLimit() uint64 + func (x *RoninBlock) GetGasUsed() uint64 + func (x *RoninBlock) GetHash() string + func (x *RoninBlock) GetIndexedAt() uint64 + func (x *RoninBlock) GetLogsBloom() string + func (x *RoninBlock) GetMiner() string + func (x *RoninBlock) GetNonce() string + func (x *RoninBlock) GetParentHash() string + func (x *RoninBlock) GetReceiptsRoot() string + func (x *RoninBlock) GetSha3Uncles() string + func (x *RoninBlock) GetSize() uint64 + func (x *RoninBlock) GetStateRoot() string + func (x *RoninBlock) GetTimestamp() uint64 + func (x *RoninBlock) GetTotalDifficulty() string + func (x *RoninBlock) GetTransactions() []*RoninTransaction + func (x *RoninBlock) GetTransactionsRoot() string + func (x *RoninBlock) ProtoReflect() protoreflect.Message + func (x *RoninBlock) Reset() + func (x *RoninBlock) String() string + type RoninBlocksBatch struct + Blocks []*RoninBlock + SeerVersion string + func (*RoninBlocksBatch) Descriptor() ([]byte, []int) + func (*RoninBlocksBatch) ProtoMessage() + func (x *RoninBlocksBatch) GetBlocks() []*RoninBlock + func (x *RoninBlocksBatch) GetSeerVersion() string + func (x *RoninBlocksBatch) ProtoReflect() protoreflect.Message + func (x *RoninBlocksBatch) Reset() + func (x *RoninBlocksBatch) String() string + type RoninEventLog 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) *RoninEventLog + func (*RoninEventLog) Descriptor() ([]byte, []int) + func (*RoninEventLog) ProtoMessage() + func (x *RoninEventLog) GetAddress() string + func (x *RoninEventLog) GetBlockHash() string + func (x *RoninEventLog) GetBlockNumber() uint64 + func (x *RoninEventLog) GetData() string + func (x *RoninEventLog) GetLogIndex() uint64 + func (x *RoninEventLog) GetRemoved() bool + func (x *RoninEventLog) GetTopics() []string + func (x *RoninEventLog) GetTransactionHash() string + func (x *RoninEventLog) GetTransactionIndex() uint64 + func (x *RoninEventLog) ProtoReflect() protoreflect.Message + func (x *RoninEventLog) Reset() + func (x *RoninEventLog) String() string + type RoninTransaction struct + AccessList []*RoninTransactionAccessList + BlockHash string + BlockNumber uint64 + BlockTimestamp uint64 + ChainId string + FromAddress string + Gas string + GasPrice string + Hash string + IndexedAt uint64 + Input string + Logs []*RoninEventLog + 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) *RoninTransaction + func (*RoninTransaction) Descriptor() ([]byte, []int) + func (*RoninTransaction) ProtoMessage() + func (x *RoninTransaction) GetAccessList() []*RoninTransactionAccessList + func (x *RoninTransaction) GetBlockHash() string + func (x *RoninTransaction) GetBlockNumber() uint64 + func (x *RoninTransaction) GetBlockTimestamp() uint64 + func (x *RoninTransaction) GetChainId() string + func (x *RoninTransaction) GetFromAddress() string + func (x *RoninTransaction) GetGas() string + func (x *RoninTransaction) GetGasPrice() string + func (x *RoninTransaction) GetHash() string + func (x *RoninTransaction) GetIndexedAt() uint64 + func (x *RoninTransaction) GetInput() string + func (x *RoninTransaction) GetLogs() []*RoninEventLog + func (x *RoninTransaction) GetMaxFeePerGas() string + func (x *RoninTransaction) GetMaxPriorityFeePerGas() string + func (x *RoninTransaction) GetNonce() string + func (x *RoninTransaction) GetR() string + func (x *RoninTransaction) GetS() string + func (x *RoninTransaction) GetToAddress() string + func (x *RoninTransaction) GetTransactionIndex() uint64 + func (x *RoninTransaction) GetTransactionType() uint64 + func (x *RoninTransaction) GetV() string + func (x *RoninTransaction) GetValue() string + func (x *RoninTransaction) GetYParity() string + func (x *RoninTransaction) ProtoReflect() protoreflect.Message + func (x *RoninTransaction) Reset() + func (x *RoninTransaction) String() string + type RoninTransactionAccessList struct + Address string + StorageKeys []string + func (*RoninTransactionAccessList) Descriptor() ([]byte, []int) + func (*RoninTransactionAccessList) ProtoMessage() + func (x *RoninTransactionAccessList) GetAddress() string + func (x *RoninTransactionAccessList) GetStorageKeys() []string + func (x *RoninTransactionAccessList) ProtoReflect() protoreflect.Message + func (x *RoninTransactionAccessList) Reset() + func (x *RoninTransactionAccessList) String() string