Documentation ¶
Index ¶
- Constants
- type AddressLookupTableState
- func DecodeAddressLookupTableState(data []byte) (*AddressLookupTableState, error)
- func GetAddressLookupTable(ctx context.Context, rpcClient *rpc.Client, address solana.PublicKey) (*AddressLookupTableState, error)
- func GetAddressLookupTableStateWithOpts(ctx context.Context, rpcClient *rpc.Client, address solana.PublicKey, ...) (*AddressLookupTableState, error)
- type KeyedAddressLookupTable
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 DecodeAddressLookupTableState ¶
func DecodeAddressLookupTableState(data []byte) (*AddressLookupTableState, error)
DecodeAddressLookupTableState decodes the given account bytes into a AddressLookupTableState.
func GetAddressLookupTable ¶
func GetAddressLookupTableStateWithOpts ¶
func GetAddressLookupTableStateWithOpts( ctx context.Context, rpcClient *rpc.Client, address solana.PublicKey, opts *rpc.GetAccountInfoOpts, ) (*AddressLookupTableState, error)
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.