Skip to content

Commit 77afc8e

Browse files
committed
add missing lbp factories
1 parent 54333c9 commit 77afc8e

File tree

11 files changed

+248
-0
lines changed

11 files changed

+248
-0
lines changed

networks.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@
4444
"address": "0x4eff2d77D9fFbAeFB4b141A3e494c085b3FF4Cb5",
4545
"startBlock": 21974368
4646
},
47+
"LBPoolV2Factory": {
48+
"address": "0x02916d8F0891309806FCb347Bf4191692cbDDcAF",
49+
"startBlock": 22871105
50+
},
4751
"ReClammPoolFactory": {
4852
"address": "0x5939ab16fDf1991B0EF603c639B6b501A7841fAB",
4953
"startBlock": "22676210"
@@ -94,6 +98,10 @@
9498
"address": "0x6eE18fbb1BBcC5CF700cD75ea1aef2bb21e3cB3F",
9599
"startBlock": 38862663
96100
},
101+
"LBPoolV2Factory": {
102+
"address": "0x53EFf5068A1A3b39a9157DA6eF5A18d555c479eF",
103+
"startBlock": 40976108
104+
},
97105
"ReClammPoolFactory": {
98106
"address": "0x1780e8185199DAc45284039Bb3E3B64060D943AB",
99107
"startBlock": "40516797"
@@ -148,6 +156,10 @@
148156
"address": "0xA714753434481DbaBf7921963f18190636eCde69",
149157
"startBlock": 7831623
150158
},
159+
"LBPoolV2Factory": {
160+
"address": "0xE92cF5185384f53B2af74A2eBA62ba3A9C0ED65B",
161+
"startBlock": 8715886
162+
},
151163
"ReClammPoolFactory": {
152164
"address": "0x2A4054779DaDf4Cf3F4849f1AC307845F182cfE5",
153165
"startBlock": "8520198"
@@ -202,6 +214,10 @@
202214
"address": "0x62B9eC6A5BBEBe4F5C5f46C8A8880df857004295",
203215
"startBlock": 331549791
204216
},
217+
"LBPoolV2Factory": {
218+
"address": "0x8D217CB74f675B46cC2767C8cF0aAB53BE1c4818",
219+
"startBlock": 355383090
220+
},
205221
"ReClammPoolFactory": {
206222
"address": "0xa1D0791a41318c775707C56eAe247AF81a05322C",
207223
"startBlock": "345984008"
@@ -256,6 +272,10 @@
256272
"address": "0x62B9eC6A5BBEBe4F5C5f46C8A8880df857004295",
257273
"startBlock": 29577953
258274
},
275+
"LBPoolV2Factory": {
276+
"address": "0x0b11209B8c5E821b18dED147583b8978c3E63911",
277+
"startBlock": 32573861
278+
},
259279
"ReClammPoolFactory": {
260280
"address": "0x3BEb058DE1A25dd24223fd9e1796df8589429AcE",
261281
"startBlock": "31396631"
@@ -344,6 +364,10 @@
344364
"address": "0x3BEb058DE1A25dd24223fd9e1796df8589429AcE",
345365
"startBlock": 59966145
346366
},
367+
"LBPoolV2Factory": {
368+
"address": "0x0000000000000000000000000000000000000000",
369+
"startBlock": 0
370+
},
347371
"ReClammPoolFactory": {
348372
"address": "0x1CD776897ef4f647bf8241Ec69549e4A9cb1D608",
349373
"startBlock": "63645408"
@@ -466,6 +490,10 @@
466490
"address": "0x6817149cb753BF529565B4D023d7507eD2ff4Bc0",
467491
"startBlock": 783858
468492
},
493+
"LBPoolV2Factory": {
494+
"address": "0x0f08eEf2C785AA5e7539684aF04755dEC1347b7c",
495+
"startBlock": 1798303
496+
},
469497
"ReClammPoolV2Factory": {
470498
"address": "0x662112B8CB18889e81459b92CA0f894a2ef2c1B8",
471499
"startBlock": 784770

subgraphs/v3-pools/src/mappings/lbp.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,14 @@ export function handleLBPoolCreated(event: PoolCreated): void {
4242
"lbpParams"
4343
);
4444
}
45+
46+
export function handleLBPoolV2Created(event: PoolCreated): void {
47+
handlePoolCreated(
48+
event.params.pool,
49+
event.address, // Factory
50+
PoolType.LBP,
51+
2,
52+
handleLBPoolParams,
53+
"lbpParams"
54+
);
55+
}

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,29 @@ dataSources:
215215
- event: PoolCreated(indexed address)
216216
handler: handleLBPoolCreated
217217
file: ./src/mappings/lbp.ts
218+
- kind: ethereum
219+
name: LBPoolV2Factory
220+
network: arbitrum-one
221+
source:
222+
abi: BasePoolFactory
223+
address: "0x8D217CB74f675B46cC2767C8cF0aAB53BE1c4818"
224+
startBlock: 355383090
225+
mapping:
226+
kind: ethereum/events
227+
apiVersion: 0.0.7
228+
language: wasm/assemblyscript
229+
entities:
230+
- Factory
231+
- Pool
232+
abis:
233+
- name: LBPool
234+
file: ./abis/LBPool.json
235+
- name: BasePoolFactory
236+
file: ./abis/BasePoolFactory.json
237+
eventHandlers:
238+
- event: PoolCreated(indexed address)
239+
handler: handleLBPoolV2Created
240+
file: ./src/mappings/lbp.ts
218241
- kind: ethereum
219242
name: ReClammPoolFactory
220243
network: arbitrum-one

subgraphs/v3-pools/subgraph.avalanche.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,29 @@ dataSources:
140140
- event: PoolCreated(indexed address)
141141
handler: handleLBPoolCreated
142142
file: ./src/mappings/lbp.ts
143+
- kind: ethereum
144+
name: LBPoolV2Factory
145+
network: avalanche
146+
source:
147+
abi: BasePoolFactory
148+
address: "0x0000000000000000000000000000000000000000"
149+
startBlock: 0
150+
mapping:
151+
kind: ethereum/events
152+
apiVersion: 0.0.7
153+
language: wasm/assemblyscript
154+
entities:
155+
- Factory
156+
- Pool
157+
abis:
158+
- name: LBPool
159+
file: ./abis/LBPool.json
160+
- name: BasePoolFactory
161+
file: ./abis/BasePoolFactory.json
162+
eventHandlers:
163+
- event: PoolCreated(indexed address)
164+
handler: handleLBPoolV2Created
165+
file: ./src/mappings/lbp.ts
143166
- kind: ethereum
144167
name: ReClammPoolFactory
145168
network: avalanche

subgraphs/v3-pools/subgraph.base.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,29 @@ dataSources:
215215
- event: PoolCreated(indexed address)
216216
handler: handleLBPoolCreated
217217
file: ./src/mappings/lbp.ts
218+
- kind: ethereum
219+
name: LBPoolV2Factory
220+
network: base
221+
source:
222+
abi: BasePoolFactory
223+
address: "0x0b11209B8c5E821b18dED147583b8978c3E63911"
224+
startBlock: 32573861
225+
mapping:
226+
kind: ethereum/events
227+
apiVersion: 0.0.7
228+
language: wasm/assemblyscript
229+
entities:
230+
- Factory
231+
- Pool
232+
abis:
233+
- name: LBPool
234+
file: ./abis/LBPool.json
235+
- name: BasePoolFactory
236+
file: ./abis/BasePoolFactory.json
237+
eventHandlers:
238+
- event: PoolCreated(indexed address)
239+
handler: handleLBPoolV2Created
240+
file: ./src/mappings/lbp.ts
218241
- kind: ethereum
219242
name: ReClammPoolFactory
220243
network: base

subgraphs/v3-pools/subgraph.gnosis.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,29 @@ dataSources:
186186
- event: PoolCreated(indexed address)
187187
handler: handleLBPoolCreated
188188
file: ./src/mappings/lbp.ts
189+
- kind: ethereum
190+
name: LBPoolV2Factory
191+
network: gnosis
192+
source:
193+
abi: BasePoolFactory
194+
address: "0x53EFf5068A1A3b39a9157DA6eF5A18d555c479eF"
195+
startBlock: 40976108
196+
mapping:
197+
kind: ethereum/events
198+
apiVersion: 0.0.7
199+
language: wasm/assemblyscript
200+
entities:
201+
- Factory
202+
- Pool
203+
abis:
204+
- name: LBPool
205+
file: ./abis/LBPool.json
206+
- name: BasePoolFactory
207+
file: ./abis/BasePoolFactory.json
208+
eventHandlers:
209+
- event: PoolCreated(indexed address)
210+
handler: handleLBPoolV2Created
211+
file: ./src/mappings/lbp.ts
189212
- kind: ethereum
190213
name: ReClammPoolFactory
191214
network: gnosis

subgraphs/v3-pools/subgraph.hyperevm.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,29 @@ dataSources:
117117
- event: StableSurgeHookRegistered(indexed address,indexed address)
118118
handler: handleStableSurgeHookV2Registered
119119
file: ./src/mappings/surge.ts
120+
- kind: ethereum
121+
name: LBPoolV2Factory
122+
network: hyperevm
123+
source:
124+
abi: BasePoolFactory
125+
address: "0xa1D0791a41318c775707C56eAe247AF81a05322C"
126+
startBlock: 13411815
127+
mapping:
128+
kind: ethereum/events
129+
apiVersion: 0.0.7
130+
language: wasm/assemblyscript
131+
entities:
132+
- Factory
133+
- Pool
134+
abis:
135+
- name: LBPool
136+
file: ./abis/LBPool.json
137+
- name: BasePoolFactory
138+
file: ./abis/BasePoolFactory.json
139+
eventHandlers:
140+
- event: PoolCreated(indexed address)
141+
handler: handleLBPoolV2Created
142+
file: ./src/mappings/lbp.ts
120143
- kind: ethereum
121144
name: ReClammPoolFactory
122145
network: hyperevm

subgraphs/v3-pools/subgraph.plasma-mainnet.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,29 @@ dataSources:
117117
- event: StableSurgeHookRegistered(indexed address,indexed address)
118118
handler: handleStableSurgeHookV2Registered
119119
file: ./src/mappings/surge.ts
120+
- kind: ethereum
121+
name: LBPoolV2Factory
122+
network: plasma-mainnet
123+
source:
124+
abi: BasePoolFactory
125+
address: "0x0f08eEf2C785AA5e7539684aF04755dEC1347b7c"
126+
startBlock: 1798303
127+
mapping:
128+
kind: ethereum/events
129+
apiVersion: 0.0.7
130+
language: wasm/assemblyscript
131+
entities:
132+
- Factory
133+
- Pool
134+
abis:
135+
- name: LBPool
136+
file: ./abis/LBPool.json
137+
- name: BasePoolFactory
138+
file: ./abis/BasePoolFactory.json
139+
eventHandlers:
140+
- event: PoolCreated(indexed address)
141+
handler: handleLBPoolV2Created
142+
file: ./src/mappings/lbp.ts
120143
- kind: ethereum
121144
name: ReClammPoolV2Factory
122145
network: plasma-mainnet

subgraphs/v3-pools/subgraph.sepolia.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,29 @@ dataSources:
215215
- event: PoolCreated(indexed address)
216216
handler: handleLBPoolCreated
217217
file: ./src/mappings/lbp.ts
218+
- kind: ethereum
219+
name: LBPoolV2Factory
220+
network: sepolia
221+
source:
222+
abi: BasePoolFactory
223+
address: "0xE92cF5185384f53B2af74A2eBA62ba3A9C0ED65B"
224+
startBlock: 8715886
225+
mapping:
226+
kind: ethereum/events
227+
apiVersion: 0.0.7
228+
language: wasm/assemblyscript
229+
entities:
230+
- Factory
231+
- Pool
232+
abis:
233+
- name: LBPool
234+
file: ./abis/LBPool.json
235+
- name: BasePoolFactory
236+
file: ./abis/BasePoolFactory.json
237+
eventHandlers:
238+
- event: PoolCreated(indexed address)
239+
handler: handleLBPoolV2Created
240+
file: ./src/mappings/lbp.ts
218241
- kind: ethereum
219242
name: ReClammPoolFactory
220243
network: sepolia

subgraphs/v3-pools/subgraph.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,29 @@ dataSources:
215215
- event: PoolCreated(indexed address)
216216
handler: handleLBPoolCreated
217217
file: ./src/mappings/lbp.ts
218+
- kind: ethereum
219+
name: LBPoolV2Factory
220+
network: mainnet
221+
source:
222+
abi: BasePoolFactory
223+
address: "0x02916d8F0891309806FCb347Bf4191692cbDDcAF"
224+
startBlock: 22871105
225+
mapping:
226+
kind: ethereum/events
227+
apiVersion: 0.0.7
228+
language: wasm/assemblyscript
229+
entities:
230+
- Factory
231+
- Pool
232+
abis:
233+
- name: LBPool
234+
file: ./abis/LBPool.json
235+
- name: BasePoolFactory
236+
file: ./abis/BasePoolFactory.json
237+
eventHandlers:
238+
- event: PoolCreated(indexed address)
239+
handler: handleLBPoolV2Created
240+
file: ./src/mappings/lbp.ts
218241
- kind: ethereum
219242
name: ReClammPoolFactory
220243
network: mainnet

0 commit comments

Comments
 (0)