Skip to content

Commit

Permalink
restructure
Browse files Browse the repository at this point in the history
  • Loading branch information
mouseless-eth committed Oct 3, 2024
1 parent 22534f9 commit e7f667b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "@alto/types"
import { getUserOperationHash, toPackedUserOperation } from "@alto/utils"
import type { SimulateHandleOpResult } from "./gasEstimation"
import { AccountExecuteAbi } from "../types/contracts/IAccountExecute"
import { AccountExecuteAbi } from "../../types/contracts/IAccountExecute"

function getSimulateHandleOpResult(data: Hex): SimulateHandleOpResult {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
toHex
} from "viem"
import { z } from "zod"
import { ExecuteSimulatorDeployedBytecode } from "./ExecuteSimulator"
import { ExecuteSimulatorDeployedBytecode } from "../ExecuteSimulator"
import { simulateHandleOpV07 } from "./EntryPointSimulationsV07"

function getStateOverrides({
Expand Down
2 changes: 1 addition & 1 deletion src/rpc/validation/SafeValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
type PublicClient,
type Transport
} from "viem"
import { getSimulateValidationResult } from "../EntryPointSimulationsV07"
import { getSimulateValidationResult } from "../estimation/EntryPointSimulationsV07"
import {
bundlerCollectorTracer,
type BundlerTracerResult,
Expand Down
4 changes: 2 additions & 2 deletions src/rpc/validation/UnsafeValidator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ import {
zeroAddress
} from "viem"
import { fromZodError } from "zod-validation-error"
import { simulateValidation } from "../EntryPointSimulationsV07"
import { simulateValidation } from "../estimation/EntryPointSimulationsV07"
import {
type SimulateHandleOpResult,
simulateHandleOp,
simulateHandleOpV06
} from "../gasEstimation"
} from "../estimation/gasEstimation"

export class UnsafeValidator implements InterfaceValidator {
publicClient: PublicClient<Transport, Chain>
Expand Down
2 changes: 1 addition & 1 deletion src/types/interfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Address } from "viem"
import type { SimulateHandleOpResult } from "../rpc/gasEstimation"
import type { SimulateHandleOpResult } from "../rpc/estimation/gasEstimation"
import type { ReferencedCodeHashes } from "./mempool"
import type {
StateOverrides,
Expand Down

0 comments on commit e7f667b

Please sign in to comment.