replace the big switches in Run/GasCost in the precompile by a map
Separating every fhelib function into a separate file would be way better, but would lead to so many files, which is not really convenient. Another option was to separate the fhelib into a separate package where we could have put every fhelib method into a different file, but that also lead to cyclic import issues as the fhevm and fhelib are quite related.
The goal was to:
Separating every fhelib function into a separate file would be way better, but would lead to so many files, which is not really convenient. Another option was to separate the fhelib into a separate package where we could have put every fhelib method into a different file, but that also lead to cyclic import issues as the fhevm and fhelib are quite related.