{"id":19070807,"url":"https://github.com/mento-protocol/mento-subgraph","last_synced_at":"2026-06-26T09:31:29.722Z","repository":{"id":218516349,"uuid":"742493278","full_name":"mento-protocol/mento-subgraph","owner":"mento-protocol","description":"Mento Subgraph definition for thegraph","archived":false,"fork":false,"pushed_at":"2025-09-22T20:40:21.000Z","size":184,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-09-22T22:09:52.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mento-protocol.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T15:49:41.000Z","updated_at":"2025-09-22T20:40:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"88c7d620-96fa-4af3-a5c5-e339dff759b5","html_url":"https://github.com/mento-protocol/mento-subgraph","commit_stats":null,"previous_names":["mento-protocol/mento-subgraph"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mento-protocol/mento-subgraph","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mento-protocol%2Fmento-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mento-protocol%2Fmento-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mento-protocol%2Fmento-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mento-protocol%2Fmento-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mento-protocol","download_url":"https://codeload.github.com/mento-protocol/mento-subgraph/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mento-protocol%2Fmento-subgraph/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34811914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2024-11-09T01:20:41.282Z","updated_at":"2026-06-26T09:31:29.707Z","avatar_url":"https://github.com/mento-protocol.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mento Subgraph\n\nThis package uses [openzeppelin-subgraphs](https://github.com/mento-protocol/openzeppelin-subgraphs) in order to compose the Mento subgraph.\n\n## How do I access the subgraph dashboard on thegraph.com?\n\nFor the Alfajores subgraph, use our shared test wallet from LastPass to log in to \u003chttps://thegraph.com/studio/subgraph/mento-alfajores/\u003e\n\nFor Mainnet, we will deploy a Gnosis Safe. Until then we will use the shared test wallet from LastPass.\n\n## Commands\n\n### `npm run auth`\n\nWill ask you to enter the deploy key (can be found on [the subgraph dashboard](https://thegraph.com/studio/subgraph/mento-alfajores/))\n\nWithout a deploy key you won't be able to deploy.\n\n### `npm run build-all \u003ctarget\u003e`\n\n\u003e target can be `alfajores`, `celo-sepolia` or `celo`.\n\nThis runs the following commands:\n\n- `npm run clean`\n- `npm run compile \u003ctarget\u003e`\n- `npm run codegen \u003ctarget\u003e`\n- `npm run build \u003ctarget\u003e`\n\nWill execute all the steps needed to prepare a deployment starting from a clean slate.\n\n### `npm run compile \u003ctarget\u003e`\n\n\u003e target can be `alfajores`, `celo-sepolia` or `celo`.\n\nThis step is handled by the `graph-compiler` package which composes together _modules_ configured on addresses, to generate a full graph specification that can be deploy to The Graph.\n\nThis will generate:\n\n- `generated/mento.\u003ctarget\u003e.schema.graphql`\n- `generated/mento.\u003ctarget\u003e.subgraph.yaml`\n\nThis should be run when we change `config.\u003ctarget\u003e.json`\n\n### `npm run codegen \u003ctarget\u003e`\n\n\u003e target can be `alfajores`, `celo-sepolia` or `celo`.\n\nThis step is handled by `graph-cli` and will generate utility types from ABI definitions, that are used in the WASM handlers.\n\n### `npm run build \u003ctarget\u003e`\n\n\u003e target can be `alfajores`, `celo-sepolia` or `celo`.\n\nThis step is handled by `graph-cli` and will compile all the code in the final binary form needed for the Graph deployment.\nYou don't usually have to run this step separately as it also happens a part of the `deploy` comand inside of `graph-cli`.\n\n### `npm run deploy \u003ctarget\u003e`\n\nThis will deploy the generated subgraph.\nSometimes this results in a `socket hang up` error. Wait for a bit and retry.\nYou will be asked to provide a version label, check the graph dashboard for the latest version and increment it.\n\n## Access the Graph dashboard\n\n1. Make sure you are added to the graph Gnosis Safe on sepolia.\n2. Go to `https://thegraph.com/studio/subgraph/mento` and connect with the safe.\n\nThe first time you go here scroll to the `auth \u0026 deploy` section and run the command to authenticate the CLI, otherwise you won't be able to deploy.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmento-protocol%2Fmento-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmento-protocol%2Fmento-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmento-protocol%2Fmento-subgraph/lists"}