Skip to content

test_gas_cost()

Documentation for tests/prague/eip7702_set_code_tx/test_gas.py::test_gas_cost@bc691d13.

Generate fixtures for these test cases for Prague with:

fill -v tests/prague/eip7702_set_code_tx/test_gas.py::test_gas_cost --fork Prague

Test gas at the execution start of a set-code transaction in multiple scenarios.

Source code in tests/prague/eip7702_set_code_tx/test_gas.py
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
@pytest.mark.parametrize(**gas_test_parameter_args(include_pre_authorized=False))
def test_gas_cost(
    state_test: StateTestFiller,
    pre: Alloc,
    fork: Fork,
    authorization_list_with_properties: List[AuthorizationWithProperties],
    authorization_list: List[AuthorizationTuple],
    data: bytes,
    access_list: List[AccessList],
    sender: EOA,
):
    """Test gas at the execution start of a set-code transaction in multiple scenarios."""
    # Calculate the intrinsic gas cost of the authorizations, by default the
    # full empty account cost is charged for each authorization.
    intrinsic_gas = fork.transaction_intrinsic_cost_calculator()(
        calldata=data,
        access_list=access_list,
        authorization_list_or_count=authorization_list,
    )

    discounted_authorizations = 0
    seen_authority = set()
    for authorization_with_properties in authorization_list_with_properties:
        if authorization_with_properties.invalidity_type is None:
            authority = authorization_with_properties.tuple.signer
            if not authorization_with_properties.empty:
                seen_authority.add(authority)
            if authority in seen_authority:
                discounted_authorizations += 1
            else:
                seen_authority.add(authority)

    discount_gas = (
        Spec.PER_EMPTY_ACCOUNT_COST - Spec.PER_AUTH_BASE_COST
    ) * discounted_authorizations

    # We calculate the exact gas required to execute the test code.
    # We add SSTORE opcodes in order to make sure that the refund is less than one fifth (EIP-3529)
    # of the total gas used, so we can see the full discount being reflected in most of the tests.
    gas_costs = fork.gas_costs()
    gas_opcode_cost = gas_costs.G_BASE
    sstore_opcode_count = 10
    push_opcode_count = (2 * (sstore_opcode_count)) - 1
    push_opcode_cost = gas_costs.G_VERY_LOW * push_opcode_count
    sstore_opcode_cost = gas_costs.G_STORAGE_SET * sstore_opcode_count
    cold_storage_cost = gas_costs.G_COLD_SLOAD * sstore_opcode_count

    execution_gas = gas_opcode_cost + push_opcode_cost + sstore_opcode_cost + cold_storage_cost

    # The first opcode that executes in the code is the GAS opcode, which costs 2 gas, so we
    # subtract that from the expected gas measure.
    expected_gas_measure = execution_gas - gas_opcode_cost

    test_code_storage = Storage()
    test_code = (
        Op.SSTORE(test_code_storage.store_next(expected_gas_measure), Op.GAS)
        + sum(
            Op.SSTORE(test_code_storage.store_next(1), 1) for _ in range(sstore_opcode_count - 1)
        )
        + Op.STOP
    )
    test_code_address = pre.deploy_contract(test_code)

    tx_gas_limit = intrinsic_gas + execution_gas

    # EIP-3529
    max_discount = tx_gas_limit // 5

    if discount_gas > max_discount:
        # Only one test hits this condition, but it's ok to also test this case.
        discount_gas = max_discount

    gas_used = tx_gas_limit - discount_gas

    sender_account = pre[sender]
    assert sender_account is not None

    tx = Transaction(
        gas_limit=tx_gas_limit,
        to=test_code_address,
        value=0,
        data=data,
        authorization_list=authorization_list,
        access_list=access_list,
        sender=sender,
        expected_receipt=TransactionReceipt(gas_used=gas_used),
    )

    state_test(
        env=Environment(gas_limit=max(tx_gas_limit, 30_000_000)),
        pre=pre,
        tx=tx,
        post={
            test_code_address: Account(storage=test_code_storage),
        },
    )

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) authorize_to_address signer_type authorization_invalidity_type authorizations_count invalid_authorization_index chain_id_type access_list_case self_sponsored re_authorize authority_type data
...fork_Prague-state_test-single_valid_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_chain_specific_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.CHAIN_SPECIFIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-multiple_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_invalid_nonce_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_invalid_authorization_invalid_chain_id_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_invalid_authorization_eoa_authority_multiple_signers_1 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 0 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-state_test-single_invalid_authorization_eoa_authority_multiple_signers_2 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-state_test-multiple_invalid_nonce_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-multiple_invalid_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-multiple_invalid_nonce_authorizations_self_sponsored_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-state_test-multiple_invalid_chain_id_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-multiple_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-first_valid_then_single_repeated_nonce_authorization AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-first_valid_then_single_repeated_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.REPEATED_NONCE 4 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_to_eoa AddressType.EOA SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_to_contract AddressType.CONTRACT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_with_authority_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_with_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_with_authority_and_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY_AND_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-single_valid_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Prague-state_test-single_valid_re_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-state_test-multiple_valid_authorizations_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Prague-state_test-single_valid_authorization_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-state_test-multiple_valid_authorizations_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-state_test-single_valid_authorization_invalid_contract_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.CONTRACT
...fork_Prague-state_test-multiple_authorizations_empty_account_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Prague-state_test-multiple_authorizations_eoa_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Prague-state_test-multiple_authorizations_eoa_self_sponsored_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False [, ]
...fork_Prague-state_test-single_valid_authorization_with_single_non_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 01
...fork_Prague-state_test-single_valid_authorization_with_single_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 00
...fork_Prague-state_test-many_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-many_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-state_test-first_valid_then_many_duplicate_authorizations AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_chain_specific_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.CHAIN_SPECIFIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-multiple_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_invalid_nonce_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_invalid_authorization_invalid_chain_id_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_invalid_authorization_eoa_authority_multiple_signers_1 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 0 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-blockchain_test_from_state_test-single_invalid_authorization_eoa_authority_multiple_signers_2 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_self_sponsored_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-blockchain_test_from_state_test-multiple_invalid_chain_id_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-multiple_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-first_valid_then_single_repeated_nonce_authorization AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-first_valid_then_single_repeated_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.REPEATED_NONCE 4 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_to_eoa AddressType.EOA SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_to_contract AddressType.CONTRACT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_with_authority_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_with_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_with_authority_and_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY_AND_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Prague-blockchain_test_from_state_test-single_valid_re_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Prague-blockchain_test_from_state_test-multiple_valid_authorizations_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-blockchain_test_from_state_test-multiple_valid_authorizations_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_invalid_contract_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.CONTRACT
...fork_Prague-blockchain_test_from_state_test-multiple_authorizations_empty_account_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Prague-blockchain_test_from_state_test-multiple_authorizations_eoa_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Prague-blockchain_test_from_state_test-multiple_authorizations_eoa_self_sponsored_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False [, ]
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_with_single_non_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 01
...fork_Prague-blockchain_test_from_state_test-single_valid_authorization_with_single_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 00
...fork_Prague-blockchain_test_from_state_test-many_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-many_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Prague-blockchain_test_from_state_test-first_valid_then_many_duplicate_authorizations AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_chain_specific_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.CHAIN_SPECIFIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-multiple_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_invalid_nonce_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_invalid_authorization_invalid_chain_id_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_invalid_authorization_eoa_authority_multiple_signers_1 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 0 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-state_test-single_invalid_authorization_eoa_authority_multiple_signers_2 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-state_test-multiple_invalid_nonce_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-multiple_invalid_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-multiple_invalid_nonce_authorizations_self_sponsored_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-state_test-multiple_invalid_chain_id_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-multiple_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-first_valid_then_single_repeated_nonce_authorization AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-first_valid_then_single_repeated_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.REPEATED_NONCE 4 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_to_eoa AddressType.EOA SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_to_contract AddressType.CONTRACT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_with_authority_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_with_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_with_authority_and_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY_AND_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-single_valid_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Osaka-state_test-single_valid_re_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-state_test-multiple_valid_authorizations_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Osaka-state_test-single_valid_authorization_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-state_test-multiple_valid_authorizations_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-state_test-single_valid_authorization_invalid_contract_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.CONTRACT
...fork_Osaka-state_test-multiple_authorizations_empty_account_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Osaka-state_test-multiple_authorizations_eoa_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Osaka-state_test-multiple_authorizations_eoa_self_sponsored_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False [, ]
...fork_Osaka-state_test-single_valid_authorization_with_single_non_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 01
...fork_Osaka-state_test-single_valid_authorization_with_single_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 00
...fork_Osaka-state_test-many_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-many_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-state_test-first_valid_then_many_duplicate_authorizations AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_chain_specific_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.CHAIN_SPECIFIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-multiple_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_invalid_nonce_authorization_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_invalid_authorization_invalid_chain_id_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_invalid_authorization_eoa_authority_multiple_signers_1 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 0 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-blockchain_test_from_state_test-single_invalid_authorization_eoa_authority_multiple_signers_2 AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-multiple_invalid_nonce_authorizations_self_sponsored_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.INVALID_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-blockchain_test_from_state_test-multiple_invalid_chain_id_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.INVALID_CHAIN_ID 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-multiple_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-first_valid_then_single_repeated_nonce_authorization AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-first_valid_then_single_repeated_nonce_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS AuthorizationInvalidityType.REPEATED_NONCE 4 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_to_eoa AddressType.EOA SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_to_contract AddressType.CONTRACT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_with_authority_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_with_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_with_authority_and_set_code_address_in_access_list AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.CONTAINS_AUTHORITY_AND_SET_CODE_ADDRESS False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Osaka-blockchain_test_from_state_test-single_valid_re_authorization_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False True AddressType.EOA_WITH_SET_CODE
...fork_Osaka-blockchain_test_from_state_test-multiple_valid_authorizations_eoa_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EOA
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-blockchain_test_from_state_test-multiple_valid_authorizations_eoa_self_sponsored_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False AddressType.EOA
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_invalid_contract_authority AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.CONTRACT
...fork_Osaka-blockchain_test_from_state_test-multiple_authorizations_empty_account_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Osaka-blockchain_test_from_state_test-multiple_authorizations_eoa_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY False False [, ]
...fork_Osaka-blockchain_test_from_state_test-multiple_authorizations_eoa_self_sponsored_then_contract_authority AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 2 -1 ChainIDType.GENERIC AccessListType.EMPTY True False [, ]
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_with_single_non_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 01
...fork_Osaka-blockchain_test_from_state_test-single_valid_authorization_with_single_zero_byte_data AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 1 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT 00
...fork_Osaka-blockchain_test_from_state_test-many_valid_authorizations_single_signer AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-many_valid_authorizations_multiple_signers AddressType.EMPTY_ACCOUNT SignerType.MULTIPLE_SIGNERS None 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT
...fork_Osaka-blockchain_test_from_state_test-first_valid_then_many_duplicate_authorizations AddressType.EMPTY_ACCOUNT SignerType.SINGLE_SIGNER AuthorizationInvalidityType.REPEATED_NONCE 5000 -1 ChainIDType.GENERIC AccessListType.EMPTY False False AddressType.EMPTY_ACCOUNT