-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
README: Add development instructions
Also: - Makes the second parameter of deployment-artifacts-to-app-env.ts optional and emit on stdout when missing, so that people can use the script to copy & paste into their env file easily. - In the .env example file, make the hardhat env the default (one less thing to do for contributors).
- Loading branch information
Showing
3 changed files
with
70 additions
and
18 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 +1,44 @@ | ||
# BOLD | ||
# Liquity v2 | ||
|
||
## Requirements | ||
|
||
- [Node.js](https://nodejs.org/) | ||
- [pnpm](https://pnpm.io/) | ||
- [Foundry](https://book.getfoundry.sh/getting-started/installation) | ||
|
||
## Setup | ||
|
||
```sh | ||
git clone git@github.com:liquity/bold.git | ||
cd bold | ||
pnpm install | ||
``` | ||
|
||
## How to develop | ||
|
||
```sh | ||
# Run the anvil local node | ||
anvil | ||
|
||
# Deploy the contracts | ||
cd contracts | ||
./deploy local --open-demo-troves # optionally open troves for the first 8 anvil accounts | ||
|
||
# Print the addresses of the deployed contracts | ||
pnpm tsx utils/deployment-artifacts-to-app-env.ts deployment-context-latest.json | ||
|
||
# Now, the app: | ||
cd ../frontend | ||
|
||
# Copy the example .env file | ||
cp .env .env.local | ||
|
||
# Edit the .env.local file: | ||
# - Make sure the Hardhat / Anvil section is uncommented. | ||
# - Copy into it the addresses printed by the previous command. | ||
|
||
# Run the app development server | ||
pnpm dev | ||
|
||
# Open https://localhost:3000 in your browser | ||
``` |
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
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