CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.

77

1.05x

Evaluation77%

1.05x

Agent success when using this tile

Overview
Eval results
Files

rubric.jsonevals/scenario-4/

{
  "context": "Evaluates how the solution uses py-solc-x to replace Solidity library placeholders with concrete addresses, including namespaced mappings and compiler overrides. Focuses on invoking solcx.link_code correctly, validating library inputs, and handling compiler selection via the package rather than manual string manipulation.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Link with link_code",
      "description": "Uses solcx.link_code as the primary mechanism to inject addresses and returns a fully linked 0x-prefixed hex string instead of reimplementing linking manually.",
      "max_score": 40
    },
    {
      "name": "Namespaced libraries",
      "description": "Supplies fully qualified library identifiers (e.g., path-prefixed names) through the libraries argument of solcx.link_code so each placeholder variant is resolved without leftovers.",
      "max_score": 20
    },
    {
      "name": "Address validation",
      "description": "Normalizes and verifies each provided address (stripping optional 0x, enforcing 40 hex chars) before passing to solcx.link_code, raising a clear error or SolcError for malformed values.",
      "max_score": 15
    },
    {
      "name": "Missing mapping errors",
      "description": "Detects when placeholders lack matching entries by checking solcx.link_code failures or post-link remnants and surfaces the missing library names in the raised exception rather than silently proceeding.",
      "max_score": 10
    },
    {
      "name": "Compiler override",
      "description": "Forwards optional solc_version or solc_binary arguments to solcx.link_code (or sets them via solcx.set_solc_version/get_executable) to link with the requested compiler even when it differs from the active default.",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-py-solc-x

tile.json