Documentation ¶
Index ¶
- func MarshalVersionedSignedBeaconBlockSSZ(block *spec.VersionedSignedBeaconBlock) (version uint64, ssz []byte, err error)
- func UnmarshalVersionedSignedBeaconBlockSSZ(version uint64, ssz []byte) (*spec.VersionedSignedBeaconBlock, error)
- type BlobAssignment
- type BlobStore
- type CacheBlock
- func (block *CacheBlock) GetBlockBody() *spec.VersionedSignedBeaconBlock
- func (block *CacheBlock) GetHeader() *phase0.SignedBeaconBlockHeader
- func (block *CacheBlock) GetParentRoot() []byte
- func (block *CacheBlock) IsCanonical(indexer *Indexer, head []byte) bool
- func (block *CacheBlock) IsReady() bool
- 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
- func (epochStats *EpochStats) TryGetProposerAssignments() map[uint64]uint64
- func (epochStats *EpochStats) TryGetSyncAssignments() []uint64
- type EpochValidatorStats
- type EpochVotes
- type HeadFork
- type Indexer
- func (indexer *Indexer) AddClient(index uint16, 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) GetCachedGenesis() *v1.Genesis
- func (indexer *Indexer) GetCachedValidatorSet() map[phase0.ValidatorIndex]*v1.Validator
- func (indexer *Indexer) GetCanonicalHead() (uint64, []byte)
- func (indexer *Indexer) GetClients() []*IndexerClient
- func (indexer *Indexer) GetEpochVotes(epoch uint64) (*EpochStats, *EpochVotes)
- func (indexer *Indexer) GetFinalizationCheckpoints() (int64, []byte, int64, []byte)
- func (indexer *Indexer) GetFirstCachedCanonicalBlock(epoch uint64, head []byte) *CacheBlock
- func (indexer *Indexer) GetHeadForks(readyOnly bool) []*HeadFork
- func (indexer *Indexer) GetHighestSlot() uint64
- func (indexer *Indexer) GetReadyClient(archive bool, head []byte, skip []*IndexerClient) *IndexerClient
- func (indexer *Indexer) GetRpcClient(archive bool, head []byte) *rpc.BeaconClient
- type IndexerClient
- func (client *IndexerClient) GetIndex() uint16
- func (client *IndexerClient) GetLastClientError() string
- func (client *IndexerClient) GetLastHead() (int64, []byte, time.Time)
- 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 ¶
func MarshalVersionedSignedBeaconBlockSSZ ¶
func MarshalVersionedSignedBeaconBlockSSZ(block *spec.VersionedSignedBeaconBlock) (version uint64, ssz []byte, err error)
func UnmarshalVersionedSignedBeaconBlockSSZ ¶
func UnmarshalVersionedSignedBeaconBlockSSZ(version uint64, ssz []byte) (*spec.VersionedSignedBeaconBlock, error)
Types ¶
type BlobAssignment ¶ added in v1.7.0
type BlobAssignment struct { Root []byte Slot uint64 Blob *deneb.BlobSidecar }
type CacheBlock ¶
type CacheBlock struct { Root []byte Slot uint64 Refs struct { ExecutionHash []byte ExecutionNumber uint64 } // contains filtered or unexported fields }
func (*CacheBlock) GetBlockBody ¶
func (block *CacheBlock) GetBlockBody() *spec.VersionedSignedBeaconBlock
func (*CacheBlock) GetHeader ¶
func (block *CacheBlock) GetHeader() *phase0.SignedBeaconBlockHeader
func (*CacheBlock) GetParentRoot ¶
func (block *CacheBlock) GetParentRoot() []byte
func (*CacheBlock) IsCanonical ¶
func (block *CacheBlock) IsCanonical(indexer *Indexer, head []byte) bool
func (*CacheBlock) IsReady ¶
func (block *CacheBlock) IsReady() bool
type EpochStats ¶
type EpochStats struct { Epoch uint64 DependentRoot []byte // contains filtered or unexported fields }
func (*EpochStats) GetAttestorAssignments ¶
func (epochStats *EpochStats) GetAttestorAssignments() map[string][]uint64
func (*EpochStats) GetDependentStateRef ¶
func (epochStats *EpochStats) GetDependentStateRef() string
func (*EpochStats) GetProposerAssignments ¶
func (epochStats *EpochStats) GetProposerAssignments() map[uint64]uint64
func (*EpochStats) GetSyncAssignments ¶
func (epochStats *EpochStats) GetSyncAssignments() []uint64
func (*EpochStats) IsReady ¶
func (epochStats *EpochStats) IsReady() bool
func (*EpochStats) IsValidatorsReady ¶
func (epochStats *EpochStats) IsValidatorsReady() bool
func (*EpochStats) TryGetProposerAssignments ¶
func (epochStats *EpochStats) TryGetProposerAssignments() map[uint64]uint64
func (*EpochStats) TryGetSyncAssignments ¶
func (epochStats *EpochStats) TryGetSyncAssignments() []uint64
type EpochValidatorStats ¶
type EpochVotes ¶
type HeadFork ¶
type HeadFork struct { Slot uint64 Root []byte ReadyClients []*IndexerClient AllClients []*IndexerClient }
type Indexer ¶
type Indexer struct { BlobStore *BlobStore // contains filtered or unexported fields }
func NewIndexer ¶
func (*Indexer) AddClient ¶
func (indexer *Indexer) AddClient(index uint16, 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 ¶
func (indexer *Indexer) GetCachedBlocksByExecutionBlockHash(hash []byte) []*CacheBlock
func (*Indexer) GetCachedBlocksByExecutionBlockNumber ¶
func (indexer *Indexer) GetCachedBlocksByExecutionBlockNumber(number uint64) []*CacheBlock
func (*Indexer) GetCachedBlocksByParentRoot ¶
func (indexer *Indexer) GetCachedBlocksByParentRoot(parentRoot []byte) []*CacheBlock
func (*Indexer) GetCachedBlocksByProposer ¶
func (indexer *Indexer) GetCachedBlocksByProposer(proposer uint64) []*CacheBlock
func (*Indexer) GetCachedEpochStats ¶
func (indexer *Indexer) GetCachedEpochStats(epoch uint64) *EpochStats
func (*Indexer) GetCachedGenesis ¶
func (*Indexer) GetCachedValidatorSet ¶
func (indexer *Indexer) GetCachedValidatorSet() map[phase0.ValidatorIndex]*v1.Validator
func (*Indexer) GetCanonicalHead ¶
func (*Indexer) GetClients ¶
func (indexer *Indexer) GetClients() []*IndexerClient
func (*Indexer) GetEpochVotes ¶
func (indexer *Indexer) GetEpochVotes(epoch uint64) (*EpochStats, *EpochVotes)
func (*Indexer) GetFinalizationCheckpoints ¶
func (*Indexer) GetFirstCachedCanonicalBlock ¶
func (indexer *Indexer) GetFirstCachedCanonicalBlock(epoch uint64, head []byte) *CacheBlock
func (*Indexer) GetHeadForks ¶
func (*Indexer) GetHighestSlot ¶
func (*Indexer) GetReadyClient ¶
func (indexer *Indexer) GetReadyClient(archive bool, head []byte, skip []*IndexerClient) *IndexerClient
func (*Indexer) GetRpcClient ¶
func (indexer *Indexer) GetRpcClient(archive bool, head []byte) *rpc.BeaconClient
type IndexerClient ¶
type IndexerClient struct {
// contains filtered or unexported fields
}
func (*IndexerClient) GetIndex ¶
func (client *IndexerClient) GetIndex() uint16
func (*IndexerClient) GetLastClientError ¶ added in v1.7.0
func (client *IndexerClient) GetLastClientError() string
func (*IndexerClient) GetLastHead ¶
func (client *IndexerClient) GetLastHead() (int64, []byte, time.Time)
func (*IndexerClient) GetName ¶
func (client *IndexerClient) GetName() string
func (*IndexerClient) GetRpcClient ¶
func (client *IndexerClient) GetRpcClient() *rpc.BeaconClient
func (*IndexerClient) GetStatus ¶
func (client *IndexerClient) GetStatus() string
func (*IndexerClient) GetVersion ¶
func (client *IndexerClient) GetVersion() string
Click to show internal directories.
Click to hide internal directories.