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

First step of replacing Bitshares by Steem

parent c7f98992
No related branches found
No related tags found
No related merge requests found
import unittest
import mock
from pprint import pprint
from bitshares import BitShares
from bitshares.account import Account
from bitshares.amount import Amount
from bitshares.asset import Asset
from bitshares.instance import set_shared_bitshares_instance
from bitsharesbase.operationids import getOperationNameForId
from steem import Steem
from steem.account import Account
from steem.amount import Amount
from steem.asset import Asset
from steem.instance import set_shared_steem_instance
from steem.operationids import getOperationNameForId
wif = "5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3"
......@@ -16,12 +16,12 @@ class Testcases(unittest.TestCase):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.bts = BitShares(
self.stm = Steem(
nobroadcast=True,
# We want to bundle many operations into a single transaction
bundle=True,
# Overwrite wallet to use this list of wifs only
wif=[wif]
)
self.bts.set_default_account("init0")
set_shared_bitshares_instance(self.bts)
self.stm.set_default_account("init0")
set_shared_steem_instance(self.stm)
......@@ -13,7 +13,7 @@ commands=
deps=
flake8
commands=
flake8 --ignore=E501,F401 bitsharesapi bitsharesbase examples
flake8 --ignore=E501,F401 steemapi steembase examples
[testenv:docs]
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