Allows the user to view an item before buying it. At this point, none of the marketplace items information are stored in exchanges map of the smart contract.
The user can buy the selected item.
If the user selects Begin escrow, the app will connect with his Temple wallet allowing him to put the needed amount into escrow.
Retrieves the commission percentage from the exchange_types map in order to compute the displayed fees amount.
Entry point calls
If the user selects Buy, the entry point addNewExchange is called with the following parameters:
the buyer address retrieved from his Temple wallet
the name of the item
the id of the item
the price of the item
the seller address