Commit Graph

16862 Commits

Author SHA1 Message Date
Michael Zhu
15b6448194 Update comments 2022-01-19 21:31:25 -08:00
Michael Zhu
7424c115d6 Rearrange event fields to better align with struct fields 2022-01-19 21:31:25 -08:00
Michael Zhu
85b6c8decb Address PR feedback 2022-01-19 21:31:25 -08:00
Michael Zhu
3a3e447dc1 Refactor TS tooling 2022-01-19 21:31:25 -08:00
Michael Zhu
9047abbc9b disable dex sampler tests 2022-01-19 21:31:25 -08:00
Michael Zhu
e692d5d94a Remove maker address from preSigned mapping 2022-01-19 21:31:25 -08:00
Michael Zhu
05c37753ec Typos 2022-01-19 21:31:25 -08:00
Michael Zhu
160deee6ca Fix ERC721OrdersFeature tests 2022-01-19 21:31:25 -08:00
Michael Zhu
2709b66161 Fix order hashing 2022-01-19 21:31:25 -08:00
Michael Zhu
d0c4ac7836 Refactor ERC1155OrdersFeature to inherit from NFTOrders 2022-01-19 21:31:25 -08:00
Michael Zhu
cf0898fd4b ERC721OrdersFeature inherits from NFTOrders 2022-01-19 21:31:25 -08:00
Michael Zhu
8ec25edff4 Commence refactor, abstract base contract 2022-01-19 21:31:25 -08:00
Michael Zhu
b6b90e30d8 ERC1155OrdersFeature contracts 2022-01-19 21:31:25 -08:00
Michael Zhu
7bf1b0750e Sanity check maker address in preSign 2022-01-19 21:31:25 -08:00
Michael Zhu
2005054ec8 Remove revertIfIncomplete from batchMatch 2022-01-19 21:31:25 -08:00
Lawrence Forman
cc70ad9d3c address feedback from original PR (#391)
* address feedback from original PR

* Update contracts/zero-ex/contracts/src/features/ERC721OrdersFeature.sol

Co-authored-by: Kim Persson <kimpers@users.noreply.github.com>

* address review feedback and improve order parameter naming

* Add batchCancel function

* Emit order fields in preSign

* Fix tests

Co-authored-by: Lawrence Forman <me@merklejerk.com>
Co-authored-by: Kim Persson <kimpers@users.noreply.github.com>
Co-authored-by: Michael Zhu <mchl.zhu.96@gmail.com>
2022-01-19 21:31:25 -08:00
Michael Zhu
db07fad051 tmp 2022-01-19 21:31:25 -08:00
Michael Zhu
91bfce9145 TestMintableERC721Token 2022-01-19 21:31:25 -08:00
Michael Zhu
5fc608ed2f create zero-ex/contracts/test/integration/ and tokens/ directories 2022-01-19 21:31:25 -08:00
Michael Zhu
9b626ee37a Add ERC721Orders TS class 2022-01-19 21:31:25 -08:00
Michael Zhu
4ae56d5876 Assembly optimizations in LibERC721Order 2022-01-19 21:31:25 -08:00
Michael Zhu
fd5d549c43 Add taker callback 2022-01-19 21:31:25 -08:00
Michael Zhu
180110de50 Add IERC721OrdersFeature to IZeroEx 2022-01-19 21:31:25 -08:00
Michael Zhu
d186cddc29 Cancel using just the order nonce 2022-01-19 21:31:25 -08:00
Michael Zhu
fbabd2f264 Add presign support for ERC721 orders 2022-01-19 21:31:25 -08:00
Michael Zhu
35f375a525 Add comments 2022-01-19 21:31:25 -08:00
Michael Zhu
29892db0fd add rich errors for ERC721OrdersFeature 2022-01-19 21:31:25 -08:00
Michael Zhu
2cbb107380 Use SafeMath where necessary 2022-01-19 21:31:25 -08:00
Michael Zhu
599d590fbc Implement matching functions 2022-01-19 21:31:25 -08:00
Michael Zhu
9651b41264 Add missing @return comments 2022-01-19 21:31:25 -08:00
Michael Zhu
b6f118ef32 left/right orders -> sell/buy orders 2022-01-19 21:31:25 -08:00
Michael Zhu
2cc11c87d1 Implement batchBuyERC721s 2022-01-19 21:31:25 -08:00
Michael Zhu
7fa2eb4c2a implement onERC721Received 2022-01-19 21:31:25 -08:00
Michael Zhu
35d839c651 Add isValidERC721OrderSignature to interface 2022-01-19 21:31:25 -08:00
Michael Zhu
a009779a88 Implement basic functionality for ERC721 orders (buy, sell, cancel, etc) 2022-01-19 21:31:25 -08:00
Michael Zhu
9aa7945bc4 Storage lib for ERC721 orders feature 2022-01-19 21:31:25 -08:00
Michael Zhu
e7d198ef16 Add ERC721OrdersFeature interface 2022-01-19 21:31:25 -08:00
Michael Zhu
4e7e6eb634 Add ERC721 interface to vendor/ 2022-01-19 21:31:25 -08:00
Michael Zhu
f745023625 add LibERC721Order.sol 2022-01-19 21:31:25 -08:00
Github Actions
2fdca24d4e Publish
- @0x/asset-swapper@16.46.0
@0x/asset-swapper@16.46.0 protocol@2fdca24
2022-01-11 01:10:02 +00:00
Github Actions
42ec0b144e Updated CHANGELOGS & MD docs 2022-01-11 01:09:58 +00:00
Jacob Evans
3f6ce78b46 chore: Enable Curve ETH/CVX (#394)
* chore: Enable Curve ETH/CVX

* pr number
2022-01-11 09:32:07 +10:00
Github Actions
c1300c1068 Publish
- @0x/asset-swapper@16.45.2
@0x/asset-swapper@16.45.2 protocol@c1300c1
2022-01-10 15:09:26 +00:00
Github Actions
9a641cfab6 Updated CHANGELOGS & MD docs 2022-01-10 15:09:23 +00:00
Kim Persson
60345d4465 fix: don't create fills for 0 output samples and negative adjusted rate orders (#387)
* fix: don't try to create fills for 0 output samples

* fix: negative adjusted output native orders causing undefined fills

* fix: make sure to use the same sourcePathId for fills from same source

* fix: should be same sourcePathId within the same DexSample[]

* fix: split native orders into 13 samples to align with interpolation

* chore: add changelog entry for asset-swapper
2022-01-10 14:55:03 +01:00
Github Actions
11dfea47a6 Publish
- @0x/asset-swapper@16.45.1
@0x/asset-swapper@16.45.1 protocol@11dfea4
2022-01-05 05:08:43 +00:00
Github Actions
55e9dd39a2 Updated CHANGELOGS & MD docs 2022-01-05 05:08:41 +00:00
Jacob Evans
1993929bed chore: Celo Update certain tokens since Optics v2 (#390)
* chore: Celo Update certain tokens since Optics v2

* Changelog
2022-01-05 14:44:29 +10:00
Oskar Paolini
e1d81de517 fixes axios object dumping in logs (#345) 2022-01-05 09:46:01 +10:00
Github Actions
a6b3a21635 Publish
- @0x/asset-swapper@16.45.0
@0x/asset-swapper@16.45.0 protocol@a6b3a21
2022-01-04 15:00:16 +00:00