refactor: enhance account event parser with more precise event classification

- Rename CommonAccountEvent to TokenAccountEvent for better semantic clarity
- Rename AccountNonce to NonceAccount for consistent naming convention
- Add MintInfoEvent type to support SPL Token Mint account parsing
- Enhance parse_token_account_event to automatically detect and parse Mint accounts
- Update all example code to use new event types and structures
- Improve event type semantics for better developer experience
This commit is contained in:
ysq
2025-09-09 23:42:35 +08:00
parent 528003a688
commit 0c07c4d9ee
10 changed files with 152 additions and 26 deletions
+2 -2
View File
@@ -46,14 +46,14 @@ Add the dependency to your `Cargo.toml`:
```toml
# Add to your Cargo.toml
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.2" }
solana-streamer-sdk = { path = "./solana-streamer", version = "0.4.3" }
```
### Use crates.io
```toml
# Add to your Cargo.toml
solana-streamer-sdk = "0.4.2"
solana-streamer-sdk = "0.4.3"
```
## Configuration System