-
Notifications
You must be signed in to change notification settings - Fork 74
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
db04f7f
commit 4b207be
Showing
1 changed file
with
17 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Deployment scripts | ||
|
||
This folder contains the scripts neccessary to deploy strategies and Allo contracts to the blockchain. | ||
|
||
# Usage | ||
|
||
1. Install dependencies by running `bun install`. | ||
2. Compile contracts by running `bun smock && bun compile`. | ||
3. Fill the necessary environment variables in `.env` file. You can use `.env.example` as a template. | ||
4. Run the deployment script with: | ||
``` | ||
forge script script/${SCRIPT_FILENAME}.sol:${SCRIPT_CONTRACT_NAME} --fork-url ${RPC_URL} --private-key ${PRIVATE_KEY} --broadcast | ||
``` | ||
For example: | ||
``` | ||
forge script script/DeployDirectAllocation.sol:DeployDirectAllocation --fork-url https://eth-sepolia.public.blastapi.io --private-key 0x0000 --broadcast | ||
``` |