An open API service indexing awesome lists of open source software.

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

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.