refactor(events): recent_blockhash as base58 string (same as signature)

- EventMetadata.recent_blockhash: Option<Vec<u8>> -> Option<String>
- Add bs58 dependency; gRPC path: bs58::encode message bytes
- VersionedTransaction path: use Hash::to_string() (base58)
- parse_events_from_grpc_instruction/parse_events_from_instruction: accept Option<&str>

Made-with: Cursor
This commit is contained in:
Wood
2026-03-07 20:24:46 +08:00
parent 63af06edd3
commit 2da2b06e1f
3 changed files with 11 additions and 10 deletions
+1
View File
@@ -25,6 +25,7 @@ serde-big-array = "0.5.1"
futures = "0.3.32"
bincode = "1.3"
anyhow = "1.0.102"
bs58 = "0.5.1"
yellowstone-grpc-client = { version = "10.2.0" }
yellowstone-grpc-proto = { version = "10.1.1" }
tokio = { version = "1.49.0", features = ["full", "rt-multi-thread"]}