makerdao / mcd-cli

MCD Command-line interface
GNU Affero General Public License v3.0
18 stars 8 forks source link

Update to 1.0.7 #15

Closed brianmcmichael closed 4 years ago

brianmcmichael commented 4 years ago
gbalabasquer commented 4 years ago

So in general this looks very good, there are just a few general comments I want to make:

brianmcmichael commented 4 years ago

Thanks, Gonzalo, fwiw, this was merely to get the app back to a working state, I didn't spend much time optimizing the code, I can go back and clean up some of these extra commands though. I'd worry about relying too much on the shellcheck linter without having the unit tests in here to catch the places where it gives a false positive and breaks something. I'll put it in there and see what I can come up with though.

Also, note that I did comment out the functions in mcd test, because it does some things like wrap 10 keth and send them into the system, which is pretty scary if you're not sure it's going to do that. For now, the dev should run the tests by uncommenting the functions in the test suite and then running them, I don't feel comfortable having code that can take your eth (even test eth) when you call mcd test. We may be better off somehow implementing hevm in to these tests, but that's a separate project.

gbalabasquer commented 4 years ago

I agree we need to be careful touching old stuff due linter issues. That is why I basically was touching only files that I was modifying for other reasons, so basically testing them as well. Most of the new linter errors have to do with the addendum of seth --tohex which should be necessary removing the return value of the sig, making these files even more similar to what they were.

liberuum commented 4 years ago

Looking forward for this one.

gbalabasquer commented 4 years ago

All looks good now. As I said before I haven't actually tested the different commands, just looking the code. We might want to release this with a proper warning. There is something I'd like to evaluate for the future and is the usage of mcd --to-wad and --to-ray as I think it would be much better they expect a decimal than an hex.