1- import { chainIds , retryPromise } from "@hyperbridge/sdk"
1+ import { getChainId , retryPromise } from "@hyperbridge/sdk"
22import { EventMonitor } from "./event-monitor"
33import { FillerStrategy } from "@/strategies/base"
44import { Order , FillerConfig , ChainConfig , DUMMY_PRIVATE_KEY , ADDRESS_ZERO , bytes20ToBytes32 } from "@hyperbridge/sdk"
@@ -7,8 +7,6 @@ import { ChainClientManager, ContractInteractionService } from "@/services"
77import { FillerConfigService } from "@/services/FillerConfigService"
88import { CacheService } from "@/services/CacheService"
99import { getLogger } from "@/services/Logger"
10-
11- import { PublicClient } from "viem"
1210import { generatePrivateKey } from "viem/accounts"
1311
1412export class IntentFiller {
@@ -98,7 +96,7 @@ export class IntentFiller {
9896 } ,
9997 )
10098 const requiredConfirmations = this . config . confirmationPolicy . getConfirmationBlocks (
101- chainIds [ order . sourceChain as keyof typeof chainIds ] ,
99+ getChainId ( order . sourceChain ) ! ,
102100 orderValue . inputUsdValue . toNumber ( ) ,
103101 )
104102 this . logger . info (
@@ -154,7 +152,7 @@ export class IntentFiller {
154152 }
155153
156154 // Get the chain-specific queue
157- const chainQueue = this . chainQueues . get ( chainIds [ order . destChain as keyof typeof chainIds ] ! )
155+ const chainQueue = this . chainQueues . get ( getChainId ( order . destChain ) ! )
158156 if ( ! chainQueue ) {
159157 this . logger . error ( { chain : order . destChain } , "No queue configured for chain" )
160158 return
0 commit comments