Documentation
¶
Index ¶
Constants ¶
View Source
const ( LOOKUP_TABLE_META_SIZE = 56 LOOKUP_TABLE_MAX_ADDRESSES = 256 )
The serialized size of lookup table metadata.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressLookupTableState ¶
type AddressLookupTableState struct {
TypeIndex uint32
DeactivationSlot uint64
LastExtendedSlot uint64
LastExtendedSlotStartIndex uint8
Authority *solana.PublicKey
Addresses solana.PublicKeySlice
}
func (AddressLookupTableState) IsActive ¶
func (a AddressLookupTableState) IsActive() bool
func (AddressLookupTableState) MarshalWithEncoder ¶
func (a AddressLookupTableState) MarshalWithEncoder(encoder *bin.Encoder) error
func (*AddressLookupTableState) UnmarshalWithDecoder ¶
func (a *AddressLookupTableState) UnmarshalWithDecoder(decoder *bin.Decoder) (err error)
type KeyedAddressLookupTable ¶
type KeyedAddressLookupTable struct {
Key solana.PublicKey
State AddressLookupTableState
}
func NewKeyedAddressLookupTable ¶
func NewKeyedAddressLookupTable(key solana.PublicKey) *KeyedAddressLookupTable
func (KeyedAddressLookupTable) MarshalWithEncoder ¶
func (a KeyedAddressLookupTable) MarshalWithEncoder(encoder *bin.Encoder) error
func (*KeyedAddressLookupTable) UnmarshalWithDecoder ¶
func (a *KeyedAddressLookupTable) UnmarshalWithDecoder(decoder *bin.Decoder) error
Click to show internal directories.
Click to hide internal directories.