Amir Bandeali
3760eb5baf
Add getBalancesAndAllowances
2018-08-21 18:14:22 -07:00
Amir Bandeali
7fa5b474eb
Add ZRX balances and allowances to TraderInfo
2018-08-21 13:53:44 -07:00
Amir Bandeali
0918f95421
Don't throw if ERC721 token isn't owned
2018-08-21 11:47:28 -07:00
Amir Bandeali
be67c25b0a
Add OrderValidator contract
2018-08-21 11:47:28 -07:00
Amir Bandeali
1ba26ea5e8
Remove redundant constructor args
2018-08-21 10:59:54 -07:00
Amir Bandeali
8bce73dc67
Fix typos, run prettier, and allow anyone to call on DummyERC721Token
2018-08-16 17:32:16 -07:00
Amir Bandeali
a82e36c1d4
Add ERC721Receiver that returns incorrect value
2018-08-16 17:31:21 -07:00
Amir Bandeali
6dde6d7cb7
Increase max mintable amount
2018-08-16 17:31:21 -07:00
Amir Bandeali
1d70724bcf
Fix DummyERC721Receiver
2018-08-16 17:31:21 -07:00
Amir Bandeali
4dd59a370d
Add tests for ERC20 token with no return values
2018-08-16 17:31:21 -07:00
Amir Bandeali
7a6e647386
Add constructor back to DummyERC721Token
2018-08-16 17:31:21 -07:00
Amir Bandeali
f5459164d2
Restructure directories
2018-08-16 17:31:21 -07:00
Amir Bandeali
bb3c345891
Update ERC20Token
2018-08-16 17:31:21 -07:00
Amir Bandeali
0f3201d72a
Optimize ERC721Token
2018-08-16 17:31:21 -07:00
Amir Bandeali
1b5c5e7a3b
Change withdrawERC20 => withdrawAsset, reuse transfer logic
2018-08-09 14:07:27 -07:00
Amir Bandeali
b9d8d2d5e3
Make marketBuy functions revert if entire amount not filled
2018-08-09 11:26:32 -07:00
Amir Bandeali
d10e2652ae
Revert incrementing memory ptr in dispatchTransferFrom
2018-08-08 15:44:43 -07:00
Amir Bandeali
9a5d7b7635
Test abiEncodeFillOrder as part of combinatorial follOrder tests
2018-08-08 15:44:43 -07:00
Amir Bandeali
1fb3da6b53
Increment free memory pointer for internal Exchange functions that use asm
2018-08-08 15:44:43 -07:00
Amir Bandeali
68fb1bf376
fix comments and styling for MixinSignatureValidator
2018-08-08 13:58:29 -07:00
Amir Bandeali
149c07dfd2
Use asm for hashEIP712Message, increment free memory pointer after asm hashing functions
2018-08-08 11:15:38 -07:00
Amir Bandeali
3d6cf50364
Fix comments, styling, and optimize hashOrder
2018-08-07 14:34:28 -07:00
Alex Browne
554d5f97df
Add combinatorial tests for internal Exchange functions ( #807 )
...
* 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
2018-07-26 22:09:55 -07:00
Fabio Berger
24ab24879c
Modify WETH9 event arg names to be identical to ERC20 standard suggested names
2018-07-25 18:10:10 +02:00
Amir Bandeali
fac90c446c
Update orderEpoch comments
2018-07-24 10:46:08 -07:00
Amir Bandeali
06396b8874
Remove ERC721 callback functions
2018-07-23 10:02:51 -05:00
Amir Bandeali
e5e68de2d7
Use != instead of > in loops, add sanity checks to market fill functions
2018-07-23 10:02:51 -05:00
Amir Bandeali
dcc0908617
Add more tests and fixes
2018-07-23 10:02:51 -05:00
Amir Bandeali
45d68285f1
Remove MConstants and MixinConstants for LibConstants
2018-07-23 10:02:51 -05:00
Amir Bandeali
e20f3a0f97
Remove redundant external call by reimplementing fillOrderNoThrow
2018-07-23 10:02:51 -05:00
Amir Bandeali
c5029e61e3
Remove orders length check
2018-07-23 10:02:51 -05:00
Amir Bandeali
e90ed01105
Add assertValidFillResults
2018-07-23 10:02:51 -05:00
Amir Bandeali
4636d5fbc2
Store orders length in varible before looping over orders
2018-07-23 10:00:23 -05:00
Amir Bandeali
3506ec1caa
Use transferFrom instead of safeTransferFrom
2018-07-23 10:00:23 -05:00
Amir Bandeali
799ff2a5c3
Fix rounding error issues, use different logic when makerAsset is ZRX
2018-07-23 10:00:23 -05:00
Amir Bandeali
ec5f768f9b
Rename marketSellEth => marketSellWeth
2018-07-23 10:00:23 -05:00
Amir Bandeali
66ab010055
Update percentage constants
2018-07-23 10:00:23 -05:00
Amir Bandeali
6fb157488c
Update transferEthFeeAndRefund, add check to ERC721 transfer
2018-07-23 10:00:23 -05:00
Amir Bandeali
814518dd80
Refactor forwarding contract architecture, remove batch functions
2018-07-23 10:00:23 -05:00
Amir Bandeali
c2ae9f62a4
Add tests to verify ZRX_ASSET_DATA
2018-07-23 09:34:47 -05:00
Amir Bandeali
4159a8fe6e
Add comments for deploying with constant ZRX_ASSET_DATA
2018-07-23 09:34:47 -05:00
Amir Bandeali
d8b44283a2
Move example contracts into new examples dir
2018-07-23 09:34:47 -05:00
Amir Bandeali
195d11f9d0
Merge pull request #877 from 0xProject/feature/contracts/removeERC721Callback
...
Removed receiverData and `onReceive` callback from ERC721 proxy.
2018-07-22 18:14:09 -05:00
Amir Bandeali
02d50a513a
Hard code fillOrder selector into abiEncodeFillOrder
2018-07-20 07:37:40 -07:00
Greg Hysen
d61759f6dd
Returns byte array instead of memory range for encoding fillOrder calldata
2018-07-20 07:37:40 -07:00
Greg Hysen
5790ed7ba9
Created LibAbiEncoder with fillOrderNoThrow
2018-07-20 07:37:40 -07:00
Greg Hysen
e1a9f3435f
Removed receiverData from ERC721 Proxy Id generation
2018-07-18 15:52:14 +02:00
Greg Hysen
9f74feb347
Removed receiverData and onReceive
callback from ERC721 proxy.
2018-07-18 15:50:58 +02:00
Amir Bandeali
b6172c3965
Reorder checks in getOrderInfo
2018-07-17 12:18:16 -07:00
Amir Bandeali
02ddfa07a7
Add getOrdersInfo function
2018-07-17 12:18:16 -07:00