Merge pull request #114 from maraoz/2-lines

add 2 lines between top level definitions
This commit is contained in:
Manuel Aráoz
2016-12-19 18:10:27 -03:00
committed by GitHub
19 changed files with 51 additions and 5 deletions

View File

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

View File

@ -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;

View File

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

View File

@ -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;

View File

@ -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;

View File

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

View File

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

View File

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

View File

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

View File

@ -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

View File

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

View File

@ -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;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -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: