[Accusta for Steem] Now the Accusta system works with the VIZ blockchain. (v1.4.0)
https://github.com/semasping/Accusta - Accusta - this is a service with Statistic of Steem Accounts.
- Clearing code from old commented structures;
- [viz] add viz blockchain to Accusta system;
- [viz golos steem] update php-graphene-node-client to version 5.1;
- [viz golos steem] fix downloading Account History from blockchain;
- [viz] add checking for new operations types in VIZ accounts history;
- [viz] rework some part of code for viz blockchain;
- [viz] edit welcome page;
- [viz] off some routes while not working good;
- [viz] rework author reward code for viz blockchain;
- [viz] add processing for new operations types in VIZ accounts history;
- [viz] add processing for operations types (committee_worker_cancel_request_transfer) in VIZ accounts history;
- [viz] fix author rewards;
- [viz] add benefactor rewards;
- [viz] add curator rewards;
- [viz golos steem] - fix ajax load for table. Remove middleware for checking new operations from this requests;
- [viz golos steem] - fix doubled rewards on charts;
A few words about VIZ blockchain
VIZ.World is Graphene Blockchain based on Golos fork.
There are lots of changes in the blockchain in economic and technic parameters. Here are some of them:
- Fixed 10% inflation with 1-year rounds;
- 2 vote for witnesses per account;
- Without peg-asset, only 2 assets: liquid token VIZ and SHARES token;
And lot of other changes.
You can find more in the blog: https://email@example.com
Some of technical changes in Accusta associated with connection VIZ.
In the Viz blockchain was renamed lots of operations related
account_history, I had to do backward compatibility. Match old and new operation types. For example:
In this code^:
content_benefactor_reward - new operation name in VIZ
comment_benefactor_reward - old operation name in STEEM and GOLOS
and For steem and golos reward was in
VESTS, but for VIZ reward in
By the way I used VESTS field for building charts and summary by months, and now I do additional data conversion:
$trns['op']['SHARES'] = (double)((str_replace(' SHARES', '', $trns['op']['reward']))); $trns['op']['VESTS'] = (double)((str_replace(' SHARES', '', $trns['op']['reward'])));
That allowed us to use the database aggregation capabilities.
Curator rewards by months.
One important fix (fix doubled rewards on charts)
It turned out, in charts we always can see double rewards value.
I found it by testing in the VIZ blockchain. There are small amount rewards in VIZ and we can check it easy.
It came because of operation
unwind in requests to MongoDB. The operation created double records for processing. In all requests I added a new condition:
'$match' => ['op.VESTS'=>['$gte'=>0]],
Now in processing used only relevant data.
You can find in Accusta for VIZ
Statistic of Voting for witnesses.
I continue to work about transfer history. There is a lots technical changes in VIZ blockchain, all of this need more time.
It's all for today.
Link to comparing changes for this release:
Welcome to Accusta: https://steemit.accusta.tk
In the future:
- Changes in the code responsible for the initial data download from the blockchain
- Some cosmetic changes
- Add some specific statistics for VIZ:
- Committee rewards
- Referral rewards