Documentation
¶
Index ¶
- type CacheBlock
- type EpochStats
- func (epochStats *EpochStats) GetAttestorAssignments() map[string][]uint64
- func (epochStats *EpochStats) GetDependentStateRef() string
- func (epochStats *EpochStats) GetProposerAssignments() map[uint64]uint64
- func (epochStats *EpochStats) GetSyncAssignments() []uint64
- func (epochStats *EpochStats) IsReady() bool
- func (epochStats *EpochStats) IsValidatorsReady() bool
- type EpochValidatorStats
- type EpochVotes
- type HeadFork
- type Indexer
- func (indexer *Indexer) AddClient(index uint8, endpoint *types.EndpointConfig) *IndexerClient
- func (indexer *Indexer) BuildLiveBlock(block *CacheBlock) *dbtypes.Block
- func (indexer *Indexer) BuildLiveEpoch(epoch uint64) *dbtypes.Epoch
- func (indexer *Indexer) GetCachedBlock(root []byte) *CacheBlock
- func (indexer *Indexer) GetCachedBlockByStateroot(stateroot []byte) *CacheBlock
- func (indexer *Indexer) GetCachedBlocks(slot uint64) []*CacheBlock
- func (indexer *Indexer) GetCachedBlocksByExecutionBlockHash(hash []byte) []*CacheBlock
- func (indexer *Indexer) GetCachedBlocksByExecutionBlockNumber(number uint64) []*CacheBlock
- func (indexer *Indexer) GetCachedBlocksByParentRoot(parentRoot []byte) []*CacheBlock
- func (indexer *Indexer) GetCachedBlocksByProposer(proposer uint64) []*CacheBlock
- func (indexer *Indexer) GetCachedEpochStats(epoch uint64) *EpochStats
- func (indexer *Indexer) GetCachedValidatorSet() *rpctypes.StandardV1StateValidatorsResponse
- func (indexer *Indexer) GetCanonicalHead() (uint64, []byte)
- func (indexer *Indexer) GetClients() []*IndexerClient
- func (indexer *Indexer) GetEpochVotes(epoch uint64) (*EpochStats, *EpochVotes)
- func (indexer *Indexer) GetFinalizedEpoch() (int64, []byte)
- func (indexer *Indexer) GetFirstCachedCanonicalBlock(epoch uint64, head []byte) *CacheBlock
- func (indexer *Indexer) GetHeadForks() []*HeadFork
- func (indexer *Indexer) GetHighestSlot() uint64
- func (indexer *Indexer) GetReadyClient(archive bool, head []byte, skip []*IndexerClient) *IndexerClient
- func (indexer *Indexer) GetReadyClients(archive bool, head []byte) []*IndexerClient
- func (indexer *Indexer) GetRpcClient(archive bool, head []byte) *rpc.BeaconClient
- type IndexerClient
- func (client *IndexerClient) GetIndex() uint8
- func (client *IndexerClient) GetLastHead() (int64, []byte)
- func (client *IndexerClient) GetName() string
- func (client *IndexerClient) GetRpcClient() *rpc.BeaconClient
- func (client *IndexerClient) GetStatus() string
- func (client *IndexerClient) GetVersion() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheBlock ¶ added in v1.3.0
type CacheBlock struct {
Root []byte
Slot uint64
Refs struct {
ExecutionHash []byte
ExecutionNumber uint64
}
// contains filtered or unexported fields
}
func (*CacheBlock) GetBlockBody ¶ added in v1.3.0
func (block *CacheBlock) GetBlockBody() *rpctypes.SignedBeaconBlock
func (*CacheBlock) GetHeader ¶ added in v1.3.0
func (block *CacheBlock) GetHeader() *rpctypes.SignedBeaconBlockHeader
func (*CacheBlock) GetParentRoot ¶ added in v1.3.0
func (block *CacheBlock) GetParentRoot() []byte
func (*CacheBlock) IsCanonical ¶ added in v1.3.0
func (block *CacheBlock) IsCanonical(indexer *Indexer, head []byte) bool
func (*CacheBlock) IsReady ¶ added in v1.3.1
func (block *CacheBlock) IsReady() bool
type EpochStats ¶
type EpochStats struct {
Epoch uint64
DependentRoot []byte
// contains filtered or unexported fields
}
func (*EpochStats) GetAttestorAssignments ¶ added in v1.3.0
func (epochStats *EpochStats) GetAttestorAssignments() map[string][]uint64
func (*EpochStats) GetDependentStateRef ¶ added in v1.3.0
func (epochStats *EpochStats) GetDependentStateRef() string
func (*EpochStats) GetProposerAssignments ¶ added in v1.3.0
func (epochStats *EpochStats) GetProposerAssignments() map[uint64]uint64
func (*EpochStats) GetSyncAssignments ¶ added in v1.3.0
func (epochStats *EpochStats) GetSyncAssignments() []uint64
func (*EpochStats) IsReady ¶ added in v1.4.0
func (epochStats *EpochStats) IsReady() bool
func (*EpochStats) IsValidatorsReady ¶ added in v1.4.0
func (epochStats *EpochStats) IsValidatorsReady() bool
type EpochValidatorStats ¶ added in v1.3.0
type EpochVotes ¶
type HeadFork ¶ added in v1.3.0
type HeadFork struct {
Slot uint64
Root []byte
ReadyClients []*IndexerClient
AllClients []*IndexerClient
}
type Indexer ¶
type Indexer struct {
// contains filtered or unexported fields
}
func NewIndexer ¶
func (*Indexer) AddClient ¶ added in v1.3.0
func (indexer *Indexer) AddClient(index uint8, endpoint *types.EndpointConfig) *IndexerClient
func (*Indexer) BuildLiveBlock ¶
func (indexer *Indexer) BuildLiveBlock(block *CacheBlock) *dbtypes.Block
func (*Indexer) BuildLiveEpoch ¶
func (*Indexer) GetCachedBlock ¶
func (indexer *Indexer) GetCachedBlock(root []byte) *CacheBlock
func (*Indexer) GetCachedBlockByStateroot ¶
func (indexer *Indexer) GetCachedBlockByStateroot(stateroot []byte) *CacheBlock
func (*Indexer) GetCachedBlocks ¶
func (indexer *Indexer) GetCachedBlocks(slot uint64) []*CacheBlock
func (*Indexer) GetCachedBlocksByExecutionBlockHash ¶ added in v1.4.0
func (indexer *Indexer) GetCachedBlocksByExecutionBlockHash(hash []byte) []*CacheBlock
func (*Indexer) GetCachedBlocksByExecutionBlockNumber ¶ added in v1.4.0
func (indexer *Indexer) GetCachedBlocksByExecutionBlockNumber(number uint64) []*CacheBlock
func (*Indexer) GetCachedBlocksByParentRoot ¶ added in v1.3.0
func (indexer *Indexer) GetCachedBlocksByParentRoot(parentRoot []byte) []*CacheBlock
func (*Indexer) GetCachedBlocksByProposer ¶ added in v1.3.0
func (indexer *Indexer) GetCachedBlocksByProposer(proposer uint64) []*CacheBlock
func (*Indexer) GetCachedEpochStats ¶
func (indexer *Indexer) GetCachedEpochStats(epoch uint64) *EpochStats
func (*Indexer) GetCachedValidatorSet ¶
func (indexer *Indexer) GetCachedValidatorSet() *rpctypes.StandardV1StateValidatorsResponse
func (*Indexer) GetCanonicalHead ¶ added in v1.3.0
func (*Indexer) GetClients ¶ added in v1.3.0
func (indexer *Indexer) GetClients() []*IndexerClient
func (*Indexer) GetEpochVotes ¶ added in v1.1.0
func (indexer *Indexer) GetEpochVotes(epoch uint64) (*EpochStats, *EpochVotes)
func (*Indexer) GetFinalizedEpoch ¶ added in v1.3.0
func (*Indexer) GetFirstCachedCanonicalBlock ¶ added in v1.3.1
func (indexer *Indexer) GetFirstCachedCanonicalBlock(epoch uint64, head []byte) *CacheBlock
func (*Indexer) GetHeadForks ¶ added in v1.3.0
func (*Indexer) GetHighestSlot ¶ added in v1.3.0
func (*Indexer) GetReadyClient ¶ added in v1.3.1
func (indexer *Indexer) GetReadyClient(archive bool, head []byte, skip []*IndexerClient) *IndexerClient
func (*Indexer) GetReadyClients ¶ added in v1.3.1
func (indexer *Indexer) GetReadyClients(archive bool, head []byte) []*IndexerClient
func (*Indexer) GetRpcClient ¶ added in v1.3.0
func (indexer *Indexer) GetRpcClient(archive bool, head []byte) *rpc.BeaconClient
type IndexerClient ¶ added in v1.3.0
type IndexerClient struct {
// contains filtered or unexported fields
}
func (*IndexerClient) GetIndex ¶ added in v1.3.0
func (client *IndexerClient) GetIndex() uint8
func (*IndexerClient) GetLastHead ¶ added in v1.3.0
func (client *IndexerClient) GetLastHead() (int64, []byte)
func (*IndexerClient) GetName ¶ added in v1.3.0
func (client *IndexerClient) GetName() string
func (*IndexerClient) GetRpcClient ¶ added in v1.3.1
func (client *IndexerClient) GetRpcClient() *rpc.BeaconClient
func (*IndexerClient) GetStatus ¶ added in v1.3.0
func (client *IndexerClient) GetStatus() string
func (*IndexerClient) GetVersion ¶ added in v1.3.0
func (client *IndexerClient) GetVersion() string
Click to show internal directories.
Click to hide internal directories.