mmgen-wallet/test/overlay/fakemods/mmgen
Repository files (latest commit first)
Filename Latest commit message Latest commit date
The MMGen Project ea9c2d296e
THORChain XMR swaps
See: ffe488ff, ff35b01c

Enabled for test suite only pending activation on THORChain mainnet.

Swapping to and from ETH and ERC20 tokens is currently untested.

Sample LTC-to-XMR swap workflow (assumes --autosign):

    # Create the registration transaction (pass 1) (amount is optional):
    $ mmgen-swaptxcreate --memoless LTC 5.4321 XMR

    # Autosign the registration transaction and send it:
    $ mmgen-txsend
    => TxID

    # Get the reference number from the THORChain network:
    $ mmgen-remote --coin=rune get_refnum TxID
    => REFNUM

    # Create the swap transaction (pass 2) (amount is optional):
    $ mmgen-swaptxcreate --refnum=REFNUM LTC 5.4321 XMR

    # Sign and send the swap transaction:
    $ mmgen-txsend

    # Monitor your XMR wallet for the funds:
    $ mmgen-tool --coin=xmr twview

Sample XMR-to-LTC swap workflow (assumes --autosign):

    # Create the registration transaction (pass 1) (amount is required):
    $ mmgen-swaptxcreate --memoless XMR 1.2345 LTC

    # Sign and send registration TX and get reference number as shown above

    # Create the swap transaction (pass 2) (amount is required):
    $ mmgen-swaptxcreate --refnum=REFNUM XMR 1.2345 LTC

    # Sign and send the swap transaction as shown above

    # Monitor your LTC wallet for the funds:
    $ mmgen-tool --coin=ltc twview

Testing/demo:

    $ test/cmdtest.py --coin=ltc -e xmrswap

For more information and examples, invoke `mmgen-swaptxcreate --help`

More complete documentation will be provided at a later date.
2026-10-20 17:38:48 +00:00
..
autosign tx, autosign overlay: minor cleanups 2026-09-17 16:00:13 +00:00
proto whitespace (hanging parentheses) 2026-10-20 17:38:43 +00:00
swap/proto/thorchain THORChain XMR swaps 2026-10-20 17:38:48 +00:00
tw test suite: rename *BOGUS* environment variables 2026-09-11 14:10:55 +00:00
tx test suite: more granular testing of legacy and bad version transaction files 2026-09-11 14:10:56 +00:00
cfg.py cfg: restore exec_wrapper and devtools config vars 2026-10-05 14:30:05 +00:00
crypto.py crypto: move pyaes backend to test suite 2026-09-15 10:51:03 +00:00
daemon.py THORChain XMR swaps 2026-10-20 17:38:48 +00:00
keygen.py keygen: move unsafe pubkey generation backends to test suite 2026-09-15 10:51:03 +00:00
led.py bandit fixes and cleanups 2026-08-17 09:05:13 +00:00
rpc.py test suite: rename *BOGUS* environment variables 2026-09-11 14:10:55 +00:00
util.py whitespace: test/overlay 2024-10-18 10:32:13 +00:00
util2.py minor cleanups, deterministic testing improvements 2024-03-08 14:13:22 +00:00