{"id":26162491,"url":"https://github.com/balancer/balancer-subgraph-v3","last_synced_at":"2025-04-14T13:30:26.194Z","repository":{"id":256392972,"uuid":"737734793","full_name":"balancer/balancer-subgraph-v3","owner":"balancer","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-08T10:59:05.000Z","size":582,"stargazers_count":4,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-08T11:34:46.414Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/balancer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-01T09:41:29.000Z","updated_at":"2025-04-08T10:59:09.000Z","dependencies_parsed_at":"2024-09-10T13:40:34.920Z","dependency_job_id":"f082db26-337f-457d-9a25-4b1fde020c19","html_url":"https://github.com/balancer/balancer-subgraph-v3","commit_stats":null,"previous_names":["balancer/balancer-subgraph-v3"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalancer-subgraph-v3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalancer-subgraph-v3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalancer-subgraph-v3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/balancer%2Fbalancer-subgraph-v3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/balancer","download_url":"https://codeload.github.com/balancer/balancer-subgraph-v3/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248888520,"owners_count":21178073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-11T13:54:41.395Z","updated_at":"2025-04-14T13:30:26.133Z","avatar_url":"https://github.com/balancer.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Balancer v3 Subgraphs\n\nThis repository contains the subgraph implementations for Balancer v3, including pools and vault subgraphs. It's structured as a monorepo using pnpm workspaces.\n\n## Preliminary Deployments\n\n| Subgraph | Version | Endpoint                                                                                  |\n| -------- | ------- | ----------------------------------------------------------------------------------------- |\n| Vault    | 10      | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-10th/version/latest       |\n| Pools    | 10      | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-10th/version/latest |\n| Vault    | 9th     | https://api.studio.thegraph.com/query/31386/balancer-v3-sepolia-9th/version/latest        |\n| Pools    | 9th     | https://api.studio.thegraph.com/query/31386/balancer-pools-v3-sepolia-9th/version/latest  |\n\n## Prerequisites\n\n- Node.js (v18 or later)\n- pnpm (v7 or later)\n\n## Setup\n\n1. Install dependencies:\n\n   ```\n   pnpm install\n   ```\n\n2. Generate manifests:\n\n   ```\n   pnpm generate-manifests\n   ```\n\n   Note: Subgraph manifests (subgraph.yaml) define the smart contracts to index and how to map event data to entities.\n\n3. Generate types for all subgraphs:\n\n   ```\n   pnpm codegen\n   ```\n\n   Note: Codegen creates AssemblyScript classes for each smart contract ABI in subgraph.yaml.\n\n## Development\n\n### Working on a Specific Subgraph\n\nTo run commands for a specific subgraph:\n\n```\npnpm pools \u003ccommand\u003e  # For pools subgraph\npnpm vault \u003ccommand\u003e  # For vault subgraph\n```\n\nFor example, to build the pools subgraph:\n\n```\npnpm pools build\n```\n\n### Extending the Subgraphs\n\nAs Balancer expands to new networks or introduces new pool types, you may need to extend the subgraphs. We've provided detailed documentation to guide you through these processes:\n\n- [Adding Support for New Pool Types](docs/new-pool-types.md)\n  If you're building your own pools on Balancer and want to integrate them with the subgraph, this provides a step-by-step guide on how to extend the subgraph to support your new pool type. This ensures that your pool is integrated with Balancer's infraestructure.\n- [Adding Support for New Networks](docs/support-new-networks.md)\n  This guide walks you through the process of adding a new network to the subgraph. It covers updating the `networks.json` file, modifying the GitHub Actions workflow, and generating the necessary manifests.\n\n## Deployment\n\nDeployment is handled automatically by GitHub Actions when pushing to the `main` branch. The workflow will:\n\n1. Generate manifests for all subgraphs\n2. Generate code for all subgraphs\n3. Build and deploy each subgraph to The Graph's hosted service\n\nTo deploy manually, ensure you have the necessary credentials and run:\n\n```\npnpm pools build\npnpm pools deploy\n\npnpm vault build\npnpm vault deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fbalancer-subgraph-v3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbalancer%2Fbalancer-subgraph-v3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbalancer%2Fbalancer-subgraph-v3/lists"}