Francisco
4ff538af58
Fix flaky timestamp tests ( #4046 )
2 years ago
Hadrien Croubois
790cc5b65a
Add timestamp based governor with EIP-6372 and EIP-5805 ( #3934 )
...
Co-authored-by: Francisco Giordano <fg@frang.io>
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: Francisco <frangio.1@gmail.com>
2 years ago
Nicolás Venturo
3e82db2f6f
Migration to truffle 5 (and web3 1.0 (and BN)) ( #1601 )
...
* Now compiling using truffle 5.
* Migrated some test files, missing BN scientific notation usage.
* Now using BN time values.
* Migrate ERC20 tests.
* Migrate all ERC20 tests.
* Migrate utils, payment and ownership tests.
* All tests save ERC721 migrated.
* Migrated ERC721 tests.
* Fix lint errors.
* Delete old test helpers.
* Fix remaining crowdsale tests.
* Fix signature bouncer tests.
* Update how constants is used.
* Compile script pre-removes the build dir.
* Fix SafeMath tests.
* Revert "Compile script pre-removes the build dir."
This reverts commit 247e745113
.
* Fix linter errors.
* Upgrade openzeppelin-test-helpers dependency.
* Update openzeppelin-test-helpers dependency.
* Define math constants globally.
* Remove unnecessary ether unit.
* Roll back reduced ether amounts in tests.
* Remove unnecessary toNumber conversions.
* Delete compile script.
* Fixed failing test.
6 years ago
Nicolás Venturo
b7d56d5471
Added explicity pify dep, deprecating web3.eth. ( #1532 )
...
* Added explicity pify dep, deprecating web3.eth.
* Dropped promisify in favor of pify.
6 years ago
Nicolás Venturo
6fd0010325
Moved advanceBlock to time. ( #1523 )
...
* Added advanceBlock to time, moved tests around.
* Removed the standalone advanceBlock.
* Removed the 'id' field
* Fixed linter error.
* Removed the 'latest' test, since it only works if time hasn't been fast-forwarded.
* Removed .only directive.
6 years ago
Nicolás Venturo
6407d7818d
Added time helper tests. ( #1521 )
...
* Added time tests.
* Minor improvements.
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
Nicolás Venturo
34bc709bc2
Merged latestTime, increaseTime and duration into a time helper. ( #1364 )
6 years ago
Nicolás Venturo
567b773242
Prefer const in test files ( #1117 )
...
* Removed all instances of var.
* Sorted eslintrc rules.
* Made eslint rule severity explicit.
* Now prefering const over let.
7 years ago
Nicolás Venturo
cea2a85a42
Remove Babel ( #1074 )
...
* Test helpers no longer rely on Babel.
* Behaviours are no longer imported.
* Removed Babel dependency.
* Fixed linter errors.
7 years ago
Arun Kumar
40b5594f52
Promisify web3 sync requests in tests ( #1009 )
7 years ago
Francisco Giordano
a7e91856f3
Update to Truffle 4.1.5 and Ganache 6.1.0 ( #876 )
...
* Update to ganache-cli v6.1.0 and truffle v4.1.0
* Update to stable version of ganache-cli
* fix: update event emission warning
- Fix event emission warnings for solidity 4.21 after truffle has been
updated to use this version
* fix pr review comments
* update to truffle v4.1.5
* update package-lock
* add additional emit keywords
* update solidity-coverage to 0.4.15
* update to solium 1.1.6
* fix MerkleProof coverage analysis by testing through wrapper
* change version pragma to ^0.4.21
* fix solium linting errors
7 years ago
Matt Condon
8662846838
feat: apply eslint --fix across project
7 years ago
Roy Blankman
6d8bb497c8
removing trailing whitespace
7 years ago
Jakub Wojciechowski
0d6846a882
Remove moment.js dependencies - updates after review
8 years ago
Jakub Wojciechowski
e86ac90853
Refactor and remove moment.js usages
8 years ago
Jakub Wojciechowski
99e0f5b5cb
Refactor time manipulation in TokenTimelock tests
8 years ago
Jakub Wojciechowski
46c5759b88
Introduce increaseTimeTo helper method.
8 years ago
Jakub Wojciechowski
7c883b6368
Duration helper and eliminated hardcoded periods
8 years ago
Francisco Giordano
b3ca0c73b3
add a TokenTimelock contract
8 years ago