diff options
author | Amir Bandeali <abandeali1@gmail.com> | 2019-01-19 03:11:27 +0800 |
---|---|---|
committer | Amir Bandeali <abandeali1@gmail.com> | 2019-01-22 13:41:21 +0800 |
commit | f9986a6342ab68f6fdf347afee05c798384d7195 (patch) | |
tree | e03ca0897365cd86e9eaf628a35a2fab5af02565 /contracts | |
parent | 8d367a09fe504905da505e6bd090446cbdf5ccb6 (diff) | |
download | dexon-0x-contracts-f9986a6342ab68f6fdf347afee05c798384d7195.tar.gz dexon-0x-contracts-f9986a6342ab68f6fdf347afee05c798384d7195.tar.zst dexon-0x-contracts-f9986a6342ab68f6fdf347afee05c798384d7195.zip |
Move LibAddressArray to utils package
Diffstat (limited to 'contracts')
-rw-r--r-- | contracts/libs/contracts/libs/LibFillResults.sol | 2 | ||||
-rw-r--r-- | contracts/libs/contracts/libs/LibMath.sol | 2 | ||||
-rw-r--r-- | contracts/libs/contracts/test/TestLibs.sol (renamed from contracts/libs/contracts/test/TestLibs/TestLibs.sol) | 10 | ||||
-rw-r--r-- | contracts/libs/test/exchange_libs.ts (renamed from contracts/libs/test/exchange/libs.ts) | 4 | ||||
-rw-r--r-- | contracts/utils/contracts/test/TestConstants.sol (renamed from contracts/utils/contracts/test/TestConstants/TestConstants.sol) | 4 | ||||
-rw-r--r-- | contracts/utils/contracts/test/TestLibBytes.sol (renamed from contracts/utils/contracts/test/TestLibBytes/TestLibBytes.sol) | 4 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/LibAddressArray.sol (renamed from contracts/libs/contracts/libs/LibAddressArray.sol) | 2 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/LibBytes.sol (renamed from contracts/utils/contracts/utils/LibBytes/LibBytes.sol) | 0 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/Ownable.sol (renamed from contracts/utils/contracts/utils/Ownable/Ownable.sol) | 2 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/ReentrancyGuard.sol (renamed from contracts/utils/contracts/utils/ReentrancyGuard/ReentrancyGuard.sol) | 0 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/SafeMath.sol (renamed from contracts/utils/contracts/utils/SafeMath/SafeMath.sol) | 0 | ||||
-rw-r--r-- | contracts/utils/contracts/utils/interfaces/IOwnable.sol (renamed from contracts/utils/contracts/utils/Ownable/IOwnable.sol) | 0 |
12 files changed, 15 insertions, 15 deletions
diff --git a/contracts/libs/contracts/libs/LibFillResults.sol b/contracts/libs/contracts/libs/LibFillResults.sol index 74b7f7984..09053664c 100644 --- a/contracts/libs/contracts/libs/LibFillResults.sol +++ b/contracts/libs/contracts/libs/LibFillResults.sol @@ -18,7 +18,7 @@ pragma solidity ^0.4.24; -import "@0x/contracts-utils/contracts/utils/SafeMath/SafeMath.sol"; +import "@0x/contracts-utils/contracts/utils/SafeMath.sol"; contract LibFillResults is diff --git a/contracts/libs/contracts/libs/LibMath.sol b/contracts/libs/contracts/libs/LibMath.sol index f14b1b34d..4b62b6f62 100644 --- a/contracts/libs/contracts/libs/LibMath.sol +++ b/contracts/libs/contracts/libs/LibMath.sol @@ -18,7 +18,7 @@ pragma solidity ^0.4.24; -import "@0x/contracts-utils/contracts/utils/SafeMath/SafeMath.sol"; +import "@0x/contracts-utils/contracts/utils/SafeMath.sol"; contract LibMath is diff --git a/contracts/libs/contracts/test/TestLibs/TestLibs.sol b/contracts/libs/contracts/test/TestLibs.sol index bd5f9f9da..30d2ad2ac 100644 --- a/contracts/libs/contracts/test/TestLibs/TestLibs.sol +++ b/contracts/libs/contracts/test/TestLibs.sol @@ -16,13 +16,13 @@ */ -pragma solidity 0.4.24; +pragma solidity ^0.4.24; pragma experimental ABIEncoderV2; -import "../../libs/LibMath.sol"; -import "../../libs/LibOrder.sol"; -import "../../libs/LibFillResults.sol"; -import "../../libs/LibAbiEncoder.sol"; +import "../libs/LibMath.sol"; +import "../libs/LibOrder.sol"; +import "../libs/LibFillResults.sol"; +import "../libs/LibAbiEncoder.sol"; contract TestLibs is diff --git a/contracts/libs/test/exchange/libs.ts b/contracts/libs/test/exchange_libs.ts index 44ff6a844..b61323189 100644 --- a/contracts/libs/test/exchange/libs.ts +++ b/contracts/libs/test/exchange_libs.ts @@ -13,8 +13,8 @@ import { SignedOrder } from '@0x/types'; import { BigNumber } from '@0x/utils'; import * as chai from 'chai'; -import { TestLibsContract } from '../../generated-wrappers/test_libs'; -import { artifacts } from '../../src/artifacts'; +import { TestLibsContract } from '../generated-wrappers/test_libs'; +import { artifacts } from '../src/artifacts'; chaiSetup.configure(); const expect = chai.expect; diff --git a/contracts/utils/contracts/test/TestConstants/TestConstants.sol b/contracts/utils/contracts/test/TestConstants.sol index 3c852173b..372e0af24 100644 --- a/contracts/utils/contracts/test/TestConstants/TestConstants.sol +++ b/contracts/utils/contracts/test/TestConstants.sol @@ -16,9 +16,9 @@ */ -pragma solidity 0.4.24; +pragma solidity ^0.4.24; -import "@0x/contracts-utils/contracts/utils/LibBytes/LibBytes.sol"; +import "../utils/LibBytes.sol"; // solhint-disable max-line-length diff --git a/contracts/utils/contracts/test/TestLibBytes/TestLibBytes.sol b/contracts/utils/contracts/test/TestLibBytes.sol index 444a3e717..c1a5866d0 100644 --- a/contracts/utils/contracts/test/TestLibBytes/TestLibBytes.sol +++ b/contracts/utils/contracts/test/TestLibBytes.sol @@ -16,9 +16,9 @@ */ -pragma solidity 0.4.24; +pragma solidity ^0.4.24; -import "@0x/contracts-utils/contracts/utils/LibBytes/LibBytes.sol"; +import "../utils/LibBytes.sol"; contract TestLibBytes { diff --git a/contracts/libs/contracts/libs/LibAddressArray.sol b/contracts/utils/contracts/utils/LibAddressArray.sol index 997ce85fa..892c486f1 100644 --- a/contracts/libs/contracts/libs/LibAddressArray.sol +++ b/contracts/utils/contracts/utils/LibAddressArray.sol @@ -18,7 +18,7 @@ pragma solidity ^0.4.24; -import "@0x/contracts-utils/contracts/utils/LibBytes/LibBytes.sol"; +import "./LibBytes.sol"; library LibAddressArray { diff --git a/contracts/utils/contracts/utils/LibBytes/LibBytes.sol b/contracts/utils/contracts/utils/LibBytes.sol index 4ee6228d5..4ee6228d5 100644 --- a/contracts/utils/contracts/utils/LibBytes/LibBytes.sol +++ b/contracts/utils/contracts/utils/LibBytes.sol diff --git a/contracts/utils/contracts/utils/Ownable/Ownable.sol b/contracts/utils/contracts/utils/Ownable.sol index aa74a72d2..f67f241a4 100644 --- a/contracts/utils/contracts/utils/Ownable/Ownable.sol +++ b/contracts/utils/contracts/utils/Ownable.sol @@ -1,6 +1,6 @@ pragma solidity ^0.4.24; -import "./IOwnable.sol"; +import "./interfaces/IOwnable.sol"; contract Ownable is diff --git a/contracts/utils/contracts/utils/ReentrancyGuard/ReentrancyGuard.sol b/contracts/utils/contracts/utils/ReentrancyGuard.sol index 1a02c88a4..1a02c88a4 100644 --- a/contracts/utils/contracts/utils/ReentrancyGuard/ReentrancyGuard.sol +++ b/contracts/utils/contracts/utils/ReentrancyGuard.sol diff --git a/contracts/utils/contracts/utils/SafeMath/SafeMath.sol b/contracts/utils/contracts/utils/SafeMath.sol index d7a4a603e..d7a4a603e 100644 --- a/contracts/utils/contracts/utils/SafeMath/SafeMath.sol +++ b/contracts/utils/contracts/utils/SafeMath.sol diff --git a/contracts/utils/contracts/utils/Ownable/IOwnable.sol b/contracts/utils/contracts/utils/interfaces/IOwnable.sol index c0cbfddfd..c0cbfddfd 100644 --- a/contracts/utils/contracts/utils/Ownable/IOwnable.sol +++ b/contracts/utils/contracts/utils/interfaces/IOwnable.sol |