Apply modularized setup changes
This commit is contained in:
parent
758022d4aa
commit
2ef22cb478
|
@ -9,7 +9,10 @@ env:
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
pull_request:
|
branches:
|
||||||
|
- dev
|
||||||
|
- master
|
||||||
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
test_preset_type:
|
test_preset_type:
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
from typing import Dict
|
||||||
from .base import BaseSpecBuilder
|
from .base import BaseSpecBuilder
|
||||||
from ..constants import WHISK
|
from ..constants import WHISK
|
||||||
|
|
||||||
|
@ -9,6 +10,7 @@ class WhiskSpecBuilder(BaseSpecBuilder):
|
||||||
def imports(cls, preset_name: str):
|
def imports(cls, preset_name: str):
|
||||||
return f'''
|
return f'''
|
||||||
from eth2spec.capella import {preset_name} as capella
|
from eth2spec.capella import {preset_name} as capella
|
||||||
|
import curdleproofs
|
||||||
'''
|
'''
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
@ -17,4 +19,13 @@ from eth2spec.capella import {preset_name} as capella
|
||||||
return {
|
return {
|
||||||
'WHISK_MAX_SHUFFLE_PROOF_SIZE': spec_object.preset_vars['WHISK_MAX_SHUFFLE_PROOF_SIZE'].value,
|
'WHISK_MAX_SHUFFLE_PROOF_SIZE': spec_object.preset_vars['WHISK_MAX_SHUFFLE_PROOF_SIZE'].value,
|
||||||
'WHISK_MAX_OPENING_PROOF_SIZE': spec_object.preset_vars['WHISK_MAX_OPENING_PROOF_SIZE'].value,
|
'WHISK_MAX_OPENING_PROOF_SIZE': spec_object.preset_vars['WHISK_MAX_OPENING_PROOF_SIZE'].value,
|
||||||
|
'WHISK_VALIDATORS_PER_SHUFFLE': spec_object.preset_vars['WHISK_VALIDATORS_PER_SHUFFLE'].value,
|
||||||
|
'CURDLEPROOFS_N_BLINDERS': spec_object.preset_vars['CURDLEPROOFS_N_BLINDERS'].value,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def hardcoded_ssz_dep_constants(cls) -> Dict[str, str]:
|
||||||
|
constants = {
|
||||||
|
'EXECUTION_PAYLOAD_INDEX': 'GeneralizedIndex(41)',
|
||||||
|
}
|
||||||
|
return {**super().hardcoded_ssz_dep_constants(), **constants}
|
||||||
|
|
Loading…
Reference in New Issue