Skip to content

Index IDM messages with Sim IDX

duneanalytics/sim-idm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sim IDX Sample Project

Sim IDX is a framework that helps you build and deploy applications that index blockchain data in minutes. Define listeners that react to specific onchain events, extract relevant data, and automatically make this data queryable via an API.

This sample project indexes Uniswap V3 Factory pool creation events and serves as your starting point for building with Sim IDX.

When you're ready to continue, the Quickstart guide will walk you through authenticating and deploying your app.

What You'll Edit

The main files you'll work with are:

  • abis/ - Add JSON ABI files for contracts you want to index
  • listeners/src/Listener.sol - Define your indexing logic, triggers, events, and handlers
  • apis/src/index.ts - Define APIs for your indexed data

App Structure

.
├── sim.toml                     # App configuration
├── apis/                        # Your custom API code
├── abis/                        # Contract ABI files (JSON)
│   └── UniswapV3Factory.json    # Example: Uniswap V3 Factory ABI
├── listeners/                   # Foundry project for listener contracts
│   ├── src/
│   │   └── Listener.sol         # Main listener contract (Edit this)
│   └── test/
│       └── Listener.t.sol       # Unit tests for your listener

Next Steps

Ready to start building? Check out the comprehensive guides:

About

Index IDM messages with Sim IDX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •