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

21 lines
469 B
Python
Raw Normal View History

from typing import Dict
from .base import BaseSpecBuilder
from ..constants import CAPELLA
class CapellaSpecBuilder(BaseSpecBuilder):
fork: str = CAPELLA
@classmethod
def imports(cls, preset_name: str):
return f'''
from eth2spec.bellatrix import {preset_name} as bellatrix
'''
@classmethod
def hardcoded_ssz_dep_constants(cls) -> Dict[str, str]:
return {
2024-01-15 11:48:22 +00:00
'EXECUTION_PAYLOAD_GINDEX': 'GeneralizedIndex(25)',
}