MetaplexTokenEntanglerProgram.updateEntangledPair constructor

MetaplexTokenEntanglerProgram.updateEntangledPair({
  1. required SolAddress authority,
  2. required SolAddress newAuthority,
  3. required SolAddress entangledPair,
  4. required MetaplexTokenEntanglerUpdateEntangledPairLayout layout,
})

Implementation

factory MetaplexTokenEntanglerProgram.updateEntangledPair(
    {required SolAddress authority,
    required SolAddress newAuthority,
    required SolAddress entangledPair,
    required MetaplexTokenEntanglerUpdateEntangledPairLayout layout}) {
  return MetaplexTokenEntanglerProgram(keys: [
    authority.toSigner(),
    newAuthority.toReadOnly(),
    entangledPair.toWritable(),
  ], programId: MetaplexTokenEntanglerProgramConst.programId, layout: layout);
}