prune.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env python3
  2. #
  3. # mmgen = Multi-Mode GENerator, a command-line cryptocurrency wallet
  4. # Copyright (C)2013-2024 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.tw.prune: Bitcoin base protocol tracking wallet address list prune class
  12. """
  13. from ....tw.prune import TwAddressesPrune
  14. from .addresses import BitcoinTwAddresses
  15. class BitcoinTwAddressesPrune(BitcoinTwAddresses,TwAddressesPrune):
  16. prompt_fs_in = [
  17. 'Sort options: [a]mt, [A]ge, [M]mgen addr, [r]everse',
  18. 'Column options: toggle [D]ays/date/confs/block',
  19. 'Filters: show [E]mpty addrs, [U]sed addrs, all [L]abels',
  20. 'View/Actions: pager [v]iew, [w]ide view, r[e]draw{s}',
  21. 'Pruning: [q]uit pruning, [p]rune, [u]nprune, [c]lear prune list:']
  22. key_mappings = {
  23. 'a':'s_amt',
  24. 'A':'s_age',
  25. 'M':'s_twmmid',
  26. 'r':'s_reverse',
  27. 'D':'d_days',
  28. 'e':'d_redraw',
  29. 'E':'d_showempty',
  30. 'U':'d_showused',
  31. 'L':'d_all_labels',
  32. 'v':'a_view',
  33. 'w':'a_view_detail',
  34. 'p':'a_prune',
  35. 'u':'a_unprune',
  36. 'c':'a_clear_prune_list' }