Enum solana_address_lookup_table_program::instruction::ProgramInstruction [−][src]
pub enum ProgramInstruction {
CreateLookupTable {
recent_slot: Slot,
bump_seed: u8,
},
FreezeLookupTable,
ExtendLookupTable {
new_addresses: Vec<Pubkey>,
},
CloseLookupTable,
}
Variants
CreateLookupTable
Fields
recent_slot: Slot
A recent slot must be used in the derivation path for each initialized table. When closing table accounts, the initialization slot must no longer be “recent” to prevent address tables from being recreated with reordered or otherwise malicious addresses.
bump_seed: u8
Address tables are always initialized at program-derived
addresses using the funding address, recent blockhash, and
the user-passed bump_seed
.
Create an address lookup table
Account references
[WRITE]
Uninitialized address lookup table account[SIGNER]
Account used to derive and control the new address lookup table.[SIGNER, WRITE]
Account that will fund the new address lookup table.[]
System program for CPI.
FreezeLookupTable
Permanently freeze a address lookup table, making it immutable.
Account references
[WRITE]
Address lookup table account to freeze[SIGNER]
Current authority
ExtendLookupTable
Fields
new_addresses: Vec<Pubkey>
Extend an address lookup table with new addresses
Account references
[WRITE]
Address lookup table account to extend[SIGNER]
Current authority[SIGNER, WRITE]
Account that will fund the table reallocation[]
System program for CPI.
CloseLookupTable
Close an address lookup table account
Account references
[WRITE]
Address lookup table account to close[SIGNER]
Current authority[WRITE]
Recipient of closed account lamports
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ProgramInstruction
impl Send for ProgramInstruction
impl Sync for ProgramInstruction
impl Unpin for ProgramInstruction
impl UnwindSafe for ProgramInstruction
Blanket Implementations
pub default fn visit_for_abi(
&self,
digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
pub default fn visit_for_abi(
&self,
_digester: &mut AbiDigester
) -> Result<AbiDigester, DigestError>
Mutably borrows from an owned value. Read more