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
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
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