T4L3NT Rewards distributor

Intructions for setting up and using the t4l3nt rewards distributor

Link to github repo https://github.com/Decentralized-Pictures/t4l3nt-reward-distributor

Dependencies

Python3

Install Python3

Start a bash session inside the container

docker exec -it <container-ID> bash

Update software list with apt-get

sudo apt-get update

Install Python3

sudo apt-get install python3-pip

Clone repo and Install rewards distributor dependencies

Install git, nano, and other dependencies and import your key

sudo apt-get install git nano
git clone https://github.com/Decentralized-Pictures/t4l3nt-reward-distributor.git
cd t4l3nt-reward-distributor
pip3 install -r requirements.txt
tlnt-signer import secret key <key_name> <uri>

Edit the distributor config file as you see fit you will need to decide the fees you charge for your producer delegators and any addresses that are exempt from fees etc.

mkdir -p ~/pymnt/cfg
cd ~/pymnt/cfg
nano <your_producer_address>.yaml

In the yaml file, paste in the configuration and edit the contents to be appropriate for your producer:

version: 1.0
baking_address: <your_producer_address>
payment_address: <your_producer_address>
rewards_type: actual
service_fee: 0
founders_map:
  {}
supporters_set:
  {}
min_delegation_amt: 1
reactivate_zeroed: False
pay_denunciation_rewards: True
delegator_pays_xfer_fee: True
delegator_pays_ra_fee: True
rules_map:
  mindelegation: TOB
plugins:
  enabled:

Start up the tlnt-signer supervisor process.

supervisorctl start tlnt-signer

Start up the rewards distributor

cd ~/t4l3nt-reward-distributor/
python3 src/main.py -A http://127.0.0.1:8733 -E http://127.0.0.1:6732 -C 2269 -O 1

Add -D flag (Dry run) to just run and create reports in reports/ folder and not actually payout and do the transfers.

The -C flag is the cycle number to start paying out to delegates.

Last updated