project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4

ERC7730 Previewer

task 1: add the json file for a RocketPool, a DeFi protocol;task2 :Add a Json previewer tool

ERC7730 Previewer

Created At

ETHGlobal New York 2025

Project Description

  1. JSON File Upload & Parsing Users can upload JSON files containing ERC7730 schemas, and the app validates and parses them.
  2. Function Analysis & Visualization The app automatically: Extracts function signatures from the JSON Identifies function names (approve, mint, transfer, burn) Maps functions to visual preview images Displays the intent/description of each function
  3. Visual Preview System The app provides visual previews for different transaction types: Approve operations: Shows approval flow images Mint operations: Displays minting process visuals Transfer operations: Shows transfer workflow images Burn operations: Displays burning process visuals Each function gets matched with relevant preview images that show what the user will see on their Ledger device during signing.
  4. Device Simulation The app includes device simulators for both Ledger Flex and Stax devices, showing exactly how the transaction will appear on the hardware wallet screen.
  5. JSON Schema Validation The app validates that uploaded JSON follows the ERC7730 format: Must contain display.formats section Each function should have an intent description Proper metadata structure

How it's Made

task1: The ERC7730 JSON file follows a standardized schema for Ledger clear signing. 1. Start with contract analysis: Get ABI from contract address 2. Identify key functions: approve, transfer, mint, burn, etc. 3. Define user intents: What each function does in plain English 4. Map parameters: Link ABI parameters to display labels 5. Set formatting rules: How addresses, amounts should appear task2:

  1. JsonFileUpload (json-file-upload.tsx):
    • File upload handling with drag & drop
    • JSON validation and parsing
    • Error handling for invalid files
    • State management for parsed data
  2. FunctionAnalyzer (function-analyzer.tsx): - Parses display.formats section - Extracts function signatures and intents - Maps functions to preview images - Renders function cards with metadata
background image mobile

Join the mailing list

Get the latest news and updates