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