{"id":25538720,"url":"https://github.com/dodoex/dodoex_v2_subgraph","last_synced_at":"2025-04-11T15:41:35.497Z","repository":{"id":43341025,"uuid":"316305674","full_name":"DODOEX/dodoex_v2_subgraph","owner":"DODOEX","description":"Subgraphs to index data for DODOEX V2","archived":false,"fork":false,"pushed_at":"2024-01-17T06:38:26.000Z","size":5433,"stargazers_count":37,"open_issues_count":0,"forks_count":21,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-15T02:31:03.235Z","etag":null,"topics":["assembly","blockchain-technology","data","subgraph","typescript"],"latest_commit_sha":null,"homepage":"https://app.dodoex.io/","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/DODOEX.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-26T18:10:49.000Z","updated_at":"2024-02-14T19:27:35.000Z","dependencies_parsed_at":"2024-10-06T10:31:03.899Z","dependency_job_id":null,"html_url":"https://github.com/DODOEX/dodoex_v2_subgraph","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodoex_v2_subgraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodoex_v2_subgraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodoex_v2_subgraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DODOEX%2Fdodoex_v2_subgraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DODOEX","download_url":"https://codeload.github.com/DODOEX/dodoex_v2_subgraph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248433022,"owners_count":21102494,"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":["assembly","blockchain-technology","data","subgraph","typescript"],"created_at":"2025-02-20T05:23:48.337Z","updated_at":"2025-04-11T15:41:35.474Z","avatar_url":"https://github.com/DODOEX.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subgraph for dodoex.io\n\nThe Graph exposes a GraphQL endpoint to query the events and entities within the DODOex ecosystem.\n\n[Go to thegraph playground : DODOEX](https://thegraph.com/explorer/subgraph/dodoex/dodoex-v2)\n\n[Go to thegraph playground : vDODO](https://thegraph.com/explorer/subgraph/dodoex/dodoex-vdodo?selected=playground)\n\n[Go to thegraph playground : ERC20Token](https://thegraph.com/explorer/subgraph/dodoex/dodoex-token)\n\n## 1、 Introduce\n\n**Attention**\n - In `Pair` entities,there is a virtual pool type,this is what we use when we do data statistics. In fact, DODO does not have these Pools. Please exclude the Pairs of type 'VIRTUAL'.\n\n**What is in OrderHistory**\n - Each *OrderHistory* event emit by DODOSmartRoute contract，if swap goes into the dodo liquidity pool, pool swap event will be ignored. \n - If swap tx isn't from DODOSmartRoute, swap event from each dodo liquidity pool will be record as *OrderHistory*.\n\n**What is in Swap** \n - Each swap event emit from dodo liquidity pool\n \n**Where to find pool information**\n - In *Pair*  we track pool status.\n\n**Endpoints**\n - dodoex \n    - ethereum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2\n    - bsc : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-bsc\n    - polygon : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-polygon\n    - arbitrum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-arbitrum\n    - rinkeby : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-rinkeby\n    - moonriver : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-moonriver\n    - aurora : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-aurora\n    - avax : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-avax\n    - boba : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-v2-boba\n  - token\n    - ethereum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token\n    - bsc : https://n14.hg.network/subgraphs/name/dodoex-token-bsc/bsc\n    - polygon : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-polygon\n    - arbitrum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-arbitrum\n    - rinkeby : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-rinkeby\n    - moonriver : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-moonriver\n    - aurora : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-aurora\n    - avax : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-avax\n    - boba : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-token-boba\n- vdodo\n    - ethereum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-vdodo\n    - rinkeby : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-vdodo-rinkeby\n- nft\n    - kovan : https://api.thegraph.com/subgraphs/name/autarkxu/dodoex-vdodo\n    - rinkeby : https://api.thegraph.com/subgraphs/name/dodoex/dodo-nft-rinkeby\n - mine\n    - ethereum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3\n    - bsc : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-bsc\n    - heco : https://n10.hg.network/subgraphs/name/dodoex-mine-v3-heco/heco\n    - polygon : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-polygon\n    - arbitrum : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-arbitrum\n    - rinkeby : https://api.thegraph.com/subgraphs/name/dodoex/dodomine-rinkeby\n    - moonriver : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-moonriver\n    - aurora : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-aurora\n    - avax : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-avax\n    - boba : https://api.thegraph.com/subgraphs/name/dodoex/dodoex-mine-v3-boba\n   \n## 2、 Graphql Examples\n - to get user info\n```\n{\n  user(id:\"0x8982a82a77eaf1cd6f490b67ad982304ecc590af\"){\n    id\n    txCount\n    tradingRewardRecieved\n  }\n}\n\n```\n - to get pair data for statistics use pairDayData、pairHourData\n```\n{\n  pairDayDatas(first:100,orderBy:date,orderDirection:desc){\n    date\n    volumeBase\n    volumeQuote\n    feeBase\n    feeQuote\n    baseToken{\n      symbol\n    }\n    quoteToken{\n      symbol\n    }\n  }\n}\n```\n - to get crowdpooling info\n```\n{\n  crowdPoolingDayDatas{\n    date\n    crowdPooling {\n      id\n      creator\n      baseToken{\n        symbol\n      }\n      quoteToken{\n        symbol\n      }\n    }\n    investedQuote\n    investCount\n    newcome\n    poolQuote\n  }\n  \n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodoex%2Fdodoex_v2_subgraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdodoex%2Fdodoex_v2_subgraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdodoex%2Fdodoex_v2_subgraph/lists"}