populus
populus copied to clipboard
Add Support for compilation of Viper contracts
What was wrong?
Currently populus only supports solidity contracts, but many of the people to which a python framework appeals will probably be attracted to the Viper language as well. Development on viper is maturing and it would be nice to have the testing tools and other convenience provided by populus.
What would be the steps to get populus to deploy Viper contracts? I haven't given it a deep dive but I imagine we could add a flag --viper to the populus compile command to call the viper compiler instead? Thoughts?
Cute Animal Picture

cc @davidknott
We should be able to do a level of auto-detection on this as populus has an abstraction in place for compilation that will allow us to simply swap in a new compiler backend that handles viper contract compilation.
Experimental Viper support has been added in PR #383.
Currently, a project can't use several compiler backends, so e.g. a mixed Viper+Solidity dapp is not (yet) possible. I see it's in the refactoring plan, though (#395).