|
@@ -1,6 +1,6 @@
|
|
diff -ruN access/AccessControl.sol access/AccessControl.sol
|
|
diff -ruN access/AccessControl.sol access/AccessControl.sol
|
|
--- access/AccessControl.sol 2022-05-25 15:36:58.849363940 -0400
|
|
--- access/AccessControl.sol 2022-05-25 15:36:58.849363940 -0400
|
|
-+++ access/AccessControl.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ access/AccessControl.sol 2022-05-25 16:07:31.897814961 -0400
|
|
@@ -93,7 +93,7 @@
|
|
@@ -93,7 +93,7 @@
|
|
*
|
|
*
|
|
* _Available since v4.6._
|
|
* _Available since v4.6._
|
|
@@ -12,13 +12,13 @@ diff -ruN access/AccessControl.sol access/AccessControl.sol
|
|
|
|
|
|
diff -ruN .gitignore .gitignore
|
|
diff -ruN .gitignore .gitignore
|
|
--- .gitignore 1969-12-31 19:00:00.000000000 -0500
|
|
--- .gitignore 1969-12-31 19:00:00.000000000 -0500
|
|
-+++ .gitignore 2022-05-25 16:07:01.911145854 -0400
|
|
|
|
|
|
++++ .gitignore 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -0,0 +1,2 @@
|
|
@@ -0,0 +1,2 @@
|
|
+*
|
|
+*
|
|
+!.gitignore
|
|
+!.gitignore
|
|
diff -ruN governance/extensions/GovernorPreventLateQuorum.sol governance/extensions/GovernorPreventLateQuorum.sol
|
|
diff -ruN governance/extensions/GovernorPreventLateQuorum.sol governance/extensions/GovernorPreventLateQuorum.sol
|
|
--- governance/extensions/GovernorPreventLateQuorum.sol 2022-05-25 15:36:58.849363940 -0400
|
|
--- governance/extensions/GovernorPreventLateQuorum.sol 2022-05-25 15:36:58.849363940 -0400
|
|
-+++ governance/extensions/GovernorPreventLateQuorum.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ governance/extensions/GovernorPreventLateQuorum.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -21,8 +21,8 @@
|
|
@@ -21,8 +21,8 @@
|
|
using SafeCast for uint256;
|
|
using SafeCast for uint256;
|
|
using Timers for Timers.BlockNumber;
|
|
using Timers for Timers.BlockNumber;
|
|
@@ -32,7 +32,7 @@ diff -ruN governance/extensions/GovernorPreventLateQuorum.sol governance/extensi
|
|
event ProposalExtended(uint256 indexed proposalId, uint64 extendedDeadline);
|
|
event ProposalExtended(uint256 indexed proposalId, uint64 extendedDeadline);
|
|
diff -ruN governance/Governor.sol governance/Governor.sol
|
|
diff -ruN governance/Governor.sol governance/Governor.sol
|
|
--- governance/Governor.sol 2022-05-25 15:36:58.849363940 -0400
|
|
--- governance/Governor.sol 2022-05-25 15:36:58.849363940 -0400
|
|
-+++ governance/Governor.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ governance/Governor.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -44,7 +44,7 @@
|
|
@@ -44,7 +44,7 @@
|
|
|
|
|
|
string private _name;
|
|
string private _name;
|
|
@@ -44,7 +44,7 @@ diff -ruN governance/Governor.sol governance/Governor.sol
|
|
// {onlyGovernance} modifier needs to be whitelisted in this queue. Whitelisting is set in {_beforeExecute},
|
|
// {onlyGovernance} modifier needs to be whitelisted in this queue. Whitelisting is set in {_beforeExecute},
|
|
diff -ruN governance/TimelockController.sol governance/TimelockController.sol
|
|
diff -ruN governance/TimelockController.sol governance/TimelockController.sol
|
|
--- governance/TimelockController.sol 2022-05-25 15:36:58.849363940 -0400
|
|
--- governance/TimelockController.sol 2022-05-25 15:36:58.849363940 -0400
|
|
-+++ governance/TimelockController.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ governance/TimelockController.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -28,10 +28,10 @@
|
|
@@ -28,10 +28,10 @@
|
|
bytes32 public constant PROPOSER_ROLE = keccak256("PROPOSER_ROLE");
|
|
bytes32 public constant PROPOSER_ROLE = keccak256("PROPOSER_ROLE");
|
|
bytes32 public constant EXECUTOR_ROLE = keccak256("EXECUTOR_ROLE");
|
|
bytes32 public constant EXECUTOR_ROLE = keccak256("EXECUTOR_ROLE");
|
|
@@ -60,7 +60,7 @@ diff -ruN governance/TimelockController.sol governance/TimelockController.sol
|
|
* @dev Emitted when a call is scheduled as part of operation `id`.
|
|
* @dev Emitted when a call is scheduled as part of operation `id`.
|
|
diff -ruN governance/utils/Votes.sol governance/utils/Votes.sol
|
|
diff -ruN governance/utils/Votes.sol governance/utils/Votes.sol
|
|
--- governance/utils/Votes.sol 2022-05-25 15:36:58.849363940 -0400
|
|
--- governance/utils/Votes.sol 2022-05-25 15:36:58.849363940 -0400
|
|
-+++ governance/utils/Votes.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ governance/utils/Votes.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -35,7 +35,25 @@
|
|
@@ -35,7 +35,25 @@
|
|
bytes32 private constant _DELEGATION_TYPEHASH =
|
|
bytes32 private constant _DELEGATION_TYPEHASH =
|
|
keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
|
|
keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
|
|
@@ -135,7 +135,7 @@ diff -ruN governance/utils/Votes.sol governance/utils/Votes.sol
|
|
}
|
|
}
|
|
diff -ruN token/ERC1155/ERC1155.sol token/ERC1155/ERC1155.sol
|
|
diff -ruN token/ERC1155/ERC1155.sol token/ERC1155/ERC1155.sol
|
|
--- token/ERC1155/ERC1155.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- token/ERC1155/ERC1155.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ token/ERC1155/ERC1155.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ token/ERC1155/ERC1155.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -268,7 +268,7 @@
|
|
@@ -268,7 +268,7 @@
|
|
uint256 id,
|
|
uint256 id,
|
|
uint256 amount,
|
|
uint256 amount,
|
|
@@ -192,28 +192,19 @@ diff -ruN token/ERC1155/ERC1155.sol token/ERC1155/ERC1155.sol
|
|
bytes4 response
|
|
bytes4 response
|
|
diff -ruN token/ERC20/ERC20.sol token/ERC20/ERC20.sol
|
|
diff -ruN token/ERC20/ERC20.sol token/ERC20/ERC20.sol
|
|
--- token/ERC20/ERC20.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- token/ERC20/ERC20.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ token/ERC20/ERC20.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ token/ERC20/ERC20.sol 2022-05-25 16:19:02.895813907 -0400
|
|
@@ -277,7 +277,7 @@
|
|
@@ -277,7 +277,7 @@
|
|
* - `account` cannot be the zero address.
|
|
* - `account` cannot be the zero address.
|
|
* - `account` must have at least `amount` tokens.
|
|
* - `account` must have at least `amount` tokens.
|
|
*/
|
|
*/
|
|
- function _burn(address account, uint256 amount) internal virtual {
|
|
- function _burn(address account, uint256 amount) internal virtual {
|
|
-+ function _burn(address account, uint256 amount) public virtual returns (bool) { // HARNESS: internal -> public
|
|
|
|
|
|
++ function _burn(address account, uint256 amount) public virtual { // HARNESS: internal -> public
|
|
require(account != address(0), "ERC20: burn from the zero address");
|
|
require(account != address(0), "ERC20: burn from the zero address");
|
|
|
|
|
|
_beforeTokenTransfer(account, address(0), amount);
|
|
_beforeTokenTransfer(account, address(0), amount);
|
|
-@@ -292,6 +292,8 @@
|
|
|
|
- emit Transfer(account, address(0), amount);
|
|
|
|
-
|
|
|
|
- _afterTokenTransfer(account, address(0), amount);
|
|
|
|
-+
|
|
|
|
-+ return true;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
diff -ruN token/ERC20/extensions/ERC20FlashMint.sol token/ERC20/extensions/ERC20FlashMint.sol
|
|
diff -ruN token/ERC20/extensions/ERC20FlashMint.sol token/ERC20/extensions/ERC20FlashMint.sol
|
|
--- token/ERC20/extensions/ERC20FlashMint.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- token/ERC20/extensions/ERC20FlashMint.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ token/ERC20/extensions/ERC20FlashMint.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ token/ERC20/extensions/ERC20FlashMint.sol 2022-05-25 16:07:31.901816357 -0400
|
|
@@ -40,9 +40,11 @@
|
|
@@ -40,9 +40,11 @@
|
|
require(token == address(this), "ERC20FlashMint: wrong token");
|
|
require(token == address(this), "ERC20FlashMint: wrong token");
|
|
// silence warning about unused variable without the addition of bytecode.
|
|
// silence warning about unused variable without the addition of bytecode.
|
|
@@ -229,7 +220,7 @@ diff -ruN token/ERC20/extensions/ERC20FlashMint.sol token/ERC20/extensions/ERC20
|
|
* implementation returns the address(0) which means the fee amount will be burnt.
|
|
* implementation returns the address(0) which means the fee amount will be burnt.
|
|
diff -ruN token/ERC20/extensions/ERC20Votes.sol token/ERC20/extensions/ERC20Votes.sol
|
|
diff -ruN token/ERC20/extensions/ERC20Votes.sol token/ERC20/extensions/ERC20Votes.sol
|
|
--- token/ERC20/extensions/ERC20Votes.sol 2022-03-02 13:56:14.831535075 -0500
|
|
--- token/ERC20/extensions/ERC20Votes.sol 2022-03-02 13:56:14.831535075 -0500
|
|
-+++ token/ERC20/extensions/ERC20Votes.sol 2022-05-25 16:06:40.279512790 -0400
|
|
|
|
|
|
++++ token/ERC20/extensions/ERC20Votes.sol 2022-05-25 16:14:01.137717224 -0400
|
|
@@ -33,8 +33,8 @@
|
|
@@ -33,8 +33,8 @@
|
|
bytes32 private constant _DELEGATION_TYPEHASH =
|
|
bytes32 private constant _DELEGATION_TYPEHASH =
|
|
keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
|
|
keccak256("Delegation(address delegatee,uint256 nonce,uint256 expiry)");
|
|
@@ -241,9 +232,18 @@ diff -ruN token/ERC20/extensions/ERC20Votes.sol token/ERC20/extensions/ERC20Vote
|
|
Checkpoint[] private _totalSupplyCheckpoints;
|
|
Checkpoint[] private _totalSupplyCheckpoints;
|
|
|
|
|
|
/**
|
|
/**
|
|
|
|
+@@ -169,7 +169,7 @@
|
|
|
|
+ /**
|
|
|
|
+ * @dev Snapshots the totalSupply after it has been decreased.
|
|
|
|
+ */
|
|
|
|
+- function _burn(address account, uint256 amount) internal virtual override {
|
|
|
|
++ function _burn(address account, uint256 amount) public virtual override {
|
|
|
|
+ super._burn(account, amount);
|
|
|
|
+
|
|
|
|
+ _writeCheckpoint(_totalSupplyCheckpoints, _subtract, amount);
|
|
diff -ruN token/ERC20/extensions/ERC20Wrapper.sol token/ERC20/extensions/ERC20Wrapper.sol
|
|
diff -ruN token/ERC20/extensions/ERC20Wrapper.sol token/ERC20/extensions/ERC20Wrapper.sol
|
|
--- token/ERC20/extensions/ERC20Wrapper.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- token/ERC20/extensions/ERC20Wrapper.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ token/ERC20/extensions/ERC20Wrapper.sol 2022-05-25 16:06:40.311512247 -0400
|
|
|
|
|
|
++++ token/ERC20/extensions/ERC20Wrapper.sol 2022-05-25 16:07:31.909819153 -0400
|
|
@@ -55,7 +55,7 @@
|
|
@@ -55,7 +55,7 @@
|
|
* @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal
|
|
* @dev Mint wrapped token to cover any underlyingTokens that would have been transferred by mistake. Internal
|
|
* function that can be exposed with access control if desired.
|
|
* function that can be exposed with access control if desired.
|
|
@@ -255,7 +255,7 @@ diff -ruN token/ERC20/extensions/ERC20Wrapper.sol token/ERC20/extensions/ERC20Wr
|
|
return value;
|
|
return value;
|
|
diff -ruN token/ERC721/extensions/draft-ERC721Votes.sol token/ERC721/extensions/draft-ERC721Votes.sol
|
|
diff -ruN token/ERC721/extensions/draft-ERC721Votes.sol token/ERC721/extensions/draft-ERC721Votes.sol
|
|
--- token/ERC721/extensions/draft-ERC721Votes.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- token/ERC721/extensions/draft-ERC721Votes.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ token/ERC721/extensions/draft-ERC721Votes.sol 2022-05-25 16:06:40.311512247 -0400
|
|
|
|
|
|
++++ token/ERC721/extensions/draft-ERC721Votes.sol 2022-05-25 16:07:31.909819153 -0400
|
|
@@ -34,7 +34,7 @@
|
|
@@ -34,7 +34,7 @@
|
|
/**
|
|
/**
|
|
* @dev Returns the balance of `account`.
|
|
* @dev Returns the balance of `account`.
|
|
@@ -267,7 +267,7 @@ diff -ruN token/ERC721/extensions/draft-ERC721Votes.sol token/ERC721/extensions/
|
|
}
|
|
}
|
|
diff -ruN utils/Address.sol utils/Address.sol
|
|
diff -ruN utils/Address.sol utils/Address.sol
|
|
--- utils/Address.sol 2022-05-25 15:36:58.853363841 -0400
|
|
--- utils/Address.sol 2022-05-25 15:36:58.853363841 -0400
|
|
-+++ utils/Address.sol 2022-05-25 16:06:40.311512247 -0400
|
|
|
|
|
|
++++ utils/Address.sol 2022-05-25 16:07:31.909819153 -0400
|
|
@@ -131,6 +131,7 @@
|
|
@@ -131,6 +131,7 @@
|
|
uint256 value,
|
|
uint256 value,
|
|
string memory errorMessage
|
|
string memory errorMessage
|