Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 1.11 KB

File metadata and controls

23 lines (14 loc) · 1.11 KB

Sim IDX: Contract Decoder Template

This repository contains the template for a Sim IDX app designed to decode and index data directly from smart contract function calls and emitted events.

Getting Started

sim init --template=contract-decoder

This will scaffold a new Sim IDX app in your current directory, pre-configured with the example of decoding Uniswap's V3 Factory contract.

For a complete, step-by-step guide on how to customize this template to decode a different contract, please refer to our official documentation.

View the Full Contract Decoder Guide

Use Cases

This pattern is especially powerful for:

  • Price Oracles: Capturing real-time price data from functions like Uniswap's V3 Factory contract.
  • Marketplaces: Decoding the results of complex order fulfillments, like fulfillAdvancedOrder on OpenSea's Seaport protocol.
  • DeFi Protocols: Extracting detailed user state (e.g., health factor, collateral) from functions that return complex objects.