Commit graph

3,143 commits

Author SHA1 Message Date
d7ebc45915
Completed: implement ext_to_type(), use in initializer 2022-02-05 13:32:53 +00:00
3c015fa34f
minor fixes and cleanups 2022-02-05 13:32:53 +00:00
07bc2e5cf2
Filename(): rename parameters
- from_extension -> base_class
- ftype -> subclass
2022-02-05 13:32:53 +00:00
05e901e78d
devtools.py: add pexit() method, allow args in pmsg() 2022-02-05 13:32:52 +00:00
818488c559
modularize transaction classes
The monolithic tx.py module has been split into multiple modules, and a
clean separation of protocol-dependent and protocol-independent code has
been carried out.

- Protocol-independent base classes are located under `tx`.
- Protocol-dependent subclasses are under `base_proto/{name}/tx`.
- The code in `tx/__init__.py` loads the required module and returns an
  initialized instance of the requested class.
2022-02-03 20:41:28 +00:00
d6872ddb87
fixes and cleanups throughout 2022-02-03 20:40:42 +00:00
301e2516ab
altcoin_subclass() -> base_proto_subclass() 2022-02-03 20:40:42 +00:00
c07595781c
altcoins.eth -> base_proto.ethereum 2022-02-03 20:40:42 +00:00
be5867dd2c
test.py: minor overlay fix 2022-02-03 20:40:41 +00:00
5d5c1835dd
tx.py,txfile.py: minor cleanups 2022-02-03 20:40:41 +00:00
3a1ba61fc2
test.py input: add 'get_seed_from_stdin' test 2022-02-03 20:40:41 +00:00
0dc3ef9a1f
ImmutableAttr: remove support for type conversion from str 2022-02-03 20:40:40 +00:00
b9c96c5215
avoid use of globals() wherever practicable 2022-02-03 20:40:40 +00:00
362d8cfeed
add proto.common module 2022-02-03 20:40:40 +00:00
7558c539a1
modularize coin protocols
- protocols are now in individual modules under `proto`
2022-01-29 11:25:10 +00:00
38260eece6
passwdlist, tool.file: import optimizations 2022-01-29 11:25:03 +00:00
59bffb59b2
CoinProtocol.Base: skip loading of .amt module via 'need_amt=False' 2022-01-29 11:25:03 +00:00
2eb646ef3f
addrfile.py: remove import of .passwdlist 2022-01-29 11:25:03 +00:00
3aab5cf25c
protocol.py: add warn_trustlevel(), create altcoin classes from init_proto() 2022-01-29 11:25:02 +00:00
2ff7b42346
protocol.py: move gen-only altcoin functions to altcoin.py 2022-01-29 11:25:02 +00:00
a83dbb0ad5
minor fixes and cleanups 2022-01-29 11:24:21 +00:00
ffae4b4f55
remove dependence on string module (digits,hexdigits,ascii_letters) 2022-01-29 11:23:38 +00:00
7e158a9bcf
globalvars.py: make 'tx_fee_adj' a float 2022-01-29 11:23:38 +00:00
af5770b8e9
protocol.py: improve altcoin class creation code 2022-01-29 11:23:38 +00:00
4981fefffe
opts.init(): add 'need_proto' arg for on-demand loading of .protocol 2022-01-27 11:19:17 +00:00
f4282cd214
tool: unify class initialization with 'need_proto' and 'need_addrtype' 2022-01-27 11:08:08 +00:00
a19275e280
CoinProtocol.core_coins -> g.core_coins 2022-01-27 11:08:08 +00:00
bb96d6223f
lazy imports of hashlib, string 2022-01-27 11:08:07 +00:00
0d0995f631
altcoin.py: use relative imports 2022-01-27 11:08:07 +00:00
37ccc9fe20
util.py,wallet.py: whitespace, minor cleanups 2022-01-27 11:08:07 +00:00
29e3a07d6a
import cleanups 2022-01-27 11:08:07 +00:00
137cef09fc
globalvars.py: implement version and release_date attrs as properties 2022-01-27 11:08:06 +00:00
769f96aad7
altcoins.eth: use relative imports 2022-01-27 11:08:06 +00:00
307ccfa87d
remove altcoins.eth.obj module
- ETHAmt -> mmgen.amt
- ETHNonce -> mmgen.obj
2022-01-27 11:08:06 +00:00
3f208b4c1c
improve color initialization 2022-01-27 11:08:05 +00:00
ed7cc7498a
mmgen-tool: install fix, sort command names; version msg fix 2022-01-25 12:20:23 +00:00
341ee2c741
modularize the 'mmgen-tool' utility
- each command group now has its own module under the `tool` directory
- only modules required by a given command are loaded
- code used only by the command-line tool has been relocated to `main_tool.py`
2022-01-24 19:33:02 +00:00
5545a011b0
minor fixes and cleanups 2022-01-24 19:30:12 +00:00
2305efc39d
scripts/exec_wrapper.py: add tracemalloc support
- support is activated by setting the MMGEN_TRACEMALLOC environment variable
2022-01-24 19:30:12 +00:00
8e17b0fe21
remove unsupported 'mmgen-split' command 2022-01-24 19:30:11 +00:00
0ef7de1886
globalvars.py: move crypto constants to crypto.py 2022-01-22 14:26:15 +00:00
246e500891
crypto.py: import cleanups 2022-01-22 14:26:14 +00:00
ccb4894583
crypto.py:get_*passphrase(),get_hash_preset*(): merge with duplicating code in wallet.py 2022-01-22 14:26:14 +00:00
748bf68c15
crypto.py:mmgen_{en,de}crypt(): whitespace, cleanups 2022-01-22 14:26:14 +00:00
ad569cbeb7
import cleanups throughout 2022-01-22 14:26:13 +00:00
753bd0aba8
minor fixes, cleanups 2022-01-22 14:26:13 +00:00
7d84165ae7
class Filename: improve implementation 2022-01-22 14:26:13 +00:00
5d6e79783f
test overlay fixes 2022-01-22 14:26:12 +00:00
0a4427bb89
scripts/gendiff.py: DOS CR fix 2022-01-22 14:26:12 +00:00
4819c97f8a
util.py: move file utilities to fileutil.py 2022-01-21 11:23:46 +00:00