Repository
https://github.com/knacksteem/knacksteem.org
https://github.com/snwolak/get_steem_delegations
Pull Request
https://github.com/knacksteem/knacksteem.org/pull/40
Task Request
New Features
Sponsors page
New page with incoming steem delegations for account.
Visual part of the task was developed by using only React and CSS and sticking to the naming convetion.
The real problem was getting incoming delegations since there is no api call for it and most projects that are showing incoming delegations are not open source so there was a lot of searching for the solution.
The solution is to download whole account history, filter 'delegate_vesting_shares', check if delegator already exist(if the delegator already exist only the newest delegation is being considered).
Script for that was moved to the backend since it wouldn't scale well in the client side. it runs in node, and updates json file with delegations every 5 minutes.
https://github.com/snwolak/get_steem_delegations/commit/4a79864584e0c602a89c523990987663c1a597e9
Moderators page
New page showcasing moderators of the knacksteem.org. It is similar to the sponsors page. Desings were implemented by using CSS and React. Data is being pulled from knacksteem api by using methods which already existed in the project.