Name | Arguments | Accounts |
---|---|---|
withdrawFromFee | amount:`u64` | authority isSigner feeWithdrawalDestination isMut auctionHouseFeeAccount isMut auctionHouse isMut systemProgram |
withdrawFromTreasury | amount:`u64` | treasuryMint authority isSigner treasuryWithdrawalDestination isMut auctionHouseTreasury isMut auctionHouse isMut tokenProgram systemProgram |
updateAuctionHouse | sellerFeeBasisPoints:`Option<u16>` requiresSignOff:`Option<bool>` canChangeSalePrice:`Option<bool>` | treasuryMint payer isSigner authority isSigner newAuthority feeWithdrawalDestination isMut treasuryWithdrawalDestination isMut treasuryWithdrawalDestinationOwner auctionHouse isMut tokenProgram systemProgram ataProgram rent |
createAuctionHouse | bump:`u8` feePayerBump:`u8` treasuryBump:`u8` sellerFeeBasisPoints:`u16` requiresSignOff:`bool` canChangeSalePrice:`bool` | treasuryMint payer isSigner authority feeWithdrawalDestination isMut treasuryWithdrawalDestination isMut treasuryWithdrawalDestinationOwner auctionHouse isMut auctionHouseFeeAccount isMut auctionHouseTreasury isMut tokenProgram systemProgram ataProgram rent |
withdraw | escrowPaymentBump:`u8` amount:`u64` | wallet receiptAccount isMut escrowPaymentAccount isMut treasuryMint authority auctionHouse auctionHouseFeeAccount isMut tokenProgram systemProgram ataProgram rent |
deposit | escrowPaymentBump:`u8` amount:`u64` | wallet isSigner paymentAccount isMut transferAuthority escrowPaymentAccount isMut treasuryMint authority auctionHouse auctionHouseFeeAccount isMut tokenProgram systemProgram rent |
cancel | buyerPrice:`u64` tokenSize:`u64` | wallet isMut tokenAccount isMut tokenMint authority auctionHouse auctionHouseFeeAccount isMut tradeState isMut tokenProgram |
executeSale | escrowPaymentBump:`u8` freeTradeStateBump:`u8` programAsSignerBump:`u8` buyerPrice:`u64` tokenSize:`u64` | buyer isMut seller isMut tokenAccount isMut tokenMint metadata treasuryMint escrowPaymentAccount isMut sellerPaymentReceiptAccount isMut buyerReceiptTokenAccount isMut authority auctionHouse auctionHouseFeeAccount isMut auctionHouseTreasury isMut buyerTradeState isMut sellerTradeState isMut freeTradeState isMut tokenProgram systemProgram ataProgram programAsSigner rent |
sell | tradeStateBump:`u8` freeTradeStateBump:`u8` programAsSignerBump:`u8` buyerPrice:`u64` tokenSize:`u64` | wallet tokenAccount isMut metadata authority auctionHouse auctionHouseFeeAccount isMut sellerTradeState isMut freeSellerTradeState isMut tokenProgram systemProgram programAsSigner rent |
buy | tradeStateBump:`u8` escrowPaymentBump:`u8` buyerPrice:`u64` tokenSize:`u64` | wallet isSigner paymentAccount isMut transferAuthority treasuryMint tokenAccount metadata escrowPaymentAccount isMut authority auctionHouse auctionHouseFeeAccount isMut buyerTradeState isMut tokenProgram systemProgram rent |