addresslookuptable

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL