Documentation
¶
Index ¶
- Constants
- Variables
- func CloseLookupTable(params CloseLookupTableParams) types.Instruction
- func CreateLookupTable(params CreateLookupTableParams) types.Instruction
- func DeactivateLookupTable(params DeactivateLookupTableParams) types.Instruction
- func DeriveLookupTableAddress(authorityAddr common.PublicKey, recentBlockSlot uint64) (common.PublicKey, uint8)
- func ExtendLookupTable(params ExtendLookupTableParams) types.Instruction
- func FreezeLookupTable(params FreezeLookupTableParams) types.Instruction
- type AddressLookupTable
- type CloseLookupTableParams
- type CreateLookupTableParams
- type DeactivateLookupTableParams
- type ExtendLookupTableParams
- type FreezeLookupTableParams
- type Instruction
- type ProgramStateEnum
Constants ¶
View Source
const LOOKUP_TABLE_MAX_ADDRESSES uint = 256
View Source
const LOOKUP_TABLE_META_SIZE uint = 56
Variables ¶
Functions ¶
func CloseLookupTable ¶
func CloseLookupTable(params CloseLookupTableParams) types.Instruction
func CreateLookupTable ¶
func CreateLookupTable(params CreateLookupTableParams) types.Instruction
func DeactivateLookupTable ¶
func DeactivateLookupTable(params DeactivateLookupTableParams) types.Instruction
func ExtendLookupTable ¶
func ExtendLookupTable(params ExtendLookupTableParams) types.Instruction
func FreezeLookupTable ¶
func FreezeLookupTable(params FreezeLookupTableParams) types.Instruction
Types ¶
type AddressLookupTable ¶
type AddressLookupTable struct {
ProgramState ProgramStateEnum
DeactivationSlot uint64
LastExtendedSlot uint64
LastExtendedSlotStartIndex uint8
Authority *common.PublicKey
Addresses []common.PublicKey
// contains filtered or unexported fields
}
func DeserializeLookupTable ¶
func DeserializeLookupTable(data []byte, accountOwner common.PublicKey) (AddressLookupTable, error)
type CloseLookupTableParams ¶
type CreateLookupTableParams ¶
type ExtendLookupTableParams ¶
type FreezeLookupTableParams ¶
type Instruction ¶
type Instruction uint32
const ( InstructionCreateLookupTable Instruction = iota InstructionFreezeLookupTable InstructionExtendLookupTable InstructionDeactivateLookupTable InstructionCloseLookupTable )
type ProgramStateEnum ¶
type ProgramStateEnum uint32
const ( ProgramStateUninitialized ProgramStateEnum = iota ProgramStateLookupTable )
Click to show internal directories.
Click to hide internal directories.