repo
stringlengths
2
99
file
stringlengths
13
225
code
stringlengths
0
18.3M
file_length
int64
0
18.3M
avg_line_length
float64
0
1.36M
max_line_length
int64
0
4.26M
extension_type
stringclasses
1 value
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/sync/test_optimistic.py
from eth2spec.test.context import ( spec_state_test, with_bellatrix_and_later, ) from eth2spec.test.helpers.attestations import ( state_transition_with_full_block, ) from eth2spec.test.helpers.block import ( build_empty_block_for_next_slot, ) from eth2spec.test.helpers.execution_payload import ( com...
4,887
41.504348
119
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/sync/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/genesis/test_initialization.py
from eth2spec.test.context import ( BELLATRIX, single_phase, spec_test, with_presets, with_phases, with_bellatrix_and_later, ) from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.helpers.deposits import ( prepare_full_genesis_deposits, ) from eth2spec.test.helpers.genesis ...
3,603
28.300813
93
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/genesis/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/unittests/test_is_valid_terminal_pow_block.py
from eth2spec.utils.ssz.ssz_typing import uint256 from eth2spec.test.helpers.pow_block import ( prepare_random_pow_block, ) from eth2spec.test.context import ( spec_state_test, with_bellatrix_and_later, ) @with_bellatrix_and_later @spec_state_test def test_is_valid_terminal_pow_block_success_valid(spec, s...
1,669
36.111111
86
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/unittests/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/unittests/test_transition.py
from eth2spec.test.helpers.execution_payload import ( build_empty_execution_payload, build_state_with_incomplete_transition, build_state_with_complete_transition, ) from eth2spec.test.context import ( spec_state_test, with_bellatrix_and_later ) @with_bellatrix_and_later @spec_state_test def test_f...
1,770
30.625
106
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/unittests/test_validate_merge_block.py
from typing import Optional from eth2spec.utils.ssz.ssz_typing import uint256, Bytes32 from eth2spec.test.helpers.block import ( build_empty_block_for_next_slot, ) from eth2spec.test.helpers.execution_payload import ( compute_el_block_hash, ) from eth2spec.test.helpers.pow_block import ( prepare_random_pow_...
7,130
42.481707
103
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/unittests/validator/test_validator.py
from copy import deepcopy from typing import Optional from eth2spec.test.helpers.pow_block import ( prepare_random_pow_chain, ) from eth2spec.test.helpers.constants import ( BELLATRIX, ) from eth2spec.test.context import ( spec_state_test, with_phases, ) # For test_get_pow_block_at_terminal_total_dif...
6,855
38.630058
110
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/fork/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/fork/test_bellatrix_fork_random.py
from random import Random from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( ALTAIR, BELLATRIX, ...
2,980
34.070588
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/bellatrix/fork/test_bellatrix_fork_basic.py
from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( ALTAIR, BELLATRIX, MINIMAL, ) from eth2spe...
2,700
31.542169
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/sharding/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/sharding/unittests/test_get_start_shard.py
from eth2spec.test.context import ( with_phases, spec_state_test, ) from eth2spec.test.helpers.constants import SHARDING from eth2spec.test.helpers.state import next_epoch @with_phases([SHARDING]) @spec_state_test def test_get_committee_count_delta(spec, state): assert spec.get_committee_count_delta(state...
3,672
39.811111
105
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/sharding/unittests/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/random/test_random.py
""" This module is generated from the ``random`` test generator. Please do not edit this file manually. See the README for that generator for more information. """ from eth2spec.test.helpers.constants import ALTAIR from eth2spec.test.context import ( misc_balances_in_default_range_with_many_validators, with_ph...
30,877
69.33713
1,020
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/random/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/block_processing/test_process_deposit.py
from eth2spec.test.context import ( spec_state_test, always_bls, with_phases, with_altair_and_later, ) from eth2spec.test.helpers.constants import ( ALTAIR, ) from eth2spec.test.helpers.deposits import ( run_deposit_processing_with_specific_fork_version, ) @with_phases([ALTAIR]) @spec_state_...
1,095
25.095238
117
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/block_processing/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate_random.py
import random from eth2spec.test.helpers.constants import ( MAINNET, MINIMAL, ) from eth2spec.test.helpers.random import ( randomize_state, ) from eth2spec.test.helpers.state import ( has_active_balance_differential, ) from eth2spec.test.helpers.sync_committee import ( compute_committee_indices, run...
6,697
30.895238
104
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/block_processing/sync_aggregate/test_process_sync_aggregate.py
import random from eth2spec.test.helpers.block import ( build_empty_block_for_next_slot, ) from eth2spec.test.helpers.state import ( state_transition_and_sign_block, transition_to, next_epoch_via_block, ) from eth2spec.test.helpers.constants import ( MAINNET, MINIMAL, ) from eth2spec.test.helpers.sy...
26,923
37.190071
115
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/block_processing/sync_aggregate/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/sanity/test_blocks.py
from random import Random from eth2spec.test.helpers.state import ( state_transition_and_sign_block, next_epoch, set_full_participation_previous_epoch, ) from eth2spec.test.helpers.block import ( build_empty_block_for_next_slot, build_empty_block, ) from eth2spec.test.helpers.sync_committee import ...
4,574
31.21831
95
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/sanity/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/test_config_override.py
from eth2spec.test.context import ( spec_configured_state_test, spec_state_test_with_matching_config, spec_test, with_all_phases, with_config_overrides, with_matching_spec_config, with_phases, with_state, ) from eth2spec.test.helpers.constants import ( PHASE0, ALTAIR, BELLATRIX, ...
3,290
36.827586
82
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/test_config_invariants.py
from eth2spec.test.context import ( spec_state_test, with_altair_and_later, ) @with_altair_and_later @spec_state_test def test_weight_denominator(spec, state): assert ( spec.TIMELY_HEAD_WEIGHT + spec.TIMELY_SOURCE_WEIGHT + spec.TIMELY_TARGET_WEIGHT + spec.SYNC_REWARD_WEIGHT...
558
23.304348
90
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/validator/test_validator.py
import random from collections import defaultdict from eth2spec.utils.ssz.ssz_typing import Bitvector from eth2spec.utils import bls from eth2spec.test.helpers.block import build_empty_block from eth2spec.test.helpers.keys import pubkey_to_privkey, privkeys, pubkeys from eth2spec.test.helpers.state import transition_to...
12,237
35.100295
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/validator/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/networking/test_networking.py
from eth2spec.test.context import ( spec_state_test, with_altair_and_later, ) from eth2spec.test.helpers.state import ( transition_to, ) @with_altair_and_later @spec_state_test def test_get_sync_subcommittee_pubkeys_current_sync_committee(state, spec): # Transition to the head of the next period t...
1,849
37.541667
96
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/networking/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/light_client/test_sync_protocol.py
from copy import deepcopy from eth2spec.test.context import ( spec_state_test_with_matching_config, with_presets, with_light_client, ) from eth2spec.test.helpers.attestations import ( next_epoch_with_attestations, state_transition_with_full_block, ) from eth2spec.test.helpers.constants import MINIM...
6,261
34.378531
109
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/unittests/light_client/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_inactivity_updates.py
from random import Random from eth2spec.test.context import spec_state_test, with_altair_and_later from eth2spec.test.helpers.inactivity_scores import ( randomize_inactivity_scores, zero_inactivity_scores, ) from eth2spec.test.helpers.state import ( next_epoch, next_epoch_via_block, set_full_partic...
12,434
30.803069
113
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_sync_committee_updates.py
from eth2spec.test.context import ( always_bls, spec_state_test, spec_test, with_altair_and_later, with_presets, with_custom_state, single_phase, misc_balances, ) from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.helpers.state import transition_to from eth2spec.test....
4,758
36.769841
105
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/epoch_processing/test_process_participation_flag_updates.py
from random import Random from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.context import ( with_altair_and_later, with_custom_state, spec_test, spec_state_test, with_presets, single_phase, ) from eth2spec.test.helpers.state import next_epoch_via_block from eth2spec.test.helpe...
5,351
33.089172
115
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/epoch_processing/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/test_leaking.py
from eth2spec.test.context import ( ForkMeta, with_fork_metas, ) from eth2spec.test.helpers.constants import ( ALL_PRE_POST_FORKS, ) from eth2spec.test.helpers.fork_transition import ( do_fork, transition_until_fork, transition_to_next_epoch_and_append_blocks, ) @with_fork_metas([ForkMeta(pre_...
2,318
32.608696
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/test_activations_and_exits.py
import random from eth2spec.test.context import ( ForkMeta, ALTAIR, with_presets, with_fork_metas, ) from eth2spec.test.helpers.constants import ( ALL_PRE_POST_FORKS, MINIMAL, ) from eth2spec.test.helpers.fork_transition import ( do_fork, transition_until_fork, transition_to_next_epo...
8,192
37.106977
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/test_slashing.py
import random from eth2spec.test.context import ( ForkMeta, with_fork_metas, with_presets, ) from eth2spec.test.helpers.constants import ( ALL_PRE_POST_FORKS, MINIMAL, ) from eth2spec.test.helpers.fork_transition import ( do_fork, transition_to_next_epoch_and_append_blocks, transition_un...
2,975
37.649351
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/test_operations.py
from eth2spec.test.context import ( ForkMeta, always_bls, with_fork_metas, with_presets, ) from eth2spec.test.helpers.constants import ( ALL_PRE_POST_FORKS, MINIMAL, ) from eth2spec.test.helpers.fork_transition import ( OperationType, run_transition_with_operation, ) # # PROPOSER_SLASH...
5,629
29.597826
119
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/transition/test_transition.py
import random from eth2spec.test.context import ( ForkMeta, with_fork_metas, ) from eth2spec.test.helpers.random import ( randomize_state, ) from eth2spec.test.helpers.constants import ( ALL_PRE_POST_FORKS, ) from eth2spec.test.helpers.state import ( next_epoch_via_signed_block, ) from eth2spec.test...
15,580
36.009501
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/rewards/test_inactivity_scores.py
from random import Random from eth2spec.test.context import ( with_altair_and_later, spec_test, spec_state_test, with_custom_state, single_phase, low_balances, misc_balances, ) from eth2spec.test.helpers.inactivity_scores import randomize_inactivity_scores from eth2spec.test.helpers.rewards imp...
4,110
33.546218
101
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/fork/test_altair_fork_basic.py
from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( PHASE0, ALTAIR, MINIMAL, ) from eth2spec.t...
2,628
30.674699
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/fork/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/fork/test_altair_fork_random.py
from random import Random from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( PHASE0, ALTAIR, ...
4,284
34.413223
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/light_client/test_sync.py
from typing import (Any, Dict, List) from eth_utils import encode_hex from eth2spec.test.context import ( spec_state_test_with_matching_config, spec_test, with_config_overrides, with_matching_spec_config, with_phases, with_presets, with_state, with_light_client, ) from eth2spec.test.hel...
40,178
47.408434
120
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/light_client/test_update_ranking.py
from eth2spec.test.context import ( spec_state_test, with_presets, with_light_client, ) from eth2spec.test.helpers.attestations import ( next_slots_with_attestations, state_transition_with_full_block, ) from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.helpers.light_client impor...
8,647
60.771429
108
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/light_client/test_single_merkle_proof.py
from eth2spec.test.context import ( spec_state_test, with_light_client, with_test_suite_name, ) @with_test_suite_name("BeaconState") @with_light_client @spec_state_test def test_current_sync_committee_merkle_proof(spec, state): yield "object", state current_sync_committee_branch = spec.compute_mer...
2,518
34.985714
79
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/altair/light_client/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/random/test_random.py
""" This module is generated from the ``random`` test generator. Please do not edit this file manually. See the README for that generator for more information. """ from eth2spec.test.helpers.constants import DENEB from eth2spec.test.context import ( misc_balances_in_default_range_with_many_validators, with_pha...
28,092
62.993166
933
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/random/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/block_processing/test_process_voluntary_exit.py
from eth2spec.test.context import ( always_bls, spec_state_test, with_deneb_and_later, ) from eth2spec.test.helpers.constants import ( DENEB, ) from eth2spec.test.bellatrix.block_processing.test_process_voluntary_exit import ( run_voluntary_exit_processing_test, ) @with_deneb_and_later @spec_state...
2,804
30.516854
96
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/block_processing/test_process_execution_payload.py
from random import Random from eth2spec.test.helpers.execution_payload import ( build_empty_execution_payload, compute_el_block_hash, get_execution_payload_header, ) from eth2spec.test.context import ( spec_state_test, expect_assertion_error, with_deneb_and_later ) from eth2spec.test.helpers.sh...
7,618
35.985437
119
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/block_processing/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/sanity/test_blocks.py
from eth2spec.test.helpers.state import ( state_transition_and_sign_block, next_epoch_via_block, transition_to, ) from eth2spec.test.helpers.block import ( build_empty_block_for_next_slot, ) from eth2spec.test.context import ( DENEB, spec_state_test, spec_configured_state_test, with_dene...
3,258
31.267327
103
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/sanity/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/test_config_invariants.py
from eth2spec.test.context import ( single_phase, spec_test, with_deneb_and_later, ) @with_deneb_and_later @spec_test @single_phase def test_length(spec): assert spec.MAX_BLOBS_PER_BLOCK < spec.MAX_BLOB_COMMITMENTS_PER_BLOCK @with_deneb_and_later @spec_test @single_phase def test_networking(spec): ...
684
28.782609
115
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/validator/test_validator.py
from eth2spec.test.context import ( always_bls, spec_state_test, with_deneb_and_later, ) from eth2spec.test.helpers.execution_payload import ( compute_el_block_hash, ) from eth2spec.test.helpers.sharding import ( get_sample_opaque_tx, ) from eth2spec.test.helpers.block import ( build_empty_block...
2,521
36.088235
103
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/validator/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/polynomial_commitments/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/unittests/polynomial_commitments/test_polynomial_commitments.py
import random from eth2spec.test.context import ( spec_test, single_phase, with_deneb_and_later, expect_assertion_error, always_bls ) from eth2spec.test.helpers.sharding import ( get_sample_blob, get_poly_in_both_forms, eval_poly_in_coeff_form, ) from eth2spec.utils import bls from eth2...
9,455
27.481928
117
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/transition/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/transition/test_operations.py
from eth2spec.test.context import ( ForkMeta, always_bls, with_fork_metas, ) from eth2spec.test.helpers.constants import ( AFTER_DENEB_PRE_POST_FORKS, ) from eth2spec.test.helpers.fork_transition import ( OperationType, run_transition_with_operation, ) # # BLSToExecutionChange # @with_fork_me...
1,555
27.290909
103
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/fork/test_deneb_fork_random.py
from random import Random from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( CAPELLA, DENEB, ...
2,864
32.705882
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/fork/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/deneb/fork/test_deneb_fork_basic.py
from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( CAPELLA, DENEB, MINIMAL, ) from eth2spec.t...
2,612
30.481928
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/utils/randomized_block_tests.py
""" Utility code to generate randomized block tests """ import sys import warnings from random import Random from typing import Callable from eth2spec.test.helpers.execution_payload import ( compute_el_block_hash, ) from eth2spec.test.helpers.multi_operations import ( build_random_block_from_state_for_next_sl...
14,688
33.481221
117
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/utils/utils.py
from typing import Dict, Any from eth2spec.utils.ssz.ssz_typing import View from eth2spec.utils.ssz.ssz_impl import serialize def vector_test(description: str = None): """ vector_test decorator: Allow a caller to pass "generator_mode=True" to make the test yield data, but behave like a normal test (ignor...
4,472
45.113402
113
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/utils/__init__.py
from .utils import ( vector_test, with_meta_tags, ) __all__ = [ # avoid "unused import" lint error "vector_test", "with_meta_tags", ]
153
13
47
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/random/test_random.py
""" This module is generated from the ``random`` test generator. Please do not edit this file manually. See the README for that generator for more information. """ from eth2spec.test.helpers.constants import CAPELLA from eth2spec.test.context import ( misc_balances_in_default_range_with_many_validators, with_p...
28,286
63.43508
939
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/random/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_deposit.py
from eth2spec.test.context import ( spec_state_test, with_capella_and_later, ) from eth2spec.test.helpers.state import next_epoch_via_block from eth2spec.test.helpers.deposits import ( prepare_state_and_deposit, run_deposit_processing, ) from eth2spec.test.helpers.withdrawals import set_validator_fully_...
1,474
35.875
90
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_bls_to_execution_change.py
from eth2spec.test.helpers.keys import pubkeys from eth2spec.test.helpers.bls_to_execution_changes import get_signed_address_change from eth2spec.test.helpers.constants import CAPELLA, MAINNET from eth2spec.test.context import ( always_bls, expect_assertion_error, spec_state_test, with_capella_and_later...
9,640
38.191057
239
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_execution_payload.py
from eth2spec.test.helpers.execution_payload import ( build_empty_execution_payload, compute_el_block_hash, build_state_with_incomplete_transition, ) from eth2spec.test.context import ( spec_state_test, with_capella_and_later, ) from eth2spec.test.helpers.state import next_slot from eth2spec.test.be...
904
35.2
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/block_processing/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/block_processing/test_process_withdrawals.py
import random from eth2spec.test.context import ( spec_state_test, expect_assertion_error, with_presets, with_capella_and_later, ) from eth2spec.test.helpers.constants import MAINNET, MINIMAL from eth2spec.test.helpers.execution_payload import ( build_empty_execution_payload, compute_el_block_h...
34,134
38.145642
117
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/sanity/test_blocks.py
from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.context import ( with_capella_and_later, spec_state_test, with_presets, ) from eth2spec.test.helpers.keys import pubkeys from eth2spec.test.helpers.state import ( next_epoch_via_block, state_transition_and_sign_block, transit...
17,437
35.028926
119
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/sanity/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/epoch_processing/test_process_historical_summaries_update.py
from eth2spec.test.context import ( spec_state_test, with_capella_and_later, ) from eth2spec.test.helpers.epoch_processing import ( run_epoch_processing_with ) def run_process_historical_summaries_update(spec, state): yield from run_epoch_processing_with(spec, state, 'process_historical_summaries_upda...
1,022
36.888889
100
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/epoch_processing/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/fork/test_capella_fork_basic.py
from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( BELLATRIX, CAPELLA, MINIMAL, ) from eth2sp...
2,676
31.253012
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/fork/test_capella_fork_random.py
from random import Random from eth2spec.test.context import ( with_phases, with_custom_state, with_presets, spec_test, with_state, low_balances, misc_balances, large_validator_set, ) from eth2spec.test.utils import with_meta_tags from eth2spec.test.helpers.constants import ( BELLATRIX, CAPELLA,...
2,942
33.623529
116
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/fork/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/light_client/test_single_merkle_proof.py
from eth2spec.test.context import ( spec_state_test, with_capella_and_later, with_test_suite_name, ) from eth2spec.test.helpers.attestations import ( state_transition_with_full_block, ) @with_test_suite_name("BeaconBlockBody") @with_capella_and_later @spec_state_test def test_execution_merkle_proof(sp...
1,121
34.0625
83
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/capella/light_client/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/random/test_random.py
""" This module is generated from the ``random`` test generator. Please do not edit this file manually. See the README for that generator for more information. """ from eth2spec.test.helpers.constants import PHASE0 from eth2spec.test.context import ( misc_balances_in_default_range_with_many_validators, with_ph...
27,629
61.938497
915
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/random/__init__.py
0
0
0
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_proposer_slashing.py
from eth2spec.test.context import spec_state_test, expect_assertion_error, always_bls, with_all_phases from eth2spec.test.helpers.block import build_empty_block_for_next_slot from eth2spec.test.helpers.block_header import sign_block_header from eth2spec.test.helpers.keys import privkeys from eth2spec.test.helpers.propo...
8,264
38.735577
115
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_deposit.py
from eth2spec.test.context import spec_state_test, always_bls, with_all_phases from eth2spec.test.helpers.deposits import ( build_deposit, prepare_state_and_deposit, run_deposit_processing, run_deposit_processing_with_specific_fork_version, sign_deposit_data, ) from eth2spec.test.helpers.keys import...
10,427
34.469388
115
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_voluntary_exit.py
from eth2spec.test.helpers.constants import MINIMAL from eth2spec.test.context import ( spec_state_test, always_bls, with_all_phases, with_presets, spec_test, single_phase, with_custom_state, scaled_churn_balances, ) from eth2spec.test.helpers.keys import pubkey_to_privkey from eth2spec.test.helpers.vol...
8,972
39.237668
117
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_attester_slashing.py
from random import Random from eth2spec.test.context import ( spec_state_test, expect_assertion_error, always_bls, with_all_phases, with_custom_state, spec_test, single_phase, low_balances, misc_balances, ) from eth2spec.test.helpers.attestations import sign_indexed_attestation from eth2spec.test.helpers.a...
20,150
39.382766
118
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_attestation.py
from eth2spec.test.context import ( spec_state_test, always_bls, never_bls, with_all_phases, spec_test, low_balances, with_custom_state, single_phase, ) from eth2spec.test.helpers.attestations import ( run_attestation_processing, get_valid_attestation, sign_aggregate_attestation,...
20,053
33.105442
114
py
consensus-specs
consensus-specs-master/tests/core/pyspec/eth2spec/test/phase0/block_processing/test_process_block_header.py
from copy import deepcopy from eth2spec.test.context import spec_state_test, expect_assertion_error, with_all_phases from eth2spec.test.helpers.block import build_empty_block_for_next_slot from eth2spec.test.helpers.state import next_slot def prepare_state_for_header_processing(spec, state): spec.process_slots(s...
3,143
29.823529
102
py