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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.6.0/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.6.0/access/Ownable.sol"; | |
contract MyNFT is ERC721, Ownable { | |
uint256 public totalSupply; | |
constructor() ERC721("MyNFT", "MNFT") {} |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.13; | |
import {OperatorFilterer} from "./OperatorFilterer.sol"; | |
contract DefaultOperatorFilterer is OperatorFilterer { | |
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6); | |
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {} | |
} |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.2; | |
import "@openzeppelin/contracts@4.4.2/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.4.2/token/ERC721/extensions/ERC721Enumerable.sol"; | |
import "@openzeppelin/contracts@4.4.2/access/Ownable.sol"; | |
contract MyToken is ERC721, ERC721Enumerable, Ownable { |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.5.0/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.5.0/access/Ownable.sol"; | |
import "@openzeppelin/contracts@4.5.0/utils/Counters.sol"; | |
import "@openzeppelin/contracts@4.5.0/utils/cryptography/MerkleProof.sol"; | |
contract MyToken is ERC721, Ownable { | |
using Counters for Counters.Counter; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.9; | |
import "@openzeppelin/contracts@4.8.0/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.8.0/access/Ownable.sol"; | |
import "@openzeppelin/contracts@4.8.0/utils/Counters.sol"; | |
contract PreRevealedTokens is ERC721, Ownable { | |
using Counters for Counters.Counter; |
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
<html> | |
<head> | |
<title>Show NFTs</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script> | |
</head> | |
<body> | |
<div id="root"> | |
</div> | |
<script> |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.7.3/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts@4.7.3/token/ERC721/extensions/ERC721URIStorage.sol"; | |
import "@openzeppelin/contracts@4.7.3/access/Ownable.sol"; | |
import "@openzeppelin/contracts@4.7.3/utils/cryptography/draft-EIP712.sol"; | |
contract LazyNFT is ERC721, ERC721URIStorage, Ownable, EIP712 { | |
string private constant SIGNING_DOMAIN = "Voucher-Domain"; |
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
// SPDX-License-Identifier: CC0-1.0 | |
pragma solidity ^0.8.0; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "./IERC4907.sol"; | |
contract ERC4907 is ERC721, IERC4907 { | |
struct UserInfo | |
{ | |
address user; // address of user role |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
contract MyNFT is ERC721, Ownable { | |
using Counters for Counters.Counter; |
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
// SPDX-License-Identifier: MIT | |
pragma solidity ^0.8.4; | |
import "@openzeppelin/contracts@4.7.3/token/ERC20/ERC20.sol"; | |
contract MyToken is ERC20 { | |
constructor() ERC20("MyToken", "MTK") { | |
_mint(msg.sender, 10000 * 10 ** decimals()); | |
} | |
} |