Nicolás Venturo
96d6103e0b
Made some inherit-only contracts internal. ( #1433 )
...
* Made some inherit-only contracts internal.
* Added OwnableMock.
6 years ago
Nicolás Venturo
df3c113711
Made some TokenVesting public functions private. ( #1427 )
...
* Made some TokenVesting public functions private.
* Fixed linter error.
6 years ago
Nicolás Venturo
f3df2dab3d
Moved Escrows into an escrow subdirectory, improved docs. ( #1430 )
...
* Moved Escrows into an escrow subdirectory, improved docs.
* Fixed escrow mock.
* Fixed some more imports.
6 years ago
Nicolás Venturo
d8ab8a00f2
Moved some test files around to better reflect the directory layout. ( #1428 )
6 years ago
Nicolás Venturo
9be0f100c4
Removed BreakInvariantBounty. ( #1424 )
6 years ago
Nicolás Venturo
3bd30f7382
Roles.add and remove now require pre-conditions on the account. ( #1421 )
6 years ago
Aniket
844a96d0b9
RefundEscrow's events renamed ( #1418 )
...
* fixes #1414
6 years ago
Nicolás Venturo
9f822906b8
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.
6 years ago
Nicolás Venturo
b0da0fded0
Replaced assertJump, assertRevert and expectThrow with shouldFail. ( #1363 )
...
* Replaced assertJump, assertRevert and expectThrow with shouldFail.
* Fixed linter errors.
* Fixed typo.
* Made the helpers async.
6 years ago
Aniket
58a42443df
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
6 years ago
Aniket
af42c39e6c
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
6 years ago
Jakub Bogacz
f7e53d90fa
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.
6 years ago
Aniket
41f84f8b40
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
6 years ago
Aniket
7c984968d8
Prevents Bounty from being claimed twice ( #1374 )
...
* 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 #1356
* Removed extra semicolon.
(cherry picked from commit c87433e0c2
)
6 years ago
Francisco Giordano
bd8345a153
Separate ERC721Mintable ( #1365 )
...
* separate part of ERC721Mintable into ERC721MetadataMintable
* remove mint and burn from 721 tests
* Fixed linter error.
* fix ERC721 mint tests
* Minor fixes.
(cherry picked from commit 744f567f40
)
6 years ago
Francisco Giordano
744f567f40
Separate ERC721Mintable ( #1365 )
...
* separate part of ERC721Mintable into ERC721MetadataMintable
* remove mint and burn from 721 tests
* Fixed linter error.
* fix ERC721 mint tests
* Minor fixes.
6 years ago
Aniket
b41b125c15
`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
6 years ago
Aniket
c87433e0c2
Prevents Bounty from being claimed twice ( #1374 )
...
* 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 #1356
* Removed extra semicolon.
6 years ago
Nicolás Venturo
f4d6f40442
Fixed test path.
6 years ago
Nicolás Venturo
269981ee6a
Created test utils directory
6 years ago
Nicolás Venturo
34bc709bc2
Merged latestTime, increaseTime and duration into a time helper. ( #1364 )
6 years ago
Aniket
6ae041bca6
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
6 years ago
Aniket
fa1dfbd113
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
6 years ago
Nicolás Venturo
a6889776f4
Dangling commas are now required. ( #1359 )
6 years ago
dwardu
76169cda40
Fixed a broken payment test (+ another small fix) ( #1318 )
...
* Fixed a broken payment test
* In PR template, npm run lint:fix, not lint:all:fix
* In SplitPayment test, replaced an await-in-loop with Promise.all
(cherry picked from commit b79196f911
)
6 years ago
Leo Arias
08bf6bbed9
Add missing tests to ECSDA ( #1248 )
...
* fix: refactor sign.js and related tests
* fix: remove unused dep
* fix: update package.json correctly
* Add missing tests to ECRecovery
* fix lint
* Reorganize the tests
* Reuse signature
* fix static errors
* Apply suggestions by @frangion and @nventuro
* Remove only
* More suggestions
* Remove unnecessary max-len
* remove only
(cherry picked from commit 75c0a59bb4
)
6 years ago
Francisco Giordano
8c394de450
Add SignatureBouncer test for when msg.data is too short ( #1360 )
...
* add test for msg.data too short
* fix test to hit that branch
* Update SignatureBouncer.test.js
(cherry picked from commit 1a4e5346ed
)
6 years ago
Francisco Giordano
1a4e5346ed
Add SignatureBouncer test for when msg.data is too short ( #1360 )
...
* add test for msg.data too short
* fix test to hit that branch
* Update SignatureBouncer.test.js
6 years ago
Jakub Bogacz
536262f2ec
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
6 years ago
Leo Arias
75c0a59bb4
Add missing tests to ECSDA ( #1248 )
...
* fix: refactor sign.js and related tests
* fix: remove unused dep
* fix: update package.json correctly
* Add missing tests to ECRecovery
* fix lint
* Reorganize the tests
* Reuse signature
* fix static errors
* Apply suggestions by @frangion and @nventuro
* Remove only
* More suggestions
* Remove unnecessary max-len
* remove only
6 years ago
Jakub Bogacz
947de54cee
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
6 years ago
Nicolás Venturo
fa5ecd03cb
Improved bounty tests. ( #1350 )
...
* Improved bounty tests.
* Fixed linter errors.
* Addressed review comments.
(cherry picked from commit ae109f69cc
)
6 years ago
Nicolás Venturo
ae109f69cc
Improved bounty tests. ( #1350 )
...
* Improved bounty tests.
* Fixed linter errors.
* Addressed review comments.
6 years ago
Nicolás Venturo
1b0c6b94b9
Removed mintingFinished. ( #1351 )
...
* Removed mintingFinished from ERC20Mintable.
* Removed MintingFinished from ERC721Mintable.
* Removed MintingFinished event.
(cherry picked from commit 5fdeaa81d5
)
6 years ago
Nicolás Venturo
5fdeaa81d5
Removed mintingFinished. ( #1351 )
...
* Removed mintingFinished from ERC20Mintable.
* Removed MintingFinished from ERC721Mintable.
* Removed MintingFinished event.
6 years ago
Leo Arias
c9e8a66e85
Add the missing test for ERC721Holder ( #1249 )
...
* Add the missing test for ERC721Holder
* fix lint
* Move the holder test to a separate file
(cherry picked from commit 396680b856
)
6 years ago
Nicolás Venturo
e7c99dd7dd
Roles now emit events in construction and when renouncing. ( #1329 )
...
* release candidate v2.0.0-rc.1
* fix linter error
(cherry picked from commit c12a1c6898
)
* Roles now emit events in construction and when renouncing.
(cherry picked from commit 21198bf1c1
)
6 years ago
Leo Arias
396680b856
Add the missing test for ERC721Holder ( #1249 )
...
* Add the missing test for ERC721Holder
* fix lint
* Move the holder test to a separate file
6 years ago
Nicolás Venturo
21198bf1c1
Roles now emit events in construction and when renouncing. ( #1329 )
...
* release candidate v2.0.0-rc.1
* fix linter error
(cherry picked from commit c12a1c6898
)
* Roles now emit events in construction and when renouncing.
6 years ago
Francisco Giordano
fa739d8af0
Move BreakInvariantBounty to drafts ( #1334 )
...
* move BreakInvariantBounty to drafts
* fix bad imports
6 years ago
Francisco Giordano
6c36bc71a7
Changes to Counter ( #1332 )
...
* rename Index.currentId to current
* use += operator for clarity
* rename Counter.Index to Counter.Counter
* move Counter to drafts
(cherry picked from commit 3e55408cb5
)
6 years ago
Leo Arias
658af64edd
Rename AutoIncrementing to Counter ( #1307 )
...
(cherry picked from commit b4f87bb8fc
)
6 years ago
Francisco Giordano
3e55408cb5
Changes to Counter ( #1332 )
...
* rename Index.currentId to current
* use += operator for clarity
* rename Counter.Index to Counter.Counter
* move Counter to drafts
6 years ago
Martín
4b21fcf5af
Add Mock suffix to variable names #1172 ( #1324 )
...
* Add Mock suffix to variable names #1172
* Add Impl suffix to variable names
6 years ago
Roman Exempliarov
d062352de7
Remove lodash from tests ( #1323 )
6 years ago
Francisco Giordano
ed84f3fcf3
fix linter error
...
(cherry picked from commit c12a1c6898
)
6 years ago
Leo Arias
b4f87bb8fc
Rename AutoIncrementing to Counter ( #1307 )
6 years ago
Jakub Bogacz
7825caa1fd
Add unit test specific to Address utils ( #1251 ) ( #1316 )
6 years ago
dwardu
b79196f911
Fixed a broken payment test (+ another small fix) ( #1318 )
...
* Fixed a broken payment test
* In PR template, npm run lint:fix, not lint:all:fix
* In SplitPayment test, replaced an await-in-loop with Promise.all
6 years ago
Francisco Giordano
c12a1c6898
fix linter error
6 years ago