Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Disable Truffle Dashboard by Default #104

Merged
merged 5 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ This template implements the [`hardhat-ledger`](https://hardhat.org/hardhat-runn
## Using the Truffle Dashboard

> [!IMPORTANT]
> Truffle has been [sunsetted](https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat) by Consensys, but I still keep it in the template as I find it a very valuable tool.
> Truffle has been [sunsetted](https://consensys.io/blog/consensys-announces-the-sunset-of-truffle-and-ganache-and-new-hardhat) by Consensys, but I still keep it in the template as I find it a very valuable tool. Please note that due to the lengthy loading time of Truffle Dashboard's `npm` package [`@truffle/dashboard-hardhat-plugin`](https://www.npmjs.com/package/@truffle/dashboard-hardhat-plugin), the module is disabled by default in the [`hardhat.config.ts`](./hardhat.config.ts) file. If you want to use it, you must uncomment the module import and the `truffle` configuration accordingly.

[Truffle](https://trufflesuite.com) developed the [Truffle Dashboard](https://trufflesuite.com/docs/truffle/how-to/use-the-truffle-dashboard/) to provide an easy way to use your existing MetaMask wallet for your deployments and for other transactions that you need to send from a command line context. Because the Truffle Dashboard connects directly to MetaMask it is also possible to use it in combination with hardware wallets like [Ledger](https://www.ledger.com) or [Trezor](https://trezor.io).

Expand Down
21 changes: 12 additions & 9 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ import "@matterlabs/hardhat-zksync-solc";
import "@matterlabs/hardhat-zksync-deploy";
import "@matterlabs/hardhat-zksync-verify";
import "@matterlabs/hardhat-zksync-ethers";
import "@truffle/dashboard-hardhat-plugin";
// Uncomment if you want to use the Truffle Dashboard module
// You must also uncomment the subsequent `truffle` configuration in this file accordingly
// import "@truffle/dashboard-hardhat-plugin";
import "hardhat-gas-reporter";
import "hardhat-abi-exporter";
import "solidity-coverage";
Expand Down Expand Up @@ -95,14 +97,15 @@ const config: HardhatUserConfig = {
},
},
},
truffle: {
dashboardNetworkName: "truffleDashboard", // Truffle's default value is "truffleDashboard"
dashboardNetworkConfig: {
// Truffle's default value is 0 (i.e. no timeout), while Hardhat's default
// value is 40000 (40 seconds)
timeout: 0,
},
},
// Uncomment if you want to use the Truffle Dashboard module
// truffle: {
// dashboardNetworkName: "truffleDashboard", // Truffle's default value is "truffleDashboard"
// dashboardNetworkConfig: {
// // Truffle's default value is 0 (i.e. no timeout), while Hardhat's default
// // value is 40000 (40 seconds)
// timeout: 0,
// },
// },
networks: {
hardhat: {
initialBaseFeePerGas: 0,
Expand Down
Loading