-
Notifications
You must be signed in to change notification settings - Fork 41
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
Add signers ticker automatic import process + /signers/tickers
route to aggregator http server
#1276
Conversation
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 noticed a few typos and a source of flakiness in the tests but overall looks good 👍
We are also missing the Cardano network in the route /signer/tickers
183d97f
to
ba008ff
Compare
2d6162a
to
899473f
Compare
899473f
to
57c4e85
Compare
57c4e85
to
50c9607
Compare
This in order to give some times to other services to start/warmup before the SignerTickersImporter use the db.
50c9607
to
057e78b
Compare
e63320a
to
cce50ea
Compare
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.
LGTM 👍
cce50ea
to
f8f88f4
Compare
This is more cardano agnostic and say better what it realy does (it does not just import the ticker but also create a signer in the db if it does not exist). Also make one of its test more robust by using a BtreeMap in a assert_eq instead of a HashMap (that does not have fixed order).
f8f88f4
to
5f01ab7
Compare
Content
This PR add to the aggregator:
SignerImporter
services and traits (to define how it retrieves its data and how it persist them)/signers/tickers
that expose a simplified view of thesigner
table.signer
table:last_registered_at
, since we will now import signers into that table from external source and not create them anymore only at registration.This PR also add a
TestHttpServer
that allow test to define a http server, configured using warp routes as it's done in the aggregator.Pre-submit checklist
Comments
Issue(s)
Relates to #1185