TransactionProcessingCallback

Trait TransactionProcessingCallback 

Source
pub trait TransactionProcessingCallback: InvokeContextCallback {
    // 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,
    ) { ... }
    fn get_current_epoch_vote_account_stake(&self, vote_address: &Pubkey) -> u64 { ... }
}
Expand description

Runtime callbacks for transaction processing.

Required Methods§

Provided Methods§

Source

fn add_builtin_account(&self, _name: &str, _program_id: &Pubkey)

Source

fn inspect_account( &self, _address: &Pubkey, _account_state: AccountState<'_>, _is_writable: bool, )

Source

fn get_current_epoch_vote_account_stake(&self, vote_address: &Pubkey) -> u64

👎Deprecated since 2.3.0: Use get_epoch_stake_for_vote_account on the InvokeContextCallback trait instead

Implementors§