This repository was archived by the owner on Jul 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 460
@0x/order-utils refactors for v3: orderParsingUtils, signatureUtils, orderHashUtils, RevertErrors, transactionHashUtils #2321
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
ef61968
to
d60a59b
Compare
bbbd89a
to
62bfdc1
Compare
36c2ee1
to
99e42f3
Compare
2419b96
to
d62efa7
Compare
- Move existing routines into @0x/contracts-test-utils - Migrate non-contract-test callers to a newly-exposed getTransactionHash() method in DevUtils.
d62efa7
to
cf5314c
Compare
7060ea9
to
2f926a9
Compare
fabioberger
suggested changes
Nov 13, 2019
fabioberger
approved these changes
Nov 14, 2019
bd9c3aa
to
6017c4e
Compare
feuGeneA
added a commit
that referenced
this pull request
Nov 20, 2019
New contract methods were added in #2321, but this artifact was not updated.
feuGeneA
added a commit
that referenced
this pull request
Nov 21, 2019
* Add updated DevUtils contract artifact New contract methods were added in #2321, but this artifact was not updated. * fix for breaking change in eth_utils
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
0x.js
@0x/connect
@0x/contract-wrappers
@0x/contracts-asset-proxy
@0x/contracts-coordinator
@0x/contracts-dev-utils
@0x/contracts-erc1155
@0x/contracts-exchange
@0x/contracts-exchange-forwarder
@0x/contracts-exchange-libs
@0x/contracts-extensions
@0x/contracts-integrations
@0x/contracts-multisig
@0x/contracts-staking
@0x/contracts-test-utils
@0x/contracts-tests
@0x/contracts-utils
@0x/order-utils
@0x/orderbook
@0x/utils
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
orderParsingUtils
into@0x/connect
.signatureUtils
, remove:orderHashUtils.isValidOrderHash()
.orderHashUtils.getOrderHash()
to call into theExchange.getOrderInfo()
contract method instead, and moveorderHashUtils.getOrderHash()
into@0x/contracts-test-utils
.*RevertError
types out of@0x/order-utils
and into their respective@0x/contracts-*
packages.*RevertError
types out of@0x/utils
and into their respective@0x/contracts-*
packages.transactionHashUtils.isValidTransactionHash()
.transactionHashUtils.getTransactionHashHex()
to use contract wrapper call. [Note: I took a slightly different approach than what was prescribed. The situation was very similar to the one forgetOrderHash()
. That is, the vast majority of callers were in tests of contracts, so I moved the existing implementation into@0x/contracts-test-utils
, exposed a newgetTransactionHash()
method on theDevUtils
contract, and changed all non-contract-test callers to call into directly the contract method instead.)