Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
openzeppelin-contracts-upgradeable
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
openzeppelin-contracts-upgradeable
Commits
25d0ed00
Unverified
Commit
25d0ed00
authored
Oct 12, 2016
by
Michael J. Curry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes for solidity 0.4
parent
570d6cb9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
13 additions
and
4 deletions
+13
-4
Bounty.sol
contracts/Bounty.sol
+1
-0
ERC20.sol
contracts/ERC20.sol
+1
-0
Killable.sol
contracts/Killable.sol
+1
-0
Migrations.sol
contracts/Migrations.sol
+2
-1
Ownable.sol
contracts/Ownable.sol
+2
-1
PullPayment.sol
contracts/PullPayment.sol
+1
-0
Rejector.sol
contracts/Rejector.sol
+1
-0
Stoppable.sol
contracts/Stoppable.sol
+3
-2
Token.sol
contracts/Token.sol
+1
-0
No files found.
contracts/Bounty.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
import './PullPaymentCapable.sol';
import './Token.sol';
...
...
contracts/ERC20.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
contract ERC20 {
function totalSupply() constant returns (uint);
function balanceOf(address who) constant returns (uint);
...
...
contracts/Killable.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
import "./Ownable.sol";
/*
...
...
contracts/Migrations.sol
View file @
25d0ed00
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() {
...
...
contracts/Ownable.sol
View file @
25d0ed00
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 {
...
...
contracts/PullPayment.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
/*
* PullPaymentCapable
* Base contract supporting async send for pull payments.
...
...
contracts/Rejector.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
/*
* Rejector
* Base contract for rejecting direct deposits.
...
...
contracts/Stoppable.sol
View file @
25d0ed00
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;
...
...
contracts/Token.sol
View file @
25d0ed00
pragma solidity ^0.4.0;
// Source: https://github.com/nexusdev/erc20
// Flat file implementation of `dappsys/token/base.sol::DSTokenBase`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment