-
μ€μ νμΌ μμ
sudo vi /etc/nginx/sites-available/default# Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html;
π―
This file contains hidden or 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
| docker rm -f `docker ps -aq` |
This file contains hidden or 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
| version: '3.8' | |
| services: | |
| # Database - Mongo DB | |
| mongo: | |
| image: mongo | |
| environment: | |
| MONGO_INITDB_ROOT_USERNAME: helpdev | |
| MONGO_INITDB_ROOT_PASSWORD: 123456 |
This file contains hidden or 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 | |
| // Source: | |
| // https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol | |
| pragma solidity >=0.8.4; | |
| library StringUtils { | |
| /** | |
| * @dev Returns the length of a given string | |
| * | |
| * @param s The string to measure the length of |
This file contains hidden or 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
| /** | |
| *Submitted for verification at Etherscan.io on 2021-09-05 | |
| */ | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| /// [MIT License] | |
| /// @title Base64 |
This file contains hidden or 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
| pragma solidity 0.8.0; | |
| // We need some util functions for strings. | |
| import "@openzeppelin/contracts/utils/Strings.sol"; | |
| import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol"; | |
| import "@openzeppelin/contracts/utils/Counters.sol"; | |
| import "hardhat/console.sol"; | |
| contract MyEpicNFT is ERC721URIStorage { |
This file contains hidden or 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
| import './styles/App.css'; | |
| import twitterLogo from './assets/twitter-logo.svg'; | |
| import { ethers } from "ethers"; | |
| import React, { useEffect, useState } from "react"; | |
| import myEpicNft from './utils/MyEpicNFT.json'; | |
| const TWITTER_HANDLE = '_buildspace'; | |
| const TWITTER_LINK = `https://twitter.com/${TWITTER_HANDLE}`; | |
| const OPENSEA_LINK = ''; | |
| const TOTAL_MINT_COUNT = 50; |
This file contains hidden or 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
| // contracts/GLDToken.sol | |
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.0; | |
| import "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol"; | |
| import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
| contract ERC20_Token_Sample is ERC20, ERC20Burnable { | |
| constructor() ERC20("ERC20 Token Sample1", "Sample 1") { |
This file contains hidden or 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
| // calling token program to burn some tokens | |
| invoke( | |
| &spl_token::instruction::burn( | |
| &spl_token::id(), | |
| user_token_account_ai.key, | |
| vending_machine_mint.key, | |
| &user.key, | |
| &[], | |
| price, | |
| )?, |
This file contains hidden or 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
| // calling token program to burn some tokens | |
| invoke( | |
| &spl_token::instruction::burn( | |
| &spl_token::id(), | |
| user_token_account_ai.key, | |
| vending_machine_mint.key, | |
| &user.key, | |
| &[], | |
| price, | |
| )?, |
OlderNewer