A library for calculating v.systems Supernode Rewards
Project description
pyvsystems_rewards
This library provides the accounting required to operate a successful and transparent VSystems Supernode.
Quick Start
The library is still in "alpha" but is being used to generate the automated reporting for Peercoin's VPool at http://vsys.peercoin-library.org/.
The library will be made available through pip in the coming weeks but can be used sooner:
git clone https://github.com/belovachap/pyvsystems_rewards.git
cd pyvsystems_rewards
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
In reports.py
update the following settings to reflect your Supernode's
attributes:
hot_wallet_address = 'AR6Gt6GXq7yPnXoFek83sQ6sCekQWbBj7YK'
cold_wallet_address = 'ARMb6m8PLr45oGAooYzYnxb8cSC112B7KCp'
operation_fee_percent = Decimal('0.18')
Then run ./reports.py
and open html_output/index.html
in a web browser to
check on the status of your Supernode's interest and distributions.
Unit tests can be run with pytest test
.
Future Work
- Make library available through pip.
- Move reporting scripts to their own repository.
- Move distribution scripts to their own repository.
- Write unit tests that consume real world data and produce vetted results.
- Release a 0.1.0 version.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyvsystems_rewards-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6be758852c07ac6e804c50c5b71c58e6d2748ddaa343d2f273ac5e3d1492b66a |
|
MD5 | c85e65ea11785d081f2a4e14c6e78d67 |
|
BLAKE2b-256 | aadc916f9931c79479f55decfe365b4ab7b1e3bb93e8c15a0f7bb3c18259dd13 |