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
915109b2
Commit
915109b2
authored
Apr 19, 2021
by
Hadrien Croubois
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move UUPSUpgradeable to proxy/utils
(cherry picked from commit
b9125001
)
parent
2fa86736
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
4 deletions
+2
-4
TestInProd.sol
contracts/mocks/UUPS/TestInProd.sol
+1
-1
ERC1967Upgrade.sol
contracts/proxy/ERC1967/ERC1967Upgrade.sol
+1
-1
Initializable.sol
contracts/proxy/utils/Initializable.sol
+0
-2
UUPSUpgradeable.sol
contracts/proxy/utils/UUPSUpgradeable.sol
+0
-0
No files found.
contracts/mocks/UUPS/TestInProd.sol
View file @
915109b2
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
import "../CountersImpl.sol";
import "../CountersImpl.sol";
import "../../proxy/
UUPS
/UUPSUpgradeable.sol";
import "../../proxy/
utils
/UUPSUpgradeable.sol";
contract UUPSUpgradeableMock is CountersImpl, UUPSUpgradeable {
contract UUPSUpgradeableMock is CountersImpl, UUPSUpgradeable {
// Not having any checks in this function is dangerous! Do not do this outside tests!
// Not having any checks in this function is dangerous! Do not do this outside tests!
...
...
contracts/proxy/ERC1967/ERC1967Upgrade.sol
View file @
915109b2
// SPDX-License-Identifier: MIT
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.
3
;
pragma solidity ^0.8.
2
;
import "./ERC1967Storage.sol";
import "./ERC1967Storage.sol";
...
...
contracts/proxy/utils/Initializable.sol
View file @
915109b2
...
@@ -3,8 +3,6 @@
...
@@ -3,8 +3,6 @@
// solhint-disable-next-line compiler-version
// solhint-disable-next-line compiler-version
pragma solidity ^0.8.0;
pragma solidity ^0.8.0;
import "../../utils/Address.sol";
/**
/**
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
* behind a proxy. Since a proxied contract can't have a constructor, it's common to move constructor logic to an
...
...
contracts/proxy/
UUPS
/UUPSUpgradeable.sol
→
contracts/proxy/
utils
/UUPSUpgradeable.sol
View file @
915109b2
File moved
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