Documentation ¶
Index ¶
- Variables
- func ApplyEmbeddedDbSchema(version int64) error
- func DeleteFinalizedForks(finalizedRoots [][]byte, tx *sqlx.Tx) error
- func DeletePendingFunctionSignatures(sigBytes []types.TxSignatureBytes, tx *sqlx.Tx) error
- func DeleteUnfinalizedBlocksBefore(slot uint64, tx *sqlx.Tx) error
- func DeleteUnfinalizedDutiesBefore(epoch uint64, tx *sqlx.Tx) error
- func DeleteUnfinalizedEpochsIn(epoch uint64, tx *sqlx.Tx) error
- func DeleteValidatorNames(validatorNames []uint64, tx *sqlx.Tx) error
- func EngineQuery(queryMap map[dbtypes.DBEngineType]string) string
- func GetBlob(commitment []byte, withData bool) *dbtypes.Blob
- func GetBlockHeadByRoot(root []byte) *dbtypes.BlockHead
- func GetConsolidationRequestTxsByDequeueRange(dequeueFirst uint64, dequeueLast uint64) []*dbtypes.ConsolidationRequestTx
- func GetConsolidationRequestTxsByTxHashes(txHashes [][]byte) []*dbtypes.ConsolidationRequestTx
- func GetConsolidationRequestTxsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, ...) ([]*dbtypes.ConsolidationRequestTx, uint64, error)
- func GetConsolidationRequestsByElBlockRange(firstSlot uint64, lastSlot uint64) []*dbtypes.ConsolidationRequest
- func GetConsolidationRequestsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, ...) ([]*dbtypes.ConsolidationRequest, uint64, error)
- func GetDepositTxs(firstIndex uint64, limit uint32) []*dbtypes.DepositTx
- func GetDepositTxsFiltered(offset uint64, limit uint32, finalizedBlock uint64, ...) ([]*dbtypes.DepositTx, uint64, error)
- func GetDepositsFiltered(offset uint64, limit uint32, finalizedBlock uint64, ...) ([]*dbtypes.Deposit, uint64, error)
- func GetEpochs(firstEpoch uint64, limit uint32) []*dbtypes.Epoch
- func GetExplorerState(key string, returnValue interface{}) (interface{}, error)
- func GetFilteredSlots(filter *dbtypes.BlockFilter, firstSlot uint64, offset uint64, limit uint32) []*dbtypes.AssignedSlot
- func GetForkById(forkId uint64) *dbtypes.Fork
- func GetHighestMevBlockSlotByRelay(relayId uint8) (uint64, error)
- func GetHighestRootBeforeSlot(slot uint64, withOrphaned bool) []byte
- func GetLatestBlobAssignment(commitment []byte) *dbtypes.BlobAssignment
- func GetMevBlockByBlockHash(blockHash []byte) *dbtypes.MevBlock
- func GetMevBlocksFiltered(offset uint64, limit uint32, filter *dbtypes.MevBlockFilter) ([]*dbtypes.MevBlock, uint64, error)
- func GetOrphanedBlock(root []byte) *dbtypes.OrphanedBlock
- func GetPendingFunctionSignatures(limit uint64) []*dbtypes.TxPendingFunctionSignature
- func GetSlashingForValidator(validator uint64) *dbtypes.Slashing
- func GetSlashingsFiltered(offset uint64, limit uint32, finalizedBlock uint64, ...) ([]*dbtypes.Slashing, uint64, error)
- func GetSlotAssignment(slot uint64) uint64
- func GetSlotByRoot(root []byte) *dbtypes.Slot
- func GetSlotStatus(blockRoots [][]byte) []*dbtypes.BlockStatus
- func GetSlotsByBlockHash(blockHash []byte) []*dbtypes.Slot
- func GetSlotsByParentRoot(parentRoot []byte) []*dbtypes.Slot
- func GetSlotsByRoots(roots [][]byte) map[phase0.Root]*dbtypes.Slot
- func GetSlotsRange(firstSlot uint64, lastSlot uint64, withMissing bool, withOrphaned bool) []*dbtypes.AssignedSlot
- func GetSyncAssignmentsForPeriod(period uint64) []uint64
- func GetTxFunctionSignaturesByBytes(sigBytes []types.TxSignatureBytes) []*dbtypes.TxFunctionSignature
- func GetUnfinalizedBlock(root []byte) *dbtypes.UnfinalizedBlock
- func GetUnfinalizedBlocks(filter *dbtypes.UnfinalizedBlockFilter) []*dbtypes.UnfinalizedBlock
- func GetUnfinalizedDuty(epoch uint64, dependentRoot []byte) *dbtypes.UnfinalizedDuty
- func GetUnfinalizedEpoch(epoch uint64, headRoot []byte) *dbtypes.UnfinalizedEpoch
- func GetUnfinalizedForks(finalizedSlot uint64) []*dbtypes.Fork
- func GetUnknownFunctionSignatures(sigBytes []types.TxSignatureBytes) []*dbtypes.TxUnknownFunctionSignature
- func GetValidatorNames(minIdx uint64, maxIdx uint64) []*dbtypes.ValidatorName
- func GetVoluntaryExitForValidator(validator uint64) *dbtypes.VoluntaryExit
- func GetVoluntaryExitsFiltered(offset uint64, limit uint32, finalizedBlock uint64, ...) ([]*dbtypes.VoluntaryExit, uint64, error)
- func GetWithdrawalRequestTxsByDequeueRange(dequeueFirst uint64, dequeueLast uint64) []*dbtypes.WithdrawalRequestTx
- func GetWithdrawalRequestTxsByTxHashes(txHashes [][]byte) []*dbtypes.WithdrawalRequestTx
- func GetWithdrawalRequestTxsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, ...) ([]*dbtypes.WithdrawalRequestTx, uint64, error)
- func GetWithdrawalRequestsByElBlockRange(firstSlot uint64, lastSlot uint64) []*dbtypes.WithdrawalRequest
- func GetWithdrawalRequestsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, ...) ([]*dbtypes.WithdrawalRequest, uint64, error)
- func InsertBlob(blob *dbtypes.Blob, tx *sqlx.Tx) error
- func InsertBlobAssignment(blobAssignment *dbtypes.BlobAssignment, tx *sqlx.Tx) error
- func InsertConsolidationRequestTxs(consolidationTxs []*dbtypes.ConsolidationRequestTx, tx *sqlx.Tx) error
- func InsertConsolidationRequests(consolidations []*dbtypes.ConsolidationRequest, tx *sqlx.Tx) error
- func InsertDepositTxs(depositTxs []*dbtypes.DepositTx, tx *sqlx.Tx) error
- func InsertDeposits(deposits []*dbtypes.Deposit, tx *sqlx.Tx) error
- func InsertEpoch(epoch *dbtypes.Epoch, tx *sqlx.Tx) error
- func InsertFork(fork *dbtypes.Fork, tx *sqlx.Tx) error
- func InsertMevBlocks(mevBlocks []*dbtypes.MevBlock, tx *sqlx.Tx) error
- func InsertMissingSlot(block *dbtypes.SlotHeader, tx *sqlx.Tx) error
- func InsertOrphanedBlock(block *dbtypes.OrphanedBlock, tx *sqlx.Tx) error
- func InsertPendingFunctionSignatures(txPendingSigs []*dbtypes.TxPendingFunctionSignature, tx *sqlx.Tx) error
- func InsertSlashings(slashings []*dbtypes.Slashing, tx *sqlx.Tx) error
- func InsertSlot(slot *dbtypes.Slot, tx *sqlx.Tx) error
- func InsertSyncAssignments(syncAssignments []*dbtypes.SyncAssignment, tx *sqlx.Tx) error
- func InsertTxFunctionSignature(txFuncSig *dbtypes.TxFunctionSignature, tx *sqlx.Tx) error
- func InsertUnfinalizedBlock(block *dbtypes.UnfinalizedBlock, tx *sqlx.Tx) error
- func InsertUnfinalizedDuty(duty *dbtypes.UnfinalizedDuty, tx *sqlx.Tx) error
- func InsertUnfinalizedEpoch(epoch *dbtypes.UnfinalizedEpoch, tx *sqlx.Tx) error
- func InsertUnknownFunctionSignatures(txUnknownSigs []*dbtypes.TxUnknownFunctionSignature, tx *sqlx.Tx) error
- func InsertValidatorNames(validatorNames []*dbtypes.ValidatorName, tx *sqlx.Tx) error
- func InsertVoluntaryExits(voluntaryExits []*dbtypes.VoluntaryExit, tx *sqlx.Tx) error
- func InsertWithdrawalRequestTxs(withdrawalTxs []*dbtypes.WithdrawalRequestTx, tx *sqlx.Tx) error
- func InsertWithdrawalRequests(elRequests []*dbtypes.WithdrawalRequest, tx *sqlx.Tx) error
- func IsEpochSynchronized(epoch uint64) bool
- func IsSyncCommitteeSynchronized(period uint64) bool
- func MustCloseDB()
- func MustInitDB()
- func RunDBTransaction(handler func(tx *sqlx.Tx) error) error
- func SetExplorerState(key string, value interface{}, tx *sqlx.Tx) error
- func StreamUnfinalizedBlocks(slot uint64, cb func(block *dbtypes.UnfinalizedBlock)) error
- func StreamUnfinalizedDuties(epoch uint64, cb func(duty *dbtypes.UnfinalizedDuty)) error
- func StreamUnfinalizedEpochs(epoch uint64, cb func(duty *dbtypes.UnfinalizedEpoch)) error
- func UpdateConsolidationRequestTxHash(slotRoot []byte, slotIndex uint64, txHash []byte, tx *sqlx.Tx) error
- func UpdateFinalizedForkParents(finalizedRoots [][]byte, tx *sqlx.Tx) error
- func UpdateForkParent(parentRoot []byte, parentForkId uint64, tx *sqlx.Tx) error
- func UpdateMevBlockByEpoch(epoch uint64, slotsPerEpoch uint64, canonicalHashes [][]byte, tx *sqlx.Tx) error
- func UpdateUnfinalizedBlockForkId(roots [][]byte, forkId uint64, tx *sqlx.Tx) error
- func UpdateUnfinalizedBlockStatus(roots [][]byte, blockStatus dbtypes.UnfinalizedBlockStatus, tx *sqlx.Tx) error
- func UpdateWithdrawalRequestTxHash(slotRoot []byte, slotIndex uint64, txHash []byte, tx *sqlx.Tx) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DBPGX *pgxpool.Conn
View Source
var DbEngine dbtypes.DBEngineType
DB is a pointer to the explorer-database
View Source
var EmbedPgsqlSchema embed.FS
View Source
var EmbedSqliteSchema embed.FS
View Source
var ReaderDb *sqlx.DB
Functions ¶
func ApplyEmbeddedDbSchema ¶
func DeleteFinalizedForks ¶ added in v1.11.0
func DeletePendingFunctionSignatures ¶
func DeletePendingFunctionSignatures(sigBytes []types.TxSignatureBytes, tx *sqlx.Tx) error
func DeleteUnfinalizedBlocksBefore ¶ added in v1.11.0
func DeleteUnfinalizedDutiesBefore ¶ added in v1.11.0
func DeleteUnfinalizedEpochsIn ¶ added in v1.11.0
func EngineQuery ¶
func EngineQuery(queryMap map[dbtypes.DBEngineType]string) string
func GetBlockHeadByRoot ¶ added in v1.11.0
func GetConsolidationRequestTxsByDequeueRange ¶ added in v1.12.1
func GetConsolidationRequestTxsByDequeueRange(dequeueFirst uint64, dequeueLast uint64) []*dbtypes.ConsolidationRequestTx
func GetConsolidationRequestTxsByTxHashes ¶ added in v1.12.1
func GetConsolidationRequestTxsByTxHashes(txHashes [][]byte) []*dbtypes.ConsolidationRequestTx
func GetConsolidationRequestTxsFiltered ¶ added in v1.12.1
func GetConsolidationRequestTxsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, filter *dbtypes.ConsolidationRequestTxFilter) ([]*dbtypes.ConsolidationRequestTx, uint64, error)
func GetConsolidationRequestsByElBlockRange ¶ added in v1.12.1
func GetConsolidationRequestsByElBlockRange(firstSlot uint64, lastSlot uint64) []*dbtypes.ConsolidationRequest
func GetConsolidationRequestsFiltered ¶ added in v1.12.0
func GetConsolidationRequestsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, filter *dbtypes.ConsolidationRequestFilter) ([]*dbtypes.ConsolidationRequest, uint64, error)
func GetDepositTxsFiltered ¶
func GetDepositsFiltered ¶
func GetExplorerState ¶
func GetFilteredSlots ¶
func GetFilteredSlots(filter *dbtypes.BlockFilter, firstSlot uint64, offset uint64, limit uint32) []*dbtypes.AssignedSlot
func GetForkById ¶ added in v1.12.1
func GetLatestBlobAssignment ¶
func GetLatestBlobAssignment(commitment []byte) *dbtypes.BlobAssignment
func GetMevBlockByBlockHash ¶
func GetMevBlocksFiltered ¶
func GetOrphanedBlock ¶
func GetOrphanedBlock(root []byte) *dbtypes.OrphanedBlock
func GetPendingFunctionSignatures ¶
func GetPendingFunctionSignatures(limit uint64) []*dbtypes.TxPendingFunctionSignature
func GetSlashingForValidator ¶
func GetSlashingsFiltered ¶
func GetSlotAssignment ¶
func GetSlotByRoot ¶
func GetSlotStatus ¶
func GetSlotStatus(blockRoots [][]byte) []*dbtypes.BlockStatus
func GetSlotsByBlockHash ¶
func GetSlotsByParentRoot ¶
func GetSlotsByRoots ¶ added in v1.11.1
func GetSlotsRange ¶
func GetTxFunctionSignaturesByBytes ¶
func GetTxFunctionSignaturesByBytes(sigBytes []types.TxSignatureBytes) []*dbtypes.TxFunctionSignature
func GetUnfinalizedBlock ¶
func GetUnfinalizedBlock(root []byte) *dbtypes.UnfinalizedBlock
func GetUnfinalizedBlocks ¶
func GetUnfinalizedBlocks(filter *dbtypes.UnfinalizedBlockFilter) []*dbtypes.UnfinalizedBlock
func GetUnfinalizedDuty ¶ added in v1.11.0
func GetUnfinalizedDuty(epoch uint64, dependentRoot []byte) *dbtypes.UnfinalizedDuty
func GetUnfinalizedEpoch ¶
func GetUnfinalizedEpoch(epoch uint64, headRoot []byte) *dbtypes.UnfinalizedEpoch
func GetUnfinalizedForks ¶ added in v1.11.0
func GetUnknownFunctionSignatures ¶
func GetUnknownFunctionSignatures(sigBytes []types.TxSignatureBytes) []*dbtypes.TxUnknownFunctionSignature
func GetValidatorNames ¶
func GetValidatorNames(minIdx uint64, maxIdx uint64) []*dbtypes.ValidatorName
func GetVoluntaryExitForValidator ¶
func GetVoluntaryExitForValidator(validator uint64) *dbtypes.VoluntaryExit
func GetVoluntaryExitsFiltered ¶
func GetVoluntaryExitsFiltered(offset uint64, limit uint32, finalizedBlock uint64, filter *dbtypes.VoluntaryExitFilter) ([]*dbtypes.VoluntaryExit, uint64, error)
func GetWithdrawalRequestTxsByDequeueRange ¶ added in v1.12.1
func GetWithdrawalRequestTxsByDequeueRange(dequeueFirst uint64, dequeueLast uint64) []*dbtypes.WithdrawalRequestTx
func GetWithdrawalRequestTxsByTxHashes ¶ added in v1.12.1
func GetWithdrawalRequestTxsByTxHashes(txHashes [][]byte) []*dbtypes.WithdrawalRequestTx
func GetWithdrawalRequestTxsFiltered ¶ added in v1.12.1
func GetWithdrawalRequestTxsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, filter *dbtypes.WithdrawalRequestTxFilter) ([]*dbtypes.WithdrawalRequestTx, uint64, error)
func GetWithdrawalRequestsByElBlockRange ¶ added in v1.12.1
func GetWithdrawalRequestsByElBlockRange(firstSlot uint64, lastSlot uint64) []*dbtypes.WithdrawalRequest
func GetWithdrawalRequestsFiltered ¶ added in v1.11.0
func GetWithdrawalRequestsFiltered(offset uint64, limit uint32, canonicalForkIds []uint64, filter *dbtypes.WithdrawalRequestFilter) ([]*dbtypes.WithdrawalRequest, uint64, error)
func InsertBlobAssignment ¶
func InsertBlobAssignment(blobAssignment *dbtypes.BlobAssignment, tx *sqlx.Tx) error
func InsertConsolidationRequestTxs ¶ added in v1.12.1
func InsertConsolidationRequestTxs(consolidationTxs []*dbtypes.ConsolidationRequestTx, tx *sqlx.Tx) error
func InsertConsolidationRequests ¶ added in v1.11.0
func InsertConsolidationRequests(consolidations []*dbtypes.ConsolidationRequest, tx *sqlx.Tx) error
func InsertMissingSlot ¶
func InsertMissingSlot(block *dbtypes.SlotHeader, tx *sqlx.Tx) error
func InsertOrphanedBlock ¶
func InsertOrphanedBlock(block *dbtypes.OrphanedBlock, tx *sqlx.Tx) error
func InsertPendingFunctionSignatures ¶
func InsertPendingFunctionSignatures(txPendingSigs []*dbtypes.TxPendingFunctionSignature, tx *sqlx.Tx) error
func InsertSyncAssignments ¶
func InsertSyncAssignments(syncAssignments []*dbtypes.SyncAssignment, tx *sqlx.Tx) error
func InsertTxFunctionSignature ¶
func InsertTxFunctionSignature(txFuncSig *dbtypes.TxFunctionSignature, tx *sqlx.Tx) error
func InsertUnfinalizedBlock ¶
func InsertUnfinalizedBlock(block *dbtypes.UnfinalizedBlock, tx *sqlx.Tx) error
func InsertUnfinalizedDuty ¶ added in v1.11.0
func InsertUnfinalizedDuty(duty *dbtypes.UnfinalizedDuty, tx *sqlx.Tx) error
func InsertUnfinalizedEpoch ¶
func InsertUnfinalizedEpoch(epoch *dbtypes.UnfinalizedEpoch, tx *sqlx.Tx) error
func InsertUnknownFunctionSignatures ¶
func InsertUnknownFunctionSignatures(txUnknownSigs []*dbtypes.TxUnknownFunctionSignature, tx *sqlx.Tx) error
func InsertValidatorNames ¶
func InsertValidatorNames(validatorNames []*dbtypes.ValidatorName, tx *sqlx.Tx) error
func InsertVoluntaryExits ¶
func InsertVoluntaryExits(voluntaryExits []*dbtypes.VoluntaryExit, tx *sqlx.Tx) error
func InsertWithdrawalRequestTxs ¶ added in v1.12.1
func InsertWithdrawalRequestTxs(withdrawalTxs []*dbtypes.WithdrawalRequestTx, tx *sqlx.Tx) error
func InsertWithdrawalRequests ¶ added in v1.11.0
func InsertWithdrawalRequests(elRequests []*dbtypes.WithdrawalRequest, tx *sqlx.Tx) error
func IsEpochSynchronized ¶
func MustCloseDB ¶
func MustCloseDB()
func MustInitDB ¶
func MustInitDB()
func StreamUnfinalizedBlocks ¶ added in v1.11.0
func StreamUnfinalizedBlocks(slot uint64, cb func(block *dbtypes.UnfinalizedBlock)) error
func StreamUnfinalizedDuties ¶ added in v1.11.0
func StreamUnfinalizedDuties(epoch uint64, cb func(duty *dbtypes.UnfinalizedDuty)) error
func StreamUnfinalizedEpochs ¶ added in v1.11.0
func StreamUnfinalizedEpochs(epoch uint64, cb func(duty *dbtypes.UnfinalizedEpoch)) error
func UpdateConsolidationRequestTxHash ¶ added in v1.12.1
func UpdateFinalizedForkParents ¶ added in v1.11.0
func UpdateForkParent ¶ added in v1.11.1
func UpdateMevBlockByEpoch ¶
func UpdateUnfinalizedBlockForkId ¶ added in v1.11.0
func UpdateUnfinalizedBlockStatus ¶ added in v1.11.0
Types ¶
This section is empty.
Source Files ¶
- blobs.go
- common.go
- consolidation_request_txs.go
- consolidation_requests.go
- deposits.go
- epochs.go
- explorer_state.go
- forks.go
- mev_blocks.go
- orphaned_blocks.go
- slashings.go
- slots.go
- sync_assignments.go
- txsignatures.go
- unfinalized_blocks.go
- unfinalized_duties.go
- unfinalized_epochs.go
- validator_names.go
- voluntary_exits.go
- withdrawal_request_txs.go
- withdrawal_requests.go
Click to show internal directories.
Click to hide internal directories.