MetaplexAuctionHouseProgram.auctioneerDeposit constructor

MetaplexAuctionHouseProgram.auctioneerDeposit({
  1. required SolAddress wallet,
  2. required SolAddress paymentAccount,
  3. required SolAddress transferAuthority,
  4. required SolAddress escrowPaymentAccount,
  5. required SolAddress treasuryMint,
  6. required SolAddress authority,
  7. required SolAddress auctioneerAuthority,
  8. required SolAddress auctionHouse,
  9. required SolAddress auctionHouseFeeAccount,
  10. required SolAddress ahAuctioneerPda,
  11. required MetaplexAuctionHouseAuctioneerDepositLayout layout,
  12. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  13. SolAddress systemProgram = SystemProgramConst.programId,
  14. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

Deposit amount into the escrow payment account for your specific wallet.

Implementation

factory MetaplexAuctionHouseProgram.auctioneerDeposit(
    {required SolAddress wallet,
    required SolAddress paymentAccount,
    required SolAddress transferAuthority,
    required SolAddress escrowPaymentAccount,
    required SolAddress treasuryMint,
    required SolAddress authority,
    required SolAddress auctioneerAuthority,
    required SolAddress auctionHouse,
    required SolAddress auctionHouseFeeAccount,
    required SolAddress ahAuctioneerPda,
    required MetaplexAuctionHouseAuctioneerDepositLayout layout,
    SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
  return MetaplexAuctionHouseProgram(keys: [
    wallet.toSigner(),
    paymentAccount.toWritable(),
    transferAuthority.toReadOnly(),
    escrowPaymentAccount.toWritable(),
    treasuryMint.toReadOnly(),
    authority.toReadOnly(),
    auctioneerAuthority.toSigner(),
    auctionHouse.toReadOnly(),
    auctionHouseFeeAccount.toWritable(),
    ahAuctioneerPda.toReadOnly(),
    tokenProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}