-
public interface AccountLookupEntryInterface 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 interfaceAccountLookupEntry.LookupEntryInterface 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 voidaddReadOnlyEntry(PublicKey address, int readOnlyIndex)Adds a read-only entry for the given address.voidaddReadWriteEntry(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.PublicKeygetLookupTableAddress()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- thePublicKeyof 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- thePublicKeyof 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
PublicKeyobjects representing all addresses
-
getLookupTableAddress
PublicKey getLookupTableAddress()
Returns the public key of the lookup table address.- Returns:
- the
PublicKeyof the lookup table address
-
getReadWriteLookupEntrys
java.util.List<AccountLookupEntry.LookupEntry> getReadWriteLookupEntrys()
Returns a list of read-write lookup entrys.- Returns:
- a list of
AccountLookupEntry.LookupEntryobjects 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.LookupEntryobjects representing read-only lookup entrys
-
-