Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Sep 5, 2024
1 parent 0bb8e08 commit a1c067b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions schema/appdata/data.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ type EventData struct {

// Event represents the data for a single event.
type Event struct {
// BlockStage represents the stage of the block at which this event is associated.
// If the block stage is unknown, it should be set to UnknownBlockStage.
BlockStage BlockStage

// TxIndex is the 1-based index of the transaction in the block to which this event is associated.
Expand Down Expand Up @@ -76,13 +78,23 @@ type Event struct {
Attributes ToEventAttributes
}

// BlockStage represents the stage of block processsing for an event.
type BlockStage int32

const (
// UnknownBlockStage indicates that we do not know the block stage.
UnknownBlockStage BlockStage = iota

// PreBlockStage indicates that the event is associated with the pre-block stage.
PreBlockStage

// BeginBlockStage indicates that the event is associated with the begin-block stage.
BeginBlockStage

// TxProcessingStage indicates that the event is associated with the transaction processing stage.
TxProcessingStage

// EndBlockStage indicates that the event is associated with the end-block stage.
EndBlockStage
)

Expand Down

0 comments on commit a1c067b

Please sign in to comment.