Address Lookup Table program address.
Modulesolana-haskell-sdk-1.3.0.0GHC2021
Network.Solana.NativePrograms.AddressLookupTable
Client for the Address Lookup Table program. Instruction data is
bincode-encoded (u32 little-endian discriminant), like the System
Program; the ExtendLookupTable variant's address vector is bincode's
Vec<Pubkey> encoding (u64 little-endian count followed by the raw
32-byte keys).
- 2 types
- 11 values
- Packagesolana-haskell-sdk-1.3.0.0
- Exports13
- LanguageGHC2021
- LicenceApache-2.0
- SourceAddressLookupTable.hs
Address Lookup Table program instructions.
Instances5Eq, Show, Generic, Binary, Rep
Eq AddressLookupTableInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTableShow AddressLookupTableInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTableGeneric AddressLookupTableInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTableBinary AddressLookupTableInstructionDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTabletype Rep AddressLookupTableInstruction = D1 ('MetaDataDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTable"AddressLookupTableInstruction"
"Network.Solana.NativePrograms.AddressLookupTable"
"solana-haskell-sdk-1.3.0.0-JMJNnl7jmEh90dthY33ZzW"
'False) ((C1 ('MetaCons"CreateLookupTable"
'PrefixI 'True) (S1 ('MetaSel ('Just"recentSlot"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word64) :*: S1 ('MetaSel ('Just"bumpSeed"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Word8)) :+: C1 ('MetaCons"FreezeLookupTable"
'PrefixI 'False) U1) :+: (C1 ('MetaCons"ExtendLookupTable"
'PrefixI 'True) (S1 ('MetaSel ('Just"newAddresses"
) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [SolanaPublicKey])) :+: (C1 ('MetaCons"DeactivateLookupTable"
'PrefixI 'False) U1 :+: C1 ('MetaCons"CloseLookupTable"
'PrefixI 'False) U1)))
bincode decodes a Rust VecPubkey as a u64 little-endian count followed by that many raw 32-byte keys.
An address lookup table account's on-chain state: the fixed-size
LookupTableMeta fields followed by the raw stored addresses.
Instances2Eq, Show
Eq LookupTableStateDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTableShow LookupTableStateDefined in solana-haskell-sdk-1.3.0.0 · Network.Solana.NativePrograms.AddressLookupTable
Decodes an address lookup table account's data. The first 56 bytes are
the fixed LookupTableMeta region (u32 discriminant, two u64 slots, a u8
start index, a bincode Option<Pubkey> authority, and trailing padding
up to the 56-byte boundary); the remainder is the raw table of 32-byte
addresses.
Builds the AddressLookupTableAccount compileV0Message expects from the table's own address and its decoded on-chain state.
Derives the address of a lookup table for a given authority and recent
slot: the PDA of [authority, recentSlot as 8 little-endian bytes] under
the Address Lookup Table program.
Creates instruction to "Create a lookup table" and returns it together with the table's derived address. Receives the authority (not required to sign), the payer (which must sign) and the recent slot used to derive the table's address. Calls error if the lookup-table address cannot be derived (practically unreachable: requires every bump candidate to land on-curve). # Account references 0. `[WRITE]` Uninitialized lookup table account 1. `[]` Authority 2. `[WRITE, SIGNER]` Payer account 3. `[]` System program
Creates instruction to "Freeze a lookup table, making it immutable" Receives the lookup table account and its authority (which must sign). # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority
Creates instruction to "Extend a lookup table with new addresses" Receives the lookup table account, its authority (which must sign), an optional payer to fund the extension (the system program is always included alongside it) and the addresses to append. # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority 2. `[WRITE, SIGNER]` (optional) Payer account 3. `[]` (optional) System program
Creates instruction to "Deactivate a lookup table, making it unusable and eligible for closure once it is no longer referenced by any transaction" Receives the lookup table account and its authority (which must sign). # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority
Creates instruction to "Close a deactivated lookup table, reclaiming its lamports" Receives the lookup table account, its authority (which must sign) and the recipient of the reclaimed lamports. # Account references 0. `[WRITE]` Lookup table account 1. `[SIGNER]` Authority 2. `[WRITE]` Recipient account