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

fix remaining steem and steembase classes

parent fa99d2b0
No related branches found
No related tags found
No related merge requests found
...@@ -58,8 +58,8 @@ for the corresponding accounts. ...@@ -58,8 +58,8 @@ for the corresponding accounts.
.. code-block:: python .. code-block:: python
from steem.memo import Memo from steempy.memo import Memo
from steem.account import Account from steempy.account import Account
memoObj = Memo( memoObj = Memo(
from_account=Account(from_account), from_account=Account(from_account),
...@@ -73,8 +73,8 @@ Decoding of a received memo ...@@ -73,8 +73,8 @@ Decoding of a received memo
.. code-block:: python .. code-block:: python
from getpass import getpass from getpass import getpass
from steem.block import Block from steempy.block import Block
from steem.memo import Memo from steempy.memo import Memo
# Obtain a transfer from the blockchain # Obtain a transfer from the blockchain
block = Block(23755086) # block block = Block(23755086) # block
......
...@@ -5,8 +5,8 @@ To build your own transactions and sign them ...@@ -5,8 +5,8 @@ To build your own transactions and sign them
.. code-block:: python .. code-block:: python
from steem.transactionbuilder import TransactionBuilder from steempy.transactionbuilder import TransactionBuilder
from steembase.operations import Transfer from steempybase.operations import Transfer
tx = TransactionBuilder() tx = TransactionBuilder()
tx.appendOps(Transfer(**{ tx.appendOps(Transfer(**{
"fee": {"amount": 0, "asset_id": "1.3.0"}, # will be filled in automatically "fee": {"amount": 0, "asset_id": "1.3.0"}, # will be filled in automatically
...@@ -18,5 +18,5 @@ To build your own transactions and sign them ...@@ -18,5 +18,5 @@ To build your own transactions and sign them
tx.sign() tx.sign()
tx.broadcast() tx.broadcast()
.. autoclass:: steem.transactionbuilder.TransactionBuilder .. autoclass:: steempy.transactionbuilder.TransactionBuilder
:members: :members:
...@@ -54,7 +54,7 @@ class Operation(GPHOperation): ...@@ -54,7 +54,7 @@ class Operation(GPHOperation):
super(Operation, self).__init__(*args, **kwargs) super(Operation, self).__init__(*args, **kwargs)
def _getklass(self, name): def _getklass(self, name):
module = __import__("steembase.operations", fromlist=["operations"]) module = __import__("steempybase.operations", fromlist=["operations"])
class_ = getattr(module, name) class_ = getattr(module, name)
return class_ return class_
......
import time import time
import unittest import unittest
from steem import Steem, exceptions from steempy import Steem, exceptions
from steem.instance import set_shared_steem_instance from steempy.instance import set_shared_steem_instance
from steem.blockchainobject import ObjectCache from steempy.blockchainobject import ObjectCache
class Testcases(unittest.TestCase): class Testcases(unittest.TestCase):
......
from steembase import ( from steempybase import (
transactions, transactions,
memo, memo,
account, account,
......
...@@ -13,7 +13,7 @@ commands= ...@@ -13,7 +13,7 @@ commands=
deps= deps=
flake8 flake8
commands= commands=
flake8 --ignore=E501,F401 steemapi steembase examples flake8 --ignore=E501,F401 steempyapi steempybase examples
[testenv:docs] [testenv:docs]
basepython= basepython=
......
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