|
1 | | -import { createConfig, factory } from "ponder"; |
| 1 | +import { createConfig, factory, mergeAbis } from "ponder"; |
2 | 2 | import { getAbiItem, http } from "viem"; |
3 | 3 | import { |
4 | 4 | UniswapV3InitializerABI, |
@@ -95,6 +95,38 @@ export default createConfig({ |
95 | 95 | }, |
96 | 96 | }, |
97 | 97 | }, |
| 98 | + MigrationPool: { |
| 99 | + abi: mergeAbis([UniswapV3PoolABI, UniswapV2PairABI]), |
| 100 | + chain: { |
| 101 | + base: { |
| 102 | + startBlock: base.startBlock, |
| 103 | + address: factory({ |
| 104 | + address: base.addresses.shared.airlock, |
| 105 | + event: getAbiItem({ |
| 106 | + abi: AirlockABI, |
| 107 | + name: "Migrate", |
| 108 | + }), |
| 109 | + parameter: "pool", |
| 110 | + }), |
| 111 | + }, |
| 112 | + unichain: { |
| 113 | + startBlock: unichain.startBlock, |
| 114 | + address: factory({ |
| 115 | + address: unichain.addresses.shared.airlock, |
| 116 | + event: getAbiItem({ abi: AirlockABI, name: "Migrate" }), |
| 117 | + parameter: "pool", |
| 118 | + }), |
| 119 | + }, |
| 120 | + ink: { |
| 121 | + startBlock: ink.startBlock, |
| 122 | + address: factory({ |
| 123 | + address: ink.addresses.shared.airlock, |
| 124 | + event: getAbiItem({ abi: AirlockABI, name: "Migrate" }), |
| 125 | + parameter: "pool", |
| 126 | + }), |
| 127 | + }, |
| 128 | + }, |
| 129 | + }, |
98 | 130 | UniswapV3Initializer: { |
99 | 131 | abi: UniswapV3InitializerABI, |
100 | 132 | chain: { |
@@ -158,19 +190,6 @@ export default createConfig({ |
158 | 190 | }, |
159 | 191 | }, |
160 | 192 | }, |
161 | | - UniswapV3MigrationPool: { |
162 | | - abi: UniswapV3PoolABI, |
163 | | - chain: { |
164 | | - base: { |
165 | | - startBlock: base.startBlock, // hardcoded for now |
166 | | - address: factory({ |
167 | | - address: base.addresses.v3.v3Migrator, |
168 | | - event: getAbiItem({ abi: UniswapV3MigratorAbi, name: "Migrate" }), |
169 | | - parameter: "pool", |
170 | | - }), |
171 | | - }, |
172 | | - }, |
173 | | - }, |
174 | 193 | UniswapV3Migrator: { |
175 | 194 | abi: UniswapV3MigratorAbi, |
176 | 195 | chain: { |
@@ -225,33 +244,6 @@ export default createConfig({ |
225 | 244 | }, |
226 | 245 | }, |
227 | 246 | }, |
228 | | - UniswapV2Pair: { |
229 | | - abi: UniswapV2PairABI, |
230 | | - chain: { |
231 | | - base: { |
232 | | - startBlock: base.startBlock, |
233 | | - address: factory({ |
234 | | - address: base.addresses.shared.airlock, |
235 | | - event: getAbiItem({ |
236 | | - abi: AirlockABI, |
237 | | - name: "Migrate", |
238 | | - }), |
239 | | - parameter: "pool", |
240 | | - }), |
241 | | - }, |
242 | | - ink: { |
243 | | - startBlock: ink.startBlock, |
244 | | - address: factory({ |
245 | | - address: ink.addresses.shared.airlock, |
246 | | - event: getAbiItem({ |
247 | | - abi: AirlockABI, |
248 | | - name: "Migrate", |
249 | | - }), |
250 | | - parameter: "pool", |
251 | | - }), |
252 | | - }, |
253 | | - }, |
254 | | - }, |
255 | 247 | UniswapV2PairUnichain: { |
256 | 248 | abi: UniswapV2PairABI, |
257 | 249 | chain: { |
|
0 commit comments