Starter repo for the ethpm workshop at devcon iv.
MIT License
Starter repo for the devcon iv ethpm workshop.
This repo is designed to be used with the Ropsten testnet over Infura. However, it can very easily be adapted for other testnets / local nodes.
Must have python >= 3.6 installed on your machine.
You can set up your dev environment with:
git clone https://github.com/njgheorghita/devcon-iv-ethpm.git
cd devcon-iv-ethpm
python3 -m venv venv
. venv/bin/activate
pip install -e .[dev]
pip install --upgrade --force-reinstall git+https://github.com/ethereum/web3.py@pm-api
To interact with an on-chain registry, you must fill in the ACCOUNT_PRIVATE_KEY
variable in devcon_iv_ethpm/constants.py
.
If you have a paper wallet:
ACCOUNT_PRIVATE_KEY
constant in devcon_iv_ethpm/constants.py
.If you want to use your metamask account:
ACCOUNT_PRIVATE_KEY
constant in devcon_iv_ethpm/constants.py
.ACCOUNT_PRIVATE_KEY
should be filled in as 0x prefixed hex strings.
If you want to generate a manifest for solidity contracts, you must also have the solidity compiler installed on your machine. Installation Guide.
If you run into this error:
SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED]
run this: /Applications/Python\ 3.7/Install\ Certificates.command
If you would like to hack on other Python projects in the Ethereum ecosystem, please check out the Ethereum Development Tactical Manual for information on how we do: