diff --git a/contracts/coordinator/contracts/test/TestLibs.sol b/contracts/coordinator/contracts/test/TestLibs.sol deleted file mode 100644 index 9c568ca859..0000000000 --- a/contracts/coordinator/contracts/test/TestLibs.sol +++ /dev/null @@ -1,64 +0,0 @@ -/* - - Copyright 2018 ZeroEx Intl. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -pragma solidity ^0.5.5; -pragma experimental "ABIEncoderV2"; - -import "@0x/contracts-exchange-libs/contracts/src/LibEIP712.sol"; -import "../src/libs/LibConstants.sol"; -import "../src/libs/LibCoordinatorApproval.sol"; -import "../src/libs/LibZeroExTransaction.sol"; - - -// solhint-disable no-empty-blocks -contract TestLibs is - LibConstants, - LibEIP712, - LibCoordinatorApproval, - LibZeroExTransaction -{ - constructor (address _exchange, uint256 _chainId) - public - LibConstants(_exchange) - LibEIP712(_chainId) - {} - - /// @dev Calculated the EIP712 hash of the Coordinator approval mesasage using the domain separator of this contract. - /// @param approval Coordinator approval message containing the transaction hash, transaction signature, and expiration of the approval. - /// @return EIP712 hash of the Coordinator approval message with the domain separator of this contract. - function publicGetCoordinatorApprovalHash(CoordinatorApproval memory approval) - public - view - returns (bytes32 approvalHash) - { - approvalHash = getCoordinatorApprovalHash(approval); - return approvalHash; - } - - /// @dev Calculates the EIP712 hash of a 0x transaction using the domain separator of the Exchange contract. - /// @param transaction 0x transaction containing salt, signerAddress, and data. - /// @return EIP712 hash of the transaction with the domain separator of the Exchange contract. - function publicGetTransactionHash(ZeroExTransaction memory transaction) - public - view - returns (bytes32 transactionHash) - { - transactionHash = getTransactionHash(transaction); - return transactionHash; - } -} diff --git a/contracts/coordinator/contracts/test/TestMixins.sol b/contracts/coordinator/contracts/test/TestMixins.sol deleted file mode 100644 index dec213f8bc..0000000000 --- a/contracts/coordinator/contracts/test/TestMixins.sol +++ /dev/null @@ -1,40 +0,0 @@ -/* - - Copyright 2018 ZeroEx Intl. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - -*/ - -pragma solidity ^0.5.5; -pragma experimental "ABIEncoderV2"; - -import "@0x/contracts-exchange-libs/contracts/src/LibEIP712.sol"; -import "../src/libs/LibConstants.sol"; -import "../src/MixinSignatureValidator.sol"; -import "../src/MixinCoordinatorApprovalVerifier.sol"; - - -// solhint-disable no-empty-blocks -contract TestMixins is - LibConstants, - LibEIP712, - MixinSignatureValidator, - MixinCoordinatorApprovalVerifier -{ - constructor (address _exchange, uint256 _chainId) - public - LibConstants(_exchange) - LibEIP712(_chainId) - {} -}