# Functions
BazelDirectoryNonEmpty returns true if directory exists and is not empty.
BazelFileBytes returns the byte array of the bazel file path given.
BazelListDirectories lists all of the directories in the given directory.
BazelListFiles lists all of the file names in a given directory.
BlockSignature calculates the post-state root of the block and returns the signature.
BlockSignatureAltair calculates the post-state root of the block and returns the signature.
ConvertToCommittee takes a list of pubkeys and returns a SyncCommittee with these keys as members.
DefaultBlockGenConfig returns the block config that utilizes the current params in the beacon config.
DepositsWithBalance generates N amount of deposits with the balances taken from the passed in balances array.
DepositTrieFromDeposits takes an array of deposits and returns the deposit trie.
DepositTrieSubset takes in a full tree and the desired size and returns a subset of the deposit trie.
DeterministicDepositsAndKeys returns the entered amount of deposits and secret keys.
DeterministicDepositsAndKeysSameValidator returns the entered amount of deposits and secret keys of the same validator.
DeterministicDepositTrie returns a merkle trie of the requested size from the deterministic deposits.
DeterministicEth1Data takes an array of deposits and returns the eth1Data made from the deposit trie.
DeterministicGenesisState returns a genesis state made using the deterministic deposits.
DeterministicGenesisStateAltair returns a genesis state in hard fork 1 format made using the deterministic deposits.
DeterministicGenesisStateBellatrix returns a genesis state in Bellatrix format made using the deterministic deposits.
DeterministicGenesisStateCapella returns a genesis state in Capella format made using the deterministic deposits.
DeterministicGenesisStateDeneb returns a genesis state in Deneb format made using the deterministic deposits.
DeterministicGenesisStateElectra returns a genesis state in Electra format made using the deterministic deposits.
DeterministicGenesisStateWithGenesisBlock creates a genesis state, saves the genesis block, genesis state and head block root.
FillRootsNaturalOpt is meant to be used as an option when calling NewBeaconState.
FillRootsNaturalOptAltair is meant to be used as an option when calling NewBeaconStateAltair.
FillRootsNaturalOptBellatrix is meant to be used as an option when calling NewBeaconStateBellatrix.
FillRootsNaturalOptCapella is meant to be used as an option when calling NewBeaconStateCapella.
FillRootsNaturalOptDeneb is meant to be used as an option when calling NewBeaconStateDeneb.
GenerateAttestations creates attestations that are entirely valid, for all the committees of the current state slot.
GenerateAttesterSlashingForValidator for a specific validator index.
GenerateBLSToExecutionChange generates a valid bls to exec change for validator `val` and its private key `priv` with the given beacon state `st`.
GenerateFullBlock generates a fully valid block with the requested parameters.
GenerateFullBlockAltair generates a fully valid Altair block with the requested parameters.
GenerateFullBlockCapella generates a fully valid Capella block with the requested parameters.
GenerateFullBlockElectra generates a fully valid Electra block with the requested parameters.
GenerateProposerSlashingForValidator for a specific validator index.
GenesisBeaconState returns the genesis beacon state.
Returns a random blob using the passed seed as entropy.
Returns a serialized random field element in big-endian.
HackElectraMaxuint is helpful for tests that need to set up cases where the electra fork has passed.
HydrateAttestation hydrates an attestation object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateAttestationData hydrates an attestation data object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateAttestationElectra hydrates an attestation object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockAltair hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBellatrix hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyAltair hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyBellatrix hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyCapella hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyDeneb hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockBodyElectra hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockCapella hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockDeneb hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconBlockElectra hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBeaconHeader hydrates a beacon block header with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBellatrix hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyBellatrix hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyCapella hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyDeneb hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockBodyElectra hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockCapella hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockDeneb hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlindedBeaconBlockElectra hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateBlobSidecar hydrates a blob sidecar with correct field length sizes to comply with SSZ marshalling and unmarshalling rules.
HydrateCommitmentInclusionProofs returns 2d byte slice of Commitment Inclusion Proofs.
HydrateExecutionRequests fills the exectution requests with the correct field lengths.
HydrateIndexedAttestation hydrates an indexed attestation with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockAltair hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockBellatrix hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockCapella hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockContentsDeneb hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockContentsElectra hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockDeneb hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconBlockElectra hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBeaconHeader hydrates a signed beacon block header with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBlindedBeaconBlockBellatrix hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBlindedBeaconBlockCapella hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBlindedBeaconBlockDeneb hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSignedBlindedBeaconBlockElectra hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateSyncCommittee hydrates the provided sync committee message.
HydrateV1Attestation hydrates a v1 attestation object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1AttestationData hydrates a v1 attestation data object with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1BeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1BeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV1SignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2AltairBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2AltairBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2AltairSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BeaconBlockBodyDeneb hydrates a v2 beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BeaconBlockDeneb hydrates a v2 beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixBeaconBlock hydrates a beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixBeaconBlockBody hydrates a beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BellatrixSignedBeaconBlock hydrates a signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBellatrix hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBodyBellatrix hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBodyCapella hydrates a blinded beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockBodyDeneb hydrates a blinded v2 beacon block body with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockCapella hydrates a blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2BlindedBeaconBlockDeneb hydrates a v2 blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBeaconBlockDeneb hydrates a v2 signed beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBlindedBeaconBlockBellatrix hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBlindedBeaconBlockCapella hydrates a signed blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
HydrateV2SignedBlindedBeaconBlockDeneb hydrates a signed v2 blinded beacon block with correct field length sizes to comply with fssz marshalling and unmarshalling rules.
NewAttestation creates a block attestation with minimum marshalable fields.
NewAttestationElectra creates a block attestation with minimum marshalable fields.
NewBeaconBlock creates a beacon block with minimum marshalable fields.
NewBeaconBlockAltair creates a beacon block with minimum marshalable fields.
NewBeaconBlockBellatrix creates a beacon block with minimum marshalable fields.
NewBeaconBlockCapella creates a beacon block with minimum marshalable fields.
NewBeaconBlockContentsDeneb creates a beacon block with minimum marshalable fields.
NewBeaconBlockContentsElectra creates a beacon block with minimum marshalable fields.
NewBeaconBlockDeneb creates a beacon block with minimum marshalable fields.
NewBeaconBlockElectra creates a beacon block with minimum marshalable fields.
NewBeaconState creates a beacon state with minimum marshalable fields.
NewBeaconStateAltair creates a beacon state with minimum marshalable fields.
NewBeaconStateBellatrix creates a beacon state with minimum marshalable fields.
NewBeaconStateCapella creates a beacon state with minimum marshalable fields.
NewBeaconStateDeneb creates a beacon state with minimum marshalable fields.
NewBeaconStateElectra creates a beacon state with minimum marshalable fields.
NewBlindedBeaconBlockBellatrix creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockBellatrixV2 creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockCapella creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockCapellaV2 creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockDeneb creates a blinded beacon block with minimum marshalable fields.
NewBlindedBeaconBlockElectra creates a blinded beacon block with minimum marshalable fields.
NewChannelEntryWriter creates a new ChannelEntryWriter.
NewWaiter internally create the chan that Waiter relies on.
PrepareRoots returns a list of roots with hex representations of natural numbers starting with 0.
RandaoReveal returns a signature of the requested epoch using the beacon proposer private key.
Random32Bytes generates a random 32 byte slice.
RegisterHookWithUndo adds a hook to the logger and returns a function that can be called to remove it.
UnregisterHook removes a hook that implements the HookIdentifier interface from all levels of the given logger.
WaitTimeout will wait for a WaitGroup to resolve within a timeout interval.
# Structs
BlockGenConfig is used to define the requested conditions for block generation.
ChannelEntryWriter embeds/wraps the test.Hook struct and adds a channel to receive log entries every time the Fire method of the Hook interface is called.
Waiter offers an alternate ux for building tests that want to ensure contexts are used in certain ways.
# Interfaces
ComparableHook is an interface that allows hooks to be uniquely identified so that tests can safely unregister them as part of cleanup.