2021-12-07 18:51:05 +00:00
|
|
|
package util
|
|
|
|
|
2022-04-25 15:42:58 +00:00
|
|
|
import (
|
2022-08-16 12:20:13 +00:00
|
|
|
v2 "github.com/prysmaticlabs/prysm/v3/proto/eth/v2"
|
|
|
|
ethpb "github.com/prysmaticlabs/prysm/v3/proto/prysm/v1alpha1"
|
2022-04-25 15:42:58 +00:00
|
|
|
)
|
2021-12-07 18:51:05 +00:00
|
|
|
|
2022-01-26 07:24:47 +00:00
|
|
|
// NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
|
|
|
|
func NewBeaconBlockBellatrix() *ethpb.SignedBeaconBlockBellatrix {
|
|
|
|
return HydrateSignedBeaconBlockBellatrix(ðpb.SignedBeaconBlockBellatrix{})
|
2021-12-07 18:51:05 +00:00
|
|
|
}
|
2022-04-25 15:42:58 +00:00
|
|
|
|
|
|
|
// NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
|
2022-05-03 16:55:59 +00: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 15:42:58 +00:00
|
|
|
return HydrateV2SignedBlindedBeaconBlockBellatrix(&v2.SignedBlindedBeaconBlockBellatrix{})
|
|
|
|
}
|
2022-11-07 15:26:27 +00: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-15 23:42:07 +00:00
|
|
|
|
|
|
|
// NewBlindedBeaconBlockCapellaV2 creates a blinded beacon block with minimum marshalable fields.
|
|
|
|
func NewBlindedBeaconBlockCapellaV2() *v2.SignedBlindedBeaconBlockCapella {
|
|
|
|
return HydrateV2SignedBlindedBeaconBlockCapella(&v2.SignedBlindedBeaconBlockCapella{})
|
|
|
|
}
|