Skip to content

Commit

Permalink
Add LinkedNft
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmetson committed Nov 30, 2023
1 parent 43cdcb3 commit af71ed9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packages/hardhat/contracts/LinkedNft.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import { ERC721 } from "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import { ERC721URIStorage } from "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol";

/**
* @notice WrappedNft is an NFT on the Source Blockchain, which locks the original NFT, and disables transferring it.
* When an NFT is wrapped, the Listening oracles would mint the copy on target Blockchain.
*/
contract LinkedNft is ERC721URIStorage {
address public registrar;

constructor(string memory _name, string memory _symbol) ERC721(_name, _symbol) {
registrar = msg.sender;
}

// mint and burn are done by the registrar
}

0 comments on commit af71ed9

Please sign in to comment.