Skip to content
Snippets Groups Projects
Commit fdf38c4e authored by Holger Nahrstaedt's avatar Holger Nahrstaedt
Browse files

Version 0.19.2

parent 13f911db
Branches phone
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ class Vote(VoteObject):
class ActiveVotes(list):
""" Obtain a list of pending proposals for an account
""" Obtain a list of pending proposals for a post
:param str authorperm: authorperm link
:param steem steem_instance: Steem() instance to use when accesing a RPC
......
......@@ -32,25 +32,13 @@ class SteemWebsocket(Events):
.. code-block:: python
ws = SteemWebsocket(
"wss://node.testnet.bitshares.eu",
"wss://gtg.steem.house:8090",
)
ws.on_block += print
ws.run_forever()
Notices:
* ``on_account``:
.. code-block:: js
{'id': '2.6.29',
'lifetime_fees_paid': '44257768405',
'most_recent_op': '2.9.1195638',
'owner': '1.2.29',
'pending_fees': 0,
'pending_vested_fees': 100,
'total_core_in_orders': '6788960277634',
'total_ops': 505865}
* ``on_block``:
......@@ -58,22 +46,6 @@ class SteemWebsocket(Events):
'0062f19df70ecf3a478a84b4607d9ad8b3e3b607'
* ``on_tx``:
.. code-block:: js
{'expiration': '2017-02-23T09:33:22',
'extensions': [],
'operations': [[0,
{'amount': {'amount': 100000, 'asset_id': '1.3.0'},
'extensions': [],
'fee': {'amount': 100, 'asset_id': '1.3.0'},
'from': '1.2.29',
'to': '1.2.17'}]],
'ref_block_num': 62001,
'ref_block_prefix': 390951726,
'signatures': ['20784246dc1064ed5f87dbbb9aaff3fcce052135269a8653fb500da46e7068bec56e85ea997b8d250a9cc926777c700eed41e34ba1cabe65940965ebe133ff9098']}
"""
__events__ = [
......
......@@ -107,21 +107,6 @@ class Operation(GPHOperation):
return json.dumps([self.name.lower(), self.op.toJson()])
class Transfer(GrapheneObject):
def __init__(self, *args, **kwargs):
if isArgsThisClass(self, args):
self.data = args[0].data
else:
if len(args) == 1 and len(kwargs) == 0:
kwargs = args[0]
super().__init__(OrderedDict([
('from', String(kwargs["from"])),
('to', String(kwargs["to"])),
('amount', Amount(kwargs["amount"])),
('memo', String(kwargs["memo"])),
]))
class Memo(GrapheneObject):
def __init__(self, *args, **kwargs):
if isArgsThisClass(self, args):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment