{"id":24066373,"url":"https://github.com/rainlanguage/orderbook-subgraph","last_synced_at":"2025-02-26T19:24:38.921Z","repository":{"id":151611376,"uuid":"619952519","full_name":"rainlanguage/orderbook-subgraph","owner":"rainlanguage","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-24T06:37:32.000Z","size":13401,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-09T11:46:21.568Z","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/rainlanguage.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}},"created_at":"2023-03-27T18:33:26.000Z","updated_at":"2023-03-28T09:29:04.000Z","dependencies_parsed_at":"2023-11-28T13:43:29.483Z","dependency_job_id":null,"html_url":"https://github.com/rainlanguage/orderbook-subgraph","commit_stats":null,"previous_names":["rainlanguage/orderbook-subgraph"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Forderbook-subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Forderbook-subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Forderbook-subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rainlanguage%2Forderbook-subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rainlanguage","download_url":"https://codeload.github.com/rainlanguage/orderbook-subgraph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240919265,"owners_count":19878564,"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-01-09T11:40:59.693Z","updated_at":"2025-02-26T19:24:38.899Z","avatar_url":"https://github.com/rainlanguage.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Testing subgraph\n- `nix-shell --run init`\n- `nix-shell --run docker-up`\n- `nix-shell --run ci-test`\n\n### Deploying the subgraph with registry subgraph ABI check\n- `nix-shell --run init`\n- ```\n    nix-shell --run \"ts-node scripts/deploy.ts \\\n    --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n    --subgraphName \u003cSUBGRAPH_NAME\u003e \\\n    --graphAccessToken \u003cGRAPH_ACCESS_TOKEN\u003e \\\n    --network \u003cNETWORK\u003e\n    \"\n    ```\n\n### Deploying the subgraph with etherscan/polygonscan ABI check\n- `nix-shell --run init`\n- ```\n    nix-shell --run \"ts-node scripts/deploy.ts \\\n    --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n    --subgraphName \u003cSUBGRAPH_NAME\u003e \\\n    --graphAccessToken \u003cGRAPH_ACCESS_TOKEN\u003e \\\n    --network \u003cNETWORK\u003e\n    --blockNumber \u003cBLOCK_NUMBER\u003e\n    --etherscanAPIKey \u003cAPI_KEY\u003e\n    \"\n    ```\n\n### To deploy subgraph without any ABI check\n- `nix-shell --run init`\n- ```\n    nix-shell --run \"ts-node scripts/deploy.ts \\\n    --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n    --blockNumber \u003cBLOCK_NUMBER\u003e\n    --subgraphName \u003cSUBGRAPH_NAME\u003e \\\n    --graphAccessToken \u003cGRAPH_ACCESS_TOKEN\u003e \\\n    --network \u003cNETWORK\u003e\n    --skipCheck\n    \"\n    ```\n### Building a Subgraph to be deployed by Chainstack \nWhen deploying with chainstack we only need to build the sugbraph. This can be done by using any of the following commands. \n\n#### Build Subgraph with registry subgraph ABI check \nRun :\n```\nnix-shell --run init\n``` \nand then : \n``` \nnix-shell --run \"ts-node scripts/buildChainstackSubgraph.ts \\\n  --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n  --network \u003cNETWORK\u003e\n  \"\n``` \n#### Build Subgraph with etherscan/polygonscan ABI check \nThis is the recommended command while building the subgraph.\nRun :\n```\nnix-shell --run init\n``` \nand then : \n``` \nnix-shell --run \"ts-node scripts/buildChainstackSubgraph.ts \\\n  --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n  --network \u003cNETWORK\u003e\n  --blockNumber \u003cBLOCK_NUMBER\u003e\n  --etherscanAPIKey \u003cAPI_KEY\u003e\n  \"\n``` \n#### Build Subgraph without any ABI check \nRun :\n```\nnix-shell --run init\n``` \nand then : \n``` \nnix-shell --run \"ts-node scripts/buildChainstackSubgraph.ts \\\n  --contractAddress \u003cCONTRACT_ADDRESS\u003e \\\n  --blockNumber \u003cBLOCK_NUMBER\u003e\n  --network \u003cNETWORK\u003e\n  --skipCheck\n  \"\n``` \n\n### Deploying Subgraph with Chainstack\n- After building the subgraph to deploy subgraph , create a subgraph on https://chainstack.com/ and simply run the `Deployment command` generated by the chainstack console from the root of the project : \n- The deployment command will  look something like this : \n```\ngraph deploy --node \u003cchainstack-endpoint-url\u003e --ipfs \u003cchainstack-ipfs-url\u003e \u003cchainstack-subgraph-name\u003e\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Forderbook-subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frainlanguage%2Forderbook-subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frainlanguage%2Forderbook-subgraph/lists"}