Alex Browne
5b64b3ea93
Improve robustness of revert reason assertions
2018-07-02 18:57:33 -07:00
Amir Bandeali
2fcc36bbad
Update file structure
2018-06-29 18:05:40 -07:00
Amir Bandeali
d4852092b8
Make registerAssetProxy append only
2018-06-29 16:25:16 -07:00
Fabio Berger
646927962a
Reduce the userAddresses to the individual addresses actually used by tests, as well as only deploy the number of ERC20 tokens needed for each test suite
2018-06-28 10:43:37 +02:00
Fabio Berger
43ae868c69
Merge branch 'refactor/check-revert-reasons' into feature/combinatorial-testing
...
* refactor/check-revert-reasons:
Temporarily switch revert reasons to `TransferFailed`. Should be `InvalidAmount` but because of an oversight in the assembly implementation of `dispatchTransferFrom`, it always throws `TransferFailed`
Expect RevertReason be passed in, not string
Rename RevertReasons to RevertReason since singular enum names are more common
# Conflicts:
# packages/contracts/test/asset_proxy/proxies.ts
# packages/contracts/test/exchange/core.ts
2018-06-26 18:53:44 +02:00
Fabio Berger
9219f9d8ae
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* v2-prototype: (21 commits)
Don't use variables for revert reasons
Add comments to dispatchTransferFrom
Document IAssetData
Compute bytes4 proxyid constants
Return inplace bytes in LibBytes.readBytesWithLength
Add Greg's documentation to MixinErc721Transfer
Add Greg's documentation to MixinErc20Transfer
Gas golf the transfer success logic
Optimize like in PR #767
Run prettier and fix linting errors
Fix tests
Update tests
Fix AssetProxyUtils
Update tests
Fix ERC721Proxy TokenId
Update AssetProxyUtils
Add IAssetData
WIP
ABI encoded asset data
Remove proxyId argument from dispatchTransferFrom
...
# Conflicts:
# packages/contracts/test/asset_proxy/proxies.ts
2018-06-26 08:13:59 +02:00
Fabio Berger
27670f4da6
Rename RevertReasons to RevertReason since singular enum names are more common
2018-06-26 08:11:14 +02:00
Fabio Berger
e051743a3d
Merge branch 'v2-prototype' into refactor/check-revert-reasons
...
* v2-prototype: (21 commits)
Don't use variables for revert reasons
Add comments to dispatchTransferFrom
Document IAssetData
Compute bytes4 proxyid constants
Return inplace bytes in LibBytes.readBytesWithLength
Add Greg's documentation to MixinErc721Transfer
Add Greg's documentation to MixinErc20Transfer
Gas golf the transfer success logic
Optimize like in PR #767
Run prettier and fix linting errors
Fix tests
Update tests
Fix AssetProxyUtils
Update tests
Fix ERC721Proxy TokenId
Update AssetProxyUtils
Add IAssetData
WIP
ABI encoded asset data
Remove proxyId argument from dispatchTransferFrom
...
# Conflicts:
# packages/contracts/test/asset_proxy/proxies.ts
2018-06-26 08:07:37 +02:00
Amir Bandeali
7ce0f9682f
Fix tests
2018-06-25 16:19:07 -07:00
Fabio Berger
1353723b58
merge check-revert-reasons
2018-06-25 13:02:38 +02:00
Fabio Berger
f811c07454
Move RevertReasons to @0xproject/types package
2018-06-25 12:59:26 +02:00
Fabio Berger
c50da5d034
merge check-revert-reasons
2018-06-25 12:32:16 +02:00
Fabio Berger
2f6f815d81
Fix tslint
2018-06-22 18:54:18 +02:00
Fabio Berger
1e03fbe1a8
Fix prettier
2018-06-22 18:50:02 +02:00
Fabio Berger
4409f11b24
Rename ContractLibErrors to RevertReasons
2018-06-22 18:45:45 +02:00
Fabio Berger
914b009361
Change Whitelist error messages to conform to rest and added revert reason checks to transactions tests
2018-06-22 17:12:17 +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
Amir Bandeali
6b08e6b809
Rename makerEpoch => orderEpoch
2018-06-19 13:52:23 -07:00
Amir Bandeali
e92926e881
Make cancelOrdersUpTo compatible with sender abstraction
2018-06-19 13:04:55 -07:00
Fabio Berger
9acf4458c0
Remove hack in ERC20Wrapper
2018-06-19 17:38:15 +02:00
Amir Bandeali
5910bec52e
Make ZRX_PROXY_ID constant rather than popping it from ZRX_ASSET_DATA
2018-06-12 11:45:02 -07:00
Greg Hysen
e4e3676095
Fixed up after rebasing. Contracts build and tests pass
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
Alex Browne
0ddaabe377
Add missing awaitTransactionSuccessAsync calls
2018-06-07 14:46:03 -07: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
76f01511a3
Update contracts tests after rebase
2018-06-06 13:10:59 -07:00
Alex Browne
167a38e27d
Add Async suffix to relevant assertions
2018-06-06 12:41:14 -07:00
Alex Browne
cd7cb025ad
Update exchange/transactions tests for Geth error messages
2018-06-06 12:39:43 -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
Jacob Evans
351173e554
Rebase from v2-prototype
2018-06-04 16:55:22 -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
7024a7468a
Improve comments and remove unused imports
2018-06-01 17:02:54 -07:00
Fabio Berger
fcc627e6e1
fix method rename
2018-05-31 16:12:36 -07:00
Fabio Berger
94ee82e076
Merge branch 'v2-prototype' into refactor/order-utils/for-v2
...
* v2-prototype: (45 commits)
Check length before accessing indices, add awaitTransactionSuccess where needed, and rename function
Add back before/after snapshots for each test
Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
Make preSigned and allowedValidators mappings public
Change names of signature types
Fix formatting and tests
Make AssetProxyId last byte of assetData
Add signer to txHash, allow approveValidator to be used with executeTransaction
Update Whitelist
Fix Exchange interface
Increase block gas limit
Use last byte of signature as signature type
Remove TxOrigin signature type, modify whitelist to use Validator signature type
Update Whitelist contract with comments, also require maker to be whitelisted
Fix build
Add example whitelist contract and minimum tests
Add sample whitelist contract
Add TxOrigin signature type and rearrange order of types
Add approveValidator function
Add Validator signature type
...
# Conflicts:
# packages/contracts/src/contracts/current/protocol/Exchange/MixinSignatureValidator.sol
# packages/contracts/src/utils/types.ts
# packages/contracts/test/exchange/transactions.ts
# packages/order-utils/src/asset_proxy_utils.ts
2018-05-31 10:45:34 -07:00
Amir Bandeali
79e7c44884
Check length before accessing indices, add awaitTransactionSuccess where needed, and rename function
2018-05-30 17:52:37 -07:00
Amir Bandeali
1382c1243a
Add back before/after snapshots for each test
2018-05-30 17:11:31 -07:00
Amir Bandeali
9f93d8f533
Fix formatting and tests
2018-05-30 17:11:31 -07:00
Amir Bandeali
6d462fc961
Remove TxOrigin signature type, modify whitelist to use Validator signature type
2018-05-30 17:11:30 -07:00
Amir Bandeali
4b71c65aea
Update Whitelist contract with comments, also require maker to be whitelisted
2018-05-30 17:11:30 -07:00
Amir Bandeali
d6be6f79ce
Add example whitelist contract and minimum tests
2018-05-30 17:11:30 -07:00
Fabio Berger
9200ed2216
Introduce OrderWithoutExchangeAddress type since this is what get's sent to the smart contracts
2018-05-30 14:45:20 -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
Leonid Logvinov
ea3f82ccc2
Fix linter issues
2018-05-24 14:56:20 -07:00
Leonid Logvinov
92b0efff5a
Migrate migrations to v2
2018-05-24 13:59:30 -07:00
Alex Browne
b05a3b7aed
Check transaction receipt status codes where applicable
2018-05-23 15:09:17 -07:00
Fabio Berger
9de9bf651b
Fix ExchangeWrapper
2018-05-22 13:15:01 -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