-
Notifications
You must be signed in to change notification settings - Fork 11
Add UP token support #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This parses the account history to get custom_json transactions, and uses them to assemble an account history
/topUsers now shows top users, in order from most to least users
Loops over all delegators, and sends them a proportional fraction of 200000 tokens.
- Gets more than 10000 transactions - Use config to decide what account to load - Better logging
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds the UP wallet. UP tokens are created by @steem-1up sending
custom_jsonoperations with an id of1up. Moderators can make posts containing!1upsend 123.456, and @steem-1up will automatically detect and broadcast the token creation, as soon as an admin upvotes the moderator's comment (with any weight) or approves it from an admin UI on the website. Note that the admin UI may miss a post if the state cache is cleared, or if the server isn't running when the post is made. However, voting the moderator's post should always work.On the admin page, it requires the posting key of @steem-1up, to broadcast the
custom_jsonop.Additionally, I added a script to pay out to delegators, based on postpromoter's script, as
delegators.js. Run it for details of how to use it. Note that delegation payouts are rounded to have 5 decimal places. This shouldn't make much of a difference to payouts. It will send 200000 UP total tokens to delegators, based on how much they have delegated. (if you've delegated 50SP out of 100SP total, you will get 100k UP tokens).Screenshots
Admin page
User wallet page
Top UP holders (lists all of them)