transactions Scheduler

dev-main 2021-10-11 16:41 UTC

This package is auto-updated.

Last update: 2024-05-11 22:15:37 UTC


README

The Delegates Ubuntu server calculation of the redistribution to voters of the delegate's incomes

banner_infi.png

License: MIT

Lead Maintainer: Infinity developers

What's for?

the DUS is designed to help delegates share their income with voters. Beforehand, the delegate chooses these redistribution criteria on the mobile APP menu "Delegate Setting" The wallet calculated according to the delegate's criteria

What's beneficiary wallet?

In the redistribution criteria there is a beneficiary wallet. This wallet is different from the delegate wallet: If the delegate chooses who will redistribute 80% of his income. The due will calculate that the beneficiary wallet will receive 20% of the delegate's income.

Why some accounts is exclude from the distribution?

The delegate can choose to exclude voters with a low balance from the redistribution to limit the dilution of income generated by transaction fees If the chosen delegate excludes the accounts which have a too low balance, the DUS excludes them from the redistribution.the votes count for the delegate but the DUS excludes them from the redistribution.

Server Prerequisites

  • minimum VPS recommended 1 CPU 1GB 25GB Disk 1000GB transfer

  • ubuntu 20

Setup

Install

Install Delegate Ubuntu Server

1 - Use the installation script seup-server.sh that you can download from https://github.com/vickynathaiya/dus using :

#wget https://raw.githubusercontent.com/vickynathaiya/dus/main/setup-server.sh
Run the following commands as root :
# chmod 755 setup-server.sh
# ./setup-server.sh

Note : if you hit any error when running the setup-server.sh script make sure first that there is no newline added (^M) at the end of each line in the script, run the following command to remove them if any :

# sed -e "s/\r//g" setup-server.sh > setup-server.sh.tmp
# mv setup-server.sh.tmp setup-server.sh

2 - Register wallet

# cd ~laravel/crypto
# php artisan crypto:register

Choice your blockchain "infinity" or "hedge" Enter your network:

infinity

or

hedge

Entry your delegate phrase (wallet passphrase) as forger Enter your wallet delegate:

"this is my secret passphrase"

3 - To monitor your application you can use the followings :

    a - check scheduler logs :
        # cd ~laravel/crypto 
        # tail -f storage/logs/schedule_job.log
    b - php artisan crypto:admin show_logs

GitHub Development Bounty

Security

If you discover a security vulnerability within this package, please send an e-mail to security@infinitysoftware.io. All security vulnerabilities will be promptly addressed.

License

MIT © INFINITY Ecosystem