findListingConfigAddress static method
ProgramDerivedAddress
findListingConfigAddress({
- required SolAddress wallet,
- required SolAddress auctionHouse,
- required SolAddress tokenAccount,
- required SolAddress treasuryMint,
- required SolAddress tokenMint,
- required BigInt tokenSize,
Implementation
static ProgramDerivedAddress findListingConfigAddress({
required SolAddress wallet,
required SolAddress auctionHouse,
required SolAddress tokenAccount,
required SolAddress treasuryMint,
required SolAddress tokenMint,
required BigInt tokenSize,
}) {
return ProgramDerivedAddress.find(seedBytes: [
"listing_config".codeUnits,
wallet.toBytes(),
auctionHouse.toBytes(),
tokenAccount.toBytes(),
treasuryMint.toBytes(),
tokenMint.toBytes(),
LayoutConst.u64().serialize(tokenSize)
], programId: MetaplexAuctioneerProgramConst.programId);
}