Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Jacob Evans
02cf99fa36
fix(order-utils): remove constants export
2018-10-18 11:07:00 +11:00
fragosti
8ba65346d4
feat: export AssetData from order-utils
2018-10-16 17:00:53 -07:00
fragosti
dbf5be6c21
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/move-features-over-from-zrx-buyer
2018-10-16 11:15:17 -07:00
Alex Browne
57d9fcf9e5
update order-utils to use new artifacts and abi-gen wrappers packages
2018-10-15 13:36:59 -07:00
fragosti
ccf021b8bf
feat: use new AssetData type from types package
2018-10-12 14:52:42 -07:00
Jacob Evans
75b9e63919
Move Metamask Error to OrderErrors
2018-10-09 20:58:30 +11:00
Jacob Evans
7f554303b4
Update the exported types for the packages which touch RPC providers
2018-10-09 20:29:41 +11:00
Jacob Evans
9e8031d5e3
Throw and handle errors from Providers.
...
In web3 wrapper when a response contains an error field we throw this rather than return response.result which is often undefined.
In Signature Utils we handle the error thrown when a user rejects the signing dialogue to prevent double signing.
Exposed the ZeroExTransaction JSON schema.
In Website only use the MetamaskSubprovider if we can detect the provider is Metamask
2018-10-09 19:01:36 +11:00
Jacob Evans
e1236a4846
Detect MM on signature validation failure.
...
Report a developer friendly error in this event to educate them on the compatability wrapper MetamaskSubprovider
2018-10-08 11:13:04 +11:00
Jacob Evans
75d274f330
Return SignedOrder from signing utils.
...
Create a helper back in EIP712Utils for code cleanup.
Moved constants in order-utils into the constants object
2018-10-05 17:12:17 +10:00
Jacob Evans
3e2fe40a11
Add eth_signTypedData support to our wallet subproviders
2018-10-05 12:02:09 +10:00
Jacob Evans
2a82ff48c0
Move SignTypedData to utils package
2018-10-05 12:00:41 +10:00
Jacob Evans
07926ded6e
Introduce Metamask Subprovider.
...
MM has a number of inconsistencies with other providers when implementing the JSON RPC interface. This subprovider wraps those nuances so they do not leak into the rest of our code
2018-10-05 12:00:41 +10:00
Jacob Evans
adcfaa2e80
Expose eth_signTypedData functionality for order signing
2018-10-05 11:59:24 +10:00
Brandon Millman
059162a90a
Add additional order factory methods and refactor test to use them
2018-10-03 23:22:13 -07:00
Fabio Berger
0591f1d32a
Add address normalization to isValidECSignature method
2018-09-27 10:03:54 +01:00
Fabio Berger
9eecf3683b
Add transactionHash to OrderState and emit it from OrderWatcher subscription
2018-09-25 16:10:13 +01:00
fragosti
60e2dfdbda
Calculate min and max rates in buy quote
2018-09-19 15:58:30 +02:00
fragosti
f5237f7971
Use order parser utils from order utils
2018-09-04 11:55:08 -07:00
fragosti
a14450f367
Add order parsers to order-util
2018-09-04 11:22:31 -07:00
Amir Bandeali
74ce893f52
Merge pull request #1003 from 0xProject/feature/contracts/roundup
...
[contracts] Add getPartialAmountCeil and isRoundingErrorCeil
2018-08-24 17:29:09 -07:00
Remco Bloemen
80291caf7c
Append -Floor to getPartialAmount and isRoundingError
2018-08-24 16:16:44 -07:00
Amir Bandeali
0629a7d143
Remove remaining Trezor references
2018-08-24 14:40:00 -07:00
Greg Hysen
d039a1adda
Fixed linter in signatureUtils
2018-08-24 14:40:00 -07:00
Greg Hysen
241534a63d
Fixed trezor personal message in client+contracts; added a test using message signed by Trezor One (firmware v1.6.2)
2018-08-24 14:40:00 -07:00
Amir Bandeali
1932aff35c
Remove Trezor SignatureType
2018-08-24 14:40:00 -07:00
Amir Bandeali
4f27991959
Remove SigntureType.Caller from signingUtils
2018-08-24 14:39:08 -07:00
Brandon Millman
57c104119c
Merge branch 'development' into feature/forwarder-helper/init
...
* development: (187 commits)
Remove trailing slash
Fix linter
Stop nesting interfaces and add necessary type exports
Remove duplicate type and remove nested interface
Add support for rending the Tuple type
Add missing keyu
Remove excessive timestamp
Improve doc commebnt
Remove docs catch-all endpoint
Fix comments
Look for all TS mapped types
Add catch and exit with non-zero
Remove superfluous dep
Fix CHANGELOG entry
Fix double assignment
Upgrade Typedoc to 0.12.0, which works with TS 3.x
Fix prettier issues
Enable dry run of release publishing and handle git tags existing
update yarn.lock
Missing/superfluous type exports from connect
...
2018-08-23 10:58:33 -07:00
Brandon Millman
67d33ec10c
Fix rounding bug in marketUtils
2018-08-22 15:39:03 -07:00
Brandon Millman
e8a1950a74
Add ForwarderHelperImplConfig
2018-08-22 15:39:03 -07:00
Brandon Millman
3c973ba9f6
Remove marketSell and add to marketBuy implementation
2018-08-22 15:39:03 -07:00
Fabio Berger
b7c119b2aa
Fix many linter errors that showed up upon upgrading tsutil
2018-08-22 18:52:17 +01:00
Fabio Berger
301cb296ec
Move types from sol-compiler to types so they can be used in other places without requiring sol-compiler as a dep
2018-08-21 23:58:06 +01:00
Fabio Berger
7553411fb2
Fix up order-utils
2018-08-21 16:37:03 +01:00
Fabio Berger
0337b5a401
Merge development
2018-08-16 15:10:12 -07:00
Jacob Evans
88c99396a2
Rename OrderAlreadyCancelledOrFilled -> OrderCancelled.
...
Remove try catch of throwing errors in favour of returning the Errors in a OrderValidationResult
2018-08-16 11:12:35 +10:00
Jacob Evans
622509c508
[Order-utils] Order is valid when maker amount is very small
...
Previously our min fillable calculation would throw a rounding error
when encountering a valid order (with a small maker amount). This was
inconsistent with the on-chain logic which allowed this order to be
filled.
2018-08-15 13:06:32 +10:00
Fabio Berger
1d9408a8e0
Fix additional merge conflicts
2018-08-14 14:39:59 -07:00
Fabio Berger
2f2582a0da
Merge development
2018-08-14 14:21:47 -07:00
Brandon Millman
9c3d10d5be
Merge branch 'development' into refactor/order-utils/market-utils-api
...
* development:
feat: Upgrade TypeScript to 3.0.1
Add defaults for networkId and pagination
Update sortingUtils to support Order and SignedOrder
Change rateUtils to use Order
Updated CHANGELOG
Fix lint errors
Update tests for optional feeRate
Make feeRate optional with a default of 0
Add tests for sortingUtils
Implement sorting utils
Add tests for rateUtils
Implement rate utils
2018-08-14 13:48:21 -07:00
Brandon Millman
3afe405bbe
Merge pull request #953 from 0xProject/feature/order-utils/order-sorting-utils
...
[order-utils] Add rate and sorting utilities
2018-08-14 13:45:04 -07:00
Brandon Millman
6a2634d362
Make marketUtils interface compatible with Order and SignedOrder
2018-08-13 21:31:23 -07:00
Brandon Millman
c10c4cec1d
Update marketUtils api
2018-08-13 21:31:22 -07:00
Brandon Millman
99b744ba52
Update sortingUtils to support Order and SignedOrder
2018-08-13 18:32:15 -07:00
Brandon Millman
d859399841
Change rateUtils to use Order
2018-08-13 17:46:43 -07:00
Jacob Evans
a351757493
Update version numbers.
...
Add source for Metamask future fix.
Consolidate switch statement to one return
2018-08-14 09:18:13 +10:00
Jacob Evans
ca4905c343
Rename from SignerProviderType.EthSign to SignerType.Default
2018-08-11 18:27:21 +10:00
Brandon Millman
b86210332f
Fix lint errors
2018-08-09 19:12:42 -04:00
Brandon Millman
cbe639866e
Make feeRate optional with a default of 0
2018-08-09 19:12:42 -04:00