project screenshot 1
project screenshot 2
project screenshot 3
project screenshot 4
project screenshot 5

Deal

Deal is a p2p nft swapping platform that allows instant swaps between 2 parties.

Deal

Created At

ETHSanFrancisco 2022

Winner of

🆕 The Graph — 🥈 Best New Subgraph

Project Description

Deal is a p2p nft swapping platform that allows instant swaps between 2 parties. The deal initiator goes on Deal platform to initiate a swap. The platform shows the user all his nfts in the wallet to select as offer. Users can select multiple nfts and potentially add ERC20 tokens as they wish. Moving forward, users can also select their desired nfts and add a brief description of what they want before they open a swapping room. Lastly, we generate a page with sharing link available to copy. Users can copy the link and send it to social media platforms to gain traction and settle deals. People seeing the offer and willing to swap can go to that website. If the nfts they select and add match the qualification the initiator set, they can initiate the swap instantly.

How it's Made

Our web-based frontend is powered by ReactJS and Web3React for wallet connectors. NFT scanning on the blockchain is done via Dune api and Moralis was used to retrieve NFT metadata as well as upload user-generated content on our platform onto IPFS.

On the smart contract side of things, Hardhat was used for debugging, and Truffle was used for deployment onto Goerli, Polygon Mumbai, and Optimism Goerli, alongside our trusty friend OpenZeppelin packages. Event indexing is done via The Graph - we were going to completely replicate the smart contract state on our subgraph but a WASM compiler bug prevented us from doing that. Nevertheless, our subgraph still reasonably accelerated our frontend data fetching speeds. I am impressed with what we've built based on the time constraints given.

background image mobile

Join the mailing list

Get the latest news and updates