Skip to content

Commit

Permalink
cleanup and simplify build process; remove npm/hardhat and unneccessa…
Browse files Browse the repository at this point in the history
…ry build files; update README.md to use forge
  • Loading branch information
dshiell committed Jan 23, 2024
1 parent aa4c5f1 commit da9bc19
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 16,728 deletions.
12 changes: 0 additions & 12 deletions Makefile

This file was deleted.

26 changes: 5 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,20 @@ Running `foundryup` by itself will install the latest (nightly) precompiled bina

Or go to https://book.getfoundry.sh/getting-started/installation for more installation options.

### Install NPM Dependencies
### Build contracts

```sh
npm install
forge build
```

NOTE: Since we're migrating from Hardhat to Forge, we need to install both Forge and Hardhat dependencies.
If we get rid of Hardhat completely, this step will be removed. No NPM project is needed anymore by then.

### Run Tests

```sh
forge test
```

## Quick Start with Hardhat

```shell
npm install

# Run CoreSC tests
npx hardhat test
```

Try running some of the following tasks:
### Clean environment

```shell
npx hardhat help
npx hardhat test
GAS_REPORT=true npx hardhat test
npx hardhat node
npx hardhat run scripts/deploy.ts
```sh
forge clean
```
18 changes: 0 additions & 18 deletions justfile

This file was deleted.

Loading

0 comments on commit da9bc19

Please sign in to comment.