Versions in this module Expand all Collapse all v0 v0.3.15 Nov 25, 2024 v0.3.14 Nov 25, 2024 v0.3.5 Oct 10, 2024 v0.3.2 Oct 9, 2024 v0.3.1 Oct 8, 2024 v0.3.0 Oct 8, 2024 Changes in this version + var File_blockchain_mantle_mantle_index_types_proto protoreflect.FileDescriptor + func ToEntireBlocksBatchFromLogProto(obj *MantleBlocksBatch) *seer_common.BlocksBatchJson + func ToEvenFromLogProto(obj *MantleEventLog) *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) ([]*MantleBlock, 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) ([]*MantleEventLog, error) + func (c *Client) DecodeProtoTransactions(data []string) ([]*MantleTransaction, 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) ([]*MantleBlock, error) + func (c *Client) ParseEvents(from, to *big.Int, blocksCache map[uint64]indexer.BlockCache, debug bool) ([]*MantleEventLog, 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 MantleBlock 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 []*MantleTransaction + TransactionsRoot string + func ToProtoSingleBlock(obj *seer_common.BlockJson) *MantleBlock + func (*MantleBlock) Descriptor() ([]byte, []int) + func (*MantleBlock) ProtoMessage() + func (x *MantleBlock) GetBaseFeePerGas() string + func (x *MantleBlock) GetBlockNumber() uint64 + func (x *MantleBlock) GetDifficulty() uint64 + func (x *MantleBlock) GetExtraData() string + func (x *MantleBlock) GetGasLimit() uint64 + func (x *MantleBlock) GetGasUsed() uint64 + func (x *MantleBlock) GetHash() string + func (x *MantleBlock) GetIndexedAt() uint64 + func (x *MantleBlock) GetLogsBloom() string + func (x *MantleBlock) GetMiner() string + func (x *MantleBlock) GetNonce() string + func (x *MantleBlock) GetParentHash() string + func (x *MantleBlock) GetReceiptsRoot() string + func (x *MantleBlock) GetSha3Uncles() string + func (x *MantleBlock) GetSize() uint64 + func (x *MantleBlock) GetStateRoot() string + func (x *MantleBlock) GetTimestamp() uint64 + func (x *MantleBlock) GetTotalDifficulty() string + func (x *MantleBlock) GetTransactions() []*MantleTransaction + func (x *MantleBlock) GetTransactionsRoot() string + func (x *MantleBlock) ProtoReflect() protoreflect.Message + func (x *MantleBlock) Reset() + func (x *MantleBlock) String() string + type MantleBlocksBatch struct + Blocks []*MantleBlock + SeerVersion string + func (*MantleBlocksBatch) Descriptor() ([]byte, []int) + func (*MantleBlocksBatch) ProtoMessage() + func (x *MantleBlocksBatch) GetBlocks() []*MantleBlock + func (x *MantleBlocksBatch) GetSeerVersion() string + func (x *MantleBlocksBatch) ProtoReflect() protoreflect.Message + func (x *MantleBlocksBatch) Reset() + func (x *MantleBlocksBatch) String() string + type MantleEventLog 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) *MantleEventLog + func (*MantleEventLog) Descriptor() ([]byte, []int) + func (*MantleEventLog) ProtoMessage() + func (x *MantleEventLog) GetAddress() string + func (x *MantleEventLog) GetBlockHash() string + func (x *MantleEventLog) GetBlockNumber() uint64 + func (x *MantleEventLog) GetData() string + func (x *MantleEventLog) GetLogIndex() uint64 + func (x *MantleEventLog) GetRemoved() bool + func (x *MantleEventLog) GetTopics() []string + func (x *MantleEventLog) GetTransactionHash() string + func (x *MantleEventLog) GetTransactionIndex() uint64 + func (x *MantleEventLog) ProtoReflect() protoreflect.Message + func (x *MantleEventLog) Reset() + func (x *MantleEventLog) String() string + type MantleTransaction struct + AccessList []*MantleTransactionAccessList + BlockHash string + BlockNumber uint64 + BlockTimestamp uint64 + ChainId string + FromAddress string + Gas string + GasPrice string + Hash string + IndexedAt uint64 + Input string + Logs []*MantleEventLog + 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) *MantleTransaction + func (*MantleTransaction) Descriptor() ([]byte, []int) + func (*MantleTransaction) ProtoMessage() + func (x *MantleTransaction) GetAccessList() []*MantleTransactionAccessList + func (x *MantleTransaction) GetBlockHash() string + func (x *MantleTransaction) GetBlockNumber() uint64 + func (x *MantleTransaction) GetBlockTimestamp() uint64 + func (x *MantleTransaction) GetChainId() string + func (x *MantleTransaction) GetFromAddress() string + func (x *MantleTransaction) GetGas() string + func (x *MantleTransaction) GetGasPrice() string + func (x *MantleTransaction) GetHash() string + func (x *MantleTransaction) GetIndexedAt() uint64 + func (x *MantleTransaction) GetInput() string + func (x *MantleTransaction) GetLogs() []*MantleEventLog + func (x *MantleTransaction) GetMaxFeePerGas() string + func (x *MantleTransaction) GetMaxPriorityFeePerGas() string + func (x *MantleTransaction) GetNonce() string + func (x *MantleTransaction) GetR() string + func (x *MantleTransaction) GetS() string + func (x *MantleTransaction) GetToAddress() string + func (x *MantleTransaction) GetTransactionIndex() uint64 + func (x *MantleTransaction) GetTransactionType() uint64 + func (x *MantleTransaction) GetV() string + func (x *MantleTransaction) GetValue() string + func (x *MantleTransaction) GetYParity() string + func (x *MantleTransaction) ProtoReflect() protoreflect.Message + func (x *MantleTransaction) Reset() + func (x *MantleTransaction) String() string + type MantleTransactionAccessList struct + Address string + StorageKeys []string + func (*MantleTransactionAccessList) Descriptor() ([]byte, []int) + func (*MantleTransactionAccessList) ProtoMessage() + func (x *MantleTransactionAccessList) GetAddress() string + func (x *MantleTransactionAccessList) GetStorageKeys() []string + func (x *MantleTransactionAccessList) ProtoReflect() protoreflect.Message + func (x *MantleTransactionAccessList) Reset() + func (x *MantleTransactionAccessList) String() string