mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 03:01:19 +00:00
38 lines
1.2 KiB
Go
38 lines
1.2 KiB
Go
|
package operation
|
||
|
|
||
|
import (
|
||
|
ethpb "github.com/prysmaticlabs/ethereumapis/eth/v1alpha1"
|
||
|
pb "github.com/prysmaticlabs/prysm/proto/beacon/p2p/v1"
|
||
|
)
|
||
|
|
||
|
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
|
||
|
)
|
||
|
|
||
|
// 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 *pb.AggregateAndProof
|
||
|
}
|
||
|
|
||
|
// ExitRecievedData is the data sent with ExitReceived events.
|
||
|
type ExitRecievedData struct {
|
||
|
// Exit is the voluntary exit object.
|
||
|
Exit *ethpb.VoluntaryExit
|
||
|
}
|