Trait AddressLookupTableOps

Source
pub trait AddressLookupTableOps<C> {
    // Required methods
    fn alt_with_config(
        &self,
        address: &Pubkey,
        config: RpcAccountInfoConfig,
    ) -> impl Future<Output = Result<WithSlot<Option<AddressLookupTableAccount>>>>;
    fn create_alt(
        &self,
    ) -> impl Future<Output = Result<(TransactionBuilder<'_, C>, Pubkey)>>;
    fn extend_alt(
        &self,
        alt: &Pubkey,
        new_addresses: Vec<Pubkey>,
        chunk_size: Option<usize>,
    ) -> Result<BundleBuilder<'_, C>>;
    fn deactivate_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>;
    fn close_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>;

    // Provided method
    fn alt(
        &self,
        address: &Pubkey,
    ) -> impl Future<Output = Result<Option<AddressLookupTableAccount>>> { ... }
}
Expand description

Address Lookup Table operations.

Required Methods§

Source

fn alt_with_config( &self, address: &Pubkey, config: RpcAccountInfoConfig, ) -> impl Future<Output = Result<WithSlot<Option<AddressLookupTableAccount>>>>

Fetch address lookup table with the given config.

Source

fn create_alt( &self, ) -> impl Future<Output = Result<(TransactionBuilder<'_, C>, Pubkey)>>

Create a TransactionBuilder to create address lookup table.

Source

fn extend_alt( &self, alt: &Pubkey, new_addresses: Vec<Pubkey>, chunk_size: Option<usize>, ) -> Result<BundleBuilder<'_, C>>

Create a BundleBuilder to extend the given address lookup table with new addresses.

Source

fn deactivate_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>

Create a TransactionBuilder to deactivate the given address lookup table

Source

fn close_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>

Create a TransactionBuilder to close the given address lookup table

Provided Methods§

Source

fn alt( &self, address: &Pubkey, ) -> impl Future<Output = Result<Option<AddressLookupTableAccount>>>

Fetch address lookup table.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<C: Deref<Target = impl Signer> + Clone> AddressLookupTableOps<C> for Client<C>