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.

ExampleWhat it demonstrates
ERC20Basic event handler, single entity type. Live on The Graph Studio (Arbitrum One).
ERC721Multiple event handlers, multiple entity types. Live on The Graph Studio (Arbitrum One).
ERC1155Three handlers: TransferSingle, TransferBatch, URI. Batch processing.
Uniswap V2Factory + template pattern. Dynamic data sources. Counter updates.
File Data SourceIPFS file handlers. JSON parsing.