altcoins.eth -> base_proto.ethereum
This commit is contained in:
parent
be5867dd2c
commit
c07595781c
30 changed files with 21 additions and 21 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
10
setup.cfg
10
setup.cfg
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue