-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
61 lines (61 loc) · 3.59 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{
"name": "megagraph",
"version": "1.0.0",
"description": "This package contains subgraph DeFi protocols that opty.fi's earn protocol integrates natively",
"author": "Opty-Fi <[email protected]>",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/Opty-Fi/megagraph"
},
"scripts": {
"lint": "yarn run lint:ts",
"lint:ts": "eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .js,.ts",
"prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,ts}\"",
"prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,ts}\"",
"build": "yarn mustache-yaml && yarn codegen && yarn graph build",
"build:dev": "yarn mustache-yaml:dev && yarn codegen && yarn graph build",
"setup": "yarn mustache-yaml && yarn codegen && yarn graph-auth && yarn deploy",
"setup:dev": "yarn mustache-yaml:dev && yarn codegen && yarn deploy:local",
"setup:local": "yarn mustache-yaml && yarn codegen && yarn deploy:local",
"setup:all": "yarn setup:ethereum && yarn setup:polygon && yarn setup:avalanche && yarn setup:fantom",
"setup:avalanche": "./node_modules/.bin/dotenv -- ./script/setup-avalanche.sh",
"setup:ethereum": "./node_modules/.bin/dotenv -- ./script/setup-ethereum.sh",
"setup:fantom": "./node_modules/.bin/dotenv -- ./script/setup-fantom.sh",
"setup:polygon": "./node_modules/.bin/dotenv -- ./script/setup-polygon.sh",
"mustache-yaml": "./node_modules/.bin/dotenv -- yarn mustache-yaml-replace",
"mustache-yaml-replace": "mustache ./src/${ADAPTER}/config/${CONFIG}.json subgraph.template.yaml > subgraph.yaml",
"mustache-yaml:dev": "./node_modules/.bin/dotenv -- yarn mustache-yaml-replace:dev",
"mustache-yaml-replace:dev": "./node_modules/node-jq/bin/jq 'del(.contracts | .[] | .instances | .[] | .startBlock)' ./src/${ADAPTER}/config/${CONFIG}.json > ./src/${ADAPTER}/config/${CONFIG}-dev.json && mustache ./src/${ADAPTER}/config/${CONFIG}-dev.json subgraph.template.yaml > subgraph.yaml",
"postmustache-yaml-replace": "cp src/${ADAPTER}/schema.graphql schema.graphql",
"postmustache-yaml-replace:dev": "cp src/${ADAPTER}/schema.graphql schema.graphql",
"codegen": "rm -rf build generated && graph codegen",
"postcodegen": "./node_modules/.bin/dotenv -- ./script/add-symlinks.sh",
"graph-auth": "./node_modules/.bin/dotenv -- yarn graph-auth-replace",
"graph-auth-replace": "graph auth https://api.thegraph.com/deploy/ $ACCESS_TOKEN",
"deploy": "./node_modules/.bin/dotenv -- yarn graph-deploy-replace",
"graph-deploy-replace": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ $SLUG",
"deploy:local": "yarn graph-create-local && yarn graph-deploy-local",
"graph-create-local": "./node_modules/.bin/dotenv -- yarn graph-create-local-replace",
"graph-create-local-replace": "graph create --node http://localhost:8020/ $SLUG",
"graph-deploy-local": "./node_modules/.bin/dotenv -- yarn graph-deploy-local-replace",
"graph-deploy-local-replace": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001/ $SLUG"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.20.1",
"@graphprotocol/graph-ts": "^0.20.1",
"@types/node": "^16.11.11",
"dotenv": "^10.0.0",
"dotenv-cli": "^4.1.1",
"mustache": "^4.2.0",
"node-jq": "^2.1.0",
"typescript": "^4.5.2"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.5.0",
"@typescript-eslint/parser": "^5.5.0",
"eslint": "^8.4.0",
"eslint-config-prettier": "^8.3.0",
"prettier": "^2.5.1"
}
}