Skip to content

Conversation

@syvb
Copy link
Contributor

@syvb syvb commented Oct 6, 2018

This adds the UP wallet. UP tokens are created by @steem-1up sending custom_json operations with an id of 1up. 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_json op.

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

Admin page

User wallet page

Wallet page

Top UP holders (lists all of them)

Top holders

syvb added 30 commits September 30, 2018 17:47
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
@therealFlauwy therealFlauwy merged commit 34236f2 into therealFlauwy:master Oct 30, 2018
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