Lawrence Forman
0f207cccb6
rebasing against development...
2022-02-26 15:20:30 -05:00
Lawrence Forman
2727dc3968
@0x/asset-swapper: hack together basic sampler service integration
...
`@0x/asset-swapper`: use gasCost from sampler service
cleanup
`@0x/asset-swapper`: Handle per-fill gas cost correctly in more places
getting multihop back up + refactors for treating all quotes as n-hop
multihop with nice breakdowns
get vips working
get multiplex working
get rfq working
remove unused functions
fix multihop buys
plz work multihop buys
multihop buys seem ok now.
fetch less samples for multihop legs
get quote report and price comparisons working
clean up
2022-02-26 15:20:30 -05:00
Github Actions
389ebb5df8
Publish
...
- @0x/asset-swapper@16.49 .9
@0x/asset-swapper@16.49.9
protocol@389ebb5
2022-02-24 09:52:41 +00:00
Github Actions
fd9655e9d4
Updated CHANGELOGS & MD docs
2022-02-24 09:52:38 +00:00
Kim Persson
6480aaa189
fix: native order scaling & don't try to route 1 wei trades (it will fail) ( #430 )
...
* feat: scale oversized native orders to quote amount for fake samples
* chore: temporarily use private publish neon-router version
* fix: short circuit 1 base unit trades to avoid router error
* chore: use published version of `neon-router`
* chore: add changelog entry for asset-swapper
2022-02-24 10:34:17 +01:00
Github Actions
38969bb0a8
Publish
...
- @0x/contracts-erc20@3.3.26
- @0x/contracts-test-utils@5.4.17
- @0x/contracts-treasury@1.4.9
- @0x/contracts-utils@4.8.7
- @0x/contracts-zero-ex@0.31 .0
- @0x/asset-swapper@16.49 .8
- @0x/contract-artifacts@3.17 .0
- @0x/contract-wrappers@13.19 .0
- @0x/migrations@8.1.15
- @0x/protocol-utils@1.11 .0
@0x/contract-artifacts@3.17.0
@0x/contract-wrappers@13.19.0
@0x/contracts-erc20@3.3.26
@0x/contracts-test-utils@5.4.17
@0x/contracts-treasury@1.4.9
@0x/contracts-utils@4.8.7
@0x/contracts-zero-ex@0.31.0
@0x/asset-swapper@16.49.8
@0x/migrations@8.1.15
@0x/protocol-utils@1.11.0
protocol@38969bb
2022-02-22 22:32:24 +00:00
Github Actions
1847ab93af
Updated CHANGELOGS & MD docs
2022-02-22 22:32:20 +00:00
mzhu25
c1177416f5
[Final] ERC721 and ERC1155 Orders ( #429 )
...
* add LibERC721Order.sol
* Add ERC721 interface to vendor/
* Add ERC721OrdersFeature interface
* Storage lib for ERC721 orders feature
* Implement basic functionality for ERC721 orders (buy, sell, cancel, etc)
* Add isValidERC721OrderSignature to interface
* implement onERC721Received
* Implement batchBuyERC721s
* left/right orders -> sell/buy orders
* Add missing @return comments
* Implement matching functions
* Use SafeMath where necessary
* add rich errors for ERC721OrdersFeature
* Add comments
* Add presign support for ERC721 orders
* Cancel using just the order nonce
* Add IERC721OrdersFeature to IZeroEx
* Add taker callback
* Assembly optimizations in LibERC721Order
* Add ERC721Orders TS class
* create zero-ex/contracts/test/integration/ and tokens/ directories
* TestMintableERC721Token
* tmp
* 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 >
* Remove revertIfIncomplete from batchMatch
* Sanity check maker address in preSign
* ERC1155OrdersFeature contracts
* Commence refactor, abstract base contract
* ERC721OrdersFeature inherits from NFTOrders
* Refactor ERC1155OrdersFeature to inherit from NFTOrders
* Fix order hashing
* Fix ERC721OrdersFeature tests
* Typos
* Remove maker address from preSigned mapping
* disable dex sampler tests
* Refactor TS tooling
* Address PR feedback
* Rearrange event fields to better align with struct fields
* Update comments
* update AbiEncoder.create params
* Add ERC1155Order to protocol-utils
* Add ERC1155OrdersFeeature tests
* Bump package versions and regenerate contract wrappers
* Add ERC165Feature
* NFT orders: address audit findings (#417 )
* CVF-1: use pragma solidity ^0.6 instead of ^0.6.5
* CVF-11: fix inaccurate comment
* CVF-16: Enable taker callbacks for batchBuyERC1155s
* CVF-17: use internal call if revertIfIncomplete is true
* CVF-21: avoid duplicate SLOAD
* CVF-23: merge if statements
* CVF-24: Reorder status checks to be consistent with ERC721OrdersFeature
* CVF-25: Update unclear comment (canonical hash -> EIP-712 hash)
* CVF-31: Document keys of orderState mapping
* CVF-45: DRY up fees/properties hashing
* CVF-47, CVF-50, CVF-57: calculate properties.length once; hash propertyStructHashArray in-place using assembly
* CVF-56: More descriptive names for assembly variables
* CVF-71: Update confusing comment about rounding in _payFees
* CVF-72: Move ETH assertions outside of loop in _payFees
* CVF-74: Move property validation loop to else branch
* CVF-82: Update inaccurate comment
* CVF-86: Enable taker callbacks for batchBuyERC721s
* CVF-87: use internal call if revertIfIncomplete is true
* CVF-89: Perform token mismatch checks before stateful operations
* CVF-90, CVF-91: Defer ERC20 token mismatch check
* CVF-93: Add inline comments for _payFees parameters in matchERC721Orders
* CVF-94: Fix comment (Step 7 -> Step 5)
* CVF-98: Use binary & operator instead of mod
* CVF-99: Update unclear comment (canonical hash -> EIP-712 hash)
* CVF-65, CVF-66, CVF-67: Copy params.ethAvailable into local variable; check that ethSpent does not exceed ethAvailable; remove ethAvailable < erc20FillAmount check
* CVF-52, CVF-55, CVF-59: calculate fees.length once; hash feeStructHashArray in-place using assembly
* CVF-14, CVF-32: OrderState struct; separate storage mapping for 1155 cancellations so orders can be cancelled by nonce
* Update changelogs, IZeroEx artifact/wrapper
Co-authored-by: Lawrence Forman <lawrence@0xproject.com >
Co-authored-by: Lawrence Forman <me@merklejerk.com >
Co-authored-by: Kim Persson <kimpers@users.noreply.github.com >
2022-02-22 10:00:22 -08:00
Github Actions
4fdd203211
Publish
...
- @0x/asset-swapper@16.49 .7
@0x/asset-swapper@16.49.7
protocol@4fdd203
2022-02-22 12:50:50 +00:00
Github Actions
4bc11776d7
Updated CHANGELOGS & MD docs
2022-02-22 12:50:47 +00:00
Kim Persson
eb12eac5f3
fix: start native orders "samples" at 0 & don't skip neg adj orders ( #425 )
...
* fix: start native orders "samples" at 0 & don't skip neg adj orders
* fix: bail on routes with invalid output estimation (no valid route)
* chore: bump neon-router version
* chore: add asset-swapper changelog entry
2022-02-22 13:31:47 +01:00
Github Actions
5f5b951998
Publish
...
- @0x/asset-swapper@16.49 .6
@0x/asset-swapper@16.49.6
protocol@5f5b951
2022-02-17 16:02:38 +00:00
Github Actions
8e90547604
Updated CHANGELOGS & MD docs
2022-02-17 16:02:34 +00:00
Noah Khamliche
fbea74d7ff
remove comments
2022-02-17 10:40:59 -05:00
Noah Khamliche
dcea16bc13
removed ohmv2/dai and ohmv2/weth, routing is the same without the search overhead
2022-02-17 10:40:59 -05:00
Noah Khamliche
d59a074bd7
updated changelog
2022-02-17 10:40:59 -05:00
Noah Khamliche
39cc4f4dbf
fixed btrfly routing to include the ohmV2/dai, ohmV2/btfly, and ohmV2/weth pools
2022-02-17 10:40:59 -05:00
Github Actions
85bcf87af8
Publish
...
- @0x/asset-swapper@16.49 .5
@0x/asset-swapper@16.49.5
protocol@85bcf87
2022-02-14 13:12:38 +00:00
Github Actions
a0fe1c610f
Updated CHANGELOGS & MD docs
2022-02-14 13:12:35 +00:00
Kim Persson
5d21af1a0a
fix: 1 base unit output amount being scale down, rounding to 0 output ( #422 )
...
* fix: 1 base unit output amount being scale down, rounding to 0 output
* chore: add asset-swapper changelog entry
* fix: round scaled output to base units before clamping
2022-02-14 13:54:53 +01:00
Jacob Evans
f6edbd210c
Update protocol docs ( #421 )
...
* Update protocol docs
* Added functions
* fix table
* eligbility section?
* Trader.xyz shoutout
* Up to
2022-02-11 22:53:49 +10:00
Github Actions
e084807a8f
Publish
...
- @0x/asset-swapper@16.49 .4
@0x/asset-swapper@16.49.4
protocol@e084807
2022-02-10 15:34:41 +00:00
Github Actions
1c7d512829
Updated CHANGELOGS & MD docs
2022-02-10 15:34:38 +00:00
Kim Persson
df0e0866e4
fix: Revert Improve Uniswap V3 gas schedule ( #397 ) ( #419 )
...
* Revert "feat: Improve Uniswap V3 gas schedule (#397 )"
This reverts commit 84e4819e6e .
* chore: Add changelog entry
2022-02-10 16:15:54 +01:00
Github Actions
9e6efc3676
Publish
...
- @0x/asset-swapper@16.49 .3
@0x/asset-swapper@16.49.3
protocol@9e6efc3
2022-02-10 12:12:08 +00:00
Github Actions
3aef29dace
Updated CHANGELOGS & MD docs
2022-02-10 12:12:05 +00:00
Kim Persson
9a16e00577
fix: router RFQ underutilization ( #413 )
...
* fix: pass EP overhead to Path & use path comparison all & vip routes
* chore: add changelog entry for asset-swapper
2022-02-10 12:55:30 +01:00
Kim Persson
84e4819e6e
feat: Improve Uniswap V3 gas schedule ( #397 )
...
* feat: UniswapV3Sampler use QuoterV2 for sells WIP
* feat: UniswapV3Sampler for QuoterV2 buys WIP
* refactor: separate logic to remove stack too deep issue
* feat: Use initializedTicksCrossed from Uniswap QuoterV2 for gas est.
* fix: use Quoter gasUsed instead of estimating gas from pools + ticks
* refactor: clean up UniswapV3Sampler & remove old Quoter interface
* refactor: unify code for buys and sells while handling stack too deep
* fix: use mean gas price from all sample estimating UniV3 gas schedule
* fix: fallback to legacy Uniswap V3 gas estimate if we can't get gasUsed
* refactor: use named function instead of fat arrow
* chore: add asset-swapper changelog entry
2022-02-10 11:16:24 +01:00
Kim Persson
25dd6bc79a
fix: incorrect output scaling when input is less than desired amount ( #401 )
...
* fix: incorrect output scaling when input is less than desired amount
* chore: bump fast-abi
* chore: add changelog entry for asset-swapper
2022-02-10 10:43:44 +01:00
Jacob Evans
5d2cdb00c2
fix: slippage inconsistency when recalculated in exchange proxy quote consumer ( #412 )
...
* fix: Pass slippage down rather than recalculate due to accuracy
* CHANGELOG
2022-02-04 10:37:38 +10:00
Github Actions
0f701f42d3
Publish
...
- @0x/asset-swapper@16.49 .2
@0x/asset-swapper@16.49.2
protocol@0f701f4
2022-01-31 18:24:47 +00:00
Github Actions
3e3e82d3f7
Updated CHANGELOGS & MD docs
2022-01-31 18:24:44 +00:00
Lawrence Forman
c57bf86273
Fix ABI encoding error with two hop buys due to applying slippage to uint(-1) values ( #410 )
...
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2022-01-31 12:51:17 -05:00
Github Actions
f470d282ee
Publish
...
- @0x/asset-swapper@16.49 .1
@0x/asset-swapper@16.49.1
protocol@f470d28
2022-01-31 07:20:03 +00:00
Github Actions
b8a2526da5
Updated CHANGELOGS & MD docs
2022-01-31 07:19:59 +00:00
Jacob Evans
97575bbde9
fix: worstCaseQuoteInfo calculating buys incorrectly [TKR-296] ( #402 )
...
* fix: WorstCaseQuoteInfo buy encoding
* CHANGELOG
2022-01-31 17:01:17 +10:00
Github Actions
e5ed8b2c81
Publish
...
- @0x/asset-swapper@16.49 .0
@0x/asset-swapper@16.49.0
protocol@e5ed8b2
2022-01-28 22:11:46 +00:00
Github Actions
61fbae3ae2
Updated CHANGELOGS & MD docs
2022-01-28 22:11:42 +00:00
Shawn
5c2255c841
feat: add curve pools ( #409 )
...
* feat: Additional Curve pools
* more pools
* fix the format
* changlog
* lowercase address
Co-authored-by: Jacob Evans <jacob@dekz.net >
2022-01-28 12:08:28 -08:00
Github Actions
e036dee6c5
Publish
...
- @0x/asset-swapper@16.48 .0
@0x/asset-swapper@16.48.0
protocol@e036dee
2022-01-25 22:00:25 +00:00
Github Actions
8583aab241
Updated CHANGELOGS & MD docs
2022-01-25 22:00:21 +00:00
Jacob Evans
5d05b62821
chore: Use MIM on Fantom as an intermediary asset ( #405 )
2022-01-26 07:42:29 +10:00
Github Actions
0063e8178f
Publish
...
- @0x/asset-swapper@16.47 .0
@0x/asset-swapper@16.47.0
protocol@0063e81
2022-01-25 18:51:07 +00:00
Github Actions
ec6e5dd517
Updated CHANGELOGS & MD docs
2022-01-25 18:51:04 +00:00
Noah Khamliche
9d08fefa1c
Feat/synapse ( #400 )
...
* added synapse support
2022-01-25 13:21:07 -05: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