mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-05 09:14:28 +00:00
d17996f8b0
* Update V3 from V4 * Fix build v3 -> v4 * Update ssz * Update beacon_chain.pb.go * Fix formatter import * Update update-mockgen.sh comment to v4 * Fix conflicts. Pass build and tests * Fix test
37 lines
1.6 KiB
Go
37 lines
1.6 KiB
Go
package util
|
|
|
|
import (
|
|
v2 "github.com/prysmaticlabs/prysm/v4/proto/eth/v2"
|
|
ethpb "github.com/prysmaticlabs/prysm/v4/proto/prysm/v1alpha1"
|
|
)
|
|
|
|
// NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
|
|
func NewBeaconBlockBellatrix() *ethpb.SignedBeaconBlockBellatrix {
|
|
return HydrateSignedBeaconBlockBellatrix(ðpb.SignedBeaconBlockBellatrix{})
|
|
}
|
|
|
|
// NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
|
|
func NewBlindedBeaconBlockBellatrix() *ethpb.SignedBlindedBeaconBlockBellatrix {
|
|
return HydrateSignedBlindedBeaconBlockBellatrix(ðpb.SignedBlindedBeaconBlockBellatrix{})
|
|
}
|
|
|
|
// NewBlindedBeaconBlockBellatrixV2 creates a blinded beacon block with minimum marshalable fields.
|
|
func NewBlindedBeaconBlockBellatrixV2() *v2.SignedBlindedBeaconBlockBellatrix {
|
|
return HydrateV2SignedBlindedBeaconBlockBellatrix(&v2.SignedBlindedBeaconBlockBellatrix{})
|
|
}
|
|
|
|
// 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{})
|
|
}
|
|
|
|
// NewBlindedBeaconBlockCapellaV2 creates a blinded beacon block with minimum marshalable fields.
|
|
func NewBlindedBeaconBlockCapellaV2() *v2.SignedBlindedBeaconBlockCapella {
|
|
return HydrateV2SignedBlindedBeaconBlockCapella(&v2.SignedBlindedBeaconBlockCapella{})
|
|
}
|