mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-09 11:11:20 +00:00
5aac06f04e
* begin move * use same import path * imports * regen protos * regen * no rename * generate ssz * gaz * fmt * edit build file * imports * modify * remove generated files * remove protos * edit imports in prysm * beacon chain all builds * edit script * add generated pbs * add replace rules * license for ethereumapis protos * change visibility * fmt * update build files to gaz ignore * use proper form * edit imports * wrap block * revert scripts * revert go mod
40 lines
1.3 KiB
Go
40 lines
1.3 KiB
Go
// Package operation contains types for block operation-specific events fired
|
|
// during the runtime of a beacon node such as attestations, voluntary
|
|
// exits, and slashings.
|
|
package operation
|
|
|
|
import (
|
|
ethpb "github.com/prysmaticlabs/prysm/proto/eth/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
|
|
)
|
|
|
|
// 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
|
|
}
|