- Upgrade version - Re-enable in travis.yml - Move mocks to contracts folder for instrumentationpull/617/head
parent
ddcae6254e
commit
1455a5a942
@ -1,5 +1,9 @@ |
|||||||
module.exports = { |
module.exports = { |
||||||
norpc: true, |
norpc: true, |
||||||
testCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage', |
testCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle test --network coverage', |
||||||
skipFiles: ['lifecycle/Migrations.sol'] |
compileCommand: 'node --max-old-space-size=4096 ../node_modules/.bin/truffle compile --network coverage', |
||||||
|
skipFiles: [ |
||||||
|
'lifecycle/Migrations.sol', |
||||||
|
'mocks' |
||||||
|
] |
||||||
} |
} |
||||||
|
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/token/BasicToken.sol'; |
import '../token/BasicToken.sol'; |
||||||
|
|
||||||
|
|
||||||
// mock class using BasicToken |
// mock class using BasicToken |
@ -1,6 +1,6 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
import '../../contracts/token/BurnableToken.sol'; |
import '../token/BurnableToken.sol'; |
||||||
|
|
||||||
contract BurnableTokenMock is BurnableToken { |
contract BurnableTokenMock is BurnableToken { |
||||||
|
|
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/crowdsale/CappedCrowdsale.sol'; |
import '../crowdsale/CappedCrowdsale.sol'; |
||||||
|
|
||||||
|
|
||||||
contract CappedCrowdsaleImpl is CappedCrowdsale { |
contract CappedCrowdsaleImpl is CappedCrowdsale { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
import '../../contracts/token/StandardToken.sol'; |
import '../token/StandardToken.sol'; |
||||||
import '../../contracts/token/DetailedERC20.sol'; |
import '../token/DetailedERC20.sol'; |
||||||
|
|
||||||
contract DetailedERC20Mock is StandardToken, DetailedERC20 { |
contract DetailedERC20Mock is StandardToken, DetailedERC20 { |
||||||
function DetailedERC20Mock(string _name, string _symbol, uint8 _decimals) DetailedERC20(_name, _symbol, _decimals) public {} |
function DetailedERC20Mock(string _name, string _symbol, uint8 _decimals) DetailedERC20(_name, _symbol, _decimals) public {} |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/token/BasicToken.sol'; |
import '../token/BasicToken.sol'; |
||||||
|
|
||||||
|
|
||||||
contract ERC23ContractInterface { |
contract ERC23ContractInterface { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/crowdsale/FinalizableCrowdsale.sol'; |
import '../crowdsale/FinalizableCrowdsale.sol'; |
||||||
|
|
||||||
|
|
||||||
contract FinalizableCrowdsaleImpl is FinalizableCrowdsale { |
contract FinalizableCrowdsaleImpl is FinalizableCrowdsale { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/LimitBalance.sol'; |
import '../LimitBalance.sol'; |
||||||
|
|
||||||
|
|
||||||
// mock class using LimitBalance |
// mock class using LimitBalance |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/lifecycle/Pausable.sol'; |
import '../lifecycle/Pausable.sol'; |
||||||
|
|
||||||
|
|
||||||
// mock class using Pausable |
// mock class using Pausable |
@ -1,6 +1,6 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
import '../../contracts/token/PausableToken.sol'; |
import '../token/PausableToken.sol'; |
||||||
|
|
||||||
// mock class using PausableToken |
// mock class using PausableToken |
||||||
contract PausableTokenMock is PausableToken { |
contract PausableTokenMock is PausableToken { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/payment/PullPayment.sol'; |
import '../payment/PullPayment.sol'; |
||||||
|
|
||||||
|
|
||||||
// mock class using PullPayment |
// mock class using PullPayment |
@ -1,6 +1,6 @@ |
|||||||
pragma solidity ^0.4.8; |
pragma solidity ^0.4.8; |
||||||
|
|
||||||
import '../../contracts/ownership/rbac/RBAC.sol'; |
import '../ownership/rbac/RBAC.sol'; |
||||||
|
|
||||||
|
|
||||||
contract RBACMock is RBAC { |
contract RBACMock is RBAC { |
@ -1,6 +1,6 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
import '../../contracts/ReentrancyGuard.sol'; |
import '../ReentrancyGuard.sol'; |
||||||
import './ReentrancyAttack.sol'; |
import './ReentrancyAttack.sol'; |
||||||
|
|
||||||
contract ReentrancyMock is ReentrancyGuard { |
contract ReentrancyMock is ReentrancyGuard { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/crowdsale/RefundableCrowdsale.sol'; |
import '../crowdsale/RefundableCrowdsale.sol'; |
||||||
|
|
||||||
|
|
||||||
contract RefundableCrowdsaleImpl is RefundableCrowdsale { |
contract RefundableCrowdsaleImpl is RefundableCrowdsale { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
import '../../contracts/token/ERC20.sol'; |
import '../token/ERC20.sol'; |
||||||
import '../../contracts/token/SafeERC20.sol'; |
import '../token/SafeERC20.sol'; |
||||||
|
|
||||||
contract ERC20FailingMock is ERC20 { |
contract ERC20FailingMock is ERC20 { |
||||||
function transfer(address, uint256) public returns (bool) { |
function transfer(address, uint256) public returns (bool) { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/math/SafeMath.sol'; |
import '../math/SafeMath.sol'; |
||||||
|
|
||||||
|
|
||||||
contract SafeMathMock { |
contract SafeMathMock { |
@ -1,7 +1,7 @@ |
|||||||
pragma solidity ^0.4.18; |
pragma solidity ^0.4.18; |
||||||
|
|
||||||
|
|
||||||
import '../../contracts/token/StandardToken.sol'; |
import '../token/StandardToken.sol'; |
||||||
|
|
||||||
|
|
||||||
// mock class using StandardToken |
// mock class using StandardToken |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue