-
Notifications
You must be signed in to change notification settings - Fork 963
/
events.go
46 lines (37 loc) · 1.68 KB
/
events.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// Package operation contains types for block operation-specific events fired during the runtime of a beacon node.
package operation
import (
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
)
const (
// UnaggregatedAttReceived is sent after an unaggregated attestation object has been received
// from the outside world. (eg. in RPC or sync)
UnaggregatedAttReceived = iota + 1
// AggregatedAttReceived is sent after an aggregated attestation object has been received
// from the outside world. (eg. in sync)
AggregatedAttReceived
// ExitReceived is sent after an voluntary exit object has been received from the outside world (eg in RPC or sync)
ExitReceived
// SyncCommitteeContributionReceived is sent after a sync committee contribution object has been received.
SyncCommitteeContributionReceived
)
// UnAggregatedAttReceivedData is the data sent with UnaggregatedAttReceived events.
type UnAggregatedAttReceivedData struct {
// Attestation is the unaggregated attestation object.
Attestation *ethpb.Attestation
}
// AggregatedAttReceivedData is the data sent with AggregatedAttReceived events.
type AggregatedAttReceivedData struct {
// Attestation is the aggregated attestation object.
Attestation *ethpb.AggregateAttestationAndProof
}
// ExitReceivedData is the data sent with ExitReceived events.
type ExitReceivedData struct {
// Exit is the voluntary exit object.
Exit *ethpb.SignedVoluntaryExit
}
// SyncCommitteeContributionReceivedData is the data sent with SyncCommitteeContributionReceived objects.
type SyncCommitteeContributionReceivedData struct {
// Contribution is the sync committee contribution object.
Contribution *ethpb.SignedContributionAndProof
}