refactor: remove bs58 dependency and use solana_sdk program ID constants

- Remove standalone bs58 dependency and rely on the solana_sdk re-export
- Switch system and token program IDs to the idiomatic spl_token / solana_sdk constants
- Use pubkey! and LazyLock for cleaner program ID initialization
- Alias solana_entry::Entry as SolanaEntry to avoid a naming conflict with gRPC types
- Remove unused FromStr imports and some redundant logic
This commit is contained in:
Estereg
2026-03-08 16:47:09 +00:00
parent 8469b7eec5
commit dad231a26b
4 changed files with 8 additions and 11 deletions
@@ -85,7 +85,7 @@ impl EventParser {
let recent_blockhash = if message.recent_blockhash.is_empty() {
None
} else {
Some(bs58::encode(&message.recent_blockhash).into_string())
Some(solana_sdk::bs58::encode(&message.recent_blockhash).into_string())
};
Self::parse_instruction_events_from_grpc_transaction(
protocols,