-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Driver /quote
response with JIT orders
#3033
Conversation
beba8c2
to
996f487
Compare
/quote
response with JIT orders
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given that you already noticed that the driver test framework is a pain I think we should consider testing this with an e2e
test instead.
The plan was to prepare an e2e test once autopilot and orderbook are prepared to handle the updated quote response. Does it make sense to have an e2e test with the current PR state? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks reasonable, but as I mentioned, I can't find the reason why we need this data, how, when and by who will it be used. Is there a follow up PR?
type: string | ||
signingScheme: | ||
type: string | ||
enum: ["eip712", "ethsign", "presign", "eip1271"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why all these fields? Where are they used and by who?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need all the signed order data to verify quotes via simulations. Will happen in a follow up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume fee_amount
is forced to be 0 with the decision of not putting it in the list. Although, theoretically solvers can settle a JIT order with fee_amount != 0 leading to a different signature.
But still, probably not worth handling...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah. Let's not re-introduce fee_amount
handling if we can avoid it. Hopefully fee_amount
goes away entirely in the new contract anyway. 🤞
Not yet. I'd say we can leave this PR unmerged until then since it's pretty straight forward. Once all the pieces are in place they can be merged together. WDYT? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
This pull request has been marked as stale because it has been inactive a while. Please update this pull request or it will be automatically closed. |
Will be reimplemented in scope of the #3082 |
Description
Changes
driver -> autopilot/orderbook
/quote
reponse to pass a list of pre-interactions and a list of JIT ordersHow to test
New driver tests(I can't express more how I want the driver's test framework to become more friendly).
Fixes #3027