Nicolás Venturo
2e848e12d1
IncPriceCrowdsale consistently returns 0 outside of the crowdsale window. ( #1442 )
...
(cherry picked from commit 9155bfe27f
)
6 years ago
Nicolás Venturo
6e055019d4
Closing time must be strictly after opening time. ( #1440 )
...
(cherry picked from commit 1c5f16ae26
)
6 years ago
Nicolás Venturo
5ee55c4af3
Internal crowdsales ( #1439 )
...
* Made some internal crowdsale methods internal.
* Made all Crowdsale constructors internal.
(cherry picked from commit d9fdffe88e
)
6 years ago
Aniket
1b27b4bb34
Improved SafeERC20 allowance handling ( #1407 )
...
* 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 #1404
* approve failing test
* suggested changes done
* ISafeERC20 removed
* allowance methods in library
* Improved SafeERC20 tests.
* Fixed test coverage.
(cherry picked from commit 315f426f5c
)
6 years ago
Nicolás Venturo
4115686b4f
TokenVesting improvements ( #1431 )
...
* Improved TokenVesting events.
* Added extra checks to TokenVesting.
* Renamed the events.
* Fixed linter error.
* Fixed a test that failed to cover a require.
* Renamed TokensRevoked to TokenVestingRevoked.
(cherry picked from commit 67dac7ae99
)
6 years ago
cardmaniac992
6db4f0bc8f
SplitPayment improvements ( #1417 )
...
* Renamed file, added events and set _addPayee to private
* unwanted file
* adjusted test
* adjusted test
* PaymentReceived event added
* Added event testing.
* Fix static tests
(cherry picked from commit a07499796a
)
6 years ago
Christopher Glisch
5f3ecd9c64
Added address of pauser/unpauser in events ( #1410 )
...
* Added address of pauser/unpauser in events
* Added the account to the Pausable tests.
(cherry picked from commit fcab9c89f2
)
6 years ago
Aniket
c126e3e81a
Events added to Secondary ( #1425 )
...
* Update contracts/ownership/Secondary.sol
* Update Secondary.sol
* Update Secondary.test.js
* Update Secondary.test.js
* Update Secondary.sol
(cherry picked from commit cbe414864f
)
6 years ago
Nicolás Venturo
ab932e1873
Added leading underscore to internal functions, renamed supportsInterfaces. ( #1435 )
...
(cherry picked from commit 0231fac514
)
6 years ago
Nicolás Venturo
4394107660
Added replay attack notice to SignatureBouncer. ( #1434 )
...
(cherry picked from commit ff0c048ad9
)
6 years ago
Nicolás Venturo
422b42bb6a
Made some inherit-only contracts internal. ( #1433 )
...
* Made some inherit-only contracts internal.
* Added OwnableMock.
(cherry picked from commit 96d6103e0b
)
6 years ago
Nicolás Venturo
3b34436b44
Made some TokenVesting public functions private. ( #1427 )
...
* Made some TokenVesting public functions private.
* Fixed linter error.
(cherry picked from commit df3c113711
)
6 years ago
Nicolás Venturo
c5a8680a9c
Moved Escrows into an escrow subdirectory, improved docs. ( #1430 )
...
* Moved Escrows into an escrow subdirectory, improved docs.
* Fixed escrow mock.
* Fixed some more imports.
(cherry picked from commit f3df2dab3d
)
6 years ago
Nicolás Venturo
88f48be287
Removed default value assignments. ( #1432 )
...
(cherry picked from commit cfef58361f
)
6 years ago
Nicolás Venturo
26f9cc8e74
Moved some test files around to better reflect the directory layout. ( #1428 )
...
(cherry picked from commit d8ab8a00f2
)
6 years ago
Nicolás Venturo
56806bb295
Now using hex for asm memory addresses. ( #1429 )
...
(cherry picked from commit 2733cb4a41
)
6 years ago
Paweł Winnicki
1cf96ef0d1
Make state variables private ( #1426 )
...
* added function to renounce ownership
* Make state variables private (#1411 )
(cherry picked from commit 03765e08b9
)
6 years ago
Nicolás Venturo
5d596fc786
Added Math.sol docstrings. ( #1423 )
...
(cherry picked from commit a3e312d133
)
6 years ago
Nicolás Venturo
2514959f34
Fixed a typo in a comment. ( #1422 )
...
(cherry picked from commit 3341dd8899
)
6 years ago
Nicolás Venturo
1b79b536cd
Roles.add and remove now require pre-conditions on the account. ( #1421 )
...
(cherry picked from commit 3bd30f7382
)
6 years ago
Aniket
e990525c2e
RefundEscrow's events renamed ( #1418 )
...
* fixes #1414
(cherry picked from commit 844a96d0b9
)
6 years ago
Mikhail Melnik
2c40ffa011
Improve encapsulation on ERC165 and update code style guide ( #1379 )
...
* use prefix underscore for internal state variables
* make _supportedInterfaces private
(cherry picked from commit 03dfb2965c
)
6 years ago
Nicolás Venturo
10a5864fdf
First test helpers tests ( #1369 )
...
* Removed unused advanceToBlock.
* Added advanceBlock tests.
* Fixed advanceToBlock tests.
* Added single argument tests.
* Finished inLogs tests.
* Fixed linter errors.
* Fixed linter errors.
(cherry picked from commit 9f822906b8
)
6 years ago
Nicolás Venturo
7ec6079784
Fix typo in ARCHITECTURE.md ( #1406 )
...
(cherry picked from commit eb92fd1f48
)
6 years ago
Leo Arias
5e82a64a01
Add a code style rule to make all state variables private ( #1390 )
...
(cherry picked from commit 076cb7decd
)
6 years ago
Aniket
3266de1b5c
Non-constructor initialization removed ( #1403 )
...
* 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 #1391
(cherry picked from commit da67e435b1
)
6 years ago
Nicolás Venturo
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
)
6 years ago
Aniket
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
)
6 years ago
Aniket
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
)
6 years ago
Aniket
109eba9273
Replaces `amount` with `value` for consistency ( #1378 )
...
* fixes #1372
* done in ERC20Capped and ERC20Mintable
(cherry picked from commit fd4de77651
)
6 years ago
Nicolás Venturo
13fb1f662a
Fixed test path.
...
(cherry picked from commit f4d6f40442
)
6 years ago
Nicolás Venturo
2f3f0d3c8a
Created test utils directory
...
(cherry picked from commit 269981ee6a
)
6 years ago
Nicolás Venturo
0678f67289
Merged latestTime, increaseTime and duration into a time helper. ( #1364 )
...
(cherry picked from commit 34bc709bc2
)
6 years ago
Aniket
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
)
6 years ago
Aniket
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
)
6 years ago
Nicolás Venturo
598a0358fc
Dangling commas are now required. ( #1359 )
...
(cherry picked from commit a6889776f4
)
6 years ago
Jakub Bogacz
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
)
6 years ago
Jakub Bogacz
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
)
6 years ago
Nicolás Venturo
62ed8e2fe4
Removed BreakInvariantBounty. ( #1424 )
...
(cherry picked from commit 9be0f100c4
)
6 years ago
Francisco Giordano
e7aa8dedbc
Turn off blank-lines Solium rule ( #1284 )
...
* turn off blank-lines rule
* remove triple newlines
(cherry picked from commit 9b37104655
)
6 years ago
Martín
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
)
6 years ago
Roman Exempliarov
a3bb56769e
Remove lodash from tests ( #1323 )
...
(cherry picked from commit d062352de7
)
6 years ago
Jakub Bogacz
f8b0cec15b
Add unit test specific to Address utils ( #1251 ) ( #1316 )
...
(cherry picked from commit 7825caa1fd
)
6 years ago
Jerome de Tychey
7ea34d9e97
Update ERC20.sol ( #1313 )
...
correct typo in doc
(cherry picked from commit b644c72eb0
)
6 years ago
Francisco Giordano
2a8146a45d
Fix README snippet typo
...
(cherry picked from commit 0b8296e525
)
6 years ago
Francisco Giordano
2e14386eda
fix readme snippet so it is concrete
...
(cherry picked from commit 651f6d8b57
)
6 years ago
Leo Arias
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
6 years ago
Nicolás Venturo
6d415c508b
Crowdsale.buyTokens is now nonReentrant. ( #1438 )
6 years ago
Nicolás Venturo
a936cbf5fb
InitialRate must be strictly larger than finalRate. ( #1441 )
6 years ago
Nicolás Venturo
1ac1ac984e
Fixed how allowance crowdsale checks remaining tokens. ( #1449 )
6 years ago