Alex Browne
4012e31115
Use make-promises-safe as a preloader instead of manually importing
2018-06-21 19:17:33 -07:00
Fabio Berger
a0b225b8b1
Test revert reasons in proxy tests
2018-06-21 17:43:48 +02:00
Fabio Berger
323e8756ba
remove only
2018-06-21 17:27:26 +02:00
Fabio Berger
ada5428df7
Check revert reasons in Authorizable tests
2018-06-21 17:23:59 +02:00
Fabio Berger
2ffab22185
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* v2-prototype: (22 commits)
Fix closing parens in liborder
Update after rebase
ERC721Proxy Always call safeTransferFrom
Rename makerEpoch => orderEpoch
Make cancelOrdersUpTo compatible with sender abstraction
Update PR template
Use Image component instead of img tag
Assembler orderHash function
Optimize and remove redundant encodePacked
Fix linting issue
Fix bug where we do fetch balances on wallet login
Check network state immediately instead of waiting for delay
Fix onboarding persisting when changing routes
Consolidate account state messaging logic
Only elevate wallet zIndex when onboarding is in progress
Rebase and update feedback
Run linter
Add Portal v2 logging
Simplified handling of source < 32 edge case
Basic EIP712 encoder
...
2018-06-20 13:25:29 +02:00
Jacob Evans
bddc47f9b2
ERC721Proxy Always call safeTransferFrom
2018-06-20 10:00:59 +10:00
Fabio Berger
9acf4458c0
Remove hack in ERC20Wrapper
2018-06-19 17:38:15 +02:00
Fabio Berger
eea86757d5
- Refactor assetWrapper to contain more of the normalizing logic instead of erc20Wrapper and erc721Wrapper
...
- Add burn method to DummyERC721Token
- Add additional methods to assetWrapper to set balance/allowances on ERC20 and ERC721 tokens
- Use approve instead of approveAll for ERC721 tokens
2018-06-15 00:00:02 +02:00
Amir Bandeali
ee8c9b764d
Pop id from assetData before dispatching to AssetProxies
2018-06-12 11:45:02 -07:00
Greg Hysen
05fbc8e6b0
Linter changes to contracts
2018-06-08 11:43:47 -07:00
Greg Hysen
d62ff34a5a
Cleanup after last rebase
2018-06-07 15:53:30 -07:00
Greg Hysen
0d4ff5a916
Updated tests to use new revert handler
2018-06-07 15:39:40 -07:00
Greg Hysen
8ace41d144
Minor fixes after rebase
2018-06-07 15:39:40 -07:00
Greg Hysen
f457a56d4a
Style updates to contracts
2018-06-07 15:39:40 -07:00
Greg Hysen
db086de84a
Union types for generalized decodeAssetData
2018-06-07 15:39:40 -07:00
Greg Hysen
774d831fae
Style updates to ERC721 onReceiver
2018-06-07 15:39:40 -07:00
Greg Hysen
12e2bfc794
Fixes after rebasing
2018-06-07 15:39:38 -07:00
Greg Hysen
e4e3676095
Fixed up after rebasing. Contracts build and tests pass
2018-06-07 15:38:48 -07:00
Greg Hysen
3ed13150e1
Style audit for proxies + libmem + libbytes
2018-06-07 15:38:48 -07:00
Greg Hysen
8496c1cdd3
Call safeTransferFrom only when there is receiver data present
2018-06-07 15:38:48 -07:00
Greg Hysen
249a1e6d8d
Removed the LibAssetProxyDecoder. Merged decode functions into the proxies. This way they can still be used by the forwarding contract. TestAssetDataDecoders inherits them in the same way the forwarding contract would
2018-06-07 15:38:48 -07:00
Greg Hysen
e042e0ad32
Converged on naming scheme for asset data: renamed all instances of assetMetadata, proxyData, proxyMetadata to assetData
2018-06-07 15:38:48 -07:00
Greg Hysen
842363200b
Tons of tests around nested byte arrays and ERC721 receiver
2018-06-07 15:38:42 -07:00
Greg Hysen
d9f9895b2b
Test for onReceived erc721 callback
2018-06-07 15:37:42 -07:00
Greg Hysen
bc0edd4042
LibAssetProxyDecoder tests
2018-06-07 15:36:18 -07:00
Greg Hysen
9b82e2df58
Foundation for TestLibAssetProxyDecoder
2018-06-07 15:36:18 -07:00
Fabio Berger
4f4acc04fe
Fix missing paths
2018-06-07 18:14:35 +02:00
Fabio Berger
73429fc720
merge v2-prototype
2018-06-07 12:27:03 +02:00
fragosti
e0d5b9daf8
Merge branch 'v2-prototype' of https://github.com/0xProject/0x-monorepo into feature/improve-linting
2018-06-06 16:36:11 -07:00
Alex Browne
167a38e27d
Add Async suffix to relevant assertions
2018-06-06 12:41:14 -07:00
Alex Browne
1cc9d9c071
Replace constant.REVERT test assertions with expectRevertOrAlwaysFailingTransaction
2018-06-06 12:39:42 -07:00
Fabio Berger
cb754ee125
move generated contract wrappers from contract_wrappers/generated/
to generated_contract_wrappers
in package with no non-generated contract wrappers
2018-06-06 15:39:38 +02:00
fragosti
59cb2132f2
Linter now passes
2018-06-05 11:46:05 -07:00
Amir Bandeali
342432dc76
Update Exchange statuses, revert instead of emmitting event on fill/cancel failures, and remove redundant logic in matchOrders
2018-06-04 15:55:28 -07:00
Fabio Berger
4874d55d03
Initial refactor of order-utils. Move many utils from contracts into this package.
2018-05-29 16:58:30 -07:00
Alex Browne
b05a3b7aed
Check transaction receipt status codes where applicable
2018-05-23 15:09:17 -07:00
Fabio Berger
2b793f372a
Merge branch 'v2-prototype' into refactor/contracts/remove0xjsDep
...
* v2-prototype:
Fix tslint issues
Add `are` to boolean naming conventions
Fix tslint
Fix the tsutils version, fixing ts typings issue
Rename some variables in multi_sig_with_time_lock.ts
Remove extra awaitTransactionMinedAsync calls
Update artifacts
Update yarn.lock
Fix warnings in Metacoin
Upgrade UglifyJS to include ES6 support
Add CancelOrder and MatchOrder types
Add missing return types
Ignore classnames linter rule
Apply changes to test/exchange/match_orders.ts
Fix some unhandled promise rejections
Add awaitTransactionMinedAsync after every sent transaction
Add missing blockchainLifecycle calls to contracts tests
# Conflicts:
# packages/contracts/src/utils/exchange_wrapper.ts
# packages/contracts/test/asset_proxy/proxies.ts
# packages/contracts/test/exchange/dispatcher.ts
# packages/contracts/test/multi_sig_with_time_lock.ts
2018-05-22 13:02:21 -07:00
Fabio Berger
a682b5d90e
Remove 0x.js dep from contracts
2018-05-22 11:18:50 -07:00
Alex Browne
4fa57f55e6
Fix some unhandled promise rejections
2018-05-21 16:52:49 -07:00
Alex Browne
2c496a92ad
Add awaitTransactionMinedAsync after every sent transaction
2018-05-21 16:52:49 -07:00
Alex Browne
4ca8903a21
Add missing blockchainLifecycle calls to contracts tests
2018-05-21 16:52:49 -07:00
Fabio Berger
0fdf32cf6f
merge development
2018-05-21 13:38:12 -07:00
Amir Bandeali
9e0471bfbb
Merge branch 'development' into v2-prototype
2018-05-15 15:52:49 -04:00
Amir Bandeali
7e7364fc83
Move Authorizable to AssetProxy dir, rename to MixinAuthorizable
2018-05-07 11:20:53 -07:00
Amir Bandeali
0cb357a0e9
Add tests for batchTransferFrom
2018-05-01 13:39:55 -07:00
Amir Bandeali
bbb3d5bb67
Add hard coded proxyId into each AssetProxy
2018-04-30 16:40:27 -07:00
Fabio Berger
b24b98a365
merge v2-prototype
2018-04-24 16:51:32 +09:00
Amir Bandeali
432b064601
Fix tests
2018-04-23 10:50:09 -07:00