From fdf38c4ef1e8cd46f23bd8735142d0b82d0ccc53 Mon Sep 17 00:00:00 2001 From: Holger Nahrstaedt <holger@nahrstaedt.de> Date: Sun, 18 Feb 2018 22:09:55 +0100 Subject: [PATCH] Version 0.19.2 --- steempy/vote.py | 2 +- steempyapi/websocket.py | 30 +----------------------------- steempybase/objects.py | 15 --------------- 3 files changed, 2 insertions(+), 45 deletions(-) diff --git a/steempy/vote.py b/steempy/vote.py index 61e5b121..04b1194c 100644 --- a/steempy/vote.py +++ b/steempy/vote.py @@ -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 diff --git a/steempyapi/websocket.py b/steempyapi/websocket.py index 3756c5c1..218b6c6c 100644 --- a/steempyapi/websocket.py +++ b/steempyapi/websocket.py @@ -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__ = [ diff --git a/steempybase/objects.py b/steempybase/objects.py index 2763d560..b0c47b09 100644 --- a/steempybase/objects.py +++ b/steempybase/objects.py @@ -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): -- GitLab