This Flask application provides an interface for querying and displaying report details for block producer submissions over specified time periods.
- Query submissions by block producer over a given time period.
- Display a detailed report including validation statuses, batch information, and points awarded per batch.
- Responsive web design using Bootstrap for optimal viewing on various devices.
- Python >= 3.10
- Poetry, a tool for dependency management and packaging in Python.
- Install dependencies:
git clone https://github.com/MinaFoundation/submission_report.git
cd submission_report
poetry install
- Activate the Virtual Environment:
After installing the project dependencies with poetry install
, you can activate the virtual environment by running:
poetry shell
This will spawn a new shell (subshell) with the virtual environment activated. It ensures that all commands and scripts are run within the context of your project's dependencies.
The program requires setting environment variables to connect to uptime-service-validation (coordinator) Postgres database, e.g.:
export POSTGRES_HOST=localhost
export POSTGRES_PORT=5432
export POSTGRES_DB=coordinator
export POSTGRES_USER=postgres
export POSTGRES_PASSWORD=postgres
python submission_report/app.py
The web interface will be available at: http://localhost:5000.
Program is also shipped as a docker image.
docker build -t submission-report .
When running pass all relevant env variables to the docker (see .env
), e.g.:
docker run -p 5000:5000 \
-e POSTGRES_HOST \
-e POSTGRES_PORT \
-e POSTGRES_DB \
-e POSTGRES_USER \
-e POSTGRES_PASSWORD \
submission-report