Skip to content

solc_json

Property

@cached_property
solc_json: dict

Description

Generates a solc "standard JSON" representation of the Vyper contract.

  • Returns: A dictionary representing the solc standard JSON input for the contract.

Examples

>>> import boa
>>> src = """
... @external
... def main():
...     pass
... """
>>> deployer = boa.loads_partial(src, name="Foo")
>>> deployer.solc_json
{'language': 'Vyper', 'sources': {...}, 'settings': {...}, ...}