MCPcopy Create free account
hub / github.com/WilfredAlmeida/LightDAS / ProgramParser

Interface ProgramParser

blockbuster/src/program_handler.rs:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37pub 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}

Callers

nothing calls this directly

Implementers 7

parsed_programs.rsblockbuster/src/parsed_programs.rs
mod.rsblockbuster/src/programs/token_account
mod.rsblockbuster/src/programs/mpl_core_prog
mod.rsblockbuster/src/programs/token_extensi
mod.rsblockbuster/src/programs/bubblegum/mod
mod.rsblockbuster/src/programs/token_metadat
mod.rsblockbuster/src/programs/account_closu

Calls

no outgoing calls

Tested by

no test coverage detected