Skip to content

Commit 859032f

Browse files
Merge branch 'main' into main
2 parents 55b9ba8 + 7cbd23f commit 859032f

File tree

16 files changed

+200
-24
lines changed

16 files changed

+200
-24
lines changed

docs/src/content/hardhat-chai-matchers/docs/migrate-from-waffle.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
88

99
1. Uninstall the `@nomiclabs/hardhat-waffle` and `ethereum-waffle` packages:
1010

11-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
11+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1212

1313
:::tab{value="npm 7+"}
1414

@@ -34,11 +34,19 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
3434

3535
:::
3636

37+
:::tab{value="pnpm"}
38+
39+
```
40+
pnpm remove @nomiclabs/hardhat-waffle ethereum-waffle
41+
```
42+
43+
:::
44+
3745
::::
3846

3947
2. Then install the Hardhat Chai Matchers plugin:
4048

41-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
49+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4250

4351
:::tab{value="npm 7+"}
4452

@@ -64,6 +72,14 @@ The `@nomicfoundation/hardhat-chai-matchers` plugin is meant to be a drop-in rep
6472

6573
:::
6674

75+
:::tab{value="pnpm"}
76+
77+
```
78+
pnpm add -D @nomicfoundation/hardhat-chai-matchers
79+
```
80+
81+
:::
82+
6783
::::
6884

6985
3. In your Hardhat config, import the Hardhat Chai Matchers plugin and remove the `hardhat-waffle` one:

docs/src/content/hardhat-chai-matchers/docs/overview.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The `hardhat-chai-matchers` plugin is designed to work with `hardhat-ethers`. At
1717

1818
## Installation
1919

20-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
20+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
2121

2222
:::tab{value="npm 7+"}
2323

@@ -43,6 +43,14 @@ yarn add --dev @nomicfoundation/hardhat-chai-matchers
4343

4444
:::
4545

46+
:::tab{value="pnpm"}
47+
48+
```
49+
pnpm add -D @nomicfoundation/hardhat-chai-matchers
50+
```
51+
52+
:::
53+
4654
::::
4755

4856
## How can I use it?

docs/src/content/hardhat-network-helpers/docs/overview.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This package provides convenience functions for quick and easy interaction with
1313

1414
## Installation
1515

16-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
16+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1717

1818
:::tab{value="npm 7+"}
1919

@@ -39,6 +39,14 @@ yarn add --dev @nomicfoundation/hardhat-network-helpers
3939

4040
:::
4141

42+
:::tab{value="pnpm"}
43+
44+
```
45+
pnpm add -D @nomicfoundation/hardhat-network-helpers
46+
```
47+
48+
:::
49+
4250
::::
4351

4452
## Usage

docs/src/content/hardhat-runner/docs/advanced/create-task.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Tasks in Hardhat are asynchronous JavaScript functions that get access to the [
5050

5151
For our example, we will use the [`@nomicfoundation/hardhat-toolbox`](/hardhat-runner/plugins/nomicfoundation-hardhat-toolbox), which includes the [ethers.js](https://docs.ethers.org/v6/) library to interact with our contracts.
5252

53-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
53+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
5454

5555
:::tab{value="npm 7+"}
5656

@@ -76,6 +76,14 @@ yarn add --dev @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network
7676

7777
:::
7878

79+
:::tab{value="pnpm"}
80+
81+
```
82+
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers chai@4 ethers
83+
```
84+
85+
:::
86+
7987
::::
8088

8189
Task creation code can go in `hardhat.config.js`, or whatever your configuration file is called. It’s a good place to create simple tasks. If your task is more complex, it's also perfectly valid to split the code into several files and `require` them from the configuration file.

docs/src/content/hardhat-runner/docs/advanced/migrating-from-hardhat-waffle.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Follow these steps to migrate your project to Hardhat Toolbox.
1212

1313
1. First you'll need to remove some packages from your project.
1414

15-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
15+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1616

1717
:::tab{value="npm 7+"}
1818

@@ -38,11 +38,19 @@ Follow these steps to migrate your project to Hardhat Toolbox.
3838

3939
:::
4040

41+
:::tab{value="pnpm"}
42+
43+
```
44+
pnpm remove @nomiclabs/hardhat-waffle ethereum-waffle
45+
```
46+
47+
:::
48+
4149
::::
4250

4351
2. Then you need to install the Toolbox. If you are using yarn or an old version of npm, you'll also have to install some other packages (the peer dependencies of the Toolbox).
4452

45-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
53+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4654

4755
:::tab{value="npm 7+"}
4856

@@ -68,6 +76,14 @@ Follow these steps to migrate your project to Hardhat Toolbox.
6876

6977
:::
7078

79+
:::tab{value="pnpm"}
80+
81+
```
82+
pnpm add -D @nomicfoundation/hardhat-toolbox @nomicfoundation/hardhat-network-helpers ethers chai@4
83+
```
84+
85+
:::
86+
7187
::::
7288

7389
3. Finally, remove `hardhat-waffle` from your imported plugins and import the Toolbox instead:

docs/src/content/hardhat-runner/docs/advanced/using-esm.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following sections explain how to use ES modules in new or existing Hardhat
2020

2121
If you want to start a Hardhat project that uses ES modules by default, first you have to initialize a Node.js project:
2222

23-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
23+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
2424

2525
:::tab{value="npm 7+"}
2626

@@ -46,13 +46,21 @@ yarn init -y
4646

4747
:::
4848

49+
:::tab{value="pnpm"}
50+
51+
```
52+
pnpm init
53+
```
54+
55+
:::
56+
4957
::::
5058

5159
Open the `package.json` that was created and add a `"type": "module"` entry. This will make the project use ESM by default.
5260

5361
After that, install Hardhat:
5462

55-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
63+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
5664

5765
:::tab{value="npm 7+"}
5866

@@ -78,6 +86,14 @@ yarn add --dev hardhat
7886

7987
:::
8088

89+
:::tab{value="pnpm"}
90+
91+
```
92+
pnpm add -D hardhat
93+
```
94+
95+
:::
96+
8197
::::
8298

8399
and run `npx hardhat init` to create a Hardhat project:

docs/src/content/hardhat-runner/docs/getting-started/index.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ To install it, you need to create an npm project by going to an empty folder, ru
2727

2828
Once your project is ready, you should run
2929

30-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
30+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
3131

3232
:::tab{value="npm 7+"}
3333

@@ -53,6 +53,14 @@ yarn add --dev hardhat
5353

5454
:::
5555

56+
:::tab{value=pnpm}
57+
58+
```
59+
pnpm add -D hardhat
60+
```
61+
62+
:::
63+
5664
::::
5765

5866
To use your local installation of Hardhat, you need to use `npx` to run it (i.e. `npx hardhat init`).

docs/src/content/hardhat-runner/docs/guides/project-setup.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Hardhat projects are Node.js projects with the `hardhat` package installed and a
1010

1111
To initialize a Node.js project you can use [npm](https://docs.npmjs.com/cli/v8) or [yarn](https://classic.yarnpkg.com/). We recommend using npm 7 or later:
1212

13-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
13+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
1414

1515
:::tab{value="npm 7+"}
1616

@@ -36,11 +36,19 @@ yarn init -y
3636

3737
:::
3838

39+
:::tab{value="pnpm"}
40+
41+
```
42+
pnpm init
43+
```
44+
45+
:::
46+
3947
::::
4048

4149
Then you need to install Hardhat:
4250

43-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
51+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4452

4553
:::tab{value="npm 7+"}
4654

@@ -66,6 +74,14 @@ yarn add --dev hardhat
6674

6775
:::
6876

77+
:::tab{value="pnpm"}
78+
79+
```
80+
pnpm add -D hardhat
81+
```
82+
83+
:::
84+
6985
::::
7086

7187
If you run `npx hardhat init` now, you will be shown some options to facilitate project creation:

docs/src/content/hardhat-runner/docs/supporter-guides/oracles.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Oracles provide a bridge between the real-world and on-chain smart contracts by
1111

1212
Oracles play a critical role in facilitating the full potential of smart contract utility. Without a reliable connection to real-world data, smart contracts cannot effectively serve the real-world.
1313

14-
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/ZJfkNzyO7-U" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
14+
<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/ZJfkNzyO7-U" title="YouTube video player" frameBorder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
1515

1616
## Why are they needed?
1717

@@ -94,7 +94,7 @@ Usually, you will create and manage your subscriptions on the [VRF Subscription
9494

9595
You will need to install it by typing:
9696

97-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
97+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
9898

9999
:::tab{value="npm 7+"}
100100

@@ -120,6 +120,14 @@ yarn add --dev @chainlink/hardhat-chainlink
120120

121121
:::
122122

123+
:::tab{value="pnpm"}
124+
125+
```
126+
pnpm add -D @chainlink/hardhat-chainlink
127+
```
128+
129+
:::
130+
123131
::::
124132

125133
And import it inside the `hardhat.config` file:

docs/src/content/ignition/docs/advanced/migrating.md

+18-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
88

99
1. Remove the `hardhat-deploy` packages from your project:
1010

11-
::::tabsgroup{options="npm,yarn"}
11+
::::tabsgroup{options="npm,yarn,pnpm"}
1212

1313
:::tab{value="npm"}
1414

@@ -26,11 +26,19 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
2626

2727
:::
2828

29+
:::tab{value="pnpm"}
30+
31+
```sh
32+
pnpm remove hardhat-deploy hardhat-deploy-ethers
33+
```
34+
35+
:::
36+
2937
::::
3038

3139
2. Install the Hardhat Ignition package and `hardhat-network-helpers` to provide additional testing support as a replacement for `hardhat-deploy` functionality like EVM snapshots:
3240

33-
::::tabsgroup{options="npm,yarn"}
41+
::::tabsgroup{options="npm,yarn,pnpm"}
3442

3543
:::tab{value="npm"}
3644

@@ -48,6 +56,14 @@ To get started, we’ll uninstall the `hardhat-deploy` plugin and install the Ha
4856

4957
:::
5058

59+
:::tab{value="pnpm"}
60+
61+
```sh
62+
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-network-helpers
63+
```
64+
65+
:::
66+
5167
::::
5268

5369
3. Update the project’s `hardhat.config` file to remove `hardhat-deploy` and `hardhat-deploy-ethers` and instead import Hardhat Ignition:

docs/src/content/ignition/docs/getting-started/index.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ If you prefer to use **Viem** instead of **ethers**, check out the [Viem guide](
4040

4141
Once you have a Hardhat project ready, open a terminal in its root directory, and run:
4242

43-
::::tabsgroup{options="npm 7+,npm 6,yarn"}
43+
::::tabsgroup{options="npm 7+,npm 6,yarn,pnpm"}
4444

4545
:::tab{value="npm 7+"}
4646

@@ -66,6 +66,14 @@ yarn add --dev @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat
6666

6767
:::
6868

69+
:::tab{value="pnpm"}
70+
71+
```sh
72+
pnpm add -D @nomicfoundation/hardhat-ignition-ethers @nomicfoundation/hardhat-ignition ethers
73+
```
74+
75+
:::
76+
6977
::::
7078

7179
Finally, add this to your config file to [enable the plugin](../../../hardhat-runner/docs/guides/project-setup.md#plugins-and-dependencies):

0 commit comments

Comments
 (0)