1
0
Fork 0
The cryptocurrency mining pool companion. Be notified for new blocks, new balance and new payments.
This repository has been archived on 2024-12-18. You can view files and clone it, but cannot push or open issues or pull requests.
Find a file
Julien Riou 79397e2eb6
Add link to etherscan in block notifications
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-01-26 07:46:04 +01:00
templates Add link to etherscan in block notifications 2021-01-26 07:46:04 +01:00
.gitignore Initial commit 2021-01-22 18:00:18 +01:00
.pre-commit-config.yaml Initial commit 2021-01-22 18:00:18 +01:00
.pydocstyle Initial commit 2021-01-22 18:00:18 +01:00
coingecko.py Initial commit 2021-01-22 18:00:18 +01:00
config.example.json Initial commit 2021-01-22 18:00:18 +01:00
config.py Initial commit 2021-01-22 18:00:18 +01:00
config.schema.json Add currency option to config schema 2021-01-25 13:15:23 +01:00
Dockerfile Initial commit 2021-01-22 18:00:18 +01:00
flexpool.py Add link to etherscan in block notifications 2021-01-26 07:46:04 +01:00
LICENSE Initial commit 2021-01-22 17:48:37 +01:00
main.py Add link to etherscan in block notifications 2021-01-26 07:46:04 +01:00
README.md Make miner optional 2021-01-25 13:13:13 +01:00
requirements.txt Add payments notification 2021-01-26 07:30:31 +01:00
state.py Add payments notification 2021-01-26 07:30:31 +01:00
telegram.py Add payments notification 2021-01-26 07:30:31 +01:00

flexpool-activity

Flexpool.io is a next-generation Ethereum mining pool known for their #STOPEIP1559 move. flexpool-activity is able to listen and notify when a new block is mined by the pool, display the up-to-date miner balance and convert it to fiat.

Installation

sudo apt install python3-virtualenv
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt

Telegram bot

This tutorial explains how to create a Telegram bot. You'll need the chat_id and auth_key for the next section.

Configuration

Configuration file use the JSON format with the following keys:

  • miner: wallet address of the miner (optional)
  • currency: symbol of the currency to convert (optional)
  • telegram: send notifications with Telegram (optional)
    • auth_key: Telegram authentication key for the bot API
    • chat_id: Telegram chat room id (where to send the message)
  • state_file: persist data between runs into this file (default: state.json)

See configuration example.

Usage

python3 main.py --help

Contribute

Contributions are welcomed! Feel free to update the code and create a pull-request.

Be sure to lint the code before:

docker build -t pre-commit .
docker run -it -v $(pwd):/mnt/ --rm pre-commit bash
# cd /mnt/
# pre-commit run --all-files
# exit