changes for solidity 0.4

pull/26/head
Michael J. Curry 8 years ago
parent 570d6cb940
commit 25d0ed0006
No known key found for this signature in database
GPG Key ID: 58EEF5BB97F3E791
  1. 1
      contracts/Bounty.sol
  2. 1
      contracts/ERC20.sol
  3. 1
      contracts/Killable.sol
  4. 3
      contracts/Migrations.sol
  5. 3
      contracts/Ownable.sol
  6. 1
      contracts/PullPayment.sol
  7. 1
      contracts/Rejector.sol
  8. 5
      contracts/Stoppable.sol
  9. 1
      contracts/Token.sol

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
import './PullPaymentCapable.sol';
import './Token.sol';

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
contract ERC20 {
function totalSupply() constant returns (uint);
function balanceOf(address who) constant returns (uint);

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
import "./Ownable.sol";
/*

@ -1,9 +1,10 @@
pragma solidity ^0.4.0;
contract Migrations {
address public owner;
uint public last_completed_migration;
modifier restricted() {
if (msg.sender == owner) _
if (msg.sender == owner) _;
}
function Migrations() {

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
/*
* Ownable
* Base contract with an owner
@ -11,7 +12,7 @@ contract Ownable {
modifier onlyOwner() {
if (msg.sender == owner)
_
_;
}
function transfer(address newOwner) onlyOwner {

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
/*
* PullPaymentCapable
* Base contract supporting async send for pull payments.

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
/*
* Rejector
* Base contract for rejecting direct deposits.

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
/*
* Stoppable
* Abstract contract that allows children to implement an
@ -7,8 +8,8 @@ contract Stoppable {
address public curator;
bool public stopped;
modifier stopInEmergency { if (!stopped) _ }
modifier onlyInEmergency { if (stopped) _ }
modifier stopInEmergency { if (!stopped) _; }
modifier onlyInEmergency { if (stopped) _; }
function Stoppable(address _curator) {
if (_curator == 0) throw;

@ -1,3 +1,4 @@
pragma solidity ^0.4.0;
// Source: https://github.com/nexusdev/erc20
// Flat file implementation of `dappsys/token/base.sol::DSTokenBase`

Loading…
Cancel
Save