Skip to content

Commit

Permalink
Convert gas price manager from class to functional
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Oct 14, 2024
1 parent 3de2051 commit 134b019
Show file tree
Hide file tree
Showing 2 changed files with 591 additions and 488 deletions.
6 changes: 2 additions & 4 deletions src/cli/handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { SenderManager } from "@alto/executor"
import { GasPriceManager } from "@alto/handlers"
import { createGasPriceManager } from "@alto/handlers"
import {
createMetrics,
initDebugLogger,
Expand Down Expand Up @@ -113,9 +113,7 @@ export async function bundlerHandler(args_: IOptionsInput): Promise<void> {

const config = createConfig({ ...args, logger, publicClient, walletClient })

const gasPriceManager = new GasPriceManager(config)

await gasPriceManager.init()
const gasPriceManager = await createGasPriceManager(config)

const registry = new Registry()
registry.setDefaultLabels({
Expand Down
Loading

0 comments on commit 134b019

Please sign in to comment.