TODO: Re-factor this document to reflect that'we re doing an Consesus Pledge Model
Interactive Calculator for the economic incentives around the Filecoin Baseline Minting based on cadCAD + Streamlit.
- Option 1 (CLI): Just pass
python -m consensus_pledge_model
This will generate an pickled file atdata/simulations/
using the default single run system parameters & initial state.- To perform a multiple run, pass
python -m consensus_pledge_model -e
- To perform a multiple run, pass
- Option 2 (cadCAD-tools easy run method): Import the objects at
consensus_pledge_model/__init__.py
and use them as arguments to thecadCAD_tools.execution.easy_run
method. Refer toconsensus_pledge_model/__main__.py
to an example. - Option 3 (Streamlit, local)
- Option 4 (Streamlit, cloud)
- Fork the repo
- Go to https://share.streamlit.io/ and log in
- Create an app for the repo pointing to
app/main.py
- Make sure to use Python 3.9 on the Advanced Settings!
- Wait a bit and done!
app/
: Thestreamlit
appconsensus_pledge_model/
: thecadCAD
model as encapsulated by a Python Moduledata/
: Simulation / Post-processed datasetsnotebooks/
:scripts/
:tests/
: