Skip to content

Commit

Permalink
feat(subgraph): add optimism support to finance, tokens, and voting c…
Browse files Browse the repository at this point in the history
…onnectors
  • Loading branch information
0xGabi committed Nov 25, 2023
1 parent 577f62e commit 15d286e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/connect-finance/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-rinkeby'
}
if (chainId === 10) {
return 'https://api.thegraph.com/subgraphs/name/blossomlabs/aragon-finance-optimism'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-finance-xdai'
}
Expand Down
3 changes: 3 additions & 0 deletions packages/connect-tokens/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-rinkeby'
}
if (chainId === 10) {
return 'https://thegraph.com/explorer/subgraph/blossomlabs/aragon-tokens-optimism'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/aragon/aragon-tokens-xdai'
}
Expand Down
3 changes: 3 additions & 0 deletions packages/connect-voting/src/thegraph/connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export function subgraphUrlFromChainId(chainId: number) {
if (chainId === 4) {
return 'https://api.thegraph.com/subgraphs/name/1hive/aragon-voting-rinkeby'
}
if (chainId === 10) {
return 'https://api.thegraph.com/subgraphs/name/blossomlabs/aragon-voting-optimism'
}
if (chainId === 100) {
return 'https://api.thegraph.com/subgraphs/name/1hive/aragon-voting-xdai'
}
Expand Down

0 comments on commit 15d286e

Please sign in to comment.