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
276d7232
Commit
276d7232
authored
Mar 11, 2022
by
Hadrien Croubois
Committed by
Francisco Giordano
Mar 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Override contract size in preparation for new transpilation workflow (#150)
(cherry picked from commit
2e82601e
)
parent
71f38e93
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
18 additions
and
0 deletions
+18
-0
VestingWallet.sol
contracts/finance/VestingWallet.sol
+2
-0
GovernorVotes.sol
contracts/governance/extensions/GovernorVotes.sol
+2
-0
GovernorVotesComp.sol
contracts/governance/extensions/GovernorVotesComp.sol
+2
-0
PullPayment.sol
contracts/security/PullPayment.sol
+2
-0
ERC20Capped.sol
contracts/token/ERC20/extensions/ERC20Capped.sol
+2
-0
ERC20Wrapper.sol
contracts/token/ERC20/extensions/ERC20Wrapper.sol
+2
-0
draft-ERC20Permit.sol
contracts/token/ERC20/extensions/draft-ERC20Permit.sol
+2
-0
TokenTimelock.sol
contracts/token/ERC20/utils/TokenTimelock.sol
+2
-0
draft-EIP712.sol
contracts/utils/cryptography/draft-EIP712.sol
+2
-0
No files found.
contracts/finance/VestingWallet.sol
View file @
276d7232
...
@@ -16,6 +16,8 @@ import "../utils/math/Math.sol";
...
@@ -16,6 +16,8 @@ import "../utils/math/Math.sol";
* Any token transferred to this contract will follow the vesting schedule as if they were locked from the beginning.
* 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)
* Consequently, if the vesting has already started, any amount of tokens sent to this contract will (at least partly)
* be immediately releasable.
* be immediately releasable.
*
* @custom:storage-size 52
*/
*/
contract VestingWallet is Context {
contract VestingWallet is Context {
event EtherReleased(uint256 amount);
event EtherReleased(uint256 amount);
...
...
contracts/governance/extensions/GovernorVotes.sol
View file @
276d7232
...
@@ -10,6 +10,8 @@ import "../utils/IVotes.sol";
...
@@ -10,6 +10,8 @@ import "../utils/IVotes.sol";
* @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes} token.
* @dev Extension of {Governor} for voting weight extraction from an {ERC20Votes} token, or since v4.5 an {ERC721Votes} token.
*
*
* _Available since v4.3._
* _Available since v4.3._
*
* @custom:storage-size 51
*/
*/
abstract contract GovernorVotes is Governor {
abstract contract GovernorVotes is Governor {
IVotes public immutable token;
IVotes public immutable token;
...
...
contracts/governance/extensions/GovernorVotesComp.sol
View file @
276d7232
...
@@ -10,6 +10,8 @@ import "../../token/ERC20/extensions/ERC20VotesComp.sol";
...
@@ -10,6 +10,8 @@ import "../../token/ERC20/extensions/ERC20VotesComp.sol";
* @dev Extension of {Governor} for voting weight extraction from a Comp token.
* @dev Extension of {Governor} for voting weight extraction from a Comp token.
*
*
* _Available since v4.3._
* _Available since v4.3._
*
* @custom:storage-size 51
*/
*/
abstract contract GovernorVotesComp is Governor {
abstract contract GovernorVotesComp is Governor {
ERC20VotesComp public immutable token;
ERC20VotesComp public immutable token;
...
...
contracts/security/PullPayment.sol
View file @
276d7232
...
@@ -22,6 +22,8 @@ import "../utils/escrow/Escrow.sol";
...
@@ -22,6 +22,8 @@ import "../utils/escrow/Escrow.sol";
* To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
* To use, derive from the `PullPayment` contract, and use {_asyncTransfer}
* instead of Solidity's `transfer` function. Payees can query their due
* instead of Solidity's `transfer` function. Payees can query their due
* payments with {payments}, and retrieve them with {withdrawPayments}.
* payments with {payments}, and retrieve them with {withdrawPayments}.
*
* @custom:storage-size 51
*/
*/
abstract contract PullPayment {
abstract contract PullPayment {
Escrow private immutable _escrow;
Escrow private immutable _escrow;
...
...
contracts/token/ERC20/extensions/ERC20Capped.sol
View file @
276d7232
...
@@ -7,6 +7,8 @@ import "../ERC20.sol";
...
@@ -7,6 +7,8 @@ import "../ERC20.sol";
/**
/**
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
* @dev Extension of {ERC20} that adds a cap to the supply of tokens.
*
* @custom:storage-size 51
*/
*/
abstract contract ERC20Capped is ERC20 {
abstract contract ERC20Capped is ERC20 {
uint256 private immutable _cap;
uint256 private immutable _cap;
...
...
contracts/token/ERC20/extensions/ERC20Wrapper.sol
View file @
276d7232
...
@@ -14,6 +14,8 @@ import "../utils/SafeERC20.sol";
...
@@ -14,6 +14,8 @@ import "../utils/SafeERC20.sol";
* wrapping of an existing "basic" ERC20 into a governance token.
* wrapping of an existing "basic" ERC20 into a governance token.
*
*
* _Available since v4.2._
* _Available since v4.2._
*
* @custom:storage-size 51
*/
*/
abstract contract ERC20Wrapper is ERC20 {
abstract contract ERC20Wrapper is ERC20 {
IERC20 public immutable underlying;
IERC20 public immutable underlying;
...
...
contracts/token/ERC20/extensions/draft-ERC20Permit.sol
View file @
276d7232
...
@@ -18,6 +18,8 @@ import "../../../utils/Counters.sol";
...
@@ -18,6 +18,8 @@ import "../../../utils/Counters.sol";
* need to send a transaction, and thus is not required to hold Ether at all.
* need to send a transaction, and thus is not required to hold Ether at all.
*
*
* _Available since v3.4._
* _Available since v3.4._
*
* @custom:storage-size 51
*/
*/
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
abstract contract ERC20Permit is ERC20, IERC20Permit, EIP712 {
using Counters for Counters.Counter;
using Counters for Counters.Counter;
...
...
contracts/token/ERC20/utils/TokenTimelock.sol
View file @
276d7232
...
@@ -11,6 +11,8 @@ import "./SafeERC20.sol";
...
@@ -11,6 +11,8 @@ import "./SafeERC20.sol";
*
*
* Useful for simple vesting schedules like "advisors get all of their tokens
* Useful for simple vesting schedules like "advisors get all of their tokens
* after 1 year".
* after 1 year".
*
* @custom:storage-size 53
*/
*/
contract TokenTimelock {
contract TokenTimelock {
using SafeERC20 for IERC20;
using SafeERC20 for IERC20;
...
...
contracts/utils/cryptography/draft-EIP712.sol
View file @
276d7232
...
@@ -23,6 +23,8 @@ import "./ECDSA.sol";
...
@@ -23,6 +23,8 @@ import "./ECDSA.sol";
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
*
* _Available since v3.4._
* _Available since v3.4._
*
* @custom:storage-size 52
*/
*/
abstract contract EIP712 {
abstract contract EIP712 {
/* solhint-disable var-name-mixedcase */
/* 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