Skip to content

Latest commit

 

History

History
26 lines (20 loc) · 1.78 KB

File metadata and controls

26 lines (20 loc) · 1.78 KB

Import NFT

In order to import NFT on Poly Bridge, please make sure that your source chain NFT contract can support ERC-721, ERC-721Metadata and ERC-721Enumerable interfaces with the ERC-721 standard. Besides source chain NFT contract, you need to develop and deploy the mapping NFT contracts on target chain. Here are the three steps to assist you in completing the process.

Step1. Development for mapping NFT contract

  • There is a mapping NFT contract template provided by Poly Network.

  • The mapping contracts should support ERC-721, ERC-721Metadata and ERC-721Enumerable interfaces with the ERC-721 standard.

  • The mapping contracts need to implement a minting interface. The method will be invoked by NFTLockProxy in Poly Network. Here is an example:

    function mintWithURI(address to, uint256 tokenId, string memory uri) external {
     require(!_exists(tokenId), "token id already exist");
     _safeMint(to, tokenId);
     _setTokenURI(tokenId, uri);
    }

Step2. Information submission

  • Submit your NFT information to the Poly Network team.
  • Contact Poly Network via
  • Waiting for feedback from Poly Network. We'll send you an email when everything is complete.

Step3. Test

  • Click here and follow the User Manual to test the NFT cross-chain transfer.