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§
Sourcefn alt_with_config(
&self,
address: &Pubkey,
config: RpcAccountInfoConfig,
) -> impl Future<Output = Result<WithSlot<Option<AddressLookupTableAccount>>>>
fn alt_with_config( &self, address: &Pubkey, config: RpcAccountInfoConfig, ) -> impl Future<Output = Result<WithSlot<Option<AddressLookupTableAccount>>>>
Fetch address lookup table with the given config.
Sourcefn create_alt(
&self,
) -> impl Future<Output = Result<(TransactionBuilder<'_, C>, Pubkey)>>
fn create_alt( &self, ) -> impl Future<Output = Result<(TransactionBuilder<'_, C>, Pubkey)>>
Create a TransactionBuilder
to create address lookup table.
Sourcefn extend_alt(
&self,
alt: &Pubkey,
new_addresses: Vec<Pubkey>,
chunk_size: Option<usize>,
) -> Result<BundleBuilder<'_, C>>
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.
Sourcefn deactivate_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>
fn deactivate_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>
Create a TransactionBuilder
to deactivate the given address lookup table
Sourcefn close_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>
fn close_alt(&self, alt: &Pubkey) -> TransactionBuilder<'_, C>
Create a TransactionBuilder
to close the given address lookup table
Provided Methods§
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.