Giter Club home page Giter Club logo

mbc-wrapper's Introduction

MyBlockchainCorner ERC-721 wrapper

This wrapper allow you to wrap tiles of the archeological NFT https://myblockchaincorner.web.app/ to trade it on openSea

Wrapping process

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.

alt text

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.

Set HTML

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.

alt text

Unwrapping process.

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)

Technical specs

Battle tested

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.

alt text

On chain pictures

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.

alt text

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.