Skip to content

Jessika0_bash#1181

Merged
Bhaney44 merged 1 commit intoChoiceCoin:mainfrom
terrykeng:main
Apr 10, 2022
Merged

Jessika0_bash#1181
Bhaney44 merged 1 commit intoChoiceCoin:mainfrom
terrykeng:main

Conversation

@terrykeng
Copy link
Contributor

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 of Choice'

Python

Python3 send.py

⛏️ Built With

  • Docker
  • Algosdk
  • Python

🎉 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!!! 🧑‍💻

@Bhaney44 Bhaney44 merged commit 738ea30 into ChoiceCoin:main Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants