From 52f961f538fdcccbd0fddb86e765569328c76afa Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:50:59 +0530 Subject: [PATCH 1/6] Update README.md --- README.md | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 729ad6a..7823c3c 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,14 @@ Deploy an NFT project on Ethereum ## Prerequisites - Set up a Metamask (Beginner Track - [Level-4](https://github.com/LearnWeb3DAO/Crypto-Wallets)) -- Check if your computer has Node.js. If not download from [here](https://nodejs.org/en/download/) +- Check if your computer has Node.js. + Run This command in the terminal- + + ``` bash + node -v + ``` + + If this command does not return any version of NodeJS download NodeJS from [here](https://nodejs.org/en/download/) --- @@ -50,7 +57,7 @@ npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs Lets install Open Zeppelin contracts, In the terminal window execute this command -``` +```bash npm install @openzeppelin/contracts ``` @@ -65,7 +72,7 @@ pragma solidity ^0.8.0; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; // GameItem is ERC721 signifies that the contract we are creating imports ERC721 and follows ERC721 contract from openzeppelin -contract GameItem is ERC721 { + contract GameItem is ERC721 { constructor() ERC721("GameItem", "ITM") { // mint an NFT to yourself @@ -117,21 +124,21 @@ main() - Now create a `.env` file in the `NFT-Tutorial` folder and add the following lines. Use the instructions in the comments to get your Alchemy API Key and RINKEBY Private Key. Make sure that the account from which you get your rinkeby private key is funded with Rinkeby Ether.You can get some here: [https://faucet.rinkeby.io/](https://faucet.rinkeby.io/) -``` +```js // Go to https://www.alchemyapi.io, sign up, create // a new App in its dashboard and select the network as Rinkeby, and replace "add-the-alchemy-key-url-here" with its key url -ALCHEMY_API_KEY_URL="add-the-alchemy-key-url-here" +ALCHEMY_API_KEY_URL = "add-the-alchemy-key-url-here" // Replace this private key with your RINKEBY account private key // To export your private key from Metamask, open Metamask and // go to Account Details > Export Private Key // Be aware of NEVER putting real Ether into testing accounts -RINKEBY_PRIVATE_KEY="add-the-rinkeby-private-key-here" +RINKEBY_PRIVATE_KEY = "add-the-rinkeby-private-key-here" ``` -You can think of Alchemy as AWS EC2 for blockchain. It is a node provider. It helps us to connect with the blockchain by providing us with nodes so that we can read and write to the blockchain. Alchemy is what helps us deploy the contract to rinkeby. +You can think of Alchemy as AWS Elastic Compute Cloud for blockchain. It is a node provider. It helps us to connect with the blockchain by providing us with nodes so that we can read and write to the blockchain. Alchemy is what helps us deploy the contract to rinkeby. - Now we would install `dotenv` package to be able to import the env file and use it in our config. In your terminal, execute these commands. @@ -170,3 +177,5 @@ module.exports = { - Go to [Rinkeby Etherscan](https://rinkeby.etherscan.io/) and search for the address that was printed. - If the `address` opens up on etherscan, you have deployed your first NFT 🎉 - Go to the transaction details by clicking on the transaction hash, check that there was a token transfered to your address +- If the NFT token doesn't show up in your wallet, click on import token and enter your contract address, remember that the decimals should be set to 0. +- Yay! Now go to #showcase channel in Discord and share the screenshot of your newly formed NFT. From 15479116d73a94cd392e553e7a0e0282d488d5fb Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:51:44 +0530 Subject: [PATCH 2/6] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7823c3c..cf88aba 100644 --- a/README.md +++ b/README.md @@ -168,7 +168,7 @@ module.exports = { - To deploy in your terminal type: ```bash - npx hardhat run scripts/deploy.js --network rinkeby + npx hardhat run scripts/deploy.js --network rinkeby ``` - Save the NFT Contract Address that was printed on your terminal in your notepad, you would need it. From 24e618d1d42fb0766acb2268abab98b8580a49ce Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:53:32 +0530 Subject: [PATCH 3/6] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cf88aba..d2866f6 100644 --- a/README.md +++ b/README.md @@ -177,5 +177,5 @@ module.exports = { - Go to [Rinkeby Etherscan](https://rinkeby.etherscan.io/) and search for the address that was printed. - If the `address` opens up on etherscan, you have deployed your first NFT 🎉 - Go to the transaction details by clicking on the transaction hash, check that there was a token transfered to your address -- If the NFT token doesn't show up in your wallet, click on import token and enter your contract address, remember that the decimals should be set to 0. -- Yay! Now go to #showcase channel in Discord and share the screenshot of your newly formed NFT. +- If the NFT token doesn't show up in your wallet, click on import token and enter your contract `address`, remember that the decimals should be set to 0. +- Yay! Now go to `#😎|showcase` channel in Discord and share the screenshot of your newly formed NFT. From 978ae6c40fcdc34283065581551747005a24751a Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:55:10 +0530 Subject: [PATCH 4/6] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index d2866f6..ac9b316 100644 --- a/README.md +++ b/README.md @@ -178,4 +178,3 @@ module.exports = { - If the `address` opens up on etherscan, you have deployed your first NFT 🎉 - Go to the transaction details by clicking on the transaction hash, check that there was a token transfered to your address - If the NFT token doesn't show up in your wallet, click on import token and enter your contract `address`, remember that the decimals should be set to 0. -- Yay! Now go to `#😎|showcase` channel in Discord and share the screenshot of your newly formed NFT. From 3e24ee178671198eec9aec539d031c0ff29d4f0e Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Fri, 14 Jan 2022 09:08:56 +0530 Subject: [PATCH 5/6] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ac9b316..d075f74 100644 --- a/README.md +++ b/README.md @@ -124,16 +124,18 @@ main() - Now create a `.env` file in the `NFT-Tutorial` folder and add the following lines. Use the instructions in the comments to get your Alchemy API Key and RINKEBY Private Key. Make sure that the account from which you get your rinkeby private key is funded with Rinkeby Ether.You can get some here: [https://faucet.rinkeby.io/](https://faucet.rinkeby.io/) -```js +``` // Go to https://www.alchemyapi.io, sign up, create // a new App in its dashboard and select the network as Rinkeby, and replace "add-the-alchemy-key-url-here" with its key url + ALCHEMY_API_KEY_URL = "add-the-alchemy-key-url-here" // Replace this private key with your RINKEBY account private key // To export your private key from Metamask, open Metamask and // go to Account Details > Export Private Key // Be aware of NEVER putting real Ether into testing accounts + RINKEBY_PRIVATE_KEY = "add-the-rinkeby-private-key-here" ``` @@ -178,3 +180,4 @@ module.exports = { - If the `address` opens up on etherscan, you have deployed your first NFT 🎉 - Go to the transaction details by clicking on the transaction hash, check that there was a token transfered to your address - If the NFT token doesn't show up in your wallet, click on import token and enter your contract `address`, remember that the decimals should be set to 0. +- Yay! Now, go to `#😎|showcase` and show off your newly made NFT From 0a76ac1e6869c8509e3114063ec4a31b384c6760 Mon Sep 17 00:00:00 2001 From: vatsal-boy <95976661+vatsal-boy@users.noreply.github.com> Date: Mon, 17 Jan 2022 23:24:52 +0530 Subject: [PATCH 6/6] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index d075f74..8a25b4a 100644 --- a/README.md +++ b/README.md @@ -129,14 +129,14 @@ main() // Go to https://www.alchemyapi.io, sign up, create // a new App in its dashboard and select the network as Rinkeby, and replace "add-the-alchemy-key-url-here" with its key url -ALCHEMY_API_KEY_URL = "add-the-alchemy-key-url-here" +ALCHEMY_API_KEY_URL="add-the-alchemy-key-url-here" // Replace this private key with your RINKEBY account private key // To export your private key from Metamask, open Metamask and // go to Account Details > Export Private Key // Be aware of NEVER putting real Ether into testing accounts -RINKEBY_PRIVATE_KEY = "add-the-rinkeby-private-key-here" +RINKEBY_PRIVATE_KEY="add-the-rinkeby-private-key-here" ``` @@ -153,9 +153,9 @@ You can think of Alchemy as AWS Elastic Compute Cloud for blockchain. It is a no require("@nomiclabs/hardhat-waffle"); require("dotenv").config({ path: ".env" }); -const ALCHEMY_API_KEY_URL = process.env.ALCHEMY_API_KEY_URL; +const ALCHEMY_API_KEY_URL=process.env.ALCHEMY_API_KEY_URL; -const RINKEBY_PRIVATE_KEY = process.env.RINKEBY_PRIVATE_KEY; +const RINKEBY_PRIVATE_KEY=process.env.RINKEBY_PRIVATE_KEY; module.exports = { solidity: "0.8.4",