Skip to content

Commit 841147c

Browse files
Merge pull request 0xPolygon#449 from KENILSHAHH/main
Common Tools docs updated
2 parents 62eea70 + 3102620 commit 841147c

File tree

3 files changed

+30
-31
lines changed

3 files changed

+30
-31
lines changed

docs/tools/dApp-development/common-tools/hardhat.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,12 @@ require("@nomiclabs/hardhat-ethers");
9090
require("@nomiclabs/hardhat-etherscan");
9191

9292
module.exports = {
93-
defaultNetwork: "polygon_mumbai",
93+
defaultNetwork: "polygon_amoy",
9494
networks: {
9595
hardhat: {
9696
},
97-
polygon_mumbai: {
98-
url: "https://rpc-mumbai.maticvigil.com",
97+
polygon_amoy: {
98+
url: "https://rpc-amoy.polygon.technology",
9999
accounts: [process.env.PRIVATE_KEY]
100100
}
101101
},
@@ -119,11 +119,9 @@ module.exports = {
119119

120120
Find more instructions on how to use DOTENV on [this page](https://www.npmjs.com/package/dotenv).
121121

122-
You can deploy on MATIC(Polygon mainnet) if you change polygon_mumbai by MATIC.
123-
124122
### Compiling the contract
125123

126-
To compile the contract, you first need to install Hardhat Toolbox:
124+
To compile the contract, you first need to install Hardhat:
127125

128126
```bash
129127
npm install --save-dev @nomicfoundation/hardhat-toolbox
@@ -152,10 +150,10 @@ And this is an expected output:
152150
Run this command in root of the project directory:
153151

154152
```bash
155-
npx hardhat run scripts/deploy.js --network polygon_mumbai
153+
npx hardhat run scripts/deploy.js --network polygon_amoy
156154
```
157155

158-
The contract will be deployed on Matic's Mumbai Testnet, and you can check the deployment status here: <https://mumbai.polygonscan.com/>
156+
The contract will be deployed on Polygon Amoy testnet, and you can check the deployment status here: <https://amoy.polygonscan.com/>
159157

160158
**Congratulations! You have successfully deployed Greeter Smart Contract. Now you can interact with the Smart Contract.**
161159

@@ -165,5 +163,5 @@ The contract will be deployed on Matic's Mumbai Testnet, and you can check the d
165163

166164
```bash
167165
npm install --save-dev @nomiclabs/hardhat-etherscan
168-
npx hardhat verify --network polygon_mumbai 0x4b75233D4FacbAa94264930aC26f9983e50C11AF
166+
npx hardhat verify --network polygon_amoy 0x4b75233D4FacbAa94264930aC26f9983e50C11AF
169167
```

docs/tools/dApp-development/common-tools/remix.md

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This tutorial guides you to implement a Hello World dApp which echoes a message
1111
- Create a file on Remix.
1212
- Upload a pre-built smart contract into the IDE.
1313
- Compile the smart contract.
14-
- Connect the application to the Polygon Mumbai Testnet via Metamask.
14+
- Connect the application to the Polygon Amoy testnet via MetaMask.
1515
- Deploy the smart contract.
1616
- Verify the smart contract.
1717

@@ -71,39 +71,41 @@ The `update` function is another public function that is similar to the constr
7171

7272
- After successful compilation, it will show a green tick mark on the **Compiler** tab button
7373

74-
## Deploying to the Mumbai testnet
74+
## Deploying to the Amoy testnet
7575

76-
Now, we have to deploy our smart contract on Mumbai, Polygon Network's Testnet. Not only does it cost money (e.g., gas fees) to deploy a smart contract on Polygon Mainnet, but also, the contract is immutable and can't be changed once deployed. Therefore, it's best to first deploy your smart contract to the Testnet first.
76+
Now, we have to deploy our smart contract on Amoy, the Polygon testnet. Not only does it cost money (e.g., gas fees) to deploy a smart contract on Polygon mainnet, but the contract is immutable and can't be changed once deployed. Therefore, it's best to deploy your smart contract to the testnet first.
7777

78-
To deploy to the Mumbai testnet, we have to connect to the Web3 world which can be accomplished by using any of the services like Metamask, Brave, Portis, etc. We will be using MetaMask in this tutorial. Please follow this [guide to set up a MetaMask Account](../../wallets/metamask/index.md).
78+
To deploy to the Amoy testnet, we have to connect to the web3 with a service like MetaMask, Brave, Portis, etc. We use MetaMask in this tutorial. Please follow this [guide to set up a MetaMask account](../../wallets/metamask/index.md).
7979

8080
- Open Metamask. Click on the network dropdown menu (set to **Ethereum Mainnet** by default) and click on the **Add Network** button. MaticVigil provides a public endpoint and is rate-limited. Therefore, most developers use a free blockchain provider like [Alchemy](https://docs.alchemy.com/docs/how-to-add-polygon-to-metamask) or [Quicknode](https://www.quicknode.com/guides/smart-contract-development/how-to-deploy-a-smart-contract-on-maticpolygon#setting-up-metamask-with-polygon-node) to have a dedicated RPC endpoint with faster throughput AKA computing units per second (CUPs). You need to create a free account to get your private API key from one of these providers to put into the dedicated RPC endpoint URL below.
8181

82-
- **Network:** Polygon Mumbai Testnet
83-
- **RPC URL (public endpoint):** <https://rpc-mumbai.maticvigil.com>.
84-
- **RPC URL (dedicated endpoint):** <https://polygon-mumbai.g.alchemy.com/v2/your-api-key>. You'll need a [free API key](https://docs.alchemy.com)
85-
- **Chain ID:** 80001
82+
- **Network:** Polygon Amoy testnet
83+
- **RPC URL (public endpoint):** <https://rpc-amoy.polygon.technology/>.
84+
- **RPC URL (dedicated endpoint):** <https://polygon-amoy.g.alchemy.com/v2/{your-api-key}>. You need a [free API key](https://docs.alchemy.com)
85+
- **Chain ID:** 80002
8686
- **Currency Symbol:** MATIC
87-
- **Block Explorer URL:** <https://mumbai.polygonscan.com/>
87+
- **Block explorer URL:** <https://amoy.polygonscan.com/>
8888

8989
- Go ahead and click **Save**
9090

9191
- Copy your wallet address from MetaMask by clicking over your account name
9292

93-
- Head over to [Faucet](https://faucet.polygon.technology/) and request test MATIC - you will need this to pay for gas on the Polygon network. Select **Mumbai** as the network and **MATIC Token** as the token in the faucet. You can also use this free [Mumbai faucet](https://mumbaifaucet.com)
93+
- Head over to [the faucet](https://faucet.polygon.technology/) and request test MATIC to pay for gas on the Polygon network. Select **Amoy** as the network and **MATIC Token** as the token in the faucet. You can also use the [Alchemy Amoy faucet](https://www.alchemy.com/faucets/polygon-amoy).
9494

95-
- Finally, to deploy to Mumbai, refer to the instructions in the "Remix deployment" section below
95+
- Finally, to deploy to Amoy, refer to the instructions in the [Remix deployment](#remix-deployment) section below.
9696

9797
## Deploying to Polygon mainnet
9898

99-
After you can deploy on the Mumbai Testnet without any errors (i.e., the purpose of the Testnet), let's deploy the Smart Contract on the Polygon Mainnet. Remember this will cost real $ in the form of MATIC tokens.
99+
After deploying on Amoy without any errors, you can deploy the smart contract on the Polygon mainnet. Remember this costs real $ in the form of MATIC tokens.
100100

101-
Similar to the steps above when you deployed to Mumbai, you open your MetaMask wallet. Click on the network dropdown menu (set to **Ethereum Mainnet** by default) and click on the **Add Network** button. Make sure to have your [Alchemy API key](https://docs.alchemy.com/docs/alchemy-quickstart-guide).
101+
1. Open your MetaMask wallet.
102+
2. Click on the network dropdown menu (set to **Ethereum Mainnet** by default) and click on the **Add Network** button.
103+
3. Make sure to have your [Alchemy API key](https://docs.alchemy.com/docs/alchemy-quickstart-guide) to hand.
102104

103-
- Open Metamask
105+
4. Add the info:
104106

105107
- **Network Name**: Polygon Mainnet
106-
- **New RPC URL**: <https://polygon-mainnet.g.alchemy.com/v2/your-api-key>
108+
- **New RPC URL**: <https://polygon-mainnet.g.alchemy.com/v2/{your-api-key}>
107109
- **Chain ID**: 137
108110
- **Currency Symbol**: MATIC
109111
- **Block Explorer URL**: <https://polygonscan.com/>
@@ -112,9 +114,8 @@ Similar to the steps above when you deployed to Mumbai, you open your MetaMask w
112114

113115
- Copy your wallet address from MetaMask by clicking over your account name
114116

115-
- Make sure your MetaMask wallet has MATIC tokens to pay the deployment / gas fees
117+
5. Make sure your MetaMask wallet has MATIC tokens to pay the deployment's gas fees.
116118

117-
- Finally, to deploy to Mumbai, refer to the instructions in the "Remix deployment" section below
118119

119120
## Remix deployment
120121

@@ -131,7 +132,7 @@ In both Testnet and Mainnet, you do the below to deploy your smart contract usin
131132
![RemixIDE_Step1](../../../img/tools/remix/confirm_tx.png)
132133
<br/>
133134

134-
Congratulations! You have successfully deployed the HelloWorld smart contract to the Polygon Mumbai Testnet. You can start interacting with your smart contract. Check the deployment status at <https://mumbai.polygonscan.com/>.
135+
Congratulations! You have successfully deployed the HelloWorld smart contract to the Polygon Amoy testnet. You can now start interacting with your smart contract. Check the deployment status at <https://amoy.polygonscan.com/>.
135136

136137
## Verifying your contract
137138

docs/tools/dApp-development/common-tools/replit.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This article guides you to build and deploy a solidity smart contract on Polygon
88

99
- Create a Replit account.
1010
- Create a Repl environment.
11-
- Deploy a sample project on the Polygon Mumbai network.
11+
- Deploy a sample project on the Polygon Amoy network.
1212
- Verify the contract.
1313
- Publish your project to a personal Replit profile.
1414

@@ -20,7 +20,7 @@ This article guides you to build and deploy a solidity smart contract on Polygon
2020

2121
You do not need any local environment setup to deploy your solidity smart contract on Polygon using Replit.
2222

23-
You need a browser-based Web3 wallet to interact with the Polygon Mumbai Testnet and deployed contracts. If you are already using MetaMask, it is recommended to create a new account for testing with Replit. You can do this from the account menu, which appears when you click on the account avatar in the top right corner of MetaMask interface.
23+
You need a browser-based web3 wallet to interact with the Polygon Amoy testnet and deployed contracts. If you are already using MetaMask, we recommend creating a new account for testing with Replit. You can do this from the account menu, which appears when you click on the account avatar in the top right corner of the MetaMask interface.
2424

2525
You must set up all of the following prerequisites to be able to deploy your solidity smart contract on Polygon:
2626

@@ -55,7 +55,7 @@ Make sure that you have followed the list of [prerequisites](#prerequisites) abo
5555

5656
1. Click on **Run** (at the top) to install all relevant packages and start up the contract deployment UI.
5757

58-
2. Connect your MetaMask wallet to the web interface and switch to the [Mumbai Testnet](../../wallets/metamask/add-polygon-network.md).
58+
2. Connect your MetaMask wallet to the web interface and switch to the [Amoy testnet](../../wallets/metamask/add-polygon-network.md).
5959

6060
![img](../../../img/tools/replit/connect.png)
6161

@@ -69,7 +69,7 @@ Make sure that you have followed the list of [prerequisites](#prerequisites) abo
6969

7070
## Verifying and testing your contract
7171

72-
When the contract is deployed, [navigate to Polyganscan](https://mumbai.polygonscan.com/) to search for your account, view your deployed contract, and copy your account address.
72+
When the contract is deployed, [navigate to Polygonscan](https://amoy.polygonscan.com/) to search for your account, view your deployed contract, and copy your account address.
7373

7474
Once your contract has been deployed, it will show up as expandable boxes below the dropdown box. Expand it and take a look at all the different functions available. You can now interact with your contract using the provided user interface or from a sharable URL shown on the interface.
7575

0 commit comments

Comments
 (0)