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