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
+3 -3
View File
@@ -118,7 +118,7 @@ impl PooledAccountPretty {
self.account.data = new_data;
}
self.account.program_received_time_us = get_high_perf_clock();
self.account.recv_us = get_high_perf_clock();
}
}
@@ -196,7 +196,7 @@ impl PooledBlockMetaPretty {
self.block_meta.slot = block_update.slot;
self.block_meta.block_hash = block_update.blockhash;
self.block_meta.block_time = block_time;
self.block_meta.program_received_time_us = get_high_perf_clock();
self.block_meta.recv_us = get_high_perf_clock();
}
}
@@ -282,7 +282,7 @@ impl PooledTransactionPretty {
self.transaction.signature =
Signature::try_from(tx.signature.as_slice()).expect("valid signature");
self.transaction.is_vote = tx.is_vote;
self.transaction.program_received_time_us = get_high_perf_clock();
self.transaction.recv_us = get_high_perf_clock();
self.transaction.grpc_tx = tx;
}
}