forked from Uniswap/sybil-interface
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.js
43 lines (38 loc) · 1.18 KB
/
client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { ApolloClient } from 'apollo-client'
import { InMemoryCache } from 'apollo-cache-inmemory'
import { HttpLink } from 'apollo-link-http'
export const uniswapClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/ianlapham/governance-tracking'
}),
cache: new InMemoryCache(),
shouldBatch: true
})
export const compoundClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/protofire/compound-governance'
}),
cache: new InMemoryCache(),
shouldBatch: true
})
export const aaveClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/aave/governance-sybil'
}),
cache: new InMemoryCache(),
shouldBatch: true
})
export const poolClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/pooltogether/pooltogether-governance'
}),
cache: new InMemoryCache(),
shouldBatch: true
})
export const radicleClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/radicle-dev/radicle-governance-homestead'
}),
cache: new InMemoryCache(),
shouldBatch: true
})