# Functions
AssertLogsContain checks that the desired string is a subset of the current log output.
AssertLogsDoNotContain is the inverse check of AssertLogsContain.
BazelFileBytes returns the byte array of the bazel file path given.
BlockSignature calculates the post-state root of the block and returns the signature.
DefaultBlockGenConfig returns the block config that utilizes the current params in the beacon config.
DepositTrieFromDeposits takes an array of deposits and returns 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.
GenerateAttestations creates attestations that are entirely valid, for all the committees of the current state slot.
GenerateAttesterSlashingForValidator for a specific validator index.
GenerateFullBlock generates a fully valid block with the requested parameters.
GenerateProposerSlashingForValidator for a specific validator index.
RandaoReveal returns a signature of the requested epoch using the beacon proposer private key.
Random32Bytes generates a random 32 byte slice.
ResetCache clears out the old trie, private keys and deposits.
RunBlockOperationTest takes in the prestate and the beacon block body, processes it through the passed in block operation function and checks the post state with the expected post state.
RunEpochOperationTest takes in the prestate and processes it through the passed in epoch operation function and checks the post state with the expected post state.
TempDir returns a directory path for temporary test storage.
TestFolders sets the proper config and returns the result of ReadDir on the passed in eth2-spec-tests directory along with its path.
UnmarshalYaml using a customized json encoder that supports "spec-name" override tag.
WaitForLog waits for the desired string to appear the logs within a time period.
WaitTimeout will wait for a WaitGroup to resolve within a timeout interval.
# Structs
BlockGenConfig is used to define the requested conditions for block generation.