OnchainEvm (onchain_evm v0.4.0)

Copy Markdown View Source

EVM simulation, Solidity parsing, debug/trace APIs, and contract codegen for Elixir.

Provides Rust NIF-powered local EVM execution (revm), Solidity ABI parsing (Alloy), debug/trace APIs, and compile-time contract code generation. Built on the onchain core library.

Discovery

Use OnchainEvm.describe/0 for a module overview, OnchainEvm.describe/1 for function listings, and OnchainEvm.describe/2 for full function details.

Summary

Functions

Return the list of modules registered with this library.

Return a Level 1 overview of all modules in this library.

Return Level 2 function list for a module (by full atom, or short name as string or atom).

Return Level 3 function detail (or nil if not found).

Functions

__descripex_modules__()

@spec __descripex_modules__() :: [module()]

Return the list of modules registered with this library.

describe()

@spec describe() :: [map()]

Return a Level 1 overview of all modules in this library.

describe(mod_or_short)

@spec describe(module() | atom() | String.t()) :: [map()]

Return Level 2 function list for a module (by full atom, or short name as string or atom).

describe(mod_or_short, func_name)

@spec describe(module() | atom() | String.t(), atom()) :: map() | nil

Return Level 3 function detail (or nil if not found).