mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-03-02 19:20:34 +00:00
21 lines
587 B
Python
21 lines
587 B
Python
from typing import Dict
|
|
|
|
from .base import BaseSpecBuilder
|
|
from ..constants import EIPXXXX
|
|
|
|
|
|
class EIPXXXXSpecBuilder(BaseSpecBuilder):
|
|
fork: str = EIPXXXX
|
|
|
|
@classmethod
|
|
def imports(cls, preset_name: str):
|
|
return f'''
|
|
from eth2spec.electra import {preset_name} as electra
|
|
'''
|
|
|
|
@classmethod
|
|
def hardcoded_custom_type_dep_constants(cls, spec_object) -> Dict[str, str]:
|
|
return {
|
|
'PTC_SIZE': spec_object.preset_vars['PTC_SIZE'].value,
|
|
'MAX_PAYLOAD_ATTESTATIONS': spec_object.preset_vars['MAX_PAYLOAD_ATTESTATIONS'].value,
|
|
} |