serinko 4 лет назад
Родитель
Сommit
3b7ae3ff3e
4 измененных файлов с 14 добавлено и 7 удалено
  1. BIN
      __pycache__/texts_cli.cpython-38.pyc
  2. BIN
      __pycache__/whallets_cli.cpython-38.pyc
  3. 1 1
      wallets_dict.json
  4. 13 6
      whallets_cli.py

BIN
__pycache__/texts_cli.cpython-38.pyc


BIN
__pycache__/whallets_cli.cpython-38.pyc


+ 1 - 1
wallets_dict.json

@@ -32,7 +32,7 @@
                 }
                 }
             }
             }
         },
         },
-        
+
         "@zhusu_3ac_1": {
         "@zhusu_3ac_1": {
             "twitter": "https://twitter.com/zhusu",
             "twitter": "https://twitter.com/zhusu",
             "info": "3AC founder, enterpreteur, Deribit, uncommon core",
             "info": "3AC founder, enterpreteur, Deribit, uncommon core",

+ 13 - 6
whallets_cli.py

@@ -83,17 +83,24 @@ def display_wallets(chain):
 
 
     for key, value in dict.items():
     for key, value in dict.items():
         user = key
         user = key
-        wallets = value['wallets']
         info = value['info']
         info = value['info']
         twitter = value['twitter']
         twitter = value['twitter']
-        chains = []
-        for key, value in wallets.items():
-            chains.append(key)
+        wallets = {}
+        wlts = value['wallets']
+        for x, y in wlts.items():
+            wallets[x] = y
+
+
         print(f"\nUser: {user}")
         print(f"\nUser: {user}")
         print(f"Info: {info}")
         print(f"Info: {info}")
         print(f"Twitter: {twitter}")
         print(f"Twitter: {twitter}")
-        print(f"Wallet address: {value}")
-        print(f"Active networks: {chains}")
+        for wlt,inf in wallets.items():
+            print(f"Wallets: {wlt}")
+            print(f"Address: {inf['address']}")
+            print(f"Active networks:")
+            for network in inf['networks']:
+                print(f"- {network}")
+
 
 
 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'''