Skip to content

Commit

Permalink
Merge pull request #87 from 1inch/feat/imports
Browse files Browse the repository at this point in the history
fix imports
  • Loading branch information
byshape authored Jul 16, 2024
2 parents 43ed00a + 334193a commit 2754dc4
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 38 deletions.
4 changes: 2 additions & 2 deletions contracts/BaseEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity 0.8.23;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { AddressLib, Address } from "solidity-utils/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/libraries/SafeERC20.sol";
import { AddressLib, Address } from "solidity-utils/contracts/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/contracts/libraries/SafeERC20.sol";

import { ImmutablesLib } from "./libraries/ImmutablesLib.sol";
import { Timelocks, TimelocksLib } from "./libraries/TimelocksLib.sol";
Expand Down
10 changes: 5 additions & 5 deletions contracts/BaseEscrowFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ pragma solidity 0.8.23;
import { Clones } from "openzeppelin-contracts/contracts/proxy/Clones.sol";
import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { Create2 } from "openzeppelin-contracts/contracts/utils/Create2.sol";
import { Address, AddressLib } from "solidity-utils/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/libraries/SafeERC20.sol";
import { Address, AddressLib } from "solidity-utils/contracts/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/contracts/libraries/SafeERC20.sol";

import { IOrderMixin } from "limit-order-protocol/interfaces/IOrderMixin.sol";
import { MakerTraitsLib } from "limit-order-protocol/libraries/MakerTraitsLib.sol";
import { ResolverValidationExtension } from "limit-order-settlement/extensions/ResolverValidationExtension.sol";
import { IOrderMixin } from "limit-order-protocol/contracts/interfaces/IOrderMixin.sol";
import { MakerTraitsLib } from "limit-order-protocol/contracts/libraries/MakerTraitsLib.sol";
import { ResolverValidationExtension } from "limit-order-settlement/contracts/extensions/ResolverValidationExtension.sol";

import { ImmutablesLib } from "./libraries/ImmutablesLib.sol";
import { Timelocks, TimelocksLib } from "./libraries/TimelocksLib.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/EscrowDst.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity 0.8.23;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "solidity-utils/libraries/SafeERC20.sol";
import { AddressLib, Address } from "solidity-utils/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/contracts/libraries/SafeERC20.sol";
import { AddressLib, Address } from "solidity-utils/contracts/libraries/AddressLib.sol";

import { Timelocks, TimelocksLib } from "./libraries/TimelocksLib.sol";

Expand Down
6 changes: 3 additions & 3 deletions contracts/EscrowFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ pragma solidity 0.8.23;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";

import { BaseExtension } from "limit-order-settlement/extensions/BaseExtension.sol";
import { ResolverValidationExtension } from "limit-order-settlement/extensions/ResolverValidationExtension.sol";
import { BaseExtension } from "limit-order-settlement/contracts/extensions/BaseExtension.sol";
import { ResolverValidationExtension } from "limit-order-settlement/contracts/extensions/ResolverValidationExtension.sol";

import { ProxyHashLib } from "./libraries/ProxyHashLib.sol";

Expand All @@ -27,7 +27,7 @@ contract EscrowFactory is BaseEscrowFactory {
address owner,
uint32 rescueDelaySrc,
uint32 rescueDelayDst
)
)
BaseExtension(limitOrderProtocol)
ResolverValidationExtension(feeToken, accessToken, owner)
MerkleStorageInvalidator(limitOrderProtocol) {
Expand Down
4 changes: 2 additions & 2 deletions contracts/EscrowSrc.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity 0.8.23;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { SafeERC20 } from "solidity-utils/libraries/SafeERC20.sol";
import { AddressLib, Address } from "solidity-utils/libraries/AddressLib.sol";
import { SafeERC20 } from "solidity-utils/contracts/libraries/SafeERC20.sol";
import { AddressLib, Address } from "solidity-utils/contracts/libraries/AddressLib.sol";

import { Timelocks, TimelocksLib } from "./libraries/TimelocksLib.sol";
import { ImmutablesLib } from "./libraries/ImmutablesLib.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/MerkleStorageInvalidator.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

pragma solidity 0.8.23;

import { IOrderMixin } from "limit-order-protocol/interfaces/IOrderMixin.sol";
import { ITakerInteraction } from "limit-order-protocol/interfaces/ITakerInteraction.sol";
import { IOrderMixin } from "limit-order-protocol/contracts/interfaces/IOrderMixin.sol";
import { ITakerInteraction } from "limit-order-protocol/contracts/interfaces/ITakerInteraction.sol";
import { MerkleProof } from "openzeppelin-contracts/contracts/utils/cryptography/MerkleProof.sol";

import { IMerkleStorageInvalidator } from "./interfaces/IMerkleStorageInvalidator.sol";
Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IBaseEscrow.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity ^0.8.0;

import { Address } from "solidity-utils/libraries/AddressLib.sol";
import { Address } from "solidity-utils/contracts/libraries/AddressLib.sol";

import { Timelocks } from "../libraries/TimelocksLib.sol";

Expand Down
2 changes: 1 addition & 1 deletion contracts/interfaces/IEscrowFactory.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity ^0.8.0;

import { Address } from "solidity-utils/libraries/AddressLib.sol";
import { Address } from "solidity-utils/contracts/libraries/AddressLib.sol";

import { Timelocks } from "../libraries/TimelocksLib.sol";

Expand Down
4 changes: 2 additions & 2 deletions contracts/interfaces/IResolverMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

pragma solidity 0.8.23;

import { IOrderMixin } from "limit-order-protocol/interfaces/IOrderMixin.sol";
import { TakerTraits } from "limit-order-protocol/libraries/TakerTraitsLib.sol";
import { IOrderMixin } from "limit-order-protocol/contracts/interfaces/IOrderMixin.sol";
import { TakerTraits } from "limit-order-protocol/contracts/libraries/TakerTraitsLib.sol";

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

Expand Down
2 changes: 1 addition & 1 deletion contracts/mocks/NoReceiveCaller.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

pragma solidity 0.8.23;

import { RevertReasonForwarder } from "solidity-utils/libraries/RevertReasonForwarder.sol";
import { RevertReasonForwarder } from "solidity-utils/contracts/libraries/RevertReasonForwarder.sol";

contract NoReceiveCaller {
function arbitraryCall(address target, bytes calldata arguments) external {
Expand Down
6 changes: 3 additions & 3 deletions contracts/mocks/ResolverMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ pragma solidity 0.8.23;

import { Ownable } from "openzeppelin-contracts/contracts/access/Ownable.sol";

import { IOrderMixin } from "limit-order-protocol/interfaces/IOrderMixin.sol";
import { TakerTraits } from "limit-order-protocol/libraries/TakerTraitsLib.sol";
import { RevertReasonForwarder } from "solidity-utils/libraries/RevertReasonForwarder.sol";
import { IOrderMixin } from "limit-order-protocol/contracts/interfaces/IOrderMixin.sol";
import { TakerTraits } from "limit-order-protocol/contracts/libraries/TakerTraitsLib.sol";
import { RevertReasonForwarder } from "solidity-utils/contracts/libraries/RevertReasonForwarder.sol";

import { IBaseEscrow } from "../interfaces/IBaseEscrow.sol";
import { IEscrowFactory } from "../interfaces/IEscrowFactory.sol";
Expand Down
4 changes: 2 additions & 2 deletions contracts/zkSync/EscrowFactoryZkSync.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
pragma solidity 0.8.23;

import { IERC20 } from "openzeppelin-contracts/contracts/token/ERC20/IERC20.sol";
import { BaseExtension } from "limit-order-settlement/extensions/BaseExtension.sol";
import { ResolverValidationExtension } from "limit-order-settlement/extensions/ResolverValidationExtension.sol";
import { BaseExtension } from "limit-order-settlement/contracts/extensions/BaseExtension.sol";
import { ResolverValidationExtension } from "limit-order-settlement/contracts/extensions/ResolverValidationExtension.sol";

import { BaseEscrowFactory } from "../BaseEscrowFactory.sol";
import { MerkleStorageInvalidator } from "../MerkleStorageInvalidator.sol";
Expand Down
3 changes: 3 additions & 0 deletions remappings.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
@1inch/limit-order-protocol-contract/=lib/limit-order-protocol/
@1inch/limit-order-settlement/=lib/limit-order-settlement/
@1inch/solidity-utils/=lib/solidity-utils/
solidity-utils/=lib/solidity-utils/
limit-order-protocol/=lib/limit-order-protocol/
limit-order-settlement/=lib/limit-order-settlement/
2 changes: 1 addition & 1 deletion test/unit/Escrow.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import { Address } from "solidity-utils/libraries/AddressLib.sol";
import { Address } from "solidity-utils/contracts/libraries/AddressLib.sol";

import { IBaseEscrow } from "../../contracts/interfaces/IBaseEscrow.sol";
import { IEscrowFactory } from "../../contracts/interfaces/IEscrowFactory.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/EscrowFactory.t.sol
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.23;

import { ResolverValidationExtension } from "limit-order-settlement/extensions/ResolverValidationExtension.sol";
import { ResolverValidationExtension } from "limit-order-settlement/contracts/extensions/ResolverValidationExtension.sol";
import { Merkle } from "murky/src/Merkle.sol";

import { EscrowDst } from "../../contracts/EscrowDst.sol";
Expand Down
2 changes: 1 addition & 1 deletion test/unit/MerkleStorageInvalidator.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity 0.8.23;

import { Merkle } from "murky/src/Merkle.sol";

import { ITakerInteraction } from "limit-order-protocol/interfaces/ITakerInteraction.sol";
import { ITakerInteraction } from "limit-order-protocol/contracts/interfaces/ITakerInteraction.sol";

import { IMerkleStorageInvalidator } from "../../contracts/interfaces/IMerkleStorageInvalidator.sol";

Expand Down
18 changes: 9 additions & 9 deletions test/utils/BaseSetup.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ pragma solidity 0.8.23;

import { Test } from "forge-std/Test.sol";

import { IWETH, LimitOrderProtocol } from "limit-order-protocol/LimitOrderProtocol.sol";
import { IOrderMixin } from "limit-order-protocol/interfaces/IOrderMixin.sol";
import { MakerTraits, MakerTraitsLib } from "limit-order-protocol/libraries/MakerTraitsLib.sol";
import { TakerTraits } from "limit-order-protocol/libraries/TakerTraitsLib.sol";
import { WrappedTokenMock } from "limit-order-protocol/mocks/WrappedTokenMock.sol";
import { IFeeBank } from "limit-order-settlement/interfaces/IFeeBank.sol";
import { Address, AddressLib } from "solidity-utils/libraries/AddressLib.sol";
import { TokenCustomDecimalsMock } from "solidity-utils/mocks/TokenCustomDecimalsMock.sol";
import { TokenMock } from "solidity-utils/mocks/TokenMock.sol";
import { IWETH, LimitOrderProtocol } from "limit-order-protocol/contracts/LimitOrderProtocol.sol";
import { IOrderMixin } from "limit-order-protocol/contracts/interfaces/IOrderMixin.sol";
import { MakerTraits, MakerTraitsLib } from "limit-order-protocol/contracts/libraries/MakerTraitsLib.sol";
import { TakerTraits } from "limit-order-protocol/contracts/libraries/TakerTraitsLib.sol";
import { WrappedTokenMock } from "limit-order-protocol/contracts/mocks/WrappedTokenMock.sol";
import { IFeeBank } from "limit-order-settlement/contracts/interfaces/IFeeBank.sol";
import { Address, AddressLib } from "solidity-utils/contracts/libraries/AddressLib.sol";
import { TokenCustomDecimalsMock } from "solidity-utils/contracts/mocks/TokenCustomDecimalsMock.sol";
import { TokenMock } from "solidity-utils/contracts/mocks/TokenMock.sol";

import { EscrowDst } from "../../contracts/EscrowDst.sol";
import { EscrowSrc } from "../../contracts/EscrowSrc.sol";
Expand Down

0 comments on commit 2754dc4

Please sign in to comment.