Уважаемые пользователи Голос!
Сайт доступен в режиме «чтение» до сентября 2020 года. Операции с токенами Golos, Cyber можно проводить, используя альтернативные клиенты или через эксплорер Cyberway. Подробности здесь: https://golos.io/@goloscore/operacii-s-tokenami-golos-cyber-1594822432061
С уважением, команда “Голос”
GOLOS
RU
EN
UA
kiwi
8 лет назад

Мегафон/Megaphone - an update

I would like to give you a short info that I am still alive and working on 'Мегафон/Megaphone' python tool.

I spent a lot of time on refactoring and instead of a fork for GOLOS I end up with a python tool and libraries that can interact with multiple graphene-based social blockchains and automatically recognize the blockchain. I am not sure the Megaphone name is still relevant...

The recent refactoring was rather big as it was 22 commits, see https://github.com/cryptomental/megaphone/pull/1/commits

Short summary

  • base was split into account, converter and post
  • account and blockchain can now be used both by STEEM and GOLOS blockchains
  • added support for public GOLOS nodes to node class
  • updated account, account_methods and blockchain examples
  • added lots of code documentation

What is possible now

Run account, account_methods and blockchain examples against both GOLOS and STEEM.

examples/account

Works on any account now on provided as an argument.

/github/megaphone$ python examples/account.py hipster
['У Голоса будет крутая Вики', 'Обращение к потенциальным делегатам Голоса', 
... 'Блокчейн Голоса успешно стартовал', 'Working Transactional Activity Chart?']
$1.0 :: @steemitblog/introducing-promoted-content
$10.0 :: @vitaly-lvov/crowdsales-monitor-august-2016
...

examples/account_methods

A small showcase that it can run on both blockchains. Also accepts account name as argument.

$ python examples/account_methods.py cryptomental
--------------------------------------------------------------------------------
Blockchain: STEEM
Account's power: 910.6544605710051
Account's reputation: 58.3
Three recent posts:
Sign of the times: Metallica 2016 vs Metallica 1991
OpenLedger/DEX vs centralized exchanges, liquidity and its future
100 followers and flying on a sailboat
Conversion requests: []
Withdraw routes: []
--------------------------------------------------------------------------------
Blockchain: GOLOS
Account's power: 5.168135935121463
Account's reputation: 42.16
Three recent posts:
A few notes on Golos kickstart for the new users.
торговле валютами 2016-11-07
торговле валютами 2016-11-04
Conversion requests: []
Withdraw routes: []

examples/blockchain

Shows now transfers on both blockchains during first 15 minutes after GOLOS launch.

$ python examples/blockchain.py 
--------------------------------------------------------------------------------
Blockchain: STEEM
2016-10-18T14:00:24 : @confucius sent 0.010 SBD to @steembingo
2016-10-18T14:00:33 : @steembingo sent 0.020 SBD to @confucius
2016-10-18T14:01:15 : @bittrex sent 100.000 SBD to @jaewoocho
2016-10-18T14:01:18 : @kodi sent 0.040 SBD to @steembingo
2016-10-18T14:07:54 : @lalala sent 0.001 SBD to @null
2016-10-18T14:10:24 : @confucius sent 0.020 SBD to @steembingo
2016-10-18T14:10:33 : @steembingo sent 0.060 SBD to @kodi
2016-10-18T14:11:21 : @kodi sent 0.020 SBD to @steembingo
2016-10-18T14:14:09 : @jennamarbles sent 63.262 STEEM to @bittrex
2016-10-18T14:14:27 : @lapilipinas sent 170.000 STEEM to @poloniex
All done!
--------------------------------------------------------------------------------
Blockchain: GOLOS
2016-10-18T14:05:09 : @cyberfounder sent 100.000 GOLOS to @cyberdrop
All done!

What is left to be done

The job is not over yet and there is a lot to be done. My plan is to:

  • clean up and test experimental, node and witness examples
  • add markdown documentation and push it to readthedocs.io
  • push the package to Python Package Index

After that I will ask Golos community to add Russian documentation.

All in all it looks good, I hope to finish these tasks by the end of this month.
I will give more update on the tool in my delegate's update before the weekend.

0
10.548 GOLOS
На Golos с October 2016
Комментарии (2)
Сортировать по:
Сначала старые