A subgraph for indexing Mirror Protocol events on Base network. This subgraph tracks Mirror's clone deployments and writing edition purchases.
This subgraph indexes events from the Mirror Protocol on Base network, specifically focusing on:
- Clone deployments
- Writing edition purchases
- Node.js
- Yarn
- Docker and Docker Compose (for local development)
- Clone the repository:
git clone https://github.com/yourusername/mirror-subgraph.git
cd mirror-subgraph- Install dependencies:
yarn install- Start a local Graph Node:
docker-compose up -d- Create a local subgraph:
yarn create-local- Deploy the subgraph locally:
yarn deploy-localGenerate AssemblyScript types from the subgraph schema:
yarn codegenBuild the subgraph:
yarn buildRun tests:
yarn testDeploy to The Graph Studio:
yarn deployThe subgraph is configured to track events from the Mirror Observer contract on Base network:
- Contract Address:
0x3F2408693cc2E0C8E0bb68f039cEB6DEac0EC072 - Start Block: 1757721
-
CloneDeployed- Tracks when new Mirror clones are deployed
- Parameters: creator, clone, implementation
-
WritingEditionPurchased- Tracks purchases of writing editions
- Parameters: buyer, tokenId, creator, price, uri, quantity
UNLICENSED