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
d3894106
Commit
d3894106
authored
Dec 19, 2016
by
Manuel Aráoz
Committed by
GitHub
Dec 19, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #114 from maraoz/2-lines
add 2 lines between top level definitions
parents
5567e737
f79ad4e2
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
51 additions
and
5 deletions
+51
-5
Claimable.sol
contracts/Claimable.sol
+0
-1
LimitBalance.sol
contracts/LimitBalance.sol
+9
-0
Migrations.sol
contracts/Migrations.sol
+3
-0
BadArrayUse.sol
contracts/examples/BadArrayUse.sol
+3
-1
BadFailEarly.sol
contracts/examples/BadFailEarly.sol
+2
-1
BadPushPayments.sol
contracts/examples/BadPushPayments.sol
+2
-1
GoodArrayUse.sol
contracts/examples/GoodArrayUse.sol
+3
-0
GoodFailEarly.sol
contracts/examples/GoodFailEarly.sol
+1
-0
GoodPullPayments.sol
contracts/examples/GoodPullPayments.sol
+2
-0
ProofOfExistence.sol
contracts/examples/ProofOfExistence.sol
+1
-0
PullPaymentBid.sol
contracts/examples/PullPaymentBid.sol
+2
-0
StoppableBid.sol
contracts/examples/StoppableBid.sol
+2
-0
BasicTokenMock.sol
contracts/test-helpers/BasicTokenMock.sol
+3
-0
LimitBalanceMock.sol
contracts/test-helpers/LimitBalanceMock.sol
+3
-0
PullPaymentMock.sol
contracts/test-helpers/PullPaymentMock.sol
+3
-0
SafeMathMock.sol
contracts/test-helpers/SafeMathMock.sol
+3
-0
StandardTokenMock.sol
contracts/test-helpers/StandardTokenMock.sol
+3
-0
StoppableMock.sol
contracts/test-helpers/StoppableMock.sol
+3
-0
StandardToken.sol
contracts/token/StandardToken.sol
+3
-1
No files found.
contracts/Claimable.sol
View file @
d3894106
pragma solidity ^0.4.0;
import './Ownable.sol';
...
...
contracts/LimitBalance.sol
View file @
d3894106
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;
...
...
contracts/Migrations.sol
View file @
d3894106
pragma solidity ^0.4.4;
import './Ownable.sol';
contract Migrations is Ownable {
uint public lastCompletedMigration;
...
...
contracts/examples/BadArrayUse.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../PullPayment.sol';
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadArrayUse is PullPayment {
address[] employees;
...
...
contracts/examples/BadFailEarly.sol
View file @
d3894106
pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadFailEarly {
uint constant DEFAULT_SALARY = 50000;
...
...
contracts/examples/BadPushPayments.sol
View file @
d3894106
pragma solidity ^0.4.4;
// UNSAFE CODE, DO NOT USE!
// UNSAFE CODE, DO NOT USE!
contract BadPushPayments {
address highestBidder;
...
...
contracts/examples/GoodArrayUse.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../PullPayment.sol';
contract GoodArrayUse is PullPayment {
address[] employees;
mapping(address => uint) bonuses;
...
...
contracts/examples/GoodFailEarly.sol
View file @
d3894106
pragma solidity ^0.4.4;
contract GoodFailEarly {
uint constant DEFAULT_SALARY = 50000;
...
...
contracts/examples/GoodPullPayments.sol
View file @
d3894106
pragma solidity ^0.4.4;
contract GoodPullPayments {
address highestBidder;
uint highestBid;
...
...
contracts/examples/ProofOfExistence.sol
View file @
d3894106
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
...
...
contracts/examples/PullPaymentBid.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../PullPayment.sol';
contract PullPaymentBid is PullPayment {
address public highestBidder;
uint public highestBid;
...
...
contracts/examples/StoppableBid.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../PullPayment.sol';
import '../Stoppable.sol';
contract StoppableBid is Stoppable, PullPayment {
address public highestBidder;
uint public highestBid;
...
...
contracts/test-helpers/BasicTokenMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../token/BasicToken.sol';
// mock class using BasicToken
contract BasicTokenMock is BasicToken {
...
...
contracts/test-helpers/LimitBalanceMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../LimitBalance.sol';
// mock class using LimitBalance
contract LimitBalanceMock is LimitBalance(1000) {
...
...
contracts/test-helpers/PullPaymentMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../PullPayment.sol';
// mock class using PullPayment
contract PullPaymentMock is PullPayment {
...
...
contracts/test-helpers/SafeMathMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../SafeMath.sol';
contract SafeMathMock is SafeMath {
uint public result;
...
...
contracts/test-helpers/StandardTokenMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../token/StandardToken.sol';
// mock class using StandardToken
contract StandardTokenMock is StandardToken {
...
...
contracts/test-helpers/StoppableMock.sol
View file @
d3894106
pragma solidity ^0.4.4;
import '../Stoppable.sol';
// mock class using Stoppable
contract StoppableMock is Stoppable {
bool public drasticMeasureTaken;
...
...
contracts/token/StandardToken.sol
View file @
d3894106
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:
...
...
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