Skip to content

Commit

Permalink
Replace mainnet for xdai and add xdai deployment data
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriziovigevani committed Apr 5, 2021
1 parent 91f846a commit cc134de
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 18 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@

### Remotes

1. [Mainnet](https://thegraph.com/explorer/subgraph/aragon/aragon-court)
2. [Rinkeby](https://thegraph.com/explorer/subgraph/aragon/aragon-court-rinkeby)
3. [Ropsten](https://thegraph.com/explorer/subgraph/aragon/aragon-court-ropsten)
4. [Staging](https://thegraph.com/explorer/subgraph/aragon/aragon-court-staging)
1. [Xdai](https://thegraph.com/explorer/subgraph/1hive/celeste)
2. [Rinkeby](https://thegraph.com/explorer/subgraph/1hive/celeste-rinkeby)

### Local

Expand Down
11 changes: 4 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,25 @@
"draw-schema": "./scripts/draw-schema.sh",
"build:graph": "./scripts/build-graph.sh",
"build:graph:rpc": "NETWORK=rpc npm run build:graph",
"build:graph:ropsten": "NETWORK=ropsten npm run build:graph",
"build:graph:staging": "NETWORK=staging npm run build:graph",
"build:graph:rinkeby": "NETWORK=rinkeby npm run build:graph",
"build:graph:mainnet": "NETWORK=mainnet npm run build:graph",
"build:graph:xdai": "NETWORK=xdai npm run build:graph",
"build:manifest": "./scripts/build-manifest.sh",
"build:manifest:rpc": "NETWORK=rpc npm run build:manifest",
"build:manifest:ropsten": "NETWORK=ropsten npm run build:manifest",
"build:manifest:staging": "NETWORK=staging npm run build:manifest",
"build:manifest:rinkeby": "NETWORK=rinkeby npm run build:manifest",
"build:manifest:mainnet": "NETWORK=mainnet npm run build:manifest",
"build:manifest:xdai": "NETWORK=xdai npm run build:manifest",
"codegen": "./scripts/codegen.sh",
"codegen:rpc": "NETWORK=rpc npm run codegen",
"codegen:ropsten": "NETWORK=ropsten npm run codegen",
"codegen:staging": "NETWORK=staging npm run codegen",
"codegen:rinkeby": "NETWORK=rinkeby npm run codegen",
"codegen:mainnet": "NETWORK=mainnet npm run codegen",
"codegen:xdai": "NETWORK=xdai npm run codegen",
"deploy": "./scripts/deploy.sh",
"deploy:rpc": "NETWORK=rpc npm run deploy",
"deploy:ropsten": "NETWORK=ropsten npm run deploy",
"deploy:staging": "NETWORK=staging npm run deploy",
"deploy:rinkeby": "NETWORK=rinkeby npm run deploy",
"deploy:mainnet": "NETWORK=mainnet npm run deploy"
"deploy:xdai": "NETWORK=xdai npm run deploy"
},
"devDependencies": {
"graphqlviz": "^3.1.0"
Expand Down
10 changes: 4 additions & 6 deletions scripts/build-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,19 @@
set -o errexit

# Court known addresses
court_ropsten=
court_staging=
court_rinkeby=0x35e7433141D5f7f2EB7081186f5284dCDD2ccacE
court_mainnet=
court_xdai=0x44E4fCFed14E1285c9e0F6eae77D5fDd0F196f85

# Known block numbers
start_block_ropsten=
start_block_staging=
start_block_rinkeby=8250225
start_block_mainnet=
start_block_xdai=14861364

# Validate network
networks=(rpc ropsten staging rinkeby mainnet)
networks=(rpc staging rinkeby xdai)
if [[ -z $NETWORK || ! " ${networks[@]} " =~ " ${NETWORK} " ]]; then
echo 'Please make sure the network provided is either rpc, ropsten, staging, rinkeby, or mainnet.'
echo 'Please make sure the network provided is either rpc, staging, rinkeby, or xdai.'
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [[ -z "${GRAPHKEY}" ]]; then
fi

# Use custom subgraph name based on target network
if [[ "$NETWORK" != "mainnet" ]]; then
if [[ "$NETWORK" != "xdai" ]]; then
SUBGRAPH_EXT="-${NETWORK}"
else
SUBGRAPH_EXT=""
Expand Down

0 comments on commit cc134de

Please sign in to comment.