def setUpClass(cls): cls.nodelist = NodeList() cls.nodelist.update_nodes(hive_instance=Hive( node=cls.nodelist.get_nodes( exclude_limited=False), num_retries=10)) hv = Hive(node=cls.nodelist.get_nodes()) hv.config.refreshBackup() hv.set_default_nodes(["xyz"]) del hv cls.urls = cls.nodelist.get_nodes(exclude_limited=True) cls.bts = Hive(node=cls.urls, nobroadcast=True, num_retries=10) set_shared_hive_instance(cls.bts) acc = Account("bhive.app", hive_instance=cls.bts) comment = acc.get_blog(limit=20)[-1] cls.authorperm = comment.authorperm votes = acc.get_account_votes() last_vote = votes[-1] cls.authorpermvoter = '@' + last_vote['authorperm'] + '|' + acc["name"]
# has_voted() print("bhive_acc.has_voted() {}".format( bhive_acc.has_voted("@thecrazygm/api-methods-list-for-appbase"))) print("hive_acc.has_voted() {}".format( hive_acc.has_voted( hivePost("@thecrazygm/api-methods-list-for-appbase")))) # curation_stats() print("bhive_acc.curation_stats() {}".format(bhive_acc.curation_stats())) print("hive_acc.curation_stats() {}".format(hive_acc.curation_stats())) # virtual_op_count print("bhive_acc.virtual_op_count() {}".format( bhive_acc.virtual_op_count())) print("hive_acc.virtual_op_count() {}".format(hive_acc.virtual_op_count())) # get_account_votes print("bhive_acc.get_account_votes() {}".format( bhive_acc.get_account_votes())) print("hive_acc.get_account_votes() {}".format( hive_acc.get_account_votes())) # get_withdraw_routes print("bhive_acc.get_withdraw_routes() {}".format( bhive_acc.get_withdraw_routes())) print("hive_acc.get_withdraw_routes() {}".format( hive_acc.get_withdraw_routes())) # get_conversion_requests print("bhive_acc.get_conversion_requests() {}".format( bhive_acc.get_conversion_requests())) print("hive_acc.get_conversion_requests() {}".format( hive_acc.get_conversion_requests())) # export # history bhive_hist = []
bsteem_acc.has_voted("@thecrazygm/api-methods-list-for-appbase"))) print("steem_acc.has_voted() {}".format( steem_acc.has_voted( hivePost("@thecrazygm/api-methods-list-for-appbase")))) # curation_stats() print("bsteem_acc.curation_stats() {}".format( bsteem_acc.curation_stats())) print("steem_acc.curation_stats() {}".format(steem_acc.curation_stats())) # virtual_op_count print("bsteem_acc.virtual_op_count() {}".format( bsteem_acc.virtual_op_count())) print("steem_acc.virtual_op_count() {}".format( steem_acc.virtual_op_count())) # get_account_votes print("bsteem_acc.get_account_votes() {}".format( bsteem_acc.get_account_votes())) print("steem_acc.get_account_votes() {}".format( steem_acc.get_account_votes())) # get_withdraw_routes print("bsteem_acc.get_withdraw_routes() {}".format( bsteem_acc.get_withdraw_routes())) print("steem_acc.get_withdraw_routes() {}".format( steem_acc.get_withdraw_routes())) # get_conversion_requests print("bsteem_acc.get_conversion_requests() {}".format( bsteem_acc.get_conversion_requests())) print("steem_acc.get_conversion_requests() {}".format( steem_acc.get_conversion_requests())) # export # history bsteem_hist = []