Documentation ¶
Index ¶
- Variables
- func ApplyEmbeddedDbSchema(version int64) error
- func DeletePendingFunctionSignatures(sigBytes []types.TxSignatureBytes, tx *sqlx.Tx) error
- func DeleteUnfinalizedBefore(slot 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 GetBlockByRoot(root []byte) *dbtypes.Block
- func GetBlockOrphanedRefs(blockRoots [][]byte) []*dbtypes.BlockOrphanedRef
- func GetBlocks(firstBlock uint64, limit uint32, withOrphaned bool) []*dbtypes.Block
- func GetBlocksByParentRoot(parentRoot []byte) []*dbtypes.Block
- func GetBlocksForSlots(firstSlot uint64, lastSlot uint64, withOrphaned bool) []*dbtypes.Block
- func GetEpochs(firstEpoch uint64, limit uint32) []*dbtypes.Epoch
- func GetExplorerState(key string, returnValue interface{}) (interface{}, error)
- func GetFilteredBlocks(filter *dbtypes.BlockFilter, firstSlot uint64, offset uint64, limit uint32) []*dbtypes.AssignedBlock
- func GetHighestRootBeforeSlot(slot uint64, withOrphaned bool) []byte
- func GetLatestBlobAssignment(commitment []byte) *dbtypes.BlobAssignment
- func GetOrphanedBlock(root []byte) *dbtypes.OrphanedBlock
- func GetPendingFunctionSignatures(limit uint64) []*dbtypes.TxPendingFunctionSignature
- func GetSlotAssignment(slot uint64) *dbtypes.SlotAssignment
- func GetSlotAssignmentsForSlots(firstSlot uint64, lastSlot uint64) []*dbtypes.SlotAssignment
- func GetSyncAssignmentsForPeriod(period uint64) []uint64
- func GetTxFunctionSignaturesByBytes(sigBytes []types.TxSignatureBytes) []*dbtypes.TxFunctionSignature
- func GetUnfinalizedBlock(root []byte) *dbtypes.UnfinalizedBlock
- func GetUnfinalizedBlocks() []*dbtypes.UnfinalizedBlock
- func GetUnfinalizedEpoch(epoch uint64) *dbtypes.Epoch
- func GetUnknownFunctionSignatures(sigBytes []types.TxSignatureBytes) []*dbtypes.TxUnknownFunctionSignature
- func GetValidatorNames(minIdx uint64, maxIdx uint64, tx *sqlx.Tx) []*dbtypes.ValidatorName
- func InsertBlob(blob *dbtypes.Blob, tx *sqlx.Tx) error
- func InsertBlobAssignment(blobAssignment *dbtypes.BlobAssignment, tx *sqlx.Tx) error
- func InsertBlock(block *dbtypes.Block, tx *sqlx.Tx) error
- func InsertEpoch(epoch *dbtypes.Epoch, tx *sqlx.Tx) error
- func InsertOrphanedBlock(block *dbtypes.OrphanedBlock, tx *sqlx.Tx) error
- func InsertPendingFunctionSignatures(txPendingSigs []*dbtypes.TxPendingFunctionSignature, tx *sqlx.Tx) error
- func InsertSlotAssignments(slotAssignments []*dbtypes.SlotAssignment, 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 InsertUnfinalizedEpoch(epoch *dbtypes.Epoch, tx *sqlx.Tx) error
- func InsertUnknownFunctionSignatures(txUnknownSigs []*dbtypes.TxUnknownFunctionSignature, tx *sqlx.Tx) error
- func InsertValidatorNames(validatorNames []*dbtypes.ValidatorName, tx *sqlx.Tx) error
- func IsEpochSynchronized(epoch uint64) bool
- func IsSyncCommitteeSynchronized(period uint64) bool
- func MustCloseDB()
- func MustInitDB()
- func SetExplorerState(key string, value interface{}, 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
View Source
var WriterDb *sqlx.DB
Functions ¶
func ApplyEmbeddedDbSchema ¶
func DeletePendingFunctionSignatures ¶ added in v1.8.0
func DeletePendingFunctionSignatures(sigBytes []types.TxSignatureBytes, tx *sqlx.Tx) error
func EngineQuery ¶
func EngineQuery(queryMap map[dbtypes.DBEngineType]string) string
func GetBlockByRoot ¶ added in v1.7.0
func GetBlockOrphanedRefs ¶
func GetBlockOrphanedRefs(blockRoots [][]byte) []*dbtypes.BlockOrphanedRef
func GetBlocksByParentRoot ¶
func GetBlocksForSlots ¶
func GetExplorerState ¶
func GetFilteredBlocks ¶
func GetFilteredBlocks(filter *dbtypes.BlockFilter, firstSlot uint64, offset uint64, limit uint32) []*dbtypes.AssignedBlock
func GetLatestBlobAssignment ¶ added in v1.7.0
func GetLatestBlobAssignment(commitment []byte) *dbtypes.BlobAssignment
func GetOrphanedBlock ¶
func GetOrphanedBlock(root []byte) *dbtypes.OrphanedBlock
func GetPendingFunctionSignatures ¶ added in v1.8.0
func GetPendingFunctionSignatures(limit uint64) []*dbtypes.TxPendingFunctionSignature
func GetSlotAssignment ¶
func GetSlotAssignment(slot uint64) *dbtypes.SlotAssignment
func GetSlotAssignmentsForSlots ¶
func GetSlotAssignmentsForSlots(firstSlot uint64, lastSlot uint64) []*dbtypes.SlotAssignment
func GetTxFunctionSignaturesByBytes ¶ added in v1.8.0
func GetTxFunctionSignaturesByBytes(sigBytes []types.TxSignatureBytes) []*dbtypes.TxFunctionSignature
func GetUnfinalizedBlock ¶
func GetUnfinalizedBlock(root []byte) *dbtypes.UnfinalizedBlock
func GetUnfinalizedBlocks ¶
func GetUnfinalizedBlocks() []*dbtypes.UnfinalizedBlock
func GetUnfinalizedEpoch ¶
func GetUnknownFunctionSignatures ¶ added in v1.8.0
func GetUnknownFunctionSignatures(sigBytes []types.TxSignatureBytes) []*dbtypes.TxUnknownFunctionSignature
func GetValidatorNames ¶
func InsertBlobAssignment ¶ added in v1.7.0
func InsertBlobAssignment(blobAssignment *dbtypes.BlobAssignment, tx *sqlx.Tx) error
func InsertOrphanedBlock ¶
func InsertOrphanedBlock(block *dbtypes.OrphanedBlock, tx *sqlx.Tx) error
func InsertPendingFunctionSignatures ¶ added in v1.8.0
func InsertPendingFunctionSignatures(txPendingSigs []*dbtypes.TxPendingFunctionSignature, tx *sqlx.Tx) error
func InsertSlotAssignments ¶
func InsertSlotAssignments(slotAssignments []*dbtypes.SlotAssignment, tx *sqlx.Tx) error
func InsertSyncAssignments ¶
func InsertSyncAssignments(syncAssignments []*dbtypes.SyncAssignment, tx *sqlx.Tx) error
func InsertTxFunctionSignature ¶ added in v1.8.0
func InsertTxFunctionSignature(txFuncSig *dbtypes.TxFunctionSignature, tx *sqlx.Tx) error
func InsertUnfinalizedBlock ¶
func InsertUnfinalizedBlock(block *dbtypes.UnfinalizedBlock, tx *sqlx.Tx) error
func InsertUnknownFunctionSignatures ¶ added in v1.8.0
func InsertUnknownFunctionSignatures(txUnknownSigs []*dbtypes.TxUnknownFunctionSignature, tx *sqlx.Tx) error
func InsertValidatorNames ¶
func InsertValidatorNames(validatorNames []*dbtypes.ValidatorName, tx *sqlx.Tx) error
func IsEpochSynchronized ¶
func MustCloseDB ¶
func MustCloseDB()
func MustInitDB ¶
func MustInitDB()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.