Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Block ¶
type Block struct { ID uint TimeStamp time.Time Height int64 `gorm:"uniqueIndex:chainheight"` ChainID uint `gorm:"uniqueIndex:chainheight"` Chain Chain ProposerConsAddress Address ProposerConsAddressID uint TxIndexed bool TotalTxs int // TODO: Should block event indexing be split out or rolled up? BlockEventsIndexed bool BlockHash string Signatures []BlockSignature }
type BlockEvent ¶
type BlockEvent struct { ID uint // These fields uniquely identify every block event // Index refers to the position of the event in the block event lifecycle array // LifecyclePosition refers to whether the event is a BeginBlock or EndBlock event Index uint64 `gorm:"uniqueIndex:eventBlockPositionIndex,priority:3"` LifecyclePosition BlockLifecyclePosition `gorm:"uniqueIndex:eventBlockPositionIndex,priority:2"` BlockID uint `gorm:"uniqueIndex:eventBlockPositionIndex,priority:1"` Block Block BlockEventTypeID uint BlockEventType BlockEventType }
type BlockEventAttribute ¶
type BlockEventAttribute struct { ID uint BlockEvent BlockEvent BlockEventID uint `gorm:"uniqueIndex:eventAttributeIndex,priority:1"` Value string Index uint64 `gorm:"uniqueIndex:eventAttributeIndex,priority:2"` // Keys are limited to a smallish subset of string values set by the Cosmos SDK and external modules // Save DB space by storing the key as a foreign key BlockEventAttributeKeyID uint BlockEventAttributeKey BlockEventAttributeKey }
type BlockEventAttributeKey ¶
type BlockEventParser ¶
type BlockEventParser struct { ID uint BlockLifecyclePosition BlockLifecyclePosition `gorm:"uniqueIndex:idx_block_event_parser_identifier_lifecycle_position"` Identifier string `gorm:"uniqueIndex:idx_block_event_parser_identifier_lifecycle_position"` }
type BlockEventParserError ¶
type BlockEventParserError struct { ID uint BlockEventParserID uint BlockEventParser BlockEventParser BlockEventID uint BlockEvent BlockEvent Error string }
type BlockEventType ¶
type BlockLifecyclePosition ¶
type BlockLifecyclePosition int
Used to keep track of BeginBlock and EndBlock events
const ( BeginBlockEvent BlockLifecyclePosition = iota EndBlockEvent )
type BlockSignature ¶
type FailedBlock ¶
Click to show internal directories.
Click to hide internal directories.