Skip to content

Architecture

Below you will find an architectural overview of Protocol Lens.

  • Protocol is deployed in a test Ethereum node running in-browser using compilation artifacts
  • Workflow tx is committed in the test Ethereum node
  • Tx opcodes are then decoded to a function trace in-browser using pre-built indexes
PackageDescription
notesDeFi protocol analysis app (astro/starlight)
evm-lens-indexerHardhat plugin for building trace indexes
evm-lensEVM transaction call tracer (browser-native)
evm-lens-uiReact UI components for call trace visualization
BrowserEVM LENSCOMPILATION ARTIFACTSCOMPILATIONSTATIC FILESFUNCTION TRACEEVM LENS INDEXES(opcode, ast)PROTOCOLEVM LENS INDEXERIn Browser Ethereum VMLensClientCLIENThttpFunction Tracer Logic(fn detection, decoding, source map)1. protocoldeploymentProtocol Workflow CodeEVM LENS UIfunction trace2. protocolworkflow tx3. tx opcodes4. function trace