OnchainJs (onchain_js v0.3.0)

Copy Markdown View Source

JavaScript bridge for Ethereum — run npm packages on the BEAM via QuickBEAM.

Provides supervised QuickBEAM runtimes for loading and executing JavaScript libraries (solc-js, Uniswap SDK, DeFiSaver, merkletreejs) without Node.js.

Portfolio

PackagePurpose
onchainCore Ethereum primitives, RPC, ABI, signing
onchain_aaveAave V3 protocol wrappers
onchain_evmRust NIFs: revm simulation, Solidity parsing, codegen
onchain_jsJS bridge: npm packages on the BEAM via QuickBEAM

Discovery

Use OnchainJs.describe/0 for a module overview, OnchainJs.describe/1 for function listings, and OnchainJs.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).