pub trait TransactionProcessingCallback {
// Required methods
fn account_matches_owners(
&self,
account: &Pubkey,
owners: &[Pubkey],
) -> Option<usize>;
fn get_account_shared_data(
&self,
pubkey: &Pubkey,
) -> Option<AccountSharedData>;
// Provided methods
fn add_builtin_account(&self, _name: &str, _program_id: &Pubkey) { ... }
fn inspect_account(
&self,
_address: &Pubkey,
_account_state: AccountState<'_>,
_is_writable: bool,
) { ... }
}
Expand description
Runtime callbacks for transaction processing.