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.