view.py 763 B

12345678910111213141516171819202122232425262728
  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.tw.view: Bitcoin base protocol base class for tracking wallet view classes
  12. """
  13. class BitcoinTwView:
  14. txid_w = 64
  15. txid_max_w = {'txid': 64}
  16. txid_min_w = {'txid': 7}
  17. txid_nice_w = {'txid': 12}
  18. nice_addr_w = {'addr': 16}
  19. age_col_params = {
  20. 'confs': (7, 'Confs'),
  21. 'block': (8, 'Block'),
  22. 'days': (6, 'Age(d)'),
  23. 'date': (8, 'Date'),
  24. 'date_time': (16, 'Date/Time')}