mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
bb319e02e8
* Event support for `contribution_and_prrof` * event test * fix panic in tests * fix * Revert "Auxiliary commit to revert individual files from dc8d01a15f0056c1fb48733219feab6461f71695" This reverts commit f5f198564079781f80e1a045cefad7c27f89af25. * remove receiver * revive test * move sending events to sync package * remove receiver * remove notification test * build file * notifier tests * revert removal of exit event in API * simplify exit test * send notification in contribution API method * test fix Co-authored-by: Raul Jordan <raul@prysmaticlabs.com> Co-authored-by: terence tsao <terence@prysmaticlabs.com>
47 lines
1.7 KiB
Go
47 lines
1.7 KiB
Go
// 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/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
|
|
}
|