Examples
All examples are in the examples/ directory of the repository and compile to WASM. Each has a full test suite runnable with cargo test.
| Example | What it demonstrates |
|---|---|
| ERC20 | Basic event handler, single entity type. Live on The Graph Studio (Arbitrum One). |
| ERC721 | Multiple event handlers, multiple entity types. Live on The Graph Studio (Arbitrum One). |
| ERC1155 | Three handlers: TransferSingle, TransferBatch, URI. Batch processing. |
| Uniswap V2 | Factory + template pattern. Dynamic data sources. Counter updates. |
| File Data Source | IPFS file handlers. JSON parsing. |