moonstream-to / moonworm

codegen for crypto degens and other ethereum smart contract toolkit for python
Apache License 2.0
36 stars 7 forks source link

Python classes and CLIs generated by "moonworm generate-brownie" should allow for contract verification #35

Closed zomglings closed 2 years ago

zomglings commented 2 years ago

Brownie contracts expose a publish_source method that we can use for this purpose: https://eth-brownie.readthedocs.io/en/stable/deploy.html?highlight=verify#verifying-deployment-source-code

Users will have to set environment variables for the blockchain explorer of their choice: https://github.com/eth-brownie/brownie/blob/0fa4477a178bd55b6683f60d077b7060df02b2c5/brownie/network/contract.py#L60