https://github.com/duneanalytics/sim-idx-example-contract-decoder
https://github.com/duneanalytics/sim-idx-example-contract-decoder
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/duneanalytics/sim-idx-example-contract-decoder
- Owner: duneanalytics
- Created: 2025-06-21T09:29:16.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-23T11:20:19.000Z (12 months ago)
- Last Synced: 2025-06-23T11:22:20.639Z (12 months ago)
- Language: Solidity
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
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](https://docs.sim.dune.com/templates/contract-decoder).
[**View the Full Contract Decoder Guide**](https://docs.sim.dune.com/templates/contract-decoder)
## 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.