-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97b2ddb
commit 2c87b49
Showing
1 changed file
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
# eth-hardhat-demo | ||
eth hardhat demo | ||
## eth hardhat demo | ||
|
||
[Hardhat](https://hardhat.org/) 是 Nomic Labs 发布的以太坊开发环境工具,原来叫 Buidler。 | ||
|
||
Hardhat 可以用来代替 [Truffle](https://www.trufflesuite.com/truffle)。 | ||
|
||
## hardhat 命令行 | ||
|
||
`npx hardhat --version` 版本 | ||
|
||
`npx hardhat accounts` 执行 hardhat.config.js 定义的 task | ||
|
||
`npx hardhat compile` 编译 | ||
|
||
`npx hardhat flatten` 合并solidity文件 | ||
|
||
`npx hardhat node` 启动节点 | ||
|
||
`npx hardhat test` 运行测试 | ||
|
||
`npx hardhat run scripts/deploy.js` 部署合约 | ||
|
||
`npx hardhat run scripts/deploy.js --network localhost` 部署合约 |