Nicolás Venturo
308a4c9907
Draft EIP 1820 ( #1677 )
...
* Add barebones EIP1820 support.
* Update openzeppelin-test-helpers dependency to have ERC1820 support.
* Add tests for ERC1820.
* Improve inline documentation.
* Add changelog entry.
* Update test-helpers, refactor tests to use new helpers.
* Rename ERC1820 to ERC1820Implementer.
* Improve implementer docstring.
* Remove _implementsInterfaceForAddress.
* update openzeppelin-test-helpers to 0.2.0
* Update contracts/drafts/ERC1820Implementer.sol
Co-Authored-By: nventuro <nicolas.venturo@gmail.com>
* Fix how solidity coverage is run to allow for free events.
* Fix coverage testing script.
6 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
Aniket
70fd243e3b
Test setup helper added ( #1482 )
...
* 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
* conflict fixes
* fixes #1205
* minor change
* suggested changes
* reviewed changes
* final update
6 years ago
Nicolás Venturo
b9793abec6
balanceDifference tests and application ( #1514 )
...
* Added balanceDifference tests.
* Added balanceDifference tests.
* Now using balanceDifference in all (most) tests.
* Fixed typo.
6 years ago
Aniket
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
)
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
Francisco Giordano
4eb4d7114d
Allow non-beneficiaries to trigger release of their funds ( #1275 )
...
* add address argument to PullPayments#withdrawPayments
* add argument to SplitPayment#claim
* add address argument to PostDeliveryCrowdsale#withdrawTokens
* add address argument to RefundableCrowdsale#claimRefund
* rename SplitPayment#claim to SplitPayment#release
7 years ago
Nicolás Venturo
20cf885430
No longer assigning awaits to temporary variables. ( #1216 )
7 years ago
Nicolás Venturo
ac91af9a6a
Replace all asserts with chai.should ( #1183 )
...
* Moving towards chai.should.
* Fixed failing tests.
* Fixed linter errors.
* Revert package-lock.json changes.
* Fixed failing tests.
* s/eq/equal
* Addressed review comment
7 years ago
Nicolás Venturo
4544df47da
All tests now use account names, and dont use accounts[0] (except ERC… ( #1137 )
...
* All tests now use account names, and dont use accounts[0] (except ERC721)
* Added account names to some missing contracts.
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
Nicolás Venturo
8fd072cf8e
Escrows ( #1014 )
...
* Added basic Escrow
* PullPayment now uses an Escrow, removing all trust from the contract
* Abstracted the Escrow tests to a behaviour
* Added ConditionalEscrow
* Added RefundableEscrow.
* RefundableCrowdsale now uses a RefundEscrow, removed RefundVault.
* Renaming after code review.
* Added log test helper.
* Now allowing empty deposits and withdrawals.
* Style fixes.
* Minor review comments.
* Add Deposited and Withdrawn events, removed Refunded
* The base Escrow is now Ownable, users of it (owners) must provide methods to access it.
7 years ago
Matt Condon
f4228f1b49
fix: reference contract name rather than filepath ( #698 )
7 years ago
Facundo Spagnuolo
b925b2dae6
Organize test files following contracts folders structure
7 years ago
Santiago Palladino
1455a5a942
Re-enable solidity coverage
...
- Upgrade version
- Re-enable in travis.yml
- Move mocks to contracts folder for instrumentation
7 years ago
Matt Condon
d07bdccc0c
feat: manually fix linting errors across tests
7 years ago
Matt Condon
227a335399
feat: move mock solidity contracts to mocks/ folder
7 years ago
Matt Condon
58abd66969
feat: rename all test files to include .test.js postfix
7 years ago
Matt Condon
8662846838
feat: apply eslint --fix across project
7 years ago
Roy Blankman
6d8bb497c8
removing trailing whitespace
7 years ago
Rudy Godoy
6735a3ccd6
Renamed tAMOUNT to much friendly amount
8 years ago
Rudy Godoy
60ef284a9a
Typo in variable, using global tAMOUNT for the latest test case.
8 years ago
Rudy Godoy
de99e7bf34
Prevent DRY
8 years ago
Jorge Izquierdo
a6a2ee2bf1
Merge with master
8 years ago
AugustoL
a8bcb0fcfe
Added totalPayments uint on PullPayments contract
8 years ago
Manuel Araoz
9bd51db2b2
refactor tests for truffle 3
8 years ago
Angello Pozo
eb41a81faa
fix: made code cleaner. added helper. removed done from most tests.
8 years ago
Angello Pozo
688106e9c3
fix: made all the tests consistent. now with done.
8 years ago
Angello Pozo
f2142545c7
modified test to use async await pattern.
8 years ago
Manuel Araoz
25a0210118
improve PullPaymentCapable
8 years ago
Michael J. Curry
a9d030acb4
fix names, tests passing
8 years ago
Manuel Araoz
503faa051d
rename PullPaymentCapable=>PullPayment
8 years ago
Manuel Araoz
8b921dc6ec
fix pullpaymentcapable test
8 years ago
Manuel Araoz
8f4027cdf6
add PullPaymentCapable test
8 years ago