Quellcode durchsuchen

fix: solium errors - blank-line only

Matt Condon vor 7 Jahren
Ursprung
Commit
e60aee61f2
40 geänderte Dateien mit 41 neuen und 12 gelöschten Zeilen
  1. 1 0
      contracts/DayLimit.sol
  2. 1 0
      contracts/MerkleProof.sol
  3. 1 0
      contracts/ReentrancyGuard.sol
  4. 1 0
      contracts/crowdsale/CappedCrowdsale.sol
  5. 1 0
      contracts/crowdsale/Crowdsale.sol
  6. 1 0
      contracts/crowdsale/FinalizableCrowdsale.sol
  7. 1 0
      contracts/crowdsale/RefundVault.sol
  8. 2 0
      contracts/examples/SampleCrowdsale.sol
  9. 1 1
      contracts/lifecycle/Migrations.sol
  10. 1 1
      contracts/lifecycle/TokenDestructible.sol
  11. 1 1
      contracts/math/Math.sol
  12. 1 0
      contracts/mocks/BurnableTokenMock.sol
  13. 2 0
      contracts/mocks/DayLimitMock.sol
  14. 1 0
      contracts/mocks/DetailedERC20Mock.sol
  15. 1 0
      contracts/mocks/ERC23TokenMock.sol
  16. 1 0
      contracts/mocks/ForceEther.sol
  17. 1 0
      contracts/mocks/HasNoEtherTest.sol
  18. 1 1
      contracts/mocks/InsecureTargetBounty.sol
  19. 1 0
      contracts/mocks/PausableTokenMock.sol
  20. 1 0
      contracts/mocks/ReentrancyAttack.sol
  21. 1 0
      contracts/mocks/ReentrancyMock.sol
  22. 3 0
      contracts/mocks/SafeERC20Helper.sol
  23. 1 1
      contracts/mocks/SecureTargetBounty.sol
  24. 1 0
      contracts/ownership/CanReclaimToken.sol
  25. 1 0
      contracts/ownership/Contactable.sol
  26. 0 2
      contracts/ownership/DelayedClaimable.sol
  27. 1 0
      contracts/ownership/HasNoContracts.sol
  28. 1 0
      contracts/ownership/HasNoEther.sol
  29. 1 0
      contracts/ownership/HasNoTokens.sol
  30. 1 0
      contracts/ownership/NoOwner.sol
  31. 0 2
      contracts/ownership/Ownable.sol
  32. 0 1
      contracts/ownership/rbac/RBAC.sol
  33. 1 0
      contracts/payment/SplitPayment.sol
  34. 1 0
      contracts/token/BurnableToken.sol
  35. 1 0
      contracts/token/CappedToken.sol
  36. 1 0
      contracts/token/DetailedERC20.sol
  37. 1 1
      contracts/token/PausableToken.sol
  38. 1 0
      contracts/token/SafeERC20.sol
  39. 1 1
      contracts/token/TokenTimelock.sol
  40. 1 0
      contracts/token/TokenVesting.sol

+ 1 - 0
contracts/DayLimit.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.18;
 
+
 /**
  * @title DayLimit
  * @dev Base contract that enables methods to be protected by placing a linear limit (specifiable)

+ 1 - 0
contracts/MerkleProof.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.18;
 
+
 /*
  * @title MerkleProof
  * @dev Merkle proof verification

+ 1 - 0
contracts/ReentrancyGuard.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.18;
 
+
 /**
  * @title Helps contracts guard agains reentrancy attacks.
  * @author Remco Bloemen <remco@2π.com>

+ 1 - 0
contracts/crowdsale/CappedCrowdsale.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../math/SafeMath.sol";
 import "./Crowdsale.sol";
 
+
 /**
  * @title CappedCrowdsale
  * @dev Extension of Crowdsale with a max amount of funds raised

+ 1 - 0
contracts/crowdsale/Crowdsale.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../token/MintableToken.sol";
 import "../math/SafeMath.sol";
 
+
 /**
  * @title Crowdsale
  * @dev Crowdsale is a base contract for managing a token crowdsale.

+ 1 - 0
contracts/crowdsale/FinalizableCrowdsale.sol

@@ -4,6 +4,7 @@ import "../math/SafeMath.sol";
 import "../ownership/Ownable.sol";
 import "./Crowdsale.sol";
 
+
 /**
  * @title FinalizableCrowdsale
  * @dev Extension of Crowdsale where an owner can do extra work

+ 1 - 0
contracts/crowdsale/RefundVault.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../math/SafeMath.sol";
 import "../ownership/Ownable.sol";
 
+
 /**
  * @title RefundVault
  * @dev This contract is used for storing funds while a crowdsale

+ 2 - 0
contracts/examples/SampleCrowdsale.sol

@@ -4,6 +4,7 @@ import "../crowdsale/CappedCrowdsale.sol";
 import "../crowdsale/RefundableCrowdsale.sol";
 import "../token/MintableToken.sol";
 
+
 /**
  * @title SampleCrowdsaleToken
  * @dev Very simple ERC20 Token that can be minted.
@@ -17,6 +18,7 @@ contract SampleCrowdsaleToken is MintableToken {
 
 }
 
+
 /**
  * @title SampleCrowdsale
  * @dev This is an example of a fully fledged crowdsale.

+ 1 - 1
contracts/lifecycle/Migrations.sol

@@ -1,8 +1,8 @@
 pragma solidity ^0.4.18;
 
-
 import "../ownership/Ownable.sol";
 
+
 /**
  * @title Migrations
  * @dev This is a truffle contract, needed for truffle integration, not meant for use by Zeppelin users.

+ 1 - 1
contracts/lifecycle/TokenDestructible.sol

@@ -1,9 +1,9 @@
 pragma solidity ^0.4.18;
 
-
 import "../ownership/Ownable.sol";
 import "../token/ERC20Basic.sol";
 
+
 /**
  * @title TokenDestructible:
  * @author Remco Bloemen <remco@2π.com>

+ 1 - 1
contracts/math/Math.sol

@@ -1,10 +1,10 @@
 pragma solidity ^0.4.18;
 
+
 /**
  * @title Math
  * @dev Assorted math operations
  */
-
 library Math {
   function max64(uint64 a, uint64 b) internal pure returns (uint64) {
     return a >= b ? a : b;

+ 1 - 0
contracts/mocks/BurnableTokenMock.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "../token/BurnableToken.sol";
 
+
 contract BurnableTokenMock is BurnableToken {
 
   function BurnableTokenMock(address initialAccount, uint initialBalance) public {

+ 2 - 0
contracts/mocks/DayLimitMock.sol

@@ -1,6 +1,8 @@
 pragma solidity ^0.4.18;
+
 import "../../contracts/DayLimit.sol";
 
+
 contract DayLimitMock is DayLimit {
   uint256 public totalSpending;
 

+ 1 - 0
contracts/mocks/DetailedERC20Mock.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../token/StandardToken.sol";
 import "../token/DetailedERC20.sol";
 
+
 contract DetailedERC20Mock is StandardToken, DetailedERC20 {
   function DetailedERC20Mock(string _name, string _symbol, uint8 _decimals) DetailedERC20(_name, _symbol, _decimals) public {}
 }

+ 1 - 0
contracts/mocks/ERC23TokenMock.sol

@@ -8,6 +8,7 @@ contract ERC23ContractInterface {
   function tokenFallback(address _from, uint256 _value, bytes _data) external;
 }
 
+
 contract ERC23TokenMock is BasicToken {
 
   function ERC23TokenMock(address initialAccount, uint256 initialBalance) public {

+ 1 - 0
contracts/mocks/ForceEther.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.18;
 
+
 // @title Force Ether into a contract.
 // @notice  even
 // if the contract is not payable.

+ 1 - 0
contracts/mocks/HasNoEtherTest.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "../../contracts/ownership/HasNoEther.sol";
 
+
 contract HasNoEtherTest is HasNoEther {
 
   // Constructor with explicit payable — should still fail

+ 1 - 1
contracts/mocks/InsecureTargetBounty.sol

@@ -1,6 +1,5 @@
 pragma solidity ^0.4.18;
 
-
 import {Bounty, Target} from "../../contracts/Bounty.sol";
 
 
@@ -10,6 +9,7 @@ contract InsecureTargetMock is Target {
   }
 }
 
+
 contract InsecureTargetBounty is Bounty {
   function deployContract() internal returns (address) {
     return new InsecureTargetMock();

+ 1 - 0
contracts/mocks/PausableTokenMock.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "../token/PausableToken.sol";
 
+
 // mock class using PausableToken
 contract PausableTokenMock is PausableToken {
 

+ 1 - 0
contracts/mocks/ReentrancyAttack.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.18;
 
+
 contract ReentrancyAttack {
 
   function callSender(bytes4 data) public {

+ 1 - 0
contracts/mocks/ReentrancyMock.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../ReentrancyGuard.sol";
 import "./ReentrancyAttack.sol";
 
+
 contract ReentrancyMock is ReentrancyGuard {
 
   uint256 public counter;

+ 3 - 0
contracts/mocks/SafeERC20Helper.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "../token/ERC20.sol";
 import "../token/SafeERC20.sol";
 
+
 contract ERC20FailingMock is ERC20 {
   function transfer(address, uint256) public returns (bool) {
     return false;
@@ -25,6 +26,7 @@ contract ERC20FailingMock is ERC20 {
   }
 }
 
+
 contract ERC20SucceedingMock is ERC20 {
   function transfer(address, uint256) public returns (bool) {
     return true;
@@ -47,6 +49,7 @@ contract ERC20SucceedingMock is ERC20 {
   }
 }
 
+
 contract SafeERC20Helper {
   using SafeERC20 for ERC20;
 

+ 1 - 1
contracts/mocks/SecureTargetBounty.sol

@@ -1,6 +1,5 @@
 pragma solidity ^0.4.18;
 
-
 import {Bounty, Target} from "../../contracts/Bounty.sol";
 
 
@@ -10,6 +9,7 @@ contract SecureTargetMock is Target {
   }
 }
 
+
 contract SecureTargetBounty is Bounty {
   function deployContract() internal returns (address) {
     return new SecureTargetMock();

+ 1 - 0
contracts/ownership/CanReclaimToken.sol

@@ -4,6 +4,7 @@ import "./Ownable.sol";
 import "../token/ERC20Basic.sol";
 import "../token/SafeERC20.sol";
 
+
 /**
  * @title Contracts that should be able to recover tokens
  * @author SylTi

+ 1 - 0
contracts/ownership/Contactable.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./Ownable.sol";
 
+
 /**
  * @title Contactable token
  * @dev Basic version of a contactable contract, allowing the owner to provide a string with their

+ 0 - 2
contracts/ownership/DelayedClaimable.sol

@@ -1,6 +1,5 @@
 pragma solidity ^0.4.18;
 
-
 import "./Claimable.sol";
 
 
@@ -26,7 +25,6 @@ contract DelayedClaimable is Claimable {
     start = _start;
   }
 
-
   /**
    * @dev Allows the pendingOwner address to finalize the transfer, as long as it is called within
    * the specified start and end time.

+ 1 - 0
contracts/ownership/HasNoContracts.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./Ownable.sol";
 
+
 /**
  * @title Contracts that should not own Contracts
  * @author Remco Bloemen <remco@2π.com>

+ 1 - 0
contracts/ownership/HasNoEther.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./Ownable.sol";
 
+
 /**
  * @title Contracts that should not own Ether
  * @author Remco Bloemen <remco@2π.com>

+ 1 - 0
contracts/ownership/HasNoTokens.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./CanReclaimToken.sol";
 
+
 /**
  * @title Contracts that should not own Tokens
  * @author Remco Bloemen <remco@2π.com>

+ 1 - 0
contracts/ownership/NoOwner.sol

@@ -4,6 +4,7 @@ import "./HasNoEther.sol";
 import "./HasNoTokens.sol";
 import "./HasNoContracts.sol";
 
+
 /**
  * @title Base contract for contracts that should not own things.
  * @author Remco Bloemen <remco@2π.com>

+ 0 - 2
contracts/ownership/Ownable.sol

@@ -21,7 +21,6 @@ contract Ownable {
     owner = msg.sender;
   }
 
-
   /**
    * @dev Throws if called by any account other than the owner.
    */
@@ -30,7 +29,6 @@ contract Ownable {
     _;
   }
 
-
   /**
    * @dev Allows the current owner to transfer control of the contract to a newOwner.
    * @param newOwner The address to transfer ownership to.

+ 0 - 1
contracts/ownership/rbac/RBAC.sol

@@ -111,7 +111,6 @@ contract RBAC {
     removeRole(addr, roleName);
   }
 
-
   /**
    * @dev modifier to scope access to a single role (uses msg.sender as addr)
    * @param roleName the name of the role

+ 1 - 0
contracts/payment/SplitPayment.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "../math/SafeMath.sol";
 
+
 /**
  * @title SplitPayment
  * @dev Base contract that supports multiple payees claiming funds sent to this contract

+ 1 - 0
contracts/token/BurnableToken.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./BasicToken.sol";
 
+
 /**
  * @title Burnable Token
  * @dev Token that can be irreversibly burned (destroyed).

+ 1 - 0
contracts/token/CappedToken.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.11;
 
 import "./MintableToken.sol";
 
+
 /**
  * @title Capped token
  * @dev Mintable token with a token cap.

+ 1 - 0
contracts/token/DetailedERC20.sol

@@ -2,6 +2,7 @@ pragma solidity ^0.4.18;
 
 import "./ERC20.sol";
 
+
 contract DetailedERC20 is ERC20 {
   string public name;
   string public symbol;

+ 1 - 1
contracts/token/PausableToken.sol

@@ -3,12 +3,12 @@ pragma solidity ^0.4.18;
 import "./StandardToken.sol";
 import "../lifecycle/Pausable.sol";
 
+
 /**
  * @title Pausable token
  *
  * @dev StandardToken modified with pausable transfers.
  **/
-
 contract PausableToken is StandardToken, Pausable {
 
   function transfer(address _to, uint256 _value) public whenNotPaused returns (bool) {

+ 1 - 0
contracts/token/SafeERC20.sol

@@ -3,6 +3,7 @@ pragma solidity ^0.4.18;
 import "./ERC20Basic.sol";
 import "./ERC20.sol";
 
+
 /**
  * @title SafeERC20
  * @dev Wrappers around ERC20 operations that throw on failure.

+ 1 - 1
contracts/token/TokenTimelock.sol

@@ -1,9 +1,9 @@
 pragma solidity ^0.4.18;
 
-
 import "./ERC20Basic.sol";
 import "../token/SafeERC20.sol";
 
+
 /**
  * @title TokenTimelock
  * @dev TokenTimelock is a token holder contract that will allow a

+ 1 - 0
contracts/token/TokenVesting.sol

@@ -5,6 +5,7 @@ import "./SafeERC20.sol";
 import "../ownership/Ownable.sol";
 import "../math/SafeMath.sol";
 
+
 /**
  * @title TokenVesting
  * @dev A token holder contract that can release its token balance gradually like a