Amirhossein Banavi
62eb4568be
Optimize ERC721 _isApprovedOrOwner function ( #3248 )
3 years ago
Hadrien Croubois
f8bfa560e9
Use _spendAllowance in ERC20FlashMint ( #3226 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
212221d6ff
Add mention of OpenZeppelin Defender in readme
3 years ago
Ben
c239e1af8d
Fix typo ( #3241 )
...
Fix camelcase of 'lastvalue' to 'lastValue'
3 years ago
Francisco Giordano
f590fcdfe9
Fix typo in Proxy.sol
3 years ago
renovate[bot]
9bded169e8
Update lockfile ( #3229 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
renovate[bot]
dc739dcbe3
Update actions/checkout action to v3 ( #3234 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Ben DiFrancesco
fd07cc6290
Extend Governor with parameterized votes ( #3043 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
renovate[bot]
f9d9279320
Update actions/setup-node action to v3 ( #3220 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
JulissaDantes
abdb20a6bd
Change dependency source to work around Truffle limitation ( #3218 )
3 years ago
Hadrien Croubois
3e74681e77
Read allowance from overridable function in increase/decrease ( #3213 )
3 years ago
Hadrien Croubois
f6b614a7c5
Perform ERC1155.afterTokenTransfer hooks before acceptance check ( #3215 )
3 years ago
GitHubPang
458697be32
Fix typos ( #3207 )
...
Fix misspelling in ERC20 contract comments.
3 years ago
Hadrien Croubois
af7ec04b78
Improve security of the onlyGovernance modifier ( #3147 )
...
* add a protection mechanism to prevent relaying transaction that are not
part of an execute operation
* more accurate relay authorization
* force reset the relay authorizations after executions
* refactor of the onlyGovernor modifier
* only whitelist when executor is not governor itself
* fix lint
* add private function for call permission management
* use deque
* fix lint
* remove unecessary dependency
* remove unecessary dependency
* comment rephrasing
* Update contracts/governance/Governor.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* cache keccak256(_msgData())
* use Context
* lint
* conditionnal clear
* add test to cover queue.clear()
* lint
* write more extended docs for onlyGovernance
* add changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
eae2384178
Add git paragraph to installation section ( #3197 )
3 years ago
renovate[bot]
6db2d0ea39
Update dependency yargs to v17 ( #3101 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Francisco Giordano
3fe65ef467
Fix docs navigation
3 years ago
Francisco Giordano
525a672862
Add missing docs about reverts in DoubleEndedQueue
3 years ago
Hadrien Croubois
aace774961
Add a double ended queue ( #3153 )
...
* add vector, lifo and fifo structures
* fix lint
* need more memory for coverage
* remove Vector wrappers and gas optimization
* refactor Vector testing
* revert package.json changes
* rename to DoubleEndedQueue
* rename and refactor
* refactor tests and expand coverage
* test for custom errors
* add changelog entry
* add docs
* add sample code and note about storage vs. memory
* add available since
* lint
* use underscore for struct members
* add struct documentation
* remove SafeCast in length
* rename i -> index and improve docs
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Francisco Giordano
6fec54f17f
Update lockfile ( #3193 )
3 years ago
GitHubPang
58f635312a
Fix typo in CHANGELOG ( #3191 )
3 years ago
Hadrien Croubois
3dfc0a44f8
ERC1155 after token transfer hook ( #3166 )
...
* add Hooks _afterTokenTransfer
* avoid duplicate call to _asSingleton
* add changelog entry
* update changelog link to PR
* Update CHANGELOG.md
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: CryptoV8 <91189073+CryptoV8@users.noreply.github.com>
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Alexander
be3c5ca504
clarify _spendAllowance natspec ( #3188 )
3 years ago
GitHubPang
4cb0926f11
Fix grammar typo in doc ( #3186 )
...
Add missing verb "are".
3 years ago
renovate[bot]
5b6112000c
Update lockfile ( #3067 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Francisco Giordano
afb20119b3
Release v4.5
3 years ago
renovate[bot]
718d0ba2a1
Update dependency simple-get to 2.8.2 [SECURITY] ( #3181 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
renovate[bot]
591e30b7b6
Update dependency node-fetch to 2.6.7 [SECURITY] ( #3176 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
renovate[bot]
24f561a9a1
Update dependency shelljs to 0.8.5 [SECURITY] ( #3177 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
renovate[bot]
32b4eee9a3
Update dependency follow-redirects to 1.14.7 [SECURITY] ( #3175 )
...
Co-authored-by: Renovate Bot <bot@renovateapp.com>
3 years ago
Hadrien Croubois
c5a6cae898
Add a _spendAllowance function to ERC20 & ERC777 ( #3170 )
3 years ago
Micah Zoltu
63b466901f
Rename some ERC20 parameters to match the standard document. ( #3167 )
...
* Renames `sender` to `source`.
The naming variable was incorrect. The source of the funds is *not* necessarily (and in most cases isn't) the sender of the transaction. Also, this code has a `msgSender` which further adds confusion.
* Changes to `from/to` instead of `source`.
* Function documentation matches new names
* Changed other instances of sender/recipient to from/to.
Also changed `msgSender` to `owner` in the approval related methods.
* apply changes to IERC20.sol + minor renaming in ERC20.sol
Co-authored-by: Daniel Von Fange <daniel@leancoder.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Alexander
defcf20042
Simplify ERC721 example ( #3115 )
3 years ago
Francisco Giordano
b119b564df
Improve wording for forum link in new issue templates
3 years ago
Tim Daubenschütz
28986d2f2e
Start tokenId at zero in docs ( #3162 )
...
- Fixes #3123
3 years ago
Francisco Giordano
85566faeb2
Improve documentation of various governance aspects ( #3161 )
...
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Francisco Giordano
bfd05d9646
Add "available since" on Base64.sol
3 years ago
Hadrien Croubois
574f3b89e1
Add proper revert message on overflow of totalSupply during burn ( #3144 )
3 years ago
Gaspar Dip
ca755ce799
Add AddressToUintMap ( #3150 )
...
* add AddressToUintMap
* Update contracts/utils/structs/EnumerableMap.sol
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
* address comments
* lint code
* merge mocks into a single file
* add PR link to changelog entry
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Francisco Giordano
fc01c51c13
Simplify inheritance to avoid overrides
3 years ago
Francisco Giordano
21c5d623d6
Update Copyright notice and include contributors
3 years ago
Doug Hoyte
4f8af2dceb
Add test and docs describing a misuse of MerkleProof ( #3090 )
...
Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
3 years ago
Harsh Vakharia
a81b07ce91
Fix typo in retrieval of onERC721Received selector ( #3151 )
3 years ago
Francisco Giordano
f55d2716a8
Add function documentation for SignatureChecker.
3 years ago
GitHubPang
ae54e6de1d
Fix typo in CHANGELOG ( #3138 )
...
Remove repeated word "the".
3 years ago
Hadrien Croubois
fb950c6166
Add a virtual `_checkRole(bytes32)` internal function to `AccessControl` ( #3137 )
...
* add a virtual _onlyRole(bytes32) modifier
* _onlyRole(role) → _checkRole(role)
* update doc
3 years ago
Hadrien Croubois
6fb1e843cf
Make royaltyInfo(uint256 _tokenId, uint256 _salePrice) virtual ( #3133 )
...
* Make royaltyInfo(uint256 _tokenId, uint256 _salePrice) virtual
Should be cherrypicked in release 4.5
* fix lint
3 years ago
GitHubPang
78deae5a76
Fix typo in CHANGELOG ( #3135 )
...
Change `ERC2891` > `ERC2981`.
3 years ago
Kevin Upton
e298476a90
Simplification of ERC777's transfer & transferFrom by using _send ( #3128 )
...
* Update ERC777.sol
* Update ERC777.sol
* Update ERC777.sol
* Update ERC777.sol
* fix revert reasons
Co-authored-by: Hadrien Croubois <hadrien.croubois@gmail.com>
3 years ago
Hadrien Croubois
a5e042cedf
Fix use of ^ (xor) instead of ** (power) ( #3130 )
3 years ago