Skip to content

Commit ffacd3d

Browse files
authored
Merge pull request #39 from balancer/expand-subgraphs
add missing factories and deploy to op mainnet
2 parents 1c7a7c0 + a098bce commit ffacd3d

File tree

10 files changed

+453
-5
lines changed

10 files changed

+453
-5
lines changed

networks.json

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
"address": "0xb18fA0cb5DE8cecB8899AAE6e38b1B7ed77885dA",
2525
"startBlock": 21791079
2626
},
27+
"Gyro2CLPPoolFactory": {
28+
"address": "0xb96524227c4B5Ab908FC3d42005FE3B07abA40E9",
29+
"startBlock": 22188963
30+
},
2731
"GyroECLPPoolFactory": {
2832
"address": "0xE9B0a3bc48178D7FE2F5453C8bc1415d73F966d0",
2933
"startBlock": 22046343
@@ -58,6 +62,10 @@
5862
"address": "0xe4f1878eC9710846E2B529C1b5037F8bA94583b1",
5963
"startBlock": 38432088
6064
},
65+
"Gyro2CLPPoolFactory": {
66+
"address": "0x7fA49Df302a98223d98D115fc4FCD275576f6faA",
67+
"startBlock": 39369934
68+
},
6169
"GyroECLPPoolFactory": {
6270
"address": "0xEa924b45a3fcDAAdf4E5cFB1665823B8F8F2039B",
6371
"startBlock": 39033094
@@ -89,8 +97,8 @@
8997
"startBlock": 7944011
9098
},
9199
"Gyro2CLPPoolFactory": {
92-
"address": "0x5aD57d8BC854449bb85D7EA8B164f1cE266EC5a4",
93-
"startBlock": 7734971
100+
"address": "0x38ce8e04EBC04A39BED4b097e8C9bb8Ca74e33d8",
101+
"startBlock": 8042511
94102
},
95103
"GyroECLPPoolFactory": {
96104
"address": "0x589cA6855C348d831b394676c25B125BcdC7F8ce",
@@ -130,6 +138,10 @@
130138
"address": "0x44d33798dddCdAbc93Fe6a40C80588033Dc502d3",
131139
"startBlock": 317750010
132140
},
141+
"Gyro2CLPPoolFactory": {
142+
"address": "0x65A22Ec32c37835Ad5E77Eb6f7452Ac59E113a9F",
143+
"startBlock": 322520182
144+
},
133145
"StableSurgeHook": {
134146
"address": "0x0Fa0f9990D7969a7aE6f9961d663E4A201Ed6417",
135147
"startBlock": 303403113
@@ -164,6 +176,10 @@
164176
"address": "0xC49Ca921c4CD1117162eAEEc0ee969649997950c",
165177
"startBlock": 27852880
166178
},
179+
"Gyro2CLPPoolFactory": {
180+
"address": "0xf5CDdF6feD9C589f1Be04899F48f9738531daD59",
181+
"startBlock": 28450062
182+
},
167183
"StableSurgeHook": {
168184
"address": "0xb2007B8B7E0260042517f635CFd8E6dD2Dd7f007",
169185
"startBlock": 26049433
@@ -198,6 +214,10 @@
198214
"address": "0x482eE54595f79B6BA34b75754A4983134148Affb",
199215
"startBlock": 17236613
200216
},
217+
"Gyro2CLPPoolFactory": {
218+
"address": "0x4D1F5C8E3A7B9C6D5FfE0dA4aB1b8c7e9D2F3b6B",
219+
"startBlock": 17236613
220+
},
201221
"StableSurgeHook": {
202222
"address": "0x8A83Aa9bb7C4Cff14ae0aEcec0fB9ef234901c0C",
203223
"startBlock": 8689861
@@ -207,7 +227,6 @@
207227
"startBlock": 14211027
208228
}
209229
},
210-
211230
"avalanche": {
212231
"Vault": {
213232
"address": "0xba1333333333cbcdB5D83c2e5d1D898E07eD00Dc",
@@ -225,9 +244,47 @@
225244
"address": "0x1702067424096F07A60e62cceE3dE9420068492D",
226245
"startBlock": 59395784
227246
},
247+
"Gyro2CLPPoolFactory": {
248+
"address": "0x8e3fEaAB11b7B351e3EA1E01247Ab6ccc847dD52",
249+
"startBlock": 59658826
250+
},
228251
"GyroECLPPoolFactory": {
229252
"address": "0x83E443EF4f9963C77bd860f94500075556668cb8",
230253
"startBlock": 59394837
254+
},
255+
"LBPoolFactory": {
256+
"address": "0x25EA7b202CD8447e8E6F4A7C59b19C66DfEf1925",
257+
"startBlock": 59395203
258+
}
259+
},
260+
"optimism": {
261+
"Vault": {
262+
"address": "0xbA1333333333a1BA1108E8412f11850A5C319bA9",
263+
"startBlock": 133969439
264+
},
265+
"ProtocolFeeController": {
266+
"address": "0xCaCC7E1efEEA8BB3af6d5720d12C1876aa6EE76b",
267+
"startBlock": 133969430
268+
},
269+
"WeightedPoolFactory": {
270+
"address": "0x0f08eEf2C785AA5e7539684aF04755dEC1347b7c",
271+
"startBlock": 133969639
272+
},
273+
"StablePoolV2Factory": {
274+
"address": "0x268E2EE1413D768b6e2dc3F5a4ddc9Ae03d9AF42",
275+
"startBlock": 133969860
276+
},
277+
"Gyro2CLPPoolFactory": {
278+
"address": "0x4b979eD48F982Ba0baA946cB69c1083eB799729c",
279+
"startBlock": 134045195
280+
},
281+
"GyroECLPPoolFactory": {
282+
"address": "0x22625eEDd92c81a219A83e1dc48f88d54786B017",
283+
"startBlock": 133969692
284+
},
285+
"LBPoolFactory": {
286+
"address": "0xC1A64500E035D9159C8826E982dFb802003227f0",
287+
"startBlock": 133969827
231288
}
232289
}
233290
}

subgraphs/v3-pools/subgraph.arbitrum-one.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@ dataSources:
7171
- event: PoolCreated(indexed address)
7272
handler: handleStablePoolCreated
7373
file: ./src/mappings/stable.ts
74+
- kind: ethereum
75+
name: Gyro2CLPPoolFactory
76+
network: arbitrum-one
77+
source:
78+
abi: BasePoolFactory
79+
address: "0x65A22Ec32c37835Ad5E77Eb6f7452Ac59E113a9F"
80+
startBlock: 322520182
81+
mapping:
82+
kind: ethereum/events
83+
apiVersion: 0.0.7
84+
language: wasm/assemblyscript
85+
entities:
86+
- Factory
87+
- Pool
88+
abis:
89+
- name: Gyro2CLPPool
90+
file: ./abis/Gyro2CLPPool.json
91+
- name: BasePoolFactory
92+
file: ./abis/BasePoolFactory.json
93+
eventHandlers:
94+
- event: PoolCreated(indexed address)
95+
handler: handleGyro2PoolCreated
96+
file: ./src/mappings/gyro2.ts
7497
- kind: ethereum
7598
name: GyroECLPPoolFactory
7699
network: arbitrum-one

subgraphs/v3-pools/subgraph.avalanche.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,29 @@ dataSources:
4848
- event: PoolCreated(indexed address)
4949
handler: handleStablePoolCreated
5050
file: ./src/mappings/stable.ts
51+
- kind: ethereum
52+
name: Gyro2CLPPoolFactory
53+
network: avalanche
54+
source:
55+
abi: BasePoolFactory
56+
address: "0x8e3fEaAB11b7B351e3EA1E01247Ab6ccc847dD52"
57+
startBlock: 59658826
58+
mapping:
59+
kind: ethereum/events
60+
apiVersion: 0.0.7
61+
language: wasm/assemblyscript
62+
entities:
63+
- Factory
64+
- Pool
65+
abis:
66+
- name: Gyro2CLPPool
67+
file: ./abis/Gyro2CLPPool.json
68+
- name: BasePoolFactory
69+
file: ./abis/BasePoolFactory.json
70+
eventHandlers:
71+
- event: PoolCreated(indexed address)
72+
handler: handleGyro2PoolCreated
73+
file: ./src/mappings/gyro2.ts
5174
- kind: ethereum
5275
name: GyroECLPPoolFactory
5376
network: avalanche
@@ -71,3 +94,26 @@ dataSources:
7194
- event: PoolCreated(indexed address)
7295
handler: handleGyroEPoolCreated
7396
file: ./src/mappings/gyroE.ts
97+
- kind: ethereum
98+
name: LBPoolFactory
99+
network: avalanche
100+
source:
101+
abi: BasePoolFactory
102+
address: "0x25EA7b202CD8447e8E6F4A7C59b19C66DfEf1925"
103+
startBlock: 59395203
104+
mapping:
105+
kind: ethereum/events
106+
apiVersion: 0.0.7
107+
language: wasm/assemblyscript
108+
entities:
109+
- Factory
110+
- Pool
111+
abis:
112+
- name: LBPool
113+
file: ./abis/LBPool.json
114+
- name: BasePoolFactory
115+
file: ./abis/BasePoolFactory.json
116+
eventHandlers:
117+
- event: PoolCreated(indexed address)
118+
handler: handleLBPoolCreated
119+
file: ./src/mappings/lbp.ts

subgraphs/v3-pools/subgraph.base.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@ dataSources:
7171
- event: PoolCreated(indexed address)
7272
handler: handleStablePoolCreated
7373
file: ./src/mappings/stable.ts
74+
- kind: ethereum
75+
name: Gyro2CLPPoolFactory
76+
network: base
77+
source:
78+
abi: BasePoolFactory
79+
address: "0xf5CDdF6feD9C589f1Be04899F48f9738531daD59"
80+
startBlock: 28450062
81+
mapping:
82+
kind: ethereum/events
83+
apiVersion: 0.0.7
84+
language: wasm/assemblyscript
85+
entities:
86+
- Factory
87+
- Pool
88+
abis:
89+
- name: Gyro2CLPPool
90+
file: ./abis/Gyro2CLPPool.json
91+
- name: BasePoolFactory
92+
file: ./abis/BasePoolFactory.json
93+
eventHandlers:
94+
- event: PoolCreated(indexed address)
95+
handler: handleGyro2PoolCreated
96+
file: ./src/mappings/gyro2.ts
7497
- kind: ethereum
7598
name: GyroECLPPoolFactory
7699
network: base

subgraphs/v3-pools/subgraph.gnosis.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,29 @@ dataSources:
7171
- event: PoolCreated(indexed address)
7272
handler: handleStablePoolCreated
7373
file: ./src/mappings/stable.ts
74+
- kind: ethereum
75+
name: Gyro2CLPPoolFactory
76+
network: gnosis
77+
source:
78+
abi: BasePoolFactory
79+
address: "0x7fA49Df302a98223d98D115fc4FCD275576f6faA"
80+
startBlock: 39369934
81+
mapping:
82+
kind: ethereum/events
83+
apiVersion: 0.0.7
84+
language: wasm/assemblyscript
85+
entities:
86+
- Factory
87+
- Pool
88+
abis:
89+
- name: Gyro2CLPPool
90+
file: ./abis/Gyro2CLPPool.json
91+
- name: BasePoolFactory
92+
file: ./abis/BasePoolFactory.json
93+
eventHandlers:
94+
- event: PoolCreated(indexed address)
95+
handler: handleGyro2PoolCreated
96+
file: ./src/mappings/gyro2.ts
7497
- kind: ethereum
7598
name: GyroECLPPoolFactory
7699
network: gnosis
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
specVersion: 1.0.0
2+
schema:
3+
file: ./schema.graphql
4+
dataSources:
5+
- kind: ethereum
6+
name: WeightedPoolFactory
7+
network: optimism
8+
source:
9+
abi: BasePoolFactory
10+
address: "0x0f08eEf2C785AA5e7539684aF04755dEC1347b7c"
11+
startBlock: 133969639
12+
mapping:
13+
kind: ethereum/events
14+
apiVersion: 0.0.7
15+
language: wasm/assemblyscript
16+
entities:
17+
- Factory
18+
- Pool
19+
abis:
20+
- name: WeightedPool
21+
file: ./abis/WeightedPool.json
22+
- name: BasePoolFactory
23+
file: ./abis/BasePoolFactory.json
24+
eventHandlers:
25+
- event: PoolCreated(indexed address)
26+
handler: handleWeightedPoolCreated
27+
file: ./src/mappings/weighted.ts
28+
- kind: ethereum
29+
name: StablePoolV2Factory
30+
network: optimism
31+
source:
32+
abi: BasePoolFactory
33+
address: "0x268E2EE1413D768b6e2dc3F5a4ddc9Ae03d9AF42"
34+
startBlock: 133969860
35+
mapping:
36+
kind: ethereum/events
37+
apiVersion: 0.0.7
38+
language: wasm/assemblyscript
39+
entities:
40+
- Factory
41+
- Pool
42+
abis:
43+
- name: StablePool
44+
file: ./abis/StablePool.json
45+
- name: BasePoolFactory
46+
file: ./abis/BasePoolFactory.json
47+
eventHandlers:
48+
- event: PoolCreated(indexed address)
49+
handler: handleStablePoolCreated
50+
file: ./src/mappings/stable.ts
51+
- kind: ethereum
52+
name: Gyro2CLPPoolFactory
53+
network: optimism
54+
source:
55+
abi: BasePoolFactory
56+
address: "0x4b979eD48F982Ba0baA946cB69c1083eB799729c"
57+
startBlock: 134045195
58+
mapping:
59+
kind: ethereum/events
60+
apiVersion: 0.0.7
61+
language: wasm/assemblyscript
62+
entities:
63+
- Factory
64+
- Pool
65+
abis:
66+
- name: Gyro2CLPPool
67+
file: ./abis/Gyro2CLPPool.json
68+
- name: BasePoolFactory
69+
file: ./abis/BasePoolFactory.json
70+
eventHandlers:
71+
- event: PoolCreated(indexed address)
72+
handler: handleGyro2PoolCreated
73+
file: ./src/mappings/gyro2.ts
74+
- kind: ethereum
75+
name: GyroECLPPoolFactory
76+
network: optimism
77+
source:
78+
abi: BasePoolFactory
79+
address: "0x22625eEDd92c81a219A83e1dc48f88d54786B017"
80+
startBlock: 133969692
81+
mapping:
82+
kind: ethereum/events
83+
apiVersion: 0.0.7
84+
language: wasm/assemblyscript
85+
entities:
86+
- Factory
87+
- Pool
88+
abis:
89+
- name: GyroECLPPool
90+
file: ./abis/GyroECLPPool.json
91+
- name: BasePoolFactory
92+
file: ./abis/BasePoolFactory.json
93+
eventHandlers:
94+
- event: PoolCreated(indexed address)
95+
handler: handleGyroEPoolCreated
96+
file: ./src/mappings/gyroE.ts
97+
- kind: ethereum
98+
name: LBPoolFactory
99+
network: optimism
100+
source:
101+
abi: BasePoolFactory
102+
address: "0xC1A64500E035D9159C8826E982dFb802003227f0"
103+
startBlock: 133969827
104+
mapping:
105+
kind: ethereum/events
106+
apiVersion: 0.0.7
107+
language: wasm/assemblyscript
108+
entities:
109+
- Factory
110+
- Pool
111+
abis:
112+
- name: LBPool
113+
file: ./abis/LBPool.json
114+
- name: BasePoolFactory
115+
file: ./abis/BasePoolFactory.json
116+
eventHandlers:
117+
- event: PoolCreated(indexed address)
118+
handler: handleLBPoolCreated
119+
file: ./src/mappings/lbp.ts

subgraphs/v3-pools/subgraph.sepolia.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ dataSources:
7676
network: sepolia
7777
source:
7878
abi: BasePoolFactory
79-
address: "0x5aD57d8BC854449bb85D7EA8B164f1cE266EC5a4"
80-
startBlock: 7734971
79+
address: "0x38ce8e04EBC04A39BED4b097e8C9bb8Ca74e33d8"
80+
startBlock: 8042511
8181
mapping:
8282
kind: ethereum/events
8383
apiVersion: 0.0.7

0 commit comments

Comments
 (0)