Alex Towle
22c8a25a26
Merge branch 'development' into 3.0
2019-08-19 11:13:21 -07:00
F. Eugene Aumson
0ae2d8bab5
sra_client.py: don't test against Python 2.7 ( #2071 )
2019-08-16 13:32:59 -04:00
F. Eugene Aumson
3e0bd1f02d
Run CI in an environment that includes Python, and test generated code ( #2072 )
...
* CI: use a docker image that includes Python
So that tests of abi-gen generating Python can exercise the code being
generated.
* CI fix: disable old yarn permission denied hack
Motivated by CI failure of previous commit.
* CI fix: more resources for test-contracts-ganache
Motivated by CI failure of previous commit.
* CI fix: remove hack of permissions for python libs
Fix for previous CI run's failure of test-python. Apparently we don't
need this in the docker container we've switched to.
* abi-gen/Py: minimum viable test of gen'd code
Ensure the code is parseable by running it through black.
* abi-gen/Py: expand Python linter usage
Make abi-gen filter its output through black, if its available in the
runtime environment. Accordingly, stop having contract_wrappers.py's
setup.py pre_install run black on copied-over files.
Adds Pylint to the list of linters run against test-cli/output.
* abi-gen: re-enable Solidity linter
It was broken, running seemingly cleanly but not actually reading any
files, because it was targetting the wrong folder.
* abi-gen/test-cli/fixtures/sol: fix linter errors
* abi-gen/test-cli: disable pylint blackisted-name
* abi-gen/Py: rm unused var in contracts w/o methods
Remove unused variable from generated wrapper for contracts without any
methods.
2019-08-16 13:32:31 -04:00
Amir Bandeali
4c78b7d4bb
Merge pull request #2055 from 0xProject/feat/3.0/optimizeConstants
...
Refactor library usage
2019-08-16 07:40:54 -07:00
Fabio B
35fcfb978d
Merge pull request #2054 from Arctek/fix/metamask-subprovider-hw
...
subproviders: Change MetamaskSubprovider eth_sign to personal_sign
2019-08-16 12:08:10 +02:00
Fabio B
c68083cf03
Remove timestamp from latest entry
2019-08-16 12:07:45 +02:00
Amir Bandeali
8402d211bf
Update CHANGELOGs
2019-08-15 16:51:50 -07:00
Amir Bandeali
cc3be9448a
Move MatchedFillResults constants closer to tests where they are utilized
2019-08-15 16:51:40 -07:00
fabioberger
cfb5119efc
Update abi-gen-wrappers
2019-08-16 00:51:00 +02:00
Amir Bandeali
7ac30c5153
Merge branch '3.0' into feat/3.0/optimizeConstants
2019-08-15 15:20:48 -07:00
F. Eugene Aumson
5d53fa5635
contract_wrappers.py: bump version after publish ( #2064 )
2019-08-15 16:34:31 -04:00
Xianny
38d2b70ba6
Update contract-wrappers everywhere ( #2068 )
...
* add validateAndSendTransactionAsync to all wrappers
* remove contract-wrappers from @0x/contracts-extensions
* replace error types in contract-wrappers
* upgrade asset-buyer and asset-swapper to contract-wrappers v11
* update website and 0x.js
* remove calldataOptimizationUtils
2019-08-15 10:53:33 -07:00
Xianny
29d5db16c2
copy artifacts should not use python path anymore ( #2070 )
2019-08-15 09:50:11 -07:00
Greg Hysz
64bc99101c
Merge pull request #2059 from 0xProject/feature/contracts/3.0/fillOrderAssertionWrapper
...
Fill Order Assertion Wrapper
2019-08-15 00:12:40 +02:00
Greg Hysen
09b5018e65
Readability improvements
2019-08-14 23:45:07 +02:00
Xianny
a8128c5772
Remove order-watcher ( #2067 )
...
* remove order-watcher
2019-08-14 14:34:59 -07:00
Amir Bandeali
1dae1d244c
Rename hashing functions in LibOrder and LibZeroExTransaction
2019-08-14 13:38:12 -07:00
Amir Bandeali
2da996f493
Hard code chainId in tests
2019-08-14 11:07:28 -07:00
Amir Bandeali
c5d4559300
Remove generate-exchange-selectors script
2019-08-14 11:07:22 -07:00
James Towle
434d027133
Merge pull request #2043 from jalextowle/feature/contracts/3.0/order-matching-unit-tests
...
MatchOrders Unit Tests
2019-08-14 11:06:52 -07:00
James Towle
f66212ce23
Merge pull request #2051 from jalextowle/feature/3.0/exchange-libs/unit-tests
...
`@0x:contracts-exchange-libs` Added unit tests to exchange-libs
2019-08-14 10:52:10 -07:00
Alex Towle
6b4e632101
@0x:contracts-exchange
Refactored internal.ts so that it is more readable
2019-08-14 10:39:36 -07:00
Joshua Richardson
53a08d00fd
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into fix/metamask-subprovider-hw
2019-08-14 12:29:44 +09:30
Joshua Richardson
fccec66463
Removed unrequired ethUtil import
2019-08-14 12:14:30 +09:30
Jacob Evans
bc26e807cd
Merge pull request #2060 from 0xProject/feature/dev-utils-contract-wrappers
...
Added DevUtils Wrappers and migrations
2019-08-14 12:27:25 +10:00
Joshua Richardson
46dc37fb20
Update CHANGELOG.json
2019-08-14 11:40:02 +09:30
Jacob Evans
ccbb8400ee
Merge branch 'development' into feature/dev-utils-contract-wrappers
2019-08-14 11:42:18 +10:00
Jacob Evans
5d3d8a5332
Merge pull request #2061 from 0xProject/feature/python/dev-utils-contract-wrapper
...
Add Python wrapper for DevUtils contract
2019-08-14 11:41:13 +10:00
Alex Towle
0134b2874b
@0x:contracts-exchange
Addressed remaining review comments
2019-08-13 17:05:38 -07:00
Alex Towle
e2308aabed
@0x:contracts-exchange
Reduced the code size of internal.ts
2019-08-13 17:04:42 -07:00
Alex Towle
36fac3532c
Removed unused reference functions
2019-08-13 17:04:42 -07:00
Alex Towle
327c6e8ac2
Completed the calculateMatchedFillResultsWithMaximalFill tests
2019-08-13 17:04:25 -07:00
Alex Towle
e9d49d96a6
Changed the testing style to be more assertion based rather than reference based to leverage the fixtures from the integration tests
2019-08-13 17:04:25 -07:00
Alex Towle
929bb86a54
Wrote some test cases for assertValidMatch
2019-08-13 17:04:25 -07:00
Alex Towle
f58e28d1be
Implemented reference functions and added tests for _calculateCompleteRightFill
2019-08-13 17:04:25 -07:00
Alex Towle
cdabe21e7a
Fixed the tests by using the IsolatedExchange
2019-08-13 17:04:25 -07:00
Alex Towle
a7520eeaa8
Wrote some initial test cases for the matchOrders calculate functions
2019-08-13 17:02:00 -07:00
Amir Bandeali
070147db52
Fix build errors
2019-08-13 16:43:55 -07:00
Amir Bandeali
55436510b6
Regenerate boilerplate for exchange-libs package
2019-08-13 16:20:35 -07:00
Amir Bandeali
1aec5e455d
Remove coordinator from CI tests
2019-08-13 16:20:35 -07:00
Amir Bandeali
dc31294440
Move LibExchangeRichErrors to exchange-libs package
2019-08-13 16:20:35 -07:00
Amir Bandeali
d3b8070fd6
Fix TestValidatorWallet by using new LibOrder and LibZeroExTransaction hashing
2019-08-13 16:19:48 -07:00
Amir Bandeali
26e4d66163
Remove unimplemented functions from interface
2019-08-13 16:19:48 -07:00
Amir Bandeali
7cfceebeb8
Remove unused ABIEncoderV2 pragma
2019-08-13 16:19:48 -07:00
Amir Bandeali
0e2616f16b
Rename _rrevert to rrevert
2019-08-13 16:19:48 -07:00
Amir Bandeali
ccce7e001e
Compile all contracts by default, regenerate boilerplate
2019-08-13 16:19:48 -07:00
Amir Bandeali
e91ba07f14
Do not overwrite all contracts identifier in compiler.json
2019-08-13 16:11:57 -07:00
Amir Bandeali
fb7b51d91b
Get contracts list from Compiler class to add support for reading all contracts by default
2019-08-13 16:11:57 -07:00
Amir Bandeali
88d055c3db
Make function public method of Compiler class
2019-08-13 16:11:57 -07:00
Amir Bandeali
3afce213c0
Add rrevert to safeDiv in LibSafeMath
2019-08-13 16:11:57 -07:00