Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2a84a71

Browse files
committedMay 23, 2025
feat: add @nomicfoundation/hardhat-viem-matchers to the viem toolbox
Add the viem matchers plugin to the viem toolbox.
1 parent c382e0f commit 2a84a71

File tree

5 files changed

+15
-0
lines changed

5 files changed

+15
-0
lines changed
 

‎pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎v-next/hardhat-toolbox-viem/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.11",
5454
"@nomicfoundation/hardhat-test-utils": "workspace:^",
5555
"@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.11",
56+
"@nomicfoundation/hardhat-viem-matchers": "workspace:^3.0.0-next.11",
5657
"@nomicfoundation/ignition-core": "workspace:^3.0.0-next.11",
5758
"@types/node": "^20.14.9",
5859
"c8": "^9.1.0",
@@ -71,6 +72,7 @@
7172
"@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.11",
7273
"@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.11",
7374
"@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.11",
75+
"@nomicfoundation/hardhat-viem-matchers": "workspace:^3.0.0-next.11",
7476
"@nomicfoundation/ignition-core": "workspace:^3.0.0-next.11",
7577
"hardhat": "workspace:^3.0.0-next.11",
7678
"viem": "^2.30.0"

‎v-next/hardhat-toolbox-viem/src/index.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const hardhatToolboxViemPlugin: HardhatPlugin = {
3535
);
3636
return hardhatViemPlugin;
3737
},
38+
async () => {
39+
const { default: hardhatViemMatchers } = await import(
40+
"@nomicfoundation/hardhat-viem-matchers"
41+
);
42+
return hardhatViemMatchers;
43+
},
3844
],
3945
npmPackage: "@nomicfoundation/hardhat-toolbox-viem",
4046
};

‎v-next/hardhat-toolbox-viem/src/type-extensions.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ export type * from "@nomicfoundation/hardhat-keystore";
33
export type * from "@nomicfoundation/hardhat-network-helpers";
44
export type * from "@nomicfoundation/hardhat-node-test-runner";
55
export type * from "@nomicfoundation/hardhat-viem";
6+
export type * from "@nomicfoundation/hardhat-viem-matchers";

‎v-next/hardhat-toolbox-viem/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
},
2828
{
2929
"path": "../hardhat-viem"
30+
},
31+
{
32+
"path": "../hardhat-viem-matchers"
3033
}
3134
]
3235
}

0 commit comments

Comments
 (0)
Please sign in to comment.