From 93d9875e6639fdf0f52a0bb2a98f34c950e91598 Mon Sep 17 00:00:00 2001 From: nikdementev Date: Thu, 10 Jun 2021 12:44:05 +0300 Subject: [PATCH] feat: env for access token --- .env.example | 2 ++ .gitignore | 1 + package.json | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .env.example diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..a459674 --- /dev/null +++ b/.env.example @@ -0,0 +1,2 @@ +# access token +# 23457f58696f04444d2376ed2cfs441xc diff --git a/.gitignore b/.gitignore index 5c98cea..6d810a0 100644 --- a/.gitignore +++ b/.gitignore @@ -63,6 +63,7 @@ typings/ build .vscode .idea +.env generated .DS_Store diff --git a/package.json b/package.json index 3e9c9be..c2a461e 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "codegen:tornado": "yarn yaml:tornado && yarn codegen -- subgraphs/tornado-subgraph.yaml", "build": "graph build", "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" }, "dependencies": {