Skip to content

Commit

Permalink
Add support for xdai network (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xGabi authored Jun 24, 2020
1 parent 6190e0f commit f42cff7
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/connect-thegraph/subgraph/manifest/data/xdai-staging.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"network": "xdai",
"description": "Development subgraph for Aragon organizations.",
"repository": "https://github.com/aragon/connect",
"ens": "0xaafca6b0c89521752e559650206d7c925fd0e530",
"DAOFactoryDataSources": [],
"RegistryDataSources": [
{
"name": "aragonpm.eth",
"address": "0x3c9fdcf51c3447f629fc61f6aaaf2ac3ea852040",
"startBlock": "10076177"
},
{
"name": "1hive.aragonpm.eth",
"address": "0x812672c031210b439a5befc8f397d639e97e3738",
"startBlock": "10076193"
}
],
"KernelDataSources": [
{
"name": "beehive",
"address": "0x6a8b8891c5f6de1fcf1ab889e7a06f6b60431641",
"startBlock": "10546308"
}
]
}
22 changes: 22 additions & 0 deletions packages/connect-thegraph/subgraph/manifest/data/xdai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"network": "xdai",
"description": "Subgraph for Aragon organizations.",
"repository": "https://github.com/aragon/connect",
"ens": "0xaafca6b0c89521752e559650206d7c925fd0e530",
"DAOFactoryDataSources": [
{
"name": "DAOFactory",
"address": "0x4037f97fcc94287257e50bd14c7da9cb4df18250",
"startBlock": "10076184"
}
],
"APMFactoryDataSources": [
{
"name": "ApmRegistryFactory",
"address": "0x812672c031210b439a5befc8f397d639e97e3738",
"startBlock": "10076185"
}
],
"RegistryDataSources": [],
"KernelDataSources": []
}
7 changes: 7 additions & 0 deletions packages/connect/src/connect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ function getNetwork(chainId?: number): Network | null {
ensAddress: '0x98df287b6c145399aaa709692c8d308357bc085d',
}
}
if (chainId === 100) {
return {
chainId: 100,
name: 'xdai',
ensAddress: '0xaafca6b0c89521752e559650206d7c925fd0e530',
}
}
return null
}

Expand Down

0 comments on commit f42cff7

Please sign in to comment.