ChoiceCoin / Voting

A repository for voting systems using Choice Coin.
Other
641 stars 1.44k forks source link

Jessika0_bash #1181

Closed terrykeng closed 2 years ago

terrykeng commented 2 years ago

Project logo

REWARD GENERATOR SCRIPT USING PYTHON


A Python script that reads the From and Amount variables in a csv file and send 1.1 of the amount to the "From" addresses.

πŸ“ Contents

🀯 Idea / Solution

Using a pandas to read the csv file into a list and a while loop loopint through the lists grabbing the from and amount variable and carrying out the transactions

πŸͺ„ Future Scope

This can be implemented as a means to distribute rewards in a voting system whereby algoexplorer is been scraped to get the from and amount vairables and this script does the math and distributes the rewards.

🚩 Getting Started

Fork the Project and navigate to Python file, depending on the language of preference.

create an env file for help click here

install dependencies using

pip install -r requirements.txt

run test

make docker-test

install algosdk for help click here

Prerequisites

you neeed to install docker compose and sandbox on your system and add it to your path

πŸ’‰ Usage

To use it just run the appropriate command depending on your programming language ofChoice'

Python

Python3 send.py

⛏️ Built With

πŸŽ‰ Acknowledgments

Thanks to Brian Haney AKA greenrex for putting my work to use and also Thanks to the choice coin community for being here for us I am so glad to be able to contribute to the development. HAVE FUN HACKING!!! πŸ§‘β€πŸ’»