pub fn getState(context: &SHContext) -> WireState