-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |