This repository was archived by the owner on Dec 27, 2022. It is now read-only.
Auction#603
Merged
Merged
Conversation
types, messaging and rpc
Auction MVP basic functionality working
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
commented
May 13, 2021
viken33
left a comment
Collaborator
Author
There was a problem hiding this comment.
added some comments
|
This looks AMAZING @viken33 ! A couple missing things:
|
rhlsthrm
suggested changes
May 17, 2021
rhlsthrm
suggested changes
May 26, 2021
rhlsthrm
left a comment
There was a problem hiding this comment.
This looks great, thanks for addressing all the changes!
A couple of final things we need:
- Unit tests
- Feature flag. We need to add a config item so that we can merge this into our prod branch and disable the feature until we fully test it.
viken33
commented
May 27, 2021
viken33
commented
May 27, 2021
Collaborator
Author
|
Added unit tests where I found them to be relevant for auction (rpc method on engine, listener on router). |
rhlsthrm
approved these changes
May 27, 2021
| ); | ||
|
|
||
| await delay(1_000); | ||
| await messaging.onReceiveAuctionMessage(signer.publicIdentifier, inbox, (runAuction) => { |
There was a problem hiding this comment.
Doesn't this have to get set before you send the auction message? I'm not sure if this set of code is being hit. You might need to return a promise that resolves within this message, since I believe this is the last thing that should happen.
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The Problem
Auction MVP
Specs
The Solution
This PR is a check-in send to see if we are on the right track and if changes on different modules/files are according to MVP design. Its on auction branch on https://github.com/1Hive/vector.git
Update:
Added an Auction Stack to vector in order to test multi router / auction flow
Basic functionality working, can be tested from server-node RPC but in order to run an auction:
- All channels must be setup first. This is basically because actual method in fee service from router takes the channels as params. A different method is needed to calculate fees based only on PUBIDs (lookup channels, calculate deployment fees, etc). Hence, if channels are not present router throws an error and doesn't respond to auction message.
- Auction must be in the same chain, otherwise routers throw an error about not being able to calculate swapRates/AMM rates. Not sure why.
Main additions:
Start-auction script to deploy 3 routers
3 different router.config files to have different fee rates
Makerfile changes (
make start-auction)