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
fffa406a
Commit
fffa406a
authored
Oct 10, 2018
by
Nicolás Venturo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into peer-dep
parents
45747144
488c3de3
Show whitespace changes
Inline
Side-by-side
Showing
47 changed files
with
95 additions
and
1 deletions
+95
-1
CapperRole.sol
contracts/access/roles/CapperRole.sol
+2
-0
MinterRole.sol
contracts/access/roles/MinterRole.sol
+2
-0
PauserRole.sol
contracts/access/roles/PauserRole.sol
+2
-0
SignerRole.sol
contracts/access/roles/SignerRole.sol
+2
-0
Crowdsale.sol
contracts/crowdsale/Crowdsale.sol
+2
-0
FinalizableCrowdsale.sol
contracts/crowdsale/distribution/FinalizableCrowdsale.sol
+2
-0
PostDeliveryCrowdsale.sol
contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol
+2
-0
RefundableCrowdsale.sol
contracts/crowdsale/distribution/RefundableCrowdsale.sol
+2
-0
AllowanceCrowdsale.sol
contracts/crowdsale/emission/AllowanceCrowdsale.sol
+2
-0
MintedCrowdsale.sol
contracts/crowdsale/emission/MintedCrowdsale.sol
+2
-0
IncreasingPriceCrowdsale.sol
contracts/crowdsale/price/IncreasingPriceCrowdsale.sol
+2
-0
CappedCrowdsale.sol
contracts/crowdsale/validation/CappedCrowdsale.sol
+2
-0
IndividuallyCappedCrowdsale.sol
...acts/crowdsale/validation/IndividuallyCappedCrowdsale.sol
+2
-0
TimedCrowdsale.sol
contracts/crowdsale/validation/TimedCrowdsale.sol
+2
-0
TokenMetadata.sol
contracts/drafts/ERC1046/TokenMetadata.sol
+4
-0
ERC20Migrator.sol
contracts/drafts/ERC20Migrator.sol
+2
-0
SignatureBouncer.sol
contracts/drafts/SignatureBouncer.sol
+2
-0
TokenVesting.sol
contracts/drafts/TokenVesting.sol
+2
-0
SampleCrowdsale.sol
contracts/examples/SampleCrowdsale.sol
+4
-0
SimpleToken.sol
contracts/examples/SimpleToken.sol
+2
-0
ERC165.sol
contracts/introspection/ERC165.sol
+2
-0
Pausable.sol
contracts/lifecycle/Pausable.sol
+2
-0
Ownable.sol
contracts/ownership/Ownable.sol
+2
-0
Secondary.sol
contracts/ownership/Secondary.sol
+2
-0
ConditionalEscrow.sol
contracts/payment/ConditionalEscrow.sol
+2
-0
Escrow.sol
contracts/payment/Escrow.sol
+2
-0
PullPayment.sol
contracts/payment/PullPayment.sol
+2
-0
RefundEscrow.sol
contracts/payment/RefundEscrow.sol
+2
-0
SplitPayment.sol
contracts/payment/SplitPayment.sol
+2
-0
ERC20.sol
contracts/token/ERC20/ERC20.sol
+2
-0
ERC20Burnable.sol
contracts/token/ERC20/ERC20Burnable.sol
+2
-0
ERC20Capped.sol
contracts/token/ERC20/ERC20Capped.sol
+2
-0
ERC20Detailed.sol
contracts/token/ERC20/ERC20Detailed.sol
+2
-0
ERC20Mintable.sol
contracts/token/ERC20/ERC20Mintable.sol
+2
-0
ERC20Pausable.sol
contracts/token/ERC20/ERC20Pausable.sol
+2
-0
TokenTimelock.sol
contracts/token/ERC20/TokenTimelock.sol
+2
-0
ERC721.sol
contracts/token/ERC721/ERC721.sol
+2
-0
ERC721Burnable.sol
contracts/token/ERC721/ERC721Burnable.sol
+2
-0
ERC721Enumerable.sol
contracts/token/ERC721/ERC721Enumerable.sol
+2
-0
ERC721Full.sol
contracts/token/ERC721/ERC721Full.sol
+2
-0
ERC721Holder.sol
contracts/token/ERC721/ERC721Holder.sol
+2
-0
ERC721Metadata.sol
contracts/token/ERC721/ERC721Metadata.sol
+2
-0
ERC721MetadataMintable.sol
contracts/token/ERC721/ERC721MetadataMintable.sol
+2
-0
ERC721Mintable.sol
contracts/token/ERC721/ERC721Mintable.sol
+2
-0
ERC721Pausable.sol
contracts/token/ERC721/ERC721Pausable.sol
+2
-0
Address.sol
contracts/utils/Address.sol
+0
-1
ReentrancyGuard.sol
contracts/utils/ReentrancyGuard.sol
+1
-0
No files found.
contracts/access/roles/CapperRole.sol
View file @
fffa406a
...
...
@@ -44,4 +44,6 @@ contract CapperRole is Initializable {
cappers.remove(account);
emit CapperRemoved(account);
}
uint256[50] private ______gap;
}
contracts/access/roles/MinterRole.sol
View file @
fffa406a
...
...
@@ -44,4 +44,6 @@ contract MinterRole is Initializable {
minters.remove(account);
emit MinterRemoved(account);
}
uint256[50] private ______gap;
}
contracts/access/roles/PauserRole.sol
View file @
fffa406a
...
...
@@ -44,4 +44,6 @@ contract PauserRole is Initializable {
pausers.remove(account);
emit PauserRemoved(account);
}
uint256[50] private ______gap;
}
contracts/access/roles/SignerRole.sol
View file @
fffa406a
...
...
@@ -44,4 +44,6 @@ contract SignerRole is Initializable {
signers.remove(account);
emit SignerRemoved(account);
}
uint256[50] private ______gap;
}
contracts/crowdsale/Crowdsale.sol
View file @
fffa406a
...
...
@@ -232,4 +232,6 @@ contract Crowdsale is Initializable {
function _forwardFunds() internal {
_wallet.transfer(msg.value);
}
uint256[50] private ______gap;
}
contracts/crowdsale/distribution/FinalizableCrowdsale.sol
View file @
fffa406a
...
...
@@ -46,4 +46,6 @@ contract FinalizableCrowdsale is Initializable, TimedCrowdsale {
function _finalization() internal {
}
uint256[50] private ______gap;
}
contracts/crowdsale/distribution/PostDeliveryCrowdsale.sol
View file @
fffa406a
...
...
@@ -48,4 +48,6 @@ contract PostDeliveryCrowdsale is Initializable, TimedCrowdsale {
_balances[beneficiary] = _balances[beneficiary].add(tokenAmount);
}
uint256[50] private ______gap;
}
contracts/crowdsale/distribution/RefundableCrowdsale.sol
View file @
fffa406a
...
...
@@ -84,4 +84,6 @@ contract RefundableCrowdsale is Initializable, FinalizableCrowdsale {
_escrow.deposit.value(msg.value)(msg.sender);
}
uint256[50] private ______gap;
}
contracts/crowdsale/emission/AllowanceCrowdsale.sol
View file @
fffa406a
...
...
@@ -54,4 +54,6 @@ contract AllowanceCrowdsale is Initializable, Crowdsale {
{
token().safeTransferFrom(_tokenWallet, beneficiary, tokenAmount);
}
uint256[50] private ______gap;
}
contracts/crowdsale/emission/MintedCrowdsale.sol
View file @
fffa406a
...
...
@@ -27,4 +27,6 @@ contract MintedCrowdsale is Initializable, Crowdsale {
require(
ERC20Mintable(address(token())).mint(beneficiary, tokenAmount));
}
uint256[50] private ______gap;
}
contracts/crowdsale/price/IncreasingPriceCrowdsale.sol
View file @
fffa406a
...
...
@@ -68,4 +68,6 @@ contract IncreasingPriceCrowdsale is Initializable, TimedCrowdsale {
return currentRate.mul(weiAmount);
}
uint256[50] private ______gap;
}
contracts/crowdsale/validation/CappedCrowdsale.sol
View file @
fffa406a
...
...
@@ -53,4 +53,6 @@ contract CappedCrowdsale is Initializable, Crowdsale {
require(weiRaised().add(weiAmount) <= _cap);
}
uint256[50] private ______gap;
}
contracts/crowdsale/validation/IndividuallyCappedCrowdsale.sol
View file @
fffa406a
...
...
@@ -81,4 +81,6 @@ contract IndividuallyCappedCrowdsale is Initializable, Crowdsale, CapperRole {
weiAmount);
}
uint256[50] private ______gap;
}
contracts/crowdsale/validation/TimedCrowdsale.sol
View file @
fffa406a
...
...
@@ -83,4 +83,6 @@ contract TimedCrowdsale is Initializable, Crowdsale {
super._preValidatePurchase(beneficiary, weiAmount);
}
uint256[50] private ______gap;
}
contracts/drafts/ERC1046/TokenMetadata.sol
View file @
fffa406a
...
...
@@ -12,6 +12,8 @@ import "../../token/ERC20/IERC20.sol";
*/
contract ERC20TokenMetadata is Initializable, IERC20 {
function tokenURI() external view returns (string);
uint256[50] private ______gap;
}
...
...
@@ -28,4 +30,6 @@ contract ERC20WithMetadata is Initializable, ERC20TokenMetadata {
function tokenURI() external view returns (string) {
return _tokenURI;
}
uint256[50] private ______gap;
}
contracts/drafts/ERC20Migrator.sol
View file @
fffa406a
...
...
@@ -99,4 +99,6 @@ contract ERC20Migrator is Initializable {
uint256 amount = Math.min(balance, allowance);
migrate(account, amount);
}
uint256[50] private ______gap;
}
contracts/drafts/SignatureBouncer.sol
View file @
fffa406a
...
...
@@ -140,4 +140,6 @@ contract SignatureBouncer is Initializable, SignerRole {
return signer != address(0) && isSigner(signer);
}
uint256[50] private ______gap;
}
contracts/drafts/TokenVesting.sol
View file @
fffa406a
...
...
@@ -176,4 +176,6 @@ contract TokenVesting is Initializable, Ownable {
return totalBalance.mul(block.timestamp.sub(_start)).div(_duration);
}
}
uint256[50] private ______gap;
}
contracts/examples/SampleCrowdsale.sol
View file @
fffa406a
...
...
@@ -25,6 +25,8 @@ contract SampleCrowdsaleToken is Initializable, ERC20Mintable {
symbol = "SCT";
decimals = 18;
}
uint256[50] private ______gap;
}
...
...
@@ -67,4 +69,6 @@ contract SampleCrowdsale is Initializable, Crowdsale, CappedCrowdsale, Refundabl
//the value needs to less or equal than a cap which is limit for accepted funds
require(goal <= cap);
}
uint256[50] private ______gap;
}
contracts/examples/SimpleToken.sol
View file @
fffa406a
...
...
@@ -26,4 +26,6 @@ contract SimpleToken is Initializable, ERC20 {
_mint(sender, INITIAL_SUPPLY);
}
uint256[50] private ______gap;
}
contracts/introspection/ERC165.sol
View file @
fffa406a
...
...
@@ -53,4 +53,6 @@ contract ERC165 is Initializable, IERC165 {
require(interfaceId != 0xffffffff);
_supportedInterfaces[interfaceId] = true;
}
uint256[50] private ______gap;
}
contracts/lifecycle/Pausable.sol
View file @
fffa406a
...
...
@@ -56,4 +56,6 @@ contract Pausable is Initializable, PauserRole {
_paused = false;
emit Unpaused();
}
uint256[50] private ______gap;
}
contracts/ownership/Ownable.sol
View file @
fffa406a
...
...
@@ -76,4 +76,6 @@ contract Ownable is Initializable {
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
uint256[50] private ______gap;
}
contracts/ownership/Secondary.sol
View file @
fffa406a
...
...
@@ -33,4 +33,6 @@ contract Secondary is Initializable {
_primary = recipient;
}
uint256[50] private ______gap;
}
contracts/payment/ConditionalEscrow.sol
View file @
fffa406a
...
...
@@ -24,4 +24,6 @@ contract ConditionalEscrow is Initializable, Escrow {
require(withdrawalAllowed(payee));
super.withdraw(payee);
}
uint256[50] private ______gap;
}
contracts/payment/Escrow.sol
View file @
fffa406a
...
...
@@ -52,4 +52,6 @@ contract Escrow is Initializable, Secondary {
emit Withdrawn(payee, payment);
}
uint256[50] private ______gap;
}
contracts/payment/PullPayment.sol
View file @
fffa406a
...
...
@@ -44,4 +44,6 @@ contract PullPayment is Initializable {
function _asyncTransfer(address dest, uint256 amount) internal {
_escrow.deposit.value(amount)(dest);
}
uint256[50] private ______gap;
}
contracts/payment/RefundEscrow.sol
View file @
fffa406a
...
...
@@ -87,4 +87,6 @@ contract RefundEscrow is Initializable, ConditionalEscrow {
function withdrawalAllowed(address payee) public view returns (bool) {
return _state == State.Refunding;
}
uint256[50] private ______gap;
}
contracts/payment/SplitPayment.sol
View file @
fffa406a
...
...
@@ -107,4 +107,6 @@ contract SplitPayment is Initializable {
_shares[account] = shares_;
_totalShares = _totalShares.add(shares_);
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20.sol
View file @
fffa406a
...
...
@@ -210,4 +210,6 @@ contract ERC20 is Initializable, IERC20 {
amount);
_burn(account, amount);
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20Burnable.sol
View file @
fffa406a
...
...
@@ -26,4 +26,6 @@ contract ERC20Burnable is Initializable, ERC20 {
function burnFrom(address from, uint256 value) public {
_burnFrom(from, value);
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20Capped.sol
View file @
fffa406a
...
...
@@ -47,4 +47,6 @@ contract ERC20Capped is Initializable, ERC20Mintable {
return super.mint(to, amount);
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20Detailed.sol
View file @
fffa406a
...
...
@@ -41,4 +41,6 @@ contract ERC20Detailed is Initializable, IERC20 {
function decimals() public view returns(uint8) {
return _decimals;
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20Mintable.sol
View file @
fffa406a
...
...
@@ -31,4 +31,6 @@ contract ERC20Mintable is Initializable, ERC20, MinterRole {
_mint(to, amount);
return true;
}
uint256[50] private ______gap;
}
contracts/token/ERC20/ERC20Pausable.sol
View file @
fffa406a
...
...
@@ -70,4 +70,6 @@ contract ERC20Pausable is Initializable, ERC20, Pausable {
{
return super.decreaseAllowance(spender, subtractedValue);
}
uint256[50] private ______gap;
}
contracts/token/ERC20/TokenTimelock.sol
View file @
fffa406a
...
...
@@ -69,4 +69,6 @@ contract TokenTimelock is Initializable {
_token.safeTransfer(_beneficiary, amount);
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721.sol
View file @
fffa406a
...
...
@@ -327,4 +327,6 @@ contract ERC721 is Initializable, ERC165, IERC721 {
msg.sender, from, tokenId, _data);
return (retval == _ERC721_RECEIVED);
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Burnable.sol
View file @
fffa406a
...
...
@@ -15,4 +15,6 @@ contract ERC721Burnable is Initializable, ERC721 {
require(_isApprovedOrOwner(msg.sender, tokenId));
_burn(ownerOf(tokenId), tokenId);
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Enumerable.sol
View file @
fffa406a
...
...
@@ -147,4 +147,6 @@ contract ERC721Enumerable is Initializable, ERC165, ERC721, IERC721Enumerable {
_allTokensIndex[tokenId] = 0;
_allTokensIndex[lastToken] = tokenIndex;
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Full.sol
View file @
fffa406a
...
...
@@ -21,4 +21,6 @@ contract ERC721Full is Initializable, ERC721, ERC721Enumerable, ERC721Metadata {
ERC721Enumerable.initialize();
ERC721Metadata.initialize(name, symbol);
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Holder.sol
View file @
fffa406a
...
...
@@ -16,4 +16,6 @@ contract ERC721Holder is Initializable, IERC721Receiver {
{
return this.onERC721Received.selector;
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Metadata.sol
View file @
fffa406a
...
...
@@ -89,4 +89,6 @@ contract ERC721Metadata is Initializable, ERC165, ERC721, IERC721Metadata {
delete _tokenURIs[tokenId];
}
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721MetadataMintable.sol
View file @
fffa406a
...
...
@@ -35,4 +35,6 @@ contract ERC721MetadataMintable is Initializable, ERC721, ERC721Metadata, Minter
_setTokenURI(tokenId, tokenURI);
return true;
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Mintable.sol
View file @
fffa406a
...
...
@@ -32,4 +32,6 @@ contract ERC721Mintable is Initializable, ERC721, MinterRole {
_mint(to, tokenId);
return true;
}
uint256[50] private ______gap;
}
contracts/token/ERC721/ERC721Pausable.sol
View file @
fffa406a
...
...
@@ -45,4 +45,6 @@ contract ERC721Pausable is Initializable, ERC721, Pausable {
{
super.transferFrom(from, to, tokenId);
}
uint256[50] private ______gap;
}
contracts/utils/Address.sol
View file @
fffa406a
...
...
@@ -25,5 +25,4 @@ library Address {
assembly { size := extcodesize(account) }
return size > 0;
}
}
contracts/utils/ReentrancyGuard.sol
View file @
fffa406a
...
...
@@ -32,4 +32,5 @@ contract ReentrancyGuard is Initializable {
require(localCounter == _guardCounter);
}
uint256[50] private ______gap;
}
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