How long ago was she moved? Usually relocation stress is about two weeks and sometimes it does present with anorexia. It is strange she went off her pellets but still eats hay. Either way your chinchilla is probably not eating the right amount to keep her bowels flowing and may not be eating enough to survive. The only way to know is to be familiar with their total food consumption through the day which almost invariably is more pellets than hay. I strongly recommend you smell your food for any possible mold or moisture contamination as well.
Because the stool is already being affected and you are seeing signs of bloat it is certainly very serious. It could have been going on for some time and slowly progressed. The eye infection may be unrelated. Acute eye infections are not uncommon in chinchillas especially those under stress. It is advisable to weigh chinchillas on a regular basis, at least once a week and know their baseline weight to help make these kinds of troubles easier to diagnose.
10 years is average life expectancy for a chinchilla. I recommend you don't get your hopes up too high. I strongly suspect this is a dental problem as well but only a vet can make that determination. I recommend you discuss this with your vet ASAP and ask about obtaining a recovery diet and feeding that until you can get an appointment to keep her alive.
I would not discontinue pellets since they are easier to chew and keep your pet's weight up. Chinchillas do not have much fat reserves to live off of and once it's gone the risk of internal damage becomes very high. They are much more sensitive to this than rabbits. I fully recommend syringe feeding recovery diet for sick chinchillas for that reason and also since the bowels must have something to work with to reverse the stasis. Most importantly you need to know what caused it and if it can be corrected.