Amir Bandeali
3a5f3e8b55
Unpop byte rather than making deep copy
2018-06-12 11:45:02 -07: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
Amir Bandeali
764b1c35cb
Add tests for deepCopyBytes and missing write methods from LibBytes
2018-06-12 11:45:02 -07:00
Amir Bandeali
ee8c9b764d
Pop id from assetData before dispatching to AssetProxies
2018-06-12 11:45:02 -07:00
Fabio Berger
7e78f5941a
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* v2-prototype: (68 commits)
Stop exporting ArtifactWriter
Fix no-unused-variable tslint rule to include parameters and fix issues
Fix linter exclude rule
Validate all signature types rather then only ECSignatures
Store the instantiated OrderValidationUtils
Remove global hooks from tests and deploy contracts from within the specific tests
Add EmitStatement to ASTVisitor
Fix tslint issues
Add back artifacts file
Fix a bug in SolCompilerArtifacts adapter config overriding
Move OrderValidationUtils (+ tests) and ExchangeTransferSimulator to order-utils
export parseECSignature method
Export ArtifactWriter from migrations package
Remove unused artifact file
Pass in generated contract wrapper to orderValidationUtils at instantiation
Refactor orderValidationUtils to use the generated contract wrapper instead of the higher-level one
Refactor ExchangeTransferSimulator public interface to accet an AbstractBalanceAndProxyAllowanceLazyStore so that this module could be re-used in different contexts.
Increase timeout for contract migrations
Remove some copy-paste code
Await transactions in migrations
...
2018-06-12 00:23:48 +02:00
Fabio Berger
e1879ef4d9
Fix no-unused-variable tslint rule to include parameters and fix issues
2018-06-11 23:42:30 +02:00
Leonid Logvinov
760bab8f86
Implement SolidityProfiler & adapt sol-cov to work with Geth
2018-06-08 14:56:45 -07:00
Greg Hysen
05fbc8e6b0
Linter changes to contracts
2018-06-08 11:43:47 -07:00
Greg Hysen
05123ea6f4
Updated LibBytes error messages
2018-06-07 16:32:42 -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
5bb7219f4b
Camelcase in memCopy
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
3c75d4f1dd
Removed setting makerAssetData/takerAssetData from tests where values are same as defaultOrderParams.
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
05f1e9e3b8
Resolved edge case in Memcpy where where send would eventually turn "negative" and wrap around.
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
5db15ca54c
proxyData -> assetData
2018-06-07 15:38:48 -07:00
Remco Bloemen
63014aeb6b
Add tests for word loop iteration
2018-06-07 15:38:48 -07:00
Remco Bloemen
31e21db5b5
Add test for zero-size overlap
2018-06-07 15:38:48 -07:00
Remco Bloemen
7f21872510
Add test cases
2018-06-07 15:38:47 -07:00
Remco Bloemen
27351c9a90
Cleanup test script
2018-06-07 15:38:47 -07:00
Remco Bloemen
76b918d40e
Convert Solidity tests to vectors
2018-06-07 15:38:47 -07:00
Remco Bloemen
f5bc0b205c
Generate tests from vectors
2018-06-07 15:38:47 -07:00
Greg Hysen
b3c253ea2a
Tests for writing bytes to nested bytes
2018-06-07 15:38:47 -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
Greg Hysen
3d65341080
Tests for libMem
2018-06-07 15:36:18 -07:00
Alex Browne
0ddaabe377
Add missing awaitTransactionSuccessAsync calls
2018-06-07 14:46:03 -07:00
Fabio Berger
20f9318597
Merge branch 'v2-prototype' into feature/combinatorial-testing
...
* v2-prototype:
Fix linter issue
Fix linter issue
Fix tslint issues
Fix missing paths
Fixed path
Use source-map-support package to include correct line numbers in mocha
move generated contract wrappers from `contract_wrappers/generated/` to `generated_contract_wrappers` in package with no non-generated contract wrappers
2018-06-07 21:45:48 +02:00
Fabio Berger
18ed45597a
Fix tslint issues
2018-06-07 18:58:51 +02:00
Fabio Berger
b646c84414
Merge branch 'fix/order-utils/remaining-v2-changes' into feature/combinatorial-testing
...
* fix/order-utils/remaining-v2-changes:
Fix tslint failure
Pass in fee and assetAmount rather then the whole signedOrder
2018-06-07 18:52:14 +02:00
Fabio Berger
a200eaacaa
Fix tslint failure
2018-06-07 18:51:52 +02:00
Fabio Berger
4f4acc04fe
Fix missing paths
2018-06-07 18:14:35 +02:00
Fabio Berger
ab5e021bda
POC: Generates an order from spec, get's the amount fillable
2018-06-07 18:00:13 +02:00
Fabio Berger
bd3b652cfc
Fixed path
2018-06-07 13:15:13 +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
643c77ded0
Apply prettier
2018-06-06 13:28:32 -07:00
Alex Browne
76f01511a3
Update contracts tests after rebase
2018-06-06 13:10:59 -07:00
Alex Browne
dd8727d3ae
Apply various fixes based on PR feedback
2018-06-06 12:41:15 -07:00