f44078a187
tw.common: dynamic format strings; tw.unspent: reimplement display
2022-11-11 09:48:58 +00:00
03712efbfb
tracking wallet classes: various cleanups
2022-11-11 09:48:57 +00:00
1d392f1731
mmgen-tool listaddresses: fully reimplement
...
- reimplemented using the new tracking wallet display framework
- command is now interactive, with the same UI as 'twview' and 'txhist'
- the new 'Used' column shows whether an address has received funds
- the new tristate 'showused' filter allows display of only unused, used
or all used addresses
- adding, removal and editing of labels is supported
Testing/demo:
# Run the regtest test partially, leaving coin daemon running:
$ test/test.py -De regtest.label
# Try out the interactive sorting, filtering and label editing features:
$ PYTHONPATH=. MMGEN_TEST_SUITE=1 cmds/mmgen-tool --bob listaddresses interactive=1
# When finished, gracefully shut down the daemon:
$ test/stop-coin-daemons.py btc_rt
2022-11-09 13:05:10 +00:00
8e04c21271
mmgen.tw.ctl: resolve MMGen address via get_addr_label_pairs()
2022-11-09 13:05:09 +00:00
b21864fd08
mmgen.tw.{ctl,common,txhistory,unspent}: cleanups
2022-11-09 13:05:09 +00:00
5d3ed7d976
mmgen.tw.common: new format(), header(), subheader() methods
2022-11-09 13:05:09 +00:00
560a082040
mmgen.tw.txhistory: reimplement display using compute_column_widths()
...
Testing/demo:
$ test/test.py -e regtest.txhist
2022-11-09 13:05:08 +00:00
90d96168d6
mmgen.tw.common: new compute_column_widths() method
...
- automagically compute variable column widths for tabular display using the
given input parameters
- 'nice' (low-priority) columns supported
2022-11-09 13:05:08 +00:00
2b026f1ae7
mmgen.tw.{common,addrs,txhistory,unspent}: cleanups
2022-11-09 13:05:08 +00:00
26dd466635
listaddresses: showbtcaddrs -> showcoinaddrs
2022-11-09 13:05:07 +00:00
12baa5ee9a
mmgen.tx,mmgen.tw: class, variable and function renames
...
Code:
- lbl -> comment
- tw.label -> tw.comment
- tx.label -> tx.comment
- MMGenTxLabel -> MMGenTxComment
- daemon.set_label_args() -> daemon.set_comment_args()
- TwTransaction.get_best_label() -> TwTransaction.get_best_comment()
- a_lbl_add() -> a_comment_add()
- do_lbl_add() -> do_comment_add()
- tw.add_label() -> tw.add_comment()
- tw.set_label() -> tw.set_comment()
- tw.remove_label() -> tw.remove_comment()
- AddrListEntry.label -> AddrListEntry.comment
- PasswordListEntry.label -> PasswordListEntry.comment
- TwCommon.column_params -> TwCommon.column_widths
- update_params_on_age_toggle -> update_widths_on_age_toggle
Test suite:
- tx_label_* -> tx_comment_*
- tw_label_* -> tw_comment_*
- get_label() -> get_comment()
- *{add,edit,chk,remove}_label() -> *{add,edit,chk,remove}_comment()
2022-11-09 13:05:07 +00:00
e0c85f056d
test suite: MSWin testing fixes
2022-11-01 14:37:06 +00:00
cab144cc7f
mmgen-xmrwallet: add missing import of MMGenObject
2022-11-01 14:37:00 +00:00
041963d556
devinit.py: MMGenObject -> MMGenObjectDevTools
2022-11-01 14:36:50 +00:00
5682e7f74e
test suite: minor cleanups
2022-11-01 14:36:45 +00:00
b1096f5a14
mmgen-tool txhist: sort transaction inputs deterministically
2022-10-31 15:42:10 +00:00
23214cf9bb
test suite: deterministic testing fixes
2022-10-31 15:42:10 +00:00
2fc54bd1e1
test suite: pexpect_spawn fixes
2022-10-31 15:42:10 +00:00
d2a3e22790
minor cleanups
2022-10-31 15:42:09 +00:00
2b74f41749
test.py input: add char and line subgroups
...
Testing:
$ test/test.py --demo input.char
$ test/test.py --demo input.line
2022-10-29 20:10:24 +00:00
d4a37011ce
test.include.pexpect: improve handling of send_delay, hold protect
2022-10-29 20:10:24 +00:00
056de3bc5c
minor cleanups; test.py add --demo option
...
Testing/demo:
$ test/test.py --demo regtest
2022-10-29 20:10:23 +00:00
c263d5b187
test.py input: add cmd subgroups
2022-10-29 20:10:23 +00:00
5e0a39f4bb
get_char(): num_chars -> num_bytes
2022-10-29 20:10:23 +00:00
9c1b58717c
test.py: allow tests to override --pexpect-spawn, update tests
2022-10-28 11:35:13 +00:00
41474d9bf7
test.py cfg, test.include.pexpect: minor fix and cleanups
2022-10-28 11:35:13 +00:00
4b9d79fabd
int2bytespec(): add strip, add_space args
2022-10-27 16:45:57 +00:00
f788b36d0a
proto.btc.regtest: cleanups
2022-10-27 16:45:56 +00:00
e223a776d8
minor addition and cleanups
2022-10-27 16:45:56 +00:00
1fcac76363
test-release.sh: code/data cleanups
2022-10-25 09:09:43 +00:00
912bd0a815
line_input(): cleanup
2022-10-25 09:09:37 +00:00
d5e65cfdcf
line_input(): fix regression
2022-10-24 20:48:51 +00:00
dd63008a9d
term.py: add noecho init arg, reset method
2022-10-24 17:34:38 +00:00
3062de696c
line_input(): fix inserted text handling, add hold_protect arg
2022-10-24 17:34:14 +00:00
7d2531b7b3
test.overlay: fake module cleanups
...
1) attempt to add as few names to the module's namespace as possible
2) all names added to the namespace must begin with 'overlay_fake_'
2022-10-24 16:50:05 +00:00
b6f58af8c3
test.overlay: support multiple repositories/packages
2022-10-24 16:50:05 +00:00
3e8f796390
overlay_dir -> overlay_tree_dir
2022-10-24 16:50:04 +00:00
27759c913d
minor fixes and changes
2022-10-21 10:37:51 +00:00
9a1ea34309
initialize developer tools via builtins; add test
2022-10-20 18:14:15 +00:00
c3dbd720c6
minor fixes and changes
2022-10-20 18:14:14 +00:00
526515db77
rpc.py: move set_auth() to proto.btc; add bad auth test
2022-10-17 18:37:24 +00:00
931c5dc7ca
rpc.py: minor fixes and cleanups
2022-10-17 18:37:24 +00:00
c74e15669b
util.py: run_session() -> async_run()
2022-10-17 18:37:23 +00:00
24a612fca7
aiohttp: initialize session in backend
2022-10-17 18:37:23 +00:00
4c9f6e7071
test.py: pass through only explicitly set opts
2022-10-17 18:37:23 +00:00
1d8b908c7c
util.py: relocate user-prompting functions to ui.py
2022-10-17 18:37:22 +00:00
9888fe4c65
util.py: relocate lesser-used functions to util2.py
2022-10-17 18:37:22 +00:00
59e1bd0829
util.py: relocate write_mode() decorator to tw/ctl.py
2022-10-17 18:37:22 +00:00
d355fe6e58
util.py: relocate base_proto_subclass() to protocol.py
2022-10-17 18:37:21 +00:00
6a6aa02a34
mmgen-msg: support --pager for verify operation
2022-10-17 18:37:21 +00:00