new_swap.py 649 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env python3
  2. #
  3. # MMGen Wallet, a terminal-based cryptocurrency wallet
  4. # Copyright (C)2013-2025 The MMGen Project <mmgen@tuta.io>
  5. # Licensed under the GNU General Public License, Version 3:
  6. # https://www.gnu.org/licenses
  7. # Public project repositories:
  8. # https://github.com/mmgen/mmgen-wallet
  9. # https://gitlab.com/mmgen/mmgen-wallet
  10. """
  11. proto.btc.tx.new_swap: Bitcoin new swap transaction class
  12. """
  13. from ....tx.new_swap import NewSwap as TxNewSwap
  14. from .new import New
  15. class NewSwap(New, TxNewSwap):
  16. desc = 'Bitcoin swap transaction'
  17. async def process_swap_cmdline_args(self, cmd_args, addrfile_args):
  18. import sys
  19. sys.exit(0)