This repository was used to provide an analysis on Connext's liquidity Bootstraping campaign.
The development use the following setups:
- Python 3.10
- MAC OSX (Linux-based OS should also works just fine)
Use your preferred python version (recommend 3.10
+) to create a virtual environment
# create virtualenv
python -m venv .env
# activate virtualenv
source .env/bin/activate
This will create a python environment specifically for this workspace so that you wouldn't need to concern about any packaging conflict with your legacy python (if you have one)
Install dependencies by calling the following command:
pip install -r requirements.txt
This repository assumes you have API keys from block explorer. You can add multiple keys seperated by commas (e.g. `ETHERSCAN_APIKEYS="key1,key2,key3") to distribute API call loads.
An example of .env
file configuration can be found at .env.example
We provide an analytics using the following procedure:
- Fetching historical transaction data via Block Explorer API
- Aggregates and transform into a readible
csv
- Provide an analysis on a jupyter notebook Thus, it's important to fetch the historical data first. To fetch the historical data, run the following command:
cd scripts
./fetch.sh
This could take a while as it fetch all transaction data as well as transaction receipt
Activate the python environment according to this section, if you have one. Then, run the following command:
jupyter-lab
This command will instantiate the jupyter notebook server. Navitage to notebooks
directory, and open playground.ipynb
.
The guideline for contributing procedure is as follows:
- Open an issue, specifying the contribution
- Fork this repository, and work using different branches
- Open Pull Request
chompk.eth#9502