@@ -507,7 +507,7 @@ def poc_receipts_v1(activity):
507
507
valid_text = "π© Invalid"
508
508
time = nice_date (activity ["time" ])
509
509
510
- txn_link = helium_explorer_tx + activity ["hash" ]
510
+ txn_link = f'[π](< { helium_explorer_tx } { activity ["hash" ]} >)'
511
511
512
512
witnesses = {}
513
513
wit_count = 0
@@ -521,7 +521,7 @@ def poc_receipts_v1(activity):
521
521
# challenge accepted
522
522
if "challenger" in activity and activity ["challenger" ] == config ["hotspot" ]:
523
523
output_message .append (
524
- f"π ...Challenged Beaconer, { wit_text } `{ time } ` [π](< { txn_link } >) "
524
+ f"π ...Challenged Beaconer, { wit_text } `{ time } ` { txn_link } "
525
525
)
526
526
527
527
# beacon sent
@@ -540,7 +540,7 @@ def poc_receipts_v1(activity):
540
540
if valid_wit_count == len (witnesses ):
541
541
valid_wit_count = "All"
542
542
msg += f", { valid_wit_count } Valid"
543
- msg += f" `{ time } ` [π](< { txn_link } >) "
543
+ msg += f" `{ time } ` { txn_link } "
544
544
545
545
output_message .append (msg )
546
546
@@ -570,14 +570,14 @@ def poc_receipts_v1(activity):
570
570
witness_info += f", { vw } Valid"
571
571
572
572
output_message .append (
573
- f"{ valid_text } Witness{ witness_info } `{ time } ` [π](< { txn_link } >) "
573
+ f"{ valid_text } Witness{ witness_info } `{ time } ` { txn_link } "
574
574
)
575
575
576
576
# other
577
577
else :
578
578
ac_type = activity ["type" ]
579
579
output_message .append (
580
- f"π poc_receipts_v1 - { ac_type .upper ()} `{ time } ` [π](< { txn_link } >) "
580
+ f"π poc_receipts_v1 - { ac_type .upper ()} `{ time } ` { txn_link } "
581
581
)
582
582
583
583
@@ -603,28 +603,28 @@ def loop_activities():
603
603
# activity time
604
604
time = nice_date (activity ["time" ])
605
605
606
- txn_link = helium_explorer_tx + activity ["hash" ]
606
+ txn_link = f'[π](< { helium_explorer_tx } { activity ["hash" ]} >)'
607
607
608
608
# reward
609
609
if activity ["type" ] == "rewards_v2" :
610
610
for reward in activity ["rewards" ]:
611
611
rew = reward_short_name (reward ["type" ])
612
612
amt = nice_hnt_amount_or_seconds (reward ["amount" ])
613
613
output_message .append (
614
- f"πͺ Reward π₯{ amt } , { rew } `{ time } ` [π](< { txn_link } >) "
614
+ f"πͺ Reward π₯{ amt } , { rew } `{ time } ` { txn_link } "
615
615
)
616
616
# transferred data
617
617
elif activity ["type" ] == "state_channel_close_v1" :
618
618
for summary in activity ["state_channel" ]["summaries" ]:
619
619
packet_plural = "s" if summary ["num_packets" ] != 1 else ""
620
620
output_message .append (
621
- f"π Transferred { summary ['num_packets' ]} Packet{ packet_plural } ({ summary ['num_dcs' ]} DC) `{ time } ` [π](< { txn_link } >) "
621
+ f"π Transferred { summary ['num_packets' ]} Packet{ packet_plural } ({ summary ['num_dcs' ]} DC) `{ time } ` { txn_link } "
622
622
)
623
623
624
624
# ...challenge accepted
625
625
elif activity ["type" ] == "poc_request_v1" :
626
626
output_message .append (
627
- f"π² Created Challenge... `{ time } ` [π](< { txn_link } >) "
627
+ f"π² Created Challenge... `{ time } ` { txn_link } "
628
628
)
629
629
630
630
# beacon sent, valid witness, invalid witness
@@ -635,7 +635,7 @@ def loop_activities():
635
635
else :
636
636
other_type = activity ["type" ]
637
637
output_message .append (
638
- f"π { other_type .upper ()} `{ time } ` [π](< { txn_link } >) "
638
+ f"π { other_type .upper ()} `{ time } ` { txn_link } "
639
639
)
640
640
641
641
0 commit comments