Added missing create command

This commit is contained in:
Tornado Contrib 2024-03-21 19:19:39 +00:00
parent b41c92daae
commit 60cd6cb629
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
2 changed files with 13 additions and 3 deletions

@ -209,12 +209,12 @@ Now navigate to this repository (tornado-subgraph) and run the following command
yarn && yarn generate yarn && yarn generate
# Deploy subgraph on Ethereum Mainnet # Deploy subgraph on Ethereum Mainnet
yarn deploy:tornado-mainnet yarn create:tornado-mainnet && yarn deploy:tornado-mainnet
# Deploy subgraph on BNB Chain # 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 # 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. 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.

@ -38,6 +38,16 @@
"build:tornado-avalanche": "graph build subgraphs/tornado-subgraph-avalanche.yaml", "build:tornado-avalanche": "graph build subgraphs/tornado-subgraph-avalanche.yaml",
"build:tornado-arbitrum": "graph build subgraphs/tornado-subgraph-arbitrum.yaml", "build:tornado-arbitrum": "graph build subgraphs/tornado-subgraph-arbitrum.yaml",
"build:tornado-optimism": "graph build subgraphs/tornado-subgraph-optimism.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": "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: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", "deploy:tornado-bsc": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph-bsc.yaml",