RE: Bounty to Develop Delegation Manager for Hiveonboard

You are viewing a single comment's thread:

Thanks for the initiative and detailed design.

The delegation service for referrers / DApps would be helpful for the communities.

Here is a delegation manager implemented in JavaScript: https://github.com/voltairez/delegation-manager.

To launch the project:

  1. git clone the project to your machine and install dependencies with yarn or npm;
  2. configure config.json and .env for settings and active key of delegator account;
  3. launch the project with yarn run execute

Some design details that might be worth reviewing:

  1. The service comprises three sub-modules for monitoring the status of (a) new and inactive users, (b) the users who have received delegations and (c) the delegator accounts.
  2. referred accounts data are stored locally in a users.json file
  3. new user status are defined as { inactive, delegated, muted, expired, beneficiary_removed, graduated }. Here graduated means the account has sufficient HP to graduate from Hiveonboard.
  4. Hiveonboard referrer API together with outgoing delegations are used to fetch the latest referred accounts status.
  5. Two extra settings referrerAccount and checkCycleMins are added for referrer account, and user status check cycle in minutes.
  6. RC cost estimation for publishing post/comment is implemented based on the reference from beem package https://peakd.com/steem/@holger80/re-steemitdev-developer-guide-resource-credit-system-20181010t202410711z Thanks @holger80 for sharing the implementation. I did some research but didn't find an implementation in JS, and the implementation in beemis really helpful.

Happy to contribute to the initiative, and please kindly let me know for any questions or suggestions.

The beem-based solution by @holger80 is a very solid and great work. Glad to provide a solution in JavaScript which might be helpful for some developers, DApps and communities.



0
0
0.000
0 comments