From 6b8d58d27092bfc06b83034b7d97090c15cc6fa3 Mon Sep 17 00:00:00 2001 From: Chris Gianelloni Date: Wed, 27 Dec 2023 10:00:01 -0500 Subject: [PATCH] feat: seal's vending machine stake address Signed-off-by: Chris Gianelloni --- main.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 59157c8..d3234f0 100644 --- a/main.go +++ b/main.go @@ -283,6 +283,16 @@ func GetTransactions(oConn *ouroboros.Connection) string { icon = "🦸" } } + // Check if output includes known stake addresses + for _, output := range tx.Outputs() { + if output.Address().StakeAddress() != nil { + switch output.Address().StakeAddress().String() { + // Seal's Vending Machine + case "stake1u8ffzkegp8h48mare3g3ntf3xmjce3jqptsdtj38ee3yh3c9t4uum": + icon = "🦭" + } + } + } spaces := "10" if icon != "" { @@ -337,10 +347,11 @@ func main() { "🐱 Minswap", ), // Text formatting the wrong way for the win - fmt.Sprintf("%18s %16s %13s %17s", + fmt.Sprintf("%18s %16s %13s %13s %16s", "πŸ…ΎοΈ Optim", "🌈 Spectrum", "🍨 Sundae", + "🦭 SealVM", "🦸 Wingriders", ), ),