-
Notifications
You must be signed in to change notification settings - Fork 3
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
Create Control service #421
Labels
Comments
morgsmccauley
changed the title
Create Control service (Coordinator V2)
Create Control service
Nov 21, 2023
morgsmccauley
added a commit
that referenced
this issue
Dec 15, 2023
This PR extract the types exposed by the registry contract in to its own reusable crate: `registry_types`. This was done to avoid the duplication across our different service which; fetch the JSON, and then construct the Rust types. ## `registry_types` crate The registry types were already partially shared between Coordinator and the registry, but I've expanded on this to include all types rather than just a subset. I've created a new crate, rather than using the existing `./indexer/indexer_rule_type` crate as some packages needed to be upgraded, which caused conflicts across the `indexer/` cargo workspace - which seemed unnecessary to fix given that it is being deprecated. ## Registry contract updates `near-sdk` version `4.1.1` is no longer compilable because it depends on a non-existent crate, hence the upgrade to `5.0.0-alpha.1`. Since I was already making changes here, I decided to remove the migration related code as it is no longer needed. ## Consuming `registry_types` With the shared types in place, I've updated `block-streamer/` to use them, removing the existing types which it duplicates. I also went ahead and removed all types which were unused (left over from Alertexer). `indexer_rule_type` depends on `near-sdk` version `4.1.1` (the broken one), and since it's no longer shared, I removed that dependency so that it can compile again. Relates to #421
Initial Coordinator service is in #444, but there are some tasks which will be done in follow up PRs:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This service will be solely responsible for ensure the rest of the system is working as expected. It will read the current configuration from the Registry contract, and issue relevant commands to bring this configuration to life, i.e. it will Coordinate the rest of the system.
To allow an seamless transition from Coordinator V1 to V2, this should exist as a new service. We can call it
queryapi-coordinator-mainnet
to avoid conflicts.Coordinator V2 will run an infinite loop consisting of the following logic:
last_processed_block
last_processed_block
, start from created/updated blockstart_block_height
The text was updated successfully, but these errors were encountered: