MetaplexAuctionHouseProgram.deposit constructor

MetaplexAuctionHouseProgram.deposit({
  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 auctionHouse,
  8. required SolAddress auctionHouseFeeAccount,
  9. required MetaplexAuctionHouseDepositLayout layout,
  10. SolAddress tokenProgram = SPLTokenProgramConst.tokenProgramId,
  11. SolAddress systemProgram = SystemProgramConst.programId,
  12. SolAddress rent = SystemProgramConst.sysvarRentPubkey,
})

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

Implementation

factory MetaplexAuctionHouseProgram.deposit(
    {required SolAddress wallet,
    required SolAddress paymentAccount,
    required SolAddress transferAuthority,
    required SolAddress escrowPaymentAccount,
    required SolAddress treasuryMint,
    required SolAddress authority,
    required SolAddress auctionHouse,
    required SolAddress auctionHouseFeeAccount,
    required MetaplexAuctionHouseDepositLayout 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(),
    auctionHouse.toReadOnly(),
    auctionHouseFeeAccount.toWritable(),
    tokenProgram.toReadOnly(),
    systemProgram.toReadOnly(),
    rent.toReadOnly(),
  ], programId: MetaplexAuctionHouseProgramConst.programId, layout: layout);
}