Skip to content

Commit

Permalink
build: update yarn scripts to use graph hosted service
Browse files Browse the repository at this point in the history
TomAFrench committed Feb 17, 2021
1 parent ad8a634 commit 3597c55
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -8,17 +8,15 @@
"create-local": "graph create --node http://localhost:8020/ TokenUnion/polymarket",
"remove-local": "graph remove --node http://localhost:8020/ TokenUnion/polymarket",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 TokenUnion/polymarket",
"deploy:mainnet": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ TokenUnion/polymarket",
"deploy:mainnet:test": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ tomafrench/polymarket",
"deploy:matic": "graph deploy --node http://ec2-35-160-238-58.us-west-2.compute.amazonaws.com:8020 --ipfs https://ipfs.infura.io:5001 TokenUnion/polymarket",
"deploy:mumbai": "graph deploy --node https://mumbai-graph.matic.today --ipfs https://ipfs.infura.io:5001 TokenUnion/polymarket",
"deploy": "graph deploy $SUBGRAPH --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
"deploy:matic": "SUBGRAPH=TokenUnion/polymarket-matic yarn deploy",
"deploy:matic-staging": "SUBGRAPH=TokenUnion/polymarket-matic-staging yarn deploy",
"deploy:mumbai": "SUBGRAPH=TokenUnion/polymarket-mumbai yarn deploy",
"codegen": "graph codegen --debug --output-dir src/types/",
"prepare:mainnet": "NETWORK_NAME=mainnet ts-node ./templatify.ts && yarn codegen",
"prepare:matic": "NETWORK_NAME=matic ts-node ./templatify.ts && yarn codegen",
"prepare:mumbai": "NETWORK_NAME=mumbai ts-node ./templatify.ts && yarn codegen",
"publish-graph:mainnet": "yarn prepare:mainnet && yarn deploy:mainnet",
"publish-graph:mainnet:test": "yarn prepare:mainnet && yarn deploy:mainnet:test",
"publish-graph:matic": "yarn prepare:matic && yarn deploy:matic",
"publish-graph:matic-staging": "yarn prepare:matic && yarn deploy:matic-staging",
"publish-graph:mumbai": "yarn prepare:mumbai && yarn deploy:mumbai"
},
"repository": {
@@ -57,4 +55,4 @@
"dependencies": {
"@graphprotocol/graph-ts": "^0.18.1"
}
}
}

0 comments on commit 3597c55

Please sign in to comment.