MCPcopy Index your code
hub / github.com/danhper/eclair

github.com/danhper/eclair @v0.1.8

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.8 ↗ · + Follow
447 symbols 961 edges 55 files 7 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Eclair: a Solidity Interpreter

ci

Eclair is a Solidity interpreter designed to provide a fast and intuitive REPL to interact with EVM smart contracts using Solidity.

The documentation can be found here: https://docs.eclair.so

Here is a sample session using Eclair that interacts with smart contracts deployed on Optimism using a Ledger.

eclair-demo

Extension points exported contracts — how you extend this code

FunctionDef (Interface)
(no doc) [10 implementers]
src/interpreter/functions/definition.rs
ProjectLoader (Interface)
(no doc) [3 implementers]
src/loaders/loader.rs
TokenStyle (Interface)
Trait that assigns a color to a Token kind [1 implementers]
src/repl/solidity_helper.rs
Decodable (Interface)
(no doc) [2 implementers]
src/interpreter/builtins/abi.rs

Core symbols most depended-on inside this repo

len
called by 47
src/interpreter/value.rs
as_ref
called by 44
src/interpreter/types.rs
get_provider
called by 19
src/interpreter/env.rs
evaluate_expression
called by 16
src/interpreter/interpreter.rs
max
called by 12
src/interpreter/types.rs
cast
called by 11
src/interpreter/types.rs
_eval_binop
called by 11
src/interpreter/interpreter.rs
_eval_binop_assign
called by 10
src/interpreter/interpreter.rs

Shape

Method 225
Function 183
Class 28
Enum 7
Interface 4

Languages

Rust100%

Modules by API surface

src/interpreter/value.rs51 symbols
src/interpreter/env.rs48 symbols
src/interpreter/builtins/abi.rs32 symbols
src/interpreter/types.rs30 symbols
src/interpreter/functions/contract.rs22 symbols
src/interpreter/interpreter.rs19 symbols
src/interpreter/functions/function.rs15 symbols
src/repl/solidity_helper.rs14 symbols
src/interpreter/utils.rs12 symbols
src/interpreter/functions/definition.rs12 symbols
tests/interpreter_test.rs11 symbols
src/interpreter/builtins/format.rs11 symbols

For agents

$ claude mcp add eclair \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact