LP3 manager is a python project for nearcrowd lp3.
- It helps to manage users' permissions. Because one user can have multiple accounts connected to him.
- Adds interaction through telegram.
Firstly set up environment variables.
- Start the project:
docker compose up --build -d
- Run script from
scripts/
folder:bash run_script.sh {name}
- Create backup:
bash create_backup.sh
Environment files supposed to be in env/
folder
account.env
- configuration for access to nearcrowd:account_id
- your near wallet.private_key
- your private key with access to nearcrowd.farm_id
- farm id.
bot.env
- configuration for telegram bot (telethon library):database.env
- configuration for postgres:POSTGRES_USER
- username for database.POSTGRES_PASSWORD
- password for database.POSTGRES_DB
- database name.POSTGRES_HOST
- should be the same as service name indocker-compose.yml
.
watcher.env
- configuration for watcherwatched_account
- account that is used for paymentsreview_prcie
- price for 1 review in micro nears
Services are described in docker-compose.yml
.
scraper
(log_scraper/
) - scraps logs from nearcrowd.permissions
(review_permissions/
) - automatically adjusts users' permissions (only review allowance for now) on nearcrowd to stay in sync with local ones.bot
(bot/
) - telegram bot.sampler
(sampler/
) - automatically takes a sample periodically.watcher
(watcher/
) - watches payments for reviewstester
(no folder) - is used for testing inside container, mainly for running scripts.