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
5ffedf46
Commit
5ffedf46
authored
Mar 11, 2022
by
github-actions
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Transpile
276d7232
parent
1e5e9b0f
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
21 additions
and
3 deletions
+21
-3
VestingWalletUpgradeable.sol
contracts/finance/VestingWalletUpgradeable.sol
+2
-0
GovernorVotesCompUpgradeable.sol
...ts/governance/extensions/GovernorVotesCompUpgradeable.sol
+2
-0
GovernorVotesUpgradeable.sol
contracts/governance/extensions/GovernorVotesUpgradeable.sol
+2
-0
ERC20DecimalsMockUpgradeable.sol
contracts/mocks/ERC20DecimalsMockUpgradeable.sol
+1
-1
ERC3156FlashBorrowerMockUpgradeable.sol
contracts/mocks/ERC3156FlashBorrowerMockUpgradeable.sol
+1
-1
ERC721ReceiverMockUpgradeable.sol
contracts/mocks/ERC721ReceiverMockUpgradeable.sol
+1
-1
PullPaymentUpgradeable.sol
contracts/security/PullPaymentUpgradeable.sol
+2
-0
ERC20CappedUpgradeable.sol
contracts/token/ERC20/extensions/ERC20CappedUpgradeable.sol
+2
-0
ERC20WrapperUpgradeable.sol
contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol
+2
-0
draft-ERC20PermitUpgradeable.sol
...s/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol
+2
-0
TokenTimelockUpgradeable.sol
contracts/token/ERC20/utils/TokenTimelockUpgradeable.sol
+2
-0
draft-EIP712Upgradeable.sol
contracts/utils/cryptography/draft-EIP712Upgradeable.sol
+2
-0
No files found.
contracts/finance/VestingWalletUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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);
...
...
contracts/governance/extensions/GovernorVotesCompUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/governance/extensions/GovernorVotesUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/mocks/ERC20DecimalsMockUpgradeable.sol
View file @
5ffedf46
...
...
@@ -34,5 +34,5 @@ contract ERC20DecimalsMockUpgradeable is Initializable, ERC20Upgradeable {
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
50
] private __gap;
uint256[
49
] private __gap;
}
contracts/mocks/ERC3156FlashBorrowerMockUpgradeable.sol
View file @
5ffedf46
...
...
@@ -61,5 +61,5 @@ contract ERC3156FlashBorrowerMockUpgradeable is Initializable, IERC3156FlashBorr
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
50
] private __gap;
uint256[
49
] private __gap;
}
contracts/mocks/ERC721ReceiverMockUpgradeable.sol
View file @
5ffedf46
...
...
@@ -50,5 +50,5 @@ contract ERC721ReceiverMockUpgradeable is Initializable, IERC721ReceiverUpgradea
* variables without shifting down storage in the inheritance chain.
* See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps
*/
uint256[
50
] private __gap;
uint256[
49
] private __gap;
}
contracts/security/PullPaymentUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/token/ERC20/extensions/ERC20CappedUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/token/ERC20/extensions/ERC20WrapperUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/token/ERC20/extensions/draft-ERC20PermitUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/token/ERC20/utils/TokenTimelockUpgradeable.sol
View file @
5ffedf46
...
...
@@ -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;
...
...
contracts/utils/cryptography/draft-EIP712Upgradeable.sol
View file @
5ffedf46
...
...
@@ -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 */
...
...
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