Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Marketplace

Index

Constructors

Properties

connection: Connection
program?: Program<AuctionHouseIDL>
wallet: Wallet

Methods

  • createBuyTransaction(userWallet: PublicKey, mint: PublicKey, listingPrice: number, seller: PublicKey, auctionHouseAddress: PublicKey): Promise<readonly [Transaction, PublicKey, Keypair[]]>
  • Parameters

    • userWallet: PublicKey
    • mint: PublicKey
    • listingPrice: number
    • seller: PublicKey
    • auctionHouseAddress: PublicKey

    Returns Promise<readonly [Transaction, PublicKey, Keypair[]]>

  • createCancelListingTransaction(userWallet: PublicKey, mint: PublicKey, currentListingPrice: number, auctionHouseAddress: PublicKey): Promise<readonly [Transaction, PublicKey]>
  • Parameters

    • userWallet: PublicKey
    • mint: PublicKey
    • currentListingPrice: number
    • auctionHouseAddress: PublicKey

    Returns Promise<readonly [Transaction, PublicKey]>

  • createCreateMarketplaceTransaction(auctionHouseAuthority: PublicKey, sellerFeeBasisPoints: number, treasuryMint?: PublicKey, feeWithdrawalDestination?: PublicKey, treasuryWithdrawalDestination?: PublicKey, requiresSignOff?: boolean, canChangeSalePrice?: boolean, feePayer?: PublicKey, storeFrontUrl?: string): Promise<Transaction>
  • Parameters

    • auctionHouseAuthority: PublicKey
    • sellerFeeBasisPoints: number
    • Optional treasuryMint: PublicKey
    • Optional feeWithdrawalDestination: PublicKey
    • Optional treasuryWithdrawalDestination: PublicKey
    • Optional requiresSignOff: boolean
    • Optional canChangeSalePrice: boolean
    • Optional feePayer: PublicKey
    • Optional storeFrontUrl: string

    Returns Promise<Transaction>

  • createListTransaction(userWallet: PublicKey, mint: PublicKey, listingPrice: number, auctionHouseAddress: PublicKey): Promise<readonly [Transaction, PublicKey]>
  • Parameters

    • userWallet: PublicKey
    • mint: PublicKey
    • listingPrice: number
    • auctionHouseAddress: PublicKey

    Returns Promise<readonly [Transaction, PublicKey]>

  • createTransferTransaction(userWallet: PublicKey, mint: PublicKey, recipient: PublicKey): Promise<Transaction>
  • Parameters

    • userWallet: PublicKey
    • mint: PublicKey
    • recipient: PublicKey

    Returns Promise<Transaction>

  • createUpdateListingTransaction(userWallet: PublicKey, mint: PublicKey, currentListingPrice: number, newListingPrice: number, auctionHouseAddress: PublicKey): Promise<readonly [Transaction, PublicKey]>
  • Parameters

    • userWallet: PublicKey
    • mint: PublicKey
    • currentListingPrice: number
    • newListingPrice: number
    • auctionHouseAddress: PublicKey

    Returns Promise<readonly [Transaction, PublicKey]>

  • createUpdateMarketplaceTransaction(authority: PublicKey, sellerFeeBasisPoints: number, newAuthority?: PublicKey, treasuryMint?: PublicKey, feeWithdrawalDestination?: PublicKey, treasuryWithdrawalDestination?: PublicKey, requiresSignOff?: boolean, canChangeSalePrice?: boolean, storeFrontUrl?: string, feePayer?: PublicKey): Promise<Transaction>
  • Parameters

    • authority: PublicKey
    • sellerFeeBasisPoints: number
    • Optional newAuthority: PublicKey
    • Optional treasuryMint: PublicKey
    • Optional feeWithdrawalDestination: PublicKey
    • Optional treasuryWithdrawalDestination: PublicKey
    • Optional requiresSignOff: boolean
    • Optional canChangeSalePrice: boolean
    • Optional storeFrontUrl: string
    • Optional feePayer: PublicKey

    Returns Promise<Transaction>

  • fetchAuctionHouse(auctionHouse: PublicKey): Promise<{ auctionHouseFeeAccount: PublicKey; auctionHouseTreasury: PublicKey; authority: PublicKey; bump: number; canChangeSalePrice: boolean; creator: PublicKey; feeAmount: number; feePayerBump: number; feeWithdrawalDestination: PublicKey; requiresSignOff: boolean; sellerFeeBasisPoints: number; treasuryAmount: number; treasuryBump: number; treasuryMint: PublicKey; treasuryWithdrawalDestination: PublicKey }>
  • Parameters

    • auctionHouse: PublicKey

    Returns Promise<{ auctionHouseFeeAccount: PublicKey; auctionHouseTreasury: PublicKey; authority: PublicKey; bump: number; canChangeSalePrice: boolean; creator: PublicKey; feeAmount: number; feePayerBump: number; feeWithdrawalDestination: PublicKey; requiresSignOff: boolean; sellerFeeBasisPoints: number; treasuryAmount: number; treasuryBump: number; treasuryMint: PublicKey; treasuryWithdrawalDestination: PublicKey }>

  • getAuctionHouseAddress(authority: PublicKey, treasuryMint?: PublicKey): Promise<[PublicKey, number]>
  • Parameters

    • authority: PublicKey
    • Optional treasuryMint: PublicKey

    Returns Promise<[PublicKey, number]>

  • getMarketplaceFeeBalance(auctionHouseAddress: PublicKey): Promise<number>
  • Parameters

    • auctionHouseAddress: PublicKey

    Returns Promise<number>

  • getStoreFrontConfiguration(auctionHouseAuthority: PublicKey, storeFrontOptions: StoreFrontOptions, treasuryMints: (undefined | PublicKey)[]): Promise<MarktplaceSettingsPayload>
  • Parameters

    • auctionHouseAuthority: PublicKey
    • storeFrontOptions: StoreFrontOptions
    • treasuryMints: (undefined | PublicKey)[]

    Returns Promise<MarktplaceSettingsPayload>

  • loadAuctionHouseProgram(): Promise<Program<AuctionHouseIDL>>
  • Loads Auction House program

    Returns Promise<Program<AuctionHouseIDL>>

  • setup(): Promise<void>
  • Returns Promise<void>

  • withdrawMarketplaceFees(amount: number, auctionHouseAddress: PublicKey, royaltyBasePoints: number, royaltyReceiver: PublicKey): Promise<Transaction>
  • Parameters

    • amount: number
    • auctionHouseAddress: PublicKey
    • royaltyBasePoints: number
    • royaltyReceiver: PublicKey

    Returns Promise<Transaction>

Generated using TypeDoc