forked from OpenZeppelin/openzeppelin-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-v3.2.0' into release-v3.2.0-solc-0.7
- Loading branch information
Showing
70 changed files
with
2,327 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
timeout: 4000, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.6.0; | ||
|
||
|
||
/** | ||
* @dev Implementation contract with an admin() function made to clash with | ||
* @dev TransparentUpgradeableProxy's to test correct functioning of the | ||
* @dev Transparent Proxy feature. | ||
*/ | ||
contract ClashingImplementation { | ||
|
||
function admin() external pure returns (address) { | ||
return 0x0000000000000000000000000000000011111142; | ||
} | ||
|
||
function delegatedFunction() external pure returns (bool) { | ||
return true; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity ^0.6.0; | ||
|
||
abstract contract Impl { | ||
function version() public pure virtual returns (string memory); | ||
} | ||
|
||
contract DummyImplementation { | ||
uint256 public value; | ||
string public text; | ||
uint256[] public values; | ||
|
||
function initializeNonPayable() public { | ||
value = 10; | ||
} | ||
|
||
function initializePayable() payable public { | ||
value = 100; | ||
} | ||
|
||
function initializeNonPayable(uint256 _value) public { | ||
value = _value; | ||
} | ||
|
||
function initializePayable(uint256 _value) payable public { | ||
value = _value; | ||
} | ||
|
||
function initialize(uint256 _value, string memory _text, uint256[] memory _values) public { | ||
value = _value; | ||
text = _text; | ||
values = _values; | ||
} | ||
|
||
function get() public pure returns (bool) { | ||
return true; | ||
} | ||
|
||
function version() public pure virtual returns (string memory) { | ||
return "V1"; | ||
} | ||
|
||
function reverts() public pure { | ||
require(false); | ||
} | ||
} | ||
|
||
contract DummyImplementationV2 is DummyImplementation { | ||
function migrate(uint256 newVal) payable public { | ||
value = newVal; | ||
} | ||
|
||
function version() public pure override returns (string memory) { | ||
return "V2"; | ||
} | ||
} |
Oops, something went wrong.