Python wrapper and version management tool for the solc Solidity compiler.
77
Evaluation — 77%
↑ 1.05xAgent success when using this tile
A small utility that compiles Solidity sources while allowing scaffold phases to run without contract definitions.
allow_empty is true, returns an empty contracts map, includes a note about the empty result, and does not raise exceptions. @testallow_empty is false and no contracts exist, surfaces an error to the caller instead of silently succeeding. @test@generates
from typing import Any, Dict, List, TypedDict
class CompilationResult(TypedDict):
contracts: Dict[str, Any]
sources: List[str]
notes: List[str]
def compile_solidity_paths(paths: List[str], *, allow_empty: bool = False) -> CompilationResult:
"""
Compiles the given Solidity source files.
When allow_empty is True, the function must succeed even if no contracts are found,
returning an empty contracts map and a note about the empty result.
When allow_empty is False, attempting to compile sources with zero contracts raises an error.
"""Provides Solidity compiler access with optional tolerance for empty outputs.
Install with Tessl CLI
npx tessl i tessl/pypi-py-solc-xevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10