You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Validator integration with Domain registry contract (#321)
# Summary
Introduced `DomainRegistryManager` for interacting with "Domain"
program.
## Details
We submit or update information on start of validator, only in ER mode.
I also added as an example how we can leverage `harness = false` mode to
introduce setup/teardown logic for integration tests. That would allow
us to get rid from test-runner or to split it on E2E + real integration
tests.
<!-- greptile_comment -->
## Greptile Summary
This PR integrates DomainRegistryManager for validator lifecycle
management with the Domain registry contract, adding RPC-based
registration, sync, and unregistration while refactoring related
validator and accounts database components.
• Added new DomainRegistryManager in
magicblock-api/src/domain_registry_manager.rs that performs
registration, sync, and unregistration via async RPC calls.
• Integrated DomainRegistryManager into magic_validator.rs for
Ephemeral-mode registration and async unregistration using a temporary
Tokio runtime.
• Updated configuration files and Cargo.toml dependencies to support new
storage preallocation and Domain features.
• Expanded integration tests and adjusted CI workflows to cover all
branches and newly introduced functionalities.
<sub>💡 (2/5) Greptile learns from your feedback when you react with
👍/👎!</sub>
<!-- /greptile_comment -->
---------
Co-authored-by: Babur Makhmudov <bmuddha13@gmail.com>
Co-authored-by: Thorsten Lorenz <thlorenz@gmx.de>
0 commit comments