Commit graph

3,143 commits

Author SHA1 Message Date
f305bdd491
cmdtest.py regtest: cleanups 2025-03-15 18:24:53 +00:00
70022b04b2
use keyword-only parameters where practicable (103 files changed) 2025-03-15 18:24:52 +00:00
168e6bbc56
whitespace, comments, minor cleanups 2025-03-15 18:24:52 +00:00
1bbb1816e1
tw,tx: make parameters width and iwidth positional-only 2025-03-15 18:24:52 +00:00
89ad0fd29b
keyword-only parameters throughout 2025-03-15 18:24:52 +00:00
0563916c96
Addrlist(): addrfile -> infile 2025-03-15 18:24:52 +00:00
a50e9383a9
minor whitespace 2025-03-15 18:24:52 +00:00
915473cc2d
test suite: minor fixes 2025-03-15 18:24:52 +00:00
ef2d8ae82d
M test/daemontest_d/ut_rpc.py 2025-03-15 18:24:52 +00:00
5252e8d691
test-release.py: restore Pylint test 2025-03-15 18:24:52 +00:00
1e422b2c2b
support Rust Ethereum client (Reth)
Tested on Linux only

Testing:

    $ test/cmdtest.py --coin=eth --daemon-id=reth ethdev
2025-03-10 14:28:55 +00:00
400054975b
nix: upgrade nixpkgs to v24.11 2025-03-10 14:28:55 +00:00
94bee46cb8
new mmgen-cli utility
Communicate with all your coin daemons from a single utility!

Usage information and examples:

    $ mmgen-cli --help
2025-03-10 14:28:55 +00:00
ef8e994266
eth, cmdtest.py ethdev: minor changes, cleanups 2025-03-10 14:28:55 +00:00
6ceff42ff8
make autosign a config file option
If set in the config file, the option may be overridden on the command
line with --no-autosign
2025-03-10 14:28:55 +00:00
2f65a75f7e
swap: Midgard -> Thornode 2025-03-10 14:28:50 +00:00
2f6e52be73
mmgen-swaptx{create,do}: add price protection via --trade-limit option
For more information, see:

    $ mmgen-swaptxcreate --help

Testing:

    $ test/modtest.py tx.memo misc.int_exp_notation
    $ test/cmdtest.py swap
2025-03-04 09:51:05 +00:00
7300c1ec84
update wiki documentation 2025-03-04 09:51:05 +00:00
5135b8dbdd
tx.new_swap: deduct estimated fee from quote for one-output TXs 2025-03-04 09:51:05 +00:00
81e11f3405
tx.new_swap: add initializer, swap_proto_mod attribute 2025-03-04 09:51:05 +00:00
809856c07d
fixes and cleanups 2025-03-04 09:51:05 +00:00
90d500302f
swap.proto.thorchain: move params class to . 2025-03-04 09:51:05 +00:00
4e0a6755f8
new ExpInt class 2025-03-04 09:51:05 +00:00
424253b1e7
support Bitcoin Cash Node v28.0.1 2025-03-04 09:51:00 +00:00
54ff658207
README.md: add codeberg link 2025-03-01 09:57:18 +00:00
bc48ab1786
doc/wiki: add links to swaptx{create,do} manpages 2025-02-27 16:56:35 +00:00
0028c2e42f
documentation updates 2025-02-27 14:14:05 +00:00
5b5c08b22a
doc/wiki: add missing pages, manpages 2025-02-27 13:48:52 +00:00
db71f8ed37
doc/wiki: fix relative links 2025-02-27 13:48:51 +00:00
ea565ff532
doc/wiki: remove wiki subdirs 2025-02-27 13:48:47 +00:00
85cec5655d
THORChain DEX integration
Cross-chain native asset swaps directly from MMGen Wallet!

Currently supported coins: BTC, LTC, BCH.  Work on ETH support is underway.

All supported asset pairs have undergone thorough testing on mainnet.

Sample workflow for a BTC->LTC swap (assumes offline autosigning is set up and
the removable device inserted on the online machine):

    $ mmgen-swaptxcreate --autosign BTC LTC

    remove device - insert - wait for signing - remove - insert

    $ mmgen-txsend --autosign

Note that other command-line options and arguments will likely be required. For
further information, see:

    $ mmgen-swaptxcreate --help

Be aware that transactions stuck for a long time in the mempool can potentially
lead to loss of funds, so users should first learn how to create replacement
transactions with ‘mmgen-txbump’ before attempting a swap.  In all cases, it’s
advisable to begin with small amounts.  Double-checking the vault address on a
block explorer such as thorchain.net or runescan.io before sending the
transaction is also recommended.

Testing:

    $ test/modtest.py tx.memo
    $ test/cmdtest.py regtest_legacy.main autosign_automount swap
2025-02-24 11:27:49 +00:00
5a443c31a0
mmgen-txsend --status --verbose: optionally display transaction info 2025-02-24 11:27:48 +00:00
2be9de113a
get_autosign_obj(): clone existing cfg 2025-02-24 11:27:48 +00:00
5a436b9673
rpc: remove localhost override for test suite, regtest 2025-02-24 11:27:48 +00:00
73efa84b48
tx.file.format(): remove false boolean values from outputs 2025-02-24 11:27:48 +00:00
b3bda1b62b
help: minor cleanups, move help texts to individual modules 2025-02-24 11:27:48 +00:00
28cecaec08
cmdtest.py autosign_automount: add hooks for multi-user support 2025-02-24 11:27:48 +00:00
7b6717d85a
fixes and cleanups throughout 2025-02-24 11:27:44 +00:00
ef5f6e4b22
mmgen-txbump: support new outputs in the replacement TX
The former behavior permitted only increasing the transaction fee.  Now the
replacement TX can contain entirely new outputs.

From mmgen-txbump --help:

    If no outputs are specified, the original outputs will be used for the
    replacement transaction, otherwise a new transaction will be created with
    the outputs listed on the command line.  The syntax for the output
    arguments is identical to that of ‘mmgen-txcreate’.

Testing:

    $ test/cmdtest.py regtest_legacy.main autosign_automount
    $ test/cmdtest.py --coin=eth ethdev.main
2025-02-16 14:44:06 +00:00
d3b5ba23f3
tx.new: new get_inputs() and get_fee() methods 2025-02-16 14:42:32 +00:00
0d38b62081
minor fixes and cleanups 2025-02-16 14:42:32 +00:00
967fad0b14
cmdtest.py regtest: mempool, RBF status cleanups 2025-02-16 14:42:32 +00:00
52f26202a8
write_data_to_file(): add no_stdout parameter 2025-02-16 14:42:32 +00:00
6620b4dba0
txhist: support OP_RETURN TX outputs 2025-02-16 14:42:32 +00:00
004a4650eb
txbump: update opts_data to new format 2025-02-16 14:42:31 +00:00
e54f039690
update copyright dates 2025-02-16 14:42:27 +00:00
be025dc817
tx.base: add nondata_outputs property 2025-02-15 09:54:20 +00:00
92fc9fd462
fixes and cleanups throughout 2025-02-15 09:54:19 +00:00
8311763e94
tx.sign: cleanups 2025-02-15 09:54:19 +00:00
67e1688aa1
cfg: support usage() on bad invocation for txcreate 2025-02-15 09:54:19 +00:00