5caecf548c
getter added for an array of tokens held by an owner ( #1522 )
...
* 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 #1512
* Update test/token/ERC721/ERC721Full.test.js
Co-Authored-By: Aniket-Engg <30843294+Aniket-Engg@users.noreply.github.com >
2018-12-05 17:45:27 -03:00
b7d56d5471
Added explicity pify dep, deprecating web3.eth. ( #1532 )
...
* Added explicity pify dep, deprecating web3.eth.
* Dropped promisify in favor of pify.
2018-12-03 19:15:30 -03:00
e7d6e86395
Make Truffle provider creation lazy ( #1526 )
...
* make provider creation lazy
* change getter for function
* remove unused networks from truffle config
* remove unused dotenv package
* remove truffle-hdwallet-provider dependency
* install ethereumjs-util
* replace sha3 with keccak256 for ethereumjs-util v6
2018-12-02 00:09:58 -03:00
c0bda4db88
Updated sendTransaction, added tests. ( #1528 )
...
* Renamed sendTransaction to send, improved API.
* Added send tests.
* Now using promisified web3
2018-12-01 02:47:32 -03:00
9faebb5365
Added makeInterfaceId tests. ( #1530 )
2018-11-29 23:10:03 -03:00
8dae261d20
Deleted transactionMined (unused). ( #1527 )
2018-11-29 19:09:36 -03:00
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.
2018-11-29 18:23:20 -03:00
7ef2730506
Approval events on transferFrom and burnFrom ( #1524 )
...
* transferFrom now emits an Approval event, indicating the updated allowance.
* Updated burnFrom to also emit Approval.
* Added notices about the extra Approval events.
2018-11-29 12:06:47 -03:00
6407d7818d
Added time helper tests. ( #1521 )
...
* Added time tests.
* Minor improvements.
2018-11-27 19:21:08 -03:00
c2de8ffd14
Now testing events in constructors! ( #1511 )
...
* Added inTransaction tests.
* Added expectEvent.inConstructor.
* Changed inTransaction, removed decodeLogs.
* Flipped comparison to improve the error message.
* Improved expectEvent tests.
* Migrated tests to use expectEvent.
* Added roles constructor tests.
* Fixed linter errors.
* Made lodash a dev dependency.
* Added more inLogs tests.
* Update expectEvent.test.js
* Removed lodash.
* Moved role constructor tests to public role behavior.
* Revert "Flipped comparison to improve the error message."
This reverts commit 438c57833d .
* Replaced chai-as-promised with shouldFail.
2018-11-27 17:56:26 -03:00
f0e12d5301
ether and shouldFail tests ( #1513 )
...
* Added ether tests.
* Added shouldFail base function and tests.
* Updated test descriptions.
* Reduced gas limit on out-of-gas tests.
2018-11-27 17:20:21 -03:00
b9793abec6
balanceDifference tests and application ( #1514 )
...
* Added balanceDifference tests.
* Added balanceDifference tests.
* Now using balanceDifference in all (most) tests.
* Fixed typo.
2018-11-26 15:41:39 -03:00
281338409b
Test description fix in ERC20Pausable.test.js ( #1501 )
...
Small change in test description, should be "allows to approve..." instead of "allow to transfer..." in approve section, where test actualy try to approve, not to transfer.
2018-11-22 12:01:17 -03:00
b5892a2b5e
SafeMath Test Coverage Improved ( #1477 )
...
* 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 #1386
* Update SafeMath.test.js
2018-11-01 16:02:36 -03:00
a936cbf5fb
InitialRate must be strictly larger than finalRate. ( #1441 )
2018-10-19 12:37:24 -06:00
1ac1ac984e
Fixed how allowance crowdsale checks remaining tokens. ( #1449 )
2018-10-19 12:12:16 -06:00
9155bfe27f
IncPriceCrowdsale consistently returns 0 outside of the crowdsale window. ( #1442 )
2018-10-18 16:36:27 -03:00
1c5f16ae26
Closing time must be strictly after opening time. ( #1440 )
2018-10-18 16:36:11 -03:00
d9fdffe88e
Internal crowdsales ( #1439 )
...
* Made some internal crowdsale methods internal.
* Made all Crowdsale constructors internal.
2018-10-18 16:35:57 -03:00
315f426f5c
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.
2018-10-18 12:25:03 -03:00
67dac7ae99
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.
2018-10-18 11:27:46 -03:00
a07499796a
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
2018-10-18 11:26:54 -03:00
fcab9c89f2
Added address of pauser/unpauser in events ( #1410 )
...
* Added address of pauser/unpauser in events
* Added the account to the Pausable tests.
2018-10-18 11:26:39 -03:00
cbe414864f
Events added to Secondary ( #1425 )
...
* Update contracts/ownership/Secondary.sol
* Update Secondary.sol
* Update Secondary.test.js
* Update Secondary.test.js
* Update Secondary.sol
2018-10-18 11:00:33 -03:00
0231fac514
Added leading underscore to internal functions, renamed supportsInterfaces. ( #1435 )
2018-10-18 10:49:01 -03:00
96d6103e0b
Made some inherit-only contracts internal. ( #1433 )
...
* Made some inherit-only contracts internal.
* Added OwnableMock.
2018-10-18 10:47:35 -03:00
df3c113711
Made some TokenVesting public functions private. ( #1427 )
...
* Made some TokenVesting public functions private.
* Fixed linter error.
2018-10-17 18:18:41 -03:00
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.
2018-10-17 17:22:25 -03:00
d8ab8a00f2
Moved some test files around to better reflect the directory layout. ( #1428 )
2018-10-17 16:58:49 -03:00
9be0f100c4
Removed BreakInvariantBounty. ( #1424 )
2018-10-16 17:21:24 -03:00
3bd30f7382
Roles.add and remove now require pre-conditions on the account. ( #1421 )
2018-10-16 17:20:33 -03:00
844a96d0b9
RefundEscrow's events renamed ( #1418 )
...
* fixes #1414
2018-10-16 10:37:04 -03:00
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.
2018-10-10 20:55:10 -03:00
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.
2018-10-09 16:23:55 -03:00
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
2018-10-09 15:46:09 -03:00
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
2018-10-09 13:32:45 -03:00
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.
2018-10-08 11:01:33 -03:00
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
2018-10-08 10:51:06 -03:00
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.
2018-10-04 11:10:08 -03:00
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
2018-10-04 09:57:37 -03:00
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.
2018-10-03 12:50:01 -03:00
f4d6f40442
Fixed test path.
2018-10-02 10:48:54 -03:00
269981ee6a
Created test utils directory
2018-10-02 10:38:02 -03:00
34bc709bc2
Merged latestTime, increaseTime and duration into a time helper. ( #1364 )
2018-10-02 07:07:11 -03:00
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
2018-10-01 12:23:47 -03:00
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
2018-10-01 09:39:57 -03:00
a6889776f4
Dangling commas are now required. ( #1359 )
2018-09-28 19:20:43 -06:00
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
2018-09-27 19:40:18 -03:00
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
2018-09-27 11:33:28 -03:00
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
2018-09-26 17:36:45 -03:00