Fabio Berger
e86df96bfe
Fix doc gen
2019-02-20 13:20:32 -08:00
Fabio Berger
26e17074c2
Fix linter issues
2019-02-19 23:09:26 -08:00
Fabio Berger
6b775628d5
Prettier fixes
2019-02-19 22:48:09 -08:00
Fabio Berger
1fa82c1077
Fix up missing Provider interfaces and refactor providerUtils.standardizeOrThrow()
2019-02-19 22:34:31 -08:00
Fabio Berger
fe1e8575ea
Fix comments
2019-02-19 16:35:14 -08:00
Fabio Berger
98236736e0
Fix remaining Provider to SupportedProvider type
2019-02-19 15:25:47 -08:00
Fabio Berger
2417084145
Rename public interface provider to supportedProvider and our internal provider to Provider
2019-02-19 12:47:01 -08:00
Fabio Berger
5db20bbbe8
Add support for EIP1193 providers and clean up provider standardization logic
2019-02-18 15:12:29 -08:00
Greg Hysen
a9aaae7f97
Deduped random value generation from salt generation
2019-02-08 17:12:58 -08:00
Fabio Berger
b883b183a6
Stop exporting EIP712 schemas
2019-02-07 01:03:43 +00:00
Amir Bandeali
eac254f925
Fix outdated comments and make verifyingContractAddress a required part of the 0x tx schema
2019-02-05 09:26:03 -08:00
Amir Bandeali
9abd6f5695
Allow custom domains in eip712Utils
2019-02-05 09:23:09 -08:00
Amir Bandeali
c7c4cb9bc6
Add transaction hash utils
2019-02-05 09:23:09 -08:00
Amir Bandeali
1ada679663
Update ZeroExTransactionSchema
2019-02-05 09:23:09 -08:00
Amir Bandeali
9552676783
Add schema validation to getOrderHashBuff
2019-02-05 09:23:09 -08:00
Fabio Berger
c03e24e10b
Fix bug where passing in signerAddress instead of exchangeAddress
2019-02-04 16:03:25 +00:00
Leonid Logvinov
e84232cce8
Use new check for isBigNumber
2019-01-15 16:25:25 +01:00
Leonid Logvinov
c3afc13dd6
Upgrade bignumber.js version
2019-01-15 16:25:24 +01:00
Amir Bandeali
fd37e88bdb
Use enums in pipeline
2019-01-07 11:11:19 -08:00
Amir Bandeali
24564b986d
Minimize unnecessary type assertions
2019-01-07 10:31:11 -08:00
Amir Bandeali
a91bc415ed
Fix linting errors
2019-01-07 10:31:11 -08:00
Amir Bandeali
5720589515
Add tests for recursive MAP decoding
2019-01-07 10:31:11 -08:00
Amir Bandeali
1dda10b4f3
Add recursive MultiAsset decoding, store first address in pipeline
2019-01-07 10:31:11 -08:00
Amir Bandeali
de4916ccb8
Add individual balances and allowances to OrderRelevantState
2019-01-07 10:31:11 -08:00
Amir Bandeali
eeb07d76fc
Fix transferFrom to work with MAP
2019-01-07 10:31:11 -08:00
Amir Bandeali
0abace337c
Rename functions
2019-01-07 10:31:11 -08:00
Amir Bandeali
492e0ae345
feat: Export MultiAssetData in types
2019-01-07 10:31:11 -08:00
Amir Bandeali
8549252a2c
Fix decoding and add tests
2019-01-07 10:31:11 -08:00
Amir Bandeali
0cb5209266
Add length check to MultiAsset encoding
2019-01-07 10:31:11 -08:00
Amir Bandeali
354f7053dc
Use new AbiEncoder, add logic for encoding/decoding MultiAsset assetData
2019-01-07 10:31:11 -08:00
Fabio Berger
8fd7a9e1f5
Actually pass the signature, not the signature index to a wallet contract's isValidSignature
call
2018-12-10 15:31:59 -08:00
Fabio Berger
fd7ba3ecea
Use RevertReason when possible
2018-11-12 10:22:22 +01:00
Fabio Berger
1f0ac47bd9
Move signature validation into OrderValidationUtils.validateOrderFillableOrThrowAsync
2018-11-10 00:14:48 +01:00
Fabio Berger
53d0f5b98e
Revert comment change
2018-11-09 23:15:34 +01:00
Fabio Berger
3980bf39a9
Keep more helpful error messages, and stop swallowing errors when returning contract error
2018-11-09 18:50:25 +01:00
Fabio Berger
57318a6ef2
Remove unused validateFillOrKill method
2018-11-09 00:46:07 +01:00
Fabio Berger
857a35d4f7
Fix validateOrderFillableOrThrowAsync method so it also checks order signature, cancelled, cancelledUpTo, and throws helpful error messages
2018-11-09 00:45:48 +01:00
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