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
772f10d7
Commit
772f10d7
authored
Mar 11, 2022
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
02d96cc9
parent
f668ffb1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
9 deletions
+27
-9
VestingWalletUpgradeable.sol
contracts/finance/VestingWalletUpgradeable.sol
+3
-1
GovernorVotesCompUpgradeable.sol
...ts/governance/extensions/GovernorVotesCompUpgradeable.sol
+3
-1
GovernorVotesUpgradeable.sol
contracts/governance/extensions/GovernorVotesUpgradeable.sol
+3
-1
PullPaymentUpgradeable.sol
contracts/security/PullPaymentUpgradeable.sol
+3
-1
ERC20CappedUpgradeable.sol
contracts/token/ERC20/extensions/ERC20CappedUpgradeable.sol
+3
-1
ERC20WrapperUpgradeable.sol
contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol
+3
-1
draft-ERC20PermitUpgradeable.sol
...s/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol
+3
-1
TokenTimelockUpgradeable.sol
contracts/token/ERC20/utils/TokenTimelockUpgradeable.sol
+3
-1
draft-EIP712Upgradeable.sol
contracts/utils/cryptography/draft-EIP712Upgradeable.sol
+3
-1
No files found.
contracts/finance/VestingWalletUpgradeable.sol
View file @
772f10d7
...
...
@@ -17,6 +17,8 @@ import "../proxy/utils/Initializable.sol";
* Any token transferred to this contract will follow the vesting schedule as if they were locked from the beginning.
* Consequently, if the vesting has already started, any amount of tokens sent to this contract will (at least partly)
* be immediately releasable.
*
* @custom:storage-size 52
*/
contract VestingWalletUpgradeable is Initializable, ContextUpgradeable {
event EtherReleased(uint256 amount);
...
...
@@ -147,5 +149,5 @@ contract VestingWalletUpgradeable is Initializable, ContextUpgradeable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[4
6
] private __gap;
uint256[4
8
] private __gap;
}
contracts/governance/extensions/GovernorVotesCompUpgradeable.sol
View file @
772f10d7
...
...
@@ -11,6 +11,8 @@ import "../../proxy/utils/Initializable.sol";
* @dev Extension of {Governor} for voting weight extraction from a Comp token.
*
* _Available since v4.3._
*
* @custom:storage-size 51
*/
abstract contract GovernorVotesCompUpgradeable is Initializable, GovernorUpgradeable {
ERC20VotesCompUpgradeable public token;
...
...
@@ -39,5 +41,5 @@ abstract contract GovernorVotesCompUpgradeable is Initializable, GovernorUpgrade
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
49
] private __gap;
uint256[
50
] private __gap;
}
contracts/governance/extensions/GovernorVotesUpgradeable.sol
View file @
772f10d7
...
...
@@ -11,6 +11,8 @@ import "../../proxy/utils/Initializable.sol";
* @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes} token.
*
* _Available since v4.3._
*
* @custom:storage-size 51
*/
abstract contract GovernorVotesUpgradeable is Initializable, GovernorUpgradeable {
IVotesUpgradeable public token;
...
...
@@ -39,5 +41,5 @@ abstract contract GovernorVotesUpgradeable is Initializable, GovernorUpgradeable
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
49
] private __gap;
uint256[
50
] private __gap;
}
contracts/security/PullPaymentUpgradeable.sol
View file @
772f10d7
...
...
@@ -23,6 +23,8 @@ import "../proxy/utils/Initializable.sol";
* To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
* instead of Solidity's `transfer` function. Payees can query their due
* payments with {payments}, and retrieve them with {withdrawPayments}.
*
* @custom:storage-size 51
*/
abstract contract PullPaymentUpgradeable is Initializable {
EscrowUpgradeable private _escrow;
...
...
@@ -79,5 +81,5 @@ abstract contract PullPaymentUpgradeable is Initializable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
49
] private __gap;
uint256[
50
] private __gap;
}
contracts/token/ERC20/extensions/ERC20CappedUpgradeable.sol
View file @
772f10d7
...
...
@@ -8,6 +8,8 @@ import "../../../proxy/utils/Initializable.sol";
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*
* @custom:storage-size 51
*/
abstract contract ERC20CappedUpgradeable is Initializable, ERC20Upgradeable {
uint256 private _cap;
...
...
@@ -45,5 +47,5 @@ abstract contract ERC20CappedUpgradeable is Initializable, ERC20Upgradeable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
49
] private __gap;
uint256[
50
] private __gap;
}
contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol
View file @
772f10d7
...
...
@@ -15,6 +15,8 @@ import "../../../proxy/utils/Initializable.sol";
* wrapping of an existing "basic" ERC20 into a governance token.
*
* _Available since v4.2._
*
* @custom:storage-size 51
*/
abstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {
IERC20Upgradeable public underlying;
...
...
@@ -60,5 +62,5 @@ abstract contract ERC20WrapperUpgradeable is Initializable, ERC20Upgradeable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
49
] private __gap;
uint256[
50
] private __gap;
}
contracts/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol
View file @
772f10d7
...
...
@@ -19,6 +19,8 @@ import "../../../proxy/utils/Initializable.sol";
* need to send a transaction, and thus is not required to hold Ether at all.
*
* _Available since v3.4._
*
* @custom:storage-size 51
*/
abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IERC20PermitUpgradeable, EIP712Upgradeable {
using CountersUpgradeable for CountersUpgradeable.Counter;
...
...
@@ -103,5 +105,5 @@ abstract contract ERC20PermitUpgradeable is Initializable, ERC20Upgradeable, IER
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[4
8
] private __gap;
uint256[4
9
] private __gap;
}
contracts/token/ERC20/utils/TokenTimelockUpgradeable.sol
View file @
772f10d7
...
...
@@ -12,6 +12,8 @@ import "../../../proxy/utils/Initializable.sol";
*
* Useful for simple vesting schedules like "advisors get all of their tokens
* after 1 year".
*
* @custom:storage-size 53
*/
contract TokenTimelockUpgradeable is Initializable {
using SafeERC20Upgradeable for IERC20Upgradeable;
...
...
@@ -88,5 +90,5 @@ contract TokenTimelockUpgradeable is Initializable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
47
] private __gap;
uint256[
50
] private __gap;
}
contracts/utils/cryptography/draft-EIP712Upgradeable.sol
View file @
772f10d7
...
...
@@ -24,6 +24,8 @@ import "../../proxy/utils/Initializable.sol";
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* _Available since v3.4._
*
* @custom:storage-size 52
*/
abstract contract EIP712Upgradeable is Initializable {
/* solhint-disable var-name-mixedcase */
...
...
@@ -115,5 +117,5 @@ abstract contract EIP712Upgradeable is Initializable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
48
] private __gap;
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