Fabio Berger
8efc6c2112
Remove unnecessary conversion to BigNumber
2018-11-12 10:25:33 +01:00
Fabio Berger
8aeb18bcc3
rename param
2018-11-12 10:22:03 +01:00
Fabio Berger
1f0ac47bd9
Move signature validation into OrderValidationUtils.validateOrderFillableOrThrowAsync
2018-11-10 00:14:48 +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
Greg Hysen
e086c7b8e6
Round up for Market Buys in Forwarding Contract. Includes new test cases + regression testing.
2018-10-23 09:56:03 -07:00
Jacob Evans
9f924e459c
chore: change package org from 0xproject to 0x
2018-10-18 22:27:31 +11:00
Alex Browne
81c4887241
Move generated contract wrappers and artifacts into contracts package
2018-10-15 13:36:09 -07: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
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
Fabio Berger
d0448c2bbd
Fix bug where if block wasn't found, getBlockAsync would throw. Now it returns undefined
2018-09-24 15:02:06 +01:00
Amir Bandeali
f6b6619c08
Fix geth tests
2018-09-04 07:57:47 -07:00
Amir Bandeali
9deec8ec35
Add more tests for MultiSigWalletWithTimeLock
2018-09-04 07:57:47 -07:00
Amir Bandeali
81ba2a8411
Merge pull request #1045 from 0xProject/feature/contracts/cancelOrderInternal
...
Add cancelOrderInternal, use within batchCancelOrders
2018-08-30 13:07:51 -07:00
Amir Bandeali
09b4d5e0e4
Add cancelOrderInternal, use within batchCancelOrders
2018-08-30 12:10:24 -07:00
Amir Bandeali
d0f6933980
Add tests for token that returns >32 bytes
2018-08-30 09:27:28 -07:00
Amir Bandeali
d80701c277
Fix geth tests
2018-08-29 15:35:09 -07:00
Alex Browne
e7d5ceb9c5
feat: Add support for TypeScript project references ( #991 )
...
* Update all package.json and tsconfig.json
* fix(contracts): Make test/utils/web3_wrapper.ts compatible with project refs
* Fix webpack config for 0x.js
* Fix linter errors by adding rootDir to tsconfig.json as needed
* Add build:ts and watch:ts commands to package.json
* Update sra-spec to work with project references
* Update tsconfig.json with latest new/removed packages
* Add TypeScript as devDependency at root
* Add missing rootDir to forwarder-helper package
* Use a separate tsconfig file for typedoc
* Fix linter errors
* Apply PR feedback (add comments)
* Fix 0x.js tsconfig
2018-08-29 11:15:30 -07:00
Alex Browne
2eab0e30b7
fix(contracts): Catch cases where the actual error differs from the expected error ( #1032 )
...
* Catch cases where the actual error differs from the expected error
* Add tests for testWithReferenceFuncAsync
* Small style and comment fixes
2018-08-27 16:07:38 -07:00
Greg Hysen
1c7ba6a315
Extract only fill
event logs
2018-08-24 18:20:26 -07:00
Greg Hysen
6833e243b7
Addressed linter errors in match order tesster
2018-08-24 18:20:25 -07:00
Greg Hysen
ba15fb6a06
Swapped direction of expect
values to match output in failure cases
2018-08-24 18:20:25 -07:00
Greg Hysen
1e6b83719a
Renaming verify -> assert in order matching
2018-08-24 18:20:25 -07:00
Greg Hysen
9fcb2dda73
Fixed a function comment
2018-08-24 18:20:25 -07:00
Greg Hysen
9a5ec8d030
Added function signature comments
2018-08-24 18:20:25 -07:00
Greg Hysen
ac872e5181
Added expect
messages for checking left/right order states
2018-08-24 18:20:25 -07:00
Greg Hysen
70863cca08
Ran prettier and linter
2018-08-24 18:20:25 -07:00
Greg Hysen
5a1dce15be
Updated all existing match order tests to use new format
2018-08-24 18:19:43 -07:00
Greg Hysen
d291256158
Passes comprehensive test
2018-08-24 18:18:30 -07:00
Greg Hysen
8c706ac639
Verify logs
2018-08-24 18:18:30 -07:00
Greg Hysen
f697814849
First balance test with intentional values
2018-08-24 18:18:30 -07:00
Greg Hysen
ca5c9e77c0
Ironing out the new set of test cases for order matchubng
2018-08-24 18:17:27 -07:00
Greg Hysen
a32b201afe
Rounding for fees in match orders addressed, plus example
2018-08-24 18:17:27 -07:00
Greg Hysen
0ecdf1e213
All existing tests pass.
2018-08-24 18:17:26 -07:00
Amir Bandeali
c28c3db63f
Only use one nonReentrant modifier, remove modifier from fillOrderNoThrow variations
2018-08-24 17:30:56 -07:00
Amir Bandeali
7d5a23969d
Add reentrancy tests for fillOrder and wrapper functions
2018-08-24 17:30:56 -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
070eff6f3a
Rename TestStaticCall => TestStaticCallReceiver
2018-08-24 13:32:04 -07:00
Amir Bandeali
c5f8b9c2d2
Add pragma experimental v0.5.0 to SignatureValidator and add tests
2018-08-24 13:19:07 -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
0248add542
Merge development branch
2018-08-22 11:41:42 +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
Amir Bandeali
dafb282432
Add tests
2018-08-21 11:47:28 -07:00
Amir Bandeali
633e6c38c8
Fix linting errors
2018-08-16 17:31:21 -07:00
Amir Bandeali
a4d6bc3190
Fix tests that assumed logs were being filtered
2018-08-16 17:31:21 -07:00
Amir Bandeali
0b9a9d92af
Add tests for ERC721Token
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
2743eee044
Update checking for erc721 existence
2018-08-16 17:31:21 -07:00