Learning how to make smart contracts in Solidity.
- Mastering Ethereum: code examples from Mastering Ethereum by Andreas M. Antonopoulos, Gavin Wood.
$ npm install
The node version is in the .nvmrc
file, and an example for automatically use this version of node is:
- Open the virtual environment
.postactivate
script. - Paste at the top
nvm use
. - Either re-activate the environment or source it using the terminal.
Manticore, MythX CLI and Slither are different analysis tools of smart contracts and binaries, and its usage is optional (check their documentation to see how they work). They require Python 3.6 or greater and recommend a Python virtual environment.
An example of how to set up their environment:
-
Install Python 3.6 or greater.
-
Install virtualenvwrapper, create a virtual environment (i.e.
solidity_playground
) and activate it. -
Install the requirements (in
poetry.toml
) via Poetry (or comment out the not desired one).
Manticore requires a global installation of solc (Solidity compiler) that matches the one specified in the contracts. An option can be:
-
Install solc-select.
-
Open the virtual environment
.postactivate
script and add the commandsolc use <solc_version>
(e.g.solc use 0.6.12
). -
Either re-activate the environment or source it using the terminal.
MythX CLI requires:
-
Sign up in the platform and copy the API key.
-
Open the virtual environment
.postactivate
script and create theMYTHX_API_KEY
environment variable (i.e.export MYTHX_API_KEY=<API_KEY>
). -
Either re-activate the environment or source it using the terminal.
This repository is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.