eth2.0-specs/pysetup/spec_builders/eip7594.py

21 lines
515 B
Python
Raw Normal View History

2024-01-05 10:43:37 +00:00
from typing import Dict
from .base import BaseSpecBuilder
2024-01-13 16:13:08 +00:00
from ..constants import EIP7594
2024-01-05 10:43:37 +00:00
2024-01-13 16:13:08 +00:00
class EIP7594SpecBuilder(BaseSpecBuilder):
fork: str = EIP7594
2024-01-05 10:43:37 +00:00
@classmethod
def imports(cls, preset_name: str):
return f'''
from eth2spec.deneb import {preset_name} as deneb
'''
@classmethod
def hardcoded_custom_type_dep_constants(cls, spec_object) -> Dict[str, str]:
return {
'FIELD_ELEMENTS_PER_CELL': spec_object.preset_vars['FIELD_ELEMENTS_PER_CELL'].value,
}