https://github.com/tmigone/subgraph-workshop
https://github.com/tmigone/subgraph-workshop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/tmigone/subgraph-workshop
- Owner: tmigone
- Created: 2024-07-29T19:54:56.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-08-01T17:30:55.000Z (9 months ago)
- Last Synced: 2024-10-19T19:59:09.731Z (7 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subgraph workshop
### Pre-requisitos
1. Registrarse en The Graph Studio: https://thegraph.com/studio
2. Crear un subgraph en The Graph Studio
3. Seguir pasos en página de detalles del subgaph### Objetivo
https://www.heroesofnft.com/ es un juego de cartas coleccionables que usa NFTs. El objetivo es armar un subgraph para poder contestar las siguientes preguntas:
- Quienes son las 10 cuentas con más cartas (NFTs)
- Cuales son las cartas más transferidas
- Que cantidad de NFTs hay en total
- Log de transferencias de NFTs### Links
- https://www.heroesofnft.com/
- https://github.com/heroesofnft/nft/blob/main/contracts/HeroesToken.sol
- https://thegraph.com/explorer
- https://thegraph.com/studio
- https://docs.openzeppelin.com/contracts/5.x/api/token/erc721
- https://snowtrace.io/address/0x40f118e9b9e3781DA838e021d5b9f3D070C93D00
- https://github.com/heroesofnft/subgraphs/tree/main/hero-heroes-token
- https://thegraph.com/docs/en/developing/graph-ts/README/### Snippets
```
import {
Account,
} from "../generated/schema";import { Transfer } from "../generated/HeroesToken/HeroesToken";
// '0x0000000000000000000000000000000000000000'
```