MetaplexAuctioneerProgram.deposit constructor

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

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

Implementation

factory MetaplexAuctioneerProgram.deposit(
    {
    /// Auction House Program
    required SolAddress auctionHouseProgram,

    /// User wallet account.
    required SolAddress wallet,

    /// User SOL or SPL account to transfer funds from.
    required SolAddress paymentAccount,

    /// SPL token account transfer authority.
    required SolAddress transferAuthority,

    /// Buyer escrow payment account PDA.
    required SolAddress escrowPaymentAccount,

    /// Auction House instance treasury mint account.
    required SolAddress treasuryMint,

    /// Auction House instance authority account.
    required SolAddress authority,

    /// Auction House instance PDA account.
    required SolAddress auctionHouse,

    /// Auction House instance fee account.
    required SolAddress auctionHouseFeeAccount,

    /// The auctioneer program PDA running this auction.
    required SolAddress auctioneerAuthority,

    /// The auctioneer PDA owned by Auction House storing scopes.
    required SolAddress ahAuctioneerPda,
    required MetaplexAuctioneerDepositLayout layout,
    SolAddress tokenProgramId = SPLTokenProgramConst.tokenProgramId,
    SolAddress systemProgram = SystemProgramConst.programId,
    SolAddress rent = SystemProgramConst.sysvarRentPubkey}) {
  return MetaplexAuctioneerProgram(keys: [
    auctionHouseProgram.toReadOnly(),
    wallet.toSigner(),
    paymentAccount.toWritable(),
    transferAuthority.toReadOnly(),
    escrowPaymentAccount.toWritable(),
    treasuryMint.toReadOnly(),
    authority.toReadOnly(),
    auctionHouse.toReadOnly(),
    auctionHouseFeeAccount.toWritable(),
    auctioneerAuthority.toReadOnly(),
    ahAuctioneerPda.toReadOnly(),
    tokenProgramId.toReadOnly(),
    systemProgram.toReadOnly(),
    rent.toReadOnly()
  ], programId: MetaplexAuctioneerProgramConst.programId, layout: layout);
}