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
Francisco Giordano
904b41ec79
Improve README ( #1309 )
...
* add logo
* new readme
* add large logo
* improve readme
* Update README.md
* add link to guides
* remove leftover sentence
6 years ago
Facundo Spagnuolo
92133be7ea
Add ERC20 opt-in migration contract ( #1054 )
...
* Extract standard token behaviuor to reuse it in other tests
* Add opt in ERC20 migration contract
* Make migration contract not to depend from standard token
* Changes based on feedback
* Improve MigratableERC20 inline documentation
* move behaviors to behaviors directory
* refactor MigratableERC20 into ERC20Migrator
* fix errors
* change expectEvent to support multiple events with same name
* fix tests
* update documentation
* rename MigratableERC20 files to ERC20Migrator
* move to drafts
* test beginMigration
* rename to ERC20Migrator
* missing semicolon (╯°□°)╯︵ ┻━┻
* add non-zero check
* improve documentation based on review comments
* improve test descriptions
* improve docs
* add getters
* fix contract
* improve tests
6 years ago
Nicolás Venturo
4b33eaefa2
Improved ERC721 granularity ( #1304 )
...
* Split enumerable and metadata implementations.
* Renamed ERC721Basic to ERC721, and ERC721 to ERC721Full.
* Fixed linter errors.
6 years ago
Leo Arias
bafdcf0701
Remove CanReclaimToken ( #1306 )
6 years ago
Nicolás Venturo
6cae0f458d
Role library now requires non-zero addresses. ( #1303 )
...
* The role library now requires non-zero addresses.
* Fixed SignatureBouncer checks with null address.
* change ternary operator for or operator
* adapt to new variable name convention
* Update Roles.sol
6 years ago
Leo Arias
fa49e5189d
Remove Minted and TokensBurned events ( #1305 )
...
* Remove the Minted event
* Remove the TokensBurned event
* Remove unused
6 years ago
Nicolás Venturo
254210f699
Improve role behavior tests ( #1300 )
...
* The public role behavior now also tests the modifer.
* Fixed linter error.
6 years ago