Function mpl_auction_house::bid::bid_logic
source · [−]pub fn bid_logic<'info>(
wallet: Signer<'info>,
payment_account: UncheckedAccount<'info>,
transfer_authority: UncheckedAccount<'info>,
treasury_mint: Account<'info, Mint>,
token_account: Account<'info, TokenAccount>,
metadata: UncheckedAccount<'info>,
escrow_payment_account: UncheckedAccount<'info>,
authority: UncheckedAccount<'info>,
auction_house: Account<'info, AuctionHouse>,
auction_house_fee_account: UncheckedAccount<'info>,
buyer_trade_state: UncheckedAccount<'info>,
token_program: Program<'info, Token>,
system_program: Program<'info, System>,
rent: Sysvar<'info, Rent>,
trade_state_bump: u8,
escrow_payment_bump: u8,
buyer_price: u64,
token_size: u64,
public: bool,
escrow_canonical_bump: u8,
trade_state_canonical_bump: u8
) -> Result<()>
Expand description
Handles the bid logic for both private and public bids.