aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/src/2.0.0/test
Commit message (Collapse)AuthorAgeFilesLines
* safeGetPartialAmount (#1035)Amir Bandeali2018-08-292-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added Test "Should transfer correct amounts when left order is fully filled and values pass isRoundingErrorCeil but fail isRoundingErrorFloor" * Added RoundingError exception to reference function for getPartialAmount * Added RoundingError exception to reference function for getPartialAmount * Added isRoundingErrorCeil to getPartialAmountCeil reference funtion * Computed new values for "Should give right maker a better buy price when correct price is not integral" that does not have a rounding error * Almost all tests for match orders are passing after adding isRoundingErrorCeil check * WIP commit: Added rounding error checks to getPartialAmount * WIP commit: Added rounding error checks to getPartialAmount * Use safe versions of getPartialAmount * Update Exchange internals tests * Run linter * Found new values for "Should transfer correct amounts when right order fill amount deviates from amount derived by `Exchange.fillOrder`" * Fixed merge conflicts * Run all tests * Cleaned up some comments on match Orders tests * Fix tests for geth
* Only use one nonReentrant modifier, remove modifier from fillOrderNoThrow ↵Amir Bandeali2018-08-251-32/+1
| | | | variations
* Update ReentrantERC20Token with new functions and check that revert is ↵Amir Bandeali2018-08-251-35/+75
| | | | occuring for correct reason
* Add ReentrantTokenAmir Bandeali2018-08-251-0/+173
|
* Merge pull request #1003 from 0xProject/feature/contracts/roundupAmir Bandeali2018-08-252-9/+77
|\ | | | | [contracts] Add getPartialAmountCeil and isRoundingErrorCeil
| * Append -Floor to getPartialAmount and isRoundingErrorRemco Bloemen2018-08-252-8/+8
| |
| * Add testsRemco Bloemen2018-08-252-1/+52
| |
| * Add tests for getPartialAmountCeilRemco Bloemen2018-08-251-0/+17
| |
* | Rename TestStaticCall => TestStaticCallReceiverAmir Bandeali2018-08-251-1/+2
| |
* | Remove pragma experimental v0.5.0 and use staticcall is assemblyAmir Bandeali2018-08-252-1/+16
| |
* | Add pragma experimental v0.5.0 to SignatureValidator and add testsAmir Bandeali2018-08-252-0/+65
|/
* Fix typos, run prettier, and allow anyone to call on DummyERC721TokenAmir Bandeali2018-08-172-3/+3
|
* Add ERC721Receiver that returns incorrect valueAmir Bandeali2018-08-171-0/+66
|
* Increase max mintable amountAmir Bandeali2018-08-171-1/+1
|
* Fix DummyERC721ReceiverAmir Bandeali2018-08-171-32/+32
|
* Add tests for ERC20 token with no return valuesAmir Bandeali2018-08-171-0/+116
|
* Add constructor back to DummyERC721TokenAmir Bandeali2018-08-171-0/+12
|
* Restructure directoriesAmir Bandeali2018-08-172-47/+20
|
* Update ERC20TokenAmir Bandeali2018-08-173-5/+9
|
* Optimize ERC721TokenAmir Bandeali2018-08-171-40/+16
|
* Test abiEncodeFillOrder as part of combinatorial follOrder testsAmir Bandeali2018-08-091-0/+1
|
* Increment free memory pointer for internal Exchange functions that use asmAmir Bandeali2018-08-091-1/+21
|
* Add combinatorial tests for internal Exchange functions (#807)Alex Browne2018-07-271-0/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * WIP add combinatorial tests for internal Exchange functions * Change combinitorial testing strategy based on feedback * Check value of filled[orderHash] in updateFilledState tests * Add combinatorial tests for addFillResults * Add combinatorial tests for getPartialAmount * Implement generic `testWithReferenceFuncAsync` * Implement generic `testCombinatoriallyWithReferenceFuncAsync` * Add combinatorial tests for isRoundingError * Add combinatorial tests for calculateFillResults * Add support for Geth in internal contract tests * Fix contract artifacts * Change DECIMAL_PLACES to 78 and add a note. * Document new functions in utils * Optimize tests by only reseting state when needed * Rename/move some files * Print parameter names on failure in testWithReferenceFuncAsync * Add to changelog for utils package * Appease various linters * Rename some more things related to FillOrderCombinatorialUtils * Remove .only from test/exchange/internal.ts * Remove old test for isRoundingError and getPartialAmount * Appease linters again * Remove old todos * Fix typos, add comments, rename some things * Re-add some LibMath tests * Update contract internal tests to use new SafeMath revert reasons * Apply PR feedback from Amir * Apply PR feedback from Remco * Re-add networks to ZRXToken artifact * Remove duplicate Whitelist in compiler.json
* Add tests to verify ZRX_ASSET_DATAAmir Bandeali2018-07-231-0/+57
|
* Move example contracts into new examples dirAmir Bandeali2018-07-236-359/+7
|
* Use 0.4.10 in AssetProxyOwner, add readBytes4 to contract and remove LibBytesAmir Bandeali2018-07-111-5/+18
|
* Remove AbiV2 where unusedAmir Bandeali2018-07-077-10/+10
|
* Apply new linter rulesAmir Bandeali2018-07-0713-82/+83
|
* Contracts 2.0.0 were linted with solhintAlex Shafranovich2018-07-0613-0/+20
|
* Update file structureAmir Bandeali2018-06-3013-0/+1084