refactor: simplify event API method names for better ergonomics

- Rename verbose method names to shorter, clearer alternatives
- program_received_time_us() → recv_us()
- program_handle_time_consuming_us() → handle_us()
- instruction_outer_index() → outer_index()
- instruction_inner_index() → inner_index()
- Update all implementations across event parsers and processors

Improves developer experience while maintaining semantic clarity.
This commit is contained in:
ysq
2025-09-03 15:49:50 +08:00
parent 7601eb370c
commit 1060b04b12
16 changed files with 122 additions and 122 deletions
@@ -18,7 +18,7 @@ impl BlockMetaEvent {
slot: u64,
block_hash: String,
block_time_ms: i64,
program_received_time_us: i64,
recv_us: i64,
) -> Self {
let metadata = EventMetadata::new(
Signature::default(),
@@ -30,7 +30,7 @@ impl BlockMetaEvent {
solana_sdk::pubkey::Pubkey::default(),
0,
None,
program_received_time_us,
recv_us,
None,
);
Self { metadata, slot, block_hash }