Amir Bandeali
67ef17f929
Consolidate TransactionSignatureError with SignatureError
2019-09-08 18:55:42 -07:00
Greg Hysen
1dc1218bfc
Sanity check on order offset when hashing
2019-09-06 15:40:47 -07:00
Amir Bandeali
f792d403e5
Add new rich revert errors
2019-09-03 20:11:47 -07:00
Amir Bandeali
ea8669439f
Minor styling and naming changes
2019-09-03 09:48:21 -07:00
Amir Bandeali
75a8b1c081
Use same taker numerator/denominator for all math in calculateFillResults
2019-09-03 09:48:16 -07:00
Amir Bandeali
fd4d10e7a4
Create EIP1271SignatureError rich revert
2019-09-02 11:37:39 -07:00
Amir Bandeali
8410ee9d2f
Remove unnecessary public functions
2019-09-01 11:01:01 -07:00
Alex Towle
dba0d8469d
@0x:contracts-exchange
Addressed review feedback
2019-08-29 15:20:52 -07:00
Alex Towle
7f17033ce3
@0x:contracts-exchange
Added protocol fees to fillOrders and matchOrders
2019-08-28 15:05:13 -07:00
Alex Towle
2c970a0466
@0x:contracts-exchange
Added protocol fees to fill order
2019-08-28 15:01:30 -07:00
Alex Towle
c688b11c86
@0x:contracts-exchange-libs
Added protocol fees to LibFillResults
...
* This commit also squashed some bugs in the reference functions.
Thankfully, combinatorial testing had our back!
2019-08-28 15:01:30 -07:00
Amir Bandeali
020e7609c3
Add assetProxyId param to AssetProxyExistsError
2019-08-25 17:06:37 -07:00
Amir Bandeali
5e51233b49
Address PR feedback
2019-08-22 17:11:50 -07:00
Amir Bandeali
44753bb168
Add TransactionInvalidContextError and remove NO_REENTRANCY errorCode
2019-08-22 17:04:15 -07:00
Amir Bandeali
2134537bc3
Add TransactionGasPriceError to LibExchangeRichErrors
2019-08-22 17:04:14 -07:00
Amir Bandeali
67f91269ee
Add gasPrice to ZeroExTransaction struct
2019-08-22 17:04:14 -07:00
Lawrence Forman
75a4d129f7
@0x/contracts-exchange-libs
: Consolidate FillOrKill
errors into IncompleteFillError
.
2019-08-21 10:59:34 -04:00
Lawrence Forman
d8372f73bc
@0x/contracts-exchange-libs
: Add new revert types and use abi.decode()
instead of LibBytes
.
2019-08-21 10:59:34 -04:00
Amir Bandeali
c366a4bd83
Update copyright dates
2019-08-20 12:49:01 -07:00
Amir Bandeali
7ac30c5153
Merge branch '3.0' into feat/3.0/optimizeConstants
2019-08-15 15:20:48 -07:00
Amir Bandeali
1dae1d244c
Rename hashing functions in LibOrder and LibZeroExTransaction
2019-08-14 13:38:12 -07:00
Amir Bandeali
c5d4559300
Remove generate-exchange-selectors script
2019-08-14 11:07:22 -07:00
James Towle
f66212ce23
Merge pull request #2051 from jalextowle/feature/3.0/exchange-libs/unit-tests
...
`@0x:contracts-exchange-libs` Added unit tests to exchange-libs
2019-08-14 10:52:10 -07:00
Amir Bandeali
070147db52
Fix build errors
2019-08-13 16:43:55 -07:00
Amir Bandeali
dc31294440
Move LibExchangeRichErrors to exchange-libs package
2019-08-13 16:20:35 -07:00
Amir Bandeali
7cfceebeb8
Remove unused ABIEncoderV2 pragma
2019-08-13 16:19:48 -07:00
Amir Bandeali
0e2616f16b
Rename _rrevert to rrevert
2019-08-13 16:19:48 -07:00
Amir Bandeali
245956c658
Create test contracts for each exchange lib
2019-08-13 16:11:09 -07:00
Amir Bandeali
7eb64eb3dc
Update test contracts
2019-08-13 16:09:48 -07:00
Amir Bandeali
f45014f75b
Convert LibOrder and LibZeroExTransaction to libraries
2019-08-13 16:09:48 -07:00
Amir Bandeali
74a5c8c23c
Simplify LibEIP712ExchangeDomain to be used only for generating domain hash
2019-08-13 16:09:48 -07:00
Amir Bandeali
28e781db15
Convert LibFillResults to library
2019-08-13 16:09:48 -07:00
Amir Bandeali
6ca9d4ee78
Convert LibMath to library
2019-08-13 16:09:48 -07:00
Amir Bandeali
b05a2a90d0
Move FillResults calculations into LibFillResults
2019-08-13 16:09:48 -07:00
Amir Bandeali
242715240b
Do not inherit libs
2019-08-13 16:07:07 -07:00
Amir Bandeali
65f17fd76e
Make LibEIP712 a library
2019-08-13 16:04:33 -07:00
Lawrence Forman
ae454b0892
@0x/contracts-exchange-libs
: Regenerate selectors.
2019-08-09 22:15:33 -04:00
Alex Towle
c318b849fe
@0x:contracts-exchange-libs
Added unit tests to exchange-libs
2019-08-09 17:28:36 -07:00
Lawrence Forman
f791cd3a37
@0x/contracts-exchange-libs
: Remove unecessary checks for zero
...
denominator.
`@0x/contracts-exchange-libs`: `LibMath` tests from `@0x/contracts-exchange` into this package.
`@0x/contracts-exchange-libs`: Adjust logic in reference functions to be
closer to solidity implementation.
2019-08-06 15:30:30 -04:00
James Towle
ffa32f7610
Changed the returndata for batchMatchOrders
2019-07-23 15:53:26 -07:00
James Towle
e0cff4b74e
Updated batchMatchOrders to fix an edge case and added tests
2019-07-23 15:53:26 -07:00
James Towle
1a385de367
Improved the efficiency of batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
f289b3112b
Implemented batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
6384518ee1
@0x:contracts-exchange
Updated LibMath to use library rich errors
2019-07-23 15:53:25 -07:00
James Towle
a1a6c3e40c
Updated the DivisionByZeroError to not use assembly
2019-07-23 15:52:20 -07:00
James Towle
a2b19a1b9d
Updated DivisionByZero error
2019-07-23 15:52:20 -07:00
James Towle
4d1a942e79
Removed unnecessary files and code
2019-07-23 15:52:20 -07:00
James Towle
eb4afa8f2c
Update contracts/exchange-libs/contracts/src/interfaces/IMixinLibMathRichErrors.sol
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-23 15:52:20 -07:00
James Towle
468bbea44d
Update contracts/exchange-libs/contracts/src/interfaces/IMixinLibMathRichErrors.sol
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com>
2019-07-23 15:52:20 -07:00
James Towle
e229d2d59f
Updated tests to work with LibMathRichErrors
2019-07-23 15:52:20 -07:00