feat: env for access token

This commit is contained in:
nikdementev 2021-06-10 12:44:05 +03:00 committed by 0xZick 地方分権化
parent d4b1ecbcb1
commit 93d9875e66
3 changed files with 4 additions and 1 deletions

2
.env.example Normal file

@ -0,0 +1,2 @@
# access token
# 23457f58696f04444d2376ed2cfs441xc

1
.gitignore vendored

@ -63,6 +63,7 @@ typings/
build build
.vscode .vscode
.idea .idea
.env
generated generated
.DS_Store .DS_Store

@ -9,7 +9,7 @@
"codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml", "codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml",
"build": "graph build", "build": "graph build",
"build:tornado": "graph build subgraphs/tornado-subgraph.yaml", "build:tornado": "graph build subgraphs/tornado-subgraph.yaml",
"deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ tornadocash/bsc-tornado-subgraph", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ $(echo $(cat .env))",
"deploy:tornado": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph.yaml" "deploy:tornado": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph.yaml"
}, },
"dependencies": { "dependencies": {