Xianny
7127f541c3
UniswapV2Bridge ( #2590 )
...
* implement UniswapV2 Bridge
* More tests for UniswapV2Bridge
* cleanup and remove ERC20BridgeSampler changes
* enable multihop; address review comments
* solidity 0.6.9 doesnt allow devdoc for public storage vars
* codestyle improvements
2020-06-05 11:56:52 -07:00
Lawrence Forman
32793cc008
Merge pull request #2595 from 0xProject/feat/erc20-bridge-sampler/uniswapv2-tests
...
Add Uniswap V2 to ERC20BridgeSampler
2020-06-04 12:14:07 -04:00
xianny
fbaf55cb25
update @0x/contract-artifacts and @0x/contract-wrappers
2020-06-03 13:45:35 -07:00
xianny
b8d51fc4e8
rename contract to UniswapV2Router01
...
https://github.com/Uniswap/uniswap-v2-periphery/blob/master/contracts/UniswapV2Router01.sol
2020-06-03 12:08:08 -07:00
Lawrence Forman
0c6e05d220
Merge pull request #2576 from 0xProject/feat/contracts-zero-ex/0x-api-erc20-transformers
...
ZeroEx: ERC20 Transformers
2020-06-03 14:09:20 -04:00
Lawrence Forman
4066c17a0f
@0x/contracts-erc20-bridge-sampler: Add UniswapV2.
2020-06-03 14:01:09 -04:00
Lawrence Forman
429f2bb8dd
@0x/contracts-utils: Add UniswapV2 to DeploymentConstants.
2020-06-03 13:57:59 -04:00
Lawrence Forman
112f4fc4f0
@0x/contracts-zero-ex: Address review comments.
2020-06-02 22:01:22 -04:00
Lawrence Forman
ecfbd6280f
@0x/contracts-zero-ex: Address review feedback.
2020-05-28 11:56:59 -04:00
Lawrence Forman
bf84409839
@0x/utils: Update InvalidTransformDataError.
2020-05-28 11:56:59 -04:00
Lawrence Forman
a7ce72cae0
@0x/contracts-zero-ex: Rebase against development
2020-05-28 11:56:59 -04:00
Lawrence Forman
28402ff7d8
@0x/contracts-zero-ex: Add self-destructing to transformers
2020-05-28 11:56:59 -04:00
Lawrence Forman
e1d213d1a3
@0x/utils: Add more transformer revert errors.
2020-05-28 11:56:59 -04:00
Lawrence Forman
c610dd96f5
@0x/contracts-zero-ex: Rebase, returning nonces in transform().
2020-05-28 11:56:59 -04:00
Lawrence Forman
2ba3818b65
@0x/contracts-zero-ex: Introduce transformer contracts.
2020-05-28 11:56:59 -04:00
Lawrence Forman
0e1a5a375a
@0x/contracts-test-utils: Add msg param to assertIntegerRoughlyEquals
2020-05-28 11:56:59 -04:00
Lawrence Forman
cfc3daeb65
@0x/utils: Add ERC20 transformer revert errors.
2020-05-28 11:56:59 -04:00
Lawrence Forman
6359f1950e
@0x/contracts-zero-ex: Address review feedback.
2020-05-28 11:56:59 -04:00
Lawrence Forman
d2f581853d
@x/utils: Address review feedback.
2020-05-28 11:56:59 -04:00
Lawrence Forman
030cb285da
@0x/contracts-zero-ex: Use immutable owner in Puppet instead of Ownable.
2020-05-28 11:56:59 -04:00
Lawrence Forman
af45409959
@0x/contracts-zero-ex: Revamp TransformERC20.
2020-05-28 11:56:59 -04:00
Lawrence Forman
d9a9bc35e3
@0x/zero-ex: Rebase and use "slot" instead of "offset" language in storage buckets.
2020-05-28 11:56:59 -04:00
Lawrence Forman
c911c3352c
@0x/contracts-zero-ex: Make TokenSpender's puppet contract a distinct contract type and rename getTokenSpenderPuppet() to getAllowanceTarget()
2020-05-28 11:56:58 -04:00
Lawrence Forman
654abbac25
@0x/contracts-zero-ex: Introduce the TransformERC20 feature.
2020-05-28 11:56:58 -04:00
Lawrence Forman
46d5f42c9d
@0x/utils: Add new ZeroExRevertErrors revert types
2020-05-28 11:56:58 -04:00
Lawrence Forman
1509da1215
@0x/contracts-utils: Convert more 0.6 contracts
2020-05-28 11:56:58 -04:00
F. Eugene Aumson
98a99d96aa
Merge pull request #2588 from 0xProject/feuGeneA-patch-4
...
asset-swapper: For RFQ, don't log error status code if there isn't one
2020-05-27 19:31:43 -04:00
F. Eugene Aumson
d62d81af17
Update quote_requestor.ts
2020-05-27 14:19:24 -04:00
Lawrence Forman
dba67eb927
asset-swapper: Increase timeout for tests. ( #2587 )
...
* `@0x/asset-swapper`: Increase timeout for tests.
* Update packages/asset-swapper/CHANGELOG.json
Co-authored-by: Kim Persson <kimpers@users.noreply.github.com >
Co-authored-by: Lawrence Forman <me@merklejerk.com >
Co-authored-by: Kim Persson <kimpers@users.noreply.github.com >
2020-05-27 09:51:20 -04:00
Lawrence Forman
548c30d6a0
ZeroEx: Audit Fixes ( #2586 )
...
* `@0x/utils`: Remove unused revert error.
* `@0x/contracts-zero-ex`: Address audit feedback.
2020-05-26 20:57:55 -04:00
F. Eugene Aumson
511cd90c44
Merge pull request #2585 from 0xProject/fix/asset-swapper/rfqt-error-status-logging
...
asset-s/QuoteRequestor: fix statusCode logging
2020-05-21 18:43:04 -04:00
F. Eugene Aumson
8fb2d8da88
asset-s/QuoteRequestor: fix statusCode logging
2020-05-21 16:37:37 -04:00
Lawrence Forman
2fce332ed7
ZeroEx: TransformERC20, TokenSpender ( #2545 )
...
* `@0x/contracts-utils`: Convert more 0.6 contracts
* `@0x/contracts-erc20`: Add solidity 0.6 contracts.
* `@0x/utils`: Add new `ZeroExRevertErrors` revert types
* `@0x/contracts-zero-ex`: Introduce the `TransformERC20` feature.
* `@0x/subproviders`: Update ganache-core.
`@0x/web3-wrapper`: Update ganache-core.
* `@0x/contracts-zero-ex`: Make `TokenSpender`'s puppet contract a distinct contract type and rename `getTokenSpenderPuppet()` to `getAllowanceTarget()`
* `@0x/zero-ex`: Rebase and use "slot" instead of "offset" language in storage buckets.
* `@0x/web3-wrapper`: Add `getAccountNonceAsync()` to `Web3Wrapper`
* `@0x/contracts-zero-ex`: Revamp TransformERC20.
* `@0x/contracts-zero-ex`: Remove `payable` from `IERC20Transformer.transform()` and disable hex capitalization linter rule because of prettier conflicts.
* `@0x/contracts-zero-ex`: Use `immutable` owner in `Puppet` instead of `Ownable`.
* `@x/utils`: Address review feedback.
* `@0x/contracts-zero-ex`: Address review feedback.
* `@0x/contracts-utils`: Address review feedback.
* `@0x/contracts-zero-ex`: Return deployment nonce in `transform()`.
* `@0x/contracts-zero-ex`: Finish returning deployment nonce in `transform()`.
* `@0x/contracts-zero-ex`: Fix doc-gen bug.
* `@0x/contracts-zero-ex`: Address review comments.
* `@0x/utils`: Add `NegativeTransformERC20OutputERror`
* `@0x/contracts-zero-ex`: Revert if the taker's output amount decreases.
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-05-20 22:47:21 -04:00
Francesco Agosti
b23f1eb145
Merge pull request #2583 from 0xProject/feat/estimated-gas-token-refund
...
Expose fills object in asset-swapper quote orders
2020-05-20 14:56:49 -07:00
fragosti
f694072b5a
Run prettier
2020-05-20 14:20:54 -07:00
fragosti
10de266e0f
Remove unused variable SignedOrderWithFillableAmounts
2020-05-20 13:13:01 -07:00
fragosti
71811ed04f
Remove unused variable
2020-05-20 12:53:58 -07:00
fragosti
e9638ef95e
Add to changelog
2020-05-20 12:52:35 -07:00
fragosti
5226bb5596
Expose fills in asset-swapper quote
2020-05-20 12:50:15 -07:00
F. Eugene Aumson
d9e13d6b99
Merge pull request #2581 from 0xProject/fix/asset-swapper/rfqt-logging
...
asset-swapper: Improve logging for 0x API consumption
2020-05-11 19:13:07 -04:00
F. Eugene Aumson
dede076835
asset-s/QuoteRequestor: clarify axios error type
...
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2581#discussion_r423337773
2020-05-11 18:34:32 -04:00
F. Eugene Aumson
c929782e0d
asset-swapper/RFQT: Log params sent to maker
...
* Include in RFQ-T info log entry the query parameters that were sent to
the maker.
* Re-organize log entry
* Rename top-level field from rfqtMakerResponse to
rfqtMakerInteraction.
* Create separate `request` and `response` sub-objects.
* Rename field `latency` to `latencyMs`.
2020-05-11 18:01:06 -04:00
F. Eugene Aumson
a43c7e36f8
asset-swapper/RFQT: log maker response metadata
2020-05-11 17:40:19 -04:00
F. Eugene Aumson
b95cec9c32
asset-swapper: fix bug: RFQ-T info log was broken
2020-05-11 17:39:30 -04:00
F. Eugene Aumson
9a7d9abe3c
asset-swapper: consolidate RFQ-T usage of Axios
2020-05-11 13:52:42 -04:00
F. Eugene Aumson
c77b620453
asset-swapper: Improve RFQ-T logging for 0x API
...
* Change QuoteRequestor logger parameters to conform to pino logging
library, duplicating (one of) their LogFunction prototype interfaces for
our purposes here. With this, every log emission now includes BOTH a
human-readable message AND a JSON object. Also, this pattern has been
applied to both the error logger and the info logger.
* Do better handling of Axios errors when logging them. Before we were
(a) logging errors in a separate log entry than the message that
explains it, and (b) dumping the whole error object to the log entry,
which was resulting in an object so massive that pino/Kibana was
splitting it into 3 separate entries. Now, we (a) follow the pattern
described in the previous bullet, which puts the error object and the
human readable message into the same log entry, and (b) we check to see
if an error object is Axios-specific, and if so then we use the
AxiosError.toJSON() method to strip out the irrelevant properties.
* Log a uniform maker response metric, with maker endpoint URL, status
code, and latency, for both successful cases and erroneous ones.
(Before, we were only doing this for successful cases.)
2020-05-11 13:38:37 -04:00
Lawrence Forman
b348084e2a
@0x/zero-ex: Always offset storage bucket ID by 1. (#2579 )
...
Co-authored-by: Lawrence Forman <me@merklejerk.com >
2020-05-08 20:13:45 -04:00
F. Eugene Aumson
ff1811ef90
Merge pull request #2574 from 0xProject/rfqt-follow-ups
...
asset-swapper: RFQ-T follow ups
2020-05-07 17:44:02 -04:00
F. Eugene Aumson
39cf4a7576
Ran prettier...on development code! wtf?
...
Maybe something weird happened in the merge conflict resolution? Though
I didn't see anything in particular.
2020-05-07 01:39:22 -04:00
F. Eugene Aumson
21b67625a6
Merge branch 'development' into rfqt-follow-ups
2020-05-07 01:07:41 -04:00