-
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.
Merge pull request #114 from liquity/dev-instructions
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
78 additions
and
20 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,46 @@ | ||
# 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 (keep it running in a separate terminal): | ||
anvil | ||
|
||
# First, the contracts: | ||
cd contracts | ||
|
||
# Build & deploy the 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 | ||
|
||
# We are now ready to pass the deployed contracts to 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 command above. | ||
|
||
# Run the app development server: | ||
pnpm dev | ||
|
||
# You can now 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