dbtypes

package
v1.8.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2024 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssignedBlob added in v1.7.0

type AssignedBlob struct {
	Root       []byte `db:"root"`
	Commitment []byte `db:"commitment"`
	Slot       uint64 `db:"slot"`
	Blob       *Blob  `db:"blob"`
}

type AssignedBlock

type AssignedBlock struct {
	Slot     uint64 `db:"slot"`
	Proposer uint64 `db:"proposer"`
	Block    *Block `db:"block"`
}

type Blob

type Blob struct {
	Commitment []byte  `db:"commitment"`
	Proof      []byte  `db:"proof"`
	Size       uint32  `db:"size"`
	Blob       *[]byte `db:"blob"`
}

type BlobAssignment added in v1.7.0

type BlobAssignment struct {
	Root       []byte `db:"root"`
	Commitment []byte `db:"commitment"`
	Slot       uint64 `db:"slot"`
}

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 BlockFilter struct {
	Graffiti      string
	ProposerIndex *uint64
	ProposerName  string
	WithOrphaned  uint8
	WithMissing   uint8
}

type BlockOrphanedRef

type BlockOrphanedRef struct {
	Root     []byte `db:"root"`
	Orphaned bool   `db:"orphaned"`
}

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 ExplorerState struct {
	Key   string `db:"key"`
	Value string `db:"value"`
}

type IndexerSyncState

type IndexerSyncState struct {
	Epoch uint64 `json:"epoch"`
}

type OrphanedBlock

type OrphanedBlock struct {
	Root      []byte `db:"root"`
	HeaderVer uint64 `db:"header_ver"`
	HeaderSSZ []byte `db:"header_ssz"`
	BlockVer  uint64 `db:"block_ver"`
	BlockSSZ  []byte `db:"block_ssz"`
}

type SearchAheadEpochsResult

type SearchAheadEpochsResult []struct {
	Epoch uint64 `db:"epoch"`
}

type SearchAheadExecBlocksResult

type SearchAheadExecBlocksResult []struct {
	Slot       uint64 `db:"slot"`
	Root       []byte `db:"root"`
	ExecHash   []byte `db:"eth_block_hash"`
	ExecNumber uint64 `db:"eth_block_number"`
	Orphaned   bool   `db:"orphaned"`
}

type SearchAheadGraffitiResult

type SearchAheadGraffitiResult []struct {
	Graffiti string `db:"graffiti"`
	Count    uint64 `db:"count"`
}

type SearchAheadSlotsResult

type SearchAheadSlotsResult []struct {
	Slot     uint64 `db:"slot"`
	Root     []byte `db:"root"`
	Orphaned bool   `db:"orphaned"`
}

type SearchAheadValidatorNameResult

type SearchAheadValidatorNameResult []struct {
	Name  string `db:"name"`
	Count uint64 `db:"count"`
}

type SearchBlockResult

type SearchBlockResult struct {
	Slot     uint64 `db:"slot"`
	Root     []byte `db:"root"`
	Orphaned bool   `db:"orphaned"`
}

type SearchGraffitiResult

type SearchGraffitiResult struct {
	Graffiti string `db:"graffiti"`
}

type SearchNameResult

type SearchNameResult struct {
	Name string `db:"name"`
}

type SlotAssignment

type SlotAssignment struct {
	Slot     uint64 `db:"slot"`
	Proposer uint64 `db:"proposer"`
}

type SyncAssignment

type SyncAssignment struct {
	Period    uint64 `db:"period"`
	Index     uint32 `db:"index"`
	Validator uint64 `db:"validator"`
}

type TxFunctionSignature added in v1.8.0

type TxFunctionSignature struct {
	Signature string `db:"signature"`
	Bytes     []byte `db:"bytes"`
	Name      string `db:"name"`
}

type TxPendingFunctionSignature added in v1.8.0

type TxPendingFunctionSignature struct {
	Bytes     []byte `db:"bytes"`
	QueueTime uint64 `db:"queuetime"`
}

type TxUnknownFunctionSignature added in v1.8.0

type TxUnknownFunctionSignature struct {
	Bytes     []byte `db:"bytes"`
	LastCheck uint64 `db:"lastcheck"`
}

type UnfinalizedBlock

type UnfinalizedBlock struct {
	Root      []byte `db:"root"`
	Slot      uint64 `db:"slot"`
	HeaderVer uint64 `db:"header_ver"`
	HeaderSSZ []byte `db:"header_ssz"`
	BlockVer  uint64 `db:"block_ver"`
	BlockSSZ  []byte `db:"block_ssz"`
}

type ValidatorName

type ValidatorName struct {
	Index uint64 `db:"index"`
	Name  string `db:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL