diff --git a/contracts/BaseEscrow.sol b/contracts/BaseEscrow.sol index 24284b3..df85286 100644 --- a/contracts/BaseEscrow.sol +++ b/contracts/BaseEscrow.sol @@ -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"; diff --git a/contracts/BaseEscrowFactory.sol b/contracts/BaseEscrowFactory.sol index 93401f1..8f2fed5 100644 --- a/contracts/BaseEscrowFactory.sol +++ b/contracts/BaseEscrowFactory.sol @@ -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"; diff --git a/contracts/EscrowDst.sol b/contracts/EscrowDst.sol index 13efe57..5abd37f 100644 --- a/contracts/EscrowDst.sol +++ b/contracts/EscrowDst.sol @@ -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"; diff --git a/contracts/EscrowFactory.sol b/contracts/EscrowFactory.sol index a5e95ec..b71e62b 100644 --- a/contracts/EscrowFactory.sol +++ b/contracts/EscrowFactory.sol @@ -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"; @@ -27,7 +27,7 @@ contract EscrowFactory is BaseEscrowFactory { address owner, uint32 rescueDelaySrc, uint32 rescueDelayDst - ) + ) BaseExtension(limitOrderProtocol) ResolverValidationExtension(feeToken, accessToken, owner) MerkleStorageInvalidator(limitOrderProtocol) { diff --git a/contracts/EscrowSrc.sol b/contracts/EscrowSrc.sol index b55a05e..df78cbe 100644 --- a/contracts/EscrowSrc.sol +++ b/contracts/EscrowSrc.sol @@ -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"; diff --git a/contracts/MerkleStorageInvalidator.sol b/contracts/MerkleStorageInvalidator.sol index 237d58b..1f0f332 100644 --- a/contracts/MerkleStorageInvalidator.sol +++ b/contracts/MerkleStorageInvalidator.sol @@ -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"; diff --git a/contracts/interfaces/IBaseEscrow.sol b/contracts/interfaces/IBaseEscrow.sol index e1d9992..0e49513 100644 --- a/contracts/interfaces/IBaseEscrow.sol +++ b/contracts/interfaces/IBaseEscrow.sol @@ -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"; diff --git a/contracts/interfaces/IEscrowFactory.sol b/contracts/interfaces/IEscrowFactory.sol index e061907..8db71e3 100644 --- a/contracts/interfaces/IEscrowFactory.sol +++ b/contracts/interfaces/IEscrowFactory.sol @@ -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"; diff --git a/contracts/interfaces/IResolverMock.sol b/contracts/interfaces/IResolverMock.sol index 03897cf..4fbf5e8 100644 --- a/contracts/interfaces/IResolverMock.sol +++ b/contracts/interfaces/IResolverMock.sol @@ -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"; diff --git a/contracts/mocks/NoReceiveCaller.sol b/contracts/mocks/NoReceiveCaller.sol index 44c2a97..6e7aa85 100644 --- a/contracts/mocks/NoReceiveCaller.sol +++ b/contracts/mocks/NoReceiveCaller.sol @@ -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 { diff --git a/contracts/mocks/ResolverMock.sol b/contracts/mocks/ResolverMock.sol index 52cceb8..029d15f 100644 --- a/contracts/mocks/ResolverMock.sol +++ b/contracts/mocks/ResolverMock.sol @@ -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"; diff --git a/contracts/zkSync/EscrowFactoryZkSync.sol b/contracts/zkSync/EscrowFactoryZkSync.sol index 94efb5a..b04b9d6 100644 --- a/contracts/zkSync/EscrowFactoryZkSync.sol +++ b/contracts/zkSync/EscrowFactoryZkSync.sol @@ -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"; diff --git a/remappings.txt b/remappings.txt index ef64d6b..4080c6f 100644 --- a/remappings.txt +++ b/remappings.txt @@ -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/ diff --git a/test/unit/Escrow.t.sol b/test/unit/Escrow.t.sol index e74f102..6754028 100644 --- a/test/unit/Escrow.t.sol +++ b/test/unit/Escrow.t.sol @@ -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"; diff --git a/test/unit/EscrowFactory.t.sol b/test/unit/EscrowFactory.t.sol index 4fdfdb2..ad195c4 100644 --- a/test/unit/EscrowFactory.t.sol +++ b/test/unit/EscrowFactory.t.sol @@ -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"; diff --git a/test/unit/MerkleStorageInvalidator.t.sol b/test/unit/MerkleStorageInvalidator.t.sol index 5d43db9..900b023 100644 --- a/test/unit/MerkleStorageInvalidator.t.sol +++ b/test/unit/MerkleStorageInvalidator.t.sol @@ -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"; diff --git a/test/utils/BaseSetup.sol b/test/utils/BaseSetup.sol index e155dca..798bb3e 100644 --- a/test/utils/BaseSetup.sol +++ b/test/utils/BaseSetup.sol @@ -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";