From cee36b71b40f15896447025f2a81166281c7ca0d Mon Sep 17 00:00:00 2001 From: Kristof Gazso Date: Tue, 7 Nov 2023 03:26:43 +0000 Subject: [PATCH] fix arbitrum goerli getLogs --- packages/rpc/src/rpcHandler.ts | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/rpc/src/rpcHandler.ts b/packages/rpc/src/rpcHandler.ts index 2d6192af..fb0a916b 100644 --- a/packages/rpc/src/rpcHandler.ts +++ b/packages/rpc/src/rpcHandler.ts @@ -1,3 +1,4 @@ +import { Mempool, Monitor } from "@alto/mempool" import { Address, BundlerClearStateResponseResult, @@ -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 @@ -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 @@ -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