texts_cli.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. """A module with all the display info for whallets-cli."""
  2. import whallets_cli as cli
  3. def welcome_message():
  4. """welcoming message to the cli"""
  5. msg = \
  6. "WELCOME TO WHALLETS CLI"\
  7. "\n ========================================= \n"
  8. return msg
  9. def _choose_chain():
  10. msg = \
  11. "\nPlease chose the network for the wallet address:"\
  12. "\n1 - EVM; Etherum main net and any forks (BSC, Poly..)"\
  13. "\n2 - SPL; Solana Program Platform"\
  14. "\n3 - BTC; Bitcoin"
  15. return msg
  16. def _prompt_address():
  17. """Ask or the wallet address"""
  18. msg = "\nEnter the wallet address:\n"
  19. return msg
  20. def _prompt_twitter():
  21. """Ask or the wallet address"""
  22. msg = "\nEnter the twitter link (full address):\n"
  23. return msg
  24. def _prompt_info():
  25. """Ask or the wallet address"""
  26. msg = "\nEnter short info about the user:\n"
  27. return msg
  28. def _prompt_name():
  29. """Ask or the wallet address"""
  30. msg = "\nEnter user/wallet name/tag:\n"
  31. return msg
  32. def _prompt_ens():
  33. """Ask or the wallet address"""
  34. msg = "\nEnter user's ENS:\n"
  35. return msg
  36. def _check_wallet_result(chain, name, addr, twtr, ens):
  37. """Messages informing about existing wallet"""
  38. ix = cli.check_wallet(chain, name, addr, twtr, ens)
  39. if ix < 4:
  40. items = ['name','address','twitter','ens']
  41. item = items[ix]
  42. msg = f"This {item} is already saved in the databse."
  43. else:
  44. msg = "New wallet was saved."
  45. return msg