This wrapper allow you to wrap tiles of the archeological NFT https://myblockchaincorner.web.app/ to trade it on openSea
First you must set your tile for sale using the original MBC website, keep in mind that original website use wei to set the price, use this tool to check how much wei is your price in eth
Then you use the new contract to wrap your tile.
This transaction also allow you to set the HTML of your tile.
Keep in mind than you must set a high price to your tile before wrapping it because some malicious user could be tempted to snipe it.
Since original contract take a percentage of 5% of all sales, you will lose 5% of the price you set during wrapping.
But once wrapped, you can trade your tile on openSea for 0% fees.
Once wrapped, you can set the HTML of your tile using the wrapper ERC-721 contract, the HTML will be updated on the original contract.
If you want to unwrap your tile, you call unwrap function with a price, then you have to buy it yoursel on the original contract.
Once you bought it yourself, you must call the wrapper to get back the ETH you spent to buy your tile.
The same caveats for the wrapping process apply here (sniping issue and 5% lose)
The wrapper contract has been tested on every case and isn't vulnerable to attacks.
Tests are done on a fork of mainnet with the real state of original MBC contract.
To preserve the on-chain spirit of the project, no external link (not even IPFS) is used to display properties and image of the token on website like openSea.
All data is generated on chain with a SVG picture showing which page and coordinate is the tile.