Skip to main content

build_admin_state

Function build_admin_state 

Source
fn build_admin_state(
    app_state: &AppState,
    qp_cache: Arc<QuoteProviderCache>,
) -> AdminState
Expand description

Build the narrow [hypercall_admin::AdminState] from the full api handlers::AppState.

qp_cache is sourced from the RFQ handler state because AppState does not own the quote-provider registry directly. This mapping previously lived as AdminState::from_app_state in hypercall-api; it moved here when admin became a sibling crate so neither crate depends on the other.