Browse Source

add 2 lines between top level definitions

Manuel Araoz 8 years ago
parent
commit
f79ad4e2f6

+ 0 - 1
contracts/Claimable.sol

@@ -1,7 +1,6 @@
 pragma solidity ^0.4.0;
 
 
-
 import './Ownable.sol';
 
 

+ 9 - 0
contracts/LimitBalance.sol

@@ -1,4 +1,13 @@
 pragma solidity ^0.4.4;
+
+
+/**
+ * LimitBalance
+ * Simple contract to limit the balance of child contract.
+ * Note this doesn't prevent other contracts to send funds 
+ * by using selfdestruct(address);
+ * See: https://github.com/ConsenSys/smart-contract-best-practices#remember-that-ether-can-be-forcibly-sent-to-an-account
+ */
 contract LimitBalance {
 
   uint public limit;

+ 3 - 0
contracts/Migrations.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import './Ownable.sol';
 
+
 contract Migrations is Ownable {
   uint public lastCompletedMigration;
 

+ 3 - 1
contracts/examples/BadArrayUse.sol

@@ -1,8 +1,10 @@
 pragma solidity ^0.4.4;
+
+
 import '../PullPayment.sol';
 
-// UNSAFE CODE, DO NOT USE!
 
+// UNSAFE CODE, DO NOT USE!
 contract BadArrayUse is PullPayment {
   address[] employees;
 

+ 2 - 1
contracts/examples/BadFailEarly.sol

@@ -1,6 +1,7 @@
 pragma solidity ^0.4.4;
-// UNSAFE CODE, DO NOT USE!
 
+
+// UNSAFE CODE, DO NOT USE!
 contract BadFailEarly {
 
   uint constant DEFAULT_SALARY = 50000;

+ 2 - 1
contracts/examples/BadPushPayments.sol

@@ -1,6 +1,7 @@
 pragma solidity ^0.4.4;
-// UNSAFE CODE, DO NOT USE!
 
+
+// UNSAFE CODE, DO NOT USE!
 contract BadPushPayments {
 
 	address highestBidder;

+ 3 - 0
contracts/examples/GoodArrayUse.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../PullPayment.sol';
 
+
 contract GoodArrayUse is PullPayment {
   address[] employees;
   mapping(address => uint) bonuses;

+ 1 - 0
contracts/examples/GoodFailEarly.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.4;
 
+
 contract GoodFailEarly {
 
   uint constant DEFAULT_SALARY = 50000;

+ 2 - 0
contracts/examples/GoodPullPayments.sol

@@ -1,4 +1,6 @@
 pragma solidity ^0.4.4;
+
+
 contract GoodPullPayments {
   address highestBidder;
   uint highestBid;

+ 1 - 0
contracts/examples/ProofOfExistence.sol

@@ -1,5 +1,6 @@
 pragma solidity ^0.4.4;
 
+
 /*
  * Proof of Existence example contract
  * see https://medium.com/zeppelin-blog/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05

+ 2 - 0
contracts/examples/PullPaymentBid.sol

@@ -1,7 +1,9 @@
 pragma solidity ^0.4.4;
 
+
 import '../PullPayment.sol';
 
+
 contract PullPaymentBid is PullPayment {
   address public highestBidder;
   uint public highestBid;

+ 2 - 0
contracts/examples/StoppableBid.sol

@@ -1,8 +1,10 @@
 pragma solidity ^0.4.4;
 
+
 import '../PullPayment.sol';
 import '../Stoppable.sol';
 
+
 contract StoppableBid is Stoppable, PullPayment {
   address public highestBidder;
   uint public highestBid;

+ 3 - 0
contracts/test-helpers/BasicTokenMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../token/BasicToken.sol';
 
+
 // mock class using BasicToken
 contract BasicTokenMock is BasicToken {
 

+ 3 - 0
contracts/test-helpers/LimitBalanceMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../LimitBalance.sol';
 
+
 // mock class using LimitBalance
 contract LimitBalanceMock is LimitBalance(1000) {
 

+ 3 - 0
contracts/test-helpers/PullPaymentMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../PullPayment.sol';
 
+
 // mock class using PullPayment
 contract PullPaymentMock is PullPayment {
 

+ 3 - 0
contracts/test-helpers/SafeMathMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../SafeMath.sol';
 
+
 contract SafeMathMock is SafeMath {
   uint public result;
 

+ 3 - 0
contracts/test-helpers/StandardTokenMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../token/StandardToken.sol';
 
+
 // mock class using StandardToken
 contract StandardTokenMock is StandardToken {
 

+ 3 - 0
contracts/test-helpers/StoppableMock.sol

@@ -1,6 +1,9 @@
 pragma solidity ^0.4.4;
+
+
 import '../Stoppable.sol';
 
+
 // mock class using Stoppable
 contract StoppableMock is Stoppable {
   bool public drasticMeasureTaken;

+ 3 - 1
contracts/token/StandardToken.sol

@@ -1,10 +1,12 @@
 pragma solidity ^0.4.4;
 
+
 import './ERC20.sol';
 import '../SafeMath.sol';
 
+
 /**
- * ERC20 token
+ * Standard ERC20 token
  *
  * https://github.com/ethereum/EIPs/issues/20
  * Based on code by FirstBlood: