populus icon indicating copy to clipboard operation
populus copied to clipboard

Add Support for compilation of Viper contracts

Open equus-dev opened this issue 8 years ago • 3 comments

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

equus-dev avatar Nov 06 '17 20:11 equus-dev

cc @davidknott

pipermerriam avatar Nov 07 '17 20:11 pipermerriam

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.

pipermerriam avatar Nov 07 '17 20:11 pipermerriam

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).

veox avatar Dec 04 '17 22:12 veox