MetaplexAuctionHouseProgram.deposit constructor
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,
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);
}