MetaplexHydraProgram.transferShares constructor

MetaplexHydraProgram.transferShares({
  1. required SolAddress authority,
  2. required SolAddress fromMember,
  3. required SolAddress toMember,
  4. required SolAddress fanout,
  5. required SolAddress fromMembershipAccount,
  6. required SolAddress toMembershipAccount,
  7. required MetaplexHydraTransferSharesLayout layout,
})

Implementation

factory MetaplexHydraProgram.transferShares({
  required SolAddress authority,
  required SolAddress fromMember,
  required SolAddress toMember,
  required SolAddress fanout,
  required SolAddress fromMembershipAccount,
  required SolAddress toMembershipAccount,
  required MetaplexHydraTransferSharesLayout layout,
}) {
  return MetaplexHydraProgram(keys: [
    authority.toSigner(),
    fromMember.toReadOnly(),
    toMember.toReadOnly(),
    fanout.toWritable(),
    fromMembershipAccount.toWritable(),
    toMembershipAccount.toWritable(),
  ], programId: MetaplexHydraProgramConst.programId, layout: layout);
}