asset.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. swap.asset: THORChain swap asset class the MMGen Wallet suite
  12. """
  13. from ...asset import SwapAsset
  14. class THORChainSwapAsset(SwapAsset):
  15. _ad = SwapAsset._ad
  16. assets_data = {
  17. 'BTC': _ad('Bitcoin', 'BTC', None, 'b', True),
  18. 'LTC': _ad('Litecoin', 'LTC', None, 'l', True),
  19. 'BCH': _ad('Bitcoin Cash', 'BCH', None, 'c', True),
  20. 'ETH': _ad('Ethereum', 'ETH', None, 'e', True),
  21. 'DOGE': _ad('Dogecoin', 'DOGE', None, 'd', False),
  22. 'RUNE': _ad('Rune (THORChain)', 'RUNE', 'THOR.RUNE', 'r', False),
  23. }
  24. evm_contracts = {}
  25. unsupported = ('DOGE', 'RUNE')
  26. blacklisted = {}
  27. evm_chains = ('ETH', 'AVAX', 'BSC', 'BASE')