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
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
James Towle
3d58dc2a50
Added RichReverts to exchange-libs
2019-07-23 15:51:43 -07:00
James Towle
5813bb9ca8
Updated any remaining contracts using 0.5.5 to 0.5.9
2019-07-23 15:46:16 -07:00
Amir Bandeali
6ddaa6f52a
Add expirationTimeSeconds to ZeroExTransaction schema throughout codebase
2019-07-23 15:46:15 -07:00
Lawrence Forman
b636057251
@0x/contracts-exchange-libs
: Make EIP712_ORDER_SCHEMA_HASH
public.
2019-07-23 15:44:58 -07:00
Lawrence Forman
c692c8f055
@0x/contracts-exchange-libs
: Regenerate LibExchangeSelectors.sol
2019-07-23 15:44:58 -07:00
Lawrence Forman
575842eab4
@0x/contracts-exchange-libs
: Convert generate-exchange-selectors
script to typescript.
2019-07-23 15:43:23 -07:00
Lawrence Forman
14167412e0
@0x/contracts-exchange-libs
: Make generate-exchange-selectors
terminate file with a newline.
2019-07-23 15:26:59 -07:00
Lawrence Forman
2109ed8464
@0x/contracts-exchange-libs
: Add generate-exchange-selectors
package script to regenerate LibExchangeSelectors
from Exchange artifacts.
2019-07-23 15:26:59 -07:00
Lawrence Forman
7cb6795d40
@0x/contracts-exchange-libs
: Add takerFeeAssetData
and makerFeeAssetData
to Order
struct.
2019-07-23 15:23:40 -07:00
Lawrence Forman
94d0db2dba
In @0x/order-utils
: Fix order hash tests.
...
In `@0x/contracts-exchange-libs`: Add fee asset datas to `LibOrder` type.
2019-07-23 15:23:40 -07:00
Amir Bandeali
64c596c922
temp
2019-07-23 15:23:40 -07:00
Amir Bandeali
ed0fcf2829
Remove LibAbiEncoder
2019-07-23 15:23:40 -07:00
Amir Bandeali
8af253e9ab
Remove accidental recursive function call in TestLibs contract
2019-07-23 15:21:14 -07:00
Amir Bandeali
6ce3e18831
Remove deprecated error libs
2019-07-23 15:21:14 -07:00
Amir Bandeali
3e461ac2e5
Rename internal and private functions
2019-07-23 15:21:14 -07:00
Amir Bandeali
f094e9118c
Fix inconsistent pragma for ABIEncoderV2
2019-07-23 15:10:31 -07:00
Amir Bandeali
2ec0d421f7
Cleanup LibEIP712 domain contracts
2019-07-23 15:09:46 -07:00
Amir Bandeali
308ff15adc
Refactor EIP712 libraries
2019-07-23 15:09:46 -07:00
Lawrence Forman
53b1037a33
contracts/exchange-libs/contracts/test/TestLibs
now inherits from LibEIP712ExchangeDomain
rather than LibEIP712
2019-07-23 15:04:46 -07:00
Lawrence Forman
e5fed57b8b
Make contracts/exchange-libs/.../LibEIP712.sol
stateless
2019-07-23 15:04:46 -07:00
Lawrence Forman
f7fb1225d2
Add more LibEIP712 tests to exchange-libs
2019-07-23 15:04:46 -07:00
Lawrence Forman
c096eae644
All glory to the linter gods.
2019-07-23 14:58:00 -07:00
Lawrence Forman
74a9a13564
Unpin @0x/contracts-exchange
dependency in /contracts/coordinator
.
...
Split up EIP712 constants and functionality in `/contracts/exchange-libs` across 3, modular contracts.
Make coordinator inherit from the modular EIP712 contracts in `@0x\contracts-exchange`.
2019-07-23 14:58:00 -07:00
Lawrence Forman
7aaef5d807
Fix missing comma in LibEIP712.sol
domain schema.
...
Add `chainId` to constructors for all test contracts deriving from `LibEIP712.sol`
2019-07-23 14:58:00 -07:00
Lawrence Forman
64b4158bad
Refactor EIP712 contracts to reduce code duplication.
2019-07-23 14:58:00 -07:00
Lawrence Forman
964d8171dd
Update exchange and coordinator contracts to incorporate chainID in their domain separators.
2019-07-23 14:58:00 -07:00
Amir Bandeali
f68b8d82e0
Move LibTransactionDecoder to dev-utils package
2019-06-07 08:46:20 -07:00
Amir Bandeali
24249bcb4d
Add LibTransactionDecoder to DevUtils
2019-05-26 17:19:45 -07:00
F. Eugene Aumson
741a731ecb
Transaction decoder for Coordinator ( #1802 )
...
* Remove unused dependency from erc20/package.json
* Add LibTransactionDecoder
Yet unsupported functions include:
cancelOrdersUpTo
executeTransaction
2019-05-24 11:27:53 -04:00