Skip to content

Commit 3acf430

Browse files
commit to branch
1 parent 4d922f5 commit 3acf430

File tree

6 files changed

+28
-31
lines changed

6 files changed

+28
-31
lines changed

docs/tools/smart-contracts/hardhat.md renamed to docs/tools/smart-contracts/common-tools/hardhat.md

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,30 @@
11
## Overview
22

3-
Hardhat is an Ethereum development environment that provides an easy way to deploy smart contracts, run tests and debug Solidity code locally.
3+
Hardhat is an Ethereum development environment for deploying smart contracts, running tests, and debugging Solidity code locally.
44

5-
In this tutorial, you will learn how to set up Hardhat and use it to build, test and deploy a simple smart contract.
5+
In this tutorial, you will learn how to set up Hardhat and use it to build, test, and deploy a simple smart contract.
66

7-
### What you will do
7+
## Set up
88

9-
- Set up Hardhat.
10-
- Create a simple smart contract.
11-
- Compile the contract.
12-
- Test the contract.
13-
- Deploy the contract.
9+
1. Ensure you have installed the following:
1410

15-
## Setting up the development environment
11+
- [Node.js v10+ LTS and npm](https://nodejs.org/en/).
12+
- [Git](https://git-scm.com/).
1613

17-
There are a few technical requirements before we start. Please install the following:
14+
2. Create an npm project
1815

19-
- [Node.js v10+ LTS and npm](https://nodejs.org/en/) (comes with Node)
20-
- [Git](https://git-scm.com/)
16+
```sh
17+
mkdir hardhat-test
18+
cd hardhat-test/
19+
npm init
20+
```
2121

22-
Once we have those installed, you need to create an npm project by going to an empty folder, running `npm init`, and following its instructions to install Hardhat. Once your project is ready, you should run:
22+
3. Now install Hardhat.
2323

24-
```bash
24+
```sh
2525
npm install --save-dev hardhat
2626
```
2727

28-
To create your Hardhat project, run `npx hardhat` in your project folder.
29-
Let’s create the sample project and go through these steps to try out a sample task and compile, test and deploy the sample contract.
30-
3128
!!! note
3229
The sample project used here comes from the [Hardhat Quickstart guide](https://hardhat.org/getting-started/#quick-start), as well as its instructions.
3330

File renamed without changes.
File renamed without changes.
File renamed without changes.

docs/tools/smart-contracts/crossmint.md renamed to docs/tools/smart-contracts/pos/crossmint.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ To create a new smart contract using Crossmint's Developer Console, follow the s
1414

1515
1. Navigate to the [Crossmint's developer console page:](https://staging.crossmint.com/console/overview/?utm_source=backlinks)
1616

17-
![img](../../img/tools/crossmint/screenshot1.jpg)
17+
![img](../../../img/tools/crossmint/screenshot1.jpg)
1818

1919
!!! important
2020
You need to create a developer account on Crossmint using your email Id before proceeding with the above step.
2121

2222
2. Click on **Collections** on the top navbar.
2323

24-
![img](../../img/tools/crossmint/screenshot2.png)
24+
![img](../../../img/tools/crossmint/screenshot2.png)
2525

2626
3. Click on "New Collection" to create a new collection on your console.
2727

@@ -34,34 +34,34 @@ To create a new smart contract using Crossmint's Developer Console, follow the s
3434
- `Discord`: Invite link for your Discord server
3535
- Also upload the cover image for your NFT Collection and your contract.
3636

37-
![img](../../img/tools/crossmint/screenshot3.png)
37+
![img](../../../img/tools/crossmint/screenshot3.png)
3838

3939
5. Click on "Create a new contract" to create a new NFT contract.
4040

41-
![img](../../img/tools/crossmint/screenshot4.png)
41+
![img](../../../img/tools/crossmint/screenshot4.png)
4242

4343
6. Select the preferred use-case for your collection. You can select both if you wish to do so and this can be changed later.
4444

45-
![img](../../img/tools/crossmint/screenshot5.png)
45+
![img](../../../img/tools/crossmint/screenshot5.png)
4646

4747
7. Select your blockchain as Polygon.
4848

49-
![img](../../img/tools/crossmint/screenshot6.png)
49+
![img](../../../img/tools/crossmint/screenshot6.png)
5050

5151
8. Configure your Payment settings
5252

5353
- `NFT Price`: The price per NFT in MATIC
5454
- `Recipient address`: Enter the address where you want to receive the revenue from the sales of the NFTs.
5555

56-
![img](../../img/tools/crossmint/screenshot7.png)
56+
![img](../../../img/tools/crossmint/screenshot7.png)
5757

5858
9. Review the details of your collection and click on "Deploy contract"
5959

60-
![img](../../img/tools/crossmint/screenshot8.png)
60+
![img](../../../img/tools/crossmint/screenshot8.png)
6161

6262
10. Now you can upload your NFTs along with their metadata
6363

64-
![img](../../img/tools/crossmint/screenshot9.png)
64+
![img](../../../img/tools/crossmint/screenshot9.png)
6565

6666
!!! note
6767
For additional information on Deploy, please refer [Crossmint’s documentation](https://docs.crossmint.com/docs/create-an-nft-collection/?utm_source=backlinks).

mkdocs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,10 @@ nav:
416416
- Developer tools: tools/index.md
417417
- Smart contract development:
418418
- Common tools:
419-
- Hardhat: tools/smart-contracts/hardhat.md
420-
- Truffle: tools/smart-contracts/truffle.md
421-
- Remix: tools/smart-contracts/remix.md
422-
- Replit: tools/smart-contracts/replit.md
419+
- Hardhat: tools/smart-contracts/common-tools/hardhat.md
420+
- Truffle: tools/smart-contracts/common-tools/truffle.md
421+
- Remix: tools/smart-contracts/common-tools/remix.md
422+
- Replit: tools/smart-contracts/common-tools/replit.md
423423
- PoS:
424424
- Work with smart contracts: tools/smart-contracts/pos/index.md
425425
- Alchemy: tools/smart-contracts/pos/alchemy.md
@@ -429,7 +429,7 @@ nav:
429429
- QuickNode: tools/smart-contracts/pos/quicknode.md
430430
- SmartPress: tools/smart-contracts/pos/smartpress.md
431431
- Thirdweb: tools/smart-contracts/pos/thirdweb.md
432-
- Crossmint: tools/smart-contracts/crossmint.md
432+
- Crossmint: tools/smart-contracts/pos/crossmint.md
433433
- Gas:
434434
- Polygon MATIC faucet: tools/gas/matic-faucet.md
435435
- Polygon gas station: tools/gas/polygon-gas-station.md

0 commit comments

Comments
 (0)