7311b2d1cf
AddrListID: support initialization from string + proto
2022-11-16 17:56:05 +00:00
f45c140350
tx.get_chg_output_idx() -> tx.chg_idx
2022-11-16 17:56:05 +00:00
20d35ea637
minor fixes
2022-11-16 17:56:05 +00:00
68caeb3130
mmgen-txcreate: warn user if change address is a used address
2022-11-16 17:56:04 +00:00
4b07f8fac8
tx.process_cmd_arg(), tx.add_comment(): cleanups
2022-11-16 17:56:04 +00:00
321c85bf8f
AddrListID: call cleanups; proto.btc.daemon: missing import fix
2022-11-16 17:56:04 +00:00
e7a60184ed
tw.view: skip rstrip() for screen formatting
2022-11-16 17:56:03 +00:00
0c4728b3fe
Python 3.7 compatibility fix
2022-11-14 09:54:08 +00:00
00a52b687d
TwCtl: variable, attribute and key renames
...
- tw -> twctl
- wallet -> twctl
2022-11-14 09:54:08 +00:00
a6307b59bb
tool.rpc: delete tracking wallet instance in twops()
2022-11-14 09:54:07 +00:00
20f4b12832
module docstring cleanups [134 files]
2022-11-14 09:54:07 +00:00
21b8084b37
class rename: TrackingWallet -> TwCtl
2022-11-14 09:54:02 +00:00
9c07442191
CoinAmt: improve columnar formatting
2022-11-13 15:36:35 +00:00
357f7806b8
mmgen-tool getbalance: reimplement
2022-11-13 15:36:35 +00:00
fbd71fba77
tracking wallet classes: whitespace, cleanup; test.py: minor fix
2022-11-13 15:36:34 +00:00
6da4063544
tracking wallet views: move module loading to tw.view
2022-11-12 13:35:50 +00:00
20b250ef98
proto.base_proto_subclass(): simplify call signature
2022-11-12 13:34:42 +00:00
e237cf0e39
tw.view.TwView: add __init__() method
2022-11-12 13:34:41 +00:00
d513035aad
tracking wallet classes: reorder methods, cleanups
2022-11-12 13:34:41 +00:00
69b15a4ff9
new class: tw.rpc.TwRPC
2022-11-12 13:34:41 +00:00
e7d75ff60d
minor cleanups
2022-11-12 13:34:40 +00:00
79bcc049a5
proto.{btc,eth}.tw: module moves, class renames
...
- proto.btc.tw.common -> proto.btc.tw.rpc
- proto.eth.tw.common -> proto.eth.tw.rpc, proto.eth.tw.view
- BitcoinTwCommon -> BitcoinTwRPC
- EthereumTwCommon -> EthereumTwRPC, EthereumTwView
2022-11-12 13:34:40 +00:00
a7b11f1d3b
move TwMMGenID, TwLabel, get_tw_label() to tw.shared
2022-11-12 13:34:40 +00:00
5948bd4106
module rename: tw.common -> tw.view
2022-11-12 13:34:40 +00:00
14fb60bc67
tracking wallet: TwCommon -> TwView
2022-11-12 13:34:34 +00:00
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