Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/pimlicolabs/alto
Browse files Browse the repository at this point in the history
  • Loading branch information
plusminushalf committed Nov 14, 2023
2 parents 9b21493 + cee36b7 commit 08f1077
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions packages/rpc/src/rpcHandler.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Mempool, Monitor } from "@alto/mempool"
import {
Address,
BundlerClearStateResponseResult,
Expand All @@ -24,32 +25,31 @@ import {
} from "@alto/types"
import {
Logger,
calcPreVerificationGas,
calcOptimismPreVerificationGas,
Metrics,
getUserOperationHash,
getGasPrice,
calcArbitrumPreVerificationGas,
getNonceKeyAndValue
calcOptimismPreVerificationGas,
calcPreVerificationGas,
getGasPrice,
getNonceKeyAndValue,
getUserOperationHash
} from "@alto/utils"
import { IValidator } from "./vatidation"
import {
decodeFunctionData,
getAbiItem,
TransactionNotFoundError,
TransactionReceiptNotFoundError,
Chain,
PublicClient,
Transaction,
TransactionNotFoundError,
TransactionReceipt,
PublicClient,
Chain,
TransactionReceiptNotFoundError,
Transport,
decodeFunctionData,
getAbiItem,
getContract
} from "viem"
import * as chains from "viem/chains"
import { z } from "zod"
import { fromZodError } from "zod-validation-error"
import * as chains from "viem/chains"
import { Mempool, Monitor } from "@alto/mempool"
import { NonceQueuer } from "./nonceQueuer"
import { IValidator } from "./vatidation"

export interface IRpcEndpoint {
handleMethod(request: BundlerRequest): Promise<BundlerResponse>
Expand Down Expand Up @@ -322,6 +322,7 @@ export class RpcHandler implements IRpcEndpoint {
this.chainId === 47279324479 ||
this.chainId === chains.bsc.id ||
this.chainId === chains.arbitrum.id ||
this.chainId === chains.arbitrumGoerli.id ||
this.chainId === chains.baseGoerli.id ||
this.chainId === chains.avalanche.id ||
this.chainId === chains.avalancheFuji.id
Expand Down Expand Up @@ -412,6 +413,7 @@ export class RpcHandler implements IRpcEndpoint {
this.chainId === 47279324479 ||
this.chainId === chains.bsc.id ||
this.chainId === chains.arbitrum.id ||
this.chainId === chains.arbitrumGoerli.id ||
this.chainId === chains.baseGoerli.id ||
this.chainId === chains.avalanche.id ||
this.chainId === chains.avalancheFuji.id
Expand Down

0 comments on commit 08f1077

Please sign in to comment.