operations

package
v5.1.3-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 4, 2024 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

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 ExecutionConfig

type ExecutionConfig struct {
	Valid bool `json:"execution_valid"`
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL