11import { createConfig } from "ponder" ;
2- import { http , getAddress , hexToNumber } from "viem" ;
2+ import { http , getAddress } from "viem" ;
33import type { Hex } from "viem" ;
4- import DeployPoolManager from "../../broadcast/00_DeployPoolManager.s.sol/130/run-latest.json" ;
54import DeployHook from "../../broadcast/01_DeployHook.s.sol/130/run-latest.json" ;
65import { AsyncSwapAbi } from "./abis/AsyncSwap" ;
76import { PoolManagerAbi } from "./abis/PoolManagerAbi" ;
87
9- const poolManagerAddress = getAddress (
10- DeployPoolManager . transactions [ 0 ] ?. contractAddress as Hex ,
11- ) ;
12- const poolManagerStartBlock = hexToNumber (
13- DeployPoolManager . receipts [ 0 ] ?. blockNumber as Hex ,
14- ) ;
15-
168const hookAddress = getAddress (
179 DeployHook . transactions [ 0 ] ?. contractAddress as Hex ,
1810) ;
19- const hookStartBlock = hexToNumber ( DeployHook . receipts [ 0 ] ?. blockNumber as Hex ) ;
2011
2112export default createConfig ( {
2213 networks : {
@@ -31,7 +22,7 @@ export default createConfig({
3122 network : {
3223 unichain : {
3324 address : "0x1F98400000000000000000000000000000000004" ,
34- startBlock : 28199000 , // poolManagerStartBlock,
25+ startBlock : 28799000 , // poolManagerStartBlock,
3526 } ,
3627 } ,
3728 abi : PoolManagerAbi ,
@@ -40,7 +31,7 @@ export default createConfig({
4031 network : {
4132 unichain : {
4233 address : hookAddress ,
43- startBlock : 28199000 , // hookStartBlock,
34+ startBlock : 28799000 , // hookStartBlock,
4435 } ,
4536 } ,
4637 abi : AsyncSwapAbi ,
0 commit comments