BitShares Forum

Other => Graveyard => MemoryCoin => Topic started by: emre on December 29, 2013, 02:03:30 pm

Title: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 02:03:30 pm
I made a simple vote explorer for mmc blocks. automatically indexes new blocks for elections.

http://mmcvotes.com/

logs for a spesific block: http://mmcvotes.com/block/[insert_block_id]

source code: https://github.com/emre/mmcvotes.com

todo:



feedbacks appreciated.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FaSan on December 29, 2013, 02:08:45 pm
Very good job !




FaSan
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: s4l1h on December 29, 2013, 02:24:29 pm
Good job emre liked
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: seraphim on December 29, 2013, 02:47:53 pm
Very nice! PM on it's way
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: s4l1h on December 29, 2013, 03:14:13 pm
Request: Api

latest block, award,winner.

/api/latest_winners
/api/latest_block



Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 03:26:08 pm
thanks for the kind words guys.

Request: Api

added to the todo list. :)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 03:33:25 pm
Very nice! PM on it's way

thanks,

replied! :)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: pvaladares on December 29, 2013, 05:34:20 pm
Very nice! Congrats.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 08:05:38 pm
added nickname support for logs. check it out: http://www.mmcvotes.com/block/3560

(http://i.imgur.com/1cTr6tE.png)

here is the nickname list for wallet <-> nickname mapping: https://github.com/emre/mmcvotes.com/blob/master/mmcvotes/aliases.py

most of the candidates are not on the official list..
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 08:24:11 pm
added a simple api.

http://mmcvotes.com/?output=json

(pagination also works if you need to. add last_id=block_id as an argument to the query string.)

get latest blocks

Code: [Select]
{
  "blocks": [
    "3560",
    "3540",
    "3520",
    "3500",
    "3480",
    "3460",
    "3440",
    "3420",
    "3400",
    "3380",
    "3360",
    "3340",
    "3320",
    "3300",
    "3280",
    "3260",
    "3240",
    "3220",
    "3200",
    "3180"
  ]
}

block detail

http://www.mmcvotes.com/block/1200?output=json

Code: [Select]
{
  "block": {
    "block_id": 1200,
    "log": "....."
  }
}

Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: belltown on December 29, 2013, 08:28:10 pm
Great work, man! I already promised bounty in the other thread.
100 MMC send!
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FreeTrade on December 29, 2013, 08:28:36 pm
Really nice! And thanks for your generosity in making it open source. Tip on its way.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 08:35:11 pm
thanks for the tips! :)

last thing in my todo list making a parser for log files for more meaningful data/stats. on the way o/

Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: s4l1h on December 29, 2013, 08:38:04 pm
I sent you 10MMC for my request.
:)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 08:47:32 pm
I sent you 10MMC for my request.
:)

thanks! api will be updated with more meaningful data once I finish the parser.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FreeTrade on December 29, 2013, 09:39:20 pm
A few more address resolutions -

MVTEcnoqHvr7AWRSBFUSpVCBKcxUfxVEad (FaSaN)

MVTEchaTyyDP2V6QotPE4zi1mUvbNKo8pe (Sean's Outpost c/o IsaacGoldbourne)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 29, 2013, 09:50:29 pm
A few more address resolutions -

MVTEcnoqHvr7AWRSBFUSpVCBKcxUfxVEad (FaSaN)

MVTEchaTyyDP2V6QotPE4zi1mUvbNKo8pe (Sean's Outpost c/o IsaacGoldbourne)

done.

these adresses and a couple of more are not listed in the official topic. can somebody update it? https://bitsharestalk.org/index.php?topic=1445.msg15597#msg15597
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: belltown on December 29, 2013, 10:28:07 pm
This is the problem with copy-paste, your copy becomes old.

Official candidates list is here https://bitcointalk.org/index.php?topic=369487.0
But it's still missing charity position.

FreeTrade, can you add charity position to the list?
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FreeTrade on December 29, 2013, 10:35:24 pm
Yes, this info should be transferred to official website at memorycoin.org and kept up to date - waiting on the CSO to get all info transferred - then I'll remove this post, and replace with the memorycoin.org URL. 

This is the problem with copy-paste, your copy becomes old.

Official candidates list is here https://bitcointalk.org/index.php?topic=369487.0
But it's still missing charity position.

FreeTrade, can you add charity position to the list?
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 30, 2013, 05:46:42 pm
update

added winner info for blocks.

(http://s16.postimg.org/6ipoqxjlx/mmcvoteslatest.png)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: RejectKid on December 30, 2013, 05:54:22 pm
I added it to the sidebar on the not so popular reddit page as of yet.  nice work!

side note: Anyone wanna help grow the memorycoin subreddit feel free to add content over there.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on December 30, 2013, 06:00:05 pm
I added it to the sidebar on the not so popular reddit page as of yet.  nice work!

side note: Anyone wanna help grow the memorycoin subreddit feel free to add content over there.

thanks!

we should definitely build up a community at reddit.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: seraphim on December 30, 2013, 06:12:43 pm
Isaac said he'll care about it.
He is pretty busy with a lot of stuff, I'm sure you can make a deal with him and belltown if you want to contribute to the subreddit!

https://bitsharestalk.org/index.php?topic=1775.0
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: belltown on December 30, 2013, 06:19:52 pm
RejectKid, thank you for your contribution! You'll see much more from our Social Media Specialist soon.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on January 03, 2014, 04:58:04 pm
updated the winners table for total wins:
http://mmcvotes.com/block/4780

(http://i.imgur.com/djYEjbz.png)

I will work on mmcvotes this weekend. If you have any suggestions or feature requests,  shoot!
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: 5chdn on January 03, 2014, 05:07:20 pm
Good idea. I was trying to parse the MMC blockchain today to reproduce the votes but failed decoding huge supertransactions (>2M).
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on January 05, 2014, 12:34:23 pm
Good idea. I was trying to parse the MMC blockchain today to reproduce the votes but failed decoding huge supertransactions (>2M).

thanks!

I am working on something similar right now. I have implemented a minified block explorer just for the vote transactions. We will be able to see all vote transactions on mmcvotes.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: 5chdn on January 05, 2014, 12:38:24 pm
I've noticed an issue with every 20th transaction being more than 2MB! (The voting transactions.)

It's a pain to decode them.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on January 05, 2014, 12:49:44 pm
I've noticed an issue with every 20th transaction being more than 2MB! (The voting transactions.)

It's a pain to decode them.

just extracted the all vote transactions between block 1 and 5000. (392 records)
https://gist.github.com/emre/8267798

need to check the data though.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on January 05, 2014, 03:46:17 pm
update

added address search across all the transactions. it's on testing mode, if you get any wroing results, ping!

(http://i.imgur.com/YFzjHVx.png)
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FreeTrade on January 06, 2014, 01:10:08 am
Wonderful! Thanks!

I'm going to add it to a voting menu in the wallet app, so users can see what they are voting for - It would be helpful if votes (for candidates) were organized by position first and size second.

Also are old votes removed?
If I send 1 satoshi for one candidate CTO, but then later send another to a different one, does the first one still show up?

Also would be good if all addresses were hyperlinked to their address page
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: emre on January 06, 2014, 10:18:33 am
Also are old votes removed?
If I send 1 satoshi for one candidate CTO, but then later send another to a different one, does the first one still show up?

Also would be good if all addresses were hyperlinked to their address page

I totally forgot filtering old votes. will fix that with hyperlink addition.
Title: Re: [ANN] mmcvotes.com - memorycoin vote/election explorer
Post by: FreeTrade on January 06, 2014, 11:26:10 am
Thanks!

Also possible to get a message if no votes have been made by an address yet -

"No votes made by this address yet" - maybe with a link to the 'how to vote' page.