| 35 | } |
| 36 | |
| 37 | pub trait ProgramParser: Sync + Send { |
| 38 | fn key(&self) -> Pubkey; |
| 39 | fn key_match(&self, key: &Pubkey) -> bool; |
| 40 | fn handles_instructions(&self) -> bool; |
| 41 | fn handles_account_updates(&self) -> bool; |
| 42 | fn handle_account( |
| 43 | &self, |
| 44 | _account_data: &[u8], |
| 45 | ) -> Result<Box<dyn ParseResult>, BlockbusterError>; |
| 46 | fn handle_instruction( |
| 47 | &self, |
| 48 | _bundle: &InstructionBundle, |
| 49 | ) -> Result<Box<dyn ParseResult>, BlockbusterError> { |
| 50 | Ok(Box::new(NotUsed::new())) |
| 51 | } |
| 52 | } |
nothing calls this directly
no outgoing calls
no test coverage detected