Skip to content

VegieDoggie/solidity-framework-template

Repository files navigation

中文 / English

通用Solidity开发测试框架

setup: npm i + git submodule update --remote --init --recursive

核心操作:

  1. 编译:
  • npx hardhat compile
  • forge compile | forge build
  1. 测试
  • npx hardhat test
  • forge test
  1. 本地节点网络[推荐hardhat]
  • npx hardhat node
  1. 在指定的区块链网络上运行TS脚本(比如部署)
  • npx hardhat --network <网络名> run <脚本路径>

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts


npx hardhat test test/diamond.ts

About

solidity framework template

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors