File tree Expand file tree Collapse file tree 6 files changed +17
-15
lines changed Expand file tree Collapse file tree 6 files changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -123,8 +123,8 @@ def __init__(
123123 self ._check_and_log_network_settings ()
124124
125125 logging .debug (
126- f"Connecting to < network: [blue]{ self .network } [/blue], "
127- f"chain_endpoint: [blue]{ self .chain_endpoint } [/blue]> ..."
126+ f"Connecting to network: [blue]{ self .network } [/blue], "
127+ f"chain_endpoint: [blue]{ self .chain_endpoint } [/blue]..."
128128 )
129129 self .substrate = AsyncSubstrateInterface (
130130 url = self .chain_endpoint ,
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ async def add_stake_extrinsic(
134134 )
135135
136136 logging .info (
137- f"Balance: [blue]{ old_balance } [/blue] :arrow_right: { new_balance } [/green]"
137+ f"Balance: [blue]{ old_balance } [/blue] :arrow_right: [green] { new_balance } [/green]"
138138 )
139139 logging .info (
140140 f"Stake: [blue]{ old_stake } [/blue] :arrow_right: [green]{ new_stake } [/green]"
@@ -292,6 +292,9 @@ async def get_old_stakes() -> list[Balance]:
292292 continue
293293
294294 try :
295+ logging .info (
296+ f"Staking [blue]{ staking_balance } [/blue] to hotkey: [magenta]{ hotkey_ss58 } [/magenta] on netuid: [blue]{ netuid } [/blue]"
297+ )
295298 call = await subtensor .substrate .compose_call (
296299 call_module = "SubtensorModule" ,
297300 call_function = "add_stake" ,
@@ -372,7 +375,7 @@ async def get_old_stakes() -> list[Balance]:
372375
373376 if successful_stakes != 0 :
374377 logging .info (
375- f":satellite: [magenta]Checking Balance on:[/magenta] ( [blue]{ subtensor .network } [/blue] "
378+ f":satellite: [magenta]Checking Balance on:[/magenta] [blue]{ subtensor .network } [/blue] "
376379 f"[magenta]...[/magenta]"
377380 )
378381 new_balance = await subtensor .get_balance (wallet .coldkeypub .ss58_address )
Original file line number Diff line number Diff line change @@ -79,8 +79,7 @@ async def unstake_extrinsic(
7979
8080 try :
8181 logging .info (
82- f":satellite: [magenta]Unstaking from chain:[/magenta] [blue]{ subtensor .network } [/blue] "
83- f"[magenta]...[/magenta]"
82+ f"Unstaking [blue]{ unstaking_balance } [/blue] from hotkey: [magenta]{ hotkey_ss58 } [/magenta] on netuid: [blue]{ netuid } [/blue]"
8483 )
8584
8685 call = await subtensor .substrate .compose_call (
@@ -252,8 +251,7 @@ async def get_old_stakes() -> list[Balance]:
252251
253252 try :
254253 logging .info (
255- f":satellite: [magenta]Unstaking from chain:[/magenta] [blue]{ subtensor .network } [/blue] "
256- f"[magenta]...[/magenta]"
254+ f"Unstaking [blue]{ unstaking_balance } [/blue] from hotkey: [magenta]{ hotkey_ss58 } [/magenta] on netuid: [blue]{ netuid } [/blue]"
257255 )
258256 call = await subtensor .substrate .compose_call (
259257 call_module = "SubtensorModule" ,
@@ -319,7 +317,7 @@ async def get_old_stakes() -> list[Balance]:
319317
320318 if successful_unstakes != 0 :
321319 logging .info (
322- f":satellite: [magenta]Checking Balance on:[/magenta] ( [blue]{ subtensor .network } [/blue] "
320+ f":satellite: [magenta]Checking Balance on:[/magenta] [blue]{ subtensor .network } [/blue] "
323321 f"[magenta]...[/magenta]"
324322 )
325323 block_hash = await subtensor .substrate .get_chain_head ()
Original file line number Diff line number Diff line change @@ -275,6 +275,9 @@ def get_old_stakes() -> list[Balance]:
275275 continue
276276
277277 try :
278+ logging .info (
279+ f"Staking [blue]{ staking_balance } [/blue] to [magenta]{ hotkey_ss58 } [/magenta] on netuid [blue]{ netuid } [/blue]"
280+ )
278281 call = subtensor .substrate .compose_call (
279282 call_module = "SubtensorModule" ,
280283 call_function = "add_stake" ,
@@ -353,7 +356,7 @@ def get_old_stakes() -> list[Balance]:
353356
354357 if successful_stakes != 0 :
355358 logging .info (
356- f":satellite: [magenta]Checking Balance on:[/magenta] ( [blue]{ subtensor .network } [/blue] "
359+ f":satellite: [magenta]Checking Balance on:[/magenta] [blue]{ subtensor .network } [/blue] "
357360 f"[magenta]...[/magenta]"
358361 )
359362 new_balance = subtensor .get_balance (wallet .coldkeypub .ss58_address )
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ def unstake_extrinsic(
7575
7676 try :
7777 logging .info (
78- f":satellite: [magenta]Unstaking[/magenta] [blue]{ unstaking_balance } [/blue] [magenta]from netuid[/magenta] "
79- f"[blue]{ netuid } [/blue] [magenta]on[/magenta] [blue]{ subtensor .network } [/blue] [magenta]...[/magenta]"
78+ f"Unstaking [blue]{ unstaking_balance } [/blue] from [magenta]{ hotkey_ss58 } [/magenta] on [blue]{ netuid } [/blue]"
8079 )
8180 call = subtensor .substrate .compose_call (
8281 call_module = "SubtensorModule" ,
@@ -241,8 +240,7 @@ def get_old_stakes() -> list[Balance]:
241240
242241 try :
243242 logging .info (
244- f":satellite: [magenta]Unstaking from chain:[/magenta] [blue]{ subtensor .network } [/blue] "
245- f"[magenta]...[/magenta]"
243+ f"Unstaking [blue]{ unstaking_balance } [/blue] from [magenta]{ hotkey_ss58 } [/magenta] on [blue]{ netuid } [/blue]"
246244 )
247245 call = subtensor .substrate .compose_call (
248246 call_module = "SubtensorModule" ,
Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ def __init__(
123123 self ._check_and_log_network_settings ()
124124
125125 logging .debug (
126- f"Connecting to < network: [blue]{ self .network } [/blue], "
126+ f"Connecting to network: [blue]{ self .network } [/blue], "
127127 f"chain_endpoint: [blue]{ self .chain_endpoint } [/blue]> ..."
128128 )
129129 self .substrate = SubstrateInterface (
You can’t perform that action at this time.
0 commit comments