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 RunExecutionPayloadBidTest(t *testing.T, config string, fork string, block blockWithSSZObject, ...)
- func RunExecutionPayloadTest(t *testing.T, config string, fork string, sszToBlockBody SSZToBlockBody, ...)
- func RunPayloadAttestationTest(t *testing.T, config string, fork string, sszToState SSZToState)
- 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 PayloadAttestationOperation
- 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 RunExecutionPayloadBidTest ¶ added in v7.1.3
func RunExecutionPayloadBidTest(t *testing.T, config string, fork string, block blockWithSSZObject, sszToState SSZToState)
func RunExecutionPayloadTest ¶
func RunExecutionPayloadTest(t *testing.T, config string, fork string, sszToBlockBody SSZToBlockBody, sszToState SSZToState)
func RunPayloadAttestationTest ¶ added in v7.1.3
func RunPayloadAttestationTest(t *testing.T, config string, fork string, 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 PayloadAttestationOperation ¶ added in v7.1.3
type PayloadAttestationOperation func(ctx context.Context, s state.BeaconState, att *eth.PayloadAttestation) (state.BeaconState, error)
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
¶
- attestation.go
- attester_slashing.go
- block_header.go
- bls_to_execution_changes.go
- consolidations.go
- deposit.go
- deposit_request.go
- execution_payload.go
- execution_payload_bid.go
- payload_attestation.go
- proposer_slashing.go
- slashing.go
- sync_aggregate.go
- test_runner.go
- voluntary_exit.go
- withdrawal_request.go
- withdrawals.go
Click to show internal directories.
Click to hide internal directories.