Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit ab8b85c

Browse files
committed
fix(multichain-config): remove deprecated v3/v2 migration handler in favor of generic migrationPool
1 parent 7fbb40e commit ab8b85c

File tree

1 file changed

+33
-41
lines changed

1 file changed

+33
-41
lines changed

packages/doppler-v3-indexer/ponder.config.multichain.ts

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { createConfig, factory } from "ponder";
1+
import { createConfig, factory, mergeAbis } from "ponder";
22
import { getAbiItem, http } from "viem";
33
import {
44
UniswapV3InitializerABI,
@@ -95,6 +95,38 @@ export default createConfig({
9595
},
9696
},
9797
},
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+
},
98130
UniswapV3Initializer: {
99131
abi: UniswapV3InitializerABI,
100132
chain: {
@@ -158,19 +190,6 @@ export default createConfig({
158190
},
159191
},
160192
},
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-
},
174193
UniswapV3Migrator: {
175194
abi: UniswapV3MigratorAbi,
176195
chain: {
@@ -225,33 +244,6 @@ export default createConfig({
225244
},
226245
},
227246
},
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-
},
255247
UniswapV2PairUnichain: {
256248
abi: UniswapV2PairABI,
257249
chain: {

0 commit comments

Comments
 (0)