Jacob Evans
5d603b2f80
Publish
...
- @0x/contracts-asset-proxy@3.1.3
- @0x/contracts-broker@1.0.1
- @0x/contracts-coordinator@3.0.6
- @0x/contracts-dev-utils@1.0.6
- @0x/contracts-erc1155@2.0.6
- @0x/contracts-erc20-bridge-sampler@1.2.1
- @0x/contracts-erc20@3.0.6
- @0x/contracts-erc721@3.0.6
- @0x/contracts-exchange-forwarder@4.1.0
- @0x/contracts-exchange-libs@4.2.0
- @0x/contracts-exchange@3.1.2
- @0x/contracts-extensions@6.0.0
- @0x/contracts-integrations@2.2.3
- @0x/contracts-multisig@4.0.6
- @0x/contracts-staking@2.0.6
- @0x/contracts-test-utils@5.1.3
- @0x/contracts-utils@4.2.1
- 0x.js@9.0.7
- @0x/abi-gen@5.1.2
- @0x/assert@3.0.5
- @0x/asset-swapper@4.1.1
- @0x/base-contract@6.1.2
- @0x/connect@6.0.5
- @0x/contract-artifacts@3.4.1
- @0x/contract-wrappers-test@12.2.7
- @0x/contract-wrappers@13.4.2
- @0x/contracts-gen@2.0.6
- @0x/dev-utils@3.1.3
- @0x/instant@1.0.44
- @0x/json-schemas@5.0.5
- @0x/migrations@6.0.2
- @0x/monorepo-scripts@1.0.49
- @0x/order-utils@10.1.3
- @0x/orderbook@2.1.2
- @0x/sol-compiler@4.0.6
- @0x/sol-coverage@4.0.6
- @0x/sol-doc@3.1.3
- @0x/sol-profiler@4.0.6
- @0x/sol-trace@3.0.6
- @0x/sol-tracing-utils@7.0.6
- @0x/sra-spec@3.0.5
- @0x/subproviders@6.0.6
- @0x/utils@5.3.0
- @0x/web3-wrapper@7.0.5
2020-02-06 21:24:29 +10:00
Jacob Evans
0e1b08ff54
Updated CHANGELOGS & MD docs
2020-02-06 21:24:05 +10:00
David Sun
befc22d718
[FIX] asset-swapper liquidity breakdown ( #2472 )
...
* changed divided
* added changelog
* prettier
Co-authored-by: Jacob Evans <dekz@dekz.net >
2020-02-06 15:09:39 +10:00
Jacob Evans
4a62e80967
[asset-swapper] Bump sampler gas limit and allow for override ( #2471 )
...
* [asset-swapper] Bump sampler gas limit and allow for override
* Fix imports
* Set to 36e6
2020-02-06 12:31:28 +10:00
Jacob Evans
ee9ef9f2c1
[asset-swapper] prune before dummy order creation ( #2470 )
2020-02-06 07:08:31 +10:00
mzhu25
93dcb68437
Merge pull request #2455 from 0xProject/feature/broker/gods-unchained
...
`@0x/contracts-broker`: Property-based Gods Unchained orders
2020-02-04 10:53:54 -08:00
Michael Zhu
0691cc7909
rename _transferEthRefund -> _unwrapAndTransferEth
2020-02-04 10:13:07 -08:00
Michael Zhu
d82f34fe59
add weth-related integration tests
2020-02-04 10:13:07 -08:00
Michael Zhu
d2313b30af
Address PR feedback and add support for affiliate fees
2020-02-04 10:13:07 -08:00
Michael Zhu
329719472a
Move LibAssetDataTransfer and MixinWeth(Utils) to contracts-extensions
2020-02-04 10:13:02 -08:00
Michael Zhu
a2fcab47d4
skip coordinator client test
2020-02-04 10:08:25 -08:00
Michael Zhu
4ab5951c25
Add comments
2020-02-04 10:08:25 -08:00
Michael Zhu
403cabb201
more integrations tests
2020-02-04 10:08:25 -08:00
Michael Zhu
3da7c5d3e2
Move LibAssetDataTransfer from forwarder to exchange-libs package
2020-02-04 10:08:21 -08:00
Michael Zhu
c5e0de51aa
Add Broker rich errors
2020-02-04 10:06:12 -08:00
Michael Zhu
c581f1bba4
Update Broker README
2020-02-04 10:06:12 -08:00
Michael Zhu
b8ac9c2edd
lint
2020-02-04 10:06:10 -08:00
Michael Zhu
1027ee2481
Broker integrations tests
2020-02-04 10:05:17 -08:00
Michael Zhu
2f311f7821
GodsUnchainedValidator unit tests
2020-02-04 10:04:19 -08:00
Michael Zhu
a98c95b514
Broker contracts
2020-02-04 10:04:19 -08:00
Michael Zhu
5bbbae5b23
create contracts-broker package
2020-02-04 10:04:19 -08:00
Jacob Evans
f9c9b9f924
Prevent docs dir from being completely removed
2020-02-04 20:29:16 +10:00
Jacob Evans
5921208ea6
Publish
...
- @0x/contracts-asset-proxy@3.1.2
- @0x/contracts-coordinator@3.0.5
- @0x/contracts-dev-utils@1.0.5
- @0x/contracts-erc1155@2.0.5
- @0x/contracts-erc20-bridge-sampler@1.2.0
- @0x/contracts-erc20@3.0.5
- @0x/contracts-erc721@3.0.5
- @0x/contracts-exchange-forwarder@4.0.5
- @0x/contracts-exchange-libs@4.1.1
- @0x/contracts-exchange@3.1.1
- @0x/contracts-extensions@5.1.4
- @0x/contracts-integrations@2.2.2
- @0x/contracts-multisig@4.0.5
- @0x/contracts-staking@2.0.5
- @0x/contracts-test-utils@5.1.2
- @0x/contracts-utils@4.2.0
- 0x.js@9.0.6
- @0x/abi-gen@5.1.1
- @0x/asset-swapper@4.1.0
- @0x/base-contract@6.1.1
- @0x/contract-addresses@4.4.0
- @0x/contract-wrappers-test@12.2.6
- @0x/contract-wrappers@13.4.1
- @0x/contracts-gen@2.0.5
- @0x/dev-utils@3.1.2
- @0x/instant@1.0.43
- @0x/migrations@6.0.1
- @0x/monorepo-scripts@1.0.48
- @0x/order-utils@10.1.2
- @0x/orderbook@2.1.1
- @0x/sol-compiler@4.0.5
- @0x/sol-coverage@4.0.5
- @0x/sol-doc@3.1.2
- @0x/sol-profiler@4.0.5
- @0x/sol-trace@3.0.5
- @0x/sol-tracing-utils@7.0.5
- @0x/subproviders@6.0.5
2020-02-04 20:22:07 +10:00
Jacob Evans
f89c78abd1
Updated CHANGELOGS & MD docs
2020-02-04 20:21:45 +10:00
David Sun
74d3b9334c
Add liquidity source breakdown to asset-swapper ( #2465 )
...
* add liquidity source breakdown to asset-swapper
* remove debug line
* use OptimizedMarketOrder metadata
* updated change-log
* prettier + lint
* bug fixes
* fixes
* Prettier
* Fix types
Co-authored-by: Jacob Evans <dekz@dekz.net >
2020-02-04 19:03:28 +10:00
Xianny
919fc66b9d
Stop hardcoding contract addresses ( #2461 )
...
* stop hardcoding contract addresses
* update changelog
* export ContractAddresses for docs
2020-02-04 17:49:45 +10:00
Francesco Agosti
400fb5a5bb
Merge pull request #2468 from 0xProject/feat/fix-test-publish
...
Bump maxBuffer?
2020-02-03 19:59:03 -08:00
fragosti
3bb4f9085c
Add post-instal step
2020-02-03 18:13:31 -08:00
Jacob Evans
714c6cec3c
Bump maxBuffer?
2020-02-03 17:50:32 -08:00
Lawrence Forman
cb69921202
ERC20BridgeSampler: Unlock full sampling on Kovan ( #2459 )
...
* `@0x/contracts-utils`: Update kovan addresses in `DeploymentConstants`
* `@0x/contracts-erc20-bridge-sampler`: Make source IDs static on all networks, not inherited from `DeploymentConstants`.
* `@0x/contract-addresses`: Update `ERC20BridgeSampler` addresses on mainnet and kovan.
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-01-31 11:27:28 -05:00
Jacob Evans
277a0adac9
[base-contract] throw string revert error ( #2453 )
2020-01-24 07:48:26 +10:00
Jacob Evans
02d14f504f
Remove docs from sol-doc gitignore
2020-01-23 12:10:42 +10:00
Jacob Evans
1ab7664a60
Publish
...
- @0x/contracts-integrations@2.2.1
- 0x.js@9.0.5
- @0x/asset-swapper@4.0.1
- @0x/instant@1.0.42
2020-01-23 11:58:27 +10:00
Jacob Evans
1be46ffb7e
Updated CHANGELOGS & MD docs
2020-01-23 11:58:10 +10:00
Lawrence Forman
6ca52aed0d
@0x/asset-swapper: Fix understimated protocol fee in worst case quote. (#2452 )
2020-01-22 18:22:56 -05:00
Jacob Evans
74e20970e2
Create docs folder for sol-doc
2020-01-22 18:56:10 +10:00
Jacob Evans
93f2b6b4d8
Publish
...
- @0x/contracts-asset-proxy@3.1.1
- @0x/contracts-coordinator@3.0.4
- @0x/contracts-dev-utils@1.0.4
- @0x/contracts-erc1155@2.0.4
- @0x/contracts-erc20-bridge-sampler@1.1.0
- @0x/contracts-erc20@3.0.4
- @0x/contracts-erc721@3.0.4
- @0x/contracts-exchange-forwarder@4.0.4
- @0x/contracts-exchange-libs@4.1.0
- @0x/contracts-exchange@3.1.0
- @0x/contracts-extensions@5.1.3
- @0x/contracts-integrations@2.2.0
- @0x/contracts-multisig@4.0.4
- @0x/contracts-staking@2.0.4
- @0x/contracts-test-utils@5.1.1
- @0x/contracts-utils@4.1.0
- 0x.js@9.0.4
- @0x/abi-gen@5.1.0
- @0x/assert@3.0.4
- @0x/asset-swapper@4.0.0
- @0x/base-contract@6.1.0
- @0x/connect@6.0.4
- @0x/contract-addresses@4.3.0
- @0x/contract-artifacts@3.4.0
- @0x/contract-wrappers-test@12.2.5
- @0x/contract-wrappers@13.4.0
- @0x/contracts-gen@2.0.4
- @0x/dev-utils@3.1.1
- @0x/instant@1.0.41
- @0x/json-schemas@5.0.4
- @0x/migrations@6.0.0
- @0x/monorepo-scripts@1.0.47
- @0x/order-utils@10.1.1
- @0x/orderbook@2.1.0
- @0x/sol-compiler@4.0.4
- @0x/sol-coverage@4.0.4
- @0x/sol-doc@3.1.1
- @0x/sol-profiler@4.0.4
- @0x/sol-trace@3.0.4
- @0x/sol-tracing-utils@7.0.4
- @0x/sra-spec@3.0.4
- @0x/subproviders@6.0.4
- @0x/utils@5.2.0
- @0x/web3-wrapper@7.0.4
2020-01-22 18:49:46 +10:00
Jacob Evans
00e616b57a
Updated CHANGELOGS & MD docs
2020-01-22 18:49:24 +10:00
Jacob Evans
e436673304
[asset-swapper] Change Exchange sell to marketSellOrdersFillOrKill ( #2450 )
...
* Change Exchange sell to marketSellOrdersFillOrKill
* Update Changelog
2020-01-22 18:25:09 +10:00
James Towle
ce04d3ce41
Fix regression in DevUtils ( #2449 )
...
* fix bug in OrderTransferSimulationUtils causing failures for 721 assets
* Patched the regression and added tests
* Added regression test for fillable order
* Created a test for in and out of process ganache
* Split up DevUtils into two contracts
* Updated migration
* Remove the in and out of process ganache test
* Fixed contract addresses
* Appease linter
* Addressed review comments and updated artifacts, wrappers, and snapshots
* Fixed regression after refactor
* Update DevUtils and libTransactionDecoder contracts on mainnet and testnets
* Addressed @mzhu's review feedback
* Addressed @hysz's review feedback
* Updated devUtils address on testnets and mainnet after deployment
Co-authored-by: mzhu25 <mchl.zhu.96@gmail.com >
Co-authored-by: Fabio B <kandinsky454@protonmail.ch >
2020-01-22 12:54:10 +10:00
Jacob Evans
4e46bf4697
Merge pull request #2427 from 0xProject/feature/erc20-bridge-sampler/query-multiple-buys-sells
...
ERC20BridgeSampler: Allow for batching multiple buy/sell samples
2020-01-22 11:54:45 +10:00
Jacob Evans
9b95508f99
Merge pull request #2445 from 0xProject/feat/asset-swapper/better-best-price-quote
...
asset-swapper: provide more accurate best quote price
2020-01-22 11:16:40 +10:00
Jacob Evans
c8c24456c1
Fix prettier
2020-01-22 10:01:18 +10:00
Lawrence Forman
80a6e82e1b
@0x/contracts-erc20-bridge-sampler: Fix linter error.
2020-01-21 17:47:27 -05:00
Lawrence Forman
80cec20d38
Update packages/asset-swapper/src/utils/swap_quote_calculator.ts
...
Co-Authored-By: Jacob Evans <jacob@dekz.net >
2020-01-21 16:53:02 -05:00
Lawrence Forman
26cb22020d
Update packages/asset-swapper/src/utils/swap_quote_calculator.ts
...
Co-Authored-By: Jacob Evans <jacob@dekz.net >
2020-01-21 16:52:54 -05:00
Lawrence Forman
09d05d09c9
@0x/asset-swapper: Provide more accurate best quote price.
2020-01-21 15:48:35 +10:00
Jacob Evans
160c91f908
Rename to Batch
2020-01-21 15:48:35 +10:00
Jacob Evans
58f41bcd42
Update asset-swapper WIP
2020-01-21 15:46:31 +10:00
Jacob Evans
0235429995
Update contract addresses
2020-01-21 09:15:47 +10:00
Lawrence Forman
f79697e117
@0x/contract-wrappers: Fix linter error.
2020-01-20 13:30:58 +10:00
Lawrence Forman
6f0019c71e
@0x/contract-wrappers: Update IERC20BridgeSampler wrapper.
2020-01-20 13:30:58 +10:00
Lawrence Forman
1a04a18245
@0x/contract-artifacts: Update IERC20BridgeSampler artifact.
2020-01-20 13:30:57 +10:00
Lawrence Forman
0cf3ff8209
@0x/contracts-erc20-bridge-sampler: Increase gas forwarded to kyber and eth2dai.
...
`@0x/contracts-erc20-bridge-sampler`: Bail as soon as any quote from a DEX fails.
`@0x/contracts-erc20-bridge-sampler`: Fix broken tests.
2020-01-20 13:30:57 +10:00
Lawrence Forman
7f56091fbd
@0x/asset-swapper: Add exponential sampling, exposed by sampleDistributionBase.
...
`@0x/asset-swapper`: Disable ethgasstation polling in tests.
`@0x/asset-swapper`: Tweak default hyper parameters to be friendlier to big fills.
2020-01-20 13:30:57 +10:00
F. Eugene Aumson
391f9b31f6
wrappers.py: satisfy linter (rm unnecessary pass)
2020-01-20 13:30:56 +10:00
F. Eugene Aumson
1d7c0f504a
abi-gen: ran black on CLI test Python output
2020-01-20 13:30:56 +10:00
F. Eugene Aumson
9cdc62f918
abi-gen: fix bug w/ 2D arrays of UDT's in Python
...
Fix bug in handling 2-dimensional arrays of user defined data types in
generated Python code.
2020-01-20 13:30:56 +10:00
F. Eugene Aumson
6027d0481e
wrappers.py: fix clean not rm'ing gen'd code
2020-01-20 13:30:55 +10:00
F. Eugene Aumson
277fb92f9e
abi-gen: exit when black fails to parse Python
...
Note: this is not the same case as when the black executable can't be
found; that case is still just a (non-fatal) warning.
2020-01-20 13:30:55 +10:00
Jacob Evans
79b6c3c1af
Update CHANGELOGs
2020-01-20 13:30:55 +10:00
Jacob Evans
ad17174119
Rename to Batch
2020-01-20 13:30:54 +10:00
Jacob Evans
6c2692eec0
Enable batch fetching from orderbook. Refactor
2020-01-20 13:30:54 +10:00
Jacob Evans
08640e8575
Update asset-swapper WIP
2020-01-20 13:30:54 +10:00
Jacob Evans
4a2575136f
Allow for batching multiple buy/sell samples
2020-01-20 13:30:52 +10:00
Jacob Evans
e792afad17
Merge pull request #2441 from 0xProject/kroeger/fix_function_name_in_readme
...
Fixed function name in README, network -> chain
2020-01-20 13:29:45 +10:00
Jacob Evans
5ecc4b027d
Merge pull request #2448 from 0xProject/fix/python-latest-ganache
...
Fix/python latest ganache
2020-01-20 13:25:26 +10:00
Jacob Evans
bc540f0cf0
[python] change gas estimate expected
2020-01-20 12:53:34 +10:00
Jacob Evans
a24b14c465
Pull 0xorg/ganache-cli:6.0.0 in circleci
2020-01-20 12:06:28 +10:00
Jacob Evans
c3f36c3123
Change python to use latest ganache
2020-01-20 11:50:43 +10:00
fabioberger
1d34da7557
Remove -v3-beta from snapshot name
2020-01-19 20:10:06 +01:00
fabioberger
27d74a4327
Update ganache-cli version to Istanbul-compatible version
2020-01-19 20:09:50 +01:00
mzhu25
8a20cc682c
Merge pull request #2446 from 0xProject/feature/contract-addresses/update-dev-utils-1-17-20
...
`@0x/contract-addresses`: update DevUtils addresses
2020-01-17 13:38:04 -08:00
mzhu25
9b20359e7b
Merge pull request #2431 from 0xProject/feature/fuzz/revert-assertions
...
`@0x/contracts-integrations`: Negative assertions for fuzzing
2020-01-17 13:10:00 -08:00
Michael Zhu
8866d0ccef
update contract-addresses changelog
2020-01-17 12:42:56 -08:00
Michael Zhu
7fa91a9971
update dev-utils addresses
2020-01-17 12:39:07 -08:00
Amir Bandeali
28d1f3eef0
Merge pull request #2440 from 0xProject/feat/dev-utils/chai-bridge-validation
...
Add ChaiBridge order balance/allowance checks to DevUtils
2020-01-17 11:46:27 -08:00
Amir
f321cf6655
Update DevUtils contract wrapper
2020-01-17 11:08:04 -08:00
Amir
14ade737da
Fix linting errors
2020-01-17 10:47:17 -08:00
Amir
41b1b1f141
Skip failing dydxBridge tests
2020-01-17 10:47:17 -08:00
Amir
25dfd47d32
Fix Ganache migrations
2020-01-17 10:47:17 -08:00
Amir
6afa9c8b92
Add mainnet integration tests for checking balances/allowances of ChaiBridge orders using DevUtils
2020-01-17 10:00:16 -08:00
Amir
2fc449da4c
Fix integrations tests build
2020-01-17 10:00:16 -08:00
Amir
5dd3b8cf9d
Special case unlimited allowance for Chai
2020-01-17 09:59:03 -08:00
Amir
e834fa0050
Split Dai calculation and erc20 balance checks into separate functions
2020-01-17 09:59:03 -08:00
Amir
9a97401606
Add ChaiBridge allowance checks
2020-01-17 09:59:03 -08:00
Amir
410a3fef18
Add ChaiBridge balance checks to DevUtils
2020-01-17 09:59:03 -08:00
Amir Bandeali
969b9814d5
Merge pull request #2442 from 0xProject/feat/forwarder/1155-support
...
Add 1155 support to Forwarder
2020-01-16 11:41:20 -08:00
Amir
2275e27b87
Rename internal functions in LibAssetDataTransfer and fix tests
2020-01-15 18:33:02 -08:00
Amir
62b06cd204
Add tests for transfering ERC1155 tokens out
2020-01-15 18:33:02 -08:00
Amir
350934ca21
Remove unused params
2020-01-15 18:32:57 -08:00
mzhu25
6332673434
Merge pull request #2436 from 0xProject/fix/dev-utils/map-fixes
...
`@0x/contracts-dev-utils`: LibAssetData fixes
2020-01-15 16:10:11 -08:00
Michael Zhu
f217840998
address comments
2020-01-15 13:22:53 -08:00
Michael Zhu
089ec35ceb
update changelog
2020-01-15 13:22:53 -08:00
Michael Zhu
fecd0b809e
tslint be trippin
2020-01-15 13:20:54 -08:00
Michael Zhu
4707a46561
Add negative assertions for endEpoch
2020-01-15 13:20:54 -08:00
Michael Zhu
616533c5a8
Add negative assertions for moveStake
2020-01-15 13:20:54 -08:00
Michael Zhu
c5b2991821
fix bug in finalizePool
2020-01-15 13:20:54 -08:00
Michael Zhu
c36d0fdc7c
invalidWithdrawDelegatorRewardsAssertion
2020-01-15 13:20:54 -08:00
Michael Zhu
544e09cf4b
invalidUnstakeAssertion
2020-01-15 13:20:54 -08:00
Michael Zhu
c110dc9e6a
generic assertion for TRANSFER_FAILED reverts; _invalidStake generator
2020-01-15 13:20:54 -08:00
Michael Zhu
3bf37d6afd
invalidDecreaseStakingPoolOperatorShareAssertion
2020-01-15 13:20:54 -08:00
Michael Zhu
b80ae5796b
invalidCreateStakingPoolAssertion
2020-01-15 13:20:54 -08:00
Michael Zhu
2083632299
Update addresses, artifact, wrapper
2020-01-15 10:38:57 -08:00
Amir
3ca2f8ac9e
Split out transfer logic into library, add 1155 support
2020-01-14 20:27:12 -08:00
Greg Hysz
7172432084
Merge pull request #2443 from 0xProject/fix/abiDecoder/LogDecodingDynamicData
...
Fixes log decoding of dynamic data
2020-01-14 18:33:57 -08:00
Greg Hysz
0e6afd147f
Merge pull request #2437 from 0xProject/test/contracts-integrations/fuzzOrderMatching
...
Fuzz order matching
2020-01-14 18:04:27 -08:00
Greg Hysen
46275a4f43
Minor fixes to order matching fuzz code
2020-01-14 17:32:10 -08:00
Michael Zhu
1dca378e03
add division-by-zero check for ERC1155 too
2020-01-14 16:32:18 -08:00
Greg Hysen
06669594b1
Updated changelogs.
2020-01-14 16:18:50 -08:00
Greg Hysen
c09ac58ac0
Fuzz testing for matchOrders and matchOrdersWithMaximalFill.
2020-01-14 16:17:43 -08:00
Greg Hysen
e01d32ef1a
added order matching functions to Taker actor.
2020-01-14 16:17:43 -08:00
Greg Hysen
5ea3bcf59e
Added matchOrders and matchOrdersWithMaximalFill to the reference functions.
2020-01-14 16:17:43 -08:00
Greg Hysen
aa8b14b7ee
Added order martching to Maker actor. Also fixed the joinStakingPool to record the pool id.
2020-01-14 16:17:43 -08:00
Greg Hysen
e1722cf739
Updated changelogs
2020-01-14 15:01:02 -08:00
Greg Hysen
7a7f70e15d
Updating tests after fixing log decoding
2020-01-14 14:17:45 -08:00
Greg Hysen
b3c3ec16e5
Fixed log decoding. Dynamic structures were not decoding properly. Now uses AbiEncoder from utils package.
2020-01-14 14:17:42 -08:00
Michael Zhu
149f863951
unbreak migrations cli
2020-01-14 09:15:17 -08:00
Michael Zhu
684d09faac
refactor LibAssetData tests
2020-01-13 15:29:37 -08:00
Michael Zhu
8a42691c80
Add test cases
2020-01-13 14:10:55 -08:00
Michael Zhu
d591b3dd98
LibAssetData fixes
2020-01-13 14:10:55 -08:00
Alex Kroeger
a90fb4d8b6
Fixed function name in README, network -> chain
2020-01-13 13:33:54 -08:00
Lawrence Forman
ebd08d9c63
Contract wrappers: Catch empty reverts on live networks ( #2433 )
...
* `@0x/utils`: Allow strict decoding of return values.
* `@0x/base-contract`: Catch empty call reverts on live networks.
`@0x/abi-gen`: Catch empty call reverts on live networks.
* `@0x/contracts-integrations`: Add mainnet contract wrapper `callAsync()` revert behavior tests.
* `@0x/contract-wrappers`: Regenerate wrappers to catch empty reverts on live networks.
* Update CHANGELOGs
* `@0x/contracts-integrations`: Fix solidity linter errors.
* `@0x/abi-gen`: Regenerate test outputs.
* `@0x/base-contract`: Update CHANGELOG.
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-01-13 15:33:45 -05:00
Lawrence Forman
71731d223b
Update contract wrappers (esp Forwarder + asset-swapper) ( #2432 )
...
* `@0x/contract-artifacts`: Update artifacts.
* `@0x/contract-wrappers`: Regenerate wrappers.
* `@0x/migrations`: Update Forwarder migration.
* `@0x/asset-swapper`: Update forwarder fees for new forwarder contract.
* `@0x/dev-utils`: Make `"istanbul"` the default `hardfork` when creating a ganache provider.
* `@0x/asset-swapper`: Remove debug code.
* `@0x/asset-swapper`: Remove `getSmartContractParamsOrThrowAsync()` because why does it even exist?
`@0x/asset-swapper`: Fix broken tests.
`@0x/asset-swapper`: Correctly handle affiliate fees in `getCalldataOrThrow()`.
* `@0x/contract-wrappers`: Export `ExchangeOwnershipTransferredEventArgs`.
`@0x/0x.js`: Export `ExchangeOwnershipTransferredEventArgs`.
`@0x/asset-swapper`: Unexport `MethodAbi`, `ConstructorStateMutability`, and `StateMutability`.
* Update changelogs
* Update packages/migrations/CHANGELOG.json
Co-Authored-By: Jacob Evans <jacob@dekz.net >
* Update packages/asset-swapper/CHANGELOG.json
Co-Authored-By: Jacob Evans <jacob@dekz.net >
Co-authored-by: Lawrence Forman <me@merklejerk.com >
Co-authored-by: Jacob Evans <dekz@dekz.net >
2020-01-09 15:35:22 -05:00
David Sun
726ea5e01e
Merge pull request #2430 from 0xProject/feature/instant/enable-aggregator
...
Instant: whitelist tokens using bridge orders array
2020-01-08 16:50:40 -08:00
David Sun
16c7d2964b
typo
2020-01-08 16:17:25 -08:00
David Sun
5a6e494bda
lint + prettier
2020-01-08 16:16:29 -08:00
David Sun
88c6d89fbb
whitelist constants array
2020-01-08 13:55:53 -08:00
Lawrence Forman
de12da18da
Exchange signature validation fuzz tests ( #2425 )
...
* `@0x/contracts-integrations`: Add Exchange signature validation fuzz tests.
* `@0x/contracts-integrations`: Switch from actor pattern to just pure function generators.
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-01-07 17:35:25 -05:00
Amir Bandeali
8d10736934
Merge pull request #2390 from 0xProject/feat/forwarder/v2-backwards-compatibility
...
Make Forwarder backwards compatible with v2
2020-01-07 13:04:27 -08:00
Amir
2328e02d82
Redeploy Forwarder
2020-01-07 11:03:18 -08:00
Michael Zhu
87cd5fca90
address comments
2020-01-07 11:03:18 -08:00
Michael Zhu
b70cb726c5
remove _noTakerFee (i.e. disallow StaticCall takerFeeAssetData)
2020-01-07 11:03:18 -08:00
Michael Zhu
295811ed5a
add integrations tests
2020-01-07 11:03:18 -08:00
Michael Zhu
4bc55551c6
Add unit tests
2020-01-07 11:03:18 -08:00
Michael Zhu
2b8c6dc8f9
Forwarder StaticCall and MultiAsset buy support
2020-01-07 11:03:18 -08:00
Amir Bandeali
8b27380feb
Fix dep version
2020-01-07 11:03:18 -08:00
Amir Bandeali
8de3a90851
Update CHANGELOG
2020-01-07 11:03:18 -08:00
Amir Bandeali
f8bb94d721
Remove unnecessary BigNumber cast
2020-01-06 22:12:05 -08:00
Amir Bandeali
0c6d06e7bb
Redeploy bridges and Forwarder on mainnet
2020-01-06 22:12:05 -08:00
Amir Bandeali
b0aa5d3af2
Check makerFeeAssetData length before attempting to read id
2020-01-06 22:12:05 -08:00
Amir Bandeali
27d09713fd
Add forwarder mainnet tests
2020-01-06 22:12:05 -08:00
Amir Bandeali
ff18852879
Fix build
2020-01-06 22:12:05 -08:00
Amir Bandeali
e515c91e5e
Do not attempt to transfer asset if fill failed
2020-01-06 22:12:05 -08:00
Amir Bandeali
1d5800c4f7
Fix WETH compilation
2020-01-06 22:12:05 -08:00
Amir Bandeali
de8f190945
Change erc-20 package compiler target to istanbul
2020-01-06 22:12:05 -08:00
Amir Bandeali
f371e3c8d3
Regenerate boilerplate
2020-01-06 22:12:05 -08:00
Amir Bandeali
b15a6290a7
Handle v2 order edge cases
2020-01-06 22:12:05 -08:00
Amir Bandeali
0f151db355
Enable istanbul in Ganache
2020-01-06 22:12:05 -08:00
Amir Bandeali
fa99b75d1f
Redeploy Forwarder and all bridges
2020-01-06 22:12:05 -08:00
Amir Bandeali
4a299c1f39
Change EVM target to istanbul for all contract packages except erc-20
2020-01-06 22:12:05 -08:00
Amir Bandeali
30a2015a68
Fix build
2020-01-06 22:12:05 -08:00
Amir Bandeali
c7c8a4891f
Update TS boilerplate
2020-01-06 22:12:05 -08:00
Amir Bandeali
fe9fc6b459
Allow v2 orders to be filled if their makerAssetFeeData field uses a v2 order id
2020-01-06 22:12:05 -08:00
Jacob Evans
2113fb490d
Publish
...
- @0x/contracts-asset-proxy@3.1.0
- @0x/contracts-coordinator@3.0.3
- @0x/contracts-dev-utils@1.0.3
- @0x/contracts-erc1155@2.0.3
- @0x/contracts-erc20-bridge-sampler@1.0.3
- @0x/contracts-erc20@3.0.3
- @0x/contracts-erc721@3.0.3
- @0x/contracts-exchange-forwarder@4.0.3
- @0x/contracts-exchange-libs@4.0.3
- @0x/contracts-exchange@3.0.3
- @0x/contracts-extensions@5.1.2
- @0x/contracts-integrations@2.1.0
- @0x/contracts-multisig@4.0.3
- @0x/contracts-staking@2.0.3
- @0x/contracts-test-utils@5.1.0
- @0x/contracts-utils@4.0.3
- 0x.js@9.0.3
- @0x/abi-gen@5.0.3
- @0x/assert@3.0.3
- @0x/asset-swapper@3.0.3
- @0x/base-contract@6.0.3
- @0x/connect@6.0.3
- @0x/contract-addresses@4.2.0
- @0x/contract-artifacts@3.3.0
- @0x/contract-wrappers-test@12.2.4
- @0x/contract-wrappers@13.3.0
- @0x/contracts-gen@2.0.3
- @0x/dev-utils@3.1.0
- @0x/instant@1.0.40
- @0x/json-schemas@5.0.3
- @0x/migrations@5.1.0
- @0x/monorepo-scripts@1.0.46
- @0x/order-utils@10.1.0
- @0x/orderbook@2.0.1
- @0x/sol-compiler@4.0.3
- @0x/sol-coverage@4.0.3
- @0x/sol-doc@3.1.0
- @0x/sol-profiler@4.0.3
- @0x/sol-trace@3.0.3
- @0x/sol-tracing-utils@7.0.3
- @0x/sra-spec@3.0.3
- @0x/subproviders@6.0.3
- @0x/utils@5.1.2
- @0x/web3-wrapper@7.0.3
2020-01-06 11:10:22 +10:00
Jacob Evans
0afedbd252
Updated CHANGELOGS & MD docs
2020-01-06 11:10:03 +10:00
Jacob Evans
3dec38450a
Merge pull request #2396 from Arctek/patch-1
...
Fix circular reference
2020-01-06 10:29:19 +10:00
Jacob Evans
d7a00b05e3
Merge pull request #2423 from 0xProject/fix/migrations-docker-wget-timestamping
...
@0x/migrations/Dockerfile: Remove --timestamping arg from wget invocation
2020-01-06 10:27:35 +10:00
Lawrence Forman
ff2cc8c887
Add aggregator mainnet tests ( #2407 )
...
* `@0x/contracts-erc20-bridge-sampler`: Add gas limits to external quote calls.
`@0x/contract-addresses`: Point `erc20BridgeSampler` to new version.
* `@0x/contracts-utils`: Add kovan addresses to `DeploymentConstants`.
`@0x/contract-addresses`: Add kovan `ERC20BridgeSampler` address.
* `@0x/contracts-erc20-bridge-sampler`: Fix changelog.
* `@0x/asset-swapper`: Ignore zero sample results from the sampler contract.
`@0x/asset-swapper`: Allow skipping Uniswap when dealing with low precision amounts with `minUniswapDecimals` option.
`@0x/asset-swapper`: Increase default `runLimit` from `1024` to `4096`.
`@0x/asset-swapper`: Increase default `numSamples` from `8` to `10`
`@0x/asset-swapper`: Fix ordering of optimized orders.
`@0x/asset-swapper`: Fix best and worst quotes being reversed sometimes.
`@0x/asset-swapper`: Fix rounding of quoted asset amounts.
* `@0x/asset-swapper`: Change default `minUniswapDecimals` option from 8 to 7.
* `@0x/asset-swapper`: Revert uniswap decimals fix.
* `@0x/contracts-test-utils`: Add `blockchainTests.live()` for live network tests.
`@0x/contracts-test-utils`: Add modifiers to `blockchainTests.fork()`.
`@0x/contracts-integrations`: Add aggregator mainnet tests.
* `@0x/contracts-integrations`: Fix `fork/resets` modifier ordering on dydx tests.
`@0x/contracts-integrations`: Move and tweak aggregation tests.
* `@0x/contracts-integrations`: Handle non-responsive third-party SRA ordebooks with a little more grace.
* `@0x/contracts-integrations`: Fix linter error.
* `@0x/contracts-test-utils`: Consolidate fork provider logic into `mocha_blockchain.ts`.
* `@0x/contracts-integrations`: Run prettier on aggregation fill tests.
* `@0x/dev-utils`: Add `locked` to `Web3Config`.
* `@0x/contracts-integrations`: Update mainnet fork tests.
`@0x/contracts-test-utils`: Fix forked tests being skipped.
`@0x/contracts-erc20-bridge-sampler`: Regenerate artifacts.
* `@0x/contracts-test-utils`: Remove unecessary `locked` option when creating forked ganache provider.
* Fix redundant zero check
* Set fee amount in fillable amounts test
Co-authored-by: Jacob Evans <dekz@dekz.net >
2020-01-03 23:47:40 -05:00
Lawrence Forman
0571a96cea
Fix asset-swapper bugs and misc improvements. ( #2406 )
...
* `@0x/contracts-erc20-bridge-sampler`: Add gas limits to external quote calls.
`@0x/contract-addresses`: Point `erc20BridgeSampler` to new version.
* `@0x/asset-swapper`: Ignore zero sample results from the sampler contract.
`@0x/asset-swapper`: Allow skipping Uniswap when dealing with low precision amounts with `minUniswapDecimals` option.
`@0x/asset-swapper`: Increase default `runLimit` from `1024` to `4096`.
`@0x/asset-swapper`: Increase default `numSamples` from `8` to `10`
`@0x/asset-swapper`: Fix ordering of optimized orders.
`@0x/asset-swapper`: Fix best and worst quotes being reversed sometimes.
`@0x/asset-swapper`: Fix rounding of quoted asset amounts.
* `@0x/contracts-utils`: Add kovan addresses to `DeploymentConstants`.
`@0x/contract-addresses`: Add kovan `ERC20BridgeSampler` address.
* `@0x/asset-swapper`: Change default `minUniswapDecimals` option from 8 to 7.
* `@0x/contracts-erc20-bridge-sampler`: Fix changelog.
* `@0x/asset-swapper`: Revert uniswap decimals fix.
* `@0x/asset-swapper`: Undo bridge slippage when computing best case quote.
* `@0x/asset-swapper`: Take asset data from input orders instead of output orders in quote result calculation.
* `@0x/asset-swapper`: Move `SAMPLER_CONTRACT_GAS_LIMIT` constant to `market_operation_utils/constants`.
* Compare equivalent asset data
* Fix redundant zero check
* Update CHANGELOG
* Set fee amount in fillable amounts test
Co-authored-by: Jacob Evans <dekz@dekz.net >
2020-01-03 23:21:39 -05:00
Lawrence Forman
b7b457b076
Generate (complete) solidity docs ( #2391 )
...
* `@0x/sol-doc`: New doc generator.
* `@0x/sol-compiler`: Be more tolerant of AST-only compilation targets.
* `@0x/contracts-exchange`: Add more devdoc comments.
`@0x/contracts-exchange-libs`: Add more devdoc comments.
* `@0x/sol-doc`: Update package script.
* `@0x/sol-doc`: Remove unused files and update package scripts to be easier to configure.
* Add more devdocs to contracts.
* `@0x/sol-doc`: Remove doc artifacts.
* `@0x/sol-doc`: Add `.gitignore` and `.npmignore`.
* `@0x/contracts-exchange`: Fix compilation errors.
* Fix more broken contracts.
* `@0x/contracts-erc20-bridge-sampler`: Fix failing tests.
* `@0x/contracts-asset-proxy`: Remove accidentally introduced hackathion file (lol).
* `@0x/sol-doc`: Prevent some inherited contracts from being included in docs unintentionally.
* `@0x/sol-doc`: Rename test file.
* `@0x/contracts-exchange`: Update `orderEpoch` devdoc.
* `@0x/sol-doc`: Tweak event and function docs.
* Update CODEOWNERS.
* `@0x/sol-doc` Tweak function md generation.
* `@0x/sol-doc`: add `transformDocs()` tests.
* `@0x/sol-doc`: add `extract_docs` tests.
* `@0x/sol-doc` Fix linter errors.
* `@0x/contracts-erc20-bridge-sampler`: Fix broken `ERC20BridgeSampler.sol` compile.
* `@0x/sol-doc` Fix mismatched `dev-utils` dep version.
* `@0x/sol-doc`: Add `gen_md` tests.
* `@0x/sol-doc`: Remove `fs.promises` calls.
* `@0x/sol-doc`: Fix linter errors.
* `@0x/sol-doc`: Export all relevant types and functions.
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-01-03 22:59:18 -05:00
F. Eugene Aumson
d2c12005b2
Also publish versioned docker image tag
...
Not just `latest`
2020-01-03 16:51:02 -05:00
F. Eugene Aumson
25f26d7e5f
Remove --timestamping arg from wget invocation
2020-01-03 12:40:40 -05:00
F. Eugene Aumson
9d5724e1a0
Fix 0xorg/ganache-cli docker image not supporting re-runs ( #2420 )
...
* Overwrite existing snapshot when unzipping
* Don't re-download snapshot if it isn't updated
* Update CHANGELOG.json
2020-01-02 20:19:06 -05:00
David Sun
784d23ec87
Merge pull request #2416 from 0xProject/feature/instant/disable-file-removal--in-s3
...
Instant - Added should_remove_files_in_s3 flag in discharge configuration
2019-12-22 20:54:43 -08:00
James Towle
709689a7ee
Merge pull request #2417 from 0xProject/tests/fix/dev-utils-tests
...
Fixed the DevUtils tests
2019-12-21 16:55:33 -08:00
F. Eugene Aumson
35d5d3d995
Pare down Mesh env vars in Py test env ( #2418 )
2019-12-21 13:19:00 -05:00
Alex Towle
630a8d8a4e
Addressed dorothy's nit
2019-12-20 19:14:52 -08:00
Alex Towle
54eb1d9055
Fixed the DevUtils tests
2019-12-20 15:51:45 -08:00
David Sun
cb63caea61
prettier
2019-12-20 12:57:40 -08:00
David Sun
8e046bb022
updated to new flag name
2019-12-20 12:07:59 -08:00
David Sun
189b53b8c4
added removal flag in configuration
2019-12-20 11:40:54 -08:00
Lawrence Forman
9b7277d464
Fix Kyber and Uniswap ERC20Bridges ( #2412 )
...
* `@0x/contracts-asset-proxy`: Fix `UniswapBridge` token -> token transfer logic.
`@0x/contract-addresses`: Update `UniswapBridge` mainnet address.
* `@0x/asset-proxy`: Fix `KyberBridge` incorrect `minConversionRate` calculation.
* `@0x/contract-addresses`: Update `KyberBridge` mainnet address.
2019-12-20 13:41:52 -05:00
F. Eugene Aumson
551a65c069
0x-sra-client.py: Fix bug in config_order, and other small improvements ( #2399 )
...
* Bug fix: unescape backslashes in regexes
Root problem is that there are too many backslashes in the SRA spec
itself. See https://github.com/0xProject/0x-monorepo/issues/1727
This was previously fixed for heavily-tested endpoints (get and post
order, etc), but was only recently discovered for the get-order-config
endpoint.
* Demonstrate get_order_config()
* Rename DefaultApi to RelayerApi
* Simplify RelayerApi instantiation
* Document paylod and response schemas
* Stop caring which contracts are wrapped
* Increase platform agnosticism
* Update CHANGELOG
* Remove unnecessary f-string
2019-12-20 12:24:55 -05:00
F. Eugene Aumson
4c21a697f4
sra_client.py: Tweak Mesh block polling interval used in tests ( #2413 )
...
* Change Mesh block polling interval to 50ms
* Increase Mesh's Ethereum node RPC rate limit
2019-12-20 11:26:57 -05:00
Greg Hysz
a8506c07ae
Merge pull request #2401 from 0xProject/feat/asset-proxy/DyDxBridgeTests
...
DydxBridge Contract Integration Tests
2019-12-19 22:16:44 -08:00
Greg Hysen
b0feb85b5c
Fixed merge conflict
2019-12-19 21:36:43 -08:00
Greg Hysen
f371eba8ad
Hardcoded address of ERC20BridgeProxy in unlocked accounts
2019-12-19 21:32:03 -08:00
Greg Hysen
265fa52ace
Rounding error tests in DydxBridgeProxy
2019-12-19 21:32:03 -08:00
Greg Hysen
c1f5322d38
Added TestDydxUser contract - this is deployed to mainnent as the dYdX Account Owner for the mainnet integration tests.
2019-12-19 21:32:03 -08:00
Greg Hysen
4415e00b38
Added more integration tests for DydxBridge with the Exchange (demonstrates use cases)
2019-12-19 21:32:03 -08:00
Greg Hysen
d4e46c5a9c
Updated Changelogs
2019-12-19 21:32:03 -08:00
Greg Hysen
bf5b9949fe
Ran prettier
2019-12-19 21:32:03 -08:00
Greg Hysen
3c11a2b1da
Increased mocha timeout for mainnet tests
2019-12-19 21:32:03 -08:00
Greg Hysen
1248868169
Added mainnet DydxBridge integration tests with dYdX SoloMargin contract
2019-12-19 21:32:03 -08:00
Greg Hysen
930b95a548
Added integration tests for DydxBridge with Exchange contract
2019-12-19 21:32:03 -08:00
Greg Hysen
27c9f68c7c
Added dydx bridge to contract-addresses package
2019-12-19 21:32:02 -08:00
Greg Hysen
358d4d86a7
Added ERC20BridgeProxy.transferFrom tests for DydxBridge
2019-12-19 21:31:07 -08:00
Lawrence Forman
d55eea2239
ERC20BridgeSampler: Gas limits ( #2405 )
...
* `@0x/contracts-erc20-bridge-sampler`: Add gas limits to external quote calls.
`@0x/contract-addresses`: Point `erc20BridgeSampler` to new version.
* `@0x/contracts-utils`: Add kovan addresses to `DeploymentConstants`.
`@0x/contract-addresses`: Add kovan `ERC20BridgeSampler` address.
* `@0x/contracts-erc20-bridge-sampler`: Fix changelog.
* `@0x/contracts-erc20-bridge-contracts`: Fix invalid CHANGELOG json (I hope).
2019-12-20 00:08:39 -05:00
David Sun
4507954ea5
Merge pull request #2410 from 0xProject/fix/instant/coverage
...
Fix bundlewatch for instant and passing static-test
2019-12-19 22:37:42 -05:00
David Sun
8e0a83f8d8
bundlewatch
2019-12-19 19:20:24 -08:00
David Sun
b6ec09e6cf
Merge pull request #2409 from 0xProject/feature/instant/minor-fixes-dai-aggregator
...
Fixes for instant (DAI + disable aggregator functionality)
2019-12-19 20:21:59 -05:00
David Sun
ed4e90623d
more fixes
2019-12-19 16:49:20 -08:00
David Sun
38cdb48748
fixes
2019-12-19 16:36:00 -08:00
James Towle
71bfe9b745
Merge pull request #2402 from 0xProject/deploy/dev-utils/12-18-2019
...
Added artifacts, addresses, and wrappers
2019-12-19 14:38:01 -08:00
Alex Towle
9e7645a167
Removed hand-written timestamps
2019-12-19 13:26:00 -08:00
Alex Towle
6dccc37143
Removed forbidden fields in artifact
2019-12-19 11:40:49 -08:00
Alex Towle
3310310d8c
Added artifacts, addresses, and wrappers
2019-12-19 10:32:01 -08:00
Greg Hysz
abb499aad8
Merge pull request #2403 from 0xProject/fix/circle/yarnInstall
...
Fix Circle builds
2019-12-19 10:24:48 -08:00
Greg Hysen
1afc09b08a
Workaround for https://github.com/yarnpkg/yarn/issues/7773
2019-12-19 01:12:46 -08:00
Alex Browne
0e86d72f05
Merge pull request #2384 from 0xProject/update-code-owners-contracts-albrow
...
Update CODEOWNERS
2019-12-18 13:48:31 -08:00
mzhu25
c9857a2764
Merge pull request #2392 from 0xProject/feature/fuzz/better-input-gen
...
`@0x/contracts-integrations`: Better input generation for fuzzing
2019-12-18 12:03:23 -08:00
Michael Zhu
701ba3902c
add comments
2019-12-18 11:38:33 -08:00
Michael Zhu
bb3ec970a9
lint
2019-12-18 11:38:33 -08:00
Michael Zhu
1d023e6db5
Add optional parameter to sample and sampleSize
2019-12-18 11:38:33 -08:00
Michael Zhu
1bd906ecb3
Add optional distribution parameter to Pseudorandom.integer, use Kumaraswamy distribution for operator share
2019-12-18 11:38:33 -08:00
James Towle
7cbffdb86b
Merge pull request #2400 from 0xProject/feature/dev-utils/duplicate-erc721-bug-fix
...
Duplicate ERC721 Bug Fix
2019-12-18 10:46:27 -08:00
Alex Towle
b979196ffd
Remove the taker patch
2019-12-17 19:02:57 -08:00
Alex Towle
2949db5f49
Fixed the bug and added tests that fail without the patch
2019-12-17 19:02:57 -08:00
Alex Towle
47c3ed9705
Fixed the bug and moved "contracts-tests" to "contracts-integrations"
2019-12-17 19:02:57 -08:00
xianny
51ca3109eb
Publish
...
- @0x/contracts-asset-proxy@3.0.2
- @0x/contracts-coordinator@3.0.2
- @0x/contracts-dev-utils@1.0.2
- @0x/contracts-erc1155@2.0.2
- @0x/contracts-erc20-bridge-sampler@1.0.2
- @0x/contracts-erc20@3.0.2
- @0x/contracts-erc721@3.0.2
- @0x/contracts-exchange-forwarder@4.0.2
- @0x/contracts-exchange-libs@4.0.2
- @0x/contracts-exchange@3.0.2
- @0x/contracts-extensions@5.1.1
- @0x/contracts-integrations@2.0.2
- @0x/contracts-multisig@4.0.2
- @0x/contracts-staking@2.0.2
- @0x/contracts-test-utils@5.0.1
- @0x/contracts-tests@0.0.8
- @0x/contracts-utils@4.0.2
- 0x.js@9.0.2
- @0x/abi-gen@5.0.2
- @0x/assert@3.0.2
- @0x/asset-swapper@3.0.2
- @0x/base-contract@6.0.2
- @0x/connect@6.0.2
- @0x/contract-addresses@4.1.0
- @0x/contract-artifacts@3.2.0
- @0x/contract-wrappers-test@12.2.3
- @0x/contract-wrappers@13.2.0
- @0x/contracts-gen@2.0.2
- @0x/dev-utils@3.0.2
- @0x/instant@1.0.39
- @0x/json-schemas@5.0.2
- @0x/migrations@5.0.2
- @0x/monorepo-scripts@1.0.45
- @0x/order-utils@10.0.1
- @0x/orderbook@2.0.0
- @0x/sol-compiler@4.0.2
- @0x/sol-coverage@4.0.2
- @0x/sol-doc@3.0.2
- @0x/sol-profiler@4.0.2
- @0x/sol-resolver@3.0.2
- @0x/sol-trace@3.0.2
- @0x/sol-tracing-utils@7.0.2
- @0x/sra-spec@3.0.2
- @0x/subproviders@6.0.2
- @0x/types@3.1.1
- @0x/typescript-typings@5.0.1
- @0x/utils@5.1.1
- @0x/web3-wrapper@7.0.2
2019-12-16 16:05:16 -08:00
xianny
2bcb79dc44
Updated CHANGELOGS & MD docs
2019-12-16 16:05:03 -08:00
xianny
ecec985649
pin python regex version
2019-12-16 14:22:48 -08:00
Lawrence Forman
994908549d
Asset-swapper aggregator utils ( #2353 )
...
* `@0x/asset-swapper`: Add ERC20Bridge aggregator library.
* `@0x/asset-swapper`: Finish off `aggregate.ts`.
* `@0x/types`: Add `OrderWithoutDomain` type.
* `@0x/asset-swapper`: Add testing infra for sampler/aggregator.
* `@0x/types`: Add `SignedOrderWithoutDomain` type.
* `@0x/asset-swapper`: Update aggregator to take and return orders with signatures.
* `@0x/asset-swapper`: Fix broken aggregator tests.
* `@0x/asset-swapper`: Pass the sampler contract into aggregator entry points.
* `@0x/contract-artifacts`: Add `IERC20BridgeSampler` artifact.
* `@0x/contract-wrappers`: Add `IERC20BridgeSampler` wrapper.
* `@0x/asset-swapper`: Address review comments.
* fixed testing
* refactored aggregate.ts and embeded into asset-swapper
* added adjusted rates for taker and maker fees
* remove PrunedSignedOrders
* updated contract-addresses and addressed some other todos
* streamlined logic
* patched in lawrences changes
* renamed aggregator utils and removed market_utils.ts
* added ack heartbeats
* fixed bug
* patches
* added dummy order things
* Dummy with valid sig
* Tweak gas price calculation to wei
* added test coverage and fixed bugs
* fixed migrations
* Fix CHANGELOGs and types export
* Deploy latest ERC20BridgeSampler on Mainnet
* `@0x/types` Revert CHANGELOG.
* `@0x/asset-swapper`: Address review comments.
`@0x/contract-addresses`: Make kyber lowercase.
* made protocol fee multiplier async
* `@0x/asset-swapper: Fix build errors and do some code cleanup.
* use assetDataUtils where possible
2019-12-16 12:35:58 -08:00
Arctek
e00f059a4a
Fix circular refence
2019-12-14 16:00:05 +10:30
Greg Hysz
6808e0d531
Merge pull request #2365 from 0xProject/feat/asset-proxy/DyDxBridge
...
dYdX Bridge
2019-12-13 13:46:06 -08:00
Greg Hysen
410c95308a
Updated dydx account encoding to assume that all actions are on partial balances
2019-12-13 12:02:23 -08:00
Greg Hysen
bec1f23616
Fixed merge conflicts
2019-12-13 11:06:16 -08:00
Greg Hysen
34596b7f83
Use safeGetPartialAmountFloor
2019-12-13 10:58:22 -08:00
Greg Hysen
5ca7169ee5
Reverted to version of dydx bridge that only allows from to be the account owner
2019-12-13 10:58:22 -08:00
Greg Hysen
3300aaa1b9
Refactored so that deposits are done from taker asset data and withdrawals from maker asset data.
2019-12-13 10:58:22 -08:00
Greg Hysen
54afc8a4a1
Fixed merge conflicts
2019-12-13 10:58:22 -08:00
Greg Hysen
f19f4310f4
Updating bridge to work w/o MultiAssetProxy
2019-12-13 10:57:57 -08:00
Greg Hysen
444125a7e1
Simplified the dydx bridge implememtation that does not use the bridge as the maker.
2019-12-13 10:57:57 -08:00
Greg Hysen
56cbb69401
DyDx bridge implementation using contract as maker with signature validation.
2019-12-13 10:56:54 -08:00
Lawrence Forman
70870ffcd2
Swallow reverts in ERC20BridgeSampler ( #2395 )
...
* `@0x/erc20-bridge-sampler`: Do not query empty/unsigned orders. Swallow revets on DEX quotes.
* `@0x/contracts-utils`: Add `DEV_UTILS_ADDRESS` and `KYBER_ETH_ADDRESS` to `DeploymentConstants`.
* `@0x/contracts-erc20-bridge-sampler`: Address review comments.
2019-12-13 10:53:25 -08:00
mzhu25
a556d91673
Merge pull request #2387 from 0xProject/feature/fuzz/staking-rewards
...
`@0x/contracts-integrations`: Staking rewards fuzz test
2019-12-12 15:43:29 -08:00
Michael Zhu
8ecbde8e1e
Chagne StoredBalance functions to not mutate in place
2019-12-12 15:21:42 -08:00
Michael Zhu
a24b293818
register actors in the SimulationEnvironment constructor
2019-12-12 14:38:07 -08:00
Xianny
cab5ebf94b
re-enable coordinator client tests ( #2394 )
2019-12-12 14:36:52 -08:00
Jacob Evans
a54b5baef2
Merge pull request #2393 from 0xProject/feature/orderbook-orderstore-async
...
orderbook: Make OrderStore async for use in db adapter
2019-12-12 10:30:17 -08:00
Jacob Evans
c324fe204e
Make OrderStore async for use in db adapter
...
CHANGELOGS
2019-12-12 09:43:07 -08:00
Amir Bandeali
37d972ed9e
Merge pull request #2389 from 0xProject/feat/contracts/mainnet-fork
...
Allow mainnet fork to be used for contract tests
2019-12-11 22:50:09 -08:00
Michael Zhu
e4a3b1cb05
fix bug in LibFractions reference function
2019-12-11 18:12:02 -08:00
Michael Zhu
49538f272e
address comments
2019-12-11 16:54:48 -08:00
mzhu25
1283232144
Merge pull request #2372 from 0xProject/feature/fuzz/prng
...
`@0x/contracts-integrations`: Seeded RNG and simulation logging
2019-12-11 10:23:08 -08:00
Michael Zhu
2f9891f0aa
fix CI failures
2019-12-10 00:32:48 -08:00
Michael Zhu
865a2b1fb0
add/update comments
2019-12-09 23:45:38 -08:00
Michael Zhu
1fde62eeb6
fix bug in finalizePool
2019-12-09 23:45:38 -08:00
Michael Zhu
6754cd48e2
refactor + fix lint
2019-12-09 23:45:38 -08:00
Michael Zhu
ccb477687a
fixing bugs
2019-12-09 23:45:38 -08:00
Michael Zhu
be0e6c8925
Staking rewards simulation/fuzz test
2019-12-09 23:45:38 -08:00
Michael Zhu
1c2cb947c0
Add assertion generators to keeper, staker, taker mixins for the new function assertions
2019-12-09 23:45:38 -08:00
Michael Zhu
4663eec950
Add function assertions required for staking rewards fuzzing: withdrawDelegatorRewards, finalizePool, and endEpoch. Also adds payProtocolFee-related assertions to fillOrder
2019-12-09 23:45:37 -08:00
Michael Zhu
fff3c1eb36
update pool membership simulation to use multiple makers and takers, partial fills
2019-12-09 23:43:16 -08:00
Michael Zhu
4b7434d1e8
post-rebase lockfile update
2019-12-09 23:42:32 -08:00
Michael Zhu
8cc35a60e6
Add yarn command to run a specific fuzz test
2019-12-09 23:42:32 -08:00
Michael Zhu
130653a1aa
move logger, pseudorandom, wrapper_interfaces to framework/utils/
2019-12-09 23:42:32 -08:00
Michael Zhu
1dcbebd130
lint
2019-12-09 23:42:32 -08:00
Michael Zhu
faf306ad23
Simulation logging, hopefully address function assertion lifetime issue
2019-12-09 23:42:32 -08:00
Michael Zhu
d11cdcd5d2
Use seeded rng for simulations
2019-12-09 23:42:32 -08:00
Amir Bandeali
0e59bd0bf3
Add mainnet config tests
2019-12-09 16:16:22 -08:00
Amir Bandeali
c0c6154ec1
Add fork option to describe and blockchainTests
2019-12-09 16:14:41 -08:00
Amir Bandeali
cb5384c2fb
Use fork configs if FORK_RPC_URL env var is set
2019-12-09 16:14:41 -08:00
Amir Bandeali
038c836fe5
Rename fillorder_test to fill_order_test
2019-12-09 16:14:41 -08:00
xianny
6b0f3570b9
Publish
...
- @0x/contracts-asset-proxy@3.0.1
- @0x/contracts-coordinator@3.0.1
- @0x/contracts-dev-utils@1.0.1
- @0x/contracts-erc1155@2.0.1
- @0x/contracts-erc20-bridge-sampler@1.0.1
- @0x/contracts-erc20@3.0.1
- @0x/contracts-erc721@3.0.1
- @0x/contracts-exchange-forwarder@4.0.1
- @0x/contracts-exchange-libs@4.0.1
- @0x/contracts-exchange@3.0.1
- @0x/contracts-extensions@5.1.0
- @0x/contracts-integrations@2.0.1
- @0x/contracts-multisig@4.0.1
- @0x/contracts-staking@2.0.1
- @0x/contracts-test-utils@5.0.0
- @0x/contracts-tests@0.0.7
- @0x/contracts-utils@4.0.1
- 0x.js@9.0.1
- @0x/abi-gen@5.0.1
- @0x/assert@3.0.1
- @0x/asset-swapper@3.0.1
- @0x/base-contract@6.0.1
- @0x/connect@6.0.1
- @0x/contract-artifacts@3.1.0
- @0x/contract-wrappers-test@12.2.2
- @0x/contract-wrappers@13.1.0
- @0x/contracts-gen@2.0.1
- @0x/dev-utils@3.0.1
- @0x/instant@1.0.38
- @0x/json-schemas@5.0.1
- @0x/migrations@5.0.1
- @0x/monorepo-scripts@1.0.44
- @0x/order-utils@10.0.0
- @0x/orderbook@1.0.1
- @0x/sol-compiler@4.0.1
- @0x/sol-coverage@4.0.1
- @0x/sol-doc@3.0.1
- @0x/sol-profiler@4.0.1
- @0x/sol-resolver@3.0.1
- @0x/sol-trace@3.0.1
- @0x/sol-tracing-utils@7.0.1
- @0x/sra-spec@3.0.1
- @0x/subproviders@6.0.1
- @0x/types@3.1.0
- @0x/utils@5.1.0
- @0x/web3-wrapper@7.0.1
2019-12-09 14:53:19 -08:00
xianny
71de0d04f3
Updated CHANGELOGS & MD docs
2019-12-09 14:53:05 -08:00
Xianny
99debff5d2
Add syntactic sugar for assetDataUtils ( #2388 )
...
* add syntactic sugar for assetDataUtils
2019-12-09 13:55:58 -08:00
Amir Bandeali
3bac6fcb27
Merge pull request #2377 from 0xProject/feat/forwarder/multi-affiliate-fees
...
Forwarder affiliate fee usability improvements
2019-12-08 19:13:28 -08:00
Amir Bandeali
4b842b81a0
Address PR feedback
2019-12-08 16:28:00 -08:00
Amir Bandeali
e2e4d048ab
Update tests to use new Forwarder interface
2019-12-04 21:23:55 -08:00
Amir Bandeali
5574c368cd
Allow different ETh fees to be specified for different feeRecipient addresses
2019-12-04 21:23:55 -08:00
Amir Bandeali
0d34f7b92e
Add EthFeeLengthMismatchError
2019-12-04 21:23:55 -08:00
Amir Bandeali
5be0632e01
Add tests with multiple fee recipients
2019-12-04 21:23:55 -08:00
Amir Bandeali
79ea0bf9f4
Allow affiliate fee to be split between multiple fee recipient addresses
2019-12-04 21:23:54 -08:00
Amir Bandeali
b1929cb688
Update affiliate fee tests
2019-12-04 21:23:54 -08:00
Amir Bandeali
5ad98700e5
Remove FeePercentageTooLargeError rich revert
2019-12-04 21:22:54 -08:00
Amir Bandeali
a54624b697
Do not return ethFeePaid
2019-12-04 21:22:54 -08:00
Amir Bandeali
ca34c865af
Remove max fee percentage for affiliate fees
2019-12-04 21:22:54 -08:00
Amir Bandeali
dde57b1eca
Make affiliate fee a flat amount
2019-12-04 21:22:54 -08:00
Amir Bandeali
264b06938e
Merge pull request #2378 from 0xProject/feat/bridges/chai-bridge
...
Implement ChaiBridge
2019-12-04 16:25:46 -08:00
John Johnson
99edb303e2
Merge pull request #2386 from 0xProject/feature/fix-unbound-provider
...
Fix unbound method in provider standardizer
2019-12-04 15:44:22 -08:00
John Johnson
104cc24dfc
Fixing unbound provider (metamask v7.7 incorrectly binds this)
2019-12-04 15:09:00 -08:00
Xianny
fcbcbac889
Remove assetDataUtils everywhere ( #2373 )
...
* remove assetDataUtils everywhere
* export IAssetDataContract from @0x/contract-wrappers to allow @0x/instant to decode asset data synchronously
* export generic function `decodeAssetDataOrThrow` and add ERC20Bridge support
* export `hexUtils` from order-utils instead of contracts-test-utils
2019-12-04 13:08:08 -08:00
mzhu25
b86d19028c
Merge pull request #2366 from 0xProject/feature/fuzz/makers-and-takers
...
Pool Member Fuzz Tests
2019-12-04 11:12:55 -08:00
F. Eugene Aumson
4f17a251d3
Python publish for v3 ( #2383 )
...
* Remove pre-release suffixes from version numbers
* For wrapper test, pull latest ganache image first
* For wrapper test, unpin ganache, use beta snapshot
* In docs, advise using beta ganache snapshot
Because we haven't yet published the non-beta snapshot
* Unpin package interdependencies
* unpin tests from beta 0xorg/ganache-cli version
* use beta ganache snapshot
* Set release date in CHANGELOGs
* In testing deployment, stop testing pre-releases
* Include rmtree("build") in all clean commands
* Fix clean not cleaning what it thought it was
* In monorepo script, install pkgs 1st then dev deps
* Stop pinning ganache snapshot version
* In test setup, wait longer for mesh to start up
* Fix broken hyperlinks in docs
* fix missing \n that was breaking doc rendering
* In monorepo script comment, fix typo, and clarify
2019-12-04 08:42:00 -08:00
Alex Browne
731a823cc2
Update CODEOWNERS
...
Remove albrow as code owner for the `contract-addresses` and `contract-artifacts` packages. It's been a long time since I've worked on these packages and I am no longer the best person to review changes to them.
2019-12-03 17:19:08 -08:00
Michael Zhu
3d79fe2bf4
post-rebase lockfile update
2019-12-03 15:34:59 -08:00
Alex Towle
474399154f
Addressed last review comment
2019-12-03 14:41:53 -08:00
Alex Towle
19f5153d0e
Addressed some review feedback
2019-12-03 14:41:53 -08:00
Alex Towle
ce11271866
Appease the linter
2019-12-03 14:40:18 -08:00
Alex Towle
86cf353296
Improved the fuzz test
2019-12-03 14:40:07 -08:00
Alex Towle
36df5dc721
Implemented a hacky version of the fillOrder fuzz tests
2019-12-03 14:40:07 -08:00
Alex Towle
1e44a9c942
Made function assertions work with the new wrappers
2019-12-03 14:39:29 -08:00
mzhu25
8685cf9036
Merge pull request #2357 from 0xProject/refactor/integrations/transaction-tests
...
`@0x/contracts-integrations`: Transaction integration tests
2019-12-03 11:04:11 -08:00
Michael Zhu
2232870b09
address comments
2019-12-03 10:35:59 -08:00
Amir Bandeali
b68acd101e
Fix failing tests
2019-12-03 08:46:47 -08:00
Amir Bandeali
173ba9b2b5
Add ChaiBridge unit tests
2019-12-02 16:42:17 -08:00
Amir Bandeali
64ed1f87d3
Rethrow custom error string if draw call fails
2019-12-02 16:42:17 -08:00
Michael Zhu
1ca085ec4a
address comments
2019-12-02 15:39:03 -08:00
Michael Zhu
e332b7535c
prettier
2019-12-02 15:39:02 -08:00
Michael Zhu
79eb613b3e
Use AbiEncoder for methodAbiToFunctionSignature
2019-12-02 15:39:02 -08:00
Michael Zhu
5a79ec28d1
transaction protocol fee integration tests
2019-12-02 15:39:02 -08:00
Michael Zhu
97e65a02c0
fix test nesting
2019-12-02 15:39:02 -08:00
Michael Zhu
e87c786b77
fix dataItemsToABIString
2019-12-02 15:39:02 -08:00
Michael Zhu
251d30d47f
refactor transaction integration tests to use new framework
2019-12-02 15:39:02 -08:00
fabioberger
761d0a0f18
Publish
...
- @0x/contracts-asset-proxy@3.0.0
- @0x/contracts-coordinator@3.0.0
- @0x/contracts-dev-utils@1.0.0
- @0x/contracts-erc1155@2.0.0
- @0x/contracts-erc20-bridge-sampler@1.0.0
- @0x/contracts-erc20@3.0.0
- @0x/contracts-erc721@3.0.0
- @0x/contracts-exchange-forwarder@4.0.0
- @0x/contracts-exchange-libs@4.0.0
- @0x/contracts-exchange@3.0.0
- @0x/contracts-extensions@5.0.0
- @0x/contracts-integrations@2.0.0
- @0x/contracts-multisig@4.0.0
- @0x/contracts-staking@2.0.0
- @0x/contracts-test-utils@4.0.0
- @0x/contracts-tests@0.0.6
- @0x/contracts-utils@4.0.0
- 0x.js@9.0.0
- @0x/abi-gen@5.0.0
- @0x/assert@3.0.0
- @0x/asset-swapper@3.0.0
- @0x/base-contract@6.0.0
- @0x/connect@6.0.0
- @0x/contract-addresses@4.0.0
- @0x/contract-artifacts@3.0.0
- @0x/contract-wrappers-test@12.2.1
- @0x/contract-wrappers@13.0.0
- @0x/contracts-gen@2.0.0
- @0x/dev-utils@3.0.0
- ethereum-types@3.0.0
- @0x/instant@1.0.37
- @0x/json-schemas@5.0.0
- @0x/migrations@5.0.0
- @0x/monorepo-scripts@1.0.43
- @0x/order-utils@9.0.0
- @0x/orderbook@1.0.0
- @0x/sol-compiler@4.0.0
- @0x/sol-coverage@4.0.0
- @0x/sol-doc@3.0.0
- @0x/sol-profiler@4.0.0
- @0x/sol-resolver@3.0.0
- @0x/sol-trace@3.0.0
- @0x/sol-tracing-utils@7.0.0
- @0x/sra-spec@3.0.0
- @0x/subproviders@6.0.0
- @0x/tslint-config@4.0.0
- @0x/types@3.0.0
- @0x/typescript-typings@5.0.0
- @0x/utils@5.0.0
- @0x/web3-wrapper@7.0.0
2019-12-02 15:31:06 +01:00
fabioberger
ae4b1e74f9
Updated CHANGELOGS & MD docs
2019-12-02 15:30:53 +01:00
Jacob Evans
ac44618e58
Remove DIST_TAG
2019-12-03 00:44:01 +11:00
Jacob Evans
d634cbf924
Major version CHANGELOGs
2019-12-03 00:26:25 +11:00
Jacob Evans
21db0e6275
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.4
- @0x/contracts-coordinator@2.1.0-beta.4
- @0x/contracts-dev-utils@0.1.0-beta.4
- @0x/contracts-erc1155@1.2.0-beta.4
- @0x/contracts-erc20-bridge-sampler@1.0.0-beta.2
- @0x/contracts-erc20@2.3.0-beta.4
- @0x/contracts-erc721@2.2.0-beta.4
- @0x/contracts-exchange-forwarder@3.1.0-beta.4
- @0x/contracts-exchange-libs@3.1.0-beta.4
- @0x/contracts-exchange@2.2.0-beta.4
- @0x/contracts-extensions@4.1.0-beta.4
- @0x/contracts-integrations@1.0.3-beta.2
- @0x/contracts-multisig@3.2.0-beta.4
- @0x/contracts-staking@1.1.0-beta.4
- @0x/contracts-test-utils@3.2.0-beta.4
- @0x/contracts-tests@0.0.5
- @0x/contracts-utils@3.3.0-beta.4
- 0x.js@8.0.0-beta.3
- @0x/abi-gen@4.4.0-beta.4
- @0x/assert@2.2.0-beta.3
- @0x/asset-swapper@2.1.0-beta.4
- @0x/base-contract@5.5.0-beta.4
- @0x/connect@5.1.0-beta.3
- @0x/contract-addresses@3.3.0-beta.5
- @0x/contract-artifacts@2.3.0-beta.4
- @0x/contract-wrappers-test@12.2.0
- @0x/contract-wrappers@12.2.0-beta.4
- @0x/contracts-gen@1.1.0-beta.4
- @0x/dev-utils@2.4.0-beta.4
- @0x/instant@1.0.36
- @0x/json-schemas@4.1.0-beta.3
- @0x/migrations@4.4.0-beta.4
- @0x/monorepo-scripts@1.0.42
- @0x/order-utils@8.5.0-beta.4
- @0x/orderbook@0.1.0-beta.4
- @0x/sol-compiler@3.2.0-beta.4
- @0x/sol-coverage@3.1.0-beta.4
- @0x/sol-doc@2.1.0-beta.4
- @0x/sol-profiler@3.2.0-beta.4
- @0x/sol-resolver@2.1.0-beta.3
- @0x/sol-trace@2.1.0-beta.4
- @0x/sol-tracing-utils@6.1.0-beta.4
- @0x/sra-spec@2.1.0-beta.3
- @0x/subproviders@5.1.0-beta.3
- @0x/types@2.5.0-beta.3
- @0x/utils@4.6.0-beta.3
- @0x/web3-wrapper@6.1.0-beta.3
2019-12-02 23:38:04 +11:00
Jacob Evans
ce426fd3f4
Updated CHANGELOGS & MD docs
2019-12-02 23:37:43 +11:00
Jacob Evans
b5d4c91207
Update Changelogs to beta
2019-12-02 23:11:48 +11:00
Jacob Evans
b43263be77
Merge pull request #2382 from 0xProject/fix/contract-wrappers-remove-artifacts
...
Remove contract-artifacts dep from contract-wrappers
2019-12-02 22:09:01 +10:00
Jacob Evans
207cf7ca24
Fix unused export
2019-12-02 22:48:09 +11:00
Jacob Evans
00e34758c4
Remove artifacts dep from contract-wrappers
2019-12-02 18:51:47 +11:00
Amir Bandeali
7a3f878c11
Add ChaiBridge to boilerplate
2019-12-01 15:57:01 -08:00
Amir Bandeali
b8439598bc
Remove redundant getters from bridges
2019-12-01 15:55:27 -08:00
Amir Bandeali
7fb0818923
Implement ChaiBridge
2019-12-01 15:54:58 -08:00
Amir Bandeali
a7c435adc4
Add mainnet deployment addresses for Dai, Chai, and ERC20BridgeProxy
2019-12-01 15:40:29 -08:00
Amir Bandeali
dd90aabad6
Merge pull request #2375 from Arctek/fix/coordinator-client
...
Fix for typo in constructor and gas price to apply to meta transaction.
2019-12-01 13:06:00 -08:00
Joshua Richardson
5bded1946e
Fix for typo in constructor and gas price to apply to meta transaction.
2019-12-01 16:14:31 +10:30
Amir Bandeali
3642e96154
Merge pull request #2374 from 0xProject/feat/redeploy-forwarder-3.0
...
Redeploy 3.0 Forwarder on all networks
2019-11-30 14:17:52 -08:00
Amir Bandeali
9da09ee3a6
Update CHANGELOGs
2019-11-30 13:31:42 -08:00
Amir Bandeali
141c140f53
Update Forwarder artifact and wrapper
2019-11-30 13:31:36 -08:00
Amir Bandeali
84b660d2ef
Pass in WETH address into Forwarder constructor
2019-11-29 18:20:07 -08:00
Amir Bandeali
6beedba957
Update Forwarder addresses on all networks
2019-11-29 15:55:49 -08:00
Xianny
d73982819b
Deprecate abi-gen-wrappers ( #2370 )
...
* generate wrappers in @0x/contract-wrappers and delete abi-gen-wrappers
* trim exports from contract-wrappers
* separate contract-wrappers tests to get rid of dependency cycle
* remove dummy token contracts
* temporarily skip coordinator test until we can upgrade coordinator server
2019-11-27 17:50:24 -08:00
Jacob Evans
6ac5bcc907
Merge pull request #2362 from 0xProject/fix/revert-errors-utils
...
Re-export the RevertErrors
2019-11-27 12:27:37 +10:00
Jacob Evans
389d4d10f1
Import from @0x/utils
2019-11-27 13:02:37 +11:00
Jacob Evans
89dcbd0229
Fix import of LibBytesRevertErrors
2019-11-27 11:57:56 +11:00
Jacob Evans
ad8caa2b51
Remove moved RevertErrors
2019-11-27 11:52:14 +11:00
Jacob Evans
9c42241269
Re-export the RevertErrors
2019-11-27 11:43:12 +11:00
mzhu25
38dd45cce2
Merge pull request #2356 from 0xProject/feature/forwarder/erc20-bridge-buy
...
`@0x/contracts-exchange-forwarder`: ERC20Bridge buy support in Forwarder
2019-11-26 15:20:54 -08:00
Michael Zhu
aa90253c62
update TestUniswapExchangeFactory
2019-11-26 14:39:59 -08:00
Michael Zhu
41576652dc
address more comments
2019-11-26 14:19:37 -08:00
Michael Zhu
74830854ca
update changelogs
2019-11-26 14:16:54 -08:00
Michael Zhu
2542b1b44d
address comments and tests
2019-11-26 14:16:54 -08:00
Michael Zhu
51f5e60224
static tests
2019-11-26 14:16:54 -08:00
Michael Zhu
bb5885e2bb
integration tests
2019-11-26 14:16:54 -08:00
Michael Zhu
d51bbb0008
Unit tests
2019-11-26 14:16:54 -08:00
Michael Zhu
49e898b189
add ERC20Bridge buy support
2019-11-26 14:16:54 -08:00
F. Eugene Aumson
42c4fe5705
Pre-release version bumps; test fixes for latest mesh/ganache versions ( #2363 )
...
* Use pre-release ver's for tests against deployment
* Pre-release version number bumps
* pin sra_client dev deps to prereleases
for testing against deployed package
* middlewares: incl doctest in tests of deployment
* Unpin mesh, use new snapshot, & pay protocol fees
* .gitignore gen'd wrappers for new contracts
* test build_tx() & support for empty TxParams.from_
* fix doc: fill TAKERAssetAmount, not maker...
2019-11-26 13:27:49 -05:00
Jacob Evans
4b5f2c36b9
Merge pull request #2336 from 0xProject/feature/upgrade-instant-v3
...
Upgrade instant v3
2019-11-26 20:43:58 +10:00
Jacob Evans
935dca67e6
ERC1155 Wrapper without chai
2019-11-26 17:56:30 +11:00
Jacob Evans
d431790e19
Re-export orderHashUtils
...
Rather than have hacks spread through the codebase
2019-11-26 15:14:36 +11:00
Jacob Evans
56310b7bd4
Revert to abi-gen-wrappers. Clean package.json
2019-11-26 13:58:21 +11:00
Lawrence Forman
f15e21faad
Merge pull request #2344 from 0xProject/feat/erc20-bridge-aggregator
...
ERC20BridgeSampler
2019-11-25 20:33:19 -05:00
Jacob Evans
44aa6a2b38
Clean up package.json dependencies
2019-11-26 11:33:08 +11:00
David Sun
9f32347c01
revert svg loader
2019-11-26 11:33:07 +11:00
David Sun
3d5b229c46
prettier
2019-11-26 11:33:07 +11:00
David Sun
5863ccc0a0
replay @dekz commits
2019-11-26 11:33:07 +11:00
David Sun
d220a16b99
fixed contract-wrappers again
2019-11-26 11:33:06 +11:00
David Sun
79784fc8ee
fixed wrappers usage in contract-wrappers
2019-11-26 11:33:06 +11:00
David Sun
a83bc53c6a
updated protocol fee utils
2019-11-26 11:33:05 +11:00
David Sun
85de0b91b1
added todo
2019-11-26 11:33:05 +11:00
Jacob Evans
d91c6e5702
Round affiliate fee for non whole amounts
2019-11-26 11:33:05 +11:00
Jacob Evans
ab7689d188
Re-enable affiliate fee
2019-11-26 11:33:05 +11:00
Jacob Evans
c81455c760
Update SwapQuoteUpdater with gas estimator
2019-11-26 11:33:04 +11:00
David Sun
39bfc97a7a
fix build issues
2019-11-26 11:33:04 +11:00
David Sun
88aac78282
removed asset-buyer from residual files
2019-11-26 11:33:04 +11:00
David Sun
863e830d24
prettier + lint
2019-11-26 11:32:34 +11:00
David Sun
6c705728a4
passing instant tests
2019-11-26 11:32:34 +11:00
David Sun
7f00279ffb
fixed CI tests for swapper
2019-11-26 11:32:34 +11:00
David Sun
c198d0079e
prettier + minor changes
2019-11-26 11:32:33 +11:00
David Sun
1135d5a971
updated unit tests
2019-11-26 11:32:33 +11:00
David Sun
e299fa27a0
update to swapper
2019-11-26 11:32:32 +11:00
David Sun
46e0bc940a
refactored and added fees
2019-11-26 11:32:32 +11:00
David Sun
9a552012f2
fixed bugs preventing build
2019-11-26 11:32:31 +11:00
David Sun
6498d385ee
reworked largely all the asset-buyer legacy code
2019-11-26 11:32:30 +11:00
David Sun
dd00f2016f
removed asset-buyer
2019-11-26 11:32:30 +11:00
David Sun
64d25e6522
removed buyer and adding in asset-swapper
2019-11-26 11:32:29 +11:00
Lawrence Forman
1462ab08de
@0x/contracts-erc20-bridge-sampler: Clean up linter workaround in tests.
2019-11-25 17:55:12 -05:00
Lawrence Forman
a8e93a594d
@0x/contracts-erc20-bridge-sampler: Throw sampling two of the same tokens.
...
`@0x/contracts-erc20-bridge-sampler`: Address review comments.
2019-11-25 17:48:53 -05:00
Lawrence Forman
dea30b37ef
@0x/contracts-erc20-bridge-sampler: Update README and add index.ts.
2019-11-25 17:48:53 -05:00
Lawrence Forman
39571dda0b
Add erc20-bridge-sampler to prettierignore
2019-11-25 17:48:53 -05:00
Lawrence Forman
c7d801b6c2
@0x/contracts-erc20-bridge-sampler: Update DEPLOYS.json
2019-11-25 17:48:53 -05:00
Lawrence Forman
57731be689
@0x/contracts-erc20-bridge-sampler: Remove gitkeep files
2019-11-25 17:48:53 -05:00
Lawrence Forman
f00524e518
@0x/contracts-erc20-bridge-sampler: Update README
2019-11-25 17:48:53 -05:00
Lawrence Forman
5567c40bae
Update changelogs
2019-11-25 17:48:53 -05:00
Lawrence Forman
5d1a7613dd
Add @0x/contracts-erc20-bridge-sampler to CI
2019-11-25 17:48:53 -05:00
Lawrence Forman
fa768dc112
@0x/contracts-erc20-bridge-sampler: Finish off tests.
2019-11-25 17:48:53 -05:00
Lawrence Forman
27fb51d37f
@0x/contracts-asset-proxy: Tweak IUniswapExchangeFactory.
2019-11-25 17:48:53 -05:00
Lawrence Forman
d02db3864e
@0x/contracts-erc20-bridge-sampler: Fix kyber bug and add test contract.
2019-11-25 17:48:53 -05:00
Lawrence Forman
a26c3036a7
@0x/contracts-erc20-bridge-sampler: Get contracts compiling.
2019-11-25 17:48:53 -05:00
Lawrence Forman
0af346aad8
@0x/contracts-erc20-bridge-aggregator: Create package.
...
`@0x/contracts-erc20`: Add `decimals()` to `LibERC20Token`.
`@0x/contracts-erc20-bridge-sampler`: Created package.
2019-11-25 17:48:53 -05:00
James Towle
c3c8ee7292
Merge pull request #2367 from 0xProject/feature/staking/authorizable-tests
...
Added unit tests for Authorizable
2019-11-25 15:59:15 -06:00
David Sun
5fbdfa66d9
Merge pull request #2368 from 0xProject/fix/reenable-builds-for-v3
...
Reenable CircleCi tests for swapper + orderbook, and fix migrations bug
2019-11-25 16:35:56 -05:00
David Sun
15b75715ee
enable tests
2019-11-25 15:14:02 -05:00
Alex Towle
1fd92b6cbd
Added unit tests for onlyAuthorized
2019-11-25 14:02:53 -06:00
David Sun
2918b5d74e
add coverage for swapper
2019-11-25 14:40:35 -05:00
David Sun
669c5be344
prettier
2019-11-25 14:28:34 -05:00
Jacob Evans
e1b40ec46e
Update Mesh fixtures
2019-11-26 00:07:30 +11:00
Jacob Evans
15767538eb
Deploy Forwarder after Exchange is configured
2019-11-25 18:20:26 +11:00
David Sun
de2b16c464
fixed migrations
2019-11-25 01:05:24 -05:00
Alex Towle
d5e6b38450
Added unit tests for Authorizable
2019-11-24 22:55:17 -06:00
Xianny
a636e87a4f
remove matchOrders; must be executed directly through Exchange contract ( #2364 )
2019-11-22 14:19:18 -08:00
Xianny
50d5b4fa37
Refactor/3.0/coordinator client ( #2348 )
...
* deduplicate migrateOnceAsync() test helper
* move and rename coordinator client to @0x/contracts-coordinator
2019-11-22 12:19:00 -08:00
Jacob Evans
f6d26392fb
Merge pull request #2361 from 0xProject/fix/migrations-massage
...
Massage the migrations to match contract-addresses
2019-11-22 11:36:35 +11:00
Jacob Evans
2705bcce15
Massage the migrations to match contract-addresses
2019-11-22 11:06:07 +11:00
Fabio B
379a31ece6
Merge pull request #2355 from 0xProject/fix/increaseKeepAliveOnGanacheDockerImage
...
Extend keepAliveTimeout config on Ganache-cli Docker Image
2019-11-21 23:16:18 +00:00
F. Eugene Aumson
daa593d225
Updated DevUtils contract artifact ( #2358 )
...
* Add updated DevUtils contract artifact
New contract methods were added in #2321 , but this artifact was not
updated.
* fix for breaking change in eth_utils
2019-11-20 20:50:49 -05:00
Amir Bandeali
ed8340affa
Merge pull request #2359 from 0xProject/fix/migrations/verify-exchange-registration
...
Warn if Exchange contract not registered in StakingProxy
2019-11-20 16:45:38 -08:00
Amir Bandeali
b3c1e72577
Warn if Exchange contract not registered in StakingProxy
2019-11-20 16:43:02 -08:00
fabioberger
3da09d140a
Extend keepAliveTimeout on Ganache-cli server to 40sec to fix Mesh issue
2019-11-20 17:36:24 +01:00
Lawrence Forman
51f254bbb1
Merge pull request #2352 from 0xProject/feat/asset-proxy/KyberBridge
...
KyberBridge
2019-11-20 06:20:52 -05:00
Lawrence Forman
30ee456d4c
@0x/contracts-asset-proxy: Use DeploymentConstants from @0x/contracts-utils in bridges.
...
`@0x/contracts-asset-proxy`: Add fallback function to `KyberBridge`.
`@0x/contracts-asset-proxy`: Minor changes to `KyberBridge` contracts based on feedback.
2019-11-20 05:50:15 -05:00
Lawrence Forman
460d5f2517
@0x/contracts-utils: Add DeploymentConstants.
2019-11-20 05:50:15 -05:00
Lawrence Forman
5da1fc8445
@0x/contracts-asset-proxy: Add KyberBridge.
2019-11-20 05:50:15 -05:00
Jacob Evans
1166b43946
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.3
- @0x/contracts-coordinator@2.1.0-beta.3
- @0x/contracts-dev-utils@0.1.0-beta.3
- @0x/contracts-erc1155@1.2.0-beta.3
- @0x/contracts-erc20@2.3.0-beta.3
- @0x/contracts-erc721@2.2.0-beta.3
- @0x/contracts-exchange-forwarder@3.1.0-beta.3
- @0x/contracts-exchange-libs@3.1.0-beta.3
- @0x/contracts-exchange@2.2.0-beta.3
- @0x/contracts-extensions@4.1.0-beta.3
- @0x/contracts-integrations@1.0.3-beta.1
- @0x/contracts-multisig@3.2.0-beta.3
- @0x/contracts-staking@1.1.0-beta.3
- @0x/contracts-test-utils@3.2.0-beta.3
- @0x/contracts-tests@0.0.4
- @0x/contracts-utils@3.3.0-beta.3
- 0x.js@8.0.0-beta.2
- @0x/abi-gen-wrappers@5.4.0-beta.3
- @0x/abi-gen@4.4.0-beta.3
- @0x/asset-buyer@6.2.0-beta.3
- @0x/asset-swapper@2.1.0-beta.3
- @0x/base-contract@5.5.0-beta.3
- @0x/contract-addresses@3.3.0-beta.4
- @0x/contract-wrappers@12.2.0-beta.3
- @0x/contracts-gen@1.1.0-beta.3
- @0x/dev-utils@2.4.0-beta.3
- @0x/instant@1.0.35
- @0x/migrations@4.4.0-beta.3
- @0x/monorepo-scripts@1.0.41
- @0x/order-utils@8.5.0-beta.3
- @0x/orderbook@0.1.0-beta.3
- @0x/sol-compiler@3.2.0-beta.3
- @0x/sol-coverage@3.1.0-beta.3
- @0x/sol-doc@2.1.0-beta.3
- @0x/sol-profiler@3.2.0-beta.3
- @0x/sol-trace@2.1.0-beta.3
- @0x/sol-tracing-utils@6.1.0-beta.3
2019-11-20 19:34:17 +11:00
Jacob Evans
0a6903c4c3
Updated CHANGELOGS & MD docs
2019-11-20 19:33:49 +11:00
Jacob Evans
62fae9af93
All modified CHANGELOGS are beta
2019-11-20 19:16:55 +11:00
James Towle
509a1c2eb5
Merge pull request #2328 from 0xProject/refactor/integrations/match-orders
...
Match Orders Integration tests
2019-11-19 16:40:52 -08:00
David Sun
8b94bbbc5e
Merge pull request #2350 from 0xProject/fix/asset-swapper/rebase-and-pay-protocol-fees
...
asset-swapper V3 rebase, pay protocol fees, etc.
2019-11-19 16:40:15 -05:00
Alex Towle
bb923d2b7d
Addressed more review feedback and fixed a bug in Actor
2019-11-19 13:03:18 -08:00
Lawrence Forman
38adc72954
@0x/asset-swapper: Remove redundant protocol fee calculation.
2019-11-19 15:11:27 -05:00
Lawrence Forman
362c7c57fa
@0x/monorepo-scripts: Add Set to EXTERNAL_TYPE_MAP.
2019-11-19 14:49:38 -05:00
Lawrence Forman
6529b7eebf
@0x/asset-swapper: Fix static test errors.
2019-11-19 14:49:38 -05:00
Lawrence Forman
439c98a6e5
@0x/asset-swapper: Rebase against development and pay protocol fees.
2019-11-19 14:49:38 -05:00
Lawrence Forman
32258ef666
@0x/migrations: Deploy Forwarder AFTER hooking up staking.
2019-11-19 14:49:38 -05:00
Amir Bandeali
176e088d4e
Merge pull request #2349 from 0xProject/feat/3.0/migrations-patch
...
Redeploy 3.0 contracts
2019-11-19 07:57:24 -08:00
Alex Towle
4fe57ba025
@0x:contracts-integrations Addressed review comments
2019-11-18 17:56:07 -08:00
Alex Towle
2818e56932
@0x:contracts-integrations Addressed some lingering review comments
2019-11-18 17:56:07 -08:00
Alex Towle
5428a19617
@0x:contracts-integrations Fixed naming collision of fee recipients
2019-11-18 17:56:07 -08:00
Alex Towle
b58cbca61a
@0x:contracts-integrations Addressed review feedback
2019-11-18 17:56:07 -08:00
Alex Towle
5fc6a03784
@0x:contracts-integrations Reduced reliance on DevUtils even more
2019-11-18 17:56:07 -08:00
Alex Towle
eb4ad0ba1b
@0x:contracts-integrations Reduced reliance on devUtils
2019-11-18 17:56:07 -08:00
Alex Towle
72cdd1ea50
@0x:contracts-integrations Removed dependence on number_utils from staking
2019-11-18 17:56:07 -08:00
Alex Towle
18769f0b8f
@0x:contracts-integrations Fixed issues after rebase
2019-11-18 17:56:07 -08:00
Alex Towle
b7d92c3c12
@0x:contracts-integrations Added tests with protocol fees for batch order matching
2019-11-18 17:56:07 -08:00
Alex Towle
b976101dca
@0x:contracts-integrations Refactored match_orders_test to handle weth fees for matchOrdersWithMaximalFill
2019-11-18 17:56:07 -08:00
Alex Towle
8943b670a4
@0x:contracts-integrations Refactored match_order_test to do some testing with Weth protocol fees
2019-11-18 17:56:07 -08:00
Alex Towle
c92ff7c622
@0x:contracts-integrations Polished up match order tester
2019-11-18 17:56:07 -08:00
Alex Towle
301b5e1721
@0x:contracts-integrations Added a sanity check for different token types
2019-11-18 17:56:07 -08:00
Alex Towle
4e50b9b479
@0x:contracts-integrations Refactored match_orders_test
2019-11-18 17:56:07 -08:00
Alex Towle
f8b7b8cc28
@0x:contracts-integrations Made an initial refactor of MatchOrderTester
2019-11-18 17:56:07 -08:00
Alex Towle
2a6ea74be7
@0x:contracts-integrations Moved matchOrders into integrations
2019-11-18 17:56:06 -08:00
Jacob Evans
6d6a0c12cd
Merge pull request #2343 from 0xProject/optimize/refactor-templates
...
abi-gen-wrappers: Move shared logic into BaseContract
2019-11-19 11:53:30 +10:00
Amir Bandeali
784a03300a
Update CHANGELOGs
2019-11-18 16:10:54 -08:00
Amir Bandeali
392f578567
Make timelock configs synchronous
2019-11-18 16:10:54 -08:00
Amir Bandeali
a91b1d2dd2
Update mainnet ZrxVault in MixinDeploymentConstants
2019-11-18 16:10:54 -08:00
Amir Bandeali
400b3d961e
Fix custom timelock config
2019-11-18 16:10:54 -08:00
Amir Bandeali
4f128470bd
Update addresses for all networks
2019-11-18 16:10:54 -08:00
Amir Bandeali
fe06f41136
Add UniswapBridge and Eth2DaiBridge deployments to testnet migration script
2019-11-18 16:10:54 -08:00
Amir Bandeali
f81a99565e
Update staking logic contract address, add UniswapBridge and Eth2DaiBridge addresses
2019-11-18 16:10:54 -08:00
Jacob Evans
81e146650b
Merge branch 'development' into optimize/refactor-templates
2019-11-19 10:07:46 +10:00
Jacob Evans
bd4e04d331
Update mesh-rpc-client to 7.0.4-beta-0xv3
2019-11-19 09:55:48 +10:00
Fabio B
7663d2c64b
Merge pull request #2347 from 0xProject/refactor/supportDocsForContractPackages
...
docs: Generate MD docs for contracts-* packages and a few others
2019-11-18 23:54:24 +00:00
fabioberger
443c3c2802
Add missing export from stakiong
2019-11-19 00:02:43 +01:00
fabioberger
17a546af5d
Add more exessive type ignores
2019-11-18 23:42:45 +01:00
fabioberger
71faf46735
Add exception for EnvVars because we use it in a lot of places
2019-11-18 23:04:15 +01:00
fabioberger
ac28744df6
Stop exporting types from integrations package
2019-11-18 23:00:16 +01:00
fabioberger
adaf304b4e
Add missing staking exports
2019-11-18 22:44:48 +01:00
fabioberger
16b13f9768
Fix exports from exchange
2019-11-18 22:32:47 +01:00
fabioberger
d64bf98dc0
Update mesh dep
2019-11-18 22:21:24 +01:00
Jacob Evans
71f57d13fa
Update Wrappers after rebase
2019-11-18 20:43:44 +10:00
Jacob Evans
469c10e45f
Fix Rich Error test bind context
2019-11-18 20:37:27 +10:00
Jacob Evans
62def596af
Reuse getABIEncodedTransactionData
2019-11-18 20:37:27 +10:00
Jacob Evans
aa10844d9e
Remove Lodash as a dependency in BaseContract
2019-11-18 20:37:27 +10:00
Jacob Evans
be52079182
Re-enable estimateGas in sendTransaction
2019-11-18 20:37:27 +10:00
Jacob Evans
255aca8789
Moved shared logic into BaseContract
...
Shared validation and default application can be moved into BaseContract
Assignment before return can be skipped here as it saves a line and
makes a dramatic difference.
Store the functionSignature once and reuse, this saving is large for
Exchange functions with order tuples.
2019-11-18 20:35:38 +10:00
fabioberger
117f4a282d
Add EnvVars type
2019-11-18 10:29:25 +00:00
fabioberger
e1ea65525f
Add doc generation to several more packages and fix up their index.ts files so all public interface types are exported
2019-11-18 10:29:25 +00:00
fabioberger
d0a3495b5f
Refactor docgen command to also support generating docs for contracts-* packages
2019-11-18 10:24:48 +00:00
xianny
9e9e0d6592
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.2
- @0x/contracts-coordinator@2.1.0-beta.2
- @0x/contracts-dev-utils@0.1.0-beta.2
- @0x/contracts-erc1155@1.2.0-beta.2
- @0x/contracts-erc20@2.3.0-beta.2
- @0x/contracts-erc721@2.2.0-beta.2
- @0x/contracts-exchange-forwarder@3.1.0-beta.2
- @0x/contracts-exchange-libs@3.1.0-beta.2
- @0x/contracts-exchange@2.2.0-beta.2
- @0x/contracts-extensions@4.1.0-beta.2
- @0x/contracts-integrations@1.0.2
- @0x/contracts-multisig@3.2.0-beta.2
- @0x/contracts-staking@1.1.0-beta.2
- @0x/contracts-test-utils@3.2.0-beta.2
- @0x/contracts-tests@0.0.3
- @0x/contracts-utils@3.3.0-beta.2
- 0x.js@8.0.0-beta.1
- @0x/abi-gen-wrappers@5.4.0-beta.2
- @0x/abi-gen@4.4.0-beta.2
- @0x/assert@2.2.0-beta.2
- @0x/asset-buyer@6.2.0-beta.2
- @0x/asset-swapper@2.1.0-beta.2
- @0x/base-contract@5.5.0-beta.2
- @0x/connect@5.1.0-beta.2
- @0x/contract-addresses@3.3.0-beta.3
- @0x/contract-artifacts@2.3.0-beta.3
- @0x/contract-wrappers@12.2.0-beta.2
- @0x/contracts-gen@1.1.0-beta.2
- @0x/dev-utils@2.4.0-beta.2
- ethereum-types@2.2.0-beta.2
- @0x/instant@1.0.34
- @0x/json-schemas@4.1.0-beta.2
- @0x/migrations@4.4.0-beta.2
- @0x/monorepo-scripts@1.0.40
- @0x/order-utils@8.5.0-beta.2
- @0x/orderbook@0.1.0-beta.2
- @0x/sol-compiler@3.2.0-beta.2
- @0x/sol-coverage@3.1.0-beta.2
- @0x/sol-doc@2.1.0-beta.2
- @0x/sol-profiler@3.2.0-beta.2
- @0x/sol-resolver@2.1.0-beta.2
- @0x/sol-trace@2.1.0-beta.2
- @0x/sol-tracing-utils@6.1.0-beta.2
- @0x/sra-spec@2.1.0-beta.2
- @0x/subproviders@5.1.0-beta.2
- @0x/tslint-config@3.1.0-beta.2
- @0x/types@2.5.0-beta.2
- @0x/typescript-typings@4.4.0-beta.2
- @0x/utils@4.6.0-beta.2
- @0x/web3-wrapper@6.1.0-beta.2
2019-11-17 18:03:29 -05:00
xianny
cb5f9ba97d
Updated CHANGELOGS & MD docs
2019-11-17 18:03:13 -05:00
xianny
34538f2ced
prettier
2019-11-17 17:14:28 -05:00
xianny
2575644920
update CHANGELOG.json for beta publish
2019-11-17 17:11:35 -05:00
Greg Hysz
b4b43a9e9e
Updated Coordinator wrappers and artifacts ( #2346 )
...
* Updated Coordinator wrappers and artifacts
* Use contracts-coordinator package for Coordinator
* disable custom CoordinatorWrapper
* trim disallowed artifact fields; fix exports for docs; lint
2019-11-16 19:22:22 -05:00
F. Eugene Aumson
df97b20913
abi-gen/Py: fix incorrect method return types and other small issues ( #2345 )
...
* .gitignore gen'd Python staking contract wrappers
* abi-gen/test-cli: check Python type hints in lint
* sra_client.py: Update doc for replicating examples
* abi-gen/Py: fix call() return type incl. tx hash
Previously, generated wrappers for contract methods were including type
hints that suggested that a call() (as opposed to a send_transaction())
might return either the underlying return type or a transaction hash.
This doesn't make sense because a call() will never return a TX hash.
Now, the type hint just has the return type of the underlying method.
* abi-gen: fix test_cli:lint checking wrong code
test_cli:lint is meant to be a rudimentary test of the code generated by
abi-gen. However, previously, this script was incorporated into `yarn
lint`, and in CircleCI `static-tests` runs independently of `build`.
Consequently, the runs of test_cli:lint were checking the OLD code,
which was previously generated and checked in to git, NOT the code
generated with the version of abi-gen represented by the git repo. Now,
test_cli:lint happens during `yarn test` rather than `yarn lint`,
because `yarn test` IS dependent on `yarn build`.
* contract_wrappers.py: fix misplaced doc
Previously, the routines `order_to_jsdict()` and `jsdict_to_order()`
were moved from contract_wrappers.exchange.types to
contract_wrappers.order_conversions. However, the module-level
docstring describing those routines was accidentally left behind in
exchange.types.
* abi-gen/Py: stop documenting return types for TXs
Previously the send_transaction() interface included docstring
documentation for the return types of the contract method, but that
doesn't make any sense because send_transaction() returns a transaction
hash rather than any actual return values.
* abi-gen/Py: stop gen'ing send_tx for const methods
* abi-gen/Py: add build_tx to contract methods
* abi-gen/Py: fix incorrect method return types
Fixes #2298 .
* abi-gen/Py: rm validator arg to no-input methods
* abi-gen: mv Py Handlebars helpers to own module
Move all existing Python-related Handlebars helpers to the newly created
python_handlebars_helpers module.
* abi-gen: refactor internal interface
No functionality is changed. Sole purpose of this commit is to
facilitate an upcoming commit.
* abi-gen: refactor internal interface
No functionality is changed. Sole purpose of this commit is to
facilitate an upcoming commit.
* abi-gen/Py: name tuples w/internalType, not hash
Use the new `internalType` field on the `DataItem`s in the contract
artifact to give generated tuple classes a better name than just hashing
their component field names.
* Fix CI errors
* abi-gen/Py/wrapper: make internal member private
* Update CHANGELOGs
2019-11-15 18:27:45 -05:00
mzhu25
9e3cc379ed
Merge pull request #2335 from 0xProject/refactor/integrations/move-balance-stores
...
`@0x/contracts-integrations`: Restructure directories, welcome core.ts and balance stores
2019-11-15 11:10:02 -08:00
Michael Zhu
c1d78a94a2
move ValidatorWalletAction to signature_validator.ts
2019-11-15 09:53:06 -08:00
Michael Zhu
7f4cbba076
Refactor integrations directory structure; move core.ts, balance stores, and FillOrderWrapper to integrations
2019-11-15 09:49:20 -08:00
Fabio B
bdca84fe72
Merge pull request #2342 from 0xProject/update/bigNumberDep
...
Update BigNumber dep to ~9.0.0
2019-11-15 11:53:47 +00:00
fabioberger
cf8fd7103b
Add changelog entry re: BigNumber version change in packages that export BigNumber
2019-11-15 11:11:08 +00:00
fabioberger
8e8cdbd413
Update BigNumber dep to ~9.0.0
2019-11-15 11:04:53 +00:00
Jacob Evans
30f01681d4
Merge pull request #2341 from 0xProject/fix/parity-revert-errors
...
RevertError: Decode Parity revert errors
2019-11-15 20:31:40 +10:00
Fabio B
ecf1ad8da1
Merge pull request #2340 from 0xProject/fix/ciPublish
...
Fix CI test-publish
2019-11-15 10:23:28 +00:00
Jacob Evans
42dc112a13
RevertError: Decode Parity revert errors
2019-11-15 19:39:06 +10:00
Jacob Evans
58276cefce
Merge pull request #2323 from 0xProject/feat/3.0-staking-ganache
...
ganache: Added Staking, Forwarder, ERC20Bridge
2019-11-15 13:05:37 +10:00
Amir Bandeali
4b6501a739
Merge pull request #2338 from 0xProject/fix/contracts/exchange/marketBuyOrdersNoThrow-rounding
...
Round up in `marketBuyOrdersNoThrow()`
2019-11-14 18:57:29 -08:00
Jacob Evans
724085e068
Remove TestStaking
...
CHANGELOG updates
Rebase and clean imports
Fix lint
2019-11-15 12:34:41 +10:00
Jacob Evans
21fab3ef9f
Added Staking and ERC20 Bridge to migrations
2019-11-15 11:38:43 +10:00
Amir Bandeali
db8837f4ce
Redeploy DevUtils and ZeroExGovernor on testnets
2019-11-15 11:34:31 +10:00
Lawrence Forman
5781cdf6da
ran prettier (again)
2019-11-14 18:36:34 -05:00
Lawrence Forman
874eb1602f
@0x/contracts-exchange: Round up in marketBuyOrdersNoThrow() so marketBuyOrdersFillOrKill() doesn't throw up.
2019-11-14 17:55:11 -05:00
fabioberger
82149917b7
Update mesh-rpc-client dep to latest version
2019-11-14 22:54:39 +00:00
F. Eugene Aumson
f11d8a5bd8
@0x/order-utils refactors for v3: orderParsingUtils, signatureUtils, orderHashUtils, RevertErrors, transactionHashUtils ( #2321 )
...
* move orderParsingUtils from order-utils to connect
* Remove many functions from signatureUtils
Removed from the exported object, that is. All of them are used in
other existing code, so they were all moved to be as local to their
usage as possible.
* remove orderHashUtils.isValidOrderHash()
* Move all *RevertErrors from order-utils...
...into their respective @0x/contracts- packages.
* Refactor @0x/order-utils' orderHashUtils away
- Move existing routines into @0x/contracts-test-utils
- Migrate non-contract-test callers to a newly-exposed getOrderHash()
method in DevUtils.
* Move all *RevertErrors from @0x/utils...
...into their respective @0x/contracts- packages.
* rm transactionHashUtils.isValidTransactionHash()
* DevUtils.sol: Fail yarn test if too big to deploy
* Refactor @0x/order-utils transactionHashUtils away
- Move existing routines into @0x/contracts-test-utils
- Migrate non-contract-test callers to a newly-exposed
getTransactionHash() method in DevUtils.
* Consolidate `Removed export...` CHANGELOG entries
* Rm EthBalanceChecker from devutils wrapper exports
* Stop importing from '.' or '.../src'
* fix builds
* fix prettier; dangling promise
* increase max bundle size
2019-11-14 17:14:24 -05:00
Xianny
f0d7d10fe7
update abi-gen with new method interfaces ( #2325 )
...
* update abi-gen with new method interfaces
* wip: get all packages to build
* wip: get all packages to build
* Fix two contract wrapper calls
* Export necessary types part of the contract wrapper public interfaces
* Revive and fix wrapper_unit_tests
* Remove duplicate type
* Fix lib_exchange_rich_error_decoder tests
* Fix remaining test failures in contracts-* packages
* Prettier fixes
* remove transactionHelper
* lint and update changelogs
* Fix prettier
* Revert changes to reference docs
* Add back changelog already published and add revert changelog entry
* Add missing CHANGELOG entries
* Add missing comma
* Update mesh-rpc-client dep
* Update Mesh RPC logic in @0x/orderbook to v6.0.1-beta
* Align package versions
2019-11-14 11:22:29 -05:00
Fabio B
9d4d9ce978
Merge pull request #2337 from 0xProject/refactor/0xjsInterfaceAndDocs
...
Remove IWallet/IValidator from 0x.js & update doc gen
2019-11-14 15:38:04 +00:00
fabioberger
96a38602b8
Fix package.json
2019-11-14 14:57:11 +00:00
fabioberger
90d3558d31
Add CHANGELOG entry
2019-11-14 14:56:35 +00:00
fabioberger
e491a56dd0
Remove IValidator and IWallet contracts from 0x.js interface since no beginner uses them
2019-11-14 14:53:26 +00:00
fabioberger
4d8eb61924
Stop generating and uploading docs for asset-buyer since about to get removed
2019-11-14 14:51:44 +00:00
fabioberger
17fab541c6
Stop pushing ethereum-types and web3-wrapper docs to S3 since we no longer want to render them on the website
2019-11-14 14:49:55 +00:00
Amir Bandeali
91de35e8e9
Merge pull request #2333 from 0xProject/fix/staking/operator-share
...
Fix 100% operator share
2019-11-13 10:17:28 -08:00
Amir Bandeali
f61964676a
Add test for when operatorShare == 0
2019-11-13 09:48:04 -08:00
Amir Bandeali
41a34c19bb
Add zrxVault config tests in migrations
2019-11-13 09:46:33 -08:00
Amir Bandeali
d90810d127
Add tests for setting operator share to 100%
2019-11-12 22:42:55 -08:00
Amir Bandeali
7f3d281faa
Allow operator share to be set to existing share
2019-11-12 20:14:48 -08:00
Greg Hysz
812c306805
Merge pull request #2332 from 0xProject/fix/staking/paramDocsForRewardsPaidOutEvent
...
Updated `RewardsPaid` event docs
2019-11-12 17:47:47 -08:00
Steve Klebanoff
fc1c59f374
Merge pull request #2329 from 0xProject/feature/debug-subprovider
...
Add DebugSubprovider
2019-11-12 15:18:00 -08:00
Amir Bandeali
35eac1e3ff
Merge pull request #2322 from 0xProject/feat/3.0-mainnet-migrations
...
Mainnet migrations
2019-11-12 14:50:36 -08:00
Greg Hysen
e16041d7fa
Updated RewardsPaid event docs
2019-11-12 14:24:39 -08:00
Amir Bandeali
b8fc84ecc8
Remove test constants from Staking ABI
2019-11-12 13:53:58 -08:00
Amir Bandeali
572c576e15
Update DevUtils addresses on all networks
2019-11-12 13:53:58 -08:00
Amir Bandeali
9df7f80fbb
Move extension deployments after contract configurations
2019-11-12 13:53:58 -08:00
Amir Bandeali
f003400135
Add check for if ERC20BridgeProxy is registered in the Exchange
2019-11-12 13:53:58 -08:00
Amir Bandeali
ca7616c1d2
Update CHANGELOGs
2019-11-12 13:53:58 -08:00
Amir Bandeali
a4a2bfdf35
Finish ZrxVault and StakingProxy configs without batch transaction
2019-11-12 13:53:58 -08:00
Amir Bandeali
eb6bbb6e78
Replace Staking artifact with TestStaking to allow params to be passed into constructor
2019-11-12 13:53:58 -08:00
Amir Bandeali
4d0172f634
Fix directory to write standard input
2019-11-12 13:53:58 -08:00
Amir Bandeali
3b61e0e126
Add v3 mainnet addresses
2019-11-12 13:53:58 -08:00
Amir Bandeali
1540a91835
Update testnet migrations to do most configuration outside of batch transsaction
2019-11-12 13:53:58 -08:00
Amir Bandeali
2bcce9eed0
Add mainnet ZrxVault address to deployment constants
2019-11-12 13:53:58 -08:00
Amir Bandeali
1e53564386
Redeploy DevUtils and ZeroExGovernor on testnets
2019-11-12 13:53:58 -08:00
Amir Bandeali
d1c72706ef
Add governor and staking configs for each network
2019-11-12 13:53:58 -08:00
Amir Bandeali
bd9e531257
Add flag for saving standard input during compilation
2019-11-12 13:53:58 -08:00
mzhu25
48436424db
Merge pull request #2317 from 0xProject/feature/integration-tests/hot-fuzz
...
`@0x/contracts-integrations`: Pool management, stake management fuzz tests
2019-11-12 13:43:19 -08:00
Michael Zhu
4f10d7f859
post-rebase woes
2019-11-12 13:10:34 -08:00
Francesco Agosti
80e5a29444
Merge pull request #2326 from 0xProject/feature/remove_network_id_from_sra
...
Remove chainId from @0x/connect related tooling
2019-11-12 13:08:25 -08:00
F. Eugene Aumson
0ec8a4a160
sra_client.py: remove support for chainId parameter
2019-11-12 15:28:11 -05:00
F. Eugene Aumson
810bf7af0c
Merge branch 'development' into feature/remove_network_id_from_sra
2019-11-12 15:26:00 -05:00
Michael Zhu
e7825206bf
asyncIterator polyfill
2019-11-12 12:06:01 -08:00
Michael Zhu
2b887c336a
devutils 😕
2019-11-12 12:05:39 -08:00
Michael Zhu
48ecd32d5d
address comments
2019-11-12 12:05:39 -08:00
Michael Zhu
1f5a0987cb
static tests, my nemesis
2019-11-12 12:05:39 -08:00
Michael Zhu
f33a9d162a
moveStake assertion; use SimulationEnvironment to track global stake and staking pools
2019-11-12 12:05:38 -08:00
Michael Zhu
c2919bcdb0
tslint needs to _chill_
2019-11-12 12:05:38 -08:00
Michael Zhu
120d554a6b
split up pool/stake management simulations, change some types
2019-11-12 12:05:38 -08:00
Michael Zhu
44f268a7ee
decouple state (SimulationEnvironment) and Simulation
2019-11-12 12:05:38 -08:00
Michael Zhu
3c7a0bcd85
add createStakingPool and decreaseStakingPoolOperatorShare
2019-11-12 12:05:14 -08:00
Michael Zhu
8e2e9e9331
proof of concept with a single actor and valid stakes/unstakes
2019-11-12 12:05:14 -08:00
Michael Zhu
91c26fc046
rename Result -> FunctionResult
2019-11-12 12:02:49 -08:00
Fabio B
afcfe58add
Merge pull request #2330 from 0xProject/refactor/reduceContractPkgBundle
...
Reduce bundle-size of contracts-* packages
2019-11-13 04:00:05 +08:00
Steve Klebanoff
8d423be223
Use strings instead of bignumbers, and add JSON.stringify call
2019-11-12 11:30:24 -08:00
fabioberger
03b7314550
Disable linter for txn returning PromiseWithTransactionHash
2019-11-12 19:24:29 +00:00
fragosti
1a7e425780
Run linters
2019-11-12 11:18:23 -08:00
fabioberger
8bc5faff3c
Move DeploymentManager back into test dir since only used in integrations package
2019-11-12 16:55:36 +00:00
Fabio B
2676278a66
Merge pull request #1990 from 0xProject/removeTestnetFaucet
...
Remove testnet-faucet from monorepo
2019-11-12 22:23:51 +08:00
fabioberger
6376b3baf3
Update yarn.lock
2019-11-12 13:50:24 +00:00
fabioberger
e569abe740
Update yarn.lock
2019-11-12 13:50:10 +00:00
fabioberger
71be9ef92a
Update yarn.lock
2019-11-12 13:50:10 +00:00
fabioberger
4990c4903d
Remove testnet-faucet from monorepo
2019-11-12 13:49:38 +00:00
fabioberger
9d468e2383
Move dep back since used in types
2019-11-12 13:05:25 +00:00
fabioberger
109cac013c
Add CHANGELOG entries
2019-11-12 13:04:26 +00:00
fabioberger
0d8a9921cd
Fix package.json
2019-11-12 12:33:09 +00:00
fabioberger
2a5f5f7312
Move deps to devDeps not used in src dir
2019-11-12 12:27:21 +00:00
fabioberger
fe54fbefbb
Improve comment in npmignores
2019-11-12 11:47:11 +00:00
fabioberger
fc824b8d06
Fix prettier issues
2019-11-12 11:35:34 +00:00
fabioberger
d91a7b6d0e
Add generate-artifacts and generated-wrappers nested under test dir to prettierignore
2019-11-12 11:35:28 +00:00
fabioberger
aa4b3f93fa
Add ERC20 artifacts explicitly to TransactionHelper
2019-11-12 11:27:41 +00:00
fabioberger
efe8225d18
Fix import ordering
2019-11-12 10:52:04 +00:00
fabioberger
b2c0f8c158
Fix .prettierrc to proper json
2019-11-12 10:45:20 +00:00
fabioberger
66dce8794d
Add missing dep
2019-11-12 10:45:08 +00:00
fabioberger
30d54407e6
Fix remaining imports
2019-11-12 10:13:25 +00:00
fabioberger
6324a92ec5
Refactor contracts-* exports so none in test dir so npmignore works as intended
2019-11-11 21:49:29 +00:00
fabioberger
67e7b5c124
Merge branch 'development' into refactor/reduceContractPkgBundle
2019-11-11 21:00:36 +00:00
Fabio B
35099d9b2f
Merge pull request #2324 from 0xProject/refactor/removeUnusedContractWrappers
...
Remove unused contract wrappers
2019-11-12 04:59:18 +08:00
fabioberger
e07f7b54e0
Stop using directory level exports
2019-11-11 19:50:13 +00:00
fabioberger
5c409929b4
Remove ethBalanceChecker dir
2019-11-11 19:29:47 +00:00
fabioberger
1a504fdde9
Remove last references of eth_balance_checker in python tooling
2019-11-11 19:01:04 +00:00
fabioberger
4b06fd511b
Uniform dep version
2019-11-11 18:18:02 +00:00
fabioberger
def6727286
Remove EthBalanceChecker from Python lib
2019-11-11 18:17:26 +00:00
fabioberger
bedaa0db16
Fix deps
2019-11-11 17:54:57 +00:00
fabioberger
90640a4fcf
Fix linter
2019-11-11 17:53:07 +00:00
fabioberger
0142d07f10
Fix linter
2019-11-11 17:53:07 +00:00
fabioberger
c9d85cfc7d
Remove EthBalanceChecker as standalone contract artifact/wrapper
2019-11-11 17:53:07 +00:00
fabioberger
64304c1991
Bump dummyTransactionCount to 6 to avoide changing all contract addresses now that we don't deploy DutchAuction anymore
2019-11-11 17:53:07 +00:00
fabioberger
993adc3578
Pass down DevUtils to fillOrder combinatorial tests
2019-11-11 17:53:07 +00:00
fabioberger
8813bd26f6
Pass around DevUtilsContract so it's only instantiated once
2019-11-11 17:53:07 +00:00
fabioberger
35925de320
Update CHANGELOGs
2019-11-11 17:53:07 +00:00
fabioberger
3b426a3f07
Update migration to continue deploying the old coordinator contract
2019-11-11 17:53:07 +00:00
fabioberger
5104fd5dcf
Remove unused import
2019-11-11 17:53:07 +00:00
fabioberger
a5a9ca9e46
Deploy OrderValidator _not_ OrderValidationUtils in migrations script
2019-11-11 17:53:07 +00:00
fabioberger
ba0f07e3b2
Fix prettier issues
2019-11-11 17:52:32 +00:00
fabioberger
8614475324
Move TradeSide and TransferType types to contract-exchange package
2019-11-11 17:52:32 +00:00
fabioberger
744dda144b
Remove unused types from order-utils export
2019-11-11 17:52:32 +00:00
fabioberger
13d47915f4
Fix linter issues
2019-11-11 17:52:32 +00:00
fabioberger
3059b85e41
Remove ZRX exports from 0x.js too
2019-11-11 17:52:32 +00:00
fabioberger
184ea4a67f
Remove ZRXToken related exports
2019-11-11 17:52:32 +00:00
fabioberger
8032f536ed
Add caret to version
2019-11-11 17:52:32 +00:00
fabioberger
fba3870ef1
Move ExchangeTransferSimulator into contract-exchange tests since that's the only place it's still used and we no longer want to expose it to external developers
2019-11-11 17:50:48 +00:00
fabioberger
2915ee08ea
Remove ZRXToken, AssetProxies and DutchAuction contract from abi-gen-wrappers and contract-wrappers packages
2019-11-11 17:50:01 +00:00
fabioberger
86b76a3e75
Introduce publicFacingContracts config in all package.jsons, refactor all imports from src in contracts packages
2019-11-11 15:10:15 +00:00
fabioberger
bc1dca3f6f
Fix contracts-gen so make sure all dirs are created
2019-11-11 12:39:36 +00:00
fabioberger
5db1820123
Only export non-test source Solidity source-code
2019-11-11 11:46:03 +00:00
Steve Klebanoff
657c35fb86
Adds CHANGELOG
2019-11-10 22:05:32 -08:00
Steve Klebanoff
9432a84468
Upgrade @types/ethereumjs-tx and add DebugSubprovider
2019-11-10 21:58:50 -08:00
fabioberger
15a5bc02ef
Fix remaining build issues
2019-11-11 00:13:44 +00:00
fabioberger
f011be9347
Update all contracts-*is package.json, tsconfig.json, compiler.json, artifacts/ts and wrappers.js
2019-11-10 23:41:56 +00:00
fabioberger
b6094fdb34
Add gitignore for new generted artifacts/wrappers dirs
2019-11-10 17:23:05 +00:00
fabioberger
9e6ab9f585
First pass contracts-* separation of test and publish artifacts/wrappers
2019-11-10 17:22:29 +00:00
F. Eugene Aumson
869d2c02fa
CI/test-python: give launch-kit-backend CHAIN_ID, not NETWORK_ID ( #2327 )
...
* CI/test-python: give LK ID of chain, not network
For CircleCI job test-python, change docker config for
launch-kit-backend to set an environment variable for the chain ID,
not for the network ID. This was failing on all branches after a recent
update to the `0xorg/launch-kit-backend:v3` tag.
* Update docker config used for local testing
* Update documentation of test environment
2019-11-09 20:25:14 -05:00
fragosti
3b1dca0e70
Add asset-buyer hack
2019-11-08 17:51:25 -08:00
fragosti
595358fa69
Remove chainId when using connect from asset-swapper
2019-11-08 17:41:26 -08:00
fragosti
8a8ec79c6c
Remove chainId from the orderbook pacakge
2019-11-08 16:32:22 -08:00
fragosti
6252446bd3
Update error example in SRA
2019-11-08 16:29:28 -08:00
fragosti
403ceebff9
Remove chainId from json-schemas and connect
2019-11-08 16:09:53 -08:00
fabioberger
4767882ed3
Add .npmignore to all contracts-* packages so we only publish the Solidity source and lib dir (minus tests)
2019-11-08 18:20:47 +00:00
fabioberger
3b9d84fa58
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.1
- @0x/contracts-coordinator@2.1.0-beta.1
- @0x/contracts-dev-utils@0.1.0-beta.1
- @0x/contracts-erc1155@1.2.0-beta.1
- @0x/contracts-erc20@2.3.0-beta.1
- @0x/contracts-erc721@2.2.0-beta.1
- @0x/contracts-exchange-forwarder@3.1.0-beta.1
- @0x/contracts-exchange-libs@3.1.0-beta.1
- @0x/contracts-exchange@2.2.0-beta.1
- @0x/contracts-extensions@4.1.0-beta.1
- @0x/contracts-integrations@1.0.1
- @0x/contracts-multisig@3.2.0-beta.1
- @0x/contracts-staking@1.1.0-beta.1
- @0x/contracts-test-utils@3.2.0-beta.1
- @0x/contracts-tests@0.0.2
- @0x/contracts-utils@3.3.0-beta.1
- 0x.js@8.0.0-beta.0
- @0x/abi-gen-wrappers@5.4.0-beta.1
- @0x/abi-gen@4.4.0-beta.1
- @0x/assert@2.2.0-beta.1
- @0x/asset-buyer@6.2.0-beta.1
- @0x/asset-swapper@2.1.0-beta.1
- @0x/base-contract@5.5.0-beta.1
- @0x/connect@5.1.0-beta.1
- @0x/contract-addresses@3.3.0-beta.2
- @0x/contract-artifacts@2.3.0-beta.2
- @0x/contract-wrappers@12.2.0-beta.1
- @0x/contracts-gen@1.1.0-beta.1
- @0x/dev-utils@2.4.0-beta.1
- ethereum-types@2.2.0-beta.1
- @0x/instant@1.0.33
- @0x/json-schemas@4.1.0-beta.1
- @0x/migrations@4.4.0-beta.1
- @0x/monorepo-scripts@1.0.39
- @0x/order-utils@8.5.0-beta.1
- @0x/orderbook@0.1.0-beta.1
- @0x/sol-compiler@3.2.0-beta.1
- @0x/sol-coverage@3.1.0-beta.1
- @0x/sol-doc@2.1.0-beta.1
- @0x/sol-profiler@3.2.0-beta.1
- @0x/sol-resolver@2.1.0-beta.1
- @0x/sol-trace@2.1.0-beta.1
- @0x/sol-tracing-utils@6.1.0-beta.1
- @0x/sra-spec@2.1.0-beta.1
- @0x/subproviders@5.1.0-beta.1
- @0x/testnet-faucets@1.0.89
- @0x/tslint-config@3.1.0-beta.1
- @0x/types@2.5.0-beta.1
- @0x/typescript-typings@4.4.0-beta.1
- @0x/utils@4.6.0-beta.1
- @0x/web3-wrapper@6.1.0-beta.1
2019-11-07 20:43:12 +00:00
fabioberger
6fd96a6fd7
Updated CHANGELOGS & MD docs
2019-11-07 20:42:58 +00:00
fabioberger
c93b02d55e
Update DevUtils artifacts in contract-artifacts
2019-11-07 19:33:12 +00:00
fabioberger
568f87d5eb
Add CHANGELOG entry about the updated DevUtils contract addresses
2019-11-07 19:24:07 +00:00
fabioberger
49ad0f0d54
Update devUtils contract addresses
2019-11-07 19:22:28 +00:00
fabioberger
0e642f59e1
Fix contract-addresses version in 0x.js
2019-11-07 19:00:26 +00:00
fabioberger
7c5730fb03
Update dep versions that were accidentally published
2019-11-07 18:11:40 +00:00
fabioberger
45f0f755ab
Merge branch 'development' of github.com:0xProject/0x-monorepo into development
2019-11-07 18:07:23 +00:00
fabioberger
1ef2913c5b
Update all CHANGELOGs to prep for publish
2019-11-07 18:07:15 +00:00
F. Eugene Aumson
fecbf220b6
Remove --serial from monorepo test:contracts ( #2320 )
2019-11-07 13:03:55 -05:00
fabioberger
17a5f05cf3
Make contract-test package private
2019-11-07 18:02:38 +00:00
Xianny
6a852ab0ed
Replace assetDataUtils with DevUtilsContract wherever possible ( #2304 )
...
* Replace assetDataUtils with DevUtilsContract wherever possible
Does not replace from @0x/instant and some @0x/order-utils uses
* Add revertIfInvalidAssetData to LibAssetData
This is needed to replace `assetDataUtils.decodeAssetDataOrThrow`.
Because it's used in packages and not only contracts, we should wait
to deploy the updated contract so we can update `@0x/contract-artifacts`,
`@0x/abi-gen-wrappers`, and `@0x/contract-wrappers` first.
* remove usages of signatureUtils
* fix test for optimised encoding
* refactor @0x/contracts-integrations
* update changelogs
* Move @0x/contracts-dev-utils from devDependencies to dependencies
It is exported as part of the package
2019-11-06 19:40:20 -08:00
Jacob Evans
ec26cff656
Fix contract-addresses CHANGELOG (prettier)
2019-11-07 08:48:48 +11:00
xianny
cdd34a1214
Updated CHANGELOGS & MD docs ONLY for pkgs that made it to npmjs (partial publish)
2019-11-06 12:50:58 -08:00
F. Eugene Aumson
857a4042ef
abi-gen: Include templates in published tarball ( #2315 )
...
* abi-gen: Include templates in published tarball
* abi-gen: update CHANGELOG
* abi-gen/package.json: explicitly include code
Apparently when you include a "files" section, it by default only
includes the code directly referenced by the package.json. (For this
package, it was including the lib/src/index.js referenced by "main", and
the bin/abi-gen.js referenced by "bin", but no other *.js files, nor any
*.d.ts files.)
2019-11-06 02:39:35 -05:00
F. Eugene Aumson
f51c80adb2
Change all instances of networkId to chainId ( #2313 )
...
* abi-gen/test: recompile contract fixtures for 3.0
It seems this hadn't been done since the merge with the 3.0 branch.
* Sync `monorepo$ yarn test` exclusions to CI config
* sra-spec: correct typo
* contract-wrappers: TODO after coord.-server update
* utils: fix typo in comment
* Refactor networkId to chainId everywhere
* Update CHANGELOGs
2019-11-06 01:18:55 -05:00
F. Eugene Aumson
e61f23d001
Migrate Python libraries to v3 ( #2284 )
...
* .gitignore migrations/0x_ganache_snapshot
* .gitignore new-ish Python contract wrappers
These should have been added back when we started generating these
wrappers.
* rm superfluous contract artifact in Python package
All of the contract artifacts were removed from the Python package
recently, because now they're copied from the monorepo/packages area as
an automated build step. Somehow this one artifact slipped through the
cracks.
* Eliminate circular dependency
This was preventing the Exchange wrapper from ever importing its
validator!
* Improve output of monorepo-level parallel script
- Capture stderr (and have it included in stdout) so that it doesn't
leak onto the console for commands that didn't actually fail.
- Include all error output in the Exception object (eliminate print
statement).
* Silence new versions of linters
Newer versions care about this stuff. Old versions didn't, and we don't
either.
* Support Rich Reverts via Web3.py middleware
* Fix bug in generated wrappers' bytes handling
`bytes.fromhex(bytes.decode('utf-8')` is just plain wrong. It would
work for some cases, but is not working when trying to fill orders with
the latest Exchange contract.
* Migrate to Exchange v3
* Fix typo in DevUtils documentation
* Include new contracts in docs
* Re-enable Python checks in CI
* Accept strings for bytes
* Fix CircleCI build artifacts for gen'd python
I swear the previous way was working before, but it wasn't working now,
so this fixes it.
* Accept a provider OR a Web3 object
In various places. This allows the caller to install middleware (which
in web3.py is installed on a Web3 object, not on a provider) before
executing any RPC calls, which is important for the case where one wants
to produce signatures locally before submitting to a remote node.
* wrapper base: don't assume there are accounts
* Eliminate some inline linter directives
* make CHANGELOGs be REVERSE chronological
* Update CHANGELOG entries and bump version numbers
* @0x/contract-addresses: Put addr's in JSON, not TS
This allows easier consumption by other languages. (Specifically, it
eliminates the overhead of keeping the Python addresses package in sync
with the TypeScript one.)
* sra_client.py: incl. docker in `./setup.py clean`
* sra_client.py: Migrate to protocol v3
Removed script that existed only to exclude runs of sra_client builds
(parallel_without_sra_client). Now `parallel` is used by CI,
re-including sra_client in CI checks.
* abi-gen/templates/Py: clarify if/else logic
In response to
https://github.com/0xProject/0x-monorepo/pull/2284#discussion_r342200906
* sra_client.py: Update CHANGELOG and bump version
* contract_addresses/setup.py: rm unnecessary rm
* json_schemas.py: corrections to dev dependencies
* In tests against deployment, also run doctests
* contract_wrappers example: rm xtra Order attribute
Thanks to @steveklebanoff for catching this.
https://github.com/0xProject/0x-monorepo/pull/2284#pullrequestreview-312065368
2019-11-05 23:04:29 -05:00
Greg Hysz
cbe4c4fbf9
Merge pull request #2319 from 0xProject/fix/development/blockTimestampTooLowNonDeterministicBug
...
Fix development
2019-11-05 17:23:18 -08:00
xianny
deffdabc30
Revert "Updated CHANGELOGS & MD docs"
...
This reverts commit f65d8cc325 .
2019-11-05 17:06:05 -08:00
xianny
8811a5387a
Revert "Publish"
...
This reverts commit 9336d4e545 .
2019-11-05 17:05:58 -08:00
xianny
9336d4e545
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.1
- @0x/contracts-coordinator@2.1.0-beta.1
- @0x/contracts-dev-utils@0.1.0-beta.1
- @0x/contracts-erc1155@1.2.0-beta.1
- @0x/contracts-erc20@2.3.0-beta.1
- @0x/contracts-erc721@2.2.0-beta.1
- @0x/contracts-exchange-forwarder@3.1.0-beta.1
- @0x/contracts-exchange-libs@3.1.0-beta.1
- @0x/contracts-exchange@2.2.0-beta.1
- @0x/contracts-extensions@4.1.0-beta.1
- @0x/contracts-integrations@1.0.1
- @0x/contracts-multisig@3.2.0-beta.1
- @0x/contracts-staking@1.1.0-beta.1
- @0x/contracts-test-utils@3.2.0-beta.1
- @0x/contracts-tests@0.0.2
- @0x/contracts-utils@3.3.0-beta.1
- 0x.js@7.1.0-beta.1
- @0x/abi-gen-wrappers@5.4.0-beta.1
- @0x/abi-gen@4.4.0-beta.1
- @0x/assert@2.2.0-beta.1
- @0x/asset-buyer@6.2.0-beta.1
- @0x/asset-swapper@2.1.0-beta.1
- @0x/base-contract@5.5.0-beta.1
- @0x/connect@5.1.0-beta.1
- @0x/contract-addresses@3.3.0-beta.1
- @0x/contract-artifacts@2.3.0-beta.1
- @0x/contract-wrappers@12.2.0-beta.1
- @0x/contracts-gen@1.1.0-beta.1
- @0x/dev-utils@2.4.0-beta.1
- ethereum-types@2.2.0-beta.1
- @0x/instant@1.0.33
- @0x/json-schemas@4.1.0-beta.1
- @0x/migrations@4.4.0-beta.1
- @0x/monorepo-scripts@1.0.39
- @0x/order-utils@8.5.0-beta.1
- @0x/orderbook@0.1.0-beta.1
- @0x/sol-compiler@3.2.0-beta.1
- @0x/sol-coverage@3.1.0-beta.1
- @0x/sol-doc@2.1.0-beta.1
- @0x/sol-profiler@3.2.0-beta.1
- @0x/sol-resolver@2.1.0-beta.1
- @0x/sol-trace@2.1.0-beta.1
- @0x/sol-tracing-utils@6.1.0-beta.1
- @0x/sra-spec@2.1.0-beta.1
- @0x/subproviders@5.1.0-beta.1
- @0x/testnet-faucets@1.0.89
- @0x/tslint-config@3.1.0-beta.0
- @0x/types@2.5.0-beta.1
- @0x/typescript-typings@4.4.0-beta.1
- @0x/utils@4.6.0-beta.1
- @0x/web3-wrapper@6.1.0-beta.1
2019-11-05 16:58:14 -08:00
xianny
f65d8cc325
Updated CHANGELOGS & MD docs
2019-11-05 16:58:00 -08:00
Greg Hysen
68656c4083
Fixes intermittent test failure by removing block timestamp contraints from staking scheduler tests
2019-11-05 16:57:37 -08:00
Greg Hysz
44793a9cf9
Merge pull request #2316 from 0xProject/tests/3.0/StakingMixinCumulativeRewardsUnitTEsts
...
Unit tests for MixinCumulativeRewards
2019-11-05 16:00:52 -08:00
Greg Hysen
2d0ad6f181
Updated staking changelog
2019-11-05 15:32:35 -08:00
Greg Hysen
a7f0717afb
Unit tests for MixinCumulativeRewards
2019-11-05 15:32:04 -08:00
Greg Hysz
a9022352e7
Merge pull request #2314 from 0xProject/tests/3.0/MixinSchedulerUnitTests
...
Unit tests for MixinScheduler
2019-11-05 15:27:20 -08:00
Greg Hysen
9b2231ed24
Improved readability on some tests + updated staking changelog
2019-11-05 14:59:55 -08:00
Greg Hysen
c123200f38
Unit tests for MixinScheduler
2019-11-04 15:44:46 -08:00
James Towle
3c6c4128a6
Merge pull request #2294 from 0xProject/refactor/integration-tests/wrapper-functions
...
Refactor/integration tests/wrapper functions
2019-11-04 14:46:11 -08:00
Lawrence Forman
47e050cbaf
Merge pull request #2312 from 0xProject/feat/contracts/staking/MixinStakingPoolRewards-unit-tests
...
MixinStakingPoolRewards unit tests
2019-11-04 17:19:03 -05:00
Alex Towle
62d15117c5
@0x:contracts-integrations Removed the dependency on number_utils from staking
2019-11-04 14:16:43 -08:00
Lawrence Forman
fb8360edfd
Merge pull request #2311 from 0xProject/fix/contracts/staking/LibFixedMath-overflow-pt-2
...
Fix `LibFixedMath._mul()` overflow
2019-11-04 12:49:20 -05:00
Alex Towle
e557f2fb48
@0x:contracts-integrations Added decimal.js to dependencies so that number_utils can be used
2019-11-04 09:39:00 -08:00
Lawrence Forman
c957b48281
@0x/contracts-staking: Run prettier.
2019-11-04 11:10:07 -05:00
Lawrence Forman
c15c5e12b0
@0x/contracts-staking: Fix event name collision in MixinStakingPoolRewards unit tests.
2019-11-04 11:09:21 -05:00
Lawrence Forman
15c3c8074c
@0x/contracts-staking: Add separate unit tests for withdrawDelegatorRewards() and _withdrawAndSyncDelegatorRewards().
2019-11-04 10:43:37 -05:00
Lawrence Forman
cba72c811d
@0x/contracts-staking: Add _computePoolRewardsSplit() tests to MixinStakingPoolRewards unit tests.
2019-11-04 10:43:37 -05:00
Lawrence Forman
28a2e56003
@0x/contracts-staking: Add more MixinStakingPoolRewards unit tests.
2019-11-04 10:43:37 -05:00
Lawrence Forman
8c4c3d56c6
@0x/contracts-staking: Create MixinStakingPoolRewards unit tests.
2019-11-04 10:43:37 -05:00
Alex Towle
911fcc0bed
@0x:contracts-integrations Addressed review comments from @mzhu
2019-11-01 17:16:17 -07:00
Alex Towle
55fd16ccf1
@0x:contracts-integrations Addressed review comments from @dorothy-zbornak
2019-11-01 12:04:24 -07:00
Lawrence Forman
4e05e41f7f
Merge pull request #2309 from 0xProject/feat/contracts/utils/LibERC20Token
...
LibERC20Token
2019-11-01 14:57:10 -04:00
Alex Towle
ebab80cff7
@0x:contracts-integrations Fixed test issues
2019-11-01 11:22:12 -07:00
Alex Towle
91cb162662
@0x:contracts-integrations Added tests for weth protocol fees
2019-11-01 11:22:12 -07:00
Alex Towle
fa26f8de51
@0x:contracts-integrations Refactored to reduce redundancy
2019-11-01 11:22:12 -07:00
Alex Towle
26602ac2db
@0x:contracts-integrations Added assertions for events in all wrapper functions
2019-11-01 11:22:12 -07:00
Alex Towle
0b8af181d8
@0x:contracts-integrations Refactored the wrapper tests to use newer tools
2019-11-01 11:22:12 -07:00
Alex Towle
19d661d324
@0x:contracts-integrations Started to refactor the wrapper tests
2019-11-01 11:22:12 -07:00
Alex Towle
7d29b36246
@0x:contracts-integrations Moved the wrapper tests into the integrations package
2019-11-01 11:21:52 -07:00
Lawrence Forman
8ba7b95e86
@0x/contracts-utils: Move LibERC20Token out.
...
`@0x/contracts-erc20`: Move `LibERC20Token` in.
`@0x/contracts-erc20`: Use `LibBytes` and `LibRichErrors` in `LibERC20Token`.
`@0x/contracts-erc20`: Use `verifyEventsFromLogs` in `LibERC20Token` unit tests.
2019-11-01 13:58:22 -04:00
Lawrence Forman
30c72daed5
@0x/order-utils: Remove TransferFailedError from ForwarderRevertErrors (for real this time).
2019-11-01 13:36:07 -04:00
Lawrence Forman
575cb99839
@0x/contracts-utils: Update comments in LibERC20Token.
2019-11-01 13:36:07 -04:00
Lawrence Forman
0c064bf85b
Update changelogs.
2019-11-01 13:36:07 -04:00
Lawrence Forman
0f3610c92a
@0x/contracts-asset-proxy: Use LibERC20Token in UniswapBridge and Eth2DaiBridge.
2019-11-01 13:36:07 -04:00
Lawrence Forman
c8ef10baaf
@0x/contracts-utils: Use simple assembly instead of abi.decode() in LibERC20Token._callWithOptionalBooleanResult().
...
`@0x/contracts-exchange-forwarder`: Use `LibERC20Token` in `MixinAssets`.
`@0x/order-utils`: Remove `TransferFailedError` from `ForwarderRevertErrors`.
2019-11-01 13:36:07 -04:00
Lawrence Forman
16dc73bd1e
@0x/contracts-utils: Add LibERC20Token.
2019-11-01 13:36:07 -04:00
Lawrence Forman
4f56d68689
@0x/contracts-staking: Fix overflow w/ LibFixedMath._mul(-1, -2*255).
2019-11-01 13:35:23 -04:00
Greg Hysz
8e6d92cad5
Merge pull request #2310 from 0xProject/tests/3.0/StakingProxyUnitTests
...
Staking Proxy Unit Tests + Fallback Reverts if No Staking Contract
2019-11-01 10:26:54 -07:00
Greg Hysen
3a1c464543
Readability improvements to Staking Proxy unit tests + one extra case
2019-11-01 09:59:17 -07:00
Greg Hysen
a0c2f6b7b4
Updated Staking changelog
2019-10-31 18:25:33 -07:00
Greg Hysen
7bfbf0ad3a
Staking Proxy unit tests + Staking Proxy fallback reverts if no staking contract is attached
2019-10-31 18:22:49 -07:00
mzhu25
82ee6750c7
Merge pull request #2307 from 0xProject/fix/integration-tests/tslint
...
`@0x/contracts-integrations`: Enable tslint and fix lint errors
2019-10-31 16:23:35 -07:00
mzhu25
c37fc30c55
Merge pull request #2302 from 0xProject/feature/integration-tests/fillOrder
...
`@0x/contracts-integrations`: fillOrder integration tests
2019-10-31 16:20:07 -07:00
Michael Zhu
09d13b2bfa
default before/after in FunctionAssertion
2019-10-31 15:49:12 -07:00
Michael Zhu
af0de72bc3
address comments
2019-10-31 15:30:15 -07:00
Michael Zhu
43e32f6a1a
fix other lint errors
2019-10-31 15:30:15 -07:00
Michael Zhu
e9e6452890
add tslint.json to package and update actor mixins
2019-10-31 15:28:02 -07:00
Michael Zhu
5f699b0c47
add test for weth protocol fees
2019-10-31 15:27:39 -07:00
Michael Zhu
bf18b86f9f
address comments
2019-10-31 15:27:39 -07:00
Michael Zhu
56f7dd7538
fix deployment_manager_test
2019-10-31 15:27:39 -07:00
Michael Zhu
7aa88307f6
Flesh out fillOrder integration tests
2019-10-31 15:27:39 -07:00
James Towle
8aa69233e0
Merge pull request #2305 from 0xProject/sandstorm/framework/function_assertion_set
...
Function Assertion Sets
2019-10-31 14:07:57 -07:00
James Towle
e843333918
Merge pull request #2308 from 0xProject/fix/unblock-kroeger/add-contract-artifacts
...
`@0x:artifacts` Added the Staking and StakingProxy artifacts
2019-10-31 12:42:43 -07:00
Alex Towle
133a4dc4e1
@0x:contract-artifacts Trimmed artifacts and ran prettier
2019-10-31 10:21:40 -07:00
Alex Towle
c7945a542e
@0x:abi-gen-wrappers Added exports
2019-10-31 10:18:41 -07:00
Alex Towle
b4e00baa07
@0x:artifacts Added the Staking and StakingProxy artifacts
2019-10-31 10:18:40 -07:00
Alex Towle
dde570706a
@0x:contracts-integrations Put final cleaning touches on the function assertion set
2019-10-30 13:26:29 -07:00
Alex Towle
0b3e3ab990
@0x:contracts-integrations Addressed more review comments
2019-10-30 11:11:55 -07:00
Alex Towle
205c895d75
@0x:contracts-integrations Added better documentation to FunctionAssertions
2019-10-29 23:19:28 -07:00
Alex Towle
6402d29dd4
@0x:contracts-integrations Added collections of function assertions
2019-10-29 14:51:01 -07:00
mzhu25
dc18999931
Merge pull request #2293 from 0xProject/refactor/integrations/forwarder-tests
...
Refactor and move Forwarder tests to integrations package
2019-10-29 13:04:59 -07:00
Michael Zhu
43f8101d0b
address comments
2019-10-29 11:26:56 -07:00
Michael Zhu
3d56c06ff3
Move Forwarder test to integrations; update to use new framework
2019-10-29 11:26:56 -07:00
Lawrence Forman
db9be73fec
Merge pull request #2292 from 0xProject/feat/staking/MixinStakeBalances-unit-tests
...
Add MixinStakeBalances unit tests.
2019-10-29 08:11:59 -04:00
Lawrence Forman
a02892cbc8
@0x/contracts-staking: Remove duplicated test case in MixinStakeBalances unit tests.
2019-10-29 07:37:06 -04:00
Lawrence Forman
49c67fbb18
@0x/contracts-staking: Remove unused lodash import and only modifier from MixinStakeBalances unit tests.
2019-10-29 07:37:06 -04:00
Lawrence Forman
6f2e79208a
@0x/contracts-staking: Add MixinStakeBalances unit tests.
2019-10-29 07:37:06 -04:00
Amir Bandeali
ceb3ba4116
Merge pull request #2296 from 0xProject/feat/3.0/testnet-migrations-2
...
Update 3.0 testnet migrations and addresses
2019-10-28 21:29:03 -07:00
Greg Hysz
08d4f1402f
Merge pull request #2301 from 0xProject/fix/3.0/removeLibProxy
...
Removed LibProxy and inlined proxy call in StakingProxy.
2019-10-28 20:00:24 -07:00
Amir Bandeali
77fa97f259
Update DevUtils, Forwarder, and Coordinator addresses for each testnet
2019-10-28 17:40:50 -07:00
Amir Bandeali
3ac5d9add5
Add DevUtils, Forwarder, and Coordinator to testnet migrations
2019-10-28 17:40:45 -07:00
Amir Bandeali
cab89f312a
Update CHANGELOG
2019-10-28 16:55:54 -07:00
Amir Bandeali
8972475389
Update testnet migrations and verifications
2019-10-28 16:55:54 -07:00
Amir Bandeali
330f2d54e2
Update contract-addresses with new testnet deployments
2019-10-28 16:55:54 -07:00
Greg Hysen
9c181f09ba
Removed LibProxy and inlined proxy call in StakingProxy.
2019-10-28 16:42:52 -07:00
Amir Bandeali
011ecb8f4b
Merge pull request #2297 from 0xProject/fix/multisig/allow-tx-to-be-over-confirmed
...
Allow transactions to be over confirmed without resetting the confirmation time
2019-10-28 12:49:19 -07:00
Amir Bandeali
bc2a9beb14
Merge pull request #2295 from 0xProject/feat/staking/remove-read-only-mode
...
Remove read-only mode and associated code
2019-10-28 12:02:10 -07:00
Amir Bandeali
091f5ed8b8
Allow transactions to be over confirmed without resetting the confirmation time
2019-10-28 10:45:17 -07:00
F. Eugene Aumson
ea9f535a7c
contract_addresses.py: Add DevUtils contract ( #2150 )
...
* contract_addresses.py: Add DevUtils
* Update __init__.py
* Remove whitespace to satisfy linters
2019-10-28 13:32:24 -04:00
Amir Bandeali
f246314b1d
Update default alpha from 1/2 to 2/3
2019-10-27 16:53:57 -07:00
Amir Bandeali
cdfd62a296
Fix reentrancy tests
2019-10-27 14:23:19 -07:00
Amir Bandeali
dcff7d511b
Add tests for detachProtocolFeeCollector
2019-10-27 11:41:06 -07:00
Amir Bandeali
16a5475d24
Add detachProtocolFeeCollector function (in order to have a separate timelock for detaching)
2019-10-27 11:40:28 -07:00
Amir Bandeali
42468c3fa2
Remove read-only proxy from contract addresses and migrations
2019-10-27 11:12:22 -07:00
Amir Bandeali
9312d5d9f7
remove read-only mode related code from integrations
2019-10-27 11:12:22 -07:00
Amir Bandeali
33a0c22021
Remove tests related to read-only mode
2019-10-27 11:12:22 -07:00
Amir Bandeali
58e9c70203
Remove read-only mode related functions, storage variables, and contracts
2019-10-27 11:12:16 -07:00
F. Eugene Aumson
0067f10a6a
@0x/utils: fix wrong RPC method in getChainIdAsync() ( #2270 )
...
It was using net_version, but it should be using the eth_chainId method
introduced in EIP-695. I'm not sure whether/how the network ID differs
from the chain ID on mainnet and the testnets, but in Ganache in
particular, the network ID is 50 while the chain ID is 1337, and this
difference was causing problems for Python tests. Specifically, the
Web3.py interface `Web3.eth.chainId` invokes the eth_chainId method, and
the result feeds into the order hash, which wasn't lining up with the
non-Python side of things.
2019-10-25 21:08:31 -04:00
Lawrence Forman
59210f5e5e
Merge pull request #2287 from 0xProject/feat/staking/MixinStakingPool-unit-tests
...
Add MixinStakingPool unit tests.
2019-10-25 11:59:50 -04:00
Lawrence Forman
1c695b2759
Rebase onto 3.0
2019-10-25 10:56:03 -04:00
Lawrence Forman
c7222c17ae
@0x/contracts-test-utils: prettier
2019-10-25 10:55:03 -04:00
Lawrence Forman
0f237d22f9
@0x/contracts-test-utils: Refactor verifyEvents() to just use verifyEventsFromLogs().
2019-10-25 10:55:03 -04:00
Lawrence Forman
b1b1162b60
@0x/contracts-staking: Add MixinStakingPool unit tests.
2019-10-25 10:55:03 -04:00
Lawrence Forman
6ee1605a77
@0x/contracts-test-utils: Add verifyEventsFromLogs().
2019-10-25 10:54:38 -04:00
Greg Hysz
a22b2e7a9f
Merge pull request #2290 from 0xProject/fix/3.0/updatedInterfaces
...
Created IZrxVaultBackstop and updated IStaking.
2019-10-25 06:33:18 -07:00
Greg Hysz
86ed32a007
Merge pull request #2288 from 0xProject/fix/3.0/minorStakingReadability
...
Replaced `protocolFeePaid` -> `protocolFeeAmount`
2019-10-25 06:19:20 -07:00
Greg Hysen
8e8ea6a3ab
Created IZrxVaultBackstop and updated IStaking.
2019-10-24 15:58:51 -07:00
Greg Hysen
cc7452da8f
Replaced protocolFeePaid -> protocolFeeAmount. Changed some wording in comments.
2019-10-24 15:58:18 -07:00
Amir Bandeali
06715201a7
Merge pull request #2283 from 0xProject/fix/3.0/rename-bridge-withdraw-to
...
Rename `withdrawTo` to `bridgeTransferFrom`
2019-10-23 10:15:08 -07:00
Amir Bandeali
281658ba34
Rename withdrawTo to bridgeTransferFrom
2019-10-23 09:42:37 -07:00
Lawrence Forman
f192648c76
Merge pull request #2279 from 0xProject/fix/3.0-audit/staking/assert-valid-params-in-MixinParams
...
Assert storage params when calling `MixinParams.setParams()`.
2019-10-23 05:11:10 -04:00
Lawrence Forman
07e1d502e7
@0x/contracts-staking: Update changelog.
2019-10-23 04:40:47 -04:00
Lawrence Forman
703e890918
@0x/contracts-staking: Call StakingProxy.assertValidStorageParams() in MixinParams.setParams()
2019-10-23 04:40:47 -04:00
mzhu25
096950729e
Merge pull request #2275 from 0xProject/refactor/integrations/coordinator-tests-part2
...
Coordinator test refactor [2/2]
2019-10-22 17:37:21 -07:00
Michael Zhu
8869d79c68
rebase
2019-10-22 17:05:08 -07:00
Michael Zhu
752dd04546
address comments
2019-10-22 17:05:08 -07:00
Michael Zhu
3e5d166ec4
moving away from extending DeploymentManager in case we want to deploy multiple extensions alongside one another
2019-10-22 17:05:08 -07:00
Michael Zhu
64bc1b0990
update coordinator tests to use deployment manager, balance stores, actor mixins
2019-10-22 17:05:08 -07:00
Michael Zhu
548b0db6ea
coordinator deployment manager
2019-10-22 17:05:08 -07:00
Greg Hysz
c9607e8b2c
Merge pull request #2280 from 0xProject/fix/3.0/handleNopInMoveStake
...
Force no-op when moving stake, in some scenarios
2019-10-22 16:51:46 -07:00
Greg Hysen
c676ecb8cf
Force no-op when moving zero stake or moving from undelegated to undelegated.
2019-10-22 15:39:24 -07:00
James Towle
39804fdc83
Merge pull request #2281 from 0xProject/fix/ci/10-22-2019
...
`CI` Fix build failure
2019-10-22 15:20:24 -07:00
Alex Towle
1a1dc89454
CI Fix build failure
2019-10-22 14:53:13 -07:00
James Towle
e427698956
Merge pull request #2252 from 0xProject/feature/sandstorm/function-assertions
...
Initial Sandstorm Framework
2019-10-22 13:45:42 -07:00
Greg Hysz
575af6b6e8
Merge pull request #2278 from 0xProject/fix/3.0/removeProtocolFeeZeroAssertion
...
Remove assertion that protocol fee != zero
2019-10-22 13:24:59 -07:00
Alex Towle
3a1fc9ee5f
@0x:contracts-integrations Fixed package after rebase
2019-10-22 13:15:01 -07:00
mzhu25
1237c7d479
Merge pull request #2277 from 0xProject/fix/3.0/rmeove-staking-fallback
...
Remove payable fallback from Staking.sol
2019-10-22 12:46:13 -07:00
Greg Hysen
c44e16a88f
Removed assertion that protocol fee != 0 from staking contract.
2019-10-22 12:42:04 -07:00
Greg Hysz
06c180475e
Merge pull request #2276 from 0xProject/cleanup/staking/finalizationDataStructures
...
Refactored finalization state.
2019-10-22 12:37:50 -07:00
Michael Zhu
74a2c3a199
Remove payable fallback from Staking.sol
2019-10-22 12:15:07 -07:00
Greg Hysen
9ac715f99d
Protocol fee amount is not enforced by staking contract
2019-10-22 12:10:34 -07:00
Greg Hysen
22e39f782f
Some (more) readability improvements and minor optimizations to staking finalization.
2019-10-22 12:09:18 -07:00
Alex Towle
f5a6b84fa3
CI: Added a seperate workflow for contracts/integrations
2019-10-22 12:07:50 -07:00
Alex Towle
718407ba6f
@0x:contracts-integrations Switched to object destructuring in the function assertion unit test
2019-10-22 12:07:50 -07:00
Alex Towle
e603a81a46
@0x:contracts-integrations Simplified the tests
2019-10-22 12:07:50 -07:00
Alex Towle
03e35846fb
@0x:contracts-integrations Removed the Cache
2019-10-22 12:07:50 -07:00
Alex Towle
c87364f86b
@0x:contracts-integrations Addressed more review feedback
2019-10-22 12:07:50 -07:00
Alex Towle
a794a33551
@0x:contracts-integrations Addressed review comments
2019-10-22 12:06:38 -07:00
Alex Towle
494b437f1a
@0x:contracts-integrations Renamed some functions in Address Manager
2019-10-22 12:04:47 -07:00
Alex Towle
92b80fc436
@0x:contracts-integrations Improved the caches
2019-10-22 12:04:47 -07:00
Alex Towle
d66101cd9d
@0x:contracts-integrations Added unit tests for FunctionAssertion
2019-10-22 12:04:47 -07:00
Alex Towle
89ae04803f
@0x:contract-integrations Added the integrations package to CI
2019-10-22 12:01:54 -07:00
Alex Towle
be95bce4cd
@0x:contract-integrations Move caches to a new file
2019-10-22 12:01:30 -07:00
Alex Towle
01aee08c02
@0x:contracts-integrations Wrote a simple integration test and AddressManager
2019-10-22 12:01:30 -07:00
Alex Towle
6cba9fd77f
@0x/contracts-integrations Created the FunctionAssertion class and examples
2019-10-22 11:59:17 -07:00
mzhu25
673d45361f
Merge pull request #2273 from 0xProject/refactor/integrations/coordinator-tests
...
Coordinator test refactor [1/2] + actor mixin pattern
2019-10-22 11:37:02 -07:00
Greg Hysen
d91a7fc663
Some readability improvements and minor optimizations to staking finalization.
2019-10-22 11:02:25 -07:00
Greg Hysen
ce8fd44234
Removed lingering references to stale terminology ("active pools")
2019-10-22 11:02:25 -07:00
Greg Hysen
6617ad9531
Refactored finalization state.
...
1. Removes state variables:
- totalWeightedStakeThisEpoch
- totalFeesCollectedThisEpoch
- numActivePoolsThisEpoch
2. No longer indexes by epoch % 2
3. Renamed event StakingPoolActivated → StakingPoolEarnedRewards.
4. Renamed structs:
- ActivePool → PoolStats. This holds stats for a pool that earned rewards.
- UnfinalizedState → AggregatedStats. This aggregates stats from the former struct.
2019-10-22 11:02:25 -07:00
Amir Bandeali
10f8051835
Merge pull request #2274 from 0xProject/feat/staking/separate-function-logic
...
Separate finalization from withdrawing rewards
2019-10-22 10:36:04 -07:00
Amir Bandeali
e7dc7167d0
Sync delegatedStakeToPoolByOwner whenever _withdrawAndSyncDelegatorRewards is called
2019-10-22 09:38:18 -07:00
Amir Bandeali
359b804001
Add test for withdrawing rewards before epoch is finalized
2019-10-21 22:27:06 -07:00
Amir Bandeali
fd9084b345
Add PoolNotFinalizedError rich revert
2019-10-21 22:27:06 -07:00
Amir Bandeali
44dac2cd80
Fix tests that assume touching stake will finalize pool
2019-10-21 22:27:06 -07:00
Amir Bandeali
a66ea2bf74
Assert that pool has been finalized in _withdrawAndSyncDelegatorRewards rather than calling finalizePool
2019-10-21 22:27:06 -07:00
Amir Bandeali
a362e9d2d8
Use safeMath where possible
2019-10-21 22:27:06 -07:00
Amir Bandeali
1885957bd3
Update tests to start at epoch 1
2019-10-21 22:27:06 -07:00
Amir Bandeali
1a409c3731
Initialize currentEpoch at 1 instead of 0
2019-10-21 22:27:06 -07:00
Amir Bandeali
7b7c64fc6a
Add assertion function that checks if pool was finalized last epoch
2019-10-21 22:27:06 -07:00
Michael Zhu
102fcd3fb8
export actor classes
2019-10-21 11:17:53 -07:00
Michael Zhu
566e05aea4
typo
2019-10-21 11:17:53 -07:00
Michael Zhu
f014370531
document mixin constructor params
2019-10-21 11:17:53 -07:00
Michael Zhu
dfbbe9daa2
address comments
2019-10-21 11:17:53 -07:00
Michael Zhu
6b653fb00d
prettier gdi
2019-10-21 11:17:53 -07:00
Michael Zhu
21cf2319d5
rename some stuff
2019-10-21 11:17:53 -07:00
Michael Zhu
4210477e71
Introduce actor mixin pattern
2019-10-21 11:17:53 -07:00
Michael Zhu
93b02e93b9
juggling some files around
2019-10-21 11:16:14 -07:00
Michael Zhu
f4cb8cfb7e
Support arbitrary # of tokens in DeploymentManager
2019-10-21 11:16:14 -07:00
Xianny
ce9f051d42
Create @0x/contracts-tests ( #2261 )
...
* Create @0x/contracts-tests
* Move tests from @0x/contracts-dev-utils
2019-10-21 10:23:46 -07:00
Amir Bandeali
083216a0c6
Merge pull request #2271 from 0xProject/feat/3.0/zero-ex-governor
...
Rename AssetProxyOwner to ZeroExGovernor
2019-10-19 17:05:07 -07:00
Amir Bandeali
820b40e227
Import ZeroExGovernor instead of AssetProxyOwner in testnet migrations
2019-10-18 16:31:38 -07:00
mzhu25
59a38a8db0
Merge pull request #2269 from 0xProject/refactor/balance-stores
...
BalanceStore++
2019-10-18 09:01:33 -07:00
Lawrence Forman
d0884dcb4d
Merge pull request #2267 from 0xProject/feat/3.0/staking/MixinStake-unit-tests
...
Create MixinStake unit tests
2019-10-18 11:41:18 -04:00
Lawrence Forman
c7ca625408
@0x/contracts-staking: Fix MixinStake unit tests typo.
2019-10-18 10:45:07 -04:00
Lawrence Forman
e46f51339a
@0x/contracts-staking: Address review comments.
2019-10-18 10:42:47 -04:00
Michael Zhu
b45ec47eee
address comments
2019-10-17 19:53:43 -07:00
Amir Bandeali
c50cbd7a75
Rename AssetProxyOwner to ZeroExGovernor throughout all contracts packages
2019-10-17 17:41:54 -07:00
Amir Bandeali
5ddc35fdf2
Rename AssetProxyOwner to ZeroExGovernor
2019-10-17 17:41:54 -07:00
Amir Bandeali
d6c064b9c3
Merge pull request #2224 from 0xProject/feat/3.0/testnet-migrations
...
3.0 testnet migrations
2019-10-17 17:38:09 -07:00
Amir Bandeali
caf6329bb3
Merge branch '3.0' into feat/3.0/testnet-migrations
2019-10-17 17:13:12 -07:00
Lawrence Forman
008938cf5b
@0x/contracts-staking: Check order of increase and derease balance operations in MixinStake unit tests.
2019-10-17 14:09:46 +10:00
Fabio B
3fd29656cb
Merge pull request #2268 from 0xProject/addERC1155MintableSupport
...
Add erc1155 mintable support
2019-10-17 11:50:02 +08:00
Michael Zhu
ffac52f42e
lint
2019-10-16 20:19:04 -07:00
fabioberger
9114510c00
Add enum-naming linter ignore to wrappers to fix linter issue with URL in ERC1155Mintable
2019-10-17 12:16:42 +09:00
fabioberger
2dbda6fc42
Deploy ERC1155Mintable in migration
2019-10-17 12:16:08 +09:00
fabioberger
eae4001622
Update ganache-cli version in migration dockerfile
2019-10-17 12:16:08 +09:00
fabioberger
727d0498b6
Export ERC1155Mintable from abi-gen-wrapper
2019-10-17 12:16:08 +09:00
fabioberger
e43f2d39bf
Add ERC1155Mintable to artifacts and abi-gen-wrappers packages
2019-10-17 12:16:08 +09:00
Michael Zhu
cde0169733
Update BlockchainBalanceStore to not rely on erc*_wrappers + better balance equality assertions
2019-10-16 18:46:55 -07:00
Xianny
0e90b0e7d0
Make wrappers small again ( #2243 )
...
* introduce --debug option to abi-gen and remove debug functions from @0x/abi-gen-wrappers
* make evmExecAsync protected; ignore deployedBytecode in doc comment
* trim deployedBytecode so it's undefined unless a contract has pure functions
* remove validateAndSendTransactionAsync
* Create `AwaitTransactionSuccessOpts` and `SendTransactionOpts` types
* Remove duplicate types `IndexedFilterValues`, `DecodedLogEvent`, `EventCallback` from `@0x/base-contract`
2019-10-16 09:38:34 -07:00
Lawrence Forman
b793a31cdd
@0x/contracts-staking: Create MixinStake unit tests.
2019-10-16 22:53:36 +10:00
James Towle
23198174f3
Merge pull request #2254 from 0xProject/fix/t14
...
Add SafeMath to Multisig
2019-10-15 15:40:48 -07:00
Alex Towle
523bc3f951
Updated Changelogs
2019-10-15 15:00:01 -07:00
Alex Towle
41d99e77c7
@0x:contracts-utils Removed SafeMath and the use of the contract throughout contracts/
2019-10-15 14:31:48 -07:00
Alex Towle
90193c8197
@0x:contracts-multisig Changed SafeMath to LibSafeMath
2019-10-15 14:31:48 -07:00
Alex Towle
6f5c62914e
@0x:contracts-multisig Switched to SafeMath in pastTimeLock
2019-10-15 14:31:48 -07:00
James Towle
17faeae47d
Merge pull request #2265 from 0xProject/fix/3.0/c18
...
Fix/3.0/c18
2019-10-15 11:31:46 -07:00
Alex Towle
7283a16710
@0x:contracts-utils Updated changelog
2019-10-14 11:57:02 -07:00
Alex Towle
52c3dc4ad8
@0x:contracts-utils Fixed and improved the LibBytes tests
2019-10-14 11:54:02 -07:00
Alex Towle
1cf8ae5909
@0x:contracts-utils Removed several functions from LibBytes
2019-10-14 11:54:02 -07:00
Amir Bandeali
51282953bd
Merge pull request #2263 from 0xProject/fix/3.0-audit/staking/cumulative-rewards-refactor
...
Staking: Refactor and slightly simplify rewards tracking
2019-10-14 18:28:03 +09:00
Lawrence Forman
a6603d6bd6
@0x/contracts-staking: Fix typo in MixinCumulativeRewards
2019-10-14 15:19:34 +10:00
Lawrence Forman
54a03eacd6
@0x/contracts-staking: Refactor MixinCumulativeRewards and MixinStakingPoolRewards to better encapsulate cumulative rewards.
...
`@0x/contracts-staking`: Make sure we don't overwrite an existing CR.
`@0x/contracts-staking`: Remove the need to initialize cumulative rewards when creating a pool.
`@0x/contracts-staking`: Just return an empty CR in `_getCumulativeRewardAtEpoch()` if one can't be found.
2019-10-14 12:36:26 +10:00
Amir Bandeali
43fa753a13
Merge pull request #2262 from 0xProject/fix/staking/simplify-finalization
...
Staking readability improvements
2019-10-14 10:45:55 +09:00
Amir Bandeali
9d9fe882b6
Remove unnecessary payable keywords
2019-10-14 09:58:31 +09:00
Amir Bandeali
4f6958b7b5
Do not import @0x/contracts-extensions to fix build
2019-10-14 09:46:06 +09:00
Amir Bandeali
9a5752fff9
Remove unused param in Pool struct
2019-10-14 09:45:37 +09:00
Amir Bandeali
c21932d149
Remove _creditRewardsToPool and remove return values from finalizePool
2019-10-13 17:31:55 +09:00
Amir Bandeali
ce6c05637f
Update cumulative rewards tracking tests
2019-10-13 17:31:55 +09:00
Amir Bandeali
b0699fc238
Always set cumulative rewards when _withdrawAndSyncDelegatorRewards is called
2019-10-13 17:31:55 +09:00
Amir Bandeali
8bf7c4cf48
Remove unnecessary assert
2019-10-13 17:31:55 +09:00
Lawrence Forman
9f6d113fe8
Merge pull request #2255 from 0xProject/fix/3.0-audit/staking/LibFixedMath-arithmetic-overflows
...
Fix LibFixedMath arithmetic overflows
2019-10-12 07:38:05 +09:00
James Towle
646507c41a
Merge pull request #2253 from 0xProject/fix/t8
...
Ownership Transferred Event
2019-10-10 16:58:08 -07:00
Alex Towle
65f2626544
@0x:contracts-utils Updated the OwnershipTransferred event to be closer to OpenZeppelin's event
2019-10-10 10:58:58 -07:00
Greg Hysz
7155d878b3
Merge pull request #2257 from 0xProject/cleanup/staking/loadSyncedUnsyncedBalance
...
Remove `loadSyncedBalance` and `loadUnsyncedBalance`
2019-10-10 16:15:17 +09:00
Greg Hysen
361576814c
Removed loadSyncedBalance and loadUnsyncedBalance
2019-10-10 15:51:24 +09:00
Amir Bandeali
aa541d0cad
Merge pull request #2256 from 0xProject/feat/staking/immutable
...
Separate immutable contracts, only inherit as needed
2019-10-10 15:19:37 +09:00
Amir Bandeali
7e58385a78
Separate immutable contracts, only inherit as needed
2019-10-10 15:00:35 +09:00
Amir Bandeali
b5545255d0
Merge pull request #2245 from 0xProject/fix/3.0/validate-assetdata
...
Enforce assetData is padded to 32 bytes
2019-10-10 10:55:22 +09:00
Lawrence Forman
a22ba8647c
Update changelogs
2019-10-10 09:41:57 +09:00
Lawrence Forman
22fc0b4337
@0x/contracts-staking: Add another LibFixedMath.add() test.
2019-10-10 09:31:53 +09:00
Lawrence Forman
063d6ff24e
@0x/contracts-staking: Add more overflow safeguards to LibFixedMath.
2019-10-10 09:16:01 +09:00
Lawrence Forman
09c0b83fe3
@0x/utils: Consolidated FixedMathRevertErrors
2019-10-10 09:16:01 +09:00
Lawrence Forman
a42f3d189c
@0x/contracts-staking: Implement better overflow detection in LibFixedMath.
2019-10-10 09:16:01 +09:00
Alex Towle
7815da7257
@0x:contracts-utils Addressed review feedback
2019-10-09 10:49:38 -07:00
Amir Bandeali
8e2b971f5a
Merge pull request #2249 from 0xProject/feat/staking/catastrophic-failure-backstop
...
Read-only mode backstop
2019-10-09 19:16:10 +09:00
Amir Bandeali
3fd7132a0d
Merge pull request #2248 from 0xProject/fix/staking/cleanup-accounting
...
Simplify staking state
2019-10-09 18:00:06 +09:00
Amir Bandeali
93edb083fa
Remove payable fallback from IStakingProxy, fix linting errors
2019-10-09 17:27:37 +09:00
Amir Bandeali
9e41c648dc
Add backstop tests
2019-10-09 17:27:37 +09:00
Amir Bandeali
a7ef54dbff
Implement ZrxVaultBackstop
2019-10-09 17:27:37 +09:00
Amir Bandeali
414084a7ad
Track state of read-only mode in stakingProxy
2019-10-09 17:27:37 +09:00
Amir Bandeali
681e6eab7a
Cleanup language used in comments and variable names
2019-10-09 17:15:25 +09:00
Amir Bandeali
701b203c58
Fix tests
2019-10-09 17:15:25 +09:00
Amir Bandeali
cbd0ca4b60
Make currentEpoch uint64 type, change INACTIVE => UNDELEGATED, and make global balances state a mapping from uin8 => StoredBalance
2019-10-09 17:15:25 +09:00
Amir Bandeali
1626566f93
Change getBalanceOfVault => getBalanceOfZrxVault
2019-10-09 17:15:25 +09:00
Amir Bandeali
ac75053f69
Remove unused rich revert
2019-10-09 17:15:25 +09:00
Amir Bandeali
13afc65b54
Do not store global inactive state
2019-10-09 17:15:25 +09:00
Amir Bandeali
aa0a1bb54d
Fix tests to no longer utilize active stake
2019-10-09 17:15:25 +09:00
Amir Bandeali
2e36c7ef83
Remove ACTIVE state
2019-10-09 17:15:25 +09:00
Amir Bandeali
43399a9ad9
Refactor tests to use new getters
2019-10-09 17:15:25 +09:00
Amir Bandeali
2ef546210d
Update tests to reflect new withdrawal logic
2019-10-09 17:15:25 +09:00
Amir Bandeali
7b379f3933
Simplify withdrawal flow and storage layout
2019-10-09 17:15:25 +09:00
Amir Bandeali
f8ac986a0f
Remove unused struct field
2019-10-09 17:14:28 +09:00
Alex Towle
dc0a78434d
@0x:contracts-utils Updated files
2019-10-08 19:27:39 -07:00
Alex Towle
d1b0384aef
@0x:contracts-utils Added an event for ownership transfers
2019-10-08 19:22:27 -07:00
Greg Hysz
7ac7f45c4a
Merge pull request #2250 from 0xProject/cleanup/staking/simplifyMakers
...
Simplify Makers Interactions with Staking Pools
2019-10-08 11:25:07 +09:00
Greg Hysen
b3c7ccec57
Changed nextPoolId to lastPoolId
2019-10-08 10:43:18 +09:00
Lawrence Forman
93725ecec0
Merge pull request #2233 from 0xProject/feat/erc20-bridge/uniswap
...
UniswapBridge
2019-10-08 10:31:47 +09:00
Amir Bandeali
3c31ef188a
Merge pull request #2246 from 0xProject/fix/3.0/always-validate-signatures
...
Always validate order signatures
2019-10-08 10:25:28 +09:00
Lawrence Forman
53df2130ea
@0x/contracts-asset-proxy: Remove only modifier on uniswap tests.
2019-10-08 09:27:53 +09:00
Amir Bandeali
8b695f9b98
Fix race condition in tests
2019-10-08 09:12:37 +09:00
Amir Bandeali
d914f6fce9
Test for failure with bad signature after partial fill
2019-10-08 09:12:37 +09:00
Amir Bandeali
e2e5152648
Always validate signatures for all types
2019-10-08 09:12:37 +09:00
Lawrence Forman
d3dcf7fb0c
Merge pull request #2247 from 0xProject/fix/3.0-audit/staking/shadowed-variable
...
fix `_computeUnfinalizedDelegatorReward()` shadowed variable and function mutability
2019-10-07 18:50:32 -05:00
Greg Hysen
a0f5a8b64b
Simplify Makers Interactions with Staking Pools.
...
- No longer an upper limit on how many makers can be in a pool.
- No longer a handshake for a maker to join a pool.
- No longer any special powers given to makers.
- Pool Id starts at 1 and increments by 1.
2019-10-08 06:00:24 +09:00
mzhu25
ee508f70bc
Merge pull request #2228 from 0xProject/fix/3.0/refundFinalBalanceNoReentry
...
refundFinalBalanceNoReentry
2019-10-06 13:39:04 -07:00
mzhu25
200b3d450f
Merge pull request #2229 from 0xProject/feature/3.0/update-coordinator
...
Update Coordinator for 3.0
2019-10-06 13:20:00 -07:00
Michael Zhu
52fc7517f9
Remove approval expirations, address other comments
2019-10-06 12:45:48 -07:00
Michael Zhu
cf517b1459
appease static tests
2019-10-06 12:44:58 -07:00
Michael Zhu
c17984b74f
Refactor integration tests (CoordinatorTestFactory)
2019-10-06 12:44:58 -07:00
Michael Zhu
589d2212ee
Test coordinator protocol fees
2019-10-06 12:44:58 -07:00
Michael Zhu
9b922f746b
Update coordinator tests
2019-10-06 12:44:58 -07:00
Michael Zhu
0e7387550c
Update contracts
2019-10-06 12:44:58 -07:00
Lawrence Forman
dbf22583b5
@0x/contracts-asset-proxy: Remove unecessary token allowance when coming from WETH.
2019-10-05 22:37:51 -05:00
Lawrence Forman
6825eb442b
@0x/contracts-staking: Fix shadowed variable in MixinStakingPoolRewards._computeUnfinalizedDelegatorReward() and make the function pure.
2019-10-05 17:22:46 -05:00
James Towle
45f284973a
Merge pull request #2240 from 0xProject/feature/integration-tests/deployment-manager
...
Deployment Manager
2019-10-05 15:14:12 -07:00
Lawrence Forman
ef6e691646
@0x/contracts-exchange-libs: Update generated source files after revase.
2019-10-05 16:29:06 -05:00
Lawrence Forman
e67888d65f
@0x/contracs-asset-proxy: Pass in minimum buy amounts in the UniswapBridge.
...
`@0x/contracs-asset-proxy`: Slight refactors in `UniswapBridge`.
2019-10-05 16:27:24 -05:00
Lawrence Forman
584f8b13fe
@0x/contracts-asset-proxy: Rebase and update Eth2DaiBridge to use IWallet from exchange-libs.
2019-10-05 13:57:51 -05:00
Lawrence Forman
f993b6d1ed
@0x/contracts-exchange: Revert changes to IWallet.
2019-10-05 13:57:51 -05:00
Lawrence Forman
035dc607db
@0x/contracts-asset-proxy: Use IWallet from exchange-libs.
...
`@0x/contracts-asset-proxy`: Fix some comment typos in `UniswapBridge`.
`@0x/contracts-asset-proxy`: Add more allowance tests to the `UniswapBridge` tests.
2019-10-05 13:57:51 -05:00
Lawrence Forman
cf2053ec77
@0x/contracts-exchange-libs: Move IWallet from asset-proxy and exchange packages into this package.
2019-10-05 13:57:51 -05:00
Lawrence Forman
3840ebf538
@0x/contracts-exchange: Move IWallet.sol to exchange-libs.
2019-10-05 13:57:51 -05:00
Lawrence Forman
80cb6b654b
@0x/contracts-asset-proxy: Fix linter errors.
2019-10-05 13:57:51 -05:00
Lawrence Forman
ab70c4df74
@0x/contracts-asset-proxy: Remove only modifier on tests.
2019-10-05 13:57:51 -05:00
Lawrence Forman
95e461072f
@0x/contracts-asset-proxy: Always set allowance.
2019-10-05 13:57:50 -05:00
Lawrence Forman
2593f1ff30
@0x/contracts-asset-proxy: Update CHANGELOG.
2019-10-05 13:57:50 -05:00
Lawrence Forman
c2261a6bbe
@0x/contracts-asset-proxy: Finish off UniswapBridge tests.
2019-10-05 13:57:50 -05:00
Lawrence Forman
b383781870
@0x/contracts-asset-proxy: Getting around stack issues.
2019-10-05 13:57:50 -05:00
Lawrence Forman
7d121bafd0
@0x/contracts-asset-proxy: More work on UniswapBridge tests.
2019-10-05 13:57:50 -05:00
Lawrence Forman
6a2911d10f
@0x/contracts-asset-proxy: Start work on UniswapBridge tests.
2019-10-05 13:57:50 -05:00
Lawrence Forman
17362bcf44
@0x/contracts-asset-proxy: Create UniswapBridge.
2019-10-05 13:57:50 -05:00
Amir Bandeali
87906a3af1
Add test for improperly padded assetData
2019-10-04 18:05:20 -07:00
Amir Bandeali
c0c27ed637
Enforce that assetData is padded to 32 bytes, excluding the id, before dispatching transfer
2019-10-04 18:04:44 -07:00
Amir Bandeali
6be5552944
fix static tests
2019-10-04 17:17:07 -07:00
Alex Towle
b4ae42cc9a
@0x/contracts-integrations Added the integrations package to the top-level configuration
2019-10-04 16:32:39 -07:00
Alex Towle
3c6957095d
@0x:contracts-integrations Addressed review feedback
2019-10-04 15:42:36 -07:00
fabioberger
2020d87824
Fix dist tag issue in publish script
2019-10-04 20:44:18 +08:00
Amir Bandeali
ac1063dd68
Merge branch '3.0' into feat/3.0/testnet-migrations
2019-10-03 23:04:07 -07:00
fabioberger
b8e01d7be5
Add beta version to next tslint-config release
2019-10-04 13:28:25 +08:00
Alex Towle
24e4567b25
@0x:contracts-integration-tests Added an integration-tests package and a deployment manager class
2019-10-03 19:41:51 -07:00
Jacob Evans
ccf40fd65e
Merge pull request #2242 from 0xProject/fix-mesh-orderbook-types
...
HACK: Types as any until Mesh RPC client is published
2019-10-03 18:21:24 -07:00
Jacob Evans
d4729e2669
Increase HEAP space for Instant
2019-10-03 17:47:33 -07:00
Jacob Evans
52d38c63de
HACK the types until Mesh RPC client is published
2019-10-03 16:40:42 -07:00
Jacob Evans
086c30831d
Merge pull request #2241 from 0xProject/rm-dev-tools-pages
...
Remove dev tools pages
2019-10-03 16:31:44 -07:00
Jacob Evans
4be83de7e5
Remove dev tools pages
2019-10-03 16:25:46 -07:00
Jacob Evans
c60d1e50c5
Publish
...
- @0x/contracts-asset-proxy@2.3.0-beta.0
- @0x/contracts-coordinator@2.1.0-beta.0
- @0x/contracts-dev-utils@0.1.0-beta.0
- @0x/contracts-erc1155@1.2.0-beta.0
- @0x/contracts-erc20@2.3.0-beta.0
- @0x/contracts-erc721@2.2.0-beta.0
- @0x/contracts-exchange-forwarder@3.1.0-beta.0
- @0x/contracts-exchange-libs@3.1.0-beta.0
- @0x/contracts-exchange@2.2.0-beta.0
- @0x/contracts-extensions@4.1.0-beta.0
- @0x/contracts-multisig@3.2.0-beta.0
- @0x/contracts-staking@1.1.0-beta.0
- @0x/contracts-test-utils@3.2.0-beta.0
- @0x/contracts-utils@3.3.0-beta.0
- 0x.js@7.1.0-beta.0
- @0x/abi-gen-wrappers@5.4.0-beta.0
- @0x/abi-gen@4.3.0-beta.0
- @0x/assert@2.2.0-beta.0
- @0x/asset-buyer@6.2.0-beta.0
- @0x/asset-swapper@2.1.0-beta.0
- @0x/base-contract@5.5.0-beta.0
- @0x/connect@5.1.0-beta.0
- @0x/contract-addresses@3.3.0-beta.0
- @0x/contract-artifacts@2.3.0-beta.0
- @0x/contract-wrappers@12.2.0-beta.0
- @0x/contracts-gen@1.1.0-beta.0
- @0x/dev-utils@2.4.0-beta.0
- ethereum-types@2.2.0-beta.0
- @0x/instant@1.0.32
- @0x/json-schemas@4.1.0-beta.0
- @0x/migrations@4.4.0-beta.0
- @0x/monorepo-scripts@1.0.38
- @0x/order-utils@8.5.0-beta.0
- @0x/orderbook@0.1.0-beta.0
- @0x/sol-compiler@3.2.0-beta.0
- @0x/sol-coverage@3.1.0-beta.0
- @0x/sol-doc@2.1.0-beta.0
- @0x/sol-profiler@3.2.0-beta.0
- @0x/sol-resolver@2.1.0-beta.0
- @0x/sol-trace@2.1.0-beta.0
- @0x/sol-tracing-utils@6.1.0-beta.0
- @0x/sra-spec@2.1.0-beta.0
- @0x/subproviders@5.1.0-beta.0
- @0x/testnet-faucets@1.0.88
- @0x/types@2.5.0-beta.0
- @0x/typescript-typings@4.4.0-beta.0
- @0x/utils@4.6.0-beta.0
- @0x/web3-wrapper@6.1.0-beta.0
2019-10-03 14:10:22 -07:00
Jacob Evans
501f5ad3de
Updated CHANGELOGS & MD docs
2019-10-03 14:10:00 -07:00
Fabio B
9fe6c196ad
Merge pull request #2237 from 0xProject/fix/reenablePublishAndDocGenCITests
...
Re-enable publish-test and doc-gen-test on CI
2019-10-04 01:58:36 +08:00
fabioberger
6d462b0598
Fix prettier
2019-10-03 15:28:06 +08:00
fabioberger
3832c66ad0
Exclude unready packages from install step as well
2019-10-03 15:08:05 +08:00
fabioberger
57028069c0
Don't run test-publish for contract-coordinator and contracts-extensions since they're not ready yet
2019-10-03 14:32:55 +08:00
fabioberger
8d84ac9cf8
increase maxBuffer on exec call
2019-10-03 14:07:06 +08:00
fabioberger
17219d22c3
Add mocha types to deps
2019-10-03 13:10:04 +08:00
fabioberger
bf4005b0ee
Move mocha to a dependency since it's is actually a dep not a devDep in this case
2019-10-03 11:58:17 +08:00
fabioberger
d8605ed91d
Remove ambient Mocha declaration
2019-10-03 11:42:19 +08:00
fabioberger
f18e2a09e6
Change publish script so that we don't generate MD docs unless it's an actual publish
2019-10-03 10:59:31 +08:00
fabioberger
d5c0f5aa47
Move chai extension types out of @0x/typescript-typings
2019-10-03 10:37:09 +08:00
fabioberger
2825a201cd
Add missing exports to 0x.js
2019-10-02 21:35:47 +08:00
fabioberger
2d69afec86
Increase timeout on publish test
2019-10-02 21:32:18 +08:00
fabioberger
851e4bfbea
Fix prettier
2019-10-02 20:57:57 +08:00
fabioberger
c63745c2ce
Fix deps
2019-10-02 20:57:52 +08:00
fabioberger
95f11f2d0e
Fix changelog version for staking package
2019-10-02 20:52:25 +08:00
fabioberger
30417fbf24
Increase doc gen timeout
2019-10-02 20:51:41 +08:00
fabioberger
06f095ca23
Move types part of pkg exported interfaces to @0x/types from base-contract so more easily accessible
2019-10-02 19:06:54 +08:00
fabioberger
30141ca6cf
Fix md gen for contract-wrappers so also includes re-exported dep content
2019-10-02 18:42:41 +08:00
fabioberger
c4b69efdd1
Update package index.ts exports so that we are able to generate docs
2019-10-02 18:16:10 +08:00
fabioberger
d810aff337
Add latest solc version paths
2019-10-02 17:14:07 +08:00
fabioberger
83532fdae7
Fix Solc bin path so it's _outside_ lib dir and persists across rebuilds
2019-10-02 17:13:54 +08:00
fabioberger
043534dd56
Add back publish and doc gen tests to CI
2019-10-02 14:29:13 +08:00
fabioberger
a90c808fb4
Remove Geth testing from CI
2019-10-02 14:28:27 +08:00
Fabio B
a06c39df9f
Merge pull request #2231 from 0xProject/fix/remove-fill-scenarios
...
Remove fill-scenarios package
2019-10-02 08:23:03 +02:00
xianny
24c3aefb6f
remove fill-scenarios
2019-10-02 14:03:50 +08:00
Jacob Evans
9544d317a0
Merge pull request #2234 from 0xProject/v3-rc0-packages
...
V3 rc0 packages
2019-10-01 22:42:08 -07:00
Amir Bandeali
650efb95e2
Add more contract configs tests
2019-10-01 22:18:09 -07:00
Jacob Evans
506d27816e
Update Ropsten devUtils and Forwarder
2019-10-01 22:14:01 -07:00
Jacob Evans
f5a0c87fdc
Update Exchange, Forwarder, DevUtils
2019-10-01 22:14:01 -07:00
Jacob Evans
90541f0436
Updated Forwarder
2019-10-01 22:14:01 -07:00
Amir Bandeali
76cac53692
Merge pull request #2235 from 0xProject/fix/3.0/deployment-tests
...
Fix deployment and configuration tests
2019-10-01 22:08:25 -07:00
Fabio B
18366bd58d
Merge pull request #2232 from 0xProject/refactor/3.0-wrappers
...
Reduce exports from 0x.js
2019-10-02 06:45:02 +02:00
Amir Bandeali
27c039d51c
Fix deployment and configuration tests
2019-10-01 21:44:43 -07:00
Fabio B
8465be2a03
Merge pull request #2226 from 0xProject/feature/publishPrep
...
Final RC publish prep
2019-10-02 05:02:53 +02:00
Amir Bandeali
7d6f49172d
Merge pull request #2223 from 0xProject/feat/3.0/do-not-authorize-owner
...
Do not authorize owner by default
2019-10-01 19:54:46 -07:00
Lawrence Forman
d15f4de4ae
@0x/contracts-asset-proxy: Inline _grantAllowances() in Eth2DaiBridge.
2019-10-01 19:46:14 -07:00
Lawrence Forman
4098238019
@0x/contracts-asset-proxy: Set allowance every time.
2019-10-01 19:46:14 -07:00
Lawrence Forman
1356237ec9
@0x/contracts-asset-proxy: Rebase and use IERC20Bridge
2019-10-01 19:46:14 -07:00
Lawrence Forman
35daecd5ae
@0x/contracts-asset-proxy: Rebase and use @0x/types.AssetProxyId.
2019-10-01 19:46:14 -07:00
Lawrence Forman
bb87c8e7b5
@0x/contracts-asset-proxy: Switch Eth2DaiBridge to support arbitrary tokens.
...
`@0x/contracts-asset-proxy`: Support non-conformant tokens in Eth2DaiBridge
2019-10-01 19:46:14 -07:00
Lawrence Forman
48f7a24505
@0x/contracts-asset-proxy: Rebase and update tests for new proxy selector.
2019-10-01 19:46:14 -07:00
Lawrence Forman
98c59091ab
@0x/contracts-asset-proxy: Add comments and update naming convention in IEth2Dai.
2019-10-01 19:46:14 -07:00
Lawrence Forman
4ca08adcfa
@0x/contracts-asset-proxy: Rebase and add extra comments.
2019-10-01 19:46:14 -07:00
Lawrence Forman
29bcc1b5b7
@0x/contracts-asset-proxy: omg these insidious only modifiers.
2019-10-01 19:46:14 -07:00
Lawrence Forman
6e4186adbe
@0x/contracts-asset-proxy: Add some more unit tests for Eth2DaiBridge.
2019-10-01 19:46:14 -07:00
Lawrence Forman
38e540ad9f
@0x/contracts-asset-proxy: Remove only modifier on tests.
2019-10-01 19:46:14 -07:00
Lawrence Forman
7762b7b665
@0x/contracts-asset-proxy: Add signature validation.
2019-10-01 19:46:14 -07:00
Lawrence Forman
82ac8e29e3
@0x/contracts-asset-proxy: Add Eth2DaiBridge and tests.
2019-10-01 19:46:14 -07:00
fabioberger
e074335285
Null out all contracts not re-deployed or updated to V3
2019-10-02 09:15:50 +08:00
xianny
3adbe843da
update contract-addresses version
2019-10-01 17:51:25 -07:00
mzhu25
d5c8c076dc
Merge pull request #2216 from 0xProject/feature/3.0/forwarder-protocol-fees
...
Forwarder protocol fees
2019-10-01 17:45:02 -07:00
xianny
1d68c4105a
redo changes from #2147
2019-10-01 17:17:40 -07:00
Michael Zhu
8077123e9f
update contracts and tests to support different maker assets
2019-10-01 16:19:47 -07:00
Michael Zhu
3948f8b66b
Replace nonReentrant + refundFinalBalance with refundFinalBalanceNoReentry
2019-10-01 15:39:50 -07:00
Michael Zhu
0ff8b12770
rmeove maker asset equality check; update to reflect removal of weth asset proxy
2019-10-01 13:08:17 -07:00
fabioberger
39a8c0f4e6
Update the Ganache snapshot addresses with latest v3 snapshot
2019-10-01 18:43:56 +08:00
fabioberger
8c5e12d389
Update or add CHANGELOG entries for all packages that will be published by Lerna to include a beta version. This dictates the version published to NPM and avoids any default patch bumps
2019-10-01 17:56:57 +08:00
fabioberger
71660850af
Add new addresses to contract-addresses given the latest deployment
2019-10-01 17:11:54 +08:00
fabioberger
b83043648e
Also exclude coordinator and extension contract packages when running build
2019-10-01 16:58:05 +08:00
Michael Zhu
b01de802cb
address styling nits; only calculate protocol fee once
2019-09-30 21:51:34 -07:00
Michael Zhu
e954e9ca20
update tests
2019-09-30 21:51:34 -07:00
Michael Zhu
3f8639bd9c
Update MixinExchangeWrapper to handle protocol fees
2019-09-30 21:51:34 -07:00
Amir Bandeali
ffcd297e5b
Rename old exchange address to exchangeV2
2019-09-30 21:03:27 -07:00
Fabio B
56c956df44
Merge pull request #2225 from 0xProject/feature/addDistTagToPublish
...
Feature/add dist tag to publish
2019-10-01 05:41:19 +02:00
James Towle
c4b621e44d
Merge pull request #2215 from 0xProject/feature/staking/end-to-end/deployment-test
...
End-to-end Deployment Test
2019-09-30 19:42:41 -07:00
Amir Bandeali
cfb099c65c
Fix linting errors
2019-09-30 19:00:17 -07:00
Amir Bandeali
ba5c702a9e
Update CHANGELOGs
2019-09-30 19:00:17 -07:00
Amir Bandeali
9d4010299a
Cleanup migration scripts
2019-09-30 19:00:17 -07:00
Amir Bandeali
b5492bb023
Add ZrxVault testnet addresses to deployment constants
2019-09-30 19:00:17 -07:00
Amir Bandeali
76724a6c73
Implement initial 3.0 migrations script
2019-09-30 19:00:17 -07:00
Amir Bandeali
57ec0858fe
Fix migrations build
2019-09-30 19:00:17 -07:00
Amir Bandeali
b281b9aac8
Update 3.0 testnet addresses
2019-09-30 19:00:17 -07:00
Amir Bandeali
f4453c0966
Regenerate abi-gen-wrappers
2019-09-30 18:57:17 -07:00
Amir Bandeali
ebd328db06
Add getSelector helper function to Typescript templates
2019-09-30 18:57:17 -07:00
fabioberger
9a658bf932
Change tag to protocolV3 to disambiguate with a specific version of a package
2019-10-01 09:04:20 +08:00
Francesco Agosti
d6d506d1c5
Merge pull request #2219 from 0xProject/feature/sra-v3
...
Upgrade @0x/json-schemas, @0x/types, @0x/connect, @sra-spec to SRA V3
2019-09-30 18:00:29 -07:00
Lawrence Forman
2c8f7fac0e
Merge pull request #2220 from 0xProject/feat/erc20-bridge/hello-world
...
ERC20BridgeProxy
2019-09-30 20:52:36 -04:00
Alex Towle
072ff65bf9
@0x:contracts-staking Removed multisig as a dependency
2019-09-30 17:46:57 -07:00
Amir Bandeali
aa198ad15f
Add tests for adding/removing an exchange called by owner
2019-09-30 17:42:25 -07:00
Amir Bandeali
745da8e363
Fix tests
2019-09-30 17:36:37 -07:00
Amir Bandeali
be173a9970
Add sender as authorized address before calling init in test contracts
2019-09-30 17:36:37 -07:00
Amir Bandeali
8b2b500414
Remove authorization of owner in StakingProxy after init is called in constructor
2019-09-30 17:36:37 -07:00
Amir Bandeali
98d1f5405a
Do not authorize owner in ZrxVault constructor
2019-09-30 17:36:37 -07:00
fragosti
03595dd1dd
Run prettier
2019-09-30 17:28:41 -07:00
Lawrence Forman
6da48be1a4
@0x/contracts-asset-proxy: Merge ERC20Bridge into IERC20Bridge.
2019-09-30 17:28:36 -07:00
fragosti
9b91d574f8
Fix failing json-schema test
2019-09-30 17:27:01 -07:00
Alex Towle
6ca8edbf19
@0x:contracts-exchange Moved the deployment test to the exchange and addressed other review comments
2019-09-30 17:25:31 -07:00
Lawrence Forman
579dba1473
@0x/contracts-asset-proxy: Minor ERC20BridgeProxy test changes.
2019-09-30 17:06:31 -07:00
Amir Bandeali
1b5fa15c8c
Merge pull request #2222 from 0xProject/feat/3.0/remove-weth-asset-proxy
...
Remove wethAssetProxy and wethAssetData from staking contracts
2019-09-30 17:03:16 -07:00
Lawrence Forman
737ad586a5
@0x/types: Add ERC20Bridge to AssetProxyId
2019-09-30 16:12:01 -07:00
F. Eugene Aumson
c051e11a49
OrderValidationUtils: don't parse fee asset data when there are no fees specified ( #2218 )
...
* exhibit bug: empty fee asset data induces revert
* fix bug: don't parse fee asset data unless fee>0
* Update DevUtils Kovan contract address
2019-09-30 17:53:21 -04:00
Amir Bandeali
a5692690dc
Fix protocol fees tests
2019-09-30 09:37:57 -07:00
Amir Bandeali
98106ca8a2
Fix test conttracts
2019-09-30 09:37:53 -07:00
fabioberger
891d685951
Pass '3.0' tag when publishing so that publishes from 3.0 branch don't clobber the 2.1 packages installed with the default 'latest' tag
2019-09-30 22:17:44 +08:00
fabioberger
991cbc9f4e
Add ability to pass specific dist tag to npm publish command from publishing flow
2019-09-30 22:16:56 +08:00
Lawrence Forman
8006e4fe3b
@0x/contracts-asset-proxy: Change proxy ID and add proxy signature to IAssetData.
2019-09-29 21:53:42 -04:00
Amir Bandeali
f17c6b0a83
Remove unused IAssetProxy imports
2019-09-29 15:45:27 -07:00
Amir Bandeali
57ca601be1
Remove wethAssetProxy and wethAssetData from staking contract
2019-09-29 15:45:08 -07:00
Lawrence Forman
b50e26dc2a
@0x/contracts-asset-proxy: Rename IERC20Bridge.transfer() -> IERC20Bridge.withdrawTo().
...
`@0x/contracts-asset-proxy`: Make `bridgeData` last parameter in `IERC20Bridge.withdrawTo()`.
`@0x/contracts-asset-proxy`: Reuse `PROXY_ID` as `BRIDGE_SUCCESS`.
2019-09-29 17:10:38 -04:00
Lawrence Forman
b728d13d8c
@0x/contracts-asset-proxy: Remove only tests modifier.
2019-09-27 23:54:32 -04:00
Lawrence Forman
1959d149f8
@0x/contracts-asset-proxy: Fix incorrect comments in ERC20BridgeProxy tests.
2019-09-27 19:49:23 -04:00
Lawrence Forman
3e2e05caf2
Update changelogs
2019-09-27 19:47:14 -04:00
Lawrence Forman
d6a4d67a14
@0x/contracts-asset-proxy: Add ERC20BridgeProxy and tests.
2019-09-27 19:33:33 -04:00
Lawrence Forman
cf8d424b9b
@0x/contracts-test-utils: Add number_utils.ts and hexSize().
2019-09-27 19:32:55 -04:00
Lawrence Forman
a9f1237208
ethereum-types: Add DecodedLogs type (again?).
2019-09-27 19:32:05 -04:00
fragosti
319b4dfd75
Remove unused imports
2019-09-27 16:00:41 -07:00
fragosti
d39fcd3475
Upgrade sra-spec
2019-09-27 15:49:57 -07:00
fragosti
c7b7f57ab2
Update request types
2019-09-27 15:25:43 -07:00
fragosti
a36a5366d3
Update connect tests
2019-09-27 15:25:18 -07:00
fragosti
87615025fe
Remove Client type
2019-09-27 15:00:35 -07:00
fragosti
5b0fc813c4
Update json-schemas
2019-09-27 15:00:24 -07:00
Francesco Agosti
d21f978def
Merge pull request #2212 from 0xProject/refactor/no-domain-in-order
...
Remove domain from Order and remove OrderWithoutDomain type
2019-09-27 14:04:18 -07:00
fragosti
a9ecf7f1f3
Fix order schema typo
2019-09-27 13:30:30 -07:00
mzhu25
f5ad65bb8a
Merge pull request #2217 from 0xProject/feature/contracts-staking/mixin-stake-storage-unit-tests
...
MixinStakeStorage unit tests
2019-09-27 13:20:42 -07:00
fragosti
88dcf6350d
Fix exchange-libs test
2019-09-27 13:20:09 -07:00
Michael Zhu
6cfc17de35
MixinStakeStorage unit tests
2019-09-27 13:01:20 -07:00
fragosti
a2d105593e
Add to orderTypedData comment
2019-09-27 12:49:01 -07:00
fragosti
efd5eff22c
Fix tests
2019-09-27 12:46:20 -07:00
Alex Towle
9282684d93
@0x:contracts-staking Added a full end-to-end test of a deployment of the exchange and staking system
2019-09-26 18:10:52 -07:00
James Towle
c9e03f7d42
Merge pull request #2211 from 0xProject/feature/staking/exchange-manager-units
...
`@0x:contracts-staking` Added unit tests for MixinExchangeManager
2019-09-26 15:53:40 -07:00
Xianny
690b31c9be
update artifacts and wrappers with pre-audit contracts ( #2213 )
...
* update artifacts and wrappers with pre-audit contracts
* increase bundlesize
2019-09-26 09:35:24 -07:00
Xianny
cb20f03a92
Use hardcoded deployedBytecode for local EVM execution ( #2198 )
...
* hardcode deployedBytecode in contracts
* log warning if bytecode is empty or invalid
* be typesafe
2019-09-26 08:38:29 -07:00
David Sun
97eabc6c03
Merge pull request #2157 from 0xProject/feature/orderbook-removing-smart-routing-logic
...
Refactored asset-swapper smart logic and renamed options
2019-09-26 09:18:05 -04:00
fragosti
f0e0f08e0c
Run linter and prettier
2019-09-25 18:44:19 -07:00
fragosti
470643ee07
Fix tests
2019-09-25 18:44:19 -07:00
fragosti
8ba38b9b29
Remove the OrderWithoutDomain type
2019-09-25 18:44:19 -07:00
fragosti
9870f55d24
Remove domain from Order type
2019-09-25 18:44:19 -07:00
Xianny
23b724dde4
Merge pull request #2209 from 0xProject/fix/all-tests
...
Enable tests on 3.0
2019-09-25 18:32:43 -07:00
Alex Towle
3fa922dbab
@0x:contracts-staking Wrote a basic deployment test
2019-09-25 18:09:50 -07:00
Alex Towle
aa7f082d56
@0x:contracts-staking Addressed review comments
2019-09-25 16:48:34 -07:00
Alex Towle
b178d025b5
@0x:contracts-staking Added unit tests for MixinExchangeManager
2019-09-25 15:32:02 -07:00
David Sun
e333ab18c7
removed smart quote consumer in favor of utils
2019-09-25 18:30:21 -04:00
David Sun
b60db6ac72
removed smart logic and renamed options
2019-09-25 18:30:21 -04:00
Lawrence Forman
96c8da9fdd
Merge pull request #2207 from 0xProject/fix/3.0/improve-readability
...
Improve readability, fix `_trySetCumulativeReward` logic
2019-09-25 17:14:06 -04:00
Greg Hysz
fca883a4aa
Merge pull request #2208 from 0xProject/cleanup/staking/spec
...
Updated README to point to new specification
2019-09-25 14:01:51 -07:00
David Sun
e60d43110d
Merge pull request #2159 from 0xProject/feature/asset-swapper-smarter-fee-logic
...
Feature asset-swapper smarter fee logic
2019-09-25 16:45:41 -04:00
Greg Hysen
b9b135cfa2
Finished removing outdated contract comments
2019-09-25 13:41:27 -07:00
Lawrence Forman
f925c35344
@0x/contracts-staking: Always do _withdrawAndSyncDelegatorRewards() before staking operations and always add a CR (if unset) in _withdrawSyncDelegatorRewards()`.
2019-09-25 16:34:06 -04:00
Greg Hysen
ca2e9bed27
Updated README to point to new specification, plus removed images we no longer need.
2019-09-25 12:48:12 -07:00
Lawrence Forman
5b77e2c8ac
@0x/contracts-staking: Fix stake accounting.
2019-09-25 15:29:22 -04:00
Amir Bandeali
9e3331d018
Fix ordering of function calls, remove optimization in _forceSetCumulativeReward
2019-09-25 11:31:30 -07:00
Amir Bandeali
4440075425
Inline _forceSetMostRecentCumulativeRewardEpoch
2019-09-25 11:03:26 -07:00
xianny
626948774b
add comment
2019-09-25 11:01:30 -07:00
Amir Bandeali
25cb1c1138
Remove epoch param that is always equivalent to currentEpoch
2019-09-25 10:58:16 -07:00
xianny
4a173deb27
Merge branch '3.0' into fix/all-tests
2019-09-25 10:51:22 -07:00
xianny
245c87f026
re-enable test-rest
2019-09-25 10:48:55 -07:00
Amir Bandeali
22a6de48ae
Remove arguments that are unnecessarily passed around
2019-09-25 10:43:14 -07:00
Xianny
a347c1e848
Remove unnecessary function binding ( #2202 )
...
* remove unnecessary function binding
* reenable tests
2019-09-25 09:49:47 -07:00
mzhu25
e4ab832ced
Merge pull request #2205 from 0xProject/feature/contracts-staking/rip-mixin-vault-core
...
Consolidate MixinVaultCore and ZrxVault + unit tests
2019-09-24 23:23:32 -07:00
Amir Bandeali
d07005dcbe
Change increment -> increase and decrement -> decrease
2019-09-24 23:04:37 -07:00
Michael Zhu
dc06497cae
consolidate MixinVaultCore and ZrxVault
2019-09-24 23:04:17 -07:00
Amir Bandeali
c1871b5bca
Fix xumulative reward tests
2019-09-24 23:01:44 -07:00
Amir Bandeali
410b9c50d3
Flatten _withdrawAndSyncDelegatorRewards function, fix bug where cumulative rewards are always reset
2019-09-24 23:01:31 -07:00
James Towle
1c42d0ab3c
Merge pull request #2206 from 0xProject/fix/3.0/cleanup-inheritance-again
...
Cleanup inheritance... again
2019-09-24 19:13:54 -07:00
Amir Bandeali
98698f702f
Remove redundant inheritance and imports
2019-09-24 18:47:27 -07:00
Amir Bandeali
4784131dca
Merge pull request #2203 from 0xProject/feat/3.0/consolidate-rich-reverts
...
Cleanup rich reverts
2019-09-24 18:32:41 -07:00
James Towle
6eb28b792a
Merge pull request #2204 from 0xProject/feature/staking/move-storage-layout-assertions
...
Feature/staking/move storage layout assertions
2019-09-24 18:32:12 -07:00
Amir Bandeali
57f5b12e24
Cleanup rich reverts
2019-09-24 18:13:37 -07:00
Amir Bandeali
e5aaf68277
Use uin8 instead of uint256 for status
2019-09-24 18:13:37 -07:00
Alex Towle
b62486923f
@0x:contracts-staking Removed storage assertions from Staking and moved them to a test contract
2019-09-24 18:12:00 -07:00
Amir Bandeali
322a0a5967
Merge pull request #2201 from 0xProject/fix/3.0/rename-owner
...
Rename shadowed instances of `owner` to `staker`
2019-09-24 17:46:38 -07:00
Amir Bandeali
f30c2c4a23
Make setZrxProxy callable by authorized address rather than only owner
2019-09-24 17:27:53 -07:00
xianny
44e5fa5b25
improve readability of async error tests
2019-09-24 16:53:59 -07:00
Amir Bandeali
18a86ef234
Replace all shadowed instances of 'owner' with 'staker'
2019-09-24 16:52:09 -07:00
Alex Towle
a6af3744e2
@0x:contracts-staking Improved the test coverage of MixinStakingPool
2019-09-24 16:49:34 -07:00
Amir Bandeali
9b40164787
Merge pull request #2195 from 0xProject/feat/3.0/deployment-constants
...
Make wethAssetProxy and zrxVault deployment constants
2019-09-24 16:46:21 -07:00
xianny
52e8cf1366
really fix async error tests
2019-09-24 16:45:24 -07:00
Amir Bandeali
1b159f5ccc
Make deployment constant getters public
2019-09-24 16:43:08 -07:00
xianny
893ae35296
exclude lib files from tsc build
2019-09-24 16:24:44 -07:00
Amir Bandeali
85e56706bf
Remove wethAssetProxy and zrxVault from storage layout assertions
2019-09-24 16:19:53 -07:00
Amir Bandeali
b8b21cefe3
Make deployment constants private and use string reverts for constructor assertions
2019-09-24 16:19:53 -07:00
Amir Bandeali
6d7bf12ade
Make wethAssetProxy and zrxVault deployment constants
2019-09-24 16:19:53 -07:00
Xianny
5266816dd6
Quick fix to abi-gen test ( #2197 )
2019-09-24 16:11:17 -07:00
Amir Bandeali
0c5f0271c7
Merge pull request #2190 from 0xProject/feat/3.0/consolidate-pool-mixins
...
Consolidate staking pool mixins
2019-09-24 14:00:28 -07:00
Greg Hysz
b65fd06e95
Merge pull request #2188 from 0xProject/feature/staking/remove-ref-counting
...
Remove reference counting for cumulative rewards
2019-09-24 14:00:17 -07:00
Amir Bandeali
7f51822bfc
Fix storage layout assertions
2019-09-24 13:38:48 -07:00
Amir Bandeali
1acd8d9577
Make _poolJoinedByMakerAddress internal
2019-09-24 13:36:54 -07:00
Amir Bandeali
8aa302f6fc
Update OnlyCallableByPoolOperatorOrMakerError params and address PR feedback
2019-09-24 13:36:54 -07:00
Amir Bandeali
f8af5879af
Remove _getStakingPoolOperator internal getter function
2019-09-24 13:36:54 -07:00
Amir Bandeali
a7aa7feff4
Remove getAvailableRewardsBalance public function, make wethReservedForPoolRewards public
2019-09-24 13:36:54 -07:00
Amir Bandeali
b6a96cea23
Address PR comments
2019-09-24 13:36:54 -07:00
Amir Bandeali
50b02a4a55
Add more pool tests
2019-09-24 13:36:54 -07:00
Amir Bandeali
8a2b178e6f
Remove isMakerAssignedToStakingPool to reduce sloads
2019-09-24 13:36:54 -07:00
Amir Bandeali
7f1afb57b0
Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers
2019-09-24 13:36:54 -07:00
Amir Bandeali
0bc4b50818
Add codesize tests
2019-09-24 13:36:54 -07:00
Greg Hysen
91de2194eb
Removed reference counting from storage layout test
2019-09-24 13:35:41 -07:00
Greg Hysen
fef06908ec
Removed instances fo a frivilous currentEpoch parameter
2019-09-24 13:32:20 -07:00
Greg Hysen
a012eb0cae
Updated changelog and ran prettier
2019-09-24 13:32:20 -07:00
Greg Hysen
08c805a489
Removed explicit dependency for delegator on the next epoch after staking.
2019-09-24 13:32:20 -07:00
Greg Hysen
5b595dd080
Remove reference counting for cumulative rewards
2019-09-24 13:32:20 -07:00
James Towle
c29a22187c
Merge pull request #2199 from 0xProject/feature/staking/storage-layout-assertion
...
Feature/staking/storage layout assertion
2019-09-24 13:30:56 -07:00
Jacob Evans
44f6d21e9b
Merge pull request #2196 from 0xProject/quick-fixes
...
Quick fixes
2019-09-24 21:48:58 +02:00
Alex Towle
ef04248191
@0x:contracts-staking Addressed review comments
2019-09-24 10:58:51 -07:00
Jacob Evans
1b47c473b4
Quick fixes
...
* Fixed the webpack publish for asset swapper to be in line with 0x.js
* Modified the migration snapshot name to not clobber v2 until we're
ready to overwrite
* Added filler transactions to keep contract addresses stable whilst
asset proxy is disabled
* Non-private package publish for orderbook
2019-09-24 15:48:35 +02:00
Amir Bandeali
fe1fea9a2d
Merge pull request #2172 from 0xProject/fix/3.0/exchange/eip712domain
...
Fix eip712 domain
2019-09-23 21:07:59 -07:00
Alex Towle
970f77beb0
@0x:contracts-staking Added storage layout assertions to the staking contract
2019-09-23 18:26:51 -07:00
Amir Bandeali
2587cd380f
Merge pull request #2186 from 0xProject/feat/3.0/delete-vaults
...
Delete `StakingPoolRewardVault` and `EthVault`
2019-09-23 18:05:53 -07:00
Amir Bandeali
04eab19f15
Fix lingering cases of verifyingContractAddress
2019-09-23 17:56:42 -07:00
Amir Bandeali
abb2b46ed3
Remove vaults from variable names and comments
2019-09-23 17:37:04 -07:00
Alex Towle
db241e8f90
@0x:contracts-staking Modified Staking events to improve their usability
2019-09-23 17:32:52 -07:00
Amir Bandeali
5bbd57d236
Delete unused rich reverts
2019-09-23 17:28:03 -07:00
Amir Bandeali
e9f0f4af86
Rename functions and variables for clarity
2019-09-23 16:38:22 -07:00
Amir Bandeali
ae75aed55e
Change verifyingContractAddress -> verifyingContract everywhere
2019-09-23 16:00:37 -07:00
Amir Bandeali
b359738037
Update EIP712 domain separator schema
2019-09-23 15:59:30 -07:00
Amir Bandeali
5ce988957f
Fix tests
2019-09-23 15:55:28 -07:00
Xianny
2d77fce99d
Re-enable all TypeScript Packages on 3.0 ( #2181 )
...
* update with WIP artifacts and wrappers
* Update order-utils to get build:contracts working
* get asset-buyer and asset-swapper building with 3.0
* get testnet-faucets building on 3.0
* re-enable build for most packages
2019-09-23 15:52:51 -07:00
Amir Bandeali
62663ed6d2
Fix rewards tests
2019-09-23 15:34:12 -07:00
Amir Bandeali
3965d8f8c6
Separate wrapping ETH and querying available WETH balance
2019-09-23 15:34:12 -07:00
Amir Bandeali
fd35249de8
Track WETH reserved for rewards
2019-09-23 15:34:12 -07:00
Amir Bandeali
156560ae22
Rename overloaded function
2019-09-23 15:34:12 -07:00
Amir Bandeali
ee687a7dc4
Fix delegator reward unit tests
2019-09-23 15:34:12 -07:00
Amir Bandeali
1710f13242
Fix incorrect return value in _syncPoolRewards
2019-09-23 15:33:10 -07:00
Amir Bandeali
ef645e601c
Fix all tests except for reward tests (skipped)
2019-09-23 15:30:55 -07:00
Amir Bandeali
7de23c6af2
Rename variables and functions
2019-09-23 15:30:55 -07:00
Amir Bandeali
639026ea66
Delete vaults and fix contract build
2019-09-23 15:29:36 -07:00
Lawrence Forman
8ddcf88c01
Merge pull request #2155 from 0xProject/feat/staking/hurts-like-a-mbf
...
Mutli-Block Finalization
2019-09-23 17:51:22 -04:00
Lawrence Forman
3883297991
@0x/contracts-staking: Remove getTotalBalance() function.
...
`@0x/contracts-staking`: Fix linter errors.
2019-09-23 14:21:18 -04:00
Lawrence Forman
196cc4313f
@0x/contract-staking: Make solidity uniformly hideous ;-).
2019-09-23 13:15:51 -04:00
Lawrence Forman
9dd8c61a2f
@0x/contract-staking: Address review nits.
...
`@0x/contracts-utils`: Use `safeDiv()` in `LibFractions.normalize()`.
2019-09-23 11:55:02 -04:00
Lawrence Forman
6d20f0e987
@0x/contracts-staking: Update compiler version in truffle config.
2019-09-22 13:20:47 -04:00
Lawrence Forman
eac4520406
@0x/contracts-staking: Rebase against 3.0
2019-09-22 13:11:42 -04:00
Lawrence Forman
e4126189df
@0x/order-utils: Fix staking error codes after rebase.
2019-09-22 13:09:44 -04:00
Lawrence Forman
aa4ee2c166
@0x/dev-utils: Increase gas limit to 9e6
2019-09-22 13:08:59 -04:00
Lawrence Forman
c72a15b488
@0x/contracts-staking: All tests back up and running.
2019-09-22 12:20:42 -04:00
Lawrence Forman
6a29654d7d
@0x/contracts-staking: Updating tests and making the contracts testable.
2019-09-22 12:20:04 -04:00
Lawrence Forman
3ad7728a0e
@0x/contracts-staking: Remove IStructs.CumulativeRewardInfo, etc.
...
`@0x/contracts-staking`: Convert all rewards to WETH.
`@0x/contracts-staking`: Style changes.
`@0x/contracts-staking`: Address misc. review comments.
`@0x/contracts-staking`: Make `LibFractions` scaling a separate step.
2019-09-22 12:17:05 -04:00
Lawrence Forman
14c4491b8c
@0x/contracts-staking: Add some extra finalizer tests and light refactorings.
...
`@0x/contracts-staking`: Add finalization-related protocol fees unit tests.
2019-09-22 12:13:24 -04:00
Lawrence Forman
2eff213840
@0x/contracts-staking: Import randomAddress() instead of defining our own.
2019-09-22 12:13:24 -04:00
Lawrence Forman
2bb9b9a8f7
@0x/contracts-test-utils: Ran prettier.
2019-09-22 12:13:24 -04:00
Lawrence Forman
d064543108
@0x/contracts-staking: Add some computeRewardBalanceOfOperator() tests.
2019-09-22 12:13:24 -04:00
Lawrence Forman
0270777cfc
@0x/contracts-test-utils: Add hexHash() to hex_utils.
2019-09-22 12:13:24 -04:00
Lawrence Forman
86106713dd
@0x/contracts-staking: Gag! All tests passing?
2019-09-22 12:13:24 -04:00
Lawrence Forman
d5bbbe802b
@0x/base-contract: Fix linter errors.
2019-09-22 12:13:24 -04:00
Lawrence Forman
b43fa88606
@0x/contracts-staking: All tests but rewards_test working.
2019-09-22 12:13:24 -04:00
Lawrence Forman
54ac1c284b
@0x/base-contract: Properly encode BigNumber indexed filter values in getTopicsForIndexedArgs().
2019-09-22 12:13:24 -04:00
Lawrence Forman
d33080cf08
@0x/contracts-staking: Finalizer tests passing.
2019-09-22 12:11:47 -04:00
Lawrence Forman
b4b6d4d969
@0x/contracts-test-utils: Add shortZip().
2019-09-22 12:11:47 -04:00
Lawrence Forman
993f05d5ac
@0x/contracts-staking: Fixing tests.
2019-09-22 12:11:47 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
7fb5ed0b42
@0x/contracts-staking: Add another test case to delegator rewards tests.
...
`@0x/contracts-staking`: Rename `delegator_reward_balance_test.ts` -> `delegator_reward_test.ts`.
`@0x/contracts-staking`: Last call before rebasing against 3.0.
2019-09-22 12:11:06 -04:00
Lawrence Forman
52b0ba5b05
@0x/contracts-staking: Fix linter errors.
2019-09-22 12:11:06 -04:00
Lawrence Forman
a43b494302
@0x/contracts-staking: All tests passing!
2019-09-22 12:11:06 -04:00
Lawrence Forman
527ec28915
@0x/contracts-utils: Add auto-scaling and zero-value optimizations to LibFractions.
2019-09-22 12:10:41 -04:00
Lawrence Forman
e267a0e855
@0x/contracts-staking: Transition to V3
2019-09-22 12:10:41 -04:00
Lawrence Forman
0196ce18f3
@0x/contracts-staking: Last call before embarking of V3 of staking integration.
2019-09-22 12:10:41 -04:00
Lawrence Forman
7ef3c12722
@0x/contracts-staking: Well, it almost worked.
2019-09-22 12:10:41 -04:00
Lawrence Forman
38b94ec5f8
@0x/order-utils: Add InvalidMinimumPoolStake to StakingRevertErrors.InvalidParamValueErrorCode.
2019-09-22 12:08:14 -04:00
Lawrence Forman
fa65452e2b
@0x/contracts-staking: OK, two more finalizer tests.
2019-09-22 12:07:46 -04:00
Lawrence Forman
da0f6b5e8f
@0x/contracts-test-utils: Finish off finalizer tests... for now.
2019-09-22 12:07:46 -04:00
Lawrence Forman
b4929df1e6
@0x/order-utils: Ran prettier.
2019-09-22 12:07:46 -04:00
Lawrence Forman
03c59fdaf7
@0x/contracts-staking: More MixinFinalizer unit tests.
2019-09-22 12:07:46 -04:00
Lawrence Forman
f5ab1e6f86
@0x/contracts-staking: Reduce code duplication in MixinFinalizer and add unit tests for it.
2019-09-22 12:07:46 -04:00
Lawrence Forman
ada1de429c
@0x/order-utils: Add PreviousEpochNotFinalizedError to StakingRevertErrors.
2019-09-22 12:07:46 -04:00
Lawrence Forman
a1aad2e55e
@0x/contracts-exchange: Fixing tests and writing new ones.
2019-09-22 12:07:46 -04:00
Lawrence Forman
d548ddac0d
@0x/contracts-staking: Fixing tests.
2019-09-22 12:07:46 -04:00
Lawrence Forman
58a5ab4550
@0x/contracts-test-utils: Allow hexSlice() to take negative numbers, and a range.
2019-09-22 12:07:11 -04:00
Lawrence Forman
6a8242a6ca
@0x/contracts-staking: Fix past epoch reward accounting.
2019-09-22 12:07:11 -04:00
Lawrence Forman
46b8bfe338
@0x/contracts-staking: It compiles! (again)
2019-09-22 12:07:11 -04:00
Lawrence Forman
102ca6b854
@0x/contracts-staking: Almost compiling...
2019-09-22 12:07:11 -04:00
Lawrence Forman
06b4d241af
@0x/contracts-staking: Working on MBF v2
2019-09-22 12:07:11 -04:00
Lawrence Forman
712b2569e6
@0x/contracts-staking: Fix solidity linter errors.
2019-09-22 12:06:34 -04:00
Lawrence Forman
294be37afc
@0x/contracts-staking: Got the solidity compiling.
2019-09-22 12:06:34 -04:00
Lawrence Forman
b57c0a2ebb
@0x/contracts-staking: Fully implement MBF (I hope).
2019-09-22 12:05:33 -04:00
Lawrence Forman
94909f1a0f
@0x/contracts-staking: Add another delegator payout test.
2019-09-22 12:05:33 -04:00
Lawrence Forman
9c47d22ff4
@0x/contracts-staking: Add some tests to check rewards in the EthVault to _rewards_test.
2019-09-22 12:05:33 -04:00
Lawrence Forman
e4b9d14f45
@0x/contracts-staking: Tinkering with crediting rewards.
2019-09-22 12:05:33 -04:00
Lawrence Forman
73f1aca4a1
@0x/contracts-staking: More work on MixinFinalizer.
2019-09-22 12:05:33 -04:00
Lawrence Forman
bbae6b3de2
@0x/contracts-staking: Starting MBF.
2019-09-22 12:05:33 -04:00
David Sun
e5133a2dd9
prettier
2019-09-21 22:21:55 -04:00
David Sun
ef0096b7d9
added tests
2019-09-21 22:20:11 -04:00
Amir Bandeali
29f4d6918a
Merge pull request #2178 from 0xProject/feat/3.0/upgradability-controls
...
Upgradability controls
2019-09-20 17:47:36 -07:00
Amir Bandeali
45c7653850
Initialize Authorizable instead of Ownable in constructors, fix tests that use onlyOwner modifier
2019-09-20 17:16:35 -07:00
Amir Bandeali
8bdd1d7680
Fix linting errors
2019-09-20 16:55:30 -07:00
Amir Bandeali
a1ed7183ea
Fix tests
2019-09-20 16:55:30 -07:00
Amir Bandeali
7b81af2cb4
Change onlyOwner -> onlyAuthorized everywhere
2019-09-20 16:55:30 -07:00
Amir Bandeali
a70a3c9600
Fix SenderNotAuthorizedError class
2019-09-20 16:55:30 -07:00
Amir Bandeali
a14ddbfac2
Make enterCatastrophicFailure callable by any authorized address
2019-09-20 16:55:30 -07:00
Amir Bandeali
e1c57cf0af
Refactor Authorizable to use internal methods
2019-09-20 16:55:30 -07:00
Amir Bandeali
522994262d
Update tests
2019-09-20 16:55:30 -07:00
Amir Bandeali
f681357eeb
Add missing error codes to InvalidParamValueErrorCode
2019-09-20 16:53:58 -07:00
Amir Bandeali
f9b593da59
Lower length of an epoch to 10 days
2019-09-20 16:53:58 -07:00
Amir Bandeali
a340c817c9
Guarantee that makers can't be added to pools when max amount decreases
2019-09-20 16:53:58 -07:00
Amir Bandeali
cc67f732e1
Move storage assertions into StakingProxy
2019-09-20 16:53:58 -07:00
mzhu25
e2ee7e6837
Merge pull request #2164 from 0xProject/feature/contracts-staking/mixin-vault-core-unit-tests
...
MixinVaultCore unit tests
2019-09-20 16:35:33 -07:00
Michael Zhu
49d223f344
MixinVaultCore unit tests
2019-09-20 16:02:54 -07:00
Lawrence Forman
314d1b9873
Merge pull request #2179 from 0xProject/feat/staking/LibCobbDouglas
...
Extract `MixinExchangeFees._cobbDouglas()` into LibCobbDouglas
2019-09-20 18:29:40 -04:00
mzhu25
2a391bf947
Merge pull request #2151 from 0xProject/feature/contracts-staking/maintain-global-stake
...
Maintain global stake
2019-09-20 15:07:05 -07:00
Lawrence Forman
7a33f68138
@0x/contracts-staking: Extract MixinExchangeFees._cobbDouglas() into its own library.
2019-09-20 15:56:26 -04:00
David Sun
48d0b46e43
added utils for fee detection
2019-09-20 15:36:52 -04:00
David Sun
5fe9edce8c
Merge pull request #2175 from 0xProject/steveklebanoff-patch-1
...
Change asset-swapper URL in package.json
2019-09-19 23:29:53 -04:00
Steve Klebanoff
1c038e1f3c
Change asset-swapper URL in package.json
2019-09-19 23:29:08 -04:00
Xianny
a57dd427ca
Merge development into 3.0 ( #2170 )
...
* Added longer timeout for algolia admin operations. Added an option to apply hidden and custom labels to filters from algolia. Added sorting guides (alphabetically) and tools (by community maintenance and alphabetically).
* Fixed some types in guides
* Updated webpack, webpack-dev-server, webpack-bundle-analyzer, webpack-cli versions
* Updated / cleaned up babel and mdx packages
* Updated terser webpack plugin; Removed uglify plugin (unused). Added parallel option for terser. Added target browsers and cache directory option for babel-loader
* Webpack changes: using eval-source-map for development, added parallel option to Terser plugin, added cache loader and caching directory to mdx / babel loaders.
* Removed unusued pkg: body-scroll-lock
* Removed unused jsonschema / @types/jsonschema packages
* Removed unused less node package, adjusted less loader rules to match other loaders in webpack config
* Removed unusued node-sass package. Left sass-loader for webpack intact.
* Removed unused package react-lazyload
* Removed unused package react-typist
* Removed react-tap-event types as it's not used anymore. Reinstalled node-sass as a dev dependency as it's needed by sass-loader
* Moves @0x/types and @0x/typescript-typings to devDependencies
* Replaced react loadable (only used in Icon) with the native react lazy / suspense. Removed loadable nad its types from package.json
* Removed unused make-promises-safe package
* Moved animations to public and compressed files
* Added opening step links in new tab if the url is valid
* Moved @0x/types back to dependencies.
* Added animation wrapper with positioning props. Updated animations for core concepts.
* Replaced images for core concepts. Fixed a bug causing duplicate props on image and its container in mdx
* Remove legacy FAQ
* Update yarn.lock
* Add MD docs diff test to CI
* Remove unused dep
* Update docs to latest format
* Update yarn.lock
* Update ts-doc-gen with fix for multi-link lines
* Final docs gen
* Fix home route
* Update yarn.lock
* Add Golang Mesh RPC package and update versions
* Update the tools MDX files from authoritative S3 before build and dev server start
* Gitignore the tool MDX files in website repo
* Redirect old docs pages and wiki to new doc pages
* Move out Algolia indexing command-line tool out of website and remove need to expose admin key
* Add updating tools from S3 and indexing content on Algolia to deployment commands
* Add note about admin API env var needed for indexing docs
* Remove scripts gitignore since we don't have monorepo scripts in each package anymore
* Segregate indexes by environment
* Fixed 404 display for docs pages
* Removed webpack bundle analyzer
* Fix search and indexing
* Use `yarn` because otherwise the flags don't get passed down properly
* Improve indexing comment
* Remove legacy doc pages
* Fix linter errors
* Fix clean command to remove bundles recursively
* Revert react and react-dom versions in Instant
* Remove old doc md files
* Fix links
* Fix prettier
* Combine @0x/utils exports
* Update doc links
* Remove unused components
* Fix TS error
* Add missing new line
* Update Guides
* Ignore auto-generated MDX in website repo
* Prettier fix
* Add all guides to the sitemap.txt
* Add MMing guide
* Fix Get Started links
* Add 0x Extensions guide
* Replace all links to wiki with links to guides section
* Fix all /docs/{pkg} links to /docs/tools/{pkg}
* Remove deployer endpoint that is no longer used
* Fix links in Core Concepts
* Fixed regex to not remove hashes on links beyond the initial one
* Fixed huge width on instant screenshot
* Cleaned up core concept illustrations
* Started updating tool titles
* Fixed sectionizing headings in docs: Nested sections do not get wrapped in parent sections anymore; only sectionizing headings that need to be sectionized (i.e. that appear in the table of contents)
* Stylstic fix for the new way we sectionize headings / table of contents
* Change CoordinatorWrapper constructor to take a provider
* Added autolinking headings in mdx docs
* Refactor doc generation script to only generate MD docs and to have them reflect what is exported in their respective index.ts files
* Update ts-doc-gen
* Pass in provider, not Web3Wrapper
* Add back logic to prune out private methods
* Write algolia_metadata to utils dir
* Remove duplicate algolia_meta
* Add more packages to those we generate docs for and remove unused flags
* Update reference.mdx files
* Hide tools from homepage that have isHidden flag
* Link 0x.js to it's reference page
* Update tool naming to be more human readable
* Remove order-watcher reference doc
* Add blurb about on-chain API Explorer
* Add "On-chain" prefix to section name
* Remove committed reference file
* Sorting guides by difficulty and alphabetically
* Pushed sorting guides titles case-insensitive
* Sorting tools by difficulty and alphabetically. Removed icons from featured tools. Extracted common difficultyOrder constant
* Update ts-doc-gen so that it properly converts module relative links to anchor links
* Update doc references
* Remove "Relayers" topic/tag
* Prettier fix
* Remove hr so we don't have a bunch in a row
* Cleaned up CLI tag and added link to tools on API page
* Cleaned up some Guide titles
* Added bug bounty program guide
* Fixed a bug in algolia_meta
* Thrid level of nesting / temporary webpack config
* Open help link in new tab
* Link Python tools to doc pages not PyPi
* Fix links in guides
* Remove unused variables
* Revert webpack config
* Extracted common styles for levels of nesting deeper than 1 in the mdx table of contents
* Smoother animation on active table of contents state change
* Autolink headings in mdx only up to h3. Added heading sizes (in px) for h4,h5,h6 in mdx headings
* Fix prettier
* Adjusted font-size for paragraph, ordered and unordered lists. Fixed line-heights and colors too.
* Update ts-doc-gen and the reference docs
* Replace 0xproject.com urls with 0x.org
* Update README links
* Fix header sizes to display optimally in sidebar
* Fixed an issue with other nodes than text being parsed incorrectly in the table of contents
* Fixed styles for table of contents
* Use a different babel plugin that works in a production webpack build
* Unbroke build process / generating toc
* Changed line-height to 1.6 for paragraph
* Adjust scrollbar / toc height to available space
* Fixed some types
* Remove unnecessary link
* Fix casing on TypeScript
* Fix casing of PyPI
* Remove doc gen from abi-gen-wrappers since it'll be tested via contract-wrappers
* Fix MD docs and make sure generated contract wrappers are being rendered
* Remove generated docs in clean
* Correctly copying code samples
* Several additional fixes to the reference MDX docs
* Changed tools to Tools & Libraries - top nav left as just tools
* Changed references from Asset Buyer to Asset Swapper
* Changed trader keyword to trading
* Nevermind, changed back to Trader
* Sneaking in updated product dropdown menu titles based on Will's feedback
* Removed the word wiki from resources dropdown
* Open legal guide in same window
* Removed the isCommunity filter / custom filter labels functionality (only used for that before)
* Update ts-doc-gen version to one that fixes issues with Object Literals and removes Hierarchy sections and Module headers
* update yarn.lock
* Remove unused code
* Remove unused import
* Remove unused imports
* Remove unused import
* Fix prettier
* Update outdating dep version
* Created a color scheme for code snippets. Fixed language not being passed to some code blocks in two guides.
* Update abi-gen-wrappers dep version
* Update Algolia to production account
* Fix prettier
* Fix prettier in algolia_meta
* Remove packages/dev-tools-pages folder and update yarn.lock
* Remove other random references to dev-tools-pages
* Fix website
* Changed the order of indices in search suggestions
* Removed a comment
* Added scrollbar size adjustment on resize / scroll
* Rendering sidebar on mobile without any event listeners / taxing calculations / changes in height
* Added a performance comment
* Simplified table of contents
* Update ganache-cli to later version
* Remove bundle dirs too
* Added keeping active link in view when scrolling content in the docs
* Increase available memory for webpack
* Update contract addresses
* Update market-making guide to mention Mesh as an alternative to SRA
* Update Web3 Provider Explained guide
* Re-wrote Ganache Setup guide into a Setting up a local 0x testnet guide
* Export more of abi-gen-wrappers from contract-wrappers
* Final update of reference docs
* Add contract-wrappers MD docs and update it's index.ts so that no types are missing
* Fix prettier
* Increase the memory allocation for building the website
* Remove use of remove type
* Check if link is a valid url in mdx inline link: if so, open in a new tab, if not, same tab.
* Print out which snapshot version is being downloaded
* Updated CHANGELOGS & MD docs
* Publish
- @0x/contracts-asset-proxy@2.2.7
- @0x/contracts-coordinator@2.0.12
- @0x/contracts-dev-utils@0.0.9
- @0x/contracts-erc1155@1.1.14
- @0x/contracts-erc20@2.2.13
- @0x/contracts-erc721@2.1.14
- @0x/contracts-exchange-forwarder@3.0.11
- @0x/contracts-exchange-libs@3.0.7
- @0x/contracts-exchange@2.1.13
- @0x/contracts-extensions@4.0.7
- @0x/contracts-multisig@3.1.13
- @0x/contracts-test-utils@3.1.15
- @0x/contracts-utils@3.2.3
- 0x.js@7.0.1
- @0x/abi-gen-wrappers@5.3.1
- @0x/abi-gen@4.2.0
- @0x/assert@2.1.5
- @0x/asset-buyer@6.1.13
- @0x/asset-swapper@1.0.3
- @0x/base-contract@5.3.3
- @0x/connect@5.0.18
- @0x/contract-artifacts@2.2.1
- @0x/contract-wrappers@12.0.0
- @0x/contracts-gen@1.0.14
- @0x/dev-tools-pages@0.0.30
- @0x/dev-utils@2.3.2
- ethereum-types@2.1.5
- @0x/fill-scenarios@3.0.18
- @0x/instant@1.0.30
- @0x/json-schemas@4.0.1
- @0x/migrations@4.3.1
- @0x/monorepo-scripts@1.0.36
- @0x/order-utils@8.3.1
- @0x/sol-compiler@3.1.14
- @0x/sol-coverage@3.0.11
- @0x/sol-doc@2.0.18
- @0x/sol-profiler@3.1.13
- @0x/sol-resolver@2.0.10
- @0x/sol-trace@2.0.19
- @0x/sol-tracing-utils@6.0.18
- @0x/sra-spec@2.0.16
- @0x/subproviders@5.0.3
- @0x/testnet-faucets@1.0.86
- @0x/types@2.4.2
- @0x/typescript-typings@4.2.5
- @0x/utils@4.5.1
- @0x/web3-wrapper@6.0.12
- @0x/website@0.0.89
* Remove the website from the monorepo
* Update yarn.lock
* Remove website files that were accidentally merged back in
* Use local EVM for pure functions (#2108 )
* add local evm for pure functions
* increase container size to >=8gb for static-tests
* increase max bundle size because of ethereumjs-vm dependency
* add declarations for ethereumjs-vm in @0x/typescript-typings
* Make `OrdersChannelSubscriptionOpts` conform to SRAv2
* Make it easier to use validateOrderFillableOrThrowAsync (#2096 )
* make it easier to use validateOrderFillableOrThrowAsync
* add unit tests, use DevUtils
* remove dependency on @0x/order-utils from @0x/migrations
* add devUtils to contract-wrappers (#2146 )
* Delete docs in S3 bucket before uploading latest version so we only ever have one version uploaded at a time
* Update to new ts-doc-gen version that fixes links in "Inherited from" lines
* try to fix instant build
* Remove redoc-cli as a dep from sra-spec
* Smooth out some last incompatible types
* Fix prettier
* Add terser-webpack-plugin to 0x.js deps
* @0x/orderbook
* AssetSwapper to use @0x/orderbook
* Remove unused imported type
* Prevent double websocket connections
* Fix build error
* fixed consumer inconsistency bug
* linted + added convenience functionality
* minor changes/typo fixes
* updated websocket
* updated for prettier
* Fix versions and exported types
* move log tests to @0x/abi-gen; delete exchange_wrapper_test (#2160 )
* Remove unused exported types
* Fix exports from asset-swapper
* Update exported types for docs
* Update mesh client dep
* Move perPage and 18 precision lower to re-use
* fix ABI encoding/decoding functions (#2165 )
* Fix typo at contract import (#2102 )
* Updated CHANGELOGS & MD docs
* Publish
- @0x/contracts-asset-proxy@2.2.8
- @0x/contracts-coordinator@2.0.13
- @0x/contracts-dev-utils@0.0.10
- @0x/contracts-erc1155@1.1.15
- @0x/contracts-erc20@2.2.14
- @0x/contracts-erc721@2.1.15
- @0x/contracts-exchange-forwarder@3.0.12
- @0x/contracts-exchange-libs@3.0.8
- @0x/contracts-exchange@2.1.14
- @0x/contracts-extensions@4.0.8
- @0x/contracts-multisig@3.1.14
- @0x/contracts-test-utils@3.1.16
- @0x/contracts-utils@3.2.4
- 0x.js@7.0.2
- @0x/abi-gen-wrappers@5.3.2
- @0x/abi-gen@4.2.1
- @0x/assert@2.1.6
- @0x/asset-buyer@6.1.14
- @0x/asset-swapper@2.0.0
- @0x/base-contract@5.4.0
- @0x/connect@5.0.19
- @0x/contract-addresses@3.2.0
- @0x/contract-artifacts@2.2.2
- @0x/contract-wrappers@12.1.0
- @0x/contracts-gen@1.0.15
- @0x/dev-utils@2.3.3
- ethereum-types@2.1.6
- @0x/fill-scenarios@3.0.19
- @0x/instant@1.0.31
- @0x/json-schemas@4.0.2
- @0x/migrations@4.3.2
- @0x/monorepo-scripts@1.0.37
- @0x/order-utils@8.4.0
- @0x/orderbook@0.0.2
- @0x/sol-compiler@3.1.15
- @0x/sol-coverage@3.0.12
- @0x/sol-doc@2.0.19
- @0x/sol-profiler@3.1.14
- @0x/sol-resolver@2.0.11
- @0x/sol-trace@2.0.20
- @0x/sol-tracing-utils@6.0.19
- @0x/sra-spec@2.0.17
- @0x/subproviders@5.0.4
- @0x/testnet-faucets@1.0.87
- @0x/types@2.4.3
- @0x/typescript-typings@4.3.0
- @0x/utils@4.5.2
- @0x/web3-wrapper@6.0.13
* fix circleci diff
* update changelog
2019-09-19 19:43:08 -07:00
Amir Bandeali
2253f214a6
Merge pull request #2138 from 0xProject/feat/3.0/update-apowner
...
Update AssetProxyOwner
2019-09-19 14:52:19 -07:00
Amir Bandeali
ad11dc2421
Remove unnecessary sload
2019-09-19 13:41:02 -07:00
Amir Bandeali
bd3b200b30
Add extra tests
2019-09-19 13:41:02 -07:00
Amir Bandeali
0d259d13b9
Fix base multisig style
2019-09-19 13:40:57 -07:00
Amir Bandeali
6fd55b2f49
Add more tests
2019-09-19 13:37:59 -07:00
Amir Bandeali
057aee8ad2
Fix linting errors
2019-09-19 13:37:59 -07:00
Amir Bandeali
f47feabb4a
Update AssetProxyOwner tests
2019-09-19 13:37:59 -07:00
Amir Bandeali
eb784a4a7c
Update test contracts
2019-09-19 13:37:59 -07:00
Amir Bandeali
5d30c957cb
Update AssetProxyOwner to allow batch transactions and custom timelocks
2019-09-19 13:37:59 -07:00
Amir Bandeali
585adef75d
Add revert reasons to bbase MultiSigWallet
2019-09-19 13:37:59 -07:00
Amir Bandeali
2f07fcc81c
Upgrade Base MultiSigs to Solidity 0.5.9
2019-09-19 13:37:59 -07:00
F. Eugene Aumson
1d55d12c8f
Deployed DevUtils address, & artifact used ( #2176 )
2019-09-19 07:00:37 -04:00
F. Eugene Aumson
bca8c5eccc
DevUtils.sol: Upgrade for v3 ( #2161 )
...
* Exhibit bug in getSimulatedOrderTransferResults
* Fix getSimulatedOrderTransferResults
* dev-utils/package.json: add quantify_bytecode cmd
* Fix typo in log message
* Reduce compiler optimization runs
In order to reduce the EVM bytecode object length of the DevUtils
contract to be under the EIP-170 limit of 24 KB.
2019-09-18 19:36:06 -04:00
Michael Zhu
f7462c9f2b
keep track of globalStakeByStatus + tests
2019-09-18 10:09:45 -07:00
Greg Hysz
549697dc47
Merge pull request #2156 from 0xProject/feature/staking/syncingRewards
...
Sync Rewards + Refactored Reward Vault
2019-09-17 21:02:28 -07:00
Greg Hysen
2869dd3bac
Removed unnecessary sloads in MixinStakingPoolMakers
2019-09-17 20:32:49 -07:00
Greg Hysen
5a225795e1
Updated changelog and ran linter
2019-09-17 17:51:16 -07:00
Greg Hysen
877abeda63
Removed MixinStakingPoolRewards
2019-09-17 17:37:24 -07:00
Greg Hysen
768387fea9
Rebased and addressed PR comments
2019-09-17 17:37:12 -07:00
Greg Hysen
db97fe8164
updated changelog
2019-09-17 17:36:47 -07:00
Greg Hysen
be1a70c461
refactored the staking vault
2019-09-17 17:36:46 -07:00
Amir Bandeali
b631fc610b
Merge pull request #2169 from 0xProject/fix/3.0/fix-breaking-tests
...
Fix breaking tests, remove MixinZrxVault
2019-09-17 16:16:38 -07:00
Amir Bandeali
9b2672841d
Fix build and tests
2019-09-17 15:51:46 -07:00
Amir Bandeali
336e8bafb4
Remove MixinZrxVault
2019-09-17 15:51:41 -07:00
Amir Bandeali
2ea354f748
Merge pull request #2166 from 0xProject/feat/3.0/staking-upgradability
...
Staking params upgradability
2019-09-17 14:20:25 -07:00
Amir Bandeali
2d125cdc20
Fix typos and remove redundant cached variables
2019-09-17 13:50:18 -07:00
Amir Bandeali
0d441a829f
Add missing checks to attachStakingContract tests
2019-09-17 13:01:56 -07:00
Amir Bandeali
ee5cb6909c
Merge pull request #2158 from 0xProject/feat/3.0/cleanup-staking-contracts
...
Change state var visibilities, delete redundant code
2019-09-17 12:57:51 -07:00
mzhu25
5258053dc8
Merge pull request #2152 from 0xProject/feature/contracts-staking/ensure-delegate-pool-exists
...
Ensure pool exists before (un)delegating
2019-09-17 11:29:51 -07:00
Amir Bandeali
bb46f184ed
Remove use of generatePseudoRandomAddress in favor of randomAddress
2019-09-17 10:46:58 -07:00
Michael Zhu
7cc1304eca
Revert when attempting to delegate to/undelegate from a pool that doesn't exist
2019-09-17 10:29:57 -07:00
Amir Bandeali
94738444de
Fix build an tests
2019-09-17 09:41:27 -07:00
Amir Bandeali
4705b15188
Add addresses back as optional params to attachStakingContract
2019-09-17 08:48:14 -07:00
Amir Bandeali
de567da846
Fix typo across files
2019-09-17 08:48:14 -07:00
Amir Bandeali
6641af2a58
Fix build
2019-09-17 08:48:14 -07:00
Amir Bandeali
de9527ce2f
Do not initialize stakingProxy in vault constructors
2019-09-17 08:48:14 -07:00
Amir Bandeali
16ebdfad9a
Remove redundant setters and require statements
2019-09-17 08:47:19 -07:00
Amir Bandeali
b70db37b4f
Set wethAssetProxy, ethVault, rewardVault, and zrxVault using init pattern
2019-09-17 08:47:19 -07:00
Amir Bandeali
3843c64c40
Update visibility, events, and naming in vaults
2019-09-17 08:45:56 -07:00
Amir Bandeali
1d1dd4b6a2
Do not shadow _ethVault
2019-09-16 22:50:47 -07:00
Amir Bandeali
d3a9ace5fd
Fix linting errors
2019-09-16 22:50:47 -07:00
Amir Bandeali
778c57320c
Update function visibilities
2019-09-16 22:50:47 -07:00
Amir Bandeali
f98f3660f9
Add back balanceOf getters in vaults, remove public variable getters from inherited interfaces
2019-09-16 22:50:47 -07:00
Amir Bandeali
fd4141e1f3
Fix build
2019-09-16 22:50:11 -07:00
Amir Bandeali
97c107be3e
Fix unused stack variable and add missing devdoc comment
2019-09-16 22:50:11 -07:00
Amir Bandeali
2eada9db62
Add IStorage interface
2019-09-16 22:49:25 -07:00
Amir Bandeali
e9362439c3
Make some storage vars public and rename internal vars
2019-09-16 22:48:32 -07:00
Amir Bandeali
a2419ab31d
Fix getTotalProtocolFeesThisEpoch by adding weth balance
2019-09-16 22:34:55 -07:00
Amir Bandeali
e589f10e23
Cleanup imports
2019-09-16 22:34:55 -07:00
Greg Hysz
5d84d40a2c
Merge pull request #2154 from 0xProject/feature/staking/refCountRewards
...
Reference counting for rewards, plus unit tests for cumulative rewards tracking
2019-09-16 19:20:55 -07:00
Greg Hysen
43d1d0b217
more explicit sanity checks for computing balance in interval (previously all failed with div-by-zero)
...
typos
2019-09-16 18:57:21 -07:00
James Towle
0f802d5a1b
Merge pull request #2153 from 0xProject/feature/staking/batch-execute
...
Implement Batch Execute Transaction
2019-09-16 17:20:33 -07:00
Alex Towle
56efde6e34
@0x:contracts-staking Addressed final review comment
2019-09-16 16:59:50 -07:00
Greg Hysen
e224e6cde5
updated changelog
2019-09-16 16:03:40 -07:00
Greg Hysen
e1d51bae73
Tests are passing and ran linter
2019-09-16 16:02:50 -07:00
Greg Hysen
f9163ccc01
Improved readability of API for cumulative rewards
2019-09-16 15:18:08 -07:00
Alex Towle
6353bf545d
@0x:contracts-staking Addressed lingering review comments
2019-09-16 10:33:39 -07:00
Greg Hysen
12f0797ace
Reference counting for rewards, plus unit tests for cumulative rewards.
2019-09-14 00:04:52 -07:00
mzhu25
c9de423fb8
LibSafeDowncast unit tests ( #2143 )
2019-09-13 16:09:46 -07:00
Alex Towle
2cd0990c65
@0x:contracts-staking Addressed review feedback by removing simplyProxyCallWithData
2019-09-13 15:41:31 -07:00
Alex Towle
6fd9308e1b
@0x:contract-staking Added integration tests for
2019-09-12 18:17:00 -07:00
Alex Towle
1fc57baac1
@0x:contracts-staking Added tests for simpleProxyCallWithData()
2019-09-12 17:38:39 -07:00
Alex Towle
2ed63970d4
@0x:contracts-staking Add a batchExecute function to the staking contracts
2019-09-12 17:12:14 -07:00
James Towle
7ba6c601e5
Merge pull request #2142 from 0xProject/test/staking/lib-proxy
...
Test/staking/lib proxy
2019-09-12 13:50:32 -07:00
Alex Towle
cc43c5b28c
@0x:contracts-staking Cleaned up combinatorial tests
2019-09-12 12:30:25 -07:00
Alex Towle
b7f25ee3b6
@0x:contracts-staking Addressed review comments
2019-09-11 17:16:33 -07:00
Alex Towle
82afdda256
@0x:contracts-staking Fixed compilation errors and ran prettier
2019-09-11 17:16:33 -07:00
Alex Towle
be83789bee
@0x:contracts-staking Added unit tests for LibProxy
2019-09-11 17:15:47 -07:00
Alex Towle
036c8fe920
@0x:contracts-staking Fixed style issues in staking RichErrors
2019-09-11 17:11:04 -07:00
Lawrence Forman
b7b125f623
Merge pull request #2131 from 0xProject/feature/staking/hyper-init
...
Staking: Hyper-Parameters, init() Pattern, Dust Stake
2019-09-10 21:57:04 -04:00
Lawrence Forman
060edf33bd
@0x/contracts-staking: Fix compilation error in MixinParams.
2019-09-10 16:30:50 -04:00
Lawrence Forman
656120cd1f
@0x/contracts-staking: Rename InvalidParamValue RevertError to InvalidParamValueError.
2019-09-10 15:32:40 -04:00
Lawrence Forman
34acd71835
@0x/order-utils: Rename InvalidParamValue RevertError to InvalidParamValueError.
2019-09-10 15:31:19 -04:00
Lawrence Forman
7eb4bebac3
@0x/contracts-staking: Fix typos.
2019-09-10 00:58:33 -04:00
Lawrence Forman
f45ee486e9
@0x/contracts-staking: Rebase against 3.0 AGAIN AGAIN AGAIN AGAIN AGAIN
2019-09-10 00:45:20 -04:00
Lawrence Forman
3b28c9d5a7
@0x/order-utils: Rename OperatorShareMustBeBetween0And100 to OperatorShareTooLarge.
2019-09-10 00:39:45 -04:00
Lawrence Forman
2ed39cd18d
@0x/contracts-staking: Rename Tuned event to ParamsChanged.
...
`@0x/contracts-staking`: Merge `exchange_fees` unit tests into `protocol_fees` unit tests.
`@0x/contracts-staking`: Remove `ProtocolFeeActor` and any use of it.
`@0x/contracts-staking`: Remove unused constants.
`@0x/contracts-staking`: Move WETH assertion constructor into `MixinDeploymentConstants`.
`@0x/contracts-staking`: Add more unit tests.
2019-09-10 00:32:43 -04:00
Lawrence Forman
d8d791e4f0
@0x/order-utils: Remove redundant InvalidStakeStatusError in registry.
2019-09-10 00:32:43 -04:00
Lawrence Forman
89bd42de04
@0x/contracts-staking: Fix linter errors.
2019-09-10 00:32:43 -04:00
Lawrence Forman
51b460d432
@0x/contracts-staking: Rebase against 3.0
2019-09-10 00:32:43 -04:00
Lawrence Forman
6410366f8b
@0x/contracts-staking: Fix contracts formatting.
...
`@0x/contracts-staking`: Remove typo test suite in `migration.ts`.
`@0x/contracts-staking`: Address minor review comments.
2019-09-10 00:32:43 -04:00
Lawrence Forman
1c2f4906e6
@0x/contracts-exchange: Remove signature-related IStructs structs.
...
`@0x/contracts-exchange`: Create some `payProtocolFee()` unit tests to test new staking minimum.
2019-09-10 00:32:30 -04:00
Lawrence Forman
bed90fa8ec
@0x/contracts-staking: Update changelog.
2019-09-10 00:31:51 -04:00
Lawrence Forman
25787ea806
@0x/contracts-staking: Rename MixinHyperParameters -> MixinParams.
...
`@0x/contracts-staking`: Move params storage variables into `MixinStorage`.
`@0x/contracts-staking`: Add storage layout tests for new state vars.
`@0x/contracts-staking`: Add more migration tests.
`@0x/contracts-staking`: Add `_initMixinParams()` function that sets up `MixinParams` state.
2019-09-10 00:31:50 -04:00
Lawrence Forman
2a21d87193
@0x-order-utils: Rename InvalidTuningValue -> InvalidParamValue.
2019-09-10 00:31:24 -04:00
Lawrence Forman
7cee17887a
@0x/order-utils: Add MxinParamsAlreadyInitialized to StakingRevertErrors.InitializationErrorCode.
2019-09-10 00:31:24 -04:00
Lawrence Forman
0cc94bcf19
@0x/contracts-staking: Add maximumMakersInPool hyper parameter.
...
`@0x/contracts-staking`: Add assertions against `maximumMakersInPool` and `rewardDelegatedStakeWeight`.
`@0x/contracts-staking`: Rebase against 3.0 (again).
2019-09-10 00:31:24 -04:00
Lawrence Forman
a554ae904f
@0x/order-utils: Add InvalidRewardDelegatedStakeWeight and InvalidMaximumMakersInPool to InvalidTuningValueErrorCode.
2019-09-10 00:31:24 -04:00
Lawrence Forman
9dcda6113d
@0x/contracts-staking: Rebase against 3.0.
2019-09-10 00:31:24 -04:00
Lawrence Forman
7d50117903
@0x/contract-staking: Refactor out contract attach logic so it's shared between the constructor and attachStakingContract().
...
`@0x/contract-staking`: Introduce migration tests to test the `init()` pattern.
2019-09-10 00:31:24 -04:00
Lawrence Forman
76c5517739
@0x/contract-staking: Update CHANGELOG.
...
`@0x/contract-staking`: Add `DEFAULT_HYPER_PARAMETERS` to test constants.
`@0x/contract-staking`: Appease linter gods.
`@0x/contract-staking`: Remove `setCobbDouglasAlpha()` tests.
`@0x/contract-staking`: Add `tune()` tests.
2019-09-10 00:31:24 -04:00
Lawrence Forman
b9d243e70e
@0x/order-utils: Add InitializationError, InvalidTuningValue to StakingRevertErrors.
2019-09-10 00:31:24 -04:00
Lawrence Forman
d37679c129
@0x/contracts-test-utils: Add Numberish type.
2019-09-10 00:30:43 -04:00
Lawrence Forman
d01cfee455
@0x/contracts-staking: Add getHyperParameters() to MixinHyperParameters.
2019-09-10 00:30:43 -04:00
Lawrence Forman
182d360302
@0x/contracts-storage: Move init() out of IStaking and into IStorageInit.
2019-09-10 00:30:43 -04:00
Lawrence Forman
0d9069ecfe
@0x/contracts-staking: Fix compilation issues.
...
`@0x/contracts-staking`: Check that `Staking.init()` succeded.
`@0x/contracts-staking`: Flip some functions from `view` to `pure`.
2019-09-10 00:30:43 -04:00
Lawrence Forman
6488f91e6e
@0x/contracts-staking: Replace MixinDeploymentConstants with MixinHyperParameters.
...
`@0x/contracts-staking`: Add `init()` to `Staking` contract.
`@0x/contracts-staking`: Add `_initMixinScheduler()` to `MixinScheduler`.
`@0x/contracts-staking`: Automaticallly call `Staking.init()` in `StakingProxy.attachStakingContract()`.
`@0x/contracts-staking`: Remove `setCobbDouglasAlpha()` in favor of `tune()`.
`@0x/contracts-staking`: Exclude pools with `stake < minimumPoolStake` in `payProtocolFee()`.
2019-09-10 00:30:43 -04:00
mzhu25
70db4d8847
Merge pull request #2113 from 0xProject/feature/contracts-staking/decrease-operator-share
...
Move pool operator logic to vault and allow operators to decrease operatorShare
2019-09-09 21:08:01 -07:00
Michael Zhu
faa0d83013
remove unnecessary pointer variable
2019-09-09 17:41:18 -07:00
Michael Zhu
6f1f226ed0
Use storage pointer to update Pool structs, test decreaseStakingPoolOperatorShare where newOperatorShare == oldOperatorShare
2019-09-09 17:11:00 -07:00
Michael Zhu
1d6406bbd6
move operator from staking logic to vault, allow operator to decrease operatorShare
2019-09-09 16:29:19 -07:00
mzhu25
91cee9c648
Merge pull request #2129 from 0xProject/features/contracts-staking/rip-staking-wrapper
...
Remove StakingWrapper
2019-09-09 16:28:35 -07:00
Michael Zhu
6d83b2676e
rip staking_wrapper.ts, use wrapped staking proxy pattern instead
2019-09-09 15:47:15 -07:00
James Towle
c21bce9641
Merge pull request #2130 from 0xProject/feature/staking/protocol-fees
...
Feature/staking/protocol fees
2019-09-09 15:13:33 -07:00
Alex Towle
1d5c175316
@0x:contracts-staking Fixed lingering review comments
2019-09-09 14:27:44 -07:00
Alex Towle
2fdd4e9760
@0x:contracts-staking Addressed some review comments
2019-09-09 10:25:19 -07:00
Amir Bandeali
abd479dc68
Merge pull request #2139 from 0xProject/feat/3.0/optimize-match-orders
...
Optimize batchMatchOrders, consolidate TransactionSignatureError rich revert
2019-09-08 21:18:02 -07:00
Amir Bandeali
67ef17f929
Consolidate TransactionSignatureError with SignatureError
2019-09-08 18:55:42 -07:00
Amir Bandeali
35bf179b70
Clear compiler warnings
2019-09-07 22:20:47 -07:00
Amir Bandeali
10c62c10aa
Use _getOrderHashAndFilledAmount instead of getOrderInfo to reduce sloads
2019-09-07 22:10:46 -07:00
Amir Bandeali
8317628c61
Create internal function that calculates orderHash and orderTakerAssetFilledAmount
2019-09-07 22:10:05 -07:00
Alex Towle
30fee43928
@0x:contracts-staking Added tests for protocol fees
2019-09-07 13:44:04 -07:00
Alex Towle
494dc475c1
@0x:contracts-staking Added WETH support to MixinExchangeFees
2019-09-07 13:41:27 -07:00
mzhu25
3a503c61b3
Merge pull request #2104 from 0xProject/feature/contracts-staking/maker-join-pool
...
Reimplement Makers joining Pools
2019-09-06 16:35:16 -07:00
Michael Zhu
86a28f0d19
New logic for makers joining pools
2019-09-06 16:09:35 -07:00
Greg Hysz
24af39d4a8
Merge pull request #2133 from 0xProject/feature/exchange-libs/boundaryCheckOnGetStructHash
...
Sanity check on order offset when hashing
2019-09-06 16:02:32 -07:00
Greg Hysz
97773e3f64
Merge pull request #2128 from 0xProject/feature/staking/ReadOnlyProxy
...
Read-Only mode in proxy
2019-09-06 15:46:17 -07:00
Greg Hysen
1dc1218bfc
Sanity check on order offset when hashing
2019-09-06 15:40:47 -07:00
Greg Hysen
b458026358
Readability improvements ... apparently I still cant spell catastrophe.
2019-09-06 15:09:16 -07:00
Amir Bandeali
b30a33eef5
Merge pull request #2132 from 0xProject/feat/3.0/flexible-market-fills
...
Remove restrictions on maker/takerAssetData for marketBuy/Sell functions
2019-09-06 15:05:37 -07:00
Amir Bandeali
0e96a1c8ba
Remove restrictions that maker/takerAssetData must be the same for each order in marketBuy/Sell functions
2019-09-06 14:34:16 -07:00
Greg Hysz
f477c0fcc2
Merge pull request #2118 from 0xProject/feature/staking/NewMechanicsSolidityOnly-Squashed
...
New staking mechanics
2019-09-06 14:12:40 -07:00
Greg Hysen
2ad6dd1ee8
appeased solhint
2019-09-05 14:34:36 -07:00
Greg Hysen
87cfe1a8c6
abstracted out delegate calls into their own library
2019-09-05 14:09:13 -07:00
Greg Hysen
d0c6d9cf2d
Read-Only mode in proxy
2019-09-05 14:07:02 -07:00
Greg Hysz
fc7f2e7fc6
Merge pull request #2126 from 0xProject/feature/staking/NewMechanicsSolidityOnly-Squashed-Tests-Squashed
...
Tests for new staking mechanics
2019-09-05 13:19:49 -07:00
Greg Hysen
49baafadc1
updated changelogs
2019-09-05 12:37:54 -07:00
Greg Hysen
24e62feadf
Fixed linter
2019-09-05 12:27:44 -07:00
Greg Hysen
67079d96af
Got build to work after rebase
2019-09-05 12:27:43 -07:00
Greg Hysen
5ac4c72f1a
current -> currentEpochBalance and next -> nextEpochBalance
2019-09-05 12:27:43 -07:00
Greg Hysen
deceed37f3
Stake State -> Status in tests
2019-09-05 12:27:43 -07:00
Greg Hysen
4bc84cd526
Rich reverts in tests plus readability
2019-09-05 12:27:43 -07:00
Greg Hysen
293c428186
Tests for new staking mechanics
2019-09-05 12:27:43 -07:00
Greg Hysen
d1b004ffc1
Some readability plus updated changelogs
2019-09-05 12:26:04 -07:00
Greg Hysen
da83f75a13
Readability Improvements
2019-09-05 11:54:16 -07:00
Greg Hysen
b5be162fa2
Removed frivolous imports to improve readability
2019-09-05 11:50:22 -07:00
Greg Hysen
7e5e2241cb
Rich Reverts in new staking mechanics
2019-09-05 11:50:22 -07:00
Greg Hysen
c0cb78bb3f
Improving readability of staking
2019-09-05 11:46:50 -07:00
Greg Hysen
eb6ad7d29d
New staking mechanics: delay on entry opposed to exit
2019-09-05 11:45:11 -07:00
Lawrence Forman
88e56356c4
Merge pull request #2109 from 0xProject/feature/3.0/staking/math-voodoo
...
Staking math upgrades
2019-09-05 13:05:25 -04:00
Lawrence Forman
356660ad4f
@0x/contracts-staking: Remove redundant "FixedMath" prefix from FixedMath revert errors.
2019-09-04 20:18:55 -04:00
Lawrence Forman
7c3567f5e7
@0x/utils: Remove redundant FixedMath prefix from FixedMath RevertError types.
2019-09-04 20:18:55 -04:00
Lawrence Forman
e9eb3badd9
@0x/contracts-staking: Keep fees not associated with a pool.
2019-09-04 20:18:55 -04:00
Lawrence Forman
9bbbaadcf8
@0x/conracts-staking: Fix idiotic linter error.
2019-09-04 20:18:55 -04:00
Lawrence Forman
19f44fac1e
@0x/contracts-staking: Reformulate cobb-douglas to be more efficient.
...
`@0x/contracts-staking`: Remove some unecessary asserts.
`@0x/contracts-staking`: Fix some broken test assertions.
`@0x/contracts-staking`: Generate better random values in tests.
`@0x/contracts-staking`: Rename `PPM_ONE` constant to `PPM_DENOMINATOR`.
`@0x/contracts-staking`: Minor solidity code improvements.
`@0x/contracts-staking`: Use more constants from `@0x/contracts-test-utils` in tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
0be2c250ef
Commit yarn.lock
2019-09-04 20:18:55 -04:00
Lawrence Forman
b07fc95c81
@0x/utils: Add docstring for raw constructor parameter in RevertError.
...
`@0x/utils`: Use `...is.instanceof()` pattern in `RevertError` tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
20ba23fe5f
@0x/contracts-test-utils: Allow negative values in toHex().
...
`@0x/contracts-test-utils`: Add `PPM_DENOMINATOR` and `PPM_100_PERCENT` constants.
2019-09-04 20:18:55 -04:00
Lawrence Forman
b78705120e
@0x/contracts-utils: Fix failing tests due to RevertError behavior changes.
2019-09-04 20:18:55 -04:00
Lawrence Forman
f601329a47
@0x/utils: Rename length field to len in AuthorizableRevertErrors.IndexOutOfBoundsError.
2019-09-04 20:18:55 -04:00
Lawrence Forman
2b3e7e7ab7
@0x/dev-utils: Remove no longer applicable test case in chai_test.ts.
2019-09-04 20:18:55 -04:00
Lawrence Forman
8d5e28f099
@0x/contracts-staking: Change the way operator stake is computed.
...
`@0x/contracts-staking`: Denominate pool operator shares in parts-per-million.
`@0x/contracts-staking`: Update tests for new stake computation and higher precision math.
`@0x/contracts-staking`: Add `setCobbDouglasAlpha()` function.
2019-09-04 20:18:55 -04:00
Lawrence Forman
cb1dc92594
@0x/order-utils: Rename OperatorShareMustBeBetween0And100Error RevertError type to InvalidPoolOperatorShareError.
2019-09-04 20:18:55 -04:00
Lawrence Forman
495bf08498
@0x/utils: Update CHANGELOG.
2019-09-04 20:18:55 -04:00
Lawrence Forman
a1a5bdce78
@0x/order-utils: Prettier.
2019-09-04 20:18:55 -04:00
Lawrence Forman
f724212fd7
@0x/utils: Prettier.
2019-09-04 20:18:55 -04:00
Lawrence Forman
5ccbe167a1
@0x/contracts-test-utils: Increase the number of ganache accounts to 20.
2019-09-04 20:18:55 -04:00
Lawrence Forman
2e357ffeab
@0x/dev-utils: Add total_accounts option to Web3Config.
2019-09-04 20:18:55 -04:00
Lawrence Forman
af10f52acf
@0x/contracts-staking: Rebase with 3.0
2019-09-04 20:18:55 -04:00
Lawrence Forman
ed8a6bb97b
@0x/contracts-staking: Emit CobbDouglasAlphaChanged event when calling setCobbDouglasAlpha().
2019-09-04 20:18:55 -04:00
Lawrence Forman
c774b98002
@0x/contracts-staking: Remove unused tslint directives.
2019-09-04 20:18:55 -04:00
Lawrence Forman
9a63bea763
@0x/contracts-staking: Update LibFixedMath ln() and exp() input domains and improve precision.
...
`@0x/contracts-staking`: Add `_invert()` and `_mulDiv()` to `LibFixedMath`.
`@0x/contracts-staking`: Update `MixinExchangeFees._cobbDouglas()` to work with `LibFixedMath`.
`@0x/contracts-staking`: Add unit and fuzz tests for `_cobbDouglas()` and remaining `LibFixedMath` functions.
2019-09-04 20:18:55 -04:00
Lawrence Forman
0c6a6743ab
@0x/contracts-staking: Write LibFixedMath unit tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
1c37334b18
@0x/contracts-staking: Add a bunch of LibFixedMath unit tests.
2019-09-04 20:18:55 -04:00
Lawrence Forman
7f40665a0e
@0x/utils: Fix order of BinOpErrorCodes enum in FixedMathRevertErrors.
2019-09-04 20:18:55 -04:00
Lawrence Forman
b10036444d
@0x/order-utils: Add TransactionInvalidContextError to the RevertError registry.
2019-09-04 20:18:55 -04:00
Lawrence Forman
0542c70d22
@0x/utils: Make decoding of unknown selectors to RawRevertError optional.
2019-09-04 20:16:44 -04:00
Lawrence Forman
f71484c9f0
@0x/order-utils: Add TransactionGasPriceError to error registry.
2019-09-04 20:16:44 -04:00
Lawrence Forman
2cf74a7a96
@0x/utils: Make RevertError.decode() return a RawRevertError if the selector is unknown.
2019-09-04 20:15:16 -04:00
Lawrence Forman
018bcf273f
@0x/utils: Fix FixedMathRevertError.FixedMathBinOpError type.
...
`@0x/utils`: Have Ganache `Error` -> `RevertError` coercion fail if it can't look up the selector.
2019-09-04 20:15:15 -04:00
Lawrence Forman
1a3da4b363
@0x/utils: Fix registering FixedMathSignedValueError twice.
2019-09-04 20:15:15 -04:00
Lawrence Forman
0999805b3a
@0x/contracts-test-utils: Add toHex(), hexInvert(), hexLeftPad(), and hexRightPad() hex utils.
2019-09-04 20:15:15 -04:00
Lawrence Forman
7b5e3dab17
@0x/contracts-staking: Add rich reverts.
...
`@0x/utils`: Add `LibFixedMath` `RevertError` types.
`@0x/order-utils`: Add `InvalidCobbDouglasAlphaerror` `RevertError` type.
2019-09-04 20:15:15 -04:00
Lawrence Forman
a09cd03ce6
@0x/contracts-staking: Remove LibFeeMath and just put _cobbDouglas() in MixinExchangeFees.
...
`@0x/contracts-staking`: Update `LibFixedMath` to existing naming conventions.
`@0x/contracts-staking`: Add `cobbDouglasAlphaNumerator` and `cobbDouglasAlphaDenominator` to `Mixinstorage`.
`@0x/contracts-staking`: Add external `setCobbDouglasAlpha()` function to `MixinExchnageFees`
`@0x/contracts-staking`: Update `_cobbDouglas()` to use the new `LibFixedMath` voodoo.
`@0x/contracts-staking`: In reward calculations, use only delegated stake by pool owner as opposed to both delegated and active stake to compute stake totals.
2019-09-04 20:15:15 -04:00
Lawrence Forman
c1fc454d19
@0x/contracts-staking: Add uintMul() function to LibFixedMath.
2019-09-04 20:15:15 -04:00
Lawrence Forman
93c8284a96
@0x/contracts-staking: Add LibFeeMath library.
2019-09-04 20:15:15 -04:00
Amir Bandeali
e5dcf9063d
Merge pull request #2127 from 0xProject/feat/3.0/catch-pay-protocol-fee-err
...
Wrap `payProtocolFee` with rich revert + reduce codesize
2019-09-04 13:51:19 -07:00
Amir Bandeali
cf35a8032d
Update contracts/exchange/contracts/src/MixinProtocolFees.sol
...
Update comment
Co-Authored-By: James Towle <jalextowle@gmail.com >
2019-09-04 11:34:17 -07:00
Amir Bandeali
88736aa82b
Merge pull request #2121 from 0xProject/feat/3.0/codesize
...
Reduce Exchange codesize
2019-09-03 21:08:50 -07:00
Amir Bandeali
90ac5ec577
Fix tests
2019-09-03 20:11:48 -07:00
Amir Bandeali
d1eb414749
Use new rich reverts where applicable
2019-09-03 20:11:47 -07:00
Amir Bandeali
f792d403e5
Add new rich revert errors
2019-09-03 20:11:47 -07:00
Amir Bandeali
e5706606a0
Create private functions for encoding orders/transactions with their hash to be passed into EIP1271 compliant contract
2019-09-03 20:11:43 -07:00
Amir Bandeali
49725c8c33
Styling and comment updates
2019-09-03 17:52:41 -07:00
Amir Bandeali
dfcc0c6d09
Create _enableAndRefundNonZeroBalance to slightly reduce codesize
2019-09-03 17:52:17 -07:00
Amir Bandeali
d806701d28
Use fromHex instead of doing length -> byte length calculation
2019-09-03 17:51:41 -07:00
Amir Bandeali
3935e661fe
Add more writeLength tests
2019-09-03 17:05:32 -07:00
Amir Bandeali
cb8cf1f107
Add back batchFillOrders
2019-09-03 11:06:45 -07:00
Amir Bandeali
ea8669439f
Minor styling and naming changes
2019-09-03 09:48:21 -07:00
Amir Bandeali
75a8b1c081
Use same taker numerator/denominator for all math in calculateFillResults
2019-09-03 09:48:16 -07:00
Amir Bandeali
73144fa4d5
Fix _setCurrentContextAddressIfRequired
2019-09-02 20:35:20 -07:00
Amir Bandeali
a6b60f3230
Create _readSignatureType with minimal validation
2019-09-02 20:34:23 -07:00
Amir Bandeali
48dfb3317a
Fix tests
2019-09-02 14:36:27 -07:00
Amir Bandeali
b3b0496c49
Fix build and linting errors
2019-09-02 11:41:13 -07:00
Amir Bandeali
e880447714
Refactor EIP1271Wallet and Validator types to use new EIP1271SignatureError
2019-09-02 11:38:52 -07:00
Amir Bandeali
fd4d10e7a4
Create EIP1271SignatureError rich revert
2019-09-02 11:37:39 -07:00
Amir Bandeali
9974e10069
Fix Buffer warning
2019-09-01 19:14:28 -07:00
Amir Bandeali
18b65a61ff
Fix build
2019-09-01 19:14:16 -07:00
Amir Bandeali
02a1e17f50
Reuse EIP1271 wallet code with internal function
2019-09-01 18:53:57 -07:00
Amir Bandeali
9a3a302754
Create writeLength function in LibBytes
2019-09-01 18:32:52 -07:00
Amir Bandeali
d131c39e46
Create _setCurrentContextAddressIfRequired function in MixinTransactions
2019-09-01 18:31:46 -07:00
Amir Bandeali
8231e7703e
Allow unlimited contract sizes by default
2019-09-01 18:30:33 -07:00
Amir Bandeali
406a78a11a
Use internal functions in Refundable modifiers
2019-09-01 17:43:18 -07:00
Amir Bandeali
fe01a150f0
Use internal function in onlyOwner, onlyAuthorized, and nonReentrant modifiers
2019-09-01 15:54:16 -07:00
Amir Bandeali
dd499591e9
Make assetProxies mapping internal (getter function already exists)
2019-09-01 15:13:57 -07:00
Amir Bandeali
c0f1e5f17f
Make fillOrderNoThrow internal only, remove batchFillOrders
2019-09-01 12:22:00 -07:00
Amir Bandeali
b888e48a30
Remove getOrdersInfo
2019-09-01 11:24:16 -07:00
Amir Bandeali
8410ee9d2f
Remove unnecessary public functions
2019-09-01 11:01:01 -07:00
Amir Bandeali
b7238c702b
Increase optimizer runs
2019-09-01 11:00:07 -07:00
Amir Bandeali
a5996b37b2
Merge pull request #2116 from 0xProject/feat/3.0/eip1271-selectors
...
Add 4 byte ids to `EIP1271Wallet.isValidSignature` data
2019-08-30 13:38:25 -07:00
Amir Bandeali
b20503c5a2
Fix off by 1 error
2019-08-30 11:39:28 -07:00
Amir Bandeali
d0869a8840
Fix linting errors
2019-08-30 11:39:28 -07:00
Amir Bandeali
c156bfc534
Remove TestValidatorWallet DataType
2019-08-30 11:39:28 -07:00
Amir Bandeali
5f8e092c96
Move EIP1271 selectors to their own interface
2019-08-30 11:39:27 -07:00
Amir Bandeali
87c9f9af71
Remove example contracts
2019-08-30 11:37:40 -07:00
Amir Bandeali
65e5ecf49d
Encode arguments with selector before passing into EIP1271 isValidSignature
2019-08-30 11:32:22 -07:00
James Towle
63f051a9d2
Merge pull request #2097 from 0xProject/feature/3.0/exchange/protocol-fees
...
Exchange Protocol Fees
2019-08-30 10:36:18 -07:00
Alex Towle
2c1393fb09
@0x:contracts-exchange Addressed lingering review comments
2019-08-29 23:50:48 -07:00
Alex Towle
dba0d8469d
@0x:contracts-exchange Addressed review feedback
2019-08-29 15:20:52 -07:00
Alex Towle
75e6c45285
@0x:contracts-exchange Added the tests for getOrdersInfo back into the exchange
2019-08-28 17:02:43 -07:00
Alex Towle
e64e0d7421
@0x:contracts-exchange Added getOrdersInfo back into the exchange
2019-08-28 16:42:29 -07:00
Alex Towle
13d5a5e2ec
@0x:contracts-exchange Added a test to ensure that registerAssetProxy will fail for non-contract proxies
2019-08-28 16:24:36 -07:00
Alex Towle
3432083343
@0x:contracts-staking Updated payProtocolFee trivially to fix the build.
...
This is not a real to update to `payProtocolFee`. Rather, the interface
was updated to it's finished state. This will be addressed in my next
PR.
2019-08-28 16:15:13 -07:00
Alex Towle
df4282fb34
Fixed issues after rebase
2019-08-28 15:50:23 -07:00
Alex Towle
861aebb2e3
@0x:contracts-exchange Refactored the protocol fee tests and added tests for batchFillOrders
2019-08-28 15:08:40 -07:00
Alex Towle
cc7b8359b4
@0x:contracts-exchange Added tests for matchOrders protocol fees
2019-08-28 15:05:33 -07:00
Alex Towle
dd0d848530
@0x:contracts-exchange Added tests for fillOrder protocol fees
2019-08-28 15:05:33 -07:00
Alex Towle
7f17033ce3
@0x:contracts-exchange Added protocol fees to fillOrders and matchOrders
2019-08-28 15:05:13 -07:00
Alex Towle
3a4e72bb08
@0x:contracts-exchange-libs Added protocol fees to LibFillResults
...
* This commit also squashed some bugs in the reference functions.
Thankfully, combinatorial testing had our back!
2019-08-28 15:03:32 -07:00
Alex Towle
bf3751fd9e
@0x:contracts-exchange Added the MixinProtocolFees contract
2019-08-28 15:03:32 -07:00
Alex Towle
05eb646848
@0x:contracts-utils Added a Refundable contract
2019-08-28 15:01:30 -07:00
Amir Bandeali
5fe231b689
Reorder Cancel event args for consistency
2019-08-28 15:01:30 -07:00
Amir Bandeali
5ee7c2f9dc
Reorder Fill event args to get around stack limit
2019-08-28 15:01:30 -07:00
Alex Towle
2c970a0466
@0x:contracts-exchange Added protocol fees to fill order
2019-08-28 15:01:30 -07:00
Alex Towle
c688b11c86
@0x:contracts-exchange-libs Added protocol fees to LibFillResults
...
* This commit also squashed some bugs in the reference functions.
Thankfully, combinatorial testing had our back!
2019-08-28 15:01:30 -07:00
Alex Towle
749c0354b3
@0x:contracts-staking Added protocol fee functions to IStaking
2019-08-28 14:56:40 -07:00
Alex Towle
415af90ae7
@0x:contracts-exchange Added the MixinStakingManager contract
2019-08-28 14:53:45 -07:00
Alex Towle
365cb161cf
@0x:contracts-utils Added a Refundable contract
2019-08-28 14:51:57 -07:00
Amir Bandeali
a9857fa298
Merge pull request #2107 from 0xProject/feat/3.0/staking/remove-duplicate-code
...
Remove duplicate code from staking contracts
2019-08-28 14:30:37 -07:00
Amir Bandeali
59ae8d4b86
Fix comments in ZrxVault
2019-08-28 13:56:42 -07:00
Amir Bandeali
b81f6ba685
Fix linting error
2019-08-28 12:51:18 -07:00
Amir Bandeali
16c9d00494
Remove redundant function in MixinZrxVault
2019-08-28 11:20:00 -07:00
Amir Bandeali
1a833d9dfb
Remove zrxAssetData param to ensure that it is always in sync with zrxToken
2019-08-28 11:06:46 -07:00
Amir Bandeali
bde6278781
Set 100 to PERGENTAGE_DENOMINATOR constant
2019-08-27 23:42:42 -07:00
Amir Bandeali
e7c4d2171f
Update contracts to use 256 bit math
2019-08-27 23:42:42 -07:00
Amir Bandeali
3a096ff0b4
Remove 64 and 96 bit LibSafeMath contracts
2019-08-27 23:42:42 -07:00
Amir Bandeali
9feac6708a
Add storage layout tests
2019-08-27 23:42:11 -07:00
Amir Bandeali
aabca97b2d
Make most constants and storage vars uint256
2019-08-27 23:42:11 -07:00
Amir Bandeali
9fb933fd06
Remove MixinOwnable
2019-08-27 23:42:11 -07:00
Amir Bandeali
df039f05c2
Update contracts to use new SafeMath functions
2019-08-27 23:42:11 -07:00
Amir Bandeali
d1bed5729d
Remove LibSafeMath and refactor 6/96 bit versions
2019-08-27 23:42:11 -07:00
mzhu25
c926a586d2
Merge pull request #2103 from 0xProject/feature/contracts-staking/rich-reverts
...
Staking RichErrors and cleanup
2019-08-26 17:32:05 -07:00
Amir Bandeali
b7397bbb8f
Merge pull request #2101 from 0xProject/feat/3.0/cleanup
...
Revert to old ReentrancyGuard implementation + random cleanup
2019-08-26 17:14:17 -07:00
Michael Zhu
9b957524a5
replace abi.encodeWithSelector calls with bytes constant + other nits
2019-08-26 16:58:56 -07:00
Michael Zhu
078b1af04e
Binop -> BinOp
2019-08-26 16:06:31 -07:00
Michael Zhu
6827ebfb78
blockchainTests.only -> blockchainTests
2019-08-26 15:58:31 -07:00
Michael Zhu
1d807abe8b
lint
2019-08-26 15:49:09 -07:00
Michael Zhu
2c15b3f9bd
remove staking RevertReasons from TS types, ExchangeAlreadyRegisteredError -> ExchangeAddressAlreadyRegisteredError
2019-08-26 15:49:09 -07:00
Michael Zhu
0d5e037081
use mocha extensions in staking tests
2019-08-26 15:49:09 -07:00
Michael Zhu
dbda3a04b2
update tests to use RichErrors
2019-08-26 15:49:09 -07:00
Michael Zhu
98e5b26eb7
refactor SafeMath rich errors and use them in staking libs
2019-08-26 15:49:09 -07:00
Michael Zhu
cd1fc6a1f0
fix typos
2019-08-26 15:49:09 -07:00
Michael Zhu
52ef745f7c
run codegen script
2019-08-26 15:49:08 -07:00
Michael Zhu
961b09977f
replace requires/reverts with rich errors
2019-08-26 15:49:08 -07:00
Amir Bandeali
df8419cd9e
Add back comment on isReentrant function
2019-08-26 14:49:03 -07:00
Amir Bandeali
71acf2bfa7
Remove hard coded gas limits in all tests
2019-08-25 19:00:50 -07:00
Amir Bandeali
1400ceb4e8
Fix Exchange reentrancy tests
2019-08-25 18:29:04 -07:00
Amir Bandeali
793e338dd3
Revert to old ReentrancyGuard implementation
2019-08-25 17:06:52 -07:00
Amir Bandeali
020e7609c3
Add assetProxyId param to AssetProxyExistsError
2019-08-25 17:06:37 -07:00
Amir Bandeali
b1c2f66126
Update variable names in IAssetData
2019-08-25 16:51:37 -07:00
Amir Bandeali
8ef0a59b98
Merge pull request #2084 from 0xProject/feat/3.0/transactionGasPrice
...
Add `gasPrice` to 0x transactions
2019-08-24 10:13:07 -07:00
Amir Bandeali
798fb183a5
Address remaining PR feedback
2019-08-23 15:14:04 -07:00
Greg Hysz
6bb3992c2f
Add files via upload
...
State transitions for stake.
2019-08-23 11:23:28 -07:00
Amir Bandeali
830d6f726e
Use default gasPrice in Forwarder tests
2019-08-23 09:33:05 -07:00
Amir Bandeali
8f8c16bd0e
Add more recursion tests
2019-08-23 09:25:09 -07:00
Amir Bandeali
76c0708cf2
Fix config.yml
2019-08-23 08:51:53 -07:00
Amir Bandeali
5e51233b49
Address PR feedback
2019-08-22 17:11:50 -07:00
Amir Bandeali
890bfd18fa
Update tests to use new TransactionInvalidContextError
2019-08-22 17:04:15 -07:00
Amir Bandeali
37cc948741
Add TransactionInvalidContextError class
2019-08-22 17:04:15 -07:00
Amir Bandeali
edb923b8bb
Use TransactionInvalidContextError in _assertExecutableTransaction
2019-08-22 17:04:15 -07:00
Amir Bandeali
44753bb168
Add TransactionInvalidContextError and remove NO_REENTRANCY errorCode
2019-08-22 17:04:15 -07:00
Amir Bandeali
7b96fa8d76
Add more unit tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
ca35eed955
Add _assertExecutableTransaction unit tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
eb6637afd5
Add public version of _assertExecutableTransaction
2019-08-22 17:04:15 -07:00
Amir Bandeali
a114bbb30e
Reduce code duplication in unit tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
9d38bf731f
Add transaction gasPrice tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
f32732db1c
Add TransactionGasPriceError rich revert class
2019-08-22 17:04:15 -07:00
Amir Bandeali
f41a29ce55
Fix weth tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
2b1e0be4fc
Add default gasPrice to web3Wrapper instance and TransactionFactory
2019-08-22 17:04:15 -07:00
Amir Bandeali
23dd711396
Update ZeroExTransaction tests
2019-08-22 17:04:15 -07:00
Amir Bandeali
59369cea2a
Update transaction hashing and tests
2019-08-22 17:04:14 -07:00
Amir Bandeali
e6b81a824d
Update ZeroExTransaction schema
2019-08-22 17:04:14 -07:00
Amir Bandeali
1dd216b566
Update ZeroExTransaction interface
2019-08-22 17:04:14 -07:00
Amir Bandeali
27e2a76110
Update remaining contracts to use new transaction schema
2019-08-22 17:04:14 -07:00
Amir Bandeali
47da97137f
Add _assertExecutableTransaction function and add gasPrice check
2019-08-22 17:04:14 -07:00
Amir Bandeali
2134537bc3
Add TransactionGasPriceError to LibExchangeRichErrors
2019-08-22 17:04:14 -07:00
Amir Bandeali
67f91269ee
Add gasPrice to ZeroExTransaction struct
2019-08-22 17:04:14 -07:00
Alex Towle
57338059e1
CI: Split contracts tests up into two seperate jobs to attempt to increase speed
2019-08-22 17:04:14 -07:00
Alex Towle
c1ed836fda
CI: Changed the test-contracts-ganache-3.0 to run in stages to avoid the Killed error
2019-08-22 17:03:15 -07:00
Alex Towle
cd147dbc41
@0x:contracts-exchange Fixed issues caused by rebase
2019-08-22 17:01:49 -07:00
Alex Towle
0253bba83b
@0x:contracts-exchange Addressed review comments by completely overhauling transaction_unit_tests.ts
2019-08-22 17:01:49 -07:00
Alex Towle
d845b318b9
@0x:contracts-exchange Changed the signature validation stub function to not require state
2019-08-22 17:01:49 -07:00
Alex Towle
4b970905cf
@0x:contracts-exchange Removed code written to transactions
2019-08-22 17:01:49 -07:00
Alex Towle
907771f084
@0x:contracts-exchange Added unit tests for batchExecuteTransactions
2019-08-22 17:01:49 -07:00
Alex Towle
1724ecd4c3
@0x:contracts-exchange Added unit tests for executeTransaction
2019-08-22 17:01:48 -07:00
Alex Towle
74b9ad5536
@0x:contracts-exchange Added unit tests for getCurrentContextAddress
2019-08-22 17:01:48 -07:00
mzhu25
4f1525fe27
Merge pull request #1987 from 0xProject/feature/contracts/3.0/remove-forwarder-fee-abstraction
...
Remove Forwarder fee abstraction and revamp tests
2019-08-22 10:55:10 -07:00
Michael Zhu
4dc7956b56
address greg's comments
2019-08-22 10:29:30 -07:00
mzhu25
453bf4d195
Merge pull request #2087 from 0xProject/fix/3.0/exchange/execute-noop-transfer
...
remove from != to check and update tests
2019-08-21 17:02:03 -07:00
Greg Hysz
249948e787
Merge pull request #1910 from 0xProject/feature/contracts-staking/first-implementation
...
[WIP] First Implementation of Staking Contracts (ZEIP 31)
2019-08-21 16:48:04 -07:00
Greg Hysen
c0acc8dfdf
Fixed sorting in artifact generation
2019-08-21 16:30:35 -07:00
Michael Zhu
00e87864b1
remove from != to check and update tests
2019-08-21 13:07:59 -07:00
Greg Hysen
697e5df52d
Added changelog entries and cleaned up merge
2019-08-21 13:05:11 -07:00
Greg Hysen
ba3cd454ba
Fixed linter errors
2019-08-21 13:04:21 -07:00
Greg Hysen
de26925c13
Solidity 0.5.5 -> 0.5.9
2019-08-21 13:04:20 -07:00
Greg Hysen
47e00ff1a7
Renamed MixinTimelockedStake.sol -> MixinTimeLockedStake.sol
2019-08-21 13:04:20 -07:00
Greg Hysen
d106051ee3
CamelCase for timelocks
2019-08-21 13:04:20 -07:00
Greg Hysen
c939fe2287
moved natspec to above contract definition
2019-08-21 13:04:20 -07:00
Greg Hysen
41b372ffe6
Updates from staking PR review
2019-08-21 13:04:20 -07:00
Greg Hysen
5826825d11
Linter fixes
2019-08-21 13:04:20 -07:00
Greg Hysen
a765e47dca
Got staking contracts working after rebase
2019-08-21 13:04:20 -07:00
Greg Hysen
de8b032df9
Removed the unused LibRewardsTest
2019-08-21 13:04:20 -07:00
Greg Hysz
f1b1eb3b58
Added contract registry to kill switch diagram
2019-08-21 13:04:20 -07:00
Greg Hysz
1f334d29ae
New architecture images for README
2019-08-21 13:04:20 -07:00
Greg Hysz
3279d2a803
updated architecture descriptions
2019-08-21 13:04:19 -07:00
Greg Hysen
cd14d1ef0f
ran prettier
2019-08-21 13:04:19 -07:00
Greg Hysen
9eb676fb46
Pinned contracts-multisig dependency on asset-proxy so it will build
2019-08-21 13:04:19 -07:00
Greg Hysen
6c82ebe956
Added more documentation to interfaces
2019-08-21 13:04:19 -07:00
Greg Hysen
3922d02910
Documented libraries and removed unnecessary interface, IMixinScheduler
2019-08-21 13:04:19 -07:00
Greg Hysen
6da70cfa0d
Added top-level README to the staking package
2019-08-21 13:04:19 -07:00
Greg Hysen
15c8e06129
Ran contracts:gen
2019-08-21 13:04:19 -07:00
Greg Hysen
93506a4e27
Updated Epoch API for readability + documented Timelock Mixin
2019-08-21 13:04:19 -07:00
Greg Hysen
508e927d63
Removed unnecessary lib
2019-08-21 13:04:19 -07:00
Greg Hysen
ee969261b4
Documentation for MixinVaultCore
2019-08-21 13:04:19 -07:00
Greg Hysen
2a5742c12d
Documentation + Events for ZrxVault
2019-08-21 13:04:19 -07:00
Greg Hysen
598d70c6dc
Renamed getStakeDelegatedToPool -> getTotalStakeDelegatedToPool for readability
2019-08-21 13:04:19 -07:00
Greg Hysen
a49e47f34b
Mixin Zrx Vault is ownable now
2019-08-21 13:04:19 -07:00
Greg Hysen
ad4d869137
Documentation for stake balances mixin
2019-08-21 13:04:19 -07:00
Greg Hysen
4ef86e6128
Adding documentation to delegated stake mixin
2019-08-21 13:04:18 -07:00
Greg Hysen
470036f6cb
Working on new directory structure
2019-08-21 13:04:18 -07:00
Greg Hysen
835ab6ddd9
Fixed linearization issue - see https://github.com/hysz/SmartContractLinearizer !
2019-08-21 13:04:18 -07:00
Greg Hysen
b0b387013c
Moved timelock logic into its own contract
2019-08-21 13:04:18 -07:00
Greg Hysen
3e6cae0ca0
Documentation for MixinDelegatedStake
2019-08-21 13:04:18 -07:00
Greg Hysen
93844343de
Documented MixinStake.sol
2019-08-21 13:04:18 -07:00
Greg Hysen
42430290d5
Split MixinStake into: MixinStake, MixinDelegatedStake and MixinTimelockedStake
2019-08-21 13:04:18 -07:00
Greg Hysen
ce15b4c678
Fixed linter errors
2019-08-21 13:04:18 -07:00
Greg Hysen
35f4e2fb4f
Documented MixinStakingPoolRewardVault and StakingPoolRewardVault
2019-08-21 13:04:18 -07:00
Greg Hysen
501f6cbab9
Fixed linearization issue - see https://github.com/hysz/SmartContractLinearizer !
2019-08-21 13:04:18 -07:00
Greg Hysen
a724dd98a9
Documented staking pool reward vault mixin
2019-08-21 13:04:18 -07:00
Greg Hysen
d5249425af
Added documentation to MixinStakingPoolRewards
2019-08-21 13:04:18 -07:00
Greg Hysen
44c44a2b9c
Some renaming pool -> staking pool for readability
2019-08-21 13:04:18 -07:00
Greg Hysen
eb1c48674a
Condensed some functions in MixinStakingPools for readability
2019-08-21 13:04:17 -07:00
Greg Hysen
b44ab72557
Added introductory comment for staking pool rewards
2019-08-21 13:04:17 -07:00
Greg Hysen
e6a33dea0e
Renamed xxxReward... to StakingPoolReward...
2019-08-21 13:04:17 -07:00
Greg Hysen
217811d0af
added maker add/remove events to staking pools
2019-08-21 13:04:17 -07:00
Greg Hysen
ab3246cc71
Cleaned up staking pool mixin
2019-08-21 13:04:17 -07:00
Greg Hysen
829533d501
Renamed MixinFees -> MixinExchangeFees
2019-08-21 13:04:17 -07:00
Greg Hysen
8881118a15
Added event when ownership of contract changes
2019-08-21 13:04:17 -07:00
Greg Hysen
3f2be5b2da
Documenting fees + rewards now use weighted stake in denominator of cobb douglas
2019-08-21 13:04:17 -07:00
Greg Hysen
9f1904ad3d
Renamed MixinExchange to MixinExchangeManager and added documentation
2019-08-21 13:04:17 -07:00
Greg Hysen
09843c3cf1
Got staking contract building again
2019-08-21 13:04:17 -07:00
Greg Hysen
303279a766
Renamed MixinEpoch -> MixinScheduler
2019-08-21 13:04:17 -07:00
Greg Hysen
f560e7fa96
Renamed approval factory
2019-08-21 13:04:17 -07:00
Greg Hysen
c97c6d1fc2
LibSafeMath96Bit -> LibSafeMath96
2019-08-21 13:04:16 -07:00
Greg Hysen
b53bf051ac
LibSafeMath64Bit -> LibSafeMath64
2019-08-21 13:04:16 -07:00
Greg Hysen
d5189e6143
linted contracts
2019-08-21 13:04:16 -07:00
Greg Hysen
a934c71ccd
Fixing linter errors
2019-08-21 13:04:16 -07:00
Greg Hysen
5147b6e699
fixing linter errors
2019-08-21 13:04:16 -07:00
Greg Hysen
9294bf40a7
Ran yarn fix
2019-08-21 13:04:16 -07:00
Greg Hysen
a02f96c913
ran prettier
2019-08-21 13:04:16 -07:00
Greg Hysen
b756e723ea
Updated dependency ordering using a linearizer script, which is now here: https://github.com/hysz/SmartContractLinearizer
2019-08-21 13:04:16 -07:00
Greg Hysen
8bc1d5fe3e
Run all tests
2019-08-21 13:04:16 -07:00
Greg Hysen
180417b581
moved another test to the simulator
2019-08-21 13:04:16 -07:00
Greg Hysen
786655843b
check reward balances of operator ocne withdarwn in simulator
2019-08-21 13:04:16 -07:00
Greg Hysen
5e3eeed10f
more work on simulator
2019-08-21 13:04:16 -07:00
Greg Hysen
8a2df9cd1f
Working on simulation to make it easier to follow the end-to-end tests. Mostly working.
2019-08-21 13:04:16 -07:00
Greg Hysen
74d9891e06
actors for maker / pool operator + comprehensive test cases
2019-08-21 13:04:16 -07:00
Greg Hysen
e0ff859e0d
Separated test files out for readability
2019-08-21 13:04:15 -07:00
Greg Hysen
2c7efd0b97
separating out tests for readability
2019-08-21 13:04:15 -07:00
Greg Hysen
99a0835ecc
Fixed staker actor assertions
2019-08-21 13:04:15 -07:00
Greg Hysen
0bb227a79b
Delegator Actor
2019-08-21 13:04:15 -07:00
Greg Hysen
84e7357960
starting on a delegator actror
2019-08-21 13:04:15 -07:00
Greg Hysen
9d0b94305a
deleted old staker test - much code saved!
2019-08-21 13:04:15 -07:00
Greg Hysen
8343105b54
cleaned up staker actor
2019-08-21 13:04:15 -07:00
Greg Hysen
38cad56bf9
Staker Actor
2019-08-21 13:04:15 -07:00
Greg Hysen
8f291c19c3
Use LibSafeMath in ZrxVault instead of util SafeMath
2019-08-21 13:04:15 -07:00
Greg Hysen
9566188d6b
Renamed IVault to IZrxVault
2019-08-21 13:04:15 -07:00
Greg Hysen
cae8c2013d
Split deployment constants into its own mixin for readability
2019-08-21 13:04:15 -07:00
Greg Hysen
9bc5efe958
Use safemath for epochs
2019-08-21 13:04:15 -07:00
Greg Hysen
b36003896f
Renamed LibMath to LibFeeMath
2019-08-21 13:04:15 -07:00
Greg Hysen
4d2ba9f1e6
Replaced any contract-style libraries with real libraries.
2019-08-21 13:04:14 -07:00
Greg Hysen
56184c6f4f
Removed Wrapper contracts. Too much sugar. Felt it was less readable.
2019-08-21 13:04:14 -07:00
Greg Hysen
1f64f9eae6
Other contracts packages building with LibEIP721 as a library (rather than a contract)
2019-08-21 13:04:14 -07:00
Greg Hysen
7aeeaae015
Getting other contract libraries to build with LibEIP712 now a regular library
2019-08-21 13:04:14 -07:00
Greg Hysen
03142d82bc
added test for trying to put maker in pool when they havent signed the message properly
2019-08-21 13:04:14 -07:00
Greg Hysen
78805b1c39
Updated remaining tests to use maker signatures when adding to pool
2019-08-21 13:04:14 -07:00
Greg Hysen
e1a5ba9864
Pool Management test passing with signatures
2019-08-21 13:04:14 -07:00
Greg Hysen
bc0140ef3a
Signature validation for adding makers to a staking pool
2019-08-21 13:04:14 -07:00
Greg Hysen
36b76550e0
Working towards maker signature validation
2019-08-21 13:04:14 -07:00
Greg Hysen
1f2e94b585
Adding signatures for maker acceptance into pool
2019-08-21 13:04:14 -07:00
Greg Hysen
e2a2f932f1
Created sepaerate mixins for interacting with the different vaults
2019-08-21 13:04:14 -07:00
Greg Hysen
6ca2f7e3ac
Cleaned up staking contract with wrappers
2019-08-21 13:04:14 -07:00
Greg Hysen
f3309d3651
done tests
2019-08-21 13:04:14 -07:00
Greg Hysen
0b1d955a9f
Added some more sanity checks for delegator reward balances
2019-08-21 13:04:13 -07:00
Greg Hysen
fb75fa4e9a
Withdraw balances for rewards by operators
2019-08-21 13:04:13 -07:00
Greg Hysen
0ba8690120
Added functions for reward balances to staking API
2019-08-21 13:04:13 -07:00
Greg Hysen
cafa3c827c
Updated naming on reward vault
2019-08-21 13:04:13 -07:00
Greg Hysen
bbacce2986
Removed operator from reward vault
2019-08-21 13:04:13 -07:00
Greg Hysen
ead2d26025
Test for delegator payouts when we use Shadow ETH
2019-08-21 13:04:13 -07:00
Greg Hysen
7d89449f2d
Got delegation buy-in/payout test working
2019-08-21 13:04:13 -07:00
Greg Hysen
b3d1b6c499
Store separate operator / pool balances in the reward vault. This reduces complexity in the staking contract.
2019-08-21 13:04:13 -07:00
Greg Hysen
7d85e61cc5
Basic payouts to delegators when the pool is empty and they receive 100% of the reward.
2019-08-21 13:04:13 -07:00
Greg Hysen
362a8c8fc5
account for delegated stake when computing payouts. Tests pass
2019-08-21 13:04:13 -07:00
Greg Hysen
6041fb0445
finalizing payouts are correct
2019-08-21 13:04:13 -07:00
Greg Hysen
b2a7e0536e
epoch finalization executes at about 25k gas / active maker
2019-08-21 13:04:13 -07:00
Greg Hysen
2d39454ce1
get logs when available, otherwise do not
2019-08-21 13:04:13 -07:00
Greg Hysen
16de8bf26c
get logs with tx receipt
2019-08-21 13:04:13 -07:00
Greg Hysen
bb7cecd7c1
all tests passing again
2019-08-21 13:04:13 -07:00
Greg Hysen
8e41cc7651
Finalization with payouts compiles.
2019-08-21 13:04:12 -07:00
Greg Hysen
55238b9669
All tests are passing again. Minor fixes after messing around with different code
2019-08-21 13:04:12 -07:00
Greg Hysen
316ef69074
Adding some tests to the reward vault
2019-08-21 13:04:12 -07:00
Greg Hysen
8c839b5c22
Reward Vault Implementation with wrapper functions. Working on tests.
2019-08-21 13:04:12 -07:00
Greg Hysen
f98e1d75f4
Protocol fees only payable by a valid exchange
2019-08-21 13:04:12 -07:00
Greg Hysen
c57d17dc58
Exchange tracking
2019-08-21 13:04:12 -07:00
Greg Hysen
938f4d2d9d
Protocol Fees implemented; some partially implemented code for other features in this commit,.
2019-08-21 13:04:12 -07:00
Greg Hysen
307c38bd16
payFee function
2019-08-21 13:04:12 -07:00
Greg Hysen
202dcfb4c5
Fixed a bug in the nth root that affects speed of computation. Also started playing with retaining decimal places of root computation
2019-08-21 13:04:12 -07:00
Greg Hysen
8dd74bcf82
test for delegating/undelegating
2019-08-21 13:04:12 -07:00
Greg Hysen
07acdc26ff
starting a test for delegation
2019-08-21 13:04:12 -07:00
Greg Hysen
de307bf25a
Moved constants and storage mixins to immutable directory
2019-08-21 13:04:12 -07:00
Greg Hysen
b6c4f533d2
completed staking test
2019-08-21 13:04:12 -07:00
Greg Hysen
cbf41e6ade
Minor bug fixes in staking + tests making progress
2019-08-21 13:04:11 -07:00
Greg Hysen
b1d98a4183
Updated tests for epochs. More robust and helpful for staking tests.
2019-08-21 13:04:11 -07:00
Greg Hysen
30db88d27b
test case for epoch management
2019-08-21 13:04:11 -07:00
Greg Hysen
fc9d5dee5e
updated wrapper with epoch management
2019-08-21 13:04:11 -07:00
Greg Hysen
bb0ada3f59
adding epoch management
2019-08-21 13:04:11 -07:00
Greg Hysen
804256075e
added new staking/delegating/timelock functions to staking wrapper
2019-08-21 13:04:11 -07:00
Greg Hysen
79f28f121b
checkpoint - implementing delegating + timelocks
2019-08-21 13:04:11 -07:00
Greg Hysen
717a19a08e
moving towards working delegation + timelocks.
2019-08-21 13:04:11 -07:00
Greg Hysen
9c8716da09
delegating logic
2019-08-21 13:04:11 -07:00
Greg Hysen
8293784629
tests for pool management
2019-08-21 13:04:11 -07:00
Greg Hysen
a17f123608
Added ABI decoding of return values to callAsync
2019-08-21 13:04:11 -07:00
Greg Hysen
561fe9c3ea
tests for pools - create pool and increment id
2019-08-21 13:04:11 -07:00
Greg Hysen
e645aa1ee5
some methods only callable by pool operator
2019-08-21 13:04:11 -07:00
Greg Hysen
7f86d2c5fa
Renamed "Maker Ids" to "Pools"
2019-08-21 13:04:11 -07:00
Greg Hysen
fae14a755f
maker registry compiles, untested
2019-08-21 13:04:11 -07:00
Greg Hysen
1c14948f8a
Saved 20k gas on cobb douglas computation w binary search
2019-08-21 13:04:10 -07:00
Greg Hysen
6a902eff56
Split Storage Logic + Staking Logic Contracts
2019-08-21 13:04:10 -07:00
Greg Hysen
c6192ea953
adding events for staking
2019-08-21 13:04:10 -07:00
Greg Hysen
36cf4ad304
some refactoring for the staking proxy. Compiles, but no tests yet.
2019-08-21 13:04:10 -07:00
Greg Hysen
bcfabf18bc
cobb douglas / simplified / inverse simplified (better results across the board - esp w simplified impls)
2019-08-21 13:04:10 -07:00
Greg Hysen
f15693af1d
Much simplified cobb douglas implementation
2019-08-21 13:04:10 -07:00
Greg Hysen
64e42d18e2
works for square roots
2019-08-21 13:04:10 -07:00
Greg Hysen
e2a76c621b
working on it
2019-08-21 13:04:10 -07:00
Greg Hysen
19f6a8dcfe
decent cobb douglas implementation
2019-08-21 13:04:10 -07:00
Greg Hysen
3c4cfe8aee
fixed point nth root. This is what well use for the cobb-douglas function when computing rewards.
2019-08-21 13:04:10 -07:00
Greg Hysen
43173c1aac
Run Newtons nth root algorithm after approximating the root
2019-08-21 13:04:10 -07:00
Greg Hysen
95b284d648
Function to compute nth root
2019-08-21 13:04:10 -07:00
Greg Hysen
9787cf8296
hooked up interface to MixinStake
2019-08-21 13:04:10 -07:00
Greg Hysen
93b57445b6
unstaking works
2019-08-21 13:04:10 -07:00
Greg Hysen
c4ca72cf22
staking end-to-end works
2019-08-21 13:04:10 -07:00
Greg Hysen
13d2cca2bc
staking looks good, aside from the xfer of zrx
2019-08-21 13:04:10 -07:00
Greg Hysen
7fe8eac511
compiles and deploys
2019-08-21 13:04:10 -07:00
Greg Hysen
c062458188
Writing staking tests
2019-08-21 13:04:09 -07:00
Greg Hysen
3517dd2741
Implemented staking logic and ZRX vault
2019-08-21 13:04:09 -07:00
Lawrence Forman
7407890deb
Merge pull request #2075 from 0xProject/feature/3.0/exchange/market-fill-or-kill
...
Add marketBuy/SellOrdersFillOrKill() to Exchange
2019-08-21 11:24:24 -04:00
Lawrence Forman
e9a4b0758b
@0x/contracts-exchange: Remove log decoding in ExchangeWrapper test class in favor of awaitTransactionSuccessAsync.
2019-08-21 10:59:34 -04:00
Lawrence Forman
abf076fc05
@0x/contracts-exchange: Remove unused _getOrderHashes() function from MixinWrapperFUnctions.
2019-08-21 10:59:34 -04:00
Lawrence Forman
c344625d0d
@0x/utils: Ran prettier.
2019-08-21 10:59:34 -04:00
Lawrence Forman
14630465dd
@0x/order-utils: Add comments to regex parsing code in revert_error.ts.
2019-08-21 10:59:34 -04:00
Lawrence Forman
a497ddfad2
@0x/contracts-exchange: Update CHANGELOG and run prettier.
2019-08-21 10:59:34 -04:00
Lawrence Forman
34f6facdee
@0x/contracts-exchange-libs: Update CHANGELOG.
2019-08-21 10:59:34 -04:00
Lawrence Forman
c3bff31cc4
@0x/order-utils: Update CHANGELOG and run prettier.
2019-08-21 10:59:34 -04:00
Lawrence Forman
e4475c08e8
@0x/contracts-exchange: Switch to consolidated IncompleteFillError rich error.
...
`@0x/contracts-exchange`: Allow `marketSell/BuyOrdersNoThrow` to be destructive to orders again.
2019-08-21 10:59:34 -04:00
Lawrence Forman
75a4d129f7
@0x/contracts-exchange-libs: Consolidate FillOrKill errors into IncompleteFillError.
2019-08-21 10:59:34 -04:00
Lawrence Forman
c659477358
@0x/order-utils: Consolidate FillOrKill errors into IncompleteFillError.
2019-08-21 10:59:34 -04:00
Lawrence Forman
43f38d02ad
@0x/contracts-dev-utils: run_mocha package script runs with UNLIMITED_CONTRACT_SIZE=true environment variable.
2019-08-21 10:59:34 -04:00
Lawrence Forman
6b8bc55c74
@0x/contracts-test-utils: web3Wrapper is created with shouldAllowUnlimitedContractSize if UNLIMITED_CONTRACT_SIZE environment variable is set.
2019-08-21 10:59:34 -04:00
Lawrence Forman
0c53e2fe46
@0x/dev-utils: Make ganache's allowUnlimitedCOntractSize option configurable via Web3Config.
...
`@0x/dev-utils`: Add `UnlimitedContractSize` to `EnvVars`.
2019-08-21 10:59:34 -04:00
Lawrence Forman
edef3bc30e
@0x/contracts-exchange: Fix failing wrapper.ts test.
2019-08-21 10:59:34 -04:00
Lawrence Forman
0c7f09b832
ran prettier
2019-08-21 10:59:34 -04:00
Lawrence Forman
34d075ce8c
@0x/contracts-exchange: Update marketBuy/SellOrdersNoThrow() to NOT be destructive to the orders.
...
`@0x/contracts-exchange`: Fix wrapper unit tests to use the actual order hash algorithm, since it can't be overridden anymore.
2019-08-21 10:59:34 -04:00
Lawrence Forman
8c06d660ea
Update CHANGELOGs with PR numbers.
2019-08-21 10:59:34 -04:00
Lawrence Forman
748566b4fb
@0x/contracts-exchange: Tweak exchangeDataEncoder test utility to work with marketBuy/SellFillOrKill() functions.
2019-08-21 10:59:34 -04:00
Lawrence Forman
fb38867e78
Ran prettier
2019-08-21 10:59:34 -04:00
Lawrence Forman
a2613625c6
@0x/contracts-exchange: Squelch linter errors in LibExchangeRichErrorDecoder.
2019-08-21 10:59:34 -04:00
Lawrence Forman
89f1d54ebc
@0x/contracts-dev-utils: Add marketBuy/SellOrdersNoThrow and marketBuy/SellOrdersFillOrKill to LibTransactionDecoder.
2019-08-21 10:59:34 -04:00
Lawrence Forman
740913fa20
@0x/dev-utils: Set allowUnlimitedContractSize option when creating a ganache provider.
2019-08-21 10:59:34 -04:00
Lawrence Forman
fd2a240c9f
@0x/contracts-exchange`: Update changelog.
2019-08-21 10:59:34 -04:00
Lawrence Forman
96bef08ac2
@0x/contracts-exchange: Rename marketSellOrders and marketBuyOrders back to marketSellOrdersNoThrow and marketBuyOrdersNoThrow.
...
`@0x/contracts-exchange`: Introduce new `marketSellOrdersFillOrKill` and `marketBuyOrdersFillOrKill` functions.
`@0x/contracts-exchange`: Add new rich error types: `IncompleteMarketBuyError` and `IncompleteMarketSellError`.
`@0x/contracts-exchange`: Use `abi.decode()` in `LibExchangeRichErrorDecoder` over `LibBytes`.
2019-08-21 10:59:34 -04:00
Lawrence Forman
1698519a6a
@0x/contracts-exchange: Overridden functions in ReentrancyTester now return sane values.
2019-08-21 10:59:34 -04:00
Lawrence Forman
d8372f73bc
@0x/contracts-exchange-libs: Add new revert types and use abi.decode() instead of LibBytes.
2019-08-21 10:59:34 -04:00
Lawrence Forman
fb6e8a4608
@0x/order-utils: Add takerAssetFillAmount field to IncompleteFillError type.
...
`@0x/order-utils`: Add `IncompleteMarketSellError` and `IncompleteMarketBuyError` `RevertError` types.
2019-08-21 10:59:34 -04:00
Lawrence Forman
a3f6160898
@0x/utils: Allow for array types in RevertError types.
2019-08-21 10:59:34 -04:00
Michael Zhu
66f175b659
post-rebase fix
2019-08-20 17:41:26 -07:00
Michael Zhu
755ef35955
prettier
2019-08-20 17:24:59 -07:00
Michael Zhu
b5d6156ffa
use mocha extensions
2019-08-20 17:24:59 -07:00
Michael Zhu
8dd8cf8673
might as well change ethValueAdjustment to number too
2019-08-20 17:24:59 -07:00
Michael Zhu
9e46099ced
change fractionalNumberOfOrdersToFill to number
2019-08-20 17:24:59 -07:00
Michael Zhu
9f4fe259f9
update some RichErrors and @return directives per comments
2019-08-20 17:24:59 -07:00
Michael Zhu
3c169388e2
refactor + address comments on forwarder mixins
2019-08-20 17:24:59 -07:00
Michael Zhu
b9e75769a3
add tests for partially filled, unfillable orders
2019-08-20 17:24:59 -07:00
Michael Zhu
17a9edd8c3
check order statuses
2019-08-20 17:24:59 -07:00
Michael Zhu
090b83a237
tests for invalid fee assets
2019-08-20 17:24:59 -07:00
Michael Zhu
7796c88be3
add forwarder back to contractsPackages
2019-08-20 17:24:59 -07:00
Michael Zhu
e5ee794895
slipped through from a previous commit
2019-08-20 17:24:59 -07:00
Michael Zhu
2b572cc28f
fix lint
2019-08-20 17:24:59 -07:00
Michael Zhu
88544ae0ef
fix dependencies
2019-08-20 17:24:59 -07:00
Michael Zhu
146d56be84
use new lib function names
2019-08-20 17:24:59 -07:00
Michael Zhu
1934dddcbe
use different maker/taker amounts in tests
2019-08-20 17:24:59 -07:00
Michael Zhu
f1c51bd0db
refactor + revert when takerFeeAssetData is neither WETH nor makerAssetData
2019-08-20 17:24:59 -07:00
Michael Zhu
d91fc59a28
change marketSell/marketBuy to return relevant amounts, change marketBuy so that makerAssetBuyAmount == makerAssetAcquiredAmount
2019-08-20 17:24:59 -07:00
Michael Zhu
f8025feda2
update tests to use RevertErrors
2019-08-20 17:24:58 -07:00
Michael Zhu
c9f0c46017
forwarder rich errors second pass
2019-08-20 17:24:58 -07:00
Michael Zhu
5879aeac52
forwarder rich errors first pass
2019-08-20 17:24:58 -07:00
Michael Zhu
c73ae579d3
rebase + fix CI
2019-08-20 17:23:55 -07:00
Michael Zhu
3da55ad836
lint
2019-08-20 17:23:55 -07:00
Michael Zhu
26bfcccedc
use ForwarderTestFactory for most forwarder tests + some comments in forwarder_test_factory
2019-08-20 17:23:55 -07:00
Michael Zhu
af6243afb0
handle reverts and ERC721 in ForwarderTestFactory + refactoring
2019-08-20 17:23:55 -07:00
Michael Zhu
673a341626
make approveMakerAssetProxy an external function and update comments
2019-08-20 17:23:55 -07:00
Michael Zhu
a1aee7111a
minor fixes
2019-08-20 17:23:55 -07:00
Michael Zhu
688209e272
refactoring and marketBuyTestAsync
2019-08-20 17:23:55 -07:00
Michael Zhu
116945047b
forwarder test factory first pass (supports orders with no fees and percentage fees)
2019-08-20 17:23:55 -07:00
Michael Zhu
1b8a9e16e2
slightly restructure contracts to fix bug in the WETH-fee case
2019-08-20 17:23:55 -07:00
Michael Zhu
7ff7e9d2e7
Tests for orders without fees, orders with percentage-based fees (no forwarder fees)
2019-08-20 17:23:55 -07:00
Michael Zhu
15c0d622c9
Update function definitions, require that makerAsset is the same across orders, approve proxy to transfer makerAsset (for percentage-based fees)
2019-08-20 17:23:55 -07:00
Michael Zhu
25087f3c92
Remove fee abstraction from Forwarder contracts (first pass)
2019-08-20 17:23:55 -07:00
Michael Zhu
34be9830af
fix imports and inheritance, update tests for forwarder
2019-08-20 17:23:55 -07:00
Amir Bandeali
0fad6a6ec1
Merge pull request #2076 from 0xProject/feat/3.0/truffle-config
...
Add truffle config file, update copyright dates
2019-08-20 15:12:26 -07:00
Amir Bandeali
02599c0df8
Add truffle artifacts to prettierignore
2019-08-20 14:30:29 -07:00
Amir Bandeali
430d068d78
Add truffle compile to build in CI
2019-08-20 12:57:31 -07:00
Amir Bandeali
f09cadb7b3
Add truffle compile option to contract packages
2019-08-20 12:49:33 -07:00
Amir Bandeali
c366a4bd83
Update copyright dates
2019-08-20 12:49:01 -07:00
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
Amir Bandeali
45f229c531
Move LibEIP712ExchangeDomain tests to own file
2019-08-13 16:11:57 -07:00
Amir Bandeali
d6772b4a0a
Fix linting errors
2019-08-13 16:11:57 -07:00
Amir Bandeali
5016d50c2b
Move calculateFillResults tests to exchange-libs package
2019-08-13 16:11:09 -07:00
Amir Bandeali
24eaf93db8
Move all exchange-libs tests to separate files
2019-08-13 16:11:09 -07:00
Amir Bandeali
2e519b534d
Fix build in OrderValidationUtils
2019-08-13 16:11:09 -07:00
Amir Bandeali
31c2b36039
Fix build errors in exchange package contracts
2019-08-13 16:11:09 -07:00
Amir Bandeali
245956c658
Create test contracts for each exchange lib
2019-08-13 16:11:09 -07:00
Amir Bandeali
0df360c5e8
Fix compile errors
2019-08-13 16:11:09 -07:00
Amir Bandeali
9b786df828
Update test contracts
2019-08-13 16:11:09 -07:00
Amir Bandeali
ae859fa01e
Update Exchange contract to use libraries
2019-08-13 16:11:09 -07:00
Amir Bandeali
7eb64eb3dc
Update test contracts
2019-08-13 16:09:48 -07:00
Amir Bandeali
f45014f75b
Convert LibOrder and LibZeroExTransaction to libraries
2019-08-13 16:09:48 -07:00
Amir Bandeali
74a5c8c23c
Simplify LibEIP712ExchangeDomain to be used only for generating domain hash
2019-08-13 16:09:48 -07:00
Amir Bandeali
28e781db15
Convert LibFillResults to library
2019-08-13 16:09:48 -07:00
Amir Bandeali
6ca9d4ee78
Convert LibMath to library
2019-08-13 16:09:48 -07:00
Amir Bandeali
52dcd998c4
Add library implementation of SafeMath
2019-08-13 16:09:48 -07:00
Amir Bandeali
a8cd168345
Cleanup imports
2019-08-13 16:09:48 -07:00
Amir Bandeali
b05a2a90d0
Move FillResults calculations into LibFillResults
2019-08-13 16:09:48 -07:00
Amir Bandeali
242715240b
Do not inherit libs
2019-08-13 16:07:07 -07:00
Amir Bandeali
65f17fd76e
Make LibEIP712 a library
2019-08-13 16:04:33 -07:00
Amir Bandeali
58ee4447a1
Remove remaining hard coded selectors
2019-08-13 16:04:33 -07:00
Amir Bandeali
d153ac0951
Make remaining functions public
2019-08-13 16:04:33 -07:00
Amir Bandeali
2e97cfa5e5
Remove LibAssetProxyIds and TestLibConstants
2019-08-13 16:04:33 -07:00
Amir Bandeali
7d5276ad11
Remove LibExchangeSelectors.sol
2019-08-13 16:04:33 -07:00
Amir Bandeali
2251e5e418
Optimize LibEIP712
2019-08-13 16:00:19 -07:00
Alex Towle
e4257fb6c7
Addressed review comments and prettified code
2019-08-13 11:06:41 -07:00
Lawrence Forman
f22b03fdb5
Merge pull request #2042 from 0xProject/feature/3.0/exchange/wrapper-tests
...
Wrapper/Reentrancy unit tests, etc.
2019-08-13 13:55:29 -04:00
F. Eugene Aumson
e045f5f74b
contract_wrappers.py: include DevUtils in docs
2019-08-13 12:16:20 -04:00
F. Eugene Aumson
e5c07ff0c5
abi-gen/Py: fix hanging indent for return val doc
...
The update to the fixture contract's artifact added a bunch of
`internalType` stuff. I'm not sure where that came from. Maybe
newly generated by the latest version of solc?
2019-08-13 12:16:20 -04:00
Greg Hysen
dd4541c825
Fill Order Assertion Wrapper
2019-08-13 17:51:40 +02:00
F. Eugene Aumson
cdf0aa27e4
contract_wrappers.py: Merge CHANGELOG from dev
...
Merge CHANGELOG updates from the development branch, in order to avoid
merge conflicts.
2019-08-13 09:32:31 -04:00
F. Eugene Aumson
88998e6bb7
contract_wrappers.py: add DevUtils wrapper
2019-08-13 09:28:03 -04:00
F. Eugene Aumson
b885dfa606
Fixes for broken tox runs ( #2053 )
...
* order_utils.py: git rm package.json
This was used at one time, a long, long time ago, but is no longer used,
and its presence actually causes problems when trying to do, eg
`PKG=@0x/python-contract-wrappers yarn build` from within the
order_utils directory.
* order_utils.py: improve `./setup.py clean`
* python-packages: in tox, test, don't lint
* python-packages: update dev req's to fix tox runs
* contract_wrappers.py: post-publish version bump
2019-08-13 09:18:16 -04:00
Jacob Evans
407495c278
Update packages/migrations/CHANGELOG.json
...
Co-Authored-By: Fabio B <me@fabioberger.com >
2019-08-13 21:56:07 +10:00
Jacob Evans
ea50a94355
Update Mainnet
2019-08-13 21:40:38 +10:00
Jacob Evans
cb3318972e
Merge pull request #2044 from 0xProject/fix/sol-compiler-bin-publish
...
Remove solc-bin from npm publish
2019-08-13 21:16:32 +10:00
Jacob Evans
c057ad7977
Update CHANGELOG
2019-08-13 14:46:53 +10:00
Jacob Evans
eb21718462
Added DevUtils Wrappers
2019-08-13 14:44:53 +10:00
Lawrence Forman
98f77394ed
@0x/contracts-dev-utils: Update OrderValidationUtils for new isValidOrderSignature() semantics.
2019-08-12 19:18:57 -04:00
Lawrence Forman
fc18db10be
@0x/contracts-exchange: Add tests for when callback signature types return incorrect data.
2019-08-12 19:10:24 -04:00
Lawrence Forman
9382e2e8c7
@0x/contracts-exchange: Fix bad resultData assertion in fillOrderNoThrow().
2019-08-12 18:53:40 -04:00
Lawrence Forman
a3b2dbf8e2
@0x/contracts-exchange: Remove redundant new bytes(0) in ReentrancyTester.sol.
2019-08-12 18:32:05 -04:00
Lawrence Forman
6df190edbb
@0x/contracts-exchange: Light changes to address PR comments.
2019-08-12 18:20:50 -04:00
Lawrence Forman
5b0b8a9717
@0x/contracts-exchange: Remove explicit signerAddress parameter from many MixinSignatureValidator functions.
2019-08-12 18:10:57 -04:00
Lawrence Forman
a8ddbe4127
@0x/contracts-exchange: Update IWallet for new legacy wallet spec.
2019-08-12 17:30:24 -04:00
James Towle
6e1fdda182
Update contracts/exchange-libs/test/lib_zero_ex_transaction.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-08-12 11:06:01 -07:00
Francesco Agosti
7836e10d8a
Merge pull request #2052 from 0xProject/feature/website/adding-oskar
...
Added Oskar to team page
2019-08-12 10:15:19 -07:00
Francesco Agosti
946a31821d
Merge pull request #2050 from 0xProject/feature/website/privacy-policy
...
Privacy Policy and Terms of Service pages
2019-08-12 10:10:55 -07:00
xianny
92a915f477
fix dependency version check
2019-08-12 09:27:51 -07:00
Jacob Evans
60b458dbfb
Merge pull request #2045 from 0xProject/feature/i-voted-tokens
...
I Voted Tokens
2019-08-12 17:24:07 +10:00
Joshua Richardson
8b13efc89a
Fix for MetamaskSubprovider to use personal_sign over manually prefixing eth_sign, so proxied hardware wallets work (Ledger/Trezor).
2019-08-11 02:32:09 +09:30
Lawrence Forman
ca33090793
@0x/contracts-exchange: Add comments to LEGACY_WALLET_MAGIC_VALUE constant in TestValidatorWallet.sol.
...
`@0x/contracts-exchange`: Remove references to `LibExchangeSelectors` in the Exchange.
2019-08-09 22:15:33 -04:00
Lawrence Forman
e34b390c18
@0x/contracts-exchange-libs: Fix CHANGELOG rebase issues.
2019-08-09 22:15:33 -04:00
Lawrence Forman
370df0d495
@0x/contracts-dev-utils: Prettier.
...
`@0x/contracts-exchange`: Update reentrancy tests.
`@0x/contracts-exchange`: Add all mutator functions to
`ExchangeFunctions` type.
`@0x/contracts-tes-utils`: Remove unused import.
2019-08-09 22:15:33 -04:00
Lawrence Forman
d4e300d0a4
@0x/contracts-dev-util: Remove references to marketXOrdersNoThrow.
...
`@0x/contracts-exchange`: Remove references to `marketXOrdersNoThrow`.
2019-08-09 22:15:33 -04:00
Lawrence Forman
c83864af9c
@0x/contracts-exchange: Fix broken tests.
...
`@0x/contracts-test-utils`: Remove unecessary wait timeout in
`LogDecoder`.
2019-08-09 22:15:33 -04:00
Lawrence Forman
14fe3045dc
@0x/contracts-exchange-libs: Update CHANGELOG.
2019-08-09 22:15:33 -04:00
Lawrence Forman
5d54e6c951
@0x/contracts-dev-utils: Remove references to 'NoThrow' variants of
...
`MarketXOrders' functions.
2019-08-09 22:15:33 -04:00
Lawrence Forman
921e78c9e2
Update changelogs
2019-08-09 22:15:33 -04:00
Lawrence Forman
b1778825cb
@0x/contracts-exchange: Remove ReentrantERC20Token from compiler
...
config.
2019-08-09 22:15:33 -04:00
Lawrence Forman
cc8d5ac93a
Update changelogs.
2019-08-09 22:15:33 -04:00
Lawrence Forman
1d0dce7366
@0x/contracts-coordinator: Update for marketXOrders name change.
...
`@0x/contracts-coordinator`: Add `MixinCoordinatorApprovalVerifier.sol` to `.solhintignore` because of `abi.decode` issues.
2019-08-09 22:15:33 -04:00
Lawrence Forman
ae454b0892
@0x/contracts-exchange-libs: Regenerate selectors.
2019-08-09 22:15:33 -04:00
Lawrence Forman
a2234b745c
@0x/contracts-exchange: Create semi-automated reentrancy testing.
...
`@0x/contracts-exchange`: Remove old reentrancy tests.
`@0x/contracts-exchange`: Remove `ReentrantERC20Token` contract.
2019-08-09 22:15:33 -04:00
Lawrence Forman
3dd8dac146
@0x/contracts-exchange: Update Wallet signature type behavior to match v2.1.
...
`@0x/contracts-exchange`: Add EOA tests to `signature_validator`.
2019-08-09 22:15:33 -04:00
Lawrence Forman
6752fc9fe5
@0x/order-utils: Add ExchangeRevertErrors.SignatureErrorCode.InvalidSigner.
2019-08-09 22:15:33 -04:00
Lawrence Forman
0d05411cd2
@0x/contracts-exchange: Update CHANGELOG, lint, prettify.
2019-08-09 22:15:33 -04:00
Lawrence Forman
7ce65e3cfe
@0x/contracts-exchange: Wrap up tests in wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
ea1501abd1
@0x/contracts-exchange: Change how order hashes and signatures are computed for wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
ca28b8f93e
@0x/contracts-exchange: Make marketBuy/SellNoThrow the default.
...
`@0x/contracts-exchange`: Add more `wrapper_unit_tests` tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
566e74310a
@0x/contracts-exchange: Remove assembly from fillOrderNoThrow().
2019-08-09 22:15:33 -04:00
Lawrence Forman
c18e8ba242
@0x/contracts-exchange: Add more tests to wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
1f3f0dce11
@0x/contracts-exchange: Add fillOrderNoThrow tests to wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
b73008d83d
@0x/contracts-exchange: Fix fillOrKillOrder() tests in wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
10a8291391
@0x/contracts-exchange: Add more tests to wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
ab094ab174
@0x/contracts-exchange: Add more tests to wrapper_unit_tests.
2019-08-09 22:15:33 -04:00
Lawrence Forman
29a82f8471
@0x/contracts: Create TestWrapperFunctions contract.
2019-08-09 22:15:33 -04:00
Lawrence Forman
8adfa52ae3
Merge branch 'feature/3.0/exchange/fill-order-unit-tests' into 3.0
2019-08-09 22:06:32 -04:00
Lawrence Forman
18485dd456
@0x/contracts-exchange-libs: Add complementary tests when rounding up and down behavior with isRoundingErrorFloor() and isRoundingerrorCeil().
2019-08-09 21:07:23 -04:00
Alex Towle
c318b849fe
@0x:contracts-exchange-libs Added unit tests to exchange-libs
2019-08-09 17:28:36 -07:00
Chris Kalani
88b625fa15
Added Oskar to team page
2019-08-09 17:28:12 -07:00
Chris Kalani
2cf9c9b7df
Added Terms of Service page and footer links
2019-08-09 16:52:09 -07:00
Chris Kalani
d179d6a1a2
Added Privacy Policy Page
2019-08-09 16:17:10 -07:00
F. Eugene Aumson
08502c1eb6
Pre-publish version updates ( #2049 )
...
* json_schemas.py: make changelog be rev. chrono.
Change CHANGELOG.md from chronological to reverse chronological.
* json_schemas.py: fix version numbers
It looks like the version number was changed in the past, but the new
version was never published, so corrected that. Will publish after this
merges into development.
* order_utils.py: pre-publish version bump
2019-08-09 19:15:57 -04:00
F. Eugene Aumson
384cd47416
order_utils.py: mk deprecated a REAL dependency ( #2048 )
2019-08-09 16:31:51 -04:00
Fabio B
250c46d6a4
Merge pull request #2046 from 0xProject/feature/python/publish-gend-wrappers-and-web3-v5
...
Pre-publish updates
2019-08-08 23:17:15 +02:00
xianny
f394d7dba9
Publish
...
- @0x/contracts-asset-proxy@2.2.5
- @0x/contracts-coordinator@2.0.10
- @0x/contracts-dev-utils@0.0.7
- @0x/contracts-erc1155@1.1.12
- @0x/contracts-erc20@2.2.11
- @0x/contracts-erc721@2.1.12
- @0x/contracts-exchange-forwarder@3.0.9
- @0x/contracts-exchange-libs@3.0.5
- @0x/contracts-exchange@2.1.11
- @0x/contracts-extensions@4.0.5
- @0x/contracts-multisig@3.1.11
- @0x/contracts-test-utils@3.1.13
- @0x/contracts-utils@3.2.1
- 0x.js@6.0.15
- @0x/abi-gen-templates@2.4.1
- @0x/abi-gen-wrappers@5.2.0
- @0x/abi-gen@4.1.0
- @0x/assert@2.1.3
- @0x/asset-buyer@6.1.11
- @0x/asset-swapper@1.0.1
- @0x/base-contract@5.3.1
- @0x/connect@5.0.16
- @0x/contract-addresses@3.0.3
- @0x/contract-artifacts@2.0.4
- @0x/contract-wrappers@11.0.0
- @0x/contracts-gen@1.0.13
- @0x/dev-utils@2.3.0
- @0x/fill-scenarios@3.0.16
- @0x/instant@1.0.28
- @0x/json-schemas@3.1.13
- @0x/migrations@4.2.0
- @0x/monorepo-scripts@1.0.34
- @0x/order-utils@8.2.5
- @0x/order-watcher@4.0.17
- @0x/python-contract-wrappers@1.0.3
- @0x/sol-compiler@3.1.12
- @0x/sol-coverage@3.0.9
- @0x/sol-doc@2.0.16
- @0x/sol-profiler@3.1.11
- @0x/sol-trace@2.0.17
- @0x/sol-tracing-utils@6.0.16
- @0x/sra-spec@2.0.14
- @0x/subproviders@5.0.1
- @0x/testnet-faucets@1.0.84
- @0x/utils@4.5.0
- @0x/web3-wrapper@6.0.10
- @0x/website@0.0.87
2019-08-08 13:58:46 -07:00
xianny
ca595cd8cf
Updated CHANGELOGS
2019-08-08 13:58:30 -07:00
F. Eugene Aumson
9ce71739f5
README.md: add 0x-contract-wrappers.py
2019-08-08 16:41:13 -04:00
F. Eugene Aumson
d69da38f7d
python-packages: bump version numbers for publish
2019-08-08 16:22:42 -04:00
F. Eugene Aumson
50f69f734f
contract_wrappers.py: fix ./setup.py clean
2019-08-08 16:20:24 -04:00
F. Eugene Aumson
fc9c6c5434
contract_addresses.py: update CHANGELOG
2019-08-08 16:19:37 -04:00
F. Eugene Aumson
6e941be1e9
make CHANGELOG be REVERSE chronological
2019-08-08 16:18:32 -04:00
F. Eugene Aumson
9f677150a4
python-packages: add convenience script
2019-08-08 16:15:41 -04:00
F. Eugene Aumson
11e273337f
sra_client.py: add PyPI-required metadata
2019-08-08 16:11:37 -04:00
F. Eugene Aumson
ec807120c3
Migrate to Web3.py v5 ( #2038 )
...
* Install Py packages in dep. order, not in parallel
Install Python packages in dependency order, not in parallel.
* sra_client.py: Add `./setup.py clean`
* Fix python package dependency ordering...
...and include a script to produce the proper ordering.
* sra_client.py: reformat whitespace in doctest
* contract_wrappers.py: don't auto-import wrappers
This was discovered while minimizing CircleCI steps to dianose a problem
with running the Launch Kit Backend in CircleCI.
These classes should be imported via the
zero_ex.contract_wrappers.exchange and
zero_ex.contract_wrappers.erc20_token modules, respectively. We
permitted importing them from just zero_ex.contract_wrappers back when
they were the only wrappers we had, but now that we have so many
different contracts being wrapped, this is just another list to keep
manually updated (which, obviously is error prone, since it slipped
through the cracks already), so it's better to just not support this
type of import.
* abi-gen/Py: doc contract method attributes
Without this, generated documentation was not including the class
members that represent the contract methods, rendering the usage
unclear.
* sra_client.py: disable tests in CI
* abi-gen/Py: strip repeated spaces from devdoc
* contract_wrappers.py: gen docs for all wrappers...
...except for the dummy tokens.
* sra_client.py/test: change launch kit docker image
Previously these teses were using 0xorg/launch-kit-ci, but that was a
one-off thing created just for CI, back before there was a regularly
maintained docker image of Launch Kit.
Changed to use 0xorg/launch-kit-backend since it's regularly
maintained/updated.
Because the -backend image is using a different Linux distribution
(Alpine), the commands used to wait for ganache startup also had to
change.
The tag used, 74bcc39, is provisional due to the pending Issue at
https://github.com/0xProject/0x-launch-kit-backend/issues/73 . When
that issue is resolved, the tag suffix on the imag name should be
removed.
* Migrate from Web3.py 4.x to 5.x
* sra_client.py: checksum address in doctest
Due to problem with launch-kit-backend, documented at
https://github.com/0xProject/0x-launch-kit-backend/issues/73 ,
we need to checksum the makerAddress, in the order retrieved from the
relayer, before filling it, otherwise Web3.py gives this error:
InvalidAddress('Web3.py only accepts checksum addresses. The software
that gave you this non-checksum address should be considered unsafe,
please file it as a bug on their platform. Try using an ENS name
instead. Or, if you must accept lower safety, use
Web3.toChecksumAddress(lower_case_address).',
'0x5409ed021d9299bf6814279a6a1411a7e866a631')
* Update CHANGELOGs
* sra_client.py: make CHANGELOG be REVESE chrono.
Formerly CHANGELOG was in chronological order. Now it's in reverse
chronological order.
* abi-gen/Py: fix missing space in sanitized devdoc
2019-08-08 14:53:59 -04:00
xianny
a5654debeb
pin contract-wrappers to earlier version
2019-08-08 11:48:47 -07:00
xianny
0869c0d8b0
Revert "Updated CHANGELOGS"
...
This reverts commit b456c3f953 .
2019-08-08 11:47:30 -07:00
xianny
b456c3f953
Updated CHANGELOGS
2019-08-08 11:41:38 -07:00
xianny
8297d68166
fix contract-wrappers version
2019-08-08 10:49:03 -07:00
xianny
18ce6797e0
Revert failed publish
2019-08-08 10:02:32 -07:00
xianny
c1009d440e
Publish
...
- @0x/contracts-asset-proxy@2.2.5
- @0x/contracts-coordinator@2.0.10
- @0x/contracts-dev-utils@0.0.7
- @0x/contracts-erc1155@1.1.12
- @0x/contracts-erc20@2.2.11
- @0x/contracts-erc721@2.1.12
- @0x/contracts-exchange-forwarder@3.0.9
- @0x/contracts-exchange-libs@3.0.5
- @0x/contracts-exchange@2.1.11
- @0x/contracts-extensions@4.0.5
- @0x/contracts-multisig@3.1.11
- @0x/contracts-test-utils@3.1.13
- @0x/contracts-utils@3.2.1
- 0x.js@6.0.15
- @0x/abi-gen-templates@2.4.1
- @0x/abi-gen-wrappers@5.2.0
- @0x/abi-gen@4.1.0
- @0x/assert@2.1.3
- @0x/asset-buyer@6.1.11
- @0x/asset-swapper@1.0.1
- @0x/base-contract@5.3.1
- @0x/connect@5.0.16
- @0x/contract-addresses@3.0.3
- @0x/contract-artifacts@2.0.4
- @0x/contract-wrappers@11.0.0
- @0x/contracts-gen@1.0.13
- @0x/dev-utils@2.3.0
- @0x/fill-scenarios@3.0.16
- @0x/instant@1.0.28
- @0x/json-schemas@3.1.13
- @0x/migrations@4.2.0
- @0x/monorepo-scripts@1.0.34
- @0x/order-utils@8.2.5
- @0x/order-watcher@4.0.17
- @0x/python-contract-wrappers@1.0.3
- @0x/sol-compiler@3.1.12
- @0x/sol-coverage@3.0.9
- @0x/sol-doc@2.0.16
- @0x/sol-profiler@3.1.11
- @0x/sol-trace@2.0.17
- @0x/sol-tracing-utils@6.0.16
- @0x/sra-spec@2.0.14
- @0x/subproviders@5.0.1
- @0x/testnet-faucets@1.0.84
- @0x/utils@4.5.0
- @0x/web3-wrapper@6.0.10
- @0x/website@0.0.87
2019-08-08 09:29:23 -07:00
xianny
89ee6fe6db
Updated CHANGELOGS
2019-08-08 09:29:08 -07:00
Lawrence Forman
e3aa76cd09
@0x/contracts-exchange: Light refactoring in
...
`isolated_fill_order.ts` and `isolated_exchange_wrapper.ts`.
2019-08-08 11:43:55 -04:00
Lawrence Forman
de897d2ebf
@0x/contracts-test-utils: Refactor LogDecoder slightly.
2019-08-08 11:43:20 -04:00
Lawrence Forman
08118ec36f
@0x/contracts-exchange-libs: Fix coverage hooks.
...
`@0x/contracts-exchange-libs`: Add explicit tests for
`*getPartialAmount*()` for rounding modes.
2019-08-08 11:41:51 -04:00
Fabio Berger
38a12475bc
Update yarn.lock
2019-08-08 08:12:12 -07:00
Fabio Berger
9a800264a2
Update Lerna and fix private package issue
2019-08-08 08:04:58 -07:00
Xianny
8ce390be3c
switch @0x/contract-wrappers to generated wrappers ( #2037 )
...
* switch @0x/contract-wrappers to generated wrappers
- remove TransactionEncoder
- move TokenUtils to @0x/dev-utils
- detailed changes in #2040
2019-08-08 07:29:30 -07:00
Jacob Evans
cc93532f4f
Add Images for I Voted tokens
2019-08-08 14:32:26 +10:00
Jacob Evans
37cc40521c
Remove solc-bin from npm publish
2019-08-08 11:51:22 +10:00
F. Eugene Aumson
5ac7ff7084
Generate wrappers for all contracts ( #2010 )
...
* abi-gen/Py: fix return type for multi-val returns
Methods that return multiple values were broken in two ways. One: a
spurious newline was being injected between the return type and the
colon ending the Python method prototype. Two: the return type was
being generated as just `[TypeA, TypeB]`, whereas it should be
`Tuple[TypeA, TypeB]`.
* abi-gen/Py: fix support for arrays of structs
* abi-gen/Py: FAILING test case nested unrefd struct
When a struct contains another struct, and the inner struct is not
directly referenced by any method interface, wrapper generation is
failing to render a class to represent the inner struct.
This won't fail in CI because at this time CI doesn't run any native
Python tooling to analyze the generated code. Running mypy locally on
the files in this commit produces the following output:
test-cli/output/python/abi_gen_dummy/__init__.py:76: error: Name 'Tuple0x246f9407' is not defined
This problem affects the generation of wrappers for the DutchAuction
contract.
* abi-gen/Py: fix nested unref'd struct failure
* abi-gen/Py: introduce newlines to quiet linter
When generating contracts with long names (eg
CoordinatorRegistryValidator), the `black` reformatter was introducing
these newlines for us, and it was moving the `# type: ignore` comment in
there such that it no longer was on the line it needed to be on.
Introducing these newlines manually (instead of letting black inject
them) allows the linter directive to stay where it needs to be.
* abi-gen/Py: declare tuples in dependency order
* abi-gen/Py: fix support for overloaded methods
* contract_wrappers.py: pylint: permit 2-char args
By default pylint says that 2 characters is too short for an argument
name, but we have some contract methods with 2-character argument names
(eg `to` in `AssetProxyOwner.getTransactionIds()`), so we want to permit
them.
* contract_wrappers.py: include all contracts
* Update CHANGELOGs
* abi-gen: rename variable
* abi-gen: refine comments
* abi-gen/Py: reword tuple class docstring
2019-08-07 12:44:16 -04:00
Jacob Evans
e682b82ca8
Merge pull request #2021 from 0xProject/feat/1155-staticCall-proxies
...
1155 static call proxies
2019-08-07 09:34:25 +10:00
Amir Bandeali
f757a9de52
Add devdoc comments to IAssetData
2019-08-06 15:51:59 -07:00
Xianny
7cd1fd0aaa
Add devdocs to generated contract wrappers ( #2013 )
...
* first pass at including doc comments
* incorporate suggestions for method comments; add devdoc to dummy contract
* better formatting and persist generated docs as circleci build artifacts
* store artifacts properly
* hanging indent for method params
2019-08-06 14:24:08 -07:00
Lawrence Forman
6d502b6898
@0x/contracts-exchange: Use TransactionHelper to call and execute
...
contract functions.
2019-08-06 15:31:30 -04:00
Lawrence Forman
0eff19f0ff
@0x/contracts-test-utils: Add TransactionHelper class.
...
`@0x/contracts-test-utils`: Add `decodeReceiptLogs()` to `LogDecoder`
class.
2019-08-06 15:31:30 -04:00
Lawrence Forman
b6dfc791d4
@0x/contracts-exchange: Correct test case name.
2019-08-06 15:31:30 -04:00
Lawrence Forman
7002dc63bd
@0x/contracts-exchange: Fix typos in comments.
2019-08-06 15:31:30 -04:00
Lawrence Forman
7eedfc201a
@0x/contracts-utils: Add testing against reference functions in SafeMath unit tests.
2019-08-06 15:31:30 -04:00
Lawrence Forman
ac38390241
@0x/contracts-utils: Fix failing test due to rebase.
2019-08-06 15:31:30 -04:00
Lawrence Forman
3156f602dd
Fix rebase errors
2019-08-06 15:31:30 -04:00
Lawrence Forman
ad25942731
@0x/dev-utils: Appease the linter gods.
2019-08-06 15:31:30 -04:00
Lawrence Forman
fddbfc2d32
Update CHANGELOGs
2019-08-06 15:31:30 -04:00
Lawrence Forman
8c9bdadf66
@0x/contracts-utils: Add unit tests for ReferenceFunctions.
2019-08-06 15:30:59 -04:00
Lawrence Forman
6345faa4a9
`@0x/contracts-exchange-libs: Appease the linter and prettier gods.
2019-08-06 15:30:59 -04:00
Lawrence Forman
4711ce5532
@0x/contracts-exchange: Remove _assertValidFill().
...
`@0x/contracts-exchange`: Add `_settleOrder()` unit tests.
`@0x/contracts-exchange`: Add explicit tests for
`_calculateFillResults()`.
`@0x/contracts-exchange`: Add overflow tests to `isolated_fill_order`
tests.
`@0x/contracts-exchange`: Add explicit `takerAssetFillAmount = 0` test
to `isolated_fill_order` tests.
2019-08-06 15:30:59 -04:00
Lawrence Forman
293510c087
@0x/contracts-exchange-libs: Add explicit tests for LibMath and LibFillResults functions.
...
`@0x/contracts-exchange-libs`: Add tests for `ReferenceFunctions`.
2019-08-06 15:30:59 -04:00
Lawrence Forman
a179a6892c
@0x/contracts-test-utils: Add ONE_ETHER and MAX_UINT256_ROOT constants.
2019-08-06 15:30:59 -04:00
Lawrence Forman
afb310e90a
@0x/contracts-exchange: Update changelog.
2019-08-06 15:30:59 -04:00
Lawrence Forman
51391b7f0e
@0x/contracts-exchange-libs: Correct internal variable naming in src/index.ts.
...
`@0x/contracts-utils`: Correct internal variable naming in `src/index.ts`.
`@0x/contracts-exchange`: Remove functions from `TestExchangeInternals.sol` that are now in other packages.
`@0x/contracts-exchange`: Remove `TestExchangeMath.sol`. Exchange math functions are now tested in `@0x/contracts-exchange-libs`.
`@0x/contracts-exchange`: Move `ReferenceFunctions` to default package export.
`@0x/contracts-exchange`: Update `match_order.ts` tests to use reference math functions instead of `TestExchangeMath`.
`@0x/contracts-exchange`: Remove `_updateFilledState()` combinatorial tests in favor of normal unit testing. Combinatorial testing was overkill.
`@0x/contracts-exchange`: Update/refactor `calculateFillResults()` combinatorial tests to use the reference functions and hide them behind `TEST_ALL`.
2019-08-06 15:30:59 -04:00
Lawrence Forman
264b1d69d9
@0x/dev-utils: revertWith mocha extensions now accept Promise-like objects instead of just Promises.
2019-08-06 15:30:59 -04:00
Lawrence Forman
884b1add8e
@0x/contracts-exchange-libs: Move in revamped LibFillResults tests from @0x/contracts-exchange.
2019-08-06 15:30:59 -04:00
Lawrence Forman
8c05a92a1e
Update changelogs
2019-08-06 15:30:59 -04:00
Lawrence Forman
f791cd3a37
@0x/contracts-exchange-libs: Remove unecessary checks for zero
...
denominator.
`@0x/contracts-exchange-libs`: `LibMath` tests from `@0x/contracts-exchange` into this package.
`@0x/contracts-exchange-libs`: Adjust logic in reference functions to be
closer to solidity implementation.
2019-08-06 15:30:30 -04:00
Lawrence Forman
4600a656d1
@0x/contracts-test-utils: Update testWithReferenceFunctionAsync() to
...
support `RevertError`s.
2019-08-06 15:30:30 -04:00
Lawrence Forman
d03f13a729
@0x/contracts-utils: LibMath._safeDiv() now throws a rich revert when dividing by zero.
2019-08-06 15:30:30 -04:00
Lawrence Forman
5a088690b2
@0x/utils: Add SafeMathRevertErrors.SafeMathErrorCodes.Uint256DivisionByZero.
2019-08-06 15:30:30 -04:00
Lawrence Forman
8d26f58dfa
@0x/contracts-test-utils: Make testCombinatoriallyWithReferenceFuncAsync not async.
2019-08-06 15:30:30 -04:00
Lawrence Forman
a3cdb63ae1
@0x/contracts-exchange: Rename TestIsolatedExchange to just IsolatedExchange.
2019-08-06 15:30:30 -04:00
Lawrence Forman
9d5b23acd3
@0x/contracts-exchange: Update tests in isolated_fill_order.ts.
2019-08-06 15:30:30 -04:00
Lawrence Forman
41e04c0178
@0x/contracts-exchange: Add a buttload of tests to
...
`isolated_fill_order.ts`.
2019-08-06 15:30:30 -04:00
Lawrence Forman
abaa0cf3d0
@0x/contracts-test-utils: Move OrderInfo to @0x/types.
2019-08-06 15:30:30 -04:00
Lawrence Forman
8670fbe2ae
@0x/types: Add OrderInfo type.
2019-08-06 15:30:30 -04:00
Lawrence Forman
898213bb85
@0x/contracts-exchange: Update tests for moved types.
2019-08-06 15:30:30 -04:00
Lawrence Forman
c30d59d5d3
@0x/types: Add FillResults, MatchedFillResults, and
...
`BatchMatchedFillResults` types.
`@0x/contracts-utils`: Add reference functions for `SafeMath`.
`@0x/contracts-exchange-libs`: Add reference functions for `LibMath` and
`LibFillResults`.
`@0x/contracts-test-utils`: Move `*FillResults` types to `@0x/types`.
`@0x/contracts-test-utils`: Add `log_utils.ts`.
`@0x/contracts-test-utils`: Add `hexRandom()` to `hex_utils.ts`.
`@0x/contracts-test-utils`: Add the contstants: `MAX_UINT256`,
`ADDRESS_LENGTH`.
2019-08-06 15:30:30 -04:00
Lawrence Forman
c54d69e5ae
@0x/contracts-exchange: Create reference functions test util.
...
`@0x/contracts-exchange`: Use reference functions to assert fill results
in `isolated_fill_order` tests.
2019-08-06 15:27:39 -04:00
Lawrence Forman
38a1f08413
@0x/contracts-test-utils: Add MAX_UINT256 constant.
2019-08-06 15:27:39 -04:00
Lawrence Forman
e2bd80253b
@0x/contracts-exchange: More TestIsolatedExchange rework.
2019-08-06 15:27:39 -04:00
Lawrence Forman
039cc6e28b
@0x/contracts-exchange: Allow fetching of balance of multiple assets
...
in `TestIsolatedExchange` contract.
`@0x/contracts-exchange`: Refactor `IsolatedExchangeWrapper` to be more
extensible.
2019-08-06 15:27:39 -04:00
Lawrence Forman
1030c96eec
@0x/contracts-exchange: Create IsolatedExchangeWrapper class.
2019-08-06 15:27:39 -04:00
Lawrence Forman
0851c5ac8e
@0x/contracts-exchange: Run prettier.
2019-08-06 15:27:39 -04:00
Lawrence Forman
92d112083e
@0x/contracts-test-utils: Add filterLogs() and
...
`filterLogsToArguments()` helpers.
2019-08-06 15:27:39 -04:00
Lawrence Forman
1e462f5cc0
@0x/contracts-test-utils: Add ADDRESS_LENGTH constant.
2019-08-06 15:27:39 -04:00
Lawrence Forman
d974ee169a
@0x/contracts-exchange: Rename TestExchangeIsolated.sol ->
...
`TestIsolatedExchange.sol`.
`@0x/contracts-exchange`: Automatically track raw asset balances in
`TestIsolatedExchange` contract.
2019-08-06 15:27:39 -04:00
Lawrence Forman
7fb87d4039
@0x/contracts-exchange: Update signature and rich error decoder tests
...
to use `hexRandom()` and `blockchainTests()`.
2019-08-06 15:27:39 -04:00
Lawrence Forman
fc5963fa3d
@0x/contracts-test-utils: Add hexRandom() to hex_utils.ts.
2019-08-06 15:27:39 -04:00
Lawrence Forman
cfa362321d
@0x/contracts-exchange: Switch to TestExchangeIsolated contract for
...
`isolated_fill_order` tests.
2019-08-06 15:27:39 -04:00
Lawrence Forman
72c7157138
@0x/contracts-exchange: Start work on isolated fill order tests.
2019-08-06 15:27:39 -04:00
Amir Bandeali
2f91a12f19
Merge pull request #2019 from jalextowle/feature/contracts/3.0/disallow-address-zero
...
Disallow Zero address in MixinAuthorizable and Ownable
2019-08-06 10:13:28 -07:00
Amir Bandeali
abe72b7745
Merge pull request #1975 from 0xProject/feat/3.0/removeCancelOrderNoThrow
...
Use less strict validation in `cancelOrder`, remove `cancelOrderNoThrow`
2019-08-06 10:11:34 -07:00
Jacob Evans
8cd99c5a40
Update Changelog
2019-08-06 17:26:49 +10:00
Jacob Evans
ad83312009
Update @0x/coordinator-server dependency
2019-08-06 09:50:10 +10:00
Jacob Evans
9e3b1fe333
Update to latest Coordinator Config
2019-08-06 09:45:41 +10:00
Jacob Evans
c3f42995f9
Update python addresses
2019-08-06 09:45:41 +10:00
Amir Bandeali
3d3a02c892
Add mainnet StaticCall and ERC1155Proxy addresses
2019-08-06 09:45:41 +10:00
Amir Bandeali
06bec227ad
Add authorizedAddresses length check to MAP config tests
2019-08-06 09:45:40 +10:00
Amir Bandeali
5d7803323c
Add script that tests deployed contract configs
2019-08-06 09:45:40 +10:00
Jacob Evans
4303f9a025
Add Ganache addresses to contract-addresses
2019-08-06 09:45:40 +10:00
Jacob Evans
fe4c5434fa
Update migration
2019-08-06 09:45:40 +10:00
Amir Bandeali
9325bb70c5
Add testnet addresses
2019-08-06 09:45:39 +10:00
Amir Bandeali
b164557165
Add ERC1155Proxy and StaticCallProxy to build
2019-08-06 09:45:39 +10:00
Amir Bandeali
424f984ea8
Add ERC1155Proxy and StaticCallProxy artifacts
2019-08-06 09:45:39 +10:00
Amir Bandeali
e7df9d1754
Update cancelOrder and batchCancelOrders tests
2019-08-05 10:35:25 -07:00
Amir Bandeali
d3ab2b077a
Remove cancelOrderNoThrow tests
2019-08-05 10:33:21 -07:00
Amir Bandeali
467a11f4b4
Remove cancelOrderNoThrow and batchCancelOrdersNoThrow
2019-08-05 10:33:21 -07:00
Amir Bandeali
6cb8c1df42
Noop on cancel if order is already unfillable
2019-08-05 10:33:21 -07:00
Alex Towle
3915c7e8f2
Addressed final review comments
2019-08-04 23:45:02 -07:00
Alex Towle
5ba0e0dc54
Updated the structure of the archive directory
2019-08-03 16:33:28 -07:00
David Sun
78c704e3d1
Merge pull request #2032 from 0xProject/feature/asset-swapper/update-comments-info
...
Update comments for asset-swapper
2019-08-02 13:47:48 -07:00
Alex Towle
9a35e2db77
Ran prettier
2019-08-02 13:46:34 -07:00
Alex Towle
e204a6d1d0
Updated Changelog
2019-08-02 13:46:34 -07:00
Alex Towle
47ab2a1b1d
Reverted the asset-proxy back to an older version of Ownable that it was actually deployed with
2019-08-02 13:46:34 -07:00
Alex Towle
6fc38292f2
Add RichErrors for Authorizable
2019-08-02 13:45:41 -07:00
Alex Towle
89d8df3385
Moved MixinAuthorizable to Authorizable and fixed imports
2019-08-02 13:45:41 -07:00
Alex Towle
9c7df2b41e
Reverted MixinAuthorizable to old version and moved the new version to utils
2019-08-02 13:45:41 -07:00
Alex Towle
46f6816511
Updated changelogs and ran prettier
2019-08-02 13:45:12 -07:00
Alex Towle
858ccfa934
Disallow the zero address in MixinAuthorizable
2019-08-02 13:45:12 -07:00
Alex Towle
b4a3218b13
Disallow address zero in Ownable
2019-08-02 13:44:18 -07:00
James Towle
92a4556956
Merge pull request #2020 from jalextowle/feature/contracts/3.0/rewrite-dispatch-transfer-from
...
Rewrite _dispatchTransferFrom with a Solidity implementation
2019-08-02 13:42:36 -07:00
James Towle
bd42c33daa
Merge pull request #2014 from jalextowle/feature/contracts/3.0/utils-unit-tests
...
Added Unit Tests to Utils
2019-08-02 13:42:14 -07:00
Xianny
50f1a8fbd8
Add test for struct output in abi-gen (typescript) ( #2028 )
...
* add TS test for non-empty struct output
2019-08-02 13:34:19 -07:00
David Sun
0f90b7b5da
Update comments for asset-swapper
2019-08-02 13:32:45 -07:00
David Sun
bec4384a5d
Merge pull request #2030 from 0xProject/feature/website/change-credit-forms
...
Change modal contact form
2019-08-02 12:41:29 -07:00
David Sun
f361efae5a
change modal contact form
2019-08-02 12:33:34 -07:00
Greg Hysz
76ca2116ab
Merge pull request #2018 from 0xProject/feature/ContractWrappers/abiEncodeDecodeTxData
...
Decode Calldata + Return Values in Contract Wrappers
2019-08-02 09:51:01 +02:00
Greg Hysen
33d8646dc5
added start/end test comments to AbiGenDummy for consistency
2019-08-02 09:27:05 +02:00
F. Eugene Aumson
3cb5190bc6
Relax gas estimate expectation in Python doctest
2019-08-01 19:12:08 -04:00
Alex Towle
e1796a9f0f
Changed toBN to toBigNumber
2019-08-01 15:39:00 -07:00
Alex Towle
8c5c81fe70
Change all instances of throw to revert in it tests
2019-08-01 15:13:16 -07:00
Alex Towle
bf8fae2025
Update changelog
2019-08-01 14:53:01 -07:00
Alex Towle
7f2b715ceb
Rewrite _dispatchTransferFrom with a Solidity implementation
2019-08-01 14:53:00 -07:00
Francesco Agosti
5bba06bef8
Merge pull request #2026 from 0xProject/feature/what_is_0x_video_embed
...
Add sandwich video to landing page
2019-08-01 14:27:30 -07:00
fragosti
dd3f672a35
Make video wider
2019-08-01 13:56:19 -07:00
fragosti
25ef3b8445
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/what_is_0x_video_embed
2019-08-01 13:43:33 -07:00
Greg Hysen
7eb2d290d8
Ran prettier
2019-08-01 20:25:19 +02:00
Greg Hysen
678762910b
Fixed typo in callAsync.handlebars and updated expected output in abi-gen
2019-08-01 19:07:12 +02:00
Greg Hysen
da28a542c7
Added abi encoder test when bad selector is passed to method decoding
2019-08-01 19:07:12 +02:00
Greg Hysen
92602d33ad
removed unnecessary fallback function from abi-gen tests
2019-08-01 19:07:12 +02:00
Greg Hysen
03f04f4bb3
Moved contract wrapper abi tests into abi-gen package
2019-08-01 19:07:12 +02:00
Greg Hysen
0d4dd5ff0d
Appeased the linter
2019-08-01 19:05:22 +02:00
Greg Hysen
884864cc58
updated changelogs
2019-08-01 19:05:22 +02:00
Greg Hysen
7c199d83be
updated expected output for abi-gen cli tests
2019-08-01 19:00:50 +02:00
Greg Hysen
5b4c29c4bb
updated abi-gen-wrappers
2019-08-01 19:00:50 +02:00
Greg Hysen
f97ee80955
Added tests for strict decoding of method arguments
2019-08-01 19:00:50 +02:00
Greg Hysen
547322ae63
Do not allow allow reading beyond calldata
2019-08-01 19:00:50 +02:00
Greg Hysen
db74db622e
Added getABIDecodedTransactionData and getABIDecodedReturnData to contract wrappers + test cases
2019-08-01 19:00:50 +02:00
F. Eugene Aumson
57318c0041
Python nested wrapper methods & estimate_gas ( #1996 )
...
* git rm unnecessary .gitkeep file
* After all Pytest runs, show short test summary
* abi-gen/Py: facilitate inlining of parameter lists
Effectively, stopped new-lines from being introduced by calls to the
`params` and `typed_params` partials.
* abi-gen: simple Py wrapper test for local dev'ment
* abi-gen/Py: stop gen'ing ValidatorBase
* abi-gen/Py: declare abi() wrapper method in Base
* abi-gen/Py: methods as classes to ease call/sendTx
Represent methods as classes in order to faciliate access to a method's
different operations (call, send_transaction, etc).
* contract_wrappers.py: make Base methods public
Changed some methods on BaseContractWrapper to be public.
* contract_wrappers.py: remove unused method
* contract_wrappers.py: extract method
* abi-gen/Py: inline method
* contract_wrappers.py: fix bug in call()
We were passing transaction parameters through to sendTransaction()
invocations, but not to call() invocations.
* abi-gen/Py: remove `view_only` param to call/tx
Formerly, in the BaseContractWrapper, there was just one function used
for both eth_call and eth_sendTransaction, and you would distinguish
between the two by specifying `view_only=True` when you wanted a call.
This commit defines a method dedicated to executing an eth_call, and
leaves the old method behind, with the `view_only` param removed, to be
used for eth_sendTransaction.
* abi-gen/Py: rename method
* contract_wrappers/Py: simplify web3 func handling
Pass web3 function instance into generated wrapper method class
constructor, rather than having that class obtain it upon each method
call.
Really this is just an elimination of a call to
BaseContractWrapper.contract_instance(), which will be removed
completely in a shortly-upcoming commit.
* contract_wrappers.py: inline method
Inline and remove method BaseContractWrapper.contract_instance().
* contract_wrappers.py: pass Validator to *Method
Pass a ValidatorBase instance into construction of the contract method
classes, *Method, to eliminate another dependency on the containing
contract object, which will be eliminated completely in a
shortly-upcoming commit.
* abi-gen/Py: BaseContractWrapper -> ContractMethod
Change the fundamental thing-to-be-wrapped from the contract to the
method. Since the named method classes were introduced (in a previous
commit), and since the operations contained within the Base are
predominantly focused on supporting method calls more than anything
else, it makes more intuitive sense to provide a base for the methods
than for the contract.
With this change, the method classes no longer require a contract object
to be passed to their constructors. The contract members that the
methods were utilizing are now passed directly to the method
constructor.
* contract_wrappers.py: rename module to bases...
...from _base_contract_wrapper. The old name hasn't made sense since
ValidatorBase was moved into that module, and definitely doesn't make
sense now that the fundamental thing-to-be-wrapped has changed from the
contract to the method. Also renamed to make it public (removed the
leading underscore) since we're generating code that will depend on it.
* abi-gen/Py: clarify call/sendTx docstrings
* abi-gen/Py: adjust whitespace
* contract_wrappers.py: inline method
* abi-gen/Py: rename class ValidatorBase...
...to just Validator. It's in the "bases" module, which provides the
context needed in order to know it's a base class
* python-packages: fix silent failures of ./parallel
* contract_wrappers.py: remove private_key support
Having this present was overcomplicating interfaces. And it was
untested (and not readily working when testing was attempted). And it
only provided a thin layer of convenience, which a client could easily
code up themselves.
* contract_wrappers.py: inline method
* contract_wrappers.py: rm unused member variables
* contract_wrappers.py: rm unnecessary instance var
* abi-gen/Py: add estimate_gas to gen'd methods
* update CHANGELOG.json
2019-08-01 12:47:52 -04:00
Lawrence Forman
974189045a
Merge pull request #2007 from 0xProject/feature/3.0/mocha-blockchain-extensions
...
Mocha extensions for smart contract tests
2019-08-01 09:43:35 -04:00
fabioberger
4eb0767834
Update deps in private packages
2019-08-01 14:56:23 +02:00
fragosti
92bb7808ce
Remove react-modal-video from website types
2019-07-31 17:50:21 -07:00
fragosti
abfe7d1613
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/what_is_0x_video_embed
2019-07-31 17:13:58 -07:00
fragosti
6c72239365
Remove react-modal-video as a dep and use the sass directly
2019-07-31 17:06:10 -07:00
fragosti
8001daad8c
Fix linting errors
2019-07-31 16:40:39 -07:00
fragosti
73a38ab4f4
Add sandwich video to landing page
2019-07-31 15:15:55 -07:00
David Sun
281c207921
Publish
...
- @0x/contracts-asset-proxy@2.2.4
- @0x/contracts-coordinator@2.0.9
- @0x/contracts-dev-utils@0.0.6
- @0x/contracts-exchange-forwarder@3.0.8
- @0x/contracts-exchange@2.1.10
- @0x/contracts-extensions@4.0.4
- @0x/contracts-multisig@3.1.10
2019-07-31 14:14:47 -07:00
David Sun
ae531eef5f
Updated CHANGELOGS
2019-07-31 14:14:35 -07:00
David Sun
d8b11238e6
reverted changelog for packages not published
2019-07-31 14:02:18 -07:00
Alex Towle
77feaec444
Fixed lingering review comments
2019-07-31 13:59:33 -07:00
David Sun
d36eb04ae8
Publish
...
- @0x/contracts-asset-proxy@2.2.4
- @0x/contracts-coordinator@2.0.9
- @0x/contracts-dev-utils@0.0.6
- @0x/contracts-erc1155@1.1.11
- @0x/contracts-erc20@2.2.10
- @0x/contracts-erc721@2.1.11
- @0x/contracts-exchange-forwarder@3.0.8
- @0x/contracts-exchange-libs@3.0.4
- @0x/contracts-exchange@2.1.10
- @0x/contracts-extensions@4.0.4
- @0x/contracts-multisig@3.1.10
- @0x/contracts-test-utils@3.1.12
- @0x/contracts-utils@3.2.0
- 0x.js@6.0.14
- @0x/abi-gen-templates@2.4.0
- @0x/abi-gen-wrappers@5.1.0
- @0x/abi-gen@3.1.2
- @0x/assert@2.1.2
- @0x/asset-buyer@6.1.10
- @0x/asset-swapper@1.0.0
- @0x/base-contract@5.3.0
- @0x/connect@5.0.15
- @0x/contract-artifacts@2.0.3
- @0x/contract-wrappers@10.1.0
- @0x/contracts-gen@1.0.12
- @0x/dev-utils@2.2.6
- @0x/fill-scenarios@3.0.15
- @0x/json-schemas@3.1.12
- @0x/migrations@4.1.11
- @0x/order-utils@8.2.4
- @0x/order-watcher@4.0.16
- @0x/sol-compiler@3.1.11
- @0x/sol-coverage@3.0.8
- @0x/sol-doc@2.0.15
- @0x/sol-profiler@3.1.10
- @0x/sol-trace@2.0.16
- @0x/sol-tracing-utils@6.0.15
- @0x/sra-spec@2.0.13
- @0x/subproviders@5.0.0
- @0x/utils@4.4.2
- @0x/web3-wrapper@6.0.9
2019-07-31 13:36:00 -07:00
David Sun
b97ba35279
Updated CHANGELOGS
2019-07-31 13:35:49 -07:00
David Sun
46efe92a72
Merge pull request #2025 from 0xProject/feature/asset-swapper/remove-react-deprecated
...
Removed react-docs from asset_swapper
2019-07-31 10:39:21 -07:00
David Sun
9cc27c7d1b
Removed react-docs from asset_swapper
2019-07-31 10:14:31 -07:00
David Sun
7d3396f9c5
Merge pull request #2015 from 0xProject/feature/asset-swapper/bump-to-1.0.0
...
Version bump for asset-buyer and docs prep 1.0.0
2019-07-30 17:31:31 -07:00
David Sun
918ef13714
details
2019-07-30 16:48:46 -07:00
Alex Towle
e5b6921de9
Updated Changelog
2019-07-30 15:56:31 -07:00
Alex Towle
3ca3a2820d
Fixed review comments
2019-07-30 15:53:01 -07:00
Lawrence Forman
9f4933e33d
@0x/contracts-test-utils: Make BlockchainContextDefinition interface
...
more concise.
2019-07-30 16:59:52 -04:00
Lawrence Forman
3cf48a831b
@0x/contracts-test-utils: Export a custom describe() instead of
...
extending Mocha's ambient declarations.
`@0x/contracts-exchange`: Use `describe.optional` instead of
`blockchainTests.optional` in `test/fill_order.ts`.
2019-07-30 16:59:52 -04:00
Lawrence Forman
930b742663
@0x/contracts-test-utils: Fix blockchain environment not being created
...
with top-level `blockchainTests.resets()` directive.
2019-07-30 16:59:52 -04:00
Lawrence Forman
d3870fed1c
@0x/contracts-exchange: Update test/fill_order.ts to use the new
...
mocha blockchain extensions.
2019-07-30 16:59:52 -04:00
Lawrence Forman
99e242affd
@0x/contracts-test-utils: Make blockchainTests() automatically call blockchainLifecycle.startAsync() and blockchainLifecycle.revertAsync() in a before() and after() directive.
2019-07-30 16:59:52 -04:00
Lawrence Forman
9792246970
@0x/contracts-test-utils: Tweak mocha blockchain extensions tests.
2019-07-30 16:59:52 -04:00
Lawrence Forman
020b953166
@0x/contracts-test-utils: Update CHANGELOG.
2019-07-30 16:59:52 -04:00
Lawrence Forman
52aa8e914a
@0x/contracts-test-utils: Tweak mocha blockchain extensions tests.
2019-07-30 16:59:52 -04:00
Lawrence Forman
e01eadaecd
@0x/contracts-exchange: Add tests and run prettier.
2019-07-30 16:59:52 -04:00
Lawrence Forman
61fc32b7c0
@0x/contracts-test-utils: Add optional modifier to blockchainTests().
2019-07-30 16:59:52 -04:00
Lawrence Forman
a9c8207bb0
@0x/contracts-test-utils: Pass a more robust BlockchainTestsEnvironment object to blockchainTests() callback.
2019-07-30 16:59:52 -04:00
Lawrence Forman
eac4f172fe
@0x/contracts-test-utils: Just do a naked mocha import in mocha_blockchain.
2019-07-30 16:59:52 -04:00
Lawrence Forman
d6271426fd
@0x/contracts-test-utils: Rename blockchainTests.reset to blockchainTests.resets.
2019-07-30 16:59:52 -04:00
Lawrence Forman
7e59110049
@0x/contracts-test-utils: Create blockchainTests mocha fixture directive.
...
`@0x/contracts-test-utils`: Automatically call `chaiSetup.configure()`.
`@0x/contracts-test-utils`: Export `expect` as an alias for `chai.expect`.
2019-07-30 16:59:52 -04:00
David Sun
9d12462893
updated comments in SwapQuoter
2019-07-30 12:25:58 -07:00
James Towle
8cf4fb9adc
Update contracts/utils/test/safe_math.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-30 12:08:35 -07:00
James Towle
f044f364cb
Update contracts/utils/test/reentrancy_guard.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-30 12:08:35 -07:00
James Towle
4d39892a11
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-30 12:08:35 -07:00
James Towle
bf1ebe8e53
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-30 12:08:35 -07:00
James Towle
77b4f32274
Update contracts/utils/test/ownable.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-30 12:06:35 -07:00
Alex Towle
b2ada13a21
Ran prettier
2019-07-30 12:06:35 -07:00
Alex Towle
03fced81f5
Added unit tests for LibRichErrors
2019-07-30 12:06:35 -07:00
Alex Towle
f9292a8fb8
Added unit tests for LibEIP712
2019-07-30 12:06:35 -07:00
Alex Towle
065f46a020
Added unit tests for LibAddress
2019-07-30 12:06:35 -07:00
Alex Towle
6efb7027b5
Added unit tests for ReentrancyGuard
2019-07-30 12:06:35 -07:00
Alex Towle
f4f922acb5
Added unit tests for Ownable
2019-07-30 12:06:35 -07:00
Alex Towle
4a4d2e7079
Added unit tests for SafeMath
2019-07-30 12:06:35 -07:00
David Sun
ed44e16a95
prettier
2019-07-30 10:47:58 -07:00
Amir Bandeali
1634c90179
Merge pull request #2016 from 0xProject/fix/3.0/circleci-workflow-fix-90d1decb8
...
Fix circleci workflow failing on 3.0 branch
2019-07-30 12:06:28 -05:00
Fabio B
dadab94644
Merge pull request #2004 from 0xProject/fix/githubDepsIssue
...
Fix react-highlight dep issue
2019-07-30 09:56:43 +02:00
Lawrence Forman
9b5ba6806f
@0x/contracts-asset-proxy: Fix broken erc1155_proxy tests.
...
`@0x/contracts-asset-proxy`: Add `ERC1155Proxy.sol` to .solhintignore.
Fix circleci config to work with 3.0 branch.
2019-07-29 23:47:04 -04:00
Lawrence Forman
4afca6ca8d
Fix circleci workflow failing due to test-python being required in config.
2019-07-29 21:54:43 -04:00
David Sun
7ec232a470
bumped version and added to docs
2019-07-29 18:42:24 -07:00
David Sun
dc3569392c
updated changelog
2019-07-29 17:07:16 -07:00
David Sun
11999cd407
Merge pull request #2011 from 0xProject/feature/asset-swapper/renaming-to
...
Asset swapper renaming to -> toAddress
2019-07-29 15:48:31 -07:00
David Sun
f786f8a7f6
renaming to -> toAddress
2019-07-29 14:43:51 -07:00
fabioberger
aab39e6ae0
Use explicit URL form for Github dependencies with commit hash to avoid Yarn caching issue
2019-07-29 22:40:31 +02:00
Fabio B
31d3968649
Merge pull request #1993 from 0xProject/remove/reactDocsAndReactShared
...
Remove react-docs and react-shared packages
2019-07-29 22:37:52 +02:00
David Sun
2cd0b01019
Merge pull request #2009 from 0xProject/feature/website/remove-zeip-vote-banner
...
Removed Banner
2019-07-29 11:29:32 -07:00
David Sun
a6bc0db896
removed banner
2019-07-29 11:24:47 -07:00
Greg Hysz
7cba95b523
Merge pull request #1995 from 0xProject/feature/ContractWrappers/decodeLogArgs
...
Decode log arguments in `awaitTransactionSuccessAsync`
2019-07-29 20:23:36 +02:00
David Sun
1b976130ce
Merge pull request #1980 from 0xProject/feature/asset-swapper/add-test-coverage
...
Add test coverage for asset-swapper
2019-07-29 11:20:36 -07:00
David Sun
e9babc5a94
prettier + lint
2019-07-29 10:52:58 -07:00
David Sun
c8d0ff846c
Finished up adding test coverage
2019-07-29 10:52:58 -07:00
David Sun
db1e9769d0
Fixed testing bug
2019-07-29 10:52:58 -07:00
David Sun
4b038b07ed
changes for testing
2019-07-29 10:52:58 -07:00
David Sun
4c17c142f9
ground work for forwarder consumer
2019-07-29 10:52:58 -07:00
David Sun
65b2fa13ac
added coverage for swap quote calculator
2019-07-29 10:52:58 -07:00
David Sun
c375199daa
add affiliate fee utils tests
2019-07-29 10:52:58 -07:00
David Sun
805131cf1e
add affiliate fee utils
2019-07-29 10:52:58 -07:00
Greg Hysen
6f64115561
Switched assignment of logDecodeDependenciesAbiOnly for readability and to pass linter
2019-07-29 17:51:56 +02:00
Greg Hysen
0aadb789a5
Fixed linter errors
2019-07-29 16:45:13 +02:00
Greg Hysen
26ee4d626c
ran prettier on abi-gen-wrappers
2019-07-29 15:57:59 +02:00
Greg Hysen
a8939d3eda
Updated expected typescript output for abi-gen cli tests
2019-07-29 12:28:28 +02:00
Greg Hysen
048e48b03a
updated contract wrappers
2019-07-29 12:24:19 +02:00
Greg Hysen
c2f34baee0
Changed artifactDependencies/abiDependencies to logDecodeDependencies + removed lodash depency in contract wrappers
2019-07-29 12:19:35 +02:00
Greg Hysen
8961b476ef
fixed typo in a test
2019-07-29 12:19:35 +02:00
Greg Hysen
58e08335b5
Added another test to show what happens when decoding both local and downstream events
2019-07-29 12:19:35 +02:00
Greg Hysen
ea8fc1d93f
updated test output from abi-gen to account for changes to deployFrom0xArtifactAsync and deployAsync
2019-07-29 12:19:35 +02:00
Greg Hysen
2968dfb2ae
Minor readability improvements
2019-07-29 12:14:37 +02:00
Greg Hysen
24783107ba
Updated generated contract wrappers and ran linter
2019-07-29 12:11:58 +02:00
Greg Hysen
365c056b0f
Added tests for for decoding log arguments when artifact dependencies are included/excluded
2019-07-29 12:11:02 +02:00
Greg Hysen
88a7d9cca8
Updated changelogs for deployFrom0xArtifactAsync interface change
2019-07-29 12:11:02 +02:00
Greg Hysen
d8cf9d54aa
Updated all instances of deployFrom0xArtifactAsync
2019-07-29 12:07:28 +02:00
Greg Hysen
df746c5ff4
Decode log arguments in awaitTransactionSuccessAsync, when ABI is recognized.
2019-07-29 12:04:37 +02:00
Fabio B
aa29526ae4
Merge pull request #2003 from 0xProject/updateLodash
...
Update lodash
2019-07-29 00:57:16 +02:00
fabioberger
f0b5616aba
Use more explicit URL dep pinning to avoid yarn cache issue with Github deps
2019-07-27 16:14:51 +02:00
fabioberger
2eca95df00
Fix version test
2019-07-27 15:35:39 +02:00
fabioberger
f560c2e66a
stop exporting removed EthLightwalletSubprovider
2019-07-27 14:52:10 +02:00
fabioberger
5e19496e32
Update as many lodash deps to higher versions
2019-07-27 14:45:20 +02:00
fabioberger
aeadaba005
update publish-release fork again with updated inquirer dep
2019-07-27 14:41:46 +02:00
fabioberger
8dfda9ffdd
Update publish-release fork to version with v4 lodash dep
2019-07-27 14:38:05 +02:00
fabioberger
91992bb034
Update ganache-core
2019-07-27 14:37:50 +02:00
fabioberger
34a93857a0
Remove eth-lighwallet subprovider
2019-07-27 14:34:10 +02:00
fabioberger
fbda096aa9
Fix linter errors
2019-07-27 14:13:20 +02:00
fabioberger
24a26aef70
Remove remaining references to react-shared
2019-07-27 14:13:20 +02:00
fabioberger
ec7f9d8a63
Remove react-shared package and fold it into website
2019-07-27 14:13:20 +02:00
fabioberger
cc7dec7a99
Move react-docs into website and delete it as a standalone package
2019-07-27 14:12:57 +02:00
Xianny
46384ce80d
Allow generated wrappers to subscribe/unsubscribe to events ( #1970 )
...
* Define SubscriptionManager and instantiate in generated wrappers
* expose subscribe/unsubscribe in generated wrappers
* update changelogs
* use SubscriptionManager in `@0x/contract-wrappers`
2019-07-26 16:54:31 -07:00
F. Eugene Aumson
5aeb626045
abi-gen: skip run_mocha on OSX ( #2002 )
2019-07-26 13:28:32 -04:00
David Sun
d2a27f1a48
Merge pull request #1983 from 0xProject/feature/website/alex-towle
...
Adding Alex Towle to team page
2019-07-26 09:51:54 -07:00
Fabio B
f07c67202f
Merge pull request #1999 from 0xProject/upgradeMocha
...
Update Mocha & Chokidar Deps
2019-07-26 18:39:54 +02:00
fabioberger
3a3658708a
Get all Mocha's on same version and add typings to all packages
2019-07-26 18:05:57 +02:00
fabioberger
f3c5d19246
Update remaining handlebars of deps of deps
2019-07-26 17:42:59 +02:00
fabioberger
c66d8f202a
Update Mocha
2019-07-26 17:38:44 +02:00
Fabio B
ec641c171d
Merge pull request #1994 from 0xProject/fix/upgradeDeps
...
Update dependencies
2019-07-26 14:50:57 +02:00
David Sun
773d624365
Merge pull request #1997 from 0xProject/feature/asset-swapper/fix-changelog
...
Asset-swapper fix changelog
2019-07-25 15:18:18 -07:00
David Sun
25bd97a014
updated changelog
2019-07-25 14:49:34 -07:00
fabioberger
5dd9e28f72
Fix handlebar header callbacks now that the typings changed
2019-07-25 12:24:44 +02:00
fabioberger
cc1ef6f268
Update handlebars dep
2019-07-25 11:42:23 +02:00
fabioberger
967e361da3
Use https for all registry URLs
2019-07-25 11:40:13 +02:00
fabioberger
398097900c
Fix test-publish CI test when no packages exist to publish
2019-07-25 11:30:55 +02:00
fabioberger
b86473f3c7
Update yarn.lock
2019-07-24 22:33:27 +02:00
fabioberger
3d361c6b4a
Special-case if there are no packages to publish
2019-07-24 22:33:12 +02:00
fabioberger
3346024ea7
Upgrade lerna fork to fix test-publish failure
2019-07-24 22:20:09 +02:00
Fabio B
2fecf6c80b
Merge pull request #1982 from 0xProject/fix/enableLerna2FAPrompt
...
publishing: prompt user for OTP
2019-07-24 20:27:24 +02:00
David Sun
183b4fb7ee
Merge pull request #1988 from 0xProject/feature/asset-swapper/optimized-market-sell-output
...
Added optimization utils for asset-swapper exchange consumer
2019-07-24 11:09:15 -07:00
David Sun
0e2afc5dcb
Merge pull request #1985 from 0xProject/feature/asset-swapper/update-changelog
...
Updated CHANGELOG.json for asset-swapper
2019-07-24 11:04:47 -07:00
David Sun
91aa716c07
prettier and lint
2019-07-24 10:46:22 -07:00
David Sun
9977626de0
Switched NULL_ADDRESS to NULL_BYTES
2019-07-24 10:46:22 -07:00
David Sun
8bb3fb5bb3
added optimization utils
2019-07-24 10:46:22 -07:00
David Sun
6d7adb277e
prettier
2019-07-24 10:42:52 -07:00
fabioberger
fef1bd13b5
Add HACK comment about writing cdVersions to a file
2019-07-24 19:38:46 +02:00
fabioberger
910bba9976
Bump Lerna fork version to include change of cdVersions flag to file path and separator to | between package versions
2019-07-24 19:38:46 +02:00
fabioberger
cd2d756717
Use spawn instead of exec so we can intercept any 2FA requests and bubble them to the user
2019-07-24 19:38:46 +02:00
fabioberger
0a47d89963
Use spawn instead of exec so we can bubble up the OTP prompt since OTP is only valid for 30sec, and we might need several
2019-07-24 19:38:46 +02:00
Amir Bandeali
90d1decb87
Fix build errors
2019-07-24 10:26:28 -07:00
fabioberger
65e5b09cd1
Fix outdated versions of monorepo dependencies
2019-07-24 19:23:05 +02:00
Fabio Berger
6f3cee1a1e
Publish
...
- @0x/contracts-asset-proxy@2.2.3
- @0x/contracts-coordinator@2.0.8
- @0x/contracts-dev-utils@0.0.5
- @0x/contracts-erc1155@1.1.10
- @0x/contracts-erc20@2.2.9
- @0x/contracts-erc721@2.1.10
- @0x/contracts-exchange-forwarder@3.0.7
- @0x/contracts-exchange-libs@3.0.3
- @0x/contracts-exchange@2.1.9
- @0x/contracts-extensions@4.0.3
- @0x/contracts-multisig@3.1.9
- @0x/contracts-test-utils@3.1.11
- @0x/contracts-utils@3.1.10
- 0x.js@6.0.13
- @0x/abi-gen-templates@2.3.0
- @0x/abi-gen-wrappers@5.0.3
- @0x/abi-gen@3.1.1
- @0x/assert@2.1.1
- @0x/asset-buyer@6.1.9
- @0x/asset-swapper@0.0.5
- @0x/base-contract@5.1.2
- @0x/connect@5.0.14
- @0x/contract-artifacts@2.0.2
- @0x/contract-wrappers@9.1.8
- @0x/contracts-gen@1.0.11
- @0x/dev-utils@2.2.5
- ethereum-types@2.1.4
- @0x/fill-scenarios@3.0.14
- @0x/json-schemas@3.1.11
- @0x/migrations@4.1.10
- @0x/order-utils@8.2.3
- @0x/order-watcher@4.0.15
- @0x/react-docs@2.0.15
- @0x/react-shared@2.0.15
- @0x/sol-compiler@3.1.10
- @0x/sol-coverage@3.0.7
- @0x/sol-doc@2.0.14
- @0x/sol-profiler@3.1.9
- @0x/sol-resolver@2.0.9
- @0x/sol-trace@2.0.15
- @0x/sol-tracing-utils@6.0.14
- @0x/sra-spec@2.0.12
- @0x/subproviders@4.1.2
- @0x/types@2.4.1
- @0x/typescript-typings@4.2.4
- @0x/utils@4.4.1
- @0x/web3-wrapper@6.0.8
2019-07-24 01:50:18 -07:00
Fabio Berger
c43d4bbf71
Updated CHANGELOGS
2019-07-24 01:50:00 -07:00
Jacob Evans
b7337410aa
Fix Vote router link root
2019-07-24 17:27:46 +10:00
Alex Towle
1d8cb1b107
Addressed lingering review comments
2019-07-23 15:53:26 -07:00
Alex Towle
65e3d9873d
Added ERC1155 Aggregation
2019-07-23 15:53:26 -07:00
Alex Towle
50b22c673e
Addressed review comments
2019-07-23 15:53:26 -07:00
Alex Towle
4ef8b7f733
Rebased onto 3.0
2019-07-23 15:53:26 -07:00
James Towle
e0ec26255b
Fixed lingering issues
2019-07-23 15:53:26 -07:00
James Towle
ffa32f7610
Changed the returndata for batchMatchOrders
2019-07-23 15:53:26 -07:00
James Towle
1c1d257bd9
Addressed lingering review comments
2019-07-23 15:53:26 -07:00
James Towle
5611cb91a0
Adapted tests from matchOrders to test matchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
e0cff4b74e
Updated batchMatchOrders to fix an edge case and added tests
2019-07-23 15:53:26 -07:00
James Towle
c1985e6986
Addessed some review comments
2019-07-23 15:53:26 -07:00
James Towle
416b1aee98
Improved the testing for matchOrders and batchMatchOrders
2019-07-23 15:53:26 -07:00
James Towle
7bb9d8b03a
Created a test for case 3 of matchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
0473c82029
Improved test coverage for batchMatchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
63bd1a4a22
Ran prettier
2019-07-23 15:53:26 -07:00
James Towle
5a64759c83
Added a reentrancy test for matchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
0df68a6e06
Added testing for the BatchMatchOrdersError Rich Error
2019-07-23 15:53:26 -07:00
James Towle
29eff3b515
Rebased onto PR #1900
2019-07-23 15:53:26 -07:00
James Towle
073976de10
Split up TestExchangeInternals into two contracts
2019-07-23 15:53:26 -07:00
James Towle
1fe159f432
Polished MixinMatchOrders and removed unimplemented test
2019-07-23 15:53:26 -07:00
James Towle
adad7f4e3f
Modified the matchOrders tests to test matchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
378710533e
Implemented matchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
d966848ef8
Implemented batchMatchOrdersWithMaximalFill
2019-07-23 15:53:26 -07:00
James Towle
d6d613ca37
Added a new test
2019-07-23 15:53:26 -07:00
James Towle
1a385de367
Improved the efficiency of batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
73eb56c072
Added RichErrors to batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
9651941cce
Added getMatchOrdersResultsAsync and getBatchMatchOrdersResultsAsync
2019-07-23 15:53:25 -07:00
James Towle
29be79814f
Added a test for partial matching
2019-07-23 15:53:25 -07:00
James Towle
1ea220f44f
Removed batchMatchOrdersWithMaximumFill
2019-07-23 15:53:25 -07:00
James Towle
6cf11554de
Created tests for batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
f289b3112b
Implemented batchMatchOrders
2019-07-23 15:53:25 -07:00
James Towle
c61df50167
Updated Changelogs
2019-07-23 15:53:25 -07:00
James Towle
df5ec33330
@0x:contracts-utils Address remaining review comments
2019-07-23 15:53:25 -07:00
James Towle
6384518ee1
@0x:contracts-exchange Updated LibMath to use library rich errors
2019-07-23 15:53:25 -07:00
James Towle
87bf940f89
@0x:contracts-exchange Refactor OrderTransferSimulationUtils
2019-07-23 15:53:25 -07:00
James Towle
53db047a4e
@0x:contracts-exchange Eliminated code duplication within LibExchangeRichErrors and IExchangeRichErrors
2019-07-23 15:53:25 -07:00
James Towle
dabef47ce7
@0x:contracts-exchange Updated MixinTransactions to use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
4de1d69282
@0x:contracts-exchange Updated MixinMatchOrders to use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
015c35f2b2
@0x:contracts-exchange Updated MixinSignatureValidator to use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
5a491b2624
@0x:contracts-exchange Updated MixinWrapperFunctions to use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
3d95817dbe
@0x:contracts-exchange Updated MixinAssetProxyDispatcher and MixinExchangeCore to use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
96ab74dea4
@0x:contracts-utils Refactored utils to exclusively use library RichErrors
2019-07-23 15:53:25 -07:00
James Towle
f937a0b038
@0x:contracts-utils Added RichErrors to ReentrancyGuard
2019-07-23 15:53:25 -07:00
James Towle
da38285046
@0x:contracts-utils Added RichErrors to LibAddressArray
2019-07-23 15:53:25 -07:00
James Towle
d3db2dcfbb
@0x:contracts-utils Added RichErrors to LibBytes
2019-07-23 15:53:25 -07:00
Lawrence Forman
c788db785b
@0x/contracts-exchange: Use named return values in MixinSignatureValidator.sol
2019-07-23 15:53:25 -07:00
Lawrence Forman
6df41d2562
@0x/contracts-exchange: REALLY make assertValidFill() internal again.
2019-07-23 15:53:25 -07:00
Lawrence Forman
74fb43998e
@0x/contracts-exchange: Make assertValidFill() internal again.
2019-07-23 15:53:25 -07:00
Lawrence Forman
c1f8eabd12
@0x/contracts-exchange: Cosmetic changes to contracts.
2019-07-23 15:53:25 -07:00
Lawrence Forman
2f5a1eebe0
@0x/contracts-exchange: Make assertValidFill and calculateMatchedFillResults public
2019-07-23 15:53:25 -07:00
Lawrence Forman
4791c120fe
@0x/contracts-exchange: Run contracts:gen
2019-07-23 15:53:24 -07:00
Lawrence Forman
f6d445b553
@0x/order-utils: Update CHANGELOG
2019-07-23 15:53:24 -07:00
Lawrence Forman
db3dd4ae5a
@0x/contracts-exchange: Update CHANGELOG
2019-07-23 15:53:24 -07:00
Lawrence Forman
d6ba03916a
@0x/contracts-exchange: Update tests for new/consolidated signature types.
...
`@0x/contracts-exchange`: Update `Whitelist` example for new signature types.
2019-07-23 15:53:24 -07:00
Lawrence Forman
4734acbe61
@0x/contracts-test-utils: Add hexConcat() in hex_utils.ts.
2019-07-23 15:53:24 -07:00
Lawrence Forman
527256b416
@0x/contracts-exchange: Remove isValidOrderSignature() from IWallet.
2019-07-23 15:53:24 -07:00
Lawrence Forman
7a0dc7a364
@0x/contracts-exchange: Add isValidHashSignature() back.
...
`@0x/contracts-exchange`: Remove references to removed signature types and associated functions.
2019-07-23 15:53:24 -07:00
Lawrence Forman
7f88e8ad6e
@0x/order-utils: Remove unused exchange revert errors
2019-07-23 15:53:24 -07:00
Lawrence Forman
c7324121ed
@0x/types: Consolidate signature types.
2019-07-23 15:53:24 -07:00
Lawrence Forman
588ca3a315
@0x/contracts-exchange: Fix linearization issues.
2019-07-23 15:53:24 -07:00
Lawrence Forman
eb9b2f355e
@0x/contracts-exchange: Consolidate signature types.
...
`@0x/contracts-exchange`: Fighting with linearization issues.
2019-07-23 15:53:24 -07:00
Lawrence Forman
cf6144599d
Fix linter errors
2019-07-23 15:53:24 -07:00
Lawrence Forman
c23bb5e589
@0x/contracts-exchange: Add comments about preserving signatures in MixinSignatureValidator.sol
2019-07-23 15:53:24 -07:00
Lawrence Forman
0eb5c825a5
@0x/contracts-exchange: Refactor out EIP1271_MAGIC_VALUE into a LibEIP1271 contract and inherit from that.
...
`@0x/contracts-exchange`: Use `LibBytes.readBytes4()` to validate EIP1271 return values and be more permissive of shorter return values.
`@0x/contracts-exchange`: Use `abi.decode()` for `EIP1271OrderWallet` in `TestSignatureValidator.sol`.
`@0x/contracts-exchange`: Correct minor formatting changes in contracts.
2019-07-23 15:53:24 -07:00
Lawrence Forman
5dfb65b084
@0x/contracts-exchange: Fix comments in test/signature_validator.ts
2019-07-23 15:53:24 -07:00
Lawrence Forman
ddbe2acbf5
@0x/contracts-utils: Add LibEIP1271.sol
2019-07-23 15:53:24 -07:00
Lawrence Forman
2ff3735adc
Rebase against 3.0
2019-07-23 15:53:24 -07:00
Lawrence Forman
c2752d5931
Update changelogs
2019-07-23 15:53:24 -07:00
Lawrence Forman
309dd7f300
Run prettier/linter
2019-07-23 15:53:24 -07:00
Lawrence Forman
33df11b755
@0x/contracts-exchange: Rename WalletOrderValidator to OrderWallet signature type
...
`@0x/contracts-exchange`: Rename `SignatureWalletOrderValidatorError` to `SignatureOrderWalletError`
`@0x/contracts-exchange`: Add `IEIP1271Wallet` interface
`@0x/contracts-exchange`: Add `EIP1271Wallet` and `EIP1271OrderWallet` to `SignatureType`
`@0x/contracts-exchange`: Always check `OrderValidator`, `OrderWallet`, `EIP1271OrderWallet` signature types on every fill
`@0x/contracts-exchange`: Add tests for EIP1271 signature types.
`@0x/contracts-exchange`: Update `LibExchangeRichErrorDecoder` for new/renamed Error types.
2019-07-23 15:53:24 -07:00
Lawrence Forman
bd5babf65d
@0x/order-utils: Rename SignatureWalletOrderValidatorError to SignatureOrderWalletError RevertError type.
2019-07-23 15:53:24 -07:00
Lawrence Forman
3c07cbde47
@0x/types: Rename WalletOrderValidator to OrderWallet in SignatureType
...
`@0x/types`: Add `EIP1271Wallet` and `EIP1271OrderWallet` to `SignatureType`
2019-07-23 15:53:24 -07:00
Lawrence Forman
dee5ff852d
@0x/contracts-exchange: Have TestValidatorWallet always accept WalletOrderValidator if makerAddress == this.
...
`@0x/contracts-exchange`: Update tests for repeatable signature validation.
2019-07-23 15:53:24 -07:00
Lawrence Forman
073930004d
@0x/order-utils: Add validator field to SignatureOrderValidatorError and SignatureValidatorError RevertError types.
...
`@0x/order-utils`: Add `SignatureOrderValidatorNotApprovedError` and `SignatureValidatorNotApprovedError` `RevertError` types.
2019-07-23 15:53:24 -07:00
Lawrence Forman
01574c5a87
@0x/contracts-exchange: Update changelog
2019-07-23 15:53:24 -07:00
Lawrence Forman
3a49369e68
@0x/utils: Add toStringTag symbol to RevertError
2019-07-23 15:53:24 -07:00
Lawrence Forman
42f7b7cc19
@0x/contracts-exchange: Always check OrderValidator and WalletOrderValidator signature types on every fill
...
`@0x/contracts-exchange`: Add `validatorAddress` field to `SignatureValidatorError` and `SignatureOrderValidatorError` rich reverts
`@0x/contracts-exchange`: Add separate `SignatureOrderValidatorNotApprovedError` for `OrderValidator` signatures
`@0x/contracts-exchange`: Consolidate Wallet and Validator test contracts into a single configurable `TestValidatorWallet` contract.
`@0x/contracts-exchange`: Rewrite many tests in `signature_validator.ts` for brevity.
2019-07-23 15:53:24 -07:00
Lawrence Forman
5f8ebc3601
@0x/base-contract: Make PromiseWithTransactionHash fully compatible with regular Promise types.
...
`@0x/contracts/exchange` Make `OrderValidator` and `WalletOrderValidator` signature types checked for every fill (not just first)'
2019-07-23 15:53:24 -07:00
Lawrence Forman
2e5645108b
Update generated wrappers for coordinator and exchange.
2019-07-23 15:53:24 -07:00
Amir Bandeali
d73f7beb2f
Fix StaticCallProxy Exchange integration tests
2019-07-23 15:52:20 -07:00
Amir Bandeali
4f6f126952
Fix build
2019-07-23 15:52:20 -07:00
Amir Bandeali
0099cdd6ad
Update comments and add a catch-all else in getSimulatedOrderTransferResults function
2019-07-23 15:52:20 -07:00
Amir Bandeali
2b7114b704
Update CHANGELOGs
2019-07-23 15:52:20 -07:00
Amir Bandeali
2041d0d000
Add fillOrder transfer ordering tests
2019-07-23 15:52:20 -07:00
Amir Bandeali
698f313b73
Reorder matchOrder transfers and remove redundant checks
2019-07-23 15:52:20 -07:00
Amir Bandeali
1940458306
Add tests for OrderTransferSimulationUtils
2019-07-23 15:52:20 -07:00
Amir Bandeali
983def2bbd
Add OrderTransferSimulationUtils
2019-07-23 15:52:20 -07:00
Amir Bandeali
9213bf47ae
Swap ordering of transfers in fills and remove redundant checks
2019-07-23 15:52:20 -07:00
Amir Bandeali
f01743e27c
Add tests for simulateTransferFromCalls
2019-07-23 15:52:20 -07:00
Amir Bandeali
9be58972a0
Add MixinTransferSimulator
2019-07-23 15:52:20 -07:00
James Towle
a1a6c3e40c
Updated the DivisionByZeroError to not use assembly
2019-07-23 15:52:20 -07:00
James Towle
a2b19a1b9d
Updated DivisionByZero error
2019-07-23 15:52:20 -07:00
James Towle
4d1a942e79
Removed unnecessary files and code
2019-07-23 15:52:20 -07:00
James Towle
eb4afa8f2c
Update contracts/exchange-libs/contracts/src/interfaces/IMixinLibMathRichErrors.sol
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-23 15:52:20 -07:00
James Towle
468bbea44d
Update contracts/exchange-libs/contracts/src/interfaces/IMixinLibMathRichErrors.sol
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-23 15:52:20 -07:00
James Towle
b75aa02b0d
Update contracts/exchange/test/internal.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-23 15:52:20 -07:00
James Towle
a39f93bcff
Update contracts/exchange/test/internal.ts
...
Co-Authored-By: Lawrence Forman <lawrence@0xproject.com >
2019-07-23 15:52:20 -07:00
James Towle
e229d2d59f
Updated tests to work with LibMathRichErrors
2019-07-23 15:52:20 -07:00
James Towle
3d58dc2a50
Added RichReverts to exchange-libs
2019-07-23 15:51:43 -07:00
James Towle
0395188aed
Updated any remaining contracts using 0.5.5 to 0.5.9
2019-07-23 15:51:43 -07:00
James Towle
4e6dd1b213
Updated the style
2019-07-23 15:51:43 -07:00
James Towle
a46b13967a
Refactored the SafeMath errors
2019-07-23 15:51:43 -07:00
James Towle
e916daf5fd
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
fad9dae9bb
Fixed the exchange unit tests
2019-07-23 15:51:43 -07:00
James Towle
83bd5f5561
Fixed the last broken test in asset-proxy
2019-07-23 15:51:43 -07:00
James Towle
0ddb9f8923
Added a linting command for slower computers
2019-07-23 15:51:43 -07:00
James Towle
03ea97734c
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
b7adf59ed5
Fixed any lingering style issues
2019-07-23 15:51:43 -07:00
James Towle
666b992c51
Readded Underflow RichErrors to asset-proxy
2019-07-23 15:51:43 -07:00
James Towle
56d5e9c889
Fixed the build issues in exchange
2019-07-23 15:51:43 -07:00
James Towle
aa36ebf4f2
Removed RichErrors from the erc1155 test in Authorizable
2019-07-23 15:51:43 -07:00
James Towle
de60123ec7
Updated the combanatorial tests to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
cf3790c2f8
Updated the erc1155 tests in asset-proxy to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
b7bac3abf6
Updated the asset-proxy tests to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
f4551dd1e5
Updated the exchange tests to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
b3da4bb5b7
Updated the erc1155 tests to expect RichErrors
2019-07-23 15:51:43 -07:00
James Towle
6e4b6929d2
Added RichErrors to SafeMath
2019-07-23 15:51:43 -07:00
James Towle
a0602c8863
Added RichErrors to Ownable
2019-07-23 15:51:43 -07:00
James Towle
55246c5d87
Removed unnecessary import
2019-07-23 15:51:43 -07:00
James Towle
81ee577407
Updated naming in MixinTransactions
2019-07-23 15:51:43 -07:00
James Towle
55e1045000
Added a comment about inheritance in the exchange
2019-07-23 15:51:43 -07:00
James Towle
fc96df63fd
Fixed most of the nits
2019-07-23 15:51:43 -07:00
James Towle
9b787a6bc2
Removed enums from Mixins in the coordinator package
2019-07-23 15:51:43 -07:00
James Towle
201dc7c28d
Removed events from the Mixins in asset-proxy
2019-07-23 15:51:43 -07:00
James Towle
5189fa6483
Fixed the inheritance hierarchy
2019-07-23 15:51:43 -07:00
James Towle
1992478cee
Updated the mixins
2019-07-23 15:51:43 -07:00
James Towle
5ad6b48289
Refactored into interfaces
2019-07-23 15:51:43 -07:00
James Towle
bbcf83b99d
Added a linting command that only runs on contracts
2019-07-23 15:51:43 -07:00
James Towle
9ef55023f2
Removed all mixins/ directories from the repository
2019-07-23 15:51:43 -07:00
Amir Bandeali
f2f81b0f7b
Fix dev-utils tests
2019-07-23 15:51:43 -07:00
Amir Bandeali
c22ed861d1
Remove ZRX fees from dev-utils contracts
2019-07-23 15:51:43 -07:00
Amir Bandeali
39bed4d306
temp
2019-07-23 15:51:43 -07:00
Amir Bandeali
949946589f
Fix order-utils tests
2019-07-23 15:50:36 -07:00
Amir Bandeali
09d970f056
Update abi-gen-wrappers
2019-07-23 15:50:36 -07:00
James Towle
5813bb9ca8
Updated any remaining contracts using 0.5.5 to 0.5.9
2019-07-23 15:46:16 -07:00
Amir Bandeali
c48ad5c90f
Fix outdated comments
2019-07-23 15:46:16 -07:00
Amir Bandeali
4fdc1b3e19
Update CHANGELOGs
2019-07-23 15:46:16 -07:00
Amir Bandeali
dc372a43fe
Fix incorrect function call for fillOrderNoThrow test
2019-07-23 15:46:16 -07:00
Amir Bandeali
589b791cd7
Add names to return values and fix breaking transactions tests
2019-07-23 15:46:16 -07:00
Amir Bandeali
564dbea126
Remove formatters and clarify comments about pointing assetData to the same memory location
2019-07-23 15:46:16 -07:00
Amir Bandeali
1bc4bc613e
Add return value checks to wrapper tests
2019-07-23 15:46:16 -07:00
Amir Bandeali
11a25cb1ae
Return FillResults[] for batch fill methods
2019-07-23 15:46:16 -07:00
Lawrence Forman
d6c1bf691c
Reorder event assertions in transactions tests.
2019-07-23 15:46:16 -07:00
Amir Bandeali
e6443a2612
Update CHANGELOGs
2019-07-23 15:46:16 -07:00
Amir Bandeali
d79714a3cf
Fix merge conflict remnant
2019-07-23 15:46:15 -07:00
Amir Bandeali
4bb1312cf1
Fix coordinator package build
2019-07-23 15:46:15 -07:00
Amir Bandeali
4e2abcaefa
Fix linting errors
2019-07-23 15:46:15 -07:00
Amir Bandeali
d463d4c46b
Add transaction expiration tests
2019-07-23 15:46:15 -07:00
Amir Bandeali
435c81da98
Revert if transaction is expired
2019-07-23 15:46:15 -07:00
Amir Bandeali
4f818d55fa
Add TransactionExecution log tests
2019-07-23 15:46:15 -07:00
Amir Bandeali
c96a81e319
Fix exchange package build
2019-07-23 15:46:15 -07:00
Amir Bandeali
7cff9ba86a
Refactor tests
2019-07-23 15:46:15 -07:00
Amir Bandeali
6ddaa6f52a
Add expirationTimeSeconds to ZeroExTransaction schema throughout codebase
2019-07-23 15:46:15 -07:00
Amir Bandeali
238877b627
Log TransactionExecution event when transaction is successfully executed
2019-07-23 15:46:15 -07:00
Lawrence Forman
95e7999e45
@0x/contracts-exchange: Update settlement test simulators to match settlement optimizations in the Exchange.
2019-07-23 15:46:15 -07:00
Lawrence Forman
2f464ee8f0
@0x/contracts-exchange: Fix critical error in fillOrder() and matchOrders() redundant transfer optimization code.
...
`@0x/contracts-exchange`: Rearrange `Fill` event params to make regular `emit` code work without breaking the stack.
`@0x/contracts-exchange`: Add edge case tests for redundant transfer optimizations.
2019-07-23 15:46:15 -07:00
Lawrence Forman
8fe9883b62
Update contracts/exchange/contracts/src/MixinMatchOrders.sol
...
`@0x/contracts-exchange`: Minor code change to save an mload.
2019-07-23 15:46:15 -07:00
Lawrence Forman
de896f9159
@0x/contracts-exchange: Remove TODO comment in fill_order_combinatorial_utils.ts.
2019-07-23 15:46:15 -07:00
Lawrence Forman
a2468e8129
@0x/contracts-exchange: Update changelog.
2019-07-23 15:46:15 -07:00
Lawrence Forman
ee89f74afd
@0x/contracts-exchange: Avoid redundant transfer in matchOrders() when maker/feeRecipient and takerAssetData/makerFeeAssetData are the same.
...
`@0x/conracts-exchange`: Disable combinatorial tests by default. Can be run by setting env var `TEST_ALL=1`.
2019-07-23 15:46:15 -07:00
Lawrence Forman
cd08c3e8fa
@0x/contracts-exchange: Avoid redundant trasfer in fillOrder() when maker/taker is the same as feeRecipient and the assets match.
...
`@0x/contracts-exchange`: Swap fill order in `fillOrder()` from maker -> taker to taker -> maker first
2019-07-23 15:46:15 -07:00
Lawrence Forman
9cc8933eec
@0x/contracs-test-utils: Increase number of deployed ERC721 and ERC1155 tokens to 2 to fix broken asset-proxy tests.
2019-07-23 15:46:15 -07:00
Lawrence Forman
91c27ff972
@0x/contracts-exchange: Fix build error.
2019-07-23 15:46:15 -07:00
Lawrence Forman
07e3ba014c
@0x/contracts-exchange: Fully incorporate ERC1155 and MultiAsset tests into the fillOrder and matchOrders test suites.
2019-07-23 15:46:15 -07:00
Lawrence Forman
57ac0ca6e8
@0x/contracts-test-utils: Reduce number of test token deployments to speed up tests.
2019-07-23 15:46:15 -07:00
Lawrence Forman
816368b1fe
@0x/contracts-exchange: Re-eanble all exchange tests.
...
`@0x/contracts-echange`: Set up 1155 and MAP proxies for `matchOrders()` tests.
2019-07-23 15:46:15 -07:00
Lawrence Forman
85ea291745
@0x/contracts-exchange: Add MultiAssetProxy, ERC1155Fungible, and ERC1155NonFungible combinatorial tests.
2019-07-23 15:46:15 -07:00
Lawrence Forman
741fdfa52e
@0x/contracts-erc1155: Add mintKnownFungibleTokensAsync(), isNonFungibleItemAsync(), isFungibleItemAsync(), getOwnerOfAsync(), getBalanceAsync() to Erc1155Wrapper.
2019-07-23 15:46:15 -07:00
Lawrence Forman
348ec5bc3c
@0x/contracts-asset-proxy: Add setProxyAllowanceForAllAsync() to ERC1155ProxyWrapper.
2019-07-23 15:45:39 -07:00
Lawrence Forman
df9698ab1f
@0x/order-utils: Add ERC1155 to ExchangeTransferSimulator and fix MultiAssetProxy transfer accounting.
2019-07-23 15:45:39 -07:00
Lawrence Forman
c1aead970a
Disable staking package from CI.
2019-07-23 15:45:39 -07:00
Lawrence Forman
518f351235
@0x/contracts-exchange: Correct coding convention in match_orders.ts
2019-07-23 15:44:58 -07:00
Lawrence Forman
d79a07e2c4
@0x/contracts-exchange: Fix indentation in matchOrders().
2019-07-23 15:44:58 -07:00
Lawrence Forman
b636057251
@0x/contracts-exchange-libs: Make EIP712_ORDER_SCHEMA_HASH public.
2019-07-23 15:44:58 -07:00
Lawrence Forman
c692c8f055
@0x/contracts-exchange-libs: Regenerate LibExchangeSelectors.sol
2019-07-23 15:44:58 -07:00
Lawrence Forman
930736060c
@0x/abi-gen-templates: Automatically catch and decode ganache revert Errors in transaction methods.
2019-07-23 15:44:58 -07:00
Lawrence Forman
1c8468d248
@0x/contracts-exchange: Use function/event selectors from LibExchangeSelectors.
...
`@0x/contracts-exchange`: Add memory map comments to `Fill` emit code.
2019-07-23 15:43:23 -07:00
Lawrence Forman
575842eab4
@0x/contracts-exchange-libs: Convert generate-exchange-selectors script to typescript.
2019-07-23 15:43:23 -07:00
Lawrence Forman
f7f55cad43
@0x/contracts-exchange: Removed dependency on OrderValidationUtils. The tests using it didn't really warrant the full validation suite.
...
`@0x/contracts-test-utils`: Move all the `OrderScenario` related types into the `contracts-exchange` package because no one else is using them.
2019-07-23 15:43:23 -07:00
Lawrence Forman
acd857a8c0
@0x/contracts-asset-proxy: Fix broken proxies test.
2019-07-23 15:43:23 -07:00
Lawrence Forman
53ff248176
@0x/contracts-exchange: Revert internal tests.
2019-07-23 15:43:23 -07:00
Lawrence Forman
3de13967bc
@0x/base-contract: Re-wrap StringRevertErrors as plain Errors for backwards compatibility
2019-07-23 15:43:23 -07:00
Lawrence Forman
aebb923c2d
@0x/contracts-exchange: Major rework of fill_order_combinatorial_utils.
...
`@0x/contracts-exchange`: Add more arbitrary fee token tests.
`@0x/contracts-exchange`: Fix broken tests.
2019-07-23 15:43:23 -07:00
Lawrence Forman
76d577a08d
@0x/contracts-test-utils: Add more OrderScenario related types.
2019-07-23 15:43:23 -07:00
Lawrence Forman
3fb34a2a83
@0x/contracts-asset-proxy: Make setProxyAllowanceForAll() just accept a ownerAddress and give the proxy full control.
2019-07-23 15:43:23 -07:00
Lawrence Forman
cdb938ea28
@0x/base-contract: Add a method for converting Error types to RevertErrors.
...
`@0x/abi-gen-templates`: Automatically try to convert `Error`s thrown in `callAsync()` to `RevertError`s.
`@0x/abi-gen-wrappers`: Update generated wrappers.
2019-07-23 15:43:23 -07:00
Lawrence Forman
882dd4597e
@0x/dev-utils: Move Error -> RevertError coercion logic to @0x/utils.
2019-07-23 15:27:39 -07:00
Lawrence Forman
409efb8c67
@0x/order-utils: Update RevertError types for new RevertError constructor.
2019-07-23 15:27:39 -07:00
Lawrence Forman
eaa4373a18
@0x/utils: Tweak RevertError to produce a meaningful Error message/stack trace.
...
`@0x/utils`: Add more `RevertError` decoding/transforming functions (such as `decodeThrownErrorAsRevertError()`)
2019-07-23 15:27:39 -07:00
Lawrence Forman
d480f8d82a
@0x/web3-wrapper: Let toBaseUnitAmount() accept a number as well as a BigNumber
2019-07-23 15:27:39 -07:00
Lawrence Forman
339fc9ff14
@0x/assert: Add isNumberLike assertion
2019-07-23 15:27:00 -07:00
Lawrence Forman
14167412e0
@0x/contracts-exchange-libs: Make generate-exchange-selectors terminate file with a newline.
2019-07-23 15:26:59 -07:00
Lawrence Forman
7c0f075d1f
Update changelogs with PR #s
2019-07-23 15:26:59 -07:00
Lawrence Forman
f4aea76c6e
Ran prettier
2019-07-23 15:26:59 -07:00
Lawrence Forman
d263382365
@0x/contracts-coordinator: Fix broken coordinator tests.
2019-07-23 15:26:59 -07:00
Lawrence Forman
2109ed8464
@0x/contracts-exchange-libs: Add generate-exchange-selectors package script to regenerate LibExchangeSelectors from Exchange artifacts.
2019-07-23 15:26:59 -07:00
Lawrence Forman
d11444b983
@0x/contracts-exchange: Fix Exchange Wrappers tests.
2019-07-23 15:26:59 -07:00
Lawrence Forman
0508a45681
@0x/contracts-echange: Fix transactions test bug with ExchangeWrapper example due to deduping.
2019-07-23 15:26:59 -07:00
Lawrence Forman
a5c0b95f8b
Update changelogs
2019-07-23 15:26:59 -07:00
Lawrence Forman
f1af12b3b9
Update CI config to blacklist contracts-extensions and contracts-exchange-forwarder.
2019-07-23 15:26:59 -07:00
Lawrence Forman
9d257497bd
Ran prettier and fixed linter errors
2019-07-23 15:23:40 -07:00
Lawrence Forman
79f40b4ce0
@0x/contracts-exchange: Enable all exchange tests.
2019-07-23 15:23:40 -07:00
Lawrence Forman
1ab62b7a80
@0x/contracts-exchange: Fix broken match orders tests
2019-07-23 15:23:40 -07:00
Lawrence Forman
d2f10d5834
@0x/contracts-exchange: Allow custom ExchangeWrapper.matchOrders() call in MatchOrdersTester.
2019-07-23 15:23:40 -07:00
Lawrence Forman
c326ec9d1e
@0x/contracts-exchange: Rewrote MatchOrderTester class to be simpler and more flexible.
2019-07-23 15:23:40 -07:00
Lawrence Forman
26317d16ff
@0x/contracts-exchange: Fix matchOrders() not paying fees if same feeRecipient but different feeAssetDatas.
2019-07-23 15:23:40 -07:00
Lawrence Forman
79b8f85cdf
@0x/contracts-test-utils: Remove TransferAmountsByMatchOrders and TransferAmountsLoggedByMatchOrders.
...
`@0x/contracts-test-utils`: Add `TokenBalancesByOwner` type.
2019-07-23 15:23:40 -07:00
Lawrence Forman
c84a0b8415
@0x/contracts-exchange: Fix matchOrders and signature tests.
2019-07-23 15:23:40 -07:00
Lawrence Forman
be5336d074
@0x/contracts-exchange: Enable all tests.
2019-07-23 15:23:40 -07:00
Lawrence Forman
aecb2efad9
@0x/contracts-exchange: Fix combinatorial fillOrder test bugs.
...
`@0x/contracts-exchange`: Fix emit `Fill` event code.
2019-07-23 15:23:40 -07:00
Lawrence Forman
3654005c3d
@0x/order-utils: Move order expiration check to top in order validation.
2019-07-23 15:23:40 -07:00
Lawrence Forman
d8fd61955c
@0x/contracts-test-utils: Increase deployment numbers for dummy tokens.
2019-07-23 15:23:40 -07:00
Lawrence Forman
3381ab5093
@0x/typescript-typings: Add more overloads for ethereumjs-util setLengthLeft, setLengthRight, setLength.
2019-07-23 15:23:40 -07:00
Lawrence Forman
8c2fa64c47
@0x/contracts-exchange: Remove dependency on LibAbiEncoder.
2019-07-23 15:23:40 -07:00
Lawrence Forman
12ae9fced5
@0x/contracts-exchange-forwarder: Remove dependency on LibAbiEncoder.
2019-07-23 15:23:40 -07:00
Lawrence Forman
e3bca7e7e7
@0x/exchange-libs: Remove LibAbiEncoder
2019-07-23 15:23:40 -07:00
Lawrence Forman
bca199e118
@0x/contracts-exchange: Fix Fill emit code.
2019-07-23 15:23:40 -07:00
Lawrence Forman
938ae5f27c
@0x/contracts-coordinator: Remove ZRX token from coordinator tests.
2019-07-23 15:23:40 -07:00
Lawrence Forman
8aa3b535f0
@0x/contracts-exchange: Update fill order tests for arbitrary fee tokens. (Still more to do)
2019-07-23 15:23:40 -07:00
Lawrence Forman
f4bf4ee0f2
@0x/contracts-test-utils: Update types for arbitrary fee tokens.
2019-07-23 15:23:40 -07:00
Lawrence Forman
1c1ab3cd87
json-schemas: Update changelog.
2019-07-23 15:23:40 -07:00
Lawrence Forman
f5c215fe65
Update fill-scenarios for ZEIP-28
2019-07-23 15:23:40 -07:00
Lawrence Forman
9952de615a
Update order-utils for ZEIP-28
2019-07-23 15:23:40 -07:00
Lawrence Forman
e1c547be98
Remove contract-wrappers contracts-exchange-forwarder and contracts-extensions from contractsPackages in root package.json
2019-07-23 15:23:40 -07:00
Lawrence Forman
7cb6795d40
@0x/contracts-exchange-libs: Add takerFeeAssetData and makerFeeAssetData to Order struct.
2019-07-23 15:23:40 -07:00
Lawrence Forman
a5f4478e20
@0x/contracts-exchange: Remove zrxAssetData from constructor and remove dependency on LibConstants.
...
`@0x/contracts-exchange`: Update `fillOrder()` and `matchOrders()` to settle arbitrary fees.
`@0x/contracts-exchange`: emit `Fill()` events the hard way to avoid a stack overflow.
2019-07-23 15:23:40 -07:00
Lawrence Forman
94d0db2dba
In @0x/order-utils: Fix order hash tests.
...
In `@0x/contracts-exchange-libs`: Add fee asset datas to `LibOrder` type.
2019-07-23 15:23:40 -07:00
Amir Bandeali
64c596c922
temp
2019-07-23 15:23:40 -07:00
Amir Bandeali
e30b8999d4
Update order utils to use new order schema
2019-07-23 15:23:40 -07:00
Amir Bandeali
2f0ee84b71
Add fee assetData fields to order JSON schema
2019-07-23 15:23:40 -07:00
Amir Bandeali
c570478aaa
Add fee assetData fields to OrderWithoutDomain and Order types
2019-07-23 15:23:40 -07:00
Amir Bandeali
051997acb0
Fix linting errors
2019-07-23 15:23:40 -07:00
Amir Bandeali
51ef0e1e6d
Add tests for cancelOrderNoThrow and batchCancelOrdersNoThrow
2019-07-23 15:23:40 -07:00
Amir Bandeali
ed0fcf2829
Remove LibAbiEncoder
2019-07-23 15:23:40 -07:00
Amir Bandeali
2ce94b73ad
Use build in abi.encode instead of LibAbiEncoder for fillOrderNoThrow
2019-07-23 15:23:40 -07:00
Amir Bandeali
ef96bff6ec
Add cancelOrderNoThrow and batchCancelOrdersNoThrow
2019-07-23 15:23:40 -07:00
Greg Hysen
afc888f2ef
Updated compiler.json for erc1155 and staking packages, plus removed unnecessary dependencies for staking
2019-07-23 15:23:40 -07:00
Greg Hysen
e823c2af9d
Created boilerplate staking package for stake-based liquidity incentives
2019-07-23 15:23:40 -07:00
Amir Bandeali
18979f3f30
Fix linting error
2019-07-23 15:21:14 -07:00
Amir Bandeali
8bd29596c4
Rename remaining inconsistencies
2019-07-23 15:21:14 -07:00
Lawrence Forman
0cfcb6aa37
Apply suggestions from code review
...
Co-Authored-By: abandeali1 <abandeali1@gmail.com >
2019-07-23 15:21:14 -07:00
Amir Bandeali
6b40812e6d
Fix incorrect CancelUpTo event args
2019-07-23 15:21:14 -07:00
Amir Bandeali
8af253e9ab
Remove accidental recursive function call in TestLibs contract
2019-07-23 15:21:14 -07:00
Amir Bandeali
6763bce627
Add _ to remaining internal/private functions
2019-07-23 15:21:14 -07:00
Amir Bandeali
3217c1e11f
Remove unused SafeMath functions
2019-07-23 15:21:14 -07:00
Amir Bandeali
6ce3e18831
Remove deprecated error libs
2019-07-23 15:21:14 -07:00
Amir Bandeali
3e461ac2e5
Rename internal and private functions
2019-07-23 15:21:14 -07:00
Lawrence Forman
25e2baaea7
Fix linter errors.
2019-07-23 15:21:14 -07:00
Lawrence Forman
6696a714f0
Disable test-contracts-geth CI job until our geth docker is updated to constantinople.
2019-07-23 15:21:14 -07:00
Lawrence Forman
46af2ffcea
In @0x/contracts-exchange: Merge new transaction tests from rebase.
2019-07-23 15:21:14 -07:00
Lawrence Forman
e5b3a82112
In @0x/contracts-utils and @0x/contracts-exchange: Hardcode rich revert selector constants.
2019-07-23 15:21:14 -07:00
Lawrence Forman
9af51aaca1
Add PRs to changelogs.
2019-07-23 15:21:14 -07:00
Lawrence Forman
3bacf09710
Update changelogs
2019-07-23 15:21:14 -07:00
Lawrence Forman
61bdbd2d74
Rebased against 3.0.
...
Run prettier/linter.
2019-07-23 15:21:14 -07:00
Lawrence Forman
a1293f160f
In @0x/contracts-exchange: Remove only from lib_exchange_rich_error_decoder tests.
2019-07-23 15:21:14 -07:00
Lawrence Forman
847503bff1
In @0x/contracts-exchange: Add more tests for LibExchangeRichErrorDecoder.
2019-07-23 15:21:14 -07:00
Lawrence Forman
576242551f
In @0x/contracts-exchange: Add more tests for LibExchangeRichErrorDecoder.
2019-07-23 15:21:14 -07:00
Lawrence Forman
fdb6bee65f
In @0x/contracts-exchange: Add tests for LibExchangeRichErrorDecoder.
2019-07-23 15:21:14 -07:00
Lawrence Forman
a2846faa61
Move @0x/rich-reverts-decoder into @0x/contracts-exchange/contracts/src/libs/LibExchangeRichErrorDecoder.
2019-07-23 15:21:14 -07:00
Lawrence Forman
a32544b53a
In @0x/contracts-rich-reverts-decoder: Add more decoders.
2019-07-23 15:21:14 -07:00
Lawrence Forman
9b093dab0a
In @0x/contracts-rich-reverts: Move to a single contract file. Inherit from @0x/contracts-exchange/.../MExchangeRichErrorTypes.sol.
2019-07-23 15:21:14 -07:00
Lawrence Forman
84d433fa06
Update gitignore to ignore @0x/contracts/rich-reverts-decoder generated artifacts.
2019-07-23 15:21:14 -07:00
Lawrence Forman
e24b8947e0
In @0x/contracts-exchange: Pull types and constants from MExchangeRichErrors into MExchangeRichErrorTypes.
...
In `@0x/contracts-utils`: Pull types and constants from `MRichErrors` into `MRichErrorTypes`.
2019-07-23 15:21:14 -07:00
Lawrence Forman
7835c6e20c
Create @0x/contracts-rich-reverts-decoder.
2019-07-23 15:21:14 -07:00
Lawrence Forman
d942c47f08
In @0x/contracts-exchange: Change parameter order and naming of some rich revert errors.
...
In `@0x/order-utils`: Change parameter order for `OrderStatusError`.
2019-07-23 15:21:14 -07:00
Lawrence Forman
fdaee1375c
In @0x/contracts-exchange: Update tests for rich reverts
2019-07-23 15:21:14 -07:00
Lawrence Forman
d25a510291
In @0x/contracts-exchange: upgrading tests...
2019-07-23 15:21:14 -07:00
Lawrence Forman
0cb8586f68
Unpin coordinator deps.
...
Update coordinator tests for new tooling.
Remove unecessary `chainId` parameter in `eip712_utils.createCoordinatorApprovalTypeData`
2019-07-23 15:21:14 -07:00
Amir Bandeali
e42a0979bc
Add return natspec to all MixinTransaction functions
2019-07-23 15:21:14 -07:00
Amir Bandeali
f1a78682aa
Add batch fill method tests
2019-07-23 15:21:14 -07:00
Amir Bandeali
dc4bfde76d
Fix linting errors
2019-07-23 15:21:14 -07:00
Amir Bandeali
e717625f86
Add batchExecuteTransactions tests
2019-07-23 15:21:14 -07:00
Amir Bandeali
41444e7ede
Refactor transaction tests to iclude more combinations and to cover all revert cases
2019-07-23 15:21:14 -07:00
Amir Bandeali
ac9247195b
Don't use exchangeDataEncoder as default for functions that don't involve orders
2019-07-23 15:21:14 -07:00
Amir Bandeali
fc2a59ceaa
Update imports in tests
2019-07-23 15:21:13 -07:00
Amir Bandeali
72f4b216c1
Move exchange specific types. constants, and utils into exchange package
2019-07-23 15:21:13 -07:00
Amir Bandeali
d373f5488a
Add functions with mutex to ReentrantERC20Token and update IExchange with missing function
2019-07-23 15:19:33 -07:00
Amir Bandeali
24906138c7
Make preSign compatible with executeTransaction
2019-07-23 15:19:33 -07:00
Amir Bandeali
f4b3b69b2f
Move constants and exchangeDataEncoder into test-utils package
2019-07-23 15:19:33 -07:00
Amir Bandeali
e80abad19a
Add batchExecuteTransaction
2019-07-23 15:18:26 -07:00
Amir Bandeali
c9c228ffdd
Add return data to executeTransaction
2019-07-23 15:18:26 -07:00
Amir Bandeali
6fc30d31bf
Fix missed conflicts and rebuild
2019-07-23 15:18:26 -07:00
Lawrence Forman
0bcd47b394
Add OrderValidator and WalletOrderValidator signature strategies to Exchange ( #1774 )
...
* In `@0x/contracts-exchange`: Add `SignatureType.OrderValidator` support to contracts and refactor signature validation functions.
* In `@0x/types`: Add `SignatureType.OrderValidator` and `RevertReason.InappropriateSignature`.
* In `@0x/contracts-exchange`: Fix contracts and update tests for `SignatureType.OrderValidator`.
* Ran prettier/linter
* Update changelogs
* In `@0x/order-utils`: Add `SignatureOrderValidatorError` to `ExchangeRevertErrors`.
* In `@0x/contracts-exchange`: Add `SignatureOrderValidatorError` rich revert. Fix rebase issues. Rename `IValidator.isValidOrder` to `IValidator.isValidOrderSignature`.
* In `@0x/contracts-exchange`: Add revert test cases for `OrderValidator` signature type.
* In `@0x/order-utils`: Update changelog.
* In `@0x/contracts-exchange`: Split off `SignatureType.OrderValidator` scheme into its own interface and registry.
* In `@0x/types`: Add `SignatureType.WalletOrderValidator`.
* In `@0x/order-utils`: Add `SignatureWalletOrderValidatorError`.
* In `@0x/contracts-exchange`: Add `SignatureType.WalletOrderValidator` support.
* Ran prettier
* In `@0x/types`: Remove `RevertReason.WalletOrderValidator`.
* Update/fix changelogs in `@0x/contracts-exchange`, `@0x/order-utils`, and `@0x/types`.
* In `@0x/contracts-exchange`: Make `isValidOrderSignature` `external` instead of `public`.
* In `@0x/contracts-exchange`: Change `isValidOrderSignature` back to `public` because passing `calldata` to internal functions isn't supported.
2019-07-23 15:18:26 -07:00
Lawrence Forman
c24bb139dd
In @0x/contracts-exchange: Change validator/wallet return value test to == 1 instead of != 0.
2019-07-23 15:17:57 -07:00
Lawrence Forman
eb00ff05a8
Ran prettier/linter
2019-07-23 15:17:57 -07:00
Lawrence Forman
a7fe47f295
In @0x/contracts-exchange: Add SignatureWalletError and SignatureValidatorError rich reverts.
...
In `@0x/contracts-exchange`: Change `AssetProxyTransferError` to accept a `revertData` bytes instead of a `revertReason` string.
In `@0x/contracts-exchange`: Aadd `contracts/test/TestRevertReceiver.sol` for testing that validator/wallet reverts are properly wrapped.
2019-07-23 15:17:57 -07:00
Lawrence Forman
2a6f02c764
In @0x/order-utils: Add SignatureWalletError, SignatureValidatorError to ExchangeRevertErrors. Update AssetProxyTransferError to accept arbitrary errorData bytes instead of a revertReason string.
2019-07-23 15:17:57 -07:00
Amir Bandeali
1b2ff1f9ae
Update contracts/exchange/contracts/src/MixinSignatureValidator.sol
...
Co-Authored-By: dorothy-zbornak <lawrence@0xproject.com >
2019-07-23 15:17:57 -07:00
Lawrence Forman
7de9a36d01
In @0x/contracts-exchange: Fix comments in MixinSignatureValidator.sol.
2019-07-23 15:17:57 -07:00
Lawrence Forman
cfa8796b18
In @0x/contracts-exchange: Fix line count linter error.
2019-07-23 15:17:57 -07:00
Lawrence Forman
3c88ede02c
In @0x/order-utils: Add TransactionSignatureError to ExchangeRevertErrors.
...
In `@0x/contracts-exchange`: Add `TransactionSignatureError`, supplanting `TransactionErrorCodes.BAD_SIGNATURE`, and associated test.
2019-07-23 15:17:57 -07:00
Lawrence Forman
a0223835b8
In @0x/order-utils: Add signerAddress and signature to ExchangeRevertErrors.SignatureError.
...
In `@0x/contracts-exchange`: Add `signerAddress` and `signature` to `SignatureError` reverts.
2019-07-23 15:17:56 -07:00
Lawrence Forman
ac18359410
Switch order of parameters in some rich reverts for easier dirty parsing.
2019-07-23 15:17:56 -07:00
Lawrence Forman
8194e3d3c5
In @0x/contracts-exchange: More efficient revert string extraction in MixinAssetProxyDispatcher.sol
2019-07-23 15:17:56 -07:00
Lawrence Forman
440c4fe9b9
In @0x/contracts-utils switch from encodePacked to encodeWithSelector in RichErrors.StandardError
2019-07-23 15:17:56 -07:00
Lawrence Forman
e54f5d563f
In @0x/contracts-utils add natspec comments RichErrors.StandardError
2019-07-23 15:17:56 -07:00
Lawrence Forman
5781ab5436
Add PRs to changelogs
2019-07-23 15:17:56 -07:00
Lawrence Forman
f8009dbb27
In @0x/contracts-test-utils: Update CHANGELOG
2019-07-23 15:17:56 -07:00
Lawrence Forman
15efe3ae31
Fix linter errors
2019-07-23 15:17:56 -07:00
Lawrence Forman
991348bbbe
In @0x/contracts-extensions: Upgrade tests for rich reverts
2019-07-23 15:17:56 -07:00
Lawrence Forman
233336ea16
Ran prettier and linter
2019-07-23 15:17:56 -07:00
Lawrence Forman
20d8c1b51a
In @0x/contracts-exchange: Update tests for rich reverts
2019-07-23 15:17:56 -07:00
Lawrence Forman
06499f2155
In @0x/contract-wrappers: Update tests
2019-07-23 15:17:56 -07:00
Lawrence Forman
5b1d9396d7
In @0x/order-utils: Rename Exchange RevertError error codes.
2019-07-23 15:17:56 -07:00
Lawrence Forman
633c5d5938
In @0x/utils add encode() method to RevertError
2019-07-23 15:17:56 -07:00
Lawrence Forman
2e846159a8
In @0x/dev-utils: swap order of equality check in RevertError chai helper from actual.equals(expected) to expected.equals(actual).
2019-07-23 15:17:56 -07:00
Lawrence Forman
4408604c2d
In @0x/contracts-exchange: upgrading tests...
2019-07-23 15:17:56 -07:00
Lawrence Forman
15db5c8059
In @0x/contracts-exchange: Fix busted TestAssetProxyDispatcher.sol
2019-07-23 15:17:56 -07:00
Lawrence Forman
53121b1dd4
In @0x/order-utils: add AssetProxyTransferError Exchange RevertError
2019-07-23 15:17:56 -07:00
Lawrence Forman
c36dff6354
In @0x/contracts-exchange: Fix dispatchTransferFrom so it preserves the assetData.
2019-07-23 15:17:56 -07:00
Lawrence Forman
94a91ed5c8
In @0x/dev-utils: Tweak equality assertion failure actual and expected rendering to be more readable
2019-07-23 15:17:56 -07:00
Lawrence Forman
162a812189
In @0x/typescript-typings: Add types for @0x/dev-utils chai helpers in types/@0x.
...
In `@0x/dev-utils`: remove global typescript types for chai helpers in lieu of defining them in `@0x/typescript-typings`
2019-07-23 15:17:56 -07:00
Lawrence Forman
f06f0785f1
In @0x/contracts-test-utils: Inherit OrderStatus from @0x/types
2019-07-23 15:17:28 -07:00
Lawrence Forman
1aae68c614
In @0x/dev-utils: Break out RevertError helper code into a separate file from chai_setup.ts.
...
In `@0x/dev-utils`: Add chai support for ganache and geth transaction reverts.
2019-07-23 15:17:28 -07:00
Lawrence Forman
703a0fde3c
In @0x/utils: Add AnyRevertError type that matches with any revert error
2019-07-23 15:17:28 -07:00
Lawrence Forman
abb71cd074
In @0x/order-utils: Rename ExchangeErrors to ExchangeRevertErrors.
2019-07-23 15:17:28 -07:00
Lawrence Forman
79cf9156eb
In @0x/contracts-test-utils add generatePseudoRandomOrderHash() to orderUtils.
2019-07-23 15:16:49 -07:00
Lawrence Forman
3a6664282c
In @0x/contracts-exchange: fix contract bugs introduced by changes
2019-07-23 15:16:49 -07:00
Lawrence Forman
e00ac37cb2
In @0x/dev-utils fix the RevertError chai helper's equal override not passing all arguments to previous handler.
...
In `@0x/dev-utils` add more `RevertError` chai helper tests for backwards compatibility with `rejectedWith`.
In `@0x/dev-utils` instead of overriding `rejectedWith`, add a new method `revertWith`.
In `@0x/dev-utils` clean up the code for the `RevertError` chai helper.
2019-07-23 15:16:49 -07:00
Lawrence Forman
6583ac9ba1
Make @0x/base-contract _throwIfRevertWithReasonCallResult decode and throw RevertErrors.
...
Remove no longer necessary dependency on `ethers.js` in `@0x/base-contract`.
2019-07-23 15:16:49 -07:00
Lawrence Forman
42963ea77d
Use new RevertError nomenclature.
...
Tweak `RevertError` coercion in chai helper.
Add more `RevertError` chai helper tests.
2019-07-23 15:15:17 -07:00
Lawrence Forman
6231724f49
Rename RichRevertReason to RevertError.
...
Rename `StandardError` to `StringRevertError`.
Rename `RichRevertAbi` to `RevertErrorAbi`.
Make `RevertError` extend `Error` so it can be thrown.
Add `RevertError` tests.
2019-07-23 15:15:17 -07:00
Lawrence Forman
5b25eb4fbd
Fix linter errors.
2019-07-23 15:15:17 -07:00
Lawrence Forman
565cc7b3c8
Ran prettier
2019-07-23 15:15:17 -07:00
Lawrence Forman
71dc2690aa
Export StandardError from @0x/utils
2019-07-23 15:15:17 -07:00
Lawrence Forman
3accd48ea8
Remove chai plugin dependencies from @0x/contract-test-utils and @0x/order-utils
2019-07-23 15:15:17 -07:00
Lawrence Forman
ed78bde359
Make the chai helper for rich reverts in dev-utils more robust.
...
Add rich reverts chai helper tests to `dev-utils`
2019-07-23 15:14:52 -07:00
Lawrence Forman
ff1a3ab307
Add Exchange rich revert types to @0x/order-utils
2019-07-23 15:14:13 -07:00
Lawrence Forman
26643a489b
Add RichRevertReason type and utilities to @0x/utils
2019-07-23 15:13:26 -07:00
Lawrence Forman
5955a541a3
In order-utils, inherit chaiSetup from @0x/dev-utils
2019-07-23 15:13:26 -07:00
Lawrence Forman
995669cccd
In contract-wrappers, inherit chaiSetup from @0x/dev-utils
2019-07-23 15:13:26 -07:00
Lawrence Forman
371dc347cc
Inherit chaiSetup from @0x/dev-utils
2019-07-23 15:13:26 -07:00
Lawrence Forman
9a162e5d5c
Add RichRevertAbi to etherem-types
2019-07-23 15:13:26 -07:00
Lawrence Forman
9319f362bb
Add chaiSetup function wtih rich revert support to @0x/dev-utils
2019-07-23 15:12:33 -07:00
Lawrence Forman
8305168bc4
Add OrderStatus to @0x/types
2019-07-23 15:12:03 -07:00
Lawrence Forman
e8ecbe32ca
Convert exchange MixinWrapperFunctions to use rich reverts
2019-07-23 15:10:31 -07:00
Lawrence Forman
bc5c5050fb
Convert MixinTransactions to use rich reverts
2019-07-23 15:10:31 -07:00
Lawrence Forman
8a9b9c55ce
Convert MixinSignatureValidator to use rich reverts
2019-07-23 15:10:31 -07:00
Lawrence Forman
d40f343d2a
Convert MixinMatchOrders to use rich reverts
2019-07-23 15:10:31 -07:00
Lawrence Forman
4954d0a018
Convert MixinExchangeCore to use rich errors.
2019-07-23 15:10:31 -07:00
Lawrence Forman
7232bef07b
Change LibRichErrors to just RichErrors.
...
Fix compilation issues in `exchange`.
2019-07-23 15:10:31 -07:00
Lawrence Forman
7277fb3d93
Convert to use rich reverts
2019-07-23 15:10:31 -07:00
Lawrence Forman
34e0345b29
Reimplementing rich reverts in the contracts.
2019-07-23 15:10:31 -07:00
Amir Bandeali
f094e9118c
Fix inconsistent pragma for ABIEncoderV2
2019-07-23 15:10:31 -07:00
Amir Bandeali
63e93d9253
Update CHANGELOGs
2019-07-23 15:10:31 -07:00
Amir Bandeali
2ec0d421f7
Cleanup LibEIP712 domain contracts
2019-07-23 15:09:46 -07:00
Amir Bandeali
8ddc890e10
Refactor BalanceThresholdFilter to use new ITransaction interface
2019-07-23 15:09:46 -07:00
Amir Bandeali
095c899913
Refactor coordinator to use new ITransactions interface
2019-07-23 15:09:46 -07:00
Amir Bandeali
e0d6a3fd1d
Refactor executeTransaction to take ZeroExTransaction struct as input
2019-07-23 15:09:46 -07:00
Amir Bandeali
308ff15adc
Refactor EIP712 libraries
2019-07-23 15:09:46 -07:00
Lawrence Forman
c195629a77
Update changelogs.
2019-07-23 15:08:58 -07:00
Lawrence Forman
6af5a67a17
Fix import order in contracts/test-utils
2019-07-23 15:08:30 -07:00
Lawrence Forman
0b38289703
Ran prettier
2019-07-23 15:08:30 -07:00
Lawrence Forman
041bf9b54e
Rename orderWithoutExchangeAddress -> orderWithoutDomain in contracts/exchange tests.
2019-07-23 15:08:30 -07:00
Lawrence Forman
5a6cf2b690
Rename orderWithoutExchangeAddress -> orderWithoutDomain in contracts/test-utils/.../formatters.ts.
2019-07-23 15:08:30 -07:00
Lawrence Forman
2e44bb6085
Fix removing domain and signature fields from order
2019-07-23 15:08:30 -07:00
Lawrence Forman
b8f056b82f
Update coordinator, exchange-forwarder, exchange-libs, exchange, and extensions contract tests to use new order and transaction structure
2019-07-23 15:08:00 -07:00
Lawrence Forman
259b463b73
Update contracts/test-utils to use new Order structure and domain schema.
2019-07-23 15:08:00 -07:00
Lawrence Forman
4aae7348d1
Update fill-scenarios, contract-wrappers, contract-artifacts, abi-gen-wrappers to use new domain schema and Order format.
2019-07-23 15:08:00 -07:00
Lawrence Forman
665942a8c9
Update order-utils package for new Order structure
2019-07-23 15:04:46 -07:00
Lawrence Forman
dc9a26ae8a
Update packages/utils tests to conform to new domain schema
2019-07-23 15:04:46 -07:00
Lawrence Forman
55f3322576
Rename eip712domain field in Order and ZeroExTransaction to just domain.
2019-07-23 15:04:46 -07:00
Lawrence Forman
376f068719
Add eip712DomainSchema to json-schemas.
...
Add required field `domain` to `order` and `zeroExTransaction` schemas.
2019-07-23 15:04:46 -07:00
Lawrence Forman
3688956ee5
Switch eip712 domain field verifyingContract to verifyingContractAddress
2019-07-23 15:04:46 -07:00
Lawrence Forman
53b1037a33
contracts/exchange-libs/contracts/test/TestLibs now inherits from LibEIP712ExchangeDomain rather than LibEIP712
2019-07-23 15:04:46 -07:00
Lawrence Forman
2b5cd02bd9
Remove deleted coordinator test contracts that accidentally survived the rebase
2019-07-23 15:04:46 -07:00
Lawrence Forman
e5fed57b8b
Make contracts/exchange-libs/.../LibEIP712.sol stateless
2019-07-23 15:04:46 -07:00
Lawrence Forman
a0b1f3efa2
Fix typo in exchange-libs test.
2019-07-23 15:04:46 -07:00
Lawrence Forman
f7fb1225d2
Add more LibEIP712 tests to exchange-libs
2019-07-23 15:04:46 -07:00
Lawrence Forman
b380952ff9
Add test to exchange-libs to ensure that a different chainId results in a different order hash.
2019-07-23 15:04:46 -07:00
Lawrence Forman
2524e7eea3
Update changelogs
2019-07-23 15:04:46 -07:00
Lawrence Forman
32460f00f8
Add chainId to order json-schemas tests.
2019-07-23 14:59:31 -07:00
Lawrence Forman
d58d7f457d
Update coordinator decodeOrdersFromFillData tests to include chainId
2019-07-23 14:59:31 -07:00
Lawrence Forman
232a43f34f
Update contract-wrappers tests.
2019-07-23 14:59:31 -07:00
Lawrence Forman
94f5a039d2
Update migrations for coordinator and exchange contracts.
2019-07-23 14:59:31 -07:00
Lawrence Forman
7a4ae74727
Add chainId to order JSON schema
2019-07-23 14:59:31 -07:00
Lawrence Forman
1295de4c78
Update generated wrappers for coordinator and exchange.
2019-07-23 14:59:31 -07:00
Lawrence Forman
77ed54f64d
Ran prettier
2019-07-23 14:58:00 -07:00
Lawrence Forman
e51b425200
Unpin coordinator deps.
...
Update coordinator tests for new tooling.
Remove unecessary `chainId` parameter in `eip712_utils.createCoordinatorApprovalTypeData`
2019-07-23 14:58:00 -07:00
Lawrence Forman
e6aff19a0c
Clearer usage of chainId constants in order-utils tests.
2019-07-23 14:58:00 -07:00
Lawrence Forman
bd06c7b343
Remove lingering invalid calls to OrderStateUtils()
2019-07-23 14:58:00 -07:00
Lawrence Forman
c096eae644
All glory to the linter gods.
2019-07-23 14:58:00 -07:00
Lawrence Forman
f77823ee24
Remove unused chainId variables in signature_utils.ts.
...
Obey the linter gods.
2019-07-23 14:58:00 -07:00
Lawrence Forman
35f568e346
Update exchange-forwarder tests.
2019-07-23 14:58:00 -07:00
Lawrence Forman
2d28fde24d
Migrate all contract-related tooling and tests to accept a chain ID in domain separators.
2019-07-23 14:58:00 -07:00
Lawrence Forman
92fe720ac3
Remove unused LibOrder inheritance from MixinBalanceThresholdFilterCore from /contracts/extensions.
2019-07-23 14:58:00 -07:00
Lawrence Forman
74a9a13564
Unpin @0x/contracts-exchange dependency in /contracts/coordinator.
...
Split up EIP712 constants and functionality in `/contracts/exchange-libs` across 3, modular contracts.
Make coordinator inherit from the modular EIP712 contracts in `@0x\contracts-exchange`.
2019-07-23 14:58:00 -07:00
Lawrence Forman
7aaef5d807
Fix missing comma in LibEIP712.sol domain schema.
...
Add `chainId` to constructors for all test contracts deriving from `LibEIP712.sol`
2019-07-23 14:58:00 -07:00
Lawrence Forman
64b4158bad
Refactor EIP712 contracts to reduce code duplication.
2019-07-23 14:58:00 -07:00
Lawrence Forman
4bbaa6b41c
Update tooling/types to incorporate chainID in domain separators.
2019-07-23 14:58:00 -07:00
Lawrence Forman
964d8171dd
Update exchange and coordinator contracts to incorporate chainID in their domain separators.
2019-07-23 14:58:00 -07:00
Lawrence Forman
5b1cbbf157
Fix merge artifact in contracts/exchange/CHANGELOG.json.
...
Correct changelog for `contracts/exchange-forwarder` after rebase.
2019-07-23 14:58:00 -07:00
Lawrence Forman
db4c29a73c
Apply and mask to assembly address instruction in exchange/.../ReentrantERC20Token.sol
2019-07-23 14:58:00 -07:00
Lawrence Forman
4f73008d95
Fix typo in changelog
2019-07-23 14:58:00 -07:00
Lawrence Forman
1b73cb28f1
Update changelog
2019-07-23 14:58:00 -07:00
Lawrence
367c981642
Update changelogs
2019-07-23 14:58:00 -07:00
Lawrence Forman
3d30eb0748
Remove sol-doc from circlci
2019-07-23 14:58:00 -07:00
Lawrence Forman
34ffdad521
Manually build @0x/monorepo-scripts
2019-07-23 14:58:00 -07:00
Lawrence Forman
4f82c0c289
Edit circleci config to omit tests we aren't interested in for 3.0
2019-07-23 14:58:00 -07:00
Lawrence
fd68746dd7
Fix typo in docstring for ReentrantERC20Token.createOrders.
2019-07-23 14:54:24 -07:00
Lawrence
bec7d1265b
Fix styling issues in ReentrantERC20Token.
...
Apply gas golfing suggestions in ReentrantERC20Token.
Describe ERC20 AssetData format in ReentrantERC20Token.
2019-07-23 14:54:24 -07:00
Lawrence
620eb2a3be
Shave off an SLOAD op in ReentrancyGuard.
2019-07-23 14:54:24 -07:00
Lawrence
e6971c45c8
Update PRs in changelogs.
2019-07-23 14:54:24 -07:00
Lawrence
961cd0825c
Add comment to ReentrantERC20Token about proper testing procedure
2019-07-23 14:54:24 -07:00
Lawrence
a1cb702ecb
Update changelogs
2019-07-23 14:54:24 -07:00
Lawrence
befc14c980
Ran linter
2019-07-23 14:52:57 -07:00
Lawrence
ff0ad53c11
Update exchange reentrancy tests to work with lazy reentrancy detection.
2019-07-23 14:52:57 -07:00
Lawrence
cf0e57d7ce
Converting tests to support new lazy reentrancy checking.
2019-07-23 14:52:57 -07:00
Lawrence Forman
9883e3ed2e
Implement new ReentrancyGuard contract.
2019-07-23 14:52:57 -07:00
David Sun
10b7d7da3f
Merge pull request #1984 from 0xProject/feature/website/add-vote-faq
...
Add FAQ link to vote page
2019-07-23 10:28:50 -07:00
David Sun
97a8c6e5af
Updated CHANGELOG.json
2019-07-23 10:27:55 -07:00
David Sun
e69d2bb54a
Add FAQ link to vote page
2019-07-23 10:06:39 -07:00
F. Eugene Aumson
ead8099109
Auto-gen Python Exchange wrapper ( #1919 )
...
* Rename existing wrapper, to match contract name
* base contract: make member var public
* json_schemas.py: stop storing copies of schemas!
* .gitignore generated erc20_token.py wrapper
* json schemas: allow uppercase digits in address
* existing exchange wrapper: re-order methods
to match method order in Solidity contract, to reduce noise in upcoming
diffs of newly generated code vs. old manually-written code.
* existing exchange wrapper: rename method params
To match contract method param names
* existing exchange wrapper: remove redundant member
* existing exchange wrapper: make signatures bytes
Not strings.
* abi-gen/test-cli: show context on diff failure
* abi-gen-templates/Py: fix broken event interface
Previous changes had removed the `token_address` parameter from all
generated methods, but this instance was missed because there weren't
tests/examples using events for the first contract for which wrappers
were generated (ERC20Token).
* abi-gen: remove unused method parameters
* abi-gen: convert Py method params to snake case
* abi-gen: rewrite Python tuple handling
* python-generated-wrappers: include Exchange
* abi-gen-templates/Py: easy linter fixes
* abi-gen-templates/Py: satisfy docstring linters
* abi-gen-templates/Py: normalize bytes before use
* contract_wrappers.py: replace Exchange w/generated
* contract_wrappers.py: rm manually written Exchange
* contract_wrappers.py/doctest: rename variables
* abi-gen: fix misspelling in docstring
Co-Authored-By: Fabio B <me@fabioberger.com >
* Py docs: error on warning, and test build in CI
* abi-gen: doc Py bytes params as requiring UTF-8
* abi-gen: git mv diff.sh test-cli/
* abi-gen: put Py wrapper in module folder, not file
This leaves space for user-defined additions to the same module, such as
for custom types, as shown herein.
* abi-gen: customizable param validation for Python
* contract_wrappers.py: JSON schema Order validation
* CircleCI Build Artifacts
For abi-gen command-line test output, for generated Python contract
wrappers as output by abi-gen, for generated Python contract wrappers as
reformatted and included in the Python package area, and for the "build"
output folder in each Python package, which includes the generated
documentation.
* CHANGELOG updates for all components
* abi-gen: grammar in comments
Co-Authored-By: Fabio B <me@fabioberger.com >
* abi-gen: CHANGELOG spelling correction
Co-Authored-By: Fabio B <me@fabioberger.com >
* order_utils.py: reverse (chronological) CHANGELOG
* abi-gen-templates: reset CHANGELOG patch version
* CHANGELOGs: use multiple entries where appropriate
* abi-gen: enable devdoc solc output in test-cli
* abi-gen-templates/Py: consolidate return type
* abi-gen/test-cli: non-pure fixture contract method
Added a method to the "dummy" test fixture contract that isn't pure.
All of the other prior method cases were pure.
* abi-gen/Py: fix const methods missing return type
* abi-gen/Py: fix wrong return types on some methods
Specifically, wrapper methods wrapping contract methods that modify
contract state and return no return value. There was no test case for
this. Now there is.
* contract_wrappers.py: rm generated code in `clean`
* Parallelize Py monorepo scripts (test, lint, etc)
2019-07-23 12:58:18 -04:00
Chris Kalani
9d455b2bca
Adding Alex Towle to team page
2019-07-23 16:19:27 +02:00
Jacob Evans
1e6e74878f
Merge pull request #1981 from 0xProject/fix/vote-copy
...
Update vote copy
2019-07-23 21:03:10 +10:00
Fabio Berger
cbcede3b63
Add missing backslash that is part of registry URL comparison in Lerna
2019-07-23 04:01:17 -07:00
Jacob Evans
98fd731485
Added SVGs for voting
2019-07-23 18:09:10 +10:00
Jacob Evans
9ca319b4ea
Update vote copy
2019-07-23 15:25:02 +10:00
Fabio B
ff8fabf49e
Merge pull request #1979 from 0xProject/fix/updateLerna
...
Update Lerna fork to latest version
2019-07-23 00:07:55 +02:00
fabioberger
1e00f68941
Update Lerna version and make necessary changes to accomodate the new version
2019-07-22 23:23:11 +02:00
David Sun
6c79edd3b2
Merge pull request #1978 from 0xProject/feature/website/add-FAQ-annoucement
...
Add announcement for vote
2019-07-22 14:08:26 -07:00
David Sun
b79bc6bab9
add announcement
2019-07-22 12:45:46 -07:00
Fabio B
c59d886662
Merge pull request #1974 from 0xProject/removeMetacoin
...
Remove metacoin example from monorepo
2019-07-19 22:02:38 +02:00
fabioberger
e39dce6159
Remove metacoin example from monorepo
2019-07-19 19:38:08 +02:00
Fabio B
620c66fb4c
Merge pull request #1972 from 0xProject/fix/deprecateOrderWatcher
...
Deprecate @0x/order-watcher
2019-07-19 19:35:21 +02:00
F. Eugene Aumson
3af91d54cb
Delete pipeline.env.gpg
2019-07-19 13:06:21 -04:00
fabioberger
1fe1bcff98
Stop publishing new order watcher versions to Docker Hub
2019-07-19 17:50:12 +02:00
fabioberger
c58c12c5b3
Add deprecation warnings for @0x/order-watcher
2019-07-19 17:49:57 +02:00
Jacob Evans
1aeea39eb3
Merge pull request #1967 from bstchow/issue-1945-fix
...
[Issue #1945 ] Downcase address comparison in private_key_wallet.ts in subproviders module
2019-07-18 10:57:27 +10:00
David Sun
d3fbf020de
Merge pull request #1966 from 0xProject/feature/asset-swapper/expanding-options-utils
...
Added options, features for asset-swapper
2019-07-17 15:43:05 -07:00
David Sun
8ce8bee76f
prettier + lint
2019-07-17 15:22:48 -07:00
David Sun
dcf4eb2aaf
utils moved to SwapQuoter and polished Doc Strings
2019-07-17 15:12:59 -07:00
David Sun
88ff38eca6
fixed build issues
2019-07-17 13:38:30 -07:00
David Sun
bf0d90d079
added options, features for asset-swapper
2019-07-17 11:56:27 -07:00
Amir Bandeali
c4d9ef9f83
Merge pull request #1964 from 0xProject/feature/contracts/consistentErrorCodes
...
Update MAP + add validation to assetDataUtils
2019-07-17 11:15:11 -07:00
Xianny
37bce53683
Normalize address inputs to lowercase in generated wrappers ( #1951 )
2019-07-17 10:13:28 -07:00
Amir Bandeali
05d50b62c9
Update CHANGELOG
2019-07-17 09:37:42 -07:00
Amir Bandeali
eb2fb7f790
Fix linting error
2019-07-17 09:37:42 -07:00
Amir Bandeali
d280ccb3c4
Add better validation to assetDataUtils
2019-07-17 09:37:42 -07:00
Amir Bandeali
a569815840
Fix assetData length check and improve readability
2019-07-17 09:37:42 -07:00
Greg Hysen
9e41c3093b
Conforming to error codes in ERC1155 Proxy
2019-07-17 09:37:42 -07:00
Amir Bandeali
9dbc9a8ad9
Merge pull request #1963 from 0xProject/feat/contracts/non-asm-proxies
...
Implement ERC1155Proxy and StaticCallProxy in Solidity
2019-07-17 09:23:25 -07:00
Jacob Evans
c940157814
Merge pull request #1908 from 0xProject/feature/vote_index_page
...
Implement the vote index page
2019-07-17 18:27:09 +10:00
Jacob Evans
4f19875a58
Remove commented routes
2019-07-17 15:17:54 +10:00
Jacob Evans
dcbadb2386
Update Vote form
2019-07-17 15:04:33 +10:00
Jacob Evans
405a7b2037
Update dates to 22nd July
2019-07-17 15:04:33 +10:00
Jacob Evans
e69ad24737
Update ZEIP-ID propagation
2019-07-17 15:04:32 +10:00
Jacob Evans
a31056a4ec
Fix PR comments
2019-07-17 15:04:32 +10:00
Jacob Evans
d41dddddcd
Update subheader copy
2019-07-17 15:04:32 +10:00
Jacob Evans
251ae50d3e
Update copy, fetch data
2019-07-17 15:04:32 +10:00
fragosti
4ccd2d4955
Comment out route and replace with redirect
2019-07-17 15:04:31 +10:00
fragosti
dfb79e0998
Remove Zeip type, use zeip id in governance page CTA
2019-07-17 15:04:31 +10:00
fragosti
590055e2ba
Fix date formatting
2019-07-17 15:04:31 +10:00
fragosti
f388751a97
Implement the vote index page with routing to voting pages
2019-07-17 15:04:31 +10:00
Amir Bandeali
53136caaa4
Add test for when staticCallTarget is an EOA
2019-07-16 16:00:38 -07:00
David Sun
dd20d8d6de
Merge pull request #1959 from 0xProject/feature/asset-swapper/minor-changes
...
Minor changes to Asset-swapper
2019-07-16 13:05:25 -07:00
Xianny
a977957946
Require compiler field in published artifacts for v3 ( #1961 )
2019-07-16 12:25:08 -07:00
David Sun
8974fcabe3
Prettier
2019-07-16 11:03:00 -07:00
Brandon Chow
aff8e1e025
Remove the timestamp from subproviders CHANGELOG.json (should be automatically added) and run 'yarn prettier' to format changes.
2019-07-16 09:51:18 -07:00
Amir Bandeali
10d767c5ab
Update ERC1155Proxy tests
2019-07-15 22:08:23 -07:00
Amir Bandeali
77484dc69e
Implement ERC1155Proxy in Solidity
2019-07-15 22:08:08 -07:00
Amir Bandeali
185e2342d9
Update StaticCallProxy tests
2019-07-15 22:07:31 -07:00
Amir Bandeali
54f4727adc
Implement StaticCallProxy in Solidity
2019-07-15 22:07:15 -07:00
Brandon Chow
6e0f982163
Downcase addresses when checking for address equality in signTransactionAsync in the private key subprovider
2019-07-15 18:35:05 -07:00
Brandon Chow
43072ef80d
Add test for checksummed addresses being valid inputs for tx origin when calling signTransactionAsync in the private key subprovider
2019-07-15 18:33:33 -07:00
David Sun
7618e63f49
expanded constants
2019-07-15 15:53:06 -07:00
David Sun
542255332d
changed market-operation type to enum from literal
2019-07-15 15:29:13 -07:00
David Sun
6d6e7e1468
Merge pull request #1958 from 0xProject/feature/asset-swapper/package-readme.md-update
...
Updated README.md for asset-swapper
2019-07-15 15:09:01 -07:00
David Sun
0ff88d5c21
fix typo
2019-07-15 14:26:04 -07:00
David Sun
092e35bae3
updated README.md
2019-07-15 14:17:41 -07:00
Fabio Berger
ac82b2622c
Publish
...
- 0x.js@6.0.12
- @0x/abi-gen-wrappers@5.0.2
- @0x/asset-buyer@6.1.8
- @0x/asset-swapper@0.0.4
- @0x/connect@5.0.13
- @0x/contract-addresses@3.0.2
- @0x/contract-wrappers@9.1.7
- @0x/fill-scenarios@3.0.13
- @0x/instant@1.0.27
- @0x/metacoin@0.0.54
- @0x/migrations@4.1.9
- @0x/order-utils@8.2.2
- @0x/order-watcher@4.0.14
- @0x/testnet-faucets@1.0.83
- @0x/website@0.0.86
- @0x/contracts-asset-proxy@2.2.2
- @0x/contracts-coordinator@2.0.7
- @0x/contracts-dev-utils@0.0.4
- @0x/contracts-erc1155@1.1.9
- @0x/contracts-erc20@2.2.8
- @0x/contracts-erc721@2.1.9
- @0x/contracts-exchange@2.1.8
- @0x/contracts-exchange-forwarder@3.0.6
- @0x/contracts-exchange-libs@3.0.2
- @0x/contracts-extensions@4.0.2
- @0x/contracts-multisig@3.1.8
- @0x/contracts-test-utils@3.1.10
- @0x/contracts-utils@3.1.9
2019-07-15 05:23:02 -07:00
Fabio Berger
7197cb57cd
Updated CHANGELOGS
2019-07-15 05:22:51 -07:00
Fabio B
030d66cb63
Merge pull request #1955 from 0xProject/feature/contract-addresses/order-validator-2.1
...
Redeploy OrderValidator on testnets and update addresses
2019-07-15 13:34:34 +02:00
F. Eugene Aumson
d414e6a7c4
0x-contract-addresses.py: changelog for redeploy
2019-07-15 02:26:07 -04:00
Amir Bandeali
30f9c94620
Redeploy OrderValidator on testnets and update addresses
2019-07-13 21:07:52 -07:00