|
32 | 32 | from eth.beacon.types.attestations import Attestation
|
33 | 33 | from eth.beacon.types.states import BeaconState
|
34 | 34 | from eth.beacon.types.crosslink_records import CrosslinkRecord
|
35 |
| -from eth.beacon.types.deposits import Deposit |
36 | 35 | from eth.beacon.types.deposit_data import DepositData
|
37 | 36 | from eth.beacon.types.deposit_input import DepositInput
|
38 | 37 | from eth.beacon.types.proposal_signed_data import ProposalSignedData
|
|
47 | 46 | )
|
48 | 47 |
|
49 | 48 | from tests.beacon.helpers import (
|
50 |
| - make_deposit_input, |
51 | 49 | mock_validator_record,
|
52 |
| - sign_proof_of_possession, |
53 | 50 | )
|
54 | 51 |
|
55 | 52 | DEFAULT_SHUFFLING_SEED = b'\00' * 32
|
@@ -484,22 +481,18 @@ def min_deposit():
|
484 | 481 | return SERENITY_CONFIG.MIN_DEPOSIT
|
485 | 482 |
|
486 | 483 |
|
487 |
| -@pytest.fixture(scope="session") |
488 | 484 | def max_deposit():
|
489 | 485 | return SERENITY_CONFIG.MAX_DEPOSIT
|
490 | 486 |
|
491 | 487 |
|
492 |
| -@pytest.fixture(scope="session") |
493 | 488 | def genesis_fork_version():
|
494 | 489 | return SERENITY_CONFIG.GENESIS_FORK_VERSION
|
495 | 490 |
|
496 | 491 |
|
497 |
| -@pytest.fixture(scope="session") |
498 | 492 | def genesis_slot():
|
499 | 493 | return SERENITY_CONFIG.GENESIS_SLOT
|
500 | 494 |
|
501 | 495 |
|
502 |
| -@pytest.fixture(scope="session") |
503 | 496 | def far_future_slot():
|
504 | 497 | return SERENITY_CONFIG.FAR_FUTURE_SLOT
|
505 | 498 |
|
@@ -596,59 +589,7 @@ def max_exits():
|
596 | 589 |
|
597 | 590 | #
|
598 | 591 | # genesis
|
599 |
| -@pytest.fixture(scope="session") |
600 |
| -def initial_validator_deposits(privkeys, |
601 |
| - pubkeys, |
602 |
| - genesis_fork_version, |
603 |
| - genesis_slot, |
604 |
| - max_deposit): |
605 |
| - withdrawal_credentials = ZERO_HASH32 |
606 |
| - randao_commitment = ZERO_HASH32 |
607 |
| - custody_commitment = ZERO_HASH32 |
608 |
| - fork_data = ForkData( |
609 |
| - pre_fork_version=genesis_fork_version, |
610 |
| - post_fork_version=genesis_fork_version, |
611 |
| - fork_slot=genesis_slot, |
612 |
| - ) |
613 |
| - domain = get_domain( |
614 |
| - fork_data=fork_data, |
615 |
| - slot=genesis_slot, |
616 |
| - domain_type=SignatureDomain.DOMAIN_DEPOSIT, |
617 |
| - ) |
618 |
| - validator_count = 10 |
619 |
| - |
620 |
| - return tuple( |
621 |
| - Deposit( |
622 |
| - merkle_branch=( |
623 |
| - b'\x11' * 32 |
624 |
| - for j in range(10) |
625 |
| - ), |
626 |
| - merkle_tree_index=i, |
627 |
| - deposit_data=DepositData( |
628 |
| - deposit_input=DepositInput( |
629 |
| - pubkey=pubkeys[i], |
630 |
| - withdrawal_credentials=withdrawal_credentials, |
631 |
| - randao_commitment=randao_commitment, |
632 |
| - custody_commitment=custody_commitment, |
633 |
| - proof_of_possession=sign_proof_of_possession( |
634 |
| - deposit_input=make_deposit_input( |
635 |
| - pubkey=pubkeys[i], |
636 |
| - withdrawal_credentials=withdrawal_credentials, |
637 |
| - randao_commitment=randao_commitment, |
638 |
| - custody_commitment=custody_commitment, |
639 |
| - ), |
640 |
| - privkey=privkeys[i], |
641 |
| - domain=domain, |
642 |
| - ), |
643 |
| - ), |
644 |
| - amount=max_deposit, |
645 |
| - timestamp=0, |
646 |
| - ), |
647 |
| - ) |
648 |
| - for i in range(validator_count) |
649 |
| - ) |
650 |
| - |
651 |
| - |
| 592 | +# |
652 | 593 | @pytest.fixture
|
653 | 594 | def genesis_state(sample_beacon_state_params,
|
654 | 595 | genesis_validators,
|
|
0 commit comments