Function pallet_uniques::pallet::dispatchables::buy_item

source ·
pub fn buy_item<T: Config<I>, I: 'static>(
    collection: T::CollectionId,
    item: T::ItemId,
    bid_price: <<T as Config<I>>::Currency as Currency<<T as SystemConfig>::AccountId>>::Balance,
)
Expand description

Allows to buy an item if it’s up for sale.

Origin must be Signed and must not be the owner of the item.

  • collection: The collection of the item.
  • item: The item the sender wants to buy.
  • bid_price: The price the sender is willing to pay.

Emits ItemBought on success.

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::buy_item.