{"id":24995402,"url":"https://github.com/compolabs/spark-subsquid-indexer","last_synced_at":"2025-03-29T14:43:59.523Z","repository":{"id":246026282,"uuid":"819822498","full_name":"compolabs/spark-subsquid-indexer","owner":"compolabs","description":null,"archived":false,"fork":false,"pushed_at":"2024-10-27T22:29:13.000Z","size":30963,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-04T15:47:33.384Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compolabs.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-06-25T09:09:31.000Z","updated_at":"2024-10-21T20:52:45.000Z","dependencies_parsed_at":"2024-07-12T13:24:14.744Z","dependency_job_id":"db385a94-ae09-494c-b896-0cde50637510","html_url":"https://github.com/compolabs/spark-subsquid-indexer","commit_stats":null,"previous_names":["compolabs/spark-subsquid-indexer"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-subsquid-indexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-subsquid-indexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-subsquid-indexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compolabs%2Fspark-subsquid-indexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compolabs","download_url":"https://codeload.github.com/compolabs/spark-subsquid-indexer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246200300,"owners_count":20739563,"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-02-04T15:37:42.103Z","updated_at":"2025-03-29T14:43:59.503Z","avatar_url":"https://github.com/compolabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Spark OrderBook indexer\n\nContract: https://github.com/compolabs/orderbook-contract/tree/master/market-contract\n\n_Please refer to the [documentation website](https://docs.sqd.dev/) for a thorough guide on all Squid indexer features_\n\n## Local usage\n\n1. Clone the repository\n\n   ```sh\n   git clone git@github.com:compolabs/spark-subsquid-indexer.git\n   ```\n\n2. Open it locally\n\n   ```sh\n   cd spark-subsquid-indexer\n   ```\n\n3. First, install the latest version of Subsquid CLI as a global npm package\n\n   ```sh\n   npm i -g @subsquid/cli@latest\n   ```\n\n4. Install dependencies\n\n   ```sh\n   npm i\n   ```\n\n5. Generate TypeORM entities from the schema file\n\n   ```sh\n   sqd codegen\n   ```\n\n6. Generate data access classes for an ABI file(s) in the ./abi folder\n\n   ```sh\n   sqd typegen\n   ```   \n\n7. Compile the project\n\n   ```sh\n   sqd build\n   ```\n\n8. Launch Postgres database to store the data\n\n   ```sh\n   sqd up\n   ```\n\n9. Apply database migrations to create the target schema\n\n   ```sh\n   sqd migration:generate\n   ```\n\n10. Run indexer\n\n   ```sh\n   sqd process\n   ```\n\n11. In another terminal, launch the server (open http://localhost:4000/graphql)\n\n   ```sh\n   sqd serve\n   ```    \n\n12. Shut down the database\n\n   ```sh\n   sqd down\n   ```   \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Fspark-subsquid-indexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompolabs%2Fspark-subsquid-indexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompolabs%2Fspark-subsquid-indexer/lists"}