Skip to content

Commit

Permalink
Added transaction SSE event types (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhmakAS authored Sep 5, 2024
1 parent 86cfd73 commit 310ffa0
Showing 1 changed file with 15 additions and 9 deletions.
24 changes: 15 additions & 9 deletions sse/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const (
DeployProcessedEventType
DeployAcceptedEventType
DeployExpiredEventType
TransactionProcessedEventType
TransactionAcceptedEventType
TransactionExpiredEventType
EventIDEventType
FinalitySignatureType
StepEventType
Expand All @@ -24,15 +27,18 @@ const (
)

var AllEventsNames = map[EventType]string{
APIVersionEventType: "ApiVersion",
BlockAddedEventType: "BlockAdded",
DeployProcessedEventType: "DeployProcessed",
DeployAcceptedEventType: "DeployAccepted",
DeployExpiredEventType: "DeployExpired",
StepEventType: "Step",
FaultEventType: "Fault",
FinalitySignatureType: "FinalitySignature",
ShutdownType: "Shutdown",
APIVersionEventType: "ApiVersion",
BlockAddedEventType: "BlockAdded",
DeployProcessedEventType: "DeployProcessed",
DeployAcceptedEventType: "DeployAccepted",
DeployExpiredEventType: "DeployExpired",
TransactionProcessedEventType: "TransactionProcessed",
TransactionAcceptedEventType: "TransactionAccepted",
TransactionExpiredEventType: "TransactionExpired",
StepEventType: "Step",
FaultEventType: "Fault",
FinalitySignatureType: "FinalitySignature",
ShutdownType: "Shutdown",
}

type (
Expand Down

0 comments on commit 310ffa0

Please sign in to comment.