2021-12-07 10:51:05 -08:00
|
|
|
package util
|
|
|
|
|
2022-04-25 17:42:58 +02:00
|
|
|
import (
|
2023-03-17 11:52:56 -07:00
|
|
|
v2 "github.com/prysmaticlabs/prysm/v4/proto/eth/v2"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
2022-04-25 17:42:58 +02:00
|
|
|
)
|
2021-12-07 10:51:05 -08:00
|
|
|
|
2022-01-26 14:24:47 +07:00
|
|
|
// NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
|
|
|
|
func NewBeaconBlockBellatrix() *ethpb.SignedBeaconBlockBellatrix {
|
|
|
|
return HydrateSignedBeaconBlockBellatrix(ðpb.SignedBeaconBlockBellatrix{})
|
2021-12-07 10:51:05 -08:00
|
|
|
}
|
2022-04-25 17:42:58 +02:00
|
|
|
|
|
|
|
// NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
|
2022-05-03 09:55:59 -07:00
|
|
|
func NewBlindedBeaconBlockBellatrix() *ethpb.SignedBlindedBeaconBlockBellatrix {
|
|
|
|
return HydrateSignedBlindedBeaconBlockBellatrix(ðpb.SignedBlindedBeaconBlockBellatrix{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewBlindedBeaconBlockBellatrixV2 creates a blinded beacon block with minimum marshalable fields.
|
|
|
|
func NewBlindedBeaconBlockBellatrixV2() *v2.SignedBlindedBeaconBlockBellatrix {
|
2022-04-25 17:42:58 +02:00
|
|
|
return HydrateV2SignedBlindedBeaconBlockBellatrix(&v2.SignedBlindedBeaconBlockBellatrix{})
|
|
|
|
}
|
2022-11-07 07:26:27 -08:00
|
|
|
|
|
|
|
// NewBeaconBlockCapella creates a beacon block with minimum marshalable fields.
|
|
|
|
func NewBeaconBlockCapella() *ethpb.SignedBeaconBlockCapella {
|
|
|
|
return HydrateSignedBeaconBlockCapella(ðpb.SignedBeaconBlockCapella{})
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewBlindedBeaconBlockCapella creates a blinded beacon block with minimum marshalable fields.
|
|
|
|
func NewBlindedBeaconBlockCapella() *ethpb.SignedBlindedBeaconBlockCapella {
|
|
|
|
return HydrateSignedBlindedBeaconBlockCapella(ðpb.SignedBlindedBeaconBlockCapella{})
|
|
|
|
}
|
2022-12-16 00:42:07 +01:00
|
|
|
|
|
|
|
// NewBlindedBeaconBlockCapellaV2 creates a blinded beacon block with minimum marshalable fields.
|
|
|
|
func NewBlindedBeaconBlockCapellaV2() *v2.SignedBlindedBeaconBlockCapella {
|
|
|
|
return HydrateV2SignedBlindedBeaconBlockCapella(&v2.SignedBlindedBeaconBlockCapella{})
|
|
|
|
}
|