altcoins.eth -> base_proto.ethereum

This commit is contained in:
The MMGen Project 2022-02-03 20:40:42 +00:00
commit c07595781c
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2
30 changed files with 21 additions and 21 deletions

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.contract: Ethereum contract and token classes for the MMGen suite
altcoins.base_proto.ethereum.contract: Ethereum contract and token classes
"""
from decimal import Decimal

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.tw: Ethereum tracking wallet dependency classes for the MMGen suite
altcoins.base_proto.ethereum.tw: Ethereum tracking wallet dependency classes
"""
from ...addrdata import AddrData,TwAddrData

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.twaddrs: Ethereum tracking wallet listaddresses class for the MMGen suite
altcoins.base_proto.ethereum.twaddrs: Ethereum tracking wallet listaddresses class
"""
from ...twaddrs import TwAddrList

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.twbal: Ethereum tracking wallet getbalance class for the MMGen suite
altcoins.base_proto.ethereum.twbal: Ethereum tracking wallet getbalance class
"""
from ...twctl import TrackingWallet

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.twctl: Ethereum tracking wallet control class for the MMGen suite
altcoins.base_proto.ethereum.twctl: Ethereum tracking wallet control class
"""
from ...util import msg,ymsg,write_mode

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.twuo: Ethereum tracking wallet unspent outputs class for the MMGen suite
altcoins.base_proto.ethereum.twuo: Ethereum tracking wallet unspent outputs class
"""
from ...tw import TwLabel

View file

@ -17,7 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
altcoins.eth.tx: Ethereum transaction classes for the MMGen suite
altcoins.base_proto.ethereum.tx: Ethereum transaction classes
"""
import json

View file

@ -677,10 +677,10 @@ def altcoin_subclass(cls,proto,mod_dir):
magic module loading and class retrieval
"""
if proto.base_coin != 'ETH':
if proto.base_proto != 'Ethereum':
return cls
modname = f'mmgen.altcoins.{proto.base_coin.lower()}.{mod_dir}'
modname = f'mmgen.base_proto.{proto.base_proto.lower()}.{mod_dir}'
import importlib
if mod_dir == 'tx': # nested classes

View file

@ -44,11 +44,11 @@ packages =
mmgen.share
mmgen.proto
mmgen.tool
mmgen.altcoins
mmgen.altcoins.eth
mmgen.altcoins.eth.pyethereum
mmgen.altcoins.eth.rlp
mmgen.altcoins.eth.rlp.sedes
mmgen.base_proto
mmgen.base_proto.ethereum
mmgen.base_proto.ethereum.pyethereum
mmgen.base_proto.ethereum.rlp
mmgen.base_proto.ethereum.rlp.sedes
scripts =
cmds/mmgen-addrgen

View file

@ -41,11 +41,11 @@ def overlay_setup(repo_root):
'mmgen.share',
'mmgen.tool',
'mmgen.proto',
'mmgen.altcoins',
'mmgen.altcoins.eth',
'mmgen.altcoins.eth.pyethereum',
'mmgen.altcoins.eth.rlp',
'mmgen.altcoins.eth.rlp.sedes' ):
'mmgen.base_proto',
'mmgen.base_proto.ethereum',
'mmgen.base_proto.ethereum.pyethereum',
'mmgen.base_proto.ethereum.rlp',
'mmgen.base_proto.ethereum.rlp.sedes' ):
process_srcdir(d)
return overlay_dir

View file

@ -841,8 +841,8 @@ class TestSuiteEthdev(TestSuiteBase,TestSuiteShared):
usr_mmaddrs = [f'{sid}:E:{i}' for i in (11,21)]
usr_addrs = [tool_cmd(cmdname='gen_addr',proto=self.proto).gen_addr(addr,dfl_words_file) for addr in usr_mmaddrs]
from mmgen.altcoins.eth.contract import TokenResolve
from mmgen.altcoins.eth.tx import EthereumMMGenTX as etx
from mmgen.base_proto.ethereum.contract import TokenResolve
from mmgen.base_proto.ethereum.tx import EthereumMMGenTX as etx
async def do_transfer(rpc):
for i in range(2):
tk = await TokenResolve(