-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy pathclient.js
59 lines (52 loc) · 1.59 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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/arr00/uniswap-governance-v2',
}),
cache: new InMemoryCache(),
shouldBatch: true,
})
export const compoundClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/arr00/compound-governance-2',
}),
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,
})
export const nounsClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/nounsdao/nouns-subgraph',
}),
cache: new InMemoryCache(),
shouldBatch: true,
})
export const ensClient = new ApolloClient({
link: new HttpLink({
uri: 'https://api.thegraph.com/subgraphs/name/ianlapham/ens-governance',
}),
cache: new InMemoryCache(),
shouldBatch: true,
})