Skip to content

Commit

Permalink
docs(contracts): deployment guide
Browse files Browse the repository at this point in the history
  • Loading branch information
mempirate committed Oct 17, 2024
1 parent f55fbd6 commit bf1d824
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions bolt-contracts/docs/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ There are 2 JSON configuration files:
- [`config/holesky/parameters.json`](../config/holesky/parameters.json): contains the launch parameters for `BoltParameters`.



## Deployment Guide
Make sure we have a full compilation for the Foundry Upgrades Toolkit:
```bash
Expand All @@ -21,6 +22,9 @@ And have a local Anvil fork running to test and validate deployments:
anvil --fork-url $HOLESKY_RPC
```

> [!IMPORTANT]
> Run everything on the local Anvil fork first! This requires just replacing the $HOLESKY_RPC with the $ANVIL_RPC.
### Pre-deployment

Register a Symbiotic network for Bolt with the Symbiotic `NetworkRegistry`. The private key with which the script is run will determine the network address. This private key will also need to be used later.
Expand All @@ -31,11 +35,6 @@ forge script script/holesky/SymbioticSetup.s.sol $HOLESKY_RPC --private-key $NET

### Deployment

Run the following script to test deployment on the Anvil fork:
```bash
forge script script/holesky/Deploy.s.sol --rpc-url http://127.0.0.1:8545 --private-key $PRIVATE_KEY --broadcast -vvvv
```

Run the following script to deploy Bolt V1:
```bash
forge script script/holesky/Deploy.s.sol --rpc-url $HOLESKY_RPC --private-key $PRIVATE_KEY --broadcast -vvvv
Expand Down

0 comments on commit bf1d824

Please sign in to comment.