Commit d3894106 by Manuel Aráoz Committed by GitHub

Merge pull request #114 from maraoz/2-lines

add 2 lines between top level definitions
parents 5567e737 f79ad4e2
pragma solidity ^0.4.0; pragma solidity ^0.4.0;
import './Ownable.sol'; import './Ownable.sol';
......
pragma solidity ^0.4.4; 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 { contract LimitBalance {
uint public limit; uint public limit;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import './Ownable.sol'; import './Ownable.sol';
contract Migrations is Ownable { contract Migrations is Ownable {
uint public lastCompletedMigration; uint public lastCompletedMigration;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadArrayUse is PullPayment { contract BadArrayUse is PullPayment {
address[] employees; address[] employees;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadFailEarly { contract BadFailEarly {
uint constant DEFAULT_SALARY = 50000; uint constant DEFAULT_SALARY = 50000;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadPushPayments { contract BadPushPayments {
address highestBidder; address highestBidder;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
contract GoodArrayUse is PullPayment { contract GoodArrayUse is PullPayment {
address[] employees; address[] employees;
mapping(address => uint) bonuses; mapping(address => uint) bonuses;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
contract GoodFailEarly { contract GoodFailEarly {
uint constant DEFAULT_SALARY = 50000; uint constant DEFAULT_SALARY = 50000;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
contract GoodPullPayments { contract GoodPullPayments {
address highestBidder; address highestBidder;
uint highestBid; uint highestBid;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
/* /*
* Proof of Existence example contract * Proof of Existence example contract
* see https://medium.com/zeppelin-blog/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05 * see https://medium.com/zeppelin-blog/the-hitchhikers-guide-to-smart-contracts-in-ethereum-848f08001f05
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
contract PullPaymentBid is PullPayment { contract PullPaymentBid is PullPayment {
address public highestBidder; address public highestBidder;
uint public highestBid; uint public highestBid;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
import '../Stoppable.sol'; import '../Stoppable.sol';
contract StoppableBid is Stoppable, PullPayment { contract StoppableBid is Stoppable, PullPayment {
address public highestBidder; address public highestBidder;
uint public highestBid; uint public highestBid;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../token/BasicToken.sol'; import '../token/BasicToken.sol';
// mock class using BasicToken // mock class using BasicToken
contract BasicTokenMock is BasicToken { contract BasicTokenMock is BasicToken {
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../LimitBalance.sol'; import '../LimitBalance.sol';
// mock class using LimitBalance // mock class using LimitBalance
contract LimitBalanceMock is LimitBalance(1000) { contract LimitBalanceMock is LimitBalance(1000) {
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
// mock class using PullPayment // mock class using PullPayment
contract PullPaymentMock is PullPayment { contract PullPaymentMock is PullPayment {
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../SafeMath.sol'; import '../SafeMath.sol';
contract SafeMathMock is SafeMath { contract SafeMathMock is SafeMath {
uint public result; uint public result;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../token/StandardToken.sol'; import '../token/StandardToken.sol';
// mock class using StandardToken // mock class using StandardToken
contract StandardTokenMock is StandardToken { contract StandardTokenMock is StandardToken {
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import '../Stoppable.sol'; import '../Stoppable.sol';
// mock class using Stoppable // mock class using Stoppable
contract StoppableMock is Stoppable { contract StoppableMock is Stoppable {
bool public drasticMeasureTaken; bool public drasticMeasureTaken;
......
pragma solidity ^0.4.4; pragma solidity ^0.4.4;
import './ERC20.sol'; import './ERC20.sol';
import '../SafeMath.sol'; import '../SafeMath.sol';
/** /**
* ERC20 token * Standard ERC20 token
* *
* https://github.com/ethereum/EIPs/issues/20 * https://github.com/ethereum/EIPs/issues/20
* Based on code by FirstBlood: * Based on code by FirstBlood:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment