Documentation ¶
Index ¶
- func RunAttestationTest(t *testing.T, config string, fork string, ...)
- func RunAttesterSlashingTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunBLSToExecutionChangeTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunBlockHeaderTest(t *testing.T, config string, fork string, sszToBlock SSZToBlock, ...)
- func RunBlockOperationTest(t *testing.T, folderPath string, wsb interfaces.SignedBeaconBlock, ...)
- func RunConsolidationTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunDepositRequestsTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunDepositTest(t *testing.T, config string, fork string, blockWithDeposit blockWithSSZObject, ...)
- func RunExecutionPayloadTest(t *testing.T, config string, fork string, sszToBlockBody SSZToBlockBody, ...)
- func RunProposerSlashingTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunSyncCommitteeTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunVoluntaryExitTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunWithdrawalRequestTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunWithdrawalsTest(t *testing.T, config string, fork string, sszToBlock SSZToBlock, ...)
- type BlockOperation
- type ExecutionConfig
- type ProcessBlock
- type ProcessDeposits
- type SSZToBlock
- type SSZToBlockBody
- type SSZToState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAttestationTest ¶
func RunAttestationTest(t *testing.T, config string, fork string, blockWithAttestation blockWithSSZObject, processBlock ProcessBlock, sszToState SSZToState)
RunAttestationTest executes "operations/attestation" tests.
func RunAttesterSlashingTest ¶
func RunAttesterSlashingTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunBLSToExecutionChangeTest ¶
func RunBLSToExecutionChangeTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunBlockHeaderTest ¶
func RunBlockHeaderTest(t *testing.T, config string, fork string, sszToBlock SSZToBlock, sszToState SSZToState)
func RunBlockOperationTest ¶
func RunBlockOperationTest( t *testing.T, folderPath string, wsb interfaces.SignedBeaconBlock, sszToState SSZToState, operationFn BlockOperation, )
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.
func RunConsolidationTest ¶
func RunConsolidationTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunDepositRequestsTest ¶
func RunDepositRequestsTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunDepositTest ¶
func RunDepositTest(t *testing.T, config string, fork string, blockWithDeposit blockWithSSZObject, process ProcessDeposits, sszToState SSZToState)
func RunExecutionPayloadTest ¶
func RunExecutionPayloadTest(t *testing.T, config string, fork string, sszToBlockBody SSZToBlockBody, sszToState SSZToState)
func RunProposerSlashingTest ¶
func RunProposerSlashingTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunSyncCommitteeTest ¶
func RunSyncCommitteeTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunVoluntaryExitTest ¶
func RunVoluntaryExitTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunWithdrawalRequestTest ¶
func RunWithdrawalRequestTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunWithdrawalsTest ¶
func RunWithdrawalsTest(t *testing.T, config string, fork string, sszToBlock SSZToBlock, sszToState SSZToState)
Types ¶
type BlockOperation ¶
type BlockOperation func(context.Context, state.BeaconState, interfaces.ReadOnlySignedBeaconBlock) (state.BeaconState, error)
type ExecutionConfig ¶
type ExecutionConfig struct {
Valid bool `json:"execution_valid"`
}
type ProcessBlock ¶
type ProcessBlock func(context.Context, state.BeaconState, interfaces.ReadOnlyBeaconBlock) (state.BeaconState, error)
type ProcessDeposits ¶
type ProcessDeposits func(ctx context.Context, beaconState state.BeaconState, deposits []*ethpb.Deposit) (state.BeaconState, error)
type SSZToBlock ¶
type SSZToBlock func([]byte) (interfaces.SignedBeaconBlock, error)
type SSZToBlockBody ¶
type SSZToBlockBody func([]byte) (interfaces.ReadOnlyBeaconBlockBody, error)
type SSZToState ¶
type SSZToState func([]byte) (state.BeaconState, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.