Skip to content

santipu03/ERC721-Multi-Linkable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 

Repository files navigation

ERC721-Multi-Linkable (E7ML)

A new way of Linking 2.0

Description

This repo is a Dapp that shows the functionality of the the ERC721MultiLinkable (E7ML) standard , a modification of the original ERC721Linkable (E7L) standard developed by RacksLabs.

Technical Specs

  • The E7ML token can be linked to any ERC721 token that exists by calling the linkToken function
  • The E7ML token can't be transferred if it's not linked
  • The E7ML token can't be unlinked
  • If the parent token of the E7ML is transferred, calling the function syncToken on the E7ML it'll transfer the E7ML to the owner of the parent token
  • Callign tokenInfo on the E7ML will return the struct MultiLinkable of that token

  • struct MultiLinkableToken {
      bool linked;
      address parentContract;
      uint256 parentTokenId;
    }

Demo

To test and show the use of the ERC-721 MultiLinkable standard I've created a frontend so that any user can easily interact with the test E7ML token I've deployed.

Learning by doing

The steps to follow in the demo are the following (The italic is indicating in which tab of the page you can do the step):

  1. Receive an NFT that represents a Certification for a web3 course (Airdrops tab)
  2. Mint the E7ML token by burning the Certification NFT (Mint E7ML tab)
  3. Receive TOKEN1, a test ERC721 token that we'll use to link the E7ML (Airdrops tab)
  4. Link the E7ML with the TOKEN1 (Link E7ML tab)
  5. Check the E7ML tokens you have and see if they're linked or not (Your Wallet tab)

Run it locally

Right now I'm having some problems to ship the web to production but you can enjoy it by doing the next steps:

  1. Run cd vite-project
  2. Run yarn
  3. Run yarn dev and the page will open in localhost
  4. Run yarn hardhat test in the hardhat folder to run the tests




Deployed Contracts

All the contracts are deployed in the Goerli testnet.

About

A new way linking ERC721 tokens between them.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published