AddressLookupTableProgram.freezeLookupTable constructor

AddressLookupTableProgram.freezeLookupTable({
  1. required SolAddress authority,
  2. required SolAddress lookupTable,
})

Creates an instruction to freeze a lookup table.

Implementation

factory AddressLookupTableProgram.freezeLookupTable({
  /// Account which is the current authority.
  required SolAddress authority,

  /// Address lookup table account to freeze.
  required SolAddress lookupTable,
}) {
  return AddressLookupTableProgram(
    layout: const AddressLookupFreezeLookupTableLayout(),
    keys: [
      lookupTable.toWritable(),
      authority.toSigner(),
    ],
    programId: AddressLookupTableProgramConst.programId,
  );
}