فهرست منبع

display wallets

serinko 4 سال پیش
والد
کامیت
a10691c9f0
1فایلهای تغییر یافته به همراه22 افزوده شده و 4 حذف شده
  1. 22 4
      whallets-cli.py

+ 22 - 4
whallets-cli.py

@@ -22,16 +22,18 @@ def add_wallet():
     address = input(tc._prompt_address())
     address = input(tc._prompt_address())
     twtr = input(tc._prompt_twitter())
     twtr = input(tc._prompt_twitter())
     ens = input(tc._prompt_ens())
     ens = input(tc._prompt_ens())
+    check_wallet(chain)
 
 
 
 
 
 
-def check_wallet():
+def check_wallet(chain):
     """
     """
     Scans through wallets to check if a new wallet is not already in the
     Scans through wallets to check if a new wallet is not already in the
     database"
     database"
     """
     """
-
-
+    i = _chain_index(chain)
+    dict = get_wallets()[i]
+    wallets = dict
 
 
 
 
 def get_wallets():
 def get_wallets():
@@ -52,6 +54,20 @@ def display_wallets(chain):
     dict = get_wallets()[i]
     dict = get_wallets()[i]
     print(f"\n\n{chain.upper()} WALLETS:")
     print(f"\n\n{chain.upper()} WALLETS:")
 
 
+    for key, value in dict.items():
+        user = key
+        wallets = value['wallets']
+        info = value['info']
+        twitter = value['twitter']
+        chains = []
+        for key, value in wallets.items():
+            chains.append(key)
+        print(f"\nUser: {user}")
+        print(f"Info: {info}")
+        print(f"Twitter: {twitter}")
+        print(f"Wallet address: {value}")
+        print(f"Active networks: {chains}")
+
 def _chain_index(chain):
 def _chain_index(chain):
     '''Asigns an index based on given parameter of the chain'''
     '''Asigns an index based on given parameter of the chain'''
     if chain.lower() == 'evm':
     if chain.lower() == 'evm':
@@ -62,4 +78,6 @@ def _chain_index(chain):
 
 
 def display_all_wallets():
 def display_all_wallets():
     display_wallets('evm')
     display_wallets('evm')
-    display_wallets('spl')
+    display_wallets('spl')
+
+display_all_wallets()