Nicolás Venturo
ad18098d65
Disallow ERC20._transfer from the zero address. ( #1752 )
...
* Add requirement of non-zero from to ERC20 transfer.
* Add test for transferFrom zero address to behavior.
* Create ERC20.transfer behavior.
* Add tests for _transfer.
* Add changelog entry.
* Fix linter error.
* Delete repeated test.
* Fix hardcoded error prefix.
* Update CHANGELOG.md
Co-Authored-By: Francisco Giordano <frangio.1@gmail.com>
* Address review comments.
6 years ago
Nicolás Venturo
6c2b7c260d
Add ERC20 compatibility to ERC777. ( #1735 )
...
* Add ERC20 compatibility.
* Reusing ERC20 tests for ERC777.
* Improve documentation.
* Add changelog entry.
* Improved ERC20 behavior tests.
* Add revert reasons to ERC777.
* ERC20 methods allow sending tokens to contracts with no interface.
* Register ERC20 interface.
* Add comment about avoidLockingTokens.
* Improve revert reason string.
* Make ERC777 implement IERC20.
* Fix test revert string.
* Remove unnecesary require.
* Add private _transfer.
* Update contracts/drafts/ERC777/ERC777.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update private helper names.
(cherry picked from commit aa4c9feabd
)
6 years ago
Nicolás Venturo
aa4c9feabd
Add ERC20 compatibility to ERC777. ( #1735 )
...
* Add ERC20 compatibility.
* Reusing ERC20 tests for ERC777.
* Improve documentation.
* Add changelog entry.
* Improved ERC20 behavior tests.
* Add revert reasons to ERC777.
* ERC20 methods allow sending tokens to contracts with no interface.
* Register ERC20 interface.
* Add comment about avoidLockingTokens.
* Improve revert reason string.
* Make ERC777 implement IERC20.
* Fix test revert string.
* Remove unnecesary require.
* Add private _transfer.
* Update contracts/drafts/ERC777/ERC777.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update private helper names.
6 years ago
Francisco Giordano
4b2229783d
fix pr number in changelog
...
(cherry picked from commit af55a843e3
)
6 years ago
Francisco Giordano
af55a843e3
fix pr number in changelog
6 years ago
Nicolás Venturo
ae919629cd
Revert Solidity version bump. ( #1729 )
...
(cherry picked from commit 67bca857ee
)
6 years ago
Nicolás Venturo
67bca857ee
Revert Solidity version bump. ( #1729 )
6 years ago
Nicolás Venturo
9d868ee846
Add revert reasons changelog entry.
6 years ago
Nicolás Venturo
97a9ca5681
Add a vault to PostDeliveryCrowdsale. ( #1721 )
...
* Add a vault to PostDeliveryCrowdsale.
* Add changelog entry.
* Apply suggestions from code review
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Rename TokenVault.
* add solhint ignore directive
6 years ago
Nicolás Venturo
19c7414052
Bump minimum Solidity version to 0.5.7 ( #1724 )
...
* Bump Solidity version to 0.5.7
* Add changelog entry.
6 years ago
Bertrand Masius
5a2b349992
Feature/erc777 #1159 ( #1684 )
...
* IERC777 from specs, constants returned, up to defaultOperators. (#1159 )
* IERC777 oprarator approvals (#1159 )
* ERC777 oprarator approvals fixes and tests
* IERC777 send and receive with ERC820 (#1159 )
* ERC777 Add burn functions and fix send functions (#1159 )
* ERC777 Make expectEvent compatible with web3.js 1.0 (#1159 )
* ERC777 Add ERC820 deploy script (#1159 )
* ERC777 Complete implementation of ERC777 (#1159 )
This implementation conforms to the current EIP
* ERC777 Update ERC820 Registry contract to final version (#1159 )
* ERC777 Move contracts to 'drafts' folder (#1159 )
* ERC777: Update to ERC1820 registry and linter error fix (#1159 )
* ERC777: implement recent changes of EIP777 (#1159 )
* ERC777 Fix formatting (#1159 )
* ERC777 Update to solc 0.5.2 (#1159 )
* ERC777 Fix travis CI errors (#1159 )
* ERC777 Fix linter errors again... (#1159 )
* ERC777 Fix unit test (#1159 )
* ERC777 Fix unit test again (#1159 )
* Remove extra newlines.
* Rename ERC777Base to ERC777.
* Remove 'Token' from contract names.
* Replace ops for operators.
* Move operator check out of _send.
* Remove ERC777Burnable.
* Remove ERC1820Client, now using the interface directly.
* Minor internal refactors in contracts.
* Delete extra test helpers.
* Simplified tests.
* Add basic 777 tests.
* Add granularity send test.
* Add first operator send tests.
* Add burn tests.
* Refactor send and burn tests.
* Improve send burn refactor.
* Greatly improve test module.
* Burn instead of send removed tokens.
* Add operator tests.
* Improve send tests under changing operators.
* Refactor and merge send and burn tests.
* Add missing and not-implemented tests.
* Make _burn private.
* Fix typo.
* Greatly improve tokensToSend tests.
* Refactor hook tests.
* Fix hook tests.
* Update openzeppelin-test-helpers and ERC1820 address.
* Fix natspec indentation.
* Make interface functions external.
* Remove redundant private revoke and authorize functions.
* Improved readability of if statement.
* Remove unnecessary asserts.
* Add non-one granularity test.
* Fix hook call order in _mint.
* Fix _mint not reverting on failure to implement tokensReceived.
* Remove special case in operatorFn when from is 0.
* Refactor ERC777SenderMock.
* Add tokensReceived tests.
* switch to updated ganache-cli-coverage fork
* Fix linter errors.
* Add mint tests.
* Fix linter errors.
* Fix tests.
* Update test/drafts/ERC777/ERC777.test.js
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Add changelog entry.
6 years ago
Francisco Giordano
8b44efd035
add note about Counters rename in changelog ( #1703 )
6 years ago
Nicolás Venturo
308a4c9907
Draft EIP 1820 ( #1677 )
...
* Add barebones EIP1820 support.
* Update openzeppelin-test-helpers dependency to have ERC1820 support.
* Add tests for ERC1820.
* Improve inline documentation.
* Add changelog entry.
* Update test-helpers, refactor tests to use new helpers.
* Rename ERC1820 to ERC1820Implementer.
* Improve implementer docstring.
* Remove _implementsInterfaceForAddress.
* update openzeppelin-test-helpers to 0.2.0
* Update contracts/drafts/ERC1820Implementer.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Fix how solidity coverage is run to allow for free events.
* Fix coverage testing script.
6 years ago
Nicolás Venturo
7aaf15be59
Add v2.2.0 release date.
6 years ago
Nicolás Venturo
9c69df5962
Fix changelog entry.
6 years ago
Nicolás Venturo
61c4318c33
Reorder 2.2.0 changelog entries.
6 years ago
Thomas Bocek
79dd498b16
Signature Malleability: ( #1622 )
...
* Transaction Malleability:
If you allow for both values 0/1 and 27/28, you allow two different
signatures both resulting in a same valid recovery. (r,s,0/1) and
(r,s,27/28) would both be valid, recover the same public key and sign
the same data. Furthermore, given (r,s,0/1), (r,s,27/28) can be
constructed by anyone.
* Transaction Malleability:
EIP-2 still allows signature malleabality for ecrecover(), remove this
possibility and force the signature to be unique.
* Added a reference to appendix F to the yellow paper and improved
comment.
* better test description for testing the version 0, which returns
a zero address
* Check that the conversion from 0/1 to 27/28 only happens if its 0/1
* improved formatting
* Refactor ECDSA code a bit.
* Refactor ECDSA tests a bit.
* Add changelog entry.
* Add high-s check test.
6 years ago
Anton Bukov
352ec94579
Add TimedCrowdsale::_extendTime ( #1636 )
...
* Add TimedCrowdsale::_extendTime
* Add tests for TimedCrowdsale extending method
* Reverse event arguments order
* Rename method argument
* Refactor TimedCrowdsale test
* Simplify TimedCrowdsaleImpl
* Fix extendTime method behaviour to deny TimedCrowdsale re-opening after it was ended
* Append chengelog
* Update CHANGELOG.md
Co-Authored-By: k06a <k06aaa@gmail.com>
* Update contracts/crowdsale/validation/TimedCrowdsale.sol
Co-Authored-By: k06a <k06aaa@gmail.com>
* Improve tests
6 years ago
Francisco Giordano
0c617b755e
fix weird date format ( #1663 )
6 years ago
Nicolás Venturo
41aa39afbc
Add no-return-data ERC20 support to SafeERC20. ( #1655 )
...
* Add no-return-data ERC20 support to SafeERC20.
* Add changelog entry.
* Replace abi.encodeWithSignature for encodeWithSelector.
* Remove SafeERC20 test code duplication.
* Replace assembly for abi.decode.
* Fix linter errors.
6 years ago
Nicolás Venturo
634883ce8e
Add bugfix backport changelog entry.
6 years ago
Nicolás Venturo
a39bea230e
Add SafeERC20 bugfix changelog entry.
6 years ago
Nicolás Venturo
d6c47c4b7c
Added PR links for 2.2.0 changelog entries.
6 years ago
Matt Swezey
40d15146c4
ERC20 Snapshot Impl #2 ( #1617 )
...
* ✏️ Refactor code & Refork OZ Repo
* Refactor ERC20Snapshot to use on-demand snapshots.
* Add ERC20Snapshot changelog entry.
* Move ERC20Snapshot to drafts.
* Improve changelog entry.
* Make snapshot tests clearer.
* Refactor ERC20Snapshots to use Counters.
* Refactor snapshot arrays into a struct.
* Remove .DS_Store files.
* Delete yarn.lock
* Fix linter error.
* simplify gitignore entry
6 years ago
Nicolás Venturo
8dd92fd6ca
Add ERC20 _setTokenURI ( #1618 )
...
* Add _setTokenURI internal.
* Rename TokenMetadata to ERC20Metadata.
* Add changelog entry for ERC20Metadata.
* Fix linter error.
* Add breaking change changelog notice.
6 years ago
Nicolás Venturo
07603d5875
Remove unnecessary SafeMath call ( #1610 )
...
* Refactor Counter to support increment and decrement.
* Move Counter out of drafts.
* Refactor ERC721 to use Counter.
* Rollback Counter returning the current value in increment and decrement.
* Update test/drafts/Counter.test.js
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Improve Counter documentation.
* Move Counter.test to utils.
* Move back Counter to drafts.
6 years ago
Nicolás Venturo
3a5da75876
ERC20._approve ( #1609 )
...
* Add ERC20._approve.
* Add ERC20._approve tests.
* Fix linter error.
* Require owner in _approve to be non-zero.
6 years ago
Nicolás Venturo
1a9cb0786d
Add changelog entry for PublicRole behavior.
6 years ago
Nicolás Venturo
b7d60f2f9a
Fix warnings ( #1606 )
...
* Bump required compiler version to 0.5.2.
* Fix shadowed variable warning in ERC20Migrator.
* Rename Counter to Counters.
* Add dummy state variable to SafeERC20Helper.
* Update changelog entry.
* Fix CountersImpl name.
* Improve changelog entry.
6 years ago
Nicolás Venturo
089f14aa06
Add 2.2.0 changelog entry.
6 years ago
Nicolás Venturo
ba83239dd8
Added 2.1.1 changelog entry.
6 years ago
Nicolás Venturo
312a2584e8
Updated 2.1 release date.
6 years ago
Nicolás Venturo
35d70397b6
Rename WhitelisterRole to WhitelistAdminRole. ( #1589 )
...
* Rename WhitelisterRole to WhitelistAdminRole.
* Update WhitelistAdmin changelog entry.
6 years ago
Francisco Giordano
a5b14f262e
Separate unsigned and signed safemath libraries ( #1588 )
...
* separate unsigned and signed safemath libraries
* update changelog entry for SignedSafeMath
6 years ago
Nicolás Venturo
8c20d53789
Updated changelog to reflect 0.5 support.
6 years ago
Nicolás Venturo
54ceedbb1f
Made the Crowdsale's constructor public again. ( #1564 )
...
* Made the Crowdsale's constructor public again.
* Added changelog entry.
* Made all but Finalizable public.
6 years ago
Francisco Giordano
d17ae0b806
Signed SafeMath ( #1559 )
...
* signed safe math
* fix lint errors
* refactor overflow checks and add descriptions
* remove incorrect description
* add test for reversed arguments in multiplication test
* fix power operator
* improve multiplication test descriptions
* Update SafeMath.test.js
* add feature to changelog
6 years ago
Nicolás Venturo
fad30c3d2c
Added changelog. ( #1555 )
...
* Added changelog.
* Added PR template note.
* Update .github/PULL_REQUEST_TEMPLATE.md
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update PULL_REQUEST_TEMPLATE.md
* Update CHANGELOG.md
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Update CHANGELOG.md
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Apply suggestions from code review
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Added more headers and sub-headers.
* Added deprecations category.
* Added PR links.
* Added PausableCrowdsale.
* Addressed review comments.
* Update CHANGELOG.md
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
6 years ago