Skip to content

Commit

Permalink
Merge pull request #48 from blinklabs-io/feat/stake-addresses
Browse files Browse the repository at this point in the history
feat: seal's vending machine stake address
  • Loading branch information
wolf31o2 authored Dec 27, 2023
2 parents e22c887 + 6b8d58d commit c5c41c8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 != "" {
Expand Down Expand Up @@ -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",
),
),
Expand Down

0 comments on commit c5c41c8

Please sign in to comment.