pub trait TransactionProcessingCallback: InvokeContextCallback {
// Required method
fn get_account_shared_data(
&self,
pubkey: &Pubkey,
) -> Option<(AccountSharedData, Slot)>;
// 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.