Hive-engine airdrop distribution script

in #engine2 months ago

image.png

I wrote a script to assist with air-drops to Hive-Engine token holders. You can find it here: https://github.com/Stormrose/hepayer


hepayer

A node js script for token airdrops for the HIVE blockchain based on membership holdings of a specified Hive-Engine token.

Disclaimers

This project is intended for airdrops: either dropping more of the same token to existing users or airdropping a token to owners of another token. Using this project for profit distributions/dividends might violate Hive-Engine's T&Cs regarding security tokens and additionally there are likely other legal compliances issues to consider. Support for Steem and Steem-engine may be deprecated in future. This project has minimal error checking. You are assumed to know what you're doing.

Usage

node index.js token_config.json amttoairdrop [activekey]

Without activekey: print the airdrop distribution schedule.
With activekey: execute the airdrop distribution schedule.

e.g. node index.js token_SOMETOKEN.json 17.021')
Uses the config specified in token_SOMETOKEN.json and prints out a schedule for the pro-rata air-dropping of 17.021 tokens.

Installing

Requires node js.

Users

General usage only requires the index.js, package.json and a token config.json file but it doesn't hurt to have all of the files. Change into the folder and then type:

npm install --production
Then edit the token config.json file to your specific needs.

Developers

Developers should download everything. Place these into their own folder and then:

npm install -g typescript
npm install

Then edit the token config.json file to your specific needs. The project uses TypeScript so you should only edit the .ts files.

Token config.json files

Please see the example files.

Tips

  1. Hive blockchain tokens can use a list of nodes in a JSON array to enable automatic failover.
  2. Test run your distribution without an active key to review the distribution schedule before executing the distribution.
  3. Test run your token config.json with a small distribution first. Often 1.0 tokens will be enough for a test run.
  4. The distribution schedule printed when an active key is not supplied is optimised for importing into a spreadsheet. Redirect the output to a .tsv or .txt file and then open in your favourite programme.
  5. On unix, use thetee command to output to a log file and to the console. x | tee logfile.txt. In Windows PowerShell you can use Tee-Object and in x | Tee-Object -FilePath "logfile.txt"
Sort:  

Nice to see some more stuff for Hive-Engine. I might have to make my own token.

IMG_20210226_211943356.jpg

Awesome work finally getting to see a bunch of new tools for Hive engine especially after rishi 556 was able to build me stake all and claim all tools!

These tools are actually huge game changers! The ability to save massive amounts of time using these is just phenomenal.

Hello fellow dog-parent! @rishi556 is a cool dude indeed, and responsive to needs. Let either of us know what other features you might need and we might be able to fit it into the scripts. If it's the type of thing that'll suit many token owners then we'll try fit it in. All part of that witness service imo.

What air-drops we are getting ?

Congratulations @eturnerx! You have completed the following achievement on the Hive blockchain and have been rewarded with new badge(s) :

You distributed more than 34000 upvotes.
Your next target is to reach 35000 upvotes.

You can view your badges on your board and compare yourself to others in the Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

Check out the last post from @hivebuzz:

Hive Tour Update - Financial stages
Hive Power Up Day - March 1st 2021 - Hive Power Delegation

Thanks for your support on this platformm @eturnex,,

Excellent work as always. To learn and to use :)

!invest_vote

Excellent work... Great to know you code too 🙈