migrate to 0.4.4

pull/60/head
Manuel Araoz 8 years ago
parent 0c0eb292ad
commit 83f4104699
  1. 2
      contracts/Bounty.sol
  2. 2
      contracts/ERC20.sol
  3. 2
      contracts/Killable.sol
  4. 2
      contracts/LimitFunds.sol
  5. 2
      contracts/Migrations.sol
  6. 2
      contracts/Ownable.sol
  7. 2
      contracts/PullPayment.sol
  8. 9
      contracts/Rejector.sol
  9. 2
      contracts/SafeMath.sol
  10. 2
      contracts/StandardToken.sol
  11. 2
      contracts/Stoppable.sol
  12. 2
      contracts/examples/BadArrayUse.sol
  13. 2
      contracts/examples/BadFailEarly.sol
  14. 2
      contracts/examples/BadPushPayments.sol
  15. 2
      contracts/examples/GoodArrayUse.sol
  16. 2
      contracts/examples/GoodFailEarly.sol
  17. 2
      contracts/examples/GoodPullPayments.sol
  18. 6
      contracts/examples/ProofOfExistence.sol
  19. 2
      contracts/examples/PullPaymentBid.sol
  20. 2
      contracts/examples/StoppableBid.sol
  21. 2
      contracts/test-helpers/InsecureTargetMock.sol
  22. 2
      contracts/test-helpers/PullPaymentMock.sol
  23. 2
      contracts/test-helpers/SecureTargetMock.sol
  24. 2
      contracts/test-helpers/StandardTokenMock.sol
  25. 2
      contracts/test-helpers/StoppableMock.sol
  26. 2
      contracts/token/CrowdsaleToken.sol
  27. 2
      contracts/token/SimpleToken.sol
  28. 2
      test/TestOwnable.sol

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import './PullPayment.sol'; import './PullPayment.sol';
import './Killable.sol'; import './Killable.sol';

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
// see https://github.com/ethereum/EIPs/issues/20 // see https://github.com/ethereum/EIPs/issues/20

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

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
contract LimitFunds { contract LimitFunds {
uint LIMIT = 5000; uint LIMIT = 5000;

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
contract Migrations { contract Migrations {
address public owner; address public owner;
uint public last_completed_migration; uint public last_completed_migration;

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
/* /*
* Ownable * Ownable

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

@ -1,9 +0,0 @@
pragma solidity ^0.4.0;
/*
* Rejector
* Base contract for rejecting direct deposits.
* Fallback function throws immediately.
*/
contract Rejector {
function() { throw; }
}

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
/** /**
* Math operations with safety checks * Math operations with safety checks

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import './ERC20.sol'; import './ERC20.sol';
import './SafeMath.sol'; import './SafeMath.sol';

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

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
// UNSAFE CODE, DO NOT USE! // UNSAFE CODE, DO NOT USE!

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE! // UNSAFE CODE, DO NOT USE!
contract BadFailEarly { contract BadFailEarly {

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE! // UNSAFE CODE, DO NOT USE!
contract BadPushPayments { contract BadPushPayments {

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
contract GoodArrayUse is PullPayment { contract GoodArrayUse is PullPayment {

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
contract GoodFailEarly { contract GoodFailEarly {

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

@ -1,12 +1,10 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import "../Rejector.sol";
/* /*
* 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
*/ */
contract ProofOfExistence is Rejector { contract ProofOfExistence {
mapping (bytes32 => bool) public proofs; mapping (bytes32 => bool) public proofs;

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
import '../Stoppable.sol'; import '../Stoppable.sol';

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
contract InsecureTargetMock { contract InsecureTargetMock {
function checkInvariant() returns(bool){ function checkInvariant() returns(bool){

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../PullPayment.sol'; import '../PullPayment.sol';
// mock class using PullPayment // mock class using PullPayment

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
contract SecureTargetMock { contract SecureTargetMock {
function checkInvariant() returns(bool){ function checkInvariant() returns(bool){

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../StandardToken.sol'; import '../StandardToken.sol';
// mock class using StandardToken // mock class using StandardToken

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import '../Stoppable.sol'; import '../Stoppable.sol';
// mock class using Stoppable // mock class using Stoppable

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import "../StandardToken.sol"; import "../StandardToken.sol";

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import "../StandardToken.sol"; import "../StandardToken.sol";

@ -1,4 +1,4 @@
pragma solidity ^0.4.0; pragma solidity ^0.4.4;
import "truffle/Assert.sol"; import "truffle/Assert.sol";
import "truffle/DeployedAddresses.sol"; import "truffle/DeployedAddresses.sol";
import "../contracts/Ownable.sol"; import "../contracts/Ownable.sol";

Loading…
Cancel
Save