Commit graph

2,120 commits

Author SHA1 Message Date
de6750a34b
whitespace: scripts, setup.py, other 2024-10-18 10:32:11 +00:00
747279c106
whitespace: examples 2024-10-18 10:32:11 +00:00
7fdaba0f78
whitespace: wallet 2024-10-18 10:32:11 +00:00
362e581798
whitespace: tx 2024-10-18 10:32:10 +00:00
4ea4e5e472
whitespace: tw 2024-10-18 10:32:10 +00:00
f77a6115e4
whitespace: tool 2024-10-18 10:32:10 +00:00
8694854e65
whitespace: proto (other) 2024-10-18 10:32:09 +00:00
1623ea6beb
whitespace: proto.xmr 2024-10-18 10:32:09 +00:00
6346c1d11a
whitespace: proto.eth (plus cleanup) 2024-10-18 10:32:09 +00:00
4a0a199e85
whitespace: proto.btc 2024-10-18 10:32:08 +00:00
b7de7b9701
whitespace: various 2024-10-18 10:32:08 +00:00
b5600fc563
whitespace: top-level modules 2024-10-18 10:32:08 +00:00
96b6b38c01
whitespace: main_*.py 2024-10-18 10:32:07 +00:00
4daf293dc2
xmrwallet.py -> xmrwallet (23 files) 2024-10-18 10:32:07 +00:00
22caf40821
whitespace, minor changes 2024-10-18 10:32:06 +00:00
5150ca586b
update file header 2024-10-18 10:32:06 +00:00
f1888658d0
remove some unused code 2024-10-18 10:32:06 +00:00
50fc415282
CoinAmt: improvements
- do strict type checking in initializer, forbid double initialization
- add dynamic decimal precision based on protocol
- dunder method fixes, cleanups
- JSON-RPC library now returns floats (i.e. amounts) as strings instead of Decimal,
  eliminating an extra conversion step
2024-10-18 10:32:05 +00:00
0924928ef3
tx.feespec2abs(): cleanup 2024-10-18 10:32:05 +00:00
09856a52cb
proto.btc.tx: rel fee display cleanup 2024-10-18 10:32:05 +00:00
8ddd94c125
proto.eth.tx: fee display cleanups 2024-10-18 10:32:04 +00:00
dece143f9b
tx.new: user fee, fee estimate cleanups 2024-10-18 10:32:04 +00:00
e42c404d9d
unit_tests.py obj: refactor 2024-10-18 10:32:04 +00:00
fc55750cd2
tx, tw: whitespace, cleanups 2024-10-18 10:32:03 +00:00
4ffe5c48d2
tx.file: new transaction file format
- the new format is plain JSON, readable with tools such as `jq`.  Filenames
  and extensions for raw, signed and sent transactions remain unchanged

- reading/writing the legacy format continues to be supported, but new
  transactions cannot be written to it.  This means users who upgrade MMGen
  Wallet to this commit on their online computer(s) must upgrade it on their
  offline signing device(s) as well: upgraded offline installations can
  interoperate with non-upgraded online installations, but not vice-versa

- no additional action is required: this change is transparent to the user

Testing:

    $ test/unit_tests.py tx.txfile
    $ test/cmdtest.py -n main
    $ test/test-release.sh -A autosign
2024-10-12 09:14:45 +00:00
a38f4e4fd9
tx.file: cleanups; other minor cleanups 2024-10-12 09:14:40 +00:00
6e728b7f4d
opts: allow combined short option with parameter; add tests
`foo -abparam`, equivalent to `foo -a -bparam`, is now allowed, in conformity
with standard Unix option parsing convention.
2024-10-10 11:28:51 +00:00
212cb2d0fb
opts parsing bugfix 2024-10-08 13:21:16 +00:00
d7e3b55e3b
opts, help: refactor, parse cmdline opts natively, filter global opts
- command-line options are now parsed natively, without use of the getopt module
- global options and --longhelp helpscreen are now contextual, depending on coin
  and executed command
- commands invoked with out-of-context global options (e.g. `mmgen-walletgen
  --coin=btc`) now fail with an ‘unrecognized option’ error

Testing:

    $ test/test-release.sh help
    $ test/cmdtest.py opts
2024-10-08 12:56:02 +00:00
307e6fb541
README.md: update command help links 2024-10-08 12:56:01 +00:00
e1e1f07995
whitespace, minor cleanups 2024-10-08 12:56:01 +00:00
d95cdf49b9
cfg.py: do_post_init -> caller_post_init 2024-10-08 12:56:00 +00:00
5cc4a20724
cfg.py: add cmd_caps attr 2024-10-08 12:56:00 +00:00
f6843a3fcd
opts.py: refactor usage(), version(), show_hash_presets() 2024-10-08 12:56:00 +00:00
a3354aed74
cmdtest.py: add ref3_pw test 2024-10-08 12:55:59 +00:00
d520e31e53
test-release.sh: add separate help test 2024-10-08 12:55:59 +00:00
d8aca5bb6c
test suite: whitespace, minor cleanups 2024-10-08 12:55:59 +00:00
7fbb50db92
scripts/gendiff.py: support diff options 2024-10-08 12:55:58 +00:00
66521a07f2
update --longhelp text 2024-10-08 12:55:58 +00:00
3b3d06fb51
cmdtest.py: remove unneeded opts from spawn cmdline 2024-10-08 12:55:58 +00:00
647c7a2601
cmdtest.py regtest: cleanups 2024-10-08 12:55:57 +00:00
fddb5b73b2
cmdtest.py: autosign_eth, ethdev: cleanups 2024-10-08 12:55:57 +00:00
75051cd831
regtest: remove coin component from data_dir path 2024-10-08 12:55:57 +00:00
93e586c9f0
test suite: whitespace, string formatting 2024-10-08 12:55:51 +00:00
8edc7da5a2
BCH cashaddr: full support
- BCH addresses are now displayed in cashaddr format by default.  This may be
  overridden on the command line with --cashaddr=0, or in the config file by
  setting `bch_cashaddr` to false
- In tracking wallet views, the ‘h’ key toggles between legacy and cashaddr
  address display
- Transaction views display BCH addresses in both formats simultaneously
- The --usecashaddr=0 daemon option is no longer required and should be omitted

Testing:

    $ test/unit_tests.py -v cashaddr bip_hd.multicoin
    $ test/gentest.py --coin=bch -v --type=C 1 test/ref/bitcoin_cash/bchwallet.dump
    $ test/cmdtest.py -e bch_txview_cashaddr1 bch_txview_cashaddr2
    $ test/cmdtest.py --coin=bch -e txsend regtest.view autosign_automount
    $ test/cmdtest.py --coin=bch -n ref3_addr
2024-09-29 11:59:57 +00:00
15b94038a4
self.proto.pubhash2addr(): return CoinAddr instance 2024-09-29 11:59:57 +00:00
eeb98869d3
CoinAddr: add views, view_pref attrs 2024-09-29 11:59:56 +00:00
15e01df145
cleanups, whitespace 2024-09-29 11:59:56 +00:00
cb113ffc82
test suite: cleanups 2024-09-29 11:59:56 +00:00
9a70a04b01
scrambletest.py: cleanups 2024-09-29 11:59:55 +00:00