Skip to content

Commit

Permalink
Add a deployment.json file for the npm publish
Browse files Browse the repository at this point in the history
  • Loading branch information
davekaj committed Aug 22, 2020
1 parent bff97db commit ea48990
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
3 changes: 3 additions & 0 deletions deployment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"subgraphDeploymentID": "QmdnbCVq2EKj24qCa5ibYRGAJWHdhkitTzfv8sySt6xKEa"
}
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
{
"name": "graph-explorer-subgraph",
"name": "@graphprotocol/testnet-subgraph",
"version": "v0.5.0-testnet-phase1",
"description": "Subgraph for the Graph Network",
"repository": "https://github.com/graphprotocol/graph-network-subgraph",
"license": "MIT",
"files": [
"src",
"subgraph.yaml",
"schema.graphql",
"deployment.json"
],
"scripts": {
"prepublishOnly": "yarn && yarn build:ipfs",
"codegen": "graph codegen --output-dir src/types/",
"build": "graph build",
"build:ipfs": "graph build --ipfs https://testnet.thegraph.com/ipfs/",
"deploy-beta": "yarn prepare:kovan && graph deploy graphprotocol/graph-network-beta --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
"deploy-phase1": "yarn prepare:rinkeby && graph deploy graphprotocol/graph-network-rinkeby --ipfs https://testnet.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
"deploy-testing": "yarn prepare:rinkeby && graph deploy davekaj/graph-network-rinkeby-practice --ipfs https://testnet.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/",
"deploy-phase1": "yarn prepare:rinkeby && graph deploy graphprotocol/graph-network-rinkeby --ipfs https://testnet.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ && yarn build:ipfs",
"deploy-testing": "yarn prepare:rinkeby && graph deploy davekaj/graph-network-rinkeby-practice --ipfs https://testnet.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ && yarn build:ipfs",
"prepare:addresses:kovan": "ts-node config/kovanAddressScript.ts && mustache ./config/generatedAddresses.json ./config/addresses.template.ts > ./config/addresses.ts",
"prepare:kovan": "yarn prepare:addresses:kovan && mustache ./config/generatedAddresses.json subgraph.template.yaml > subgraph.yaml && yarn codegen",
"prepare:addresses:rinkeby": "ts-node config/rinkebyAddressScript.ts && mustache ./config/generatedAddresses.json ./config/addresses.template.ts > ./config/addresses.ts",
Expand Down

0 comments on commit ea48990

Please sign in to comment.