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
1b8b9186a8
asset-swapper: Fix test-publish
2020-05-26 18:46:19 -04:00
F. Eugene Aumson
a8cfcfb371
Fix test-publish CI failure
2020-05-26 15:24:43 -04:00
F. Eugene Aumson
f7a414bc29
asset-s/RFQ: adapt to renamed TakerRequest fields
2020-05-26 15:24:42 -04:00
F. Eugene Aumson
e05cd1d66b
asset-s/QuoteRequestor: use TakerRequest type
2020-05-26 15:24:38 -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
b9984b6df4
asset-swapper: fix bug: bad maker response throws
...
Formerly, a maker sending back a non-JSON was causing an exception to be
thrown.
2020-05-15 01:20:30 -04:00
F. Eugene Aumson
9c11835fee
asset-s: use @0x/quote-server, not local typedefs
2020-05-15 01:20:29 -04: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
Jacob Evans
fb0311e675
feat: ERC20BridgeSampler Unlock Kyber collisions ( #2575 )
...
* feat: ERC20BridgeSampler Unlock Kyber collisions
* Updated fallback strategy
* Address comments
* Eth2Dai hop sampler
* Update packages/asset-swapper/src/utils/market_operation_utils/index.ts
Co-authored-by: Lawrence Forman <lawrence@0xproject.com >
* Set DFB expiry to 2hr
Co-authored-by: Lawrence Forman <lawrence@0xproject.com >
2020-05-07 07:56:03 +10:00
F. Eugene Aumson
8a14b4afff
asset-swapper: clarify comment
...
This comment recently got moved from one context to another. In the old
context, the whole comment made sense, but in the new context it needed
paring down.
2020-05-06 13:24:20 -04:00
F. Eugene Aumson
e42701599a
asset-s/RFQT: log each maker resp. time, not agg.
...
Log each maker's individual response times, rather than logging them in
aggregate.
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2574#discussion_r419769846
2020-05-06 13:23:35 -04:00
F. Eugene Aumson
352b1b43f2
asset-s: restore type safety to rfqt.skipBuyReq's
...
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2574#discussion_r420465928
2020-05-06 13:16:23 -04:00
F. Eugene Aumson
2922ebd095
asset-s/test: stop unnecessarily priming mock
...
Addresses review comment 93bdaba8ee (r419774170)
2020-05-05 17:17:47 -04:00
F. Eugene Aumson
a9e72085dd
asset-s: fix bug handling RFQ-T skipBuyRequest
...
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2574#discussion_r419772045
2020-05-05 17:17:47 -04:00
F. Eugene Aumson
ed3d194c90
asset-s: ignore case verifying RFQT taker address
...
Do case INsensitive comparison when verifying that RFQ-T firm quote
contains the requested taker address.
This commit also introduces some changes around the RfqtRequestOpts
parameter. Without these changes, there were errors (tsc or tslint?
can't remember) about takerAddress being possibly undefined.
Rather than asserting it yet again (which we're already doing via
assertTakerAddressOrThrow()), I decided to change the RfqtRequestOpts
param to be required, not optional. Coincidentally, this brings the
requestRfqtFirmQuotesAsync() interface into alignment with the
requestRfqtIndicativeQuotesAsync() one, which already requires the
options parameter.
Addresses review comment https://github.com/0xProject/0x-monorepo/pull/2574#discussion_r419770087
2020-05-05 17:17:46 -04:00