mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-03 06:13:31 +00:00
clean up
This commit is contained in:
parent
060041945c
commit
7d2f0a9dc0
@ -132,17 +132,11 @@ def objects_to_spec(functions: Dict[str, str],
|
|||||||
f" def __init__(self, _x: {value}) -> None:\n"
|
f" def __init__(self, _x: {value}) -> None:\n"
|
||||||
f" ...\n"
|
f" ...\n"
|
||||||
if value.startswith("uint")
|
if value.startswith("uint")
|
||||||
# else ""
|
|
||||||
# else f"{key} = {value}\n"
|
|
||||||
else f"class {key}({value}):\n pass\n"
|
else f"class {key}({value}):\n pass\n"
|
||||||
for key, value in custom_types.items()
|
for key, value in custom_types.items()
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
# new_type_definitions += '\n'.join(['Bytes%s = BytesN[%s]' % (n, n) for n in byte_types])
|
|
||||||
# new_type_definitions += '\n' + '\n'.join(['Hash = Bytes32', 'BLSPubkey = Bytes48', 'BLSSignature = Bytes96'])
|
|
||||||
# new_type_definitions += \
|
|
||||||
# '\n' + '\n'.join(['''%s = NewType('%s', %s)''' % (key, key, value) for key, value in new_types.items()])
|
|
||||||
functions_spec = '\n\n'.join(functions.values())
|
functions_spec = '\n\n'.join(functions.values())
|
||||||
constants_spec = '\n'.join(map(lambda x: '%s = %s' % (x, constants[x]), constants))
|
constants_spec = '\n'.join(map(lambda x: '%s = %s' % (x, constants[x]), constants))
|
||||||
ssz_objects_instantiation_spec = '\n\n'.join(ssz_objects.values())
|
ssz_objects_instantiation_spec = '\n\n'.join(ssz_objects.values())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user