From 60cd6cb629207ea882869cc2db76f7b7438296cc Mon Sep 17 00:00:00 2001 From: Tornado Contrib Date: Thu, 21 Mar 2024 19:19:39 +0000 Subject: [PATCH] Added missing create command --- README.md | 6 +++--- package.json | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1c7ec92..0be7c61 100644 --- a/README.md +++ b/README.md @@ -209,12 +209,12 @@ Now navigate to this repository (tornado-subgraph) and run the following command yarn && yarn generate # Deploy subgraph on Ethereum Mainnet -yarn deploy:tornado-mainnet +yarn create:tornado-mainnet && yarn deploy:tornado-mainnet # Deploy subgraph on BNB Chain -yarn deploy:tornado-bsc +yarn create:tornado-bsc && yarn deploy:tornado-bsc # Can deploy all at once if you have all necessary node connections -yarn deploy:all +yarn create:all && yarn deploy:all ``` You might see some issues about non-existing directories like `build/` or `generated/` the first time you deploy the subgraph. If you do, simply create the directory and re-run the command that failed. diff --git a/package.json b/package.json index 15b0d62..d0d6283 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,16 @@ "build:tornado-avalanche": "graph build subgraphs/tornado-subgraph-avalanche.yaml", "build:tornado-arbitrum": "graph build subgraphs/tornado-subgraph-arbitrum.yaml", "build:tornado-optimism": "graph build subgraphs/tornado-subgraph-optimism.yaml", + "create": "graph create --node http://127.0.0.1:8020/ --ipfs http://127.0.0.1:5001/", + "create:all": "yarn create:tornado-bsc && yarn create:tornado-xdai && yarn create:tornado-matic && yarn create:tornado-mainnet && yarn create:tornado-avalanche && yarn create:tornado-arbitrum && yarn create:tornado-optimism", + "create:tornado-bsc": "yarn create -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph-bsc.yaml", + "create:tornado-xdai": "yarn create -- tornadocash/xdai-tornado-subgraph subgraphs/tornado-subgraph-xdai.yaml", + "create:tornado-matic": "yarn create -- tornadocash/matic-tornado-subgraph subgraphs/tornado-subgraph-matic.yaml", + "create:tornado-mainnet": "yarn create -- tornadocash/mainnet-tornado-subgraph subgraphs/tornado-subgraph-mainnet.yaml", + "create:tornado-goerli": "yarn create -- tornadocash/goerli-tornado-subgraph subgraphs/tornado-subgraph-goerli.yaml", + "create:tornado-avalanche": "yarn create -- tornadocash/avalanche-tornado-subgraph subgraphs/tornado-subgraph-avalanche.yaml", + "create:tornado-arbitrum": "yarn create -- tornadocash/arbitrum-tornado-subgraph subgraphs/tornado-subgraph-arbitrum.yaml", + "create:tornado-optimism": "yarn create -- tornadocash/optimism-tornado-subgraph subgraphs/tornado-subgraph-optimism.yaml", "deploy": "graph deploy --node http://127.0.0.1:8020/ --ipfs http://127.0.0.1:5001/", "deploy:all": "yarn deploy:tornado-bsc && yarn deploy:tornado-xdai && yarn deploy:tornado-matic && yarn deploy:tornado-mainnet && yarn deploy:tornado-avalanche && yarn deploy:tornado-arbitrum && yarn deploy:tornado-optimism", "deploy:tornado-bsc": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph-bsc.yaml",