-
public interface AccountLookupEntry
Interface representing an account lookup entry which stores the read only and read write indexes of addresses in an address lookup table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AccountLookupEntry.LookupEntry
Interface representing an address lookup entry, which is the address and it's index within an address lookup table.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addReadOnlyEntry(PublicKey address, int readOnlyIndex)
Adds a read-only entry for the given address.void
addReadWriteEntry(PublicKey address, int readWriteIndex)
Adds a read-write entry for the given address.java.util.List<PublicKey>
getAddresses()
Returns a list of all public keys in the address lookup table.PublicKey
getLookupTableAddress()
Returns the public key of the lookup table address.java.util.List<AccountLookupEntry.LookupEntry>
getReadOnlyLookupEntrys()
Returns a list of read-only lookup entrys.java.util.List<AccountLookupEntry.LookupEntry>
getReadWriteLookupEntrys()
Returns a list of read-write lookup entrys.
-
-
-
Method Detail
-
addReadOnlyEntry
void addReadOnlyEntry(PublicKey address, int readOnlyIndex)
Adds a read-only entry for the given address.- Parameters:
address
- thePublicKey
of the addressreadOnlyIndex
- the index of the read-only address
-
addReadWriteEntry
void addReadWriteEntry(PublicKey address, int readWriteIndex)
Adds a read-write entry for the given address.- Parameters:
address
- thePublicKey
of the addressreadWriteIndex
- the index of the read-write address
-
getAddresses
java.util.List<PublicKey> getAddresses()
Returns a list of all public keys in the address lookup table.- Returns:
- a list of
PublicKey
objects representing all addresses
-
getLookupTableAddress
PublicKey getLookupTableAddress()
Returns the public key of the lookup table address.- Returns:
- the
PublicKey
of the lookup table address
-
getReadWriteLookupEntrys
java.util.List<AccountLookupEntry.LookupEntry> getReadWriteLookupEntrys()
Returns a list of read-write lookup entrys.- Returns:
- a list of
AccountLookupEntry.LookupEntry
objects representing read-write lookup entrys
-
getReadOnlyLookupEntrys
java.util.List<AccountLookupEntry.LookupEntry> getReadOnlyLookupEntrys()
Returns a list of read-only lookup entrys.- Returns:
- a list of
AccountLookupEntry.LookupEntry
objects representing read-only lookup entrys
-
-