mirror of
https://github.com/0xfnzero/solana-streamer.git
synced 2026-08-15 09:58:05 +00:00
add block_time and block_time_ms
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use prost_types::Timestamp;
|
||||
use solana_sdk::{instruction::CompiledInstruction, pubkey::Pubkey};
|
||||
use solana_transaction_status::UiCompiledInstruction;
|
||||
|
||||
@@ -224,9 +225,10 @@ impl EventParser for PumpFunEventParser {
|
||||
inner_instruction: &UiCompiledInstruction,
|
||||
signature: &str,
|
||||
slot: u64,
|
||||
block_time: Option<Timestamp>,
|
||||
) -> Vec<Box<dyn UnifiedEvent>> {
|
||||
self.inner
|
||||
.parse_events_from_inner_instruction(inner_instruction, signature, slot)
|
||||
.parse_events_from_inner_instruction(inner_instruction, signature, slot, block_time)
|
||||
}
|
||||
|
||||
fn parse_events_from_instruction(
|
||||
@@ -235,9 +237,10 @@ impl EventParser for PumpFunEventParser {
|
||||
accounts: &[Pubkey],
|
||||
signature: &str,
|
||||
slot: u64,
|
||||
block_time: Option<Timestamp>,
|
||||
) -> Vec<Box<dyn UnifiedEvent>> {
|
||||
self.inner
|
||||
.parse_events_from_instruction(instruction, accounts, signature, slot)
|
||||
.parse_events_from_instruction(instruction, accounts, signature, slot, block_time)
|
||||
}
|
||||
|
||||
fn should_handle(&self, program_id: &Pubkey) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user