Documentation ¶
Index ¶
- type AssignedBlob
- type AssignedBlock
- type Blob
- type BlobAssignment
- type Block
- type BlockFilter
- type BlockOrphanedRef
- type DBEngineType
- type Epoch
- type ExplorerState
- type IndexerSyncState
- type OrphanedBlock
- type SearchAheadEpochsResult
- type SearchAheadExecBlocksResult
- type SearchAheadGraffitiResult
- type SearchAheadSlotsResult
- type SearchAheadValidatorNameResult
- type SearchBlockResult
- type SearchGraffitiResult
- type SearchNameResult
- type SlotAssignment
- type SyncAssignment
- type UnfinalizedBlock
- type ValidatorName
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignedBlob ¶ added in v1.7.0
type AssignedBlock ¶
type BlobAssignment ¶ added in v1.7.0
type Block ¶
type Block struct { Root []byte `db:"root"` Slot uint64 `db:"slot"` ParentRoot []byte `db:"parent_root"` StateRoot []byte `db:"state_root"` Orphaned uint8 `db:"orphaned"` Proposer uint64 `db:"proposer"` Graffiti []byte `db:"graffiti"` GraffitiText string `db:"graffiti_text"` AttestationCount uint64 `db:"attestation_count"` DepositCount uint64 `db:"deposit_count"` ExitCount uint64 `db:"exit_count"` WithdrawCount uint64 `db:"withdraw_count"` WithdrawAmount uint64 `db:"withdraw_amount"` AttesterSlashingCount uint64 `db:"attester_slashing_count"` ProposerSlashingCount uint64 `db:"proposer_slashing_count"` BLSChangeCount uint64 `db:"bls_change_count"` EthTransactionCount uint64 `db:"eth_transaction_count"` EthBlockNumber *uint64 `db:"eth_block_number"` EthBlockHash []byte `db:"eth_block_hash"` SyncParticipation float32 `db:"sync_participation"` }
type BlockFilter ¶
type BlockOrphanedRef ¶
type DBEngineType ¶
type DBEngineType int
const ( DBEngineAny DBEngineType = 0 DBEngineSqlite DBEngineType = 1 DBEnginePgsql DBEngineType = 2 )
type Epoch ¶
type Epoch struct { Epoch uint64 `db:"epoch"` ValidatorCount uint64 `db:"validator_count"` ValidatorBalance uint64 `db:"validator_balance"` Eligible uint64 `db:"eligible"` VotedTarget uint64 `db:"voted_target"` VotedHead uint64 `db:"voted_head"` VotedTotal uint64 `db:"voted_total"` BlockCount uint16 `db:"block_count"` OrphanedCount uint16 `db:"orphaned_count"` AttestationCount uint64 `db:"attestation_count"` DepositCount uint64 `db:"deposit_count"` ExitCount uint64 `db:"exit_count"` WithdrawCount uint64 `db:"withdraw_count"` WithdrawAmount uint64 `db:"withdraw_amount"` AttesterSlashingCount uint64 `db:"attester_slashing_count"` ProposerSlashingCount uint64 `db:"proposer_slashing_count"` BLSChangeCount uint64 `db:"bls_change_count"` EthTransactionCount uint64 `db:"eth_transaction_count"` SyncParticipation float32 `db:"sync_participation"` }
type ExplorerState ¶
type IndexerSyncState ¶
type IndexerSyncState struct {
Epoch uint64 `json:"epoch"`
}
type OrphanedBlock ¶
type SearchAheadEpochsResult ¶
type SearchAheadEpochsResult []struct { Epoch uint64 `db:"epoch"` }
type SearchAheadSlotsResult ¶
type SearchBlockResult ¶
type SearchGraffitiResult ¶
type SearchGraffitiResult struct {
Graffiti string `db:"graffiti"`
}
type SearchNameResult ¶
type SearchNameResult struct {
Name string `db:"name"`
}
type SlotAssignment ¶
type SyncAssignment ¶
type UnfinalizedBlock ¶
type ValidatorName ¶
Click to show internal directories.
Click to hide internal directories.