Skip to content

Cron-Job script that distributes funds for eden members 💰

License

Notifications You must be signed in to change notification settings

edenia/eden-distribute

Repository files navigation

Eden Delegates Funds Distribution

This script is meant to be run as a cron job that calls the eden.genesis::distribute action to allocate funds for eden delegates to withdrawal on a monthly basis.

It will call the distribute action until all funds have been distributed and the contract returns "nothing to do".

Installation

Basic knowledge about Docker and NodeJS is required.

Getting started

Some things you need before getting started:

Running for the first time

  1. Clone this repo using git clone --depth=1 https://github.com/edenia/eden-distribute.git <YOUR_PROJECT_NAME>
  2. Move to the appropriate directory: cd <YOUR_PROJECT_NAME>.
  3. Copy and rename the .env.example to .env then update the environment variables according to your needs

Quick start

At this point you can execute make run to execute distribute action locally.

File Structure

Within the project repository you will find the following directories and files:

eden-distribute/
├── src ..................... Project Source Code
| ├── index.js .............. Distribute Funds Script
| ├── config ................ Configuration Parameters
│ └── utils ................. EOSJS Utilities
├── package.json ............ NPM Project Metadata
├── yarn-lock.json .......... NPM Packages Lock File
├── .env.example ............ Environmental Variables Example File
├── .gitignore .............. Files Ignored by Git
├── Dockerfile .............. Docker Build 
├── LICENSE ................. MIT License Terms
└── README.md ............... Project Documentation

Contributing

Please Read EOS Costa Rica's Open Source Contributing Guidelines.

Please report bugs big and small by opening an issue

About Edenia

Edenia runs independent blockchain infrastructure and develops web3 solutions. Our team of technology-agnostic builders has been operating since 1987, leveraging the newest technologies to make the internet safer, more efficient, and more transparent.

edenia.com