Skip to content

Commit f35a2dc

Browse files
Update Hardhat setup and requirements
1 parent 9e74e0b commit f35a2dc

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

docs/tutorials/marketpulse/setup.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# Set up a development environment for Etherlink
1+
---
2+
title: Set up a development environment for Etherlink
3+
dependencies:
4+
hardhat: 3.0.17
5+
---
26

37
> Etherlink is 100% compatible with Ethereum technology, which means that you can use any Ethereum-compatible tool for development, including Hardhat, Foundry, Truffle Suite, and Remix IDE.
48
> For more information on tools that work with Etherlink, see [Developer toolkits](https://docs.etherlink.com/building-on-etherlink/development-toolkits) in the Etherlink documentation.
@@ -7,6 +11,8 @@ In this tutorial, you use [Hardhat](https://hardhat.org/tutorial/creating-a-new-
711
You also use Viem, which is a lightweight, type-safe Ethereum library for JavaScript/TypeScript.
812
It provides low-level, efficient blockchain interactions with minimal abstraction.
913

14+
1. Install Node.JS version 22 or later, which is required for Hardhat.
15+
1016
1. [Install npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
1117

1218
1. Initialize an Node project with NPM:
@@ -20,12 +26,20 @@ It provides low-level, efficient blockchain interactions with minimal abstractio
2026

2127
```bash
2228
npm install -D hardhat
23-
npx hardhat init
29+
npx hardhat --init
2430
```
2531

26-
1. In the Hardhat prompts, select `Create a TypeScript project (with Viem)`.
32+
1. Follow these steps in the Hardhat prompts:
33+
34+
1. In the Hardhat prompts, select version 3 of Hardhat and `.` as the relative path to the project.
35+
36+
1. In the prompt for the type of project to create, select `A TypeScript Hardhat project using Node Test Runner and Viem`.
37+
38+
1. Select `true` or `Y` to convert the project's `package.json` file to ESM.
39+
40+
1. At the prompt to install dependencies, select `true` or `Y`.
2741

28-
1. At the prompt `Do you want to install this sample project's dependencies with npm (@nomicfoundation/hardhat-toolbox-viem)? (Y/n)` select `Y`.
42+
1. If Hardhat prompts you to update TypeScript dependencies, select `true` or `Y`.
2943

3044
1. Install `@openzeppelin/contracts` to use the Math library for safe calculations:
3145

0 commit comments

Comments
 (0)