Skip to content

Commit

Permalink
Merge pull request #425 from FastLane-Labs/sim-import-fixes
Browse files Browse the repository at this point in the history
chore: all imports use absolute path
  • Loading branch information
BenSparksCode authored Sep 9, 2024
2 parents 4626912 + 120b911 commit fde788b
Show file tree
Hide file tree
Showing 17 changed files with 55 additions and 55 deletions.
3 changes: 1 addition & 2 deletions src/contracts/atlas/Atlas.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ pragma solidity 0.8.25;
import { SafeTransferLib } from "solady/utils/SafeTransferLib.sol";
import { LibSort } from "solady/utils/LibSort.sol";

import { IDAppControl } from "../interfaces/IDAppControl.sol";

import { Escrow } from "./Escrow.sol";
import { Factory } from "./Factory.sol";

Expand All @@ -19,6 +17,7 @@ import "src/contracts/types/ValidCalls.sol";
import { CallBits } from "src/contracts/libraries/CallBits.sol";
import { SafetyBits } from "src/contracts/libraries/SafetyBits.sol";
import { IL2GasCalculator } from "src/contracts/interfaces/IL2GasCalculator.sol";
import { IDAppControl } from "src/contracts/interfaces/IDAppControl.sol";

/// @title Atlas V1
/// @author FastLane Labs
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/atlas/Escrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { IExecutionEnvironment } from "src/contracts/interfaces/IExecutionEnviro
import { IAtlas } from "src/contracts/interfaces/IAtlas.sol";
import { ISolverContract } from "src/contracts/interfaces/ISolverContract.sol";
import { IAtlasVerification } from "src/contracts/interfaces/IAtlasVerification.sol";
import { IDAppControl } from "../interfaces/IDAppControl.sol";
import { IDAppControl } from "src/contracts/interfaces/IDAppControl.sol";

import { SafeCall } from "src/contracts/libraries/SafeCall/SafeCall.sol";
import { EscrowBits } from "src/contracts/libraries/EscrowBits.sol";
Expand Down
6 changes: 3 additions & 3 deletions src/contracts/dapp/ControlTemplate.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import { AtlasErrors } from "src/contracts/types/AtlasErrors.sol";

abstract contract DAppControlTemplate {
Expand Down
16 changes: 8 additions & 8 deletions src/contracts/helpers/Simulator.sol
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import { IAtlas } from "../interfaces/IAtlas.sol";
import { IAtlas } from "src/contracts/interfaces/IAtlas.sol";

import { AtlasErrors } from "src/contracts/types/AtlasErrors.sol";

import { SafeTransferLib } from "solady/utils/SafeTransferLib.sol";

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/LockTypes.sol";
import "../types/DAppOperation.sol";
import "../types/ConfigTypes.sol";
import "../types/ValidCalls.sol";
import "../types/EscrowTypes.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/LockTypes.sol";
import "src/contracts/types/DAppOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import "src/contracts/types/ValidCalls.sol";
import "src/contracts/types/EscrowTypes.sol";

import { Result } from "src/contracts/interfaces/ISimulator.sol";

Expand Down
17 changes: 9 additions & 8 deletions src/contracts/helpers/Sorter.sol
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import { IAtlas } from "../interfaces/IAtlas.sol";
import { IDAppControl } from "../interfaces/IDAppControl.sol";
import { IAtlas } from "src/contracts/interfaces/IAtlas.sol";
import { IDAppControl } from "src/contracts/interfaces/IDAppControl.sol";
import { IAtlasVerification } from "src/contracts/interfaces/IAtlasVerification.sol";

import { CallBits } from "src/contracts/libraries/CallBits.sol";
import { AccountingMath } from "src/contracts/libraries/AccountingMath.sol";
import { CallVerification } from "../libraries/CallVerification.sol";
import { IAtlasVerification } from "../interfaces/IAtlasVerification.sol";
import { AtlasConstants } from "../types/AtlasConstants.sol";
import { CallVerification } from "src/contracts/libraries/CallVerification.sol";
import { AtlasConstants } from "src/contracts/types/AtlasConstants.sol";

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";

contract Sorter is AtlasConstants {
using CallBits for uint32;
Expand Down
18 changes: 9 additions & 9 deletions src/contracts/helpers/TxBuilder.sol
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

import { IDAppControl } from "../interfaces/IDAppControl.sol";
import { IAtlas } from "../interfaces/IAtlas.sol";
import { IAtlasVerification } from "../interfaces/IAtlasVerification.sol";
import { IDAppControl } from "src/contracts/interfaces/IDAppControl.sol";
import { IAtlas } from "src/contracts/interfaces/IAtlas.sol";
import { IAtlasVerification } from "src/contracts/interfaces/IAtlasVerification.sol";

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "../types/DAppOperation.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import "src/contracts/types/DAppOperation.sol";

import { CallVerification } from "../libraries/CallVerification.sol";
import { CallBits } from "../libraries/CallBits.sol";
import { CallVerification } from "src/contracts/libraries/CallVerification.sol";
import { CallBits } from "src/contracts/libraries/CallBits.sol";

import "forge-std/Test.sol";

Expand Down
12 changes: 6 additions & 6 deletions src/contracts/interfaces/IAtlasVerification.sol
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "../types/DAppOperation.sol";
import "../types/SolverOperation.sol";
import "../types/EscrowTypes.sol";
import "../types/ValidCalls.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import "src/contracts/types/DAppOperation.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/EscrowTypes.sol";
import "src/contracts/types/ValidCalls.sol";

interface IAtlasVerification {
// AtlasVerification.sol
Expand Down
6 changes: 3 additions & 3 deletions src/contracts/interfaces/IDAppControl.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import "../types/UserOperation.sol";
import "../types/SolverOperation.sol";
import "../types/ConfigTypes.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/ConfigTypes.sol";

interface IDAppControl {
function preOpsCall(UserOperation calldata userOp) external payable returns (bytes memory);
Expand Down
8 changes: 4 additions & 4 deletions src/contracts/interfaces/IExecutionEnvironment.sol
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "../types/EscrowTypes.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import "src/contracts/types/EscrowTypes.sol";

interface IExecutionEnvironment {
function preOpsWrapper(UserOperation calldata userOp) external returns (bytes memory preOpsData);
Expand Down
6 changes: 3 additions & 3 deletions src/contracts/interfaces/ISimulator.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import "../types/SolverOperation.sol";
import "../types/UserOperation.sol";
import "../types/ConfigTypes.sol";
import "src/contracts/types/SolverOperation.sol";
import "src/contracts/types/UserOperation.sol";
import "src/contracts/types/ConfigTypes.sol";
import "src/contracts/types/DAppOperation.sol";

enum Result {
Expand Down
4 changes: 2 additions & 2 deletions src/contracts/libraries/CallBits.sol
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
//SPDX-License-Identifier: BUSL-1.1
pragma solidity 0.8.25;

import { IDAppControl } from "../interfaces/IDAppControl.sol";
import { IDAppControl } from "src/contracts/interfaces/IDAppControl.sol";

import "../types/ConfigTypes.sol";
import "src/contracts/types/ConfigTypes.sol";

library CallBits {
uint32 internal constant _ONE = uint32(1);
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/solver/src/TestSolver.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

import { SolverBase } from "../SolverBase.sol";
import { SolverBase } from "src/contracts/solver/SolverBase.sol";

// Flashbots opensource repo
import { BlindBackrun } from "./BlindBackrun/BlindBackrun.sol";
Expand Down
2 changes: 1 addition & 1 deletion src/contracts/solver/src/TestSolverExPost.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pragma solidity 0.8.25;
import { SafeTransferLib } from "solady/utils/SafeTransferLib.sol";
import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

import { SolverBase } from "../SolverBase.sol";
import { SolverBase } from "src/contracts/solver/SolverBase.sol";

// Flashbots opensource repo
import { BlindBackrun } from "./BlindBackrun/BlindBackrun.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/helpers/DummyDAppControlBuilder.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.25;

import { DummyDAppControl } from "../base/DummyDAppControl.sol";
import { DummyDAppControl } from "test/base/DummyDAppControl.sol";
import { CallConfig } from "src/contracts/types/ConfigTypes.sol";
import { AtlasVerification } from "src/contracts/atlas/AtlasVerification.sol";

Expand Down
2 changes: 1 addition & 1 deletion test/libraries/CallBits.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "forge-std/Test.sol";

import { CallBits } from "src/contracts/libraries/CallBits.sol";
import "src/contracts/types/UserOperation.sol";
import "../base/TestUtils.sol";
import "test/base/TestUtils.sol";

contract CallBitsTest is Test {
using CallBits for uint32;
Expand Down
2 changes: 1 addition & 1 deletion test/libraries/CallVerification.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "forge-std/Test.sol";

import { CallVerification } from "src/contracts/libraries/CallVerification.sol";
import "src/contracts/types/UserOperation.sol";
import "../base/TestUtils.sol";
import "test/base/TestUtils.sol";

contract CallVerificationTest is Test {
using CallVerification for UserOperation;
Expand Down
2 changes: 1 addition & 1 deletion test/libraries/SafetyBits.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "forge-std/Test.sol";

import { SafetyBits } from "src/contracts/libraries/SafetyBits.sol";
import "src/contracts/types/LockTypes.sol";
import "../base/TestUtils.sol";
import "test/base/TestUtils.sol";

import { CallBits } from "src/contracts/libraries/CallBits.sol";

Expand Down

0 comments on commit fde788b

Please sign in to comment.