Skip to content

Commit

Permalink
subgraph deploy instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
hardyjosh committed Apr 8, 2024
1 parent 4d1407d commit 8fd27ac
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,27 @@

Docs at https://rainprotocol.github.io/foundry.template

## To deploy the subgraph (temporary until we set up a new one)

The subgraph name should be {network}-{first 4 bytes of orderbook address}

```bash
cd subgraph
nix shell -p nodejs
npm i

# stay inside the previous shell for the next steps
nix run .#init-setup

nix run .#rain_cli -- subgraph build --network mainnet --block {orderbook deploy block} --address {orderbook address}

# these steps are for when we're running our own graph-node - may be different for each cloud service so best to check their docs
npx graph create --node {graph node address}:8020 {subgraph name} --access-token {auth key}

npx graph deploy {subgraph name} --ipfs {graph node url}:5001 --node {graph node url}:8020 --deploy-key {auth key} --headers '{ "Authorization": "Bearer {auth key}" }'
```


## Use as template

```
Expand Down

0 comments on commit 8fd27ac

Please sign in to comment.