7cd0d5a452
Replaced assertJump, assertRevert and expectThrow with shouldFail. ( #1363 )
...
* Replaced assertJump, assertRevert and expectThrow with shouldFail.
* Fixed linter errors.
* Fixed typo.
* Made the helpers async.
(cherry picked from commit b0da0fded0 )
2018-10-20 21:54:50 +00:00
620d524398
Improves Ownable events ( #1397 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* updates
* fixes #1392
* event tests added
* constructor event added
(cherry picked from commit af42c39e6c )
2018-10-20 21:53:33 +00:00
eae40c93b6
this is used in tests (#1380 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* updates
* fixes #1200
* suggested change
(cherry picked from commit b41b125c15 )
2018-10-20 21:35:26 +00:00
109eba9273
Replaces amount with value for consistency ( #1378 )
...
* fixes #1372
* done in ERC20Capped and ERC20Mintable
(cherry picked from commit fd4de77651 )
2018-10-20 21:32:45 +00:00
13fb1f662a
Fixed test path.
...
(cherry picked from commit f4d6f40442 )
2018-10-20 21:31:48 +00:00
2f3f0d3c8a
Created test utils directory
...
(cherry picked from commit 269981ee6a )
2018-10-20 21:31:34 +00:00
0678f67289
Merged latestTime, increaseTime and duration into a time helper. ( #1364 )
...
(cherry picked from commit 34bc709bc2 )
2018-10-20 21:31:21 +00:00
b03932529c
Fix/#1355 test helper to check balance difference ( #1368 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* fixex #1355
* linting
* suggested changes
* Update BreakInvariantBounty.test.js
(cherry picked from commit 6ae041bca6 )
2018-10-20 21:30:15 +00:00
c25a1e366f
Fix #1358 Test helper to send funds ( #1367 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* fixes #1358
* linting done
* suggested changes
(cherry picked from commit fa1dfbd113 )
2018-10-20 21:29:21 +00:00
598a0358fc
Dangling commas are now required. ( #1359 )
...
(cherry picked from commit a6889776f4 )
2018-10-20 21:23:12 +00:00
39db4b4b05
Feature/use expect event in test logs assertions #1232 ( #1343 )
...
* Add BigNumber support to expectEvent/inLogs (#1026 )
* switched direct logs array check to expectEvent method in AllowanceCrowdsale.test.js
* Refactor expectEvent.inLogs function to use simple value number check
* Introduced should.be.bignumber method to compare BigNumber values
* Use expectEvent to test logs (#1232 )
* Removed trailing space
(cherry picked from commit 536262f2ec )
2018-10-20 21:22:54 +00:00
a9af619c59
Add BigNumber support to expectEvent/inLogs ( #1026 ) ( #1338 )
...
* Add BigNumber support to expectEvent/inLogs (#1026 )
* switched direct logs array check to expectEvent method in AllowanceCrowdsale.test.js
* Refactor expectEvent.inLogs function to use simple value number check
* Introduced should.be.bignumber method to compare BigNumber values
* Destructure transaction object to extract logs field
(cherry picked from commit 947de54cee )
2018-10-20 21:22:05 +00:00
62ed8e2fe4
Removed BreakInvariantBounty. ( #1424 )
...
(cherry picked from commit 9be0f100c4 )
2018-10-20 21:20:57 +00:00
e7aa8dedbc
Turn off blank-lines Solium rule ( #1284 )
...
* turn off blank-lines rule
* remove triple newlines
(cherry picked from commit 9b37104655 )
2018-10-20 21:07:49 +00:00
49d2dd9e08
Add Mock suffix to variable names #1172 ( #1324 )
...
* Add Mock suffix to variable names #1172
* Add Impl suffix to variable names
(cherry picked from commit 4b21fcf5af )
2018-10-20 20:59:51 +00:00
a3bb56769e
Remove lodash from tests ( #1323 )
...
(cherry picked from commit d062352de7 )
2018-10-20 20:59:13 +00:00
f8b0cec15b
Add unit test specific to Address utils ( #1251 ) ( #1316 )
...
(cherry picked from commit 7825caa1fd )
2018-10-20 20:57:15 +00:00
7ea34d9e97
Update ERC20.sol ( #1313 )
...
correct typo in doc
(cherry picked from commit b644c72eb0 )
2018-10-20 20:56:34 +00:00
2a8146a45d
Fix README snippet typo
...
(cherry picked from commit 0b8296e525 )
2018-10-20 20:55:59 +00:00
2e14386eda
fix readme snippet so it is concrete
...
(cherry picked from commit 651f6d8b57 )
2018-10-20 20:54:53 +00:00
80458ebc72
Add warning about trading tokens before refundable crowdsale goal is met ( #1452 )
...
This attack was reported in https://github.com/OpenZeppelin/openzeppelin-solidity/issues/877
2018-10-19 17:35:04 -06:00
6d415c508b
Crowdsale.buyTokens is now nonReentrant. ( #1438 )
2018-10-19 14:42:20 -06:00
a936cbf5fb
InitialRate must be strictly larger than finalRate. ( #1441 )
2018-10-19 12:37:24 -06:00
1ac1ac984e
Fixed how allowance crowdsale checks remaining tokens. ( #1449 )
2018-10-19 12:12:16 -06:00
54268bfeed
Move standalone ERC20 and ERC721 to token dir ( #38 )
2018-10-19 11:45:02 -06:00
8204f6a71f
Improved some ERC721 internal shenanigans ( #1450 )
...
* Made _clearApproval private, added clarifying comments in _addTokenTo and _removeTokenFrom.
* Added approval information.
2018-10-18 19:07:34 -03:00
9f5b73df37
added a test helper with common constants ( #1400 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* updates
* fixes #1206
(cherry picked from commit 58a42443df )
2018-10-18 19:05:17 -03:00
a811a0be28
Improves Ownable events ( #1397 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* updates
* fixes #1392
* event tests added
* constructor event added
(cherry picked from commit af42c39e6c )
2018-10-18 19:03:56 -03:00
9c76d28245
Added a constructor to BreakInvariantBounty. ( #1395 )
...
(cherry picked from commit 3acc2b4216 )
2018-10-18 19:02:57 -03:00
8d6250cd5a
Add Arrays library with unit tests ( #1209 ) ( #1375 )
...
* Add Arrays library with unit tests (#1209 )
* prepared due to snapshot token requirements
* add library with method to find upper bound
* add unit test for basic and edge cases
* Imporove documentation for Arrays library
Simplify Arrays.test.js to use short arrays as test date
* Added comment for uint256 mid variable.
* Explaned why uint256 mid variable calculated as Math.average is safe to use as index of array.
(cherry picked from commit f7e53d90fa )
2018-10-18 19:02:50 -03:00
66bad4ff2a
Removed selfdestruct from BreakInvariantBounty ( #1385 )
...
* signing prefix added
* Minor improvement
* Tests changed
* Successfully tested
* Minor improvements
* Minor improvements
* Revert "Dangling commas are now required. (#1359 )"
This reverts commit a6889776f4 .
* updates
* fixes #1384
* introduced claimable and cancelBounty
* cancelBounty tests
* Update BreakInvariantBounty.test.js
(cherry picked from commit 41f84f8b40 )
2018-10-18 19:02:42 -03:00
41e74dd8d8
Removed old, unused mocks. ( #1382 )
...
(cherry picked from commit b17de011dc )
2018-10-18 18:53:09 -03:00
bbe804a14b
Deleted unnecessary import. ( #1437 )
...
* Deleted unnecessary import.
* Added back SafeMath.
* Removed another unnecessary import.
2018-10-18 18:43:44 -03:00
28cf567e41
Made SampleCrowdsale a bit clearer. ( #1448 )
2018-10-18 18:43:12 -03:00
5bb865218f
Now setting the finalized flag before doing finalization to prevent possbile reentrancy issues. ( #1447 )
2018-10-18 18:42:57 -03:00
94692acb14
Crowdsale docs improvements. ( #1446 )
...
* Added a small Crowdsale fallback gas warning.
* Fixed a couple typos.
2018-10-18 16:57:16 -03:00
384dff9abe
Renamed internal ERC721 check function. ( #1445 )
2018-10-18 16:56:58 -03:00
5bf3907862
Made tokenURI external, as per the spec. ( #1444 )
2018-10-18 16:49:46 -03:00
c8220aeea8
ERC20Capped now capps _all_ minting, even internal calls. ( #1443 )
2018-10-18 16:49:31 -03:00
9155bfe27f
IncPriceCrowdsale consistently returns 0 outside of the crowdsale window. ( #1442 )
2018-10-18 16:36:27 -03:00
1c5f16ae26
Closing time must be strictly after opening time. ( #1440 )
2018-10-18 16:36:11 -03:00
d9fdffe88e
Internal crowdsales ( #1439 )
...
* Made some internal crowdsale methods internal.
* Made all Crowdsale constructors internal.
2018-10-18 16:35:57 -03:00
0c05ce0eb1
Bump to v2.0.1
2018-10-18 20:40:38 +02:00
f28a4427a2
Add missing zos.json files
2018-10-18 20:34:50 +02:00
e5ba8666de
Update readme
2018-10-18 20:12:09 +02:00
2fa3176399
Update to zOS 2.0.0 and version bump to 2.0.0
2018-10-18 20:05:48 +02:00
d1f2b19e6e
Frozen all releases
2018-10-18 19:47:57 +02:00
a8a3e0be05
Deployed openzeppelin-eth to all networks
2018-10-18 19:28:56 +02:00
f38ff1bdbd
Add publish flag to zos.json
2018-10-18 18:34:59 +02:00
34fdb0fe23
Fix split payment contract variable initialization ( #37 )
...
* Remove variables initialization on declaration for SplitPayment contracts
2018-10-18 18:20:05 +02:00