Methods used for trading ERC20 and NFT between peers. This includes creating trades and accepting trades in addition to configuring the visibility of the trades.
Creating Offers
When creating an offer, the user has the option to either post it on the PintSwap public orderbook for every pint user connected to the network OR privately share it with other individuals.
First, start by creating your first offer with the function below:
Broadcast Offer
awaitpintswap.broadcastOffer(offer)
Inserts an order into a pint user's peer data instance, pintswap.offers map, such that it can be traded against, using the structure below: