You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Note that this instructions will help you deploy Graph Horizon contracts, but no data service will be deployed. If you want to deploy the Subgraph Service please refer to the [Subgraph Service README](../subgraph-service/README.md) for deploy instructions.
Usually you would run this against a network (or a fork) where the original Graph Protocol was previously deployed. To upgrade an existing deployment of the original Graph Protocol to Graph Horizon, run the following commands. Note that each step might need to be run by different accounts (deployer vs governor):
39
+
Usually you would run this against a network (or a fork) where the original Graph Protocol was previously deployed. To upgrade an existing deployment of the original Graph Protocol to Graph Horizon, run the following commands. Note that some steps might need to be run by different accounts (deployer vs governor):
Steps 2 and 4 require patching the configuration file with addresses from previous steps. The files are located in the `ignition/configs` directory and need to be manually edited. You can also pass `--patch-config` flag to the deploy command to automatically patch the configuration reading values from the address book. Note that this will NOT update the configuration file.
npx hardhat run scripts/deploy.ts --network hardhat
13
25
```
14
26
15
-
You can use any network defined in `hardhat.config.ts` by replacing `hardhat` with the network name.
27
+
## Deployment
28
+
29
+
Note that this instructions will help you deploy Graph Horizon contracts alongside the Subgraph Service. If you want to deploy just the core Horizon contracts please refer to the [Horizon README](../horizon/README.md) for deploy instructions.
30
+
31
+
### New deployment
32
+
To deploy Graph Horizon from scratch including the Subgraph Service run the following command:
33
+
34
+
```bash
35
+
npx hardhat deploy:protocol --network hardhat
36
+
```
37
+
38
+
### Upgrade deployment
39
+
Usually you would run this against a network (or a fork) where the original Graph Protocol was previously deployed. To upgrade an existing deployment of the original Graph Protocol to Graph Horizon including the Subgraph Service, run the following commands. Note that some steps might need to be run by different accounts (deployer vs governor):
cd horizon && npx hardhat deploy:migrate --network hardhat --step 4 &&cd .. # Run with governor. Optionally add --patch-config
49
+
```
16
50
17
-
Note that this will deploy and configure Graph Horizon contracts as well as the Subgraph Service.
51
+
Horizon Steps 2 and 4, and Subgraph Service Step 2 require patching the configuration file with addresses from previous steps. The files are located in the `ignition/configs` directory and need to be manually edited. You can also pass `--patch-config` flag to the deploy command to automatically patch the configuration reading values from the address book. Note that this will NOT update the configuration file.
0 commit comments