forked from Polymarket/polymarket-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
92 lines (92 loc) · 5.53 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"name": "polymarket-subgraph-common",
"version": "1.0.0",
"description": "Common utils for polymarket subgraphs",
"scripts": {
"auth": "graph auth https://api.thegraph.com/deploy/",
"build": "graph build --help",
"create-local": "graph create --node http://localhost:8020/ TokenUnion/polymarket",
"remove-local": "graph remove --node http://localhost:8020/ TokenUnion/polymarket",
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 TokenUnion/polymarket ./pnl-subgraph/subgraph.yaml",
"deploy": "graph deploy $SUBGRAPH --ipfs https://api.thegraph.com/ipfs/ --node https://api.thegraph.com/deploy/ --access-token $ACCESS_TOKEN",
"create": "graph create $SUBGRAPH --node $NODE_URL",
"create:self-hosted": "graph create --node $NODE_URL $SUBGRAPH",
"deploy:self-hosted": "graph deploy --node $NODE_URL --ipfs https://ipfs.network.thegraph.com/ $SUBGRAPH",
"deploy:self": "graph deploy $SUBGRAPH --ipfs https://ipfs.infura.io:5001/ --node $NODE_URL --access-token $ACCESS_TOKEN",
"deploy:matic": "SUBGRAPH=TokenUnion/polymarket-matic yarn deploy",
"deploy:matic-backup": "SUBGRAPH=polymarket/polymarket-matic-backup NODE_URL=http://ec2-54-185-99-202.us-west-2.compute.amazonaws.com:8020/ yarn deploy:self",
"deploy:matic-staging": "SUBGRAPH=TokenUnion/polymarket-matic-staging yarn deploy",
"deploy:matic-trading": "SUBGRAPH=Polymarket/polymarket-matic-trading yarn deploy",
"deploy:matic-backup-two": "SUBGRAPH=polymarket/matic-markets-5 yarn deploy",
"deploy:mumbai": "SUBGRAPH=TokenUnion/polymarket-mumbai yarn deploy",
"prepare:mainnet": "NETWORK_NAME=mainnet ts-node ./templatify.ts && yarn codegen",
"prepare:matic": "NETWORK_NAME=matic ts-node ./templatify.ts matic && yarn codegen",
"prepare:mumbai": "NETWORK_NAME=mumbai ts-node ./templatify.ts && yarn codegen",
"publish-graph:matic": "yarn prepare:matic && yarn deploy:matic",
"publish-graph:matic-backup": "yarn prepare:matic && yarn deploy:matic-backup",
"publish-graph:matic-staging": "yarn prepare:matic && yarn deploy:matic-staging",
"publish-graph:matic-trading": "yarn prepare:matic && yarn deploy:matic-trading",
"publish-graph:matic-backup-two": "yarn prepare:matic && yarn deploy:matic-backup-two",
"publish-graph:mumbai": "yarn prepare:mumbai && yarn deploy:mumbai",
"test": "RUST_BACKTRACE=full graph test",
"templatify:matic": "ts-node ./templatify.ts matic",
"activity:codegen": "graph codegen ./activity-subgraph/subgraph.yaml --output-dir ./activity-subgraph/src/types",
"activity:build": "graph build ./activity-subgraph/subgraph.yaml",
"activity:create-local": "graph create --node http://localhost:8020/ activity-subgraph",
"activity:deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 activity-subgraph ./activity-subgraph/subgraph.yaml",
"activity:deploy-graph": "graph deploy --studio polymarket-activity ./activity-subgraph/subgraph.yaml",
"pnl:codegen": "graph codegen ./pnl-subgraph/subgraph.yaml --output-dir ./pnl-subgraph/src/types",
"pnl:build": "graph build ./pnl-subgraph/subgraph.yaml",
"pnl:create-local": "graph create --node http://localhost:8020/ pnl-subgraph",
"pnl:deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 pnl-subgraph ./pnl-subgraph/subgraph.yaml",
"pnl:deploy-graph": "graph deploy --studio polymarket-profit-and-loss ./pnl-subgraph/subgraph.yaml",
"oi:codegen": "graph codegen ./oi-subgraph/subgraph.yaml --output-dir ./oi-subgraph/src/types",
"oi:build": "graph build ./oi-subgraph/subgraph.yaml",
"oi:create-local": "graph create --node http://localhost:8020/ oi-subgraph",
"oi:deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 oi-subgraph ./oi-subgraph/subgraph.yaml",
"oi:remove-local": "graph remove --node http://localhost:8020/ oi-subgraph",
"oi:deploy-graph": "graph deploy --studio polymarket-open-interest ./oi-subgraph/subgraph.yaml",
"polymarket:codegen": "graph codegen ./polymarket-subgraph/subgraph.yaml --output-dir ./polymarket-subgraph/src/types",
"polymarket:build": "graph build ./polymarket-subgraph/subgraph.yaml",
"polymarket:create-local": "graph create --node http://localhost:8020/ polymarket-subgraph",
"polymarket:deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 polymarket-subgraph ./polymarket-subgraph/subgraph.yaml",
"polymarket:deploy-graph": "graph deploy --studio polymarket ./polymarket-subgraph/subgraph.yaml"
},
"repository": {
"type": "git",
"url": "git+https://github.com/TokenUnion/polymarket-subgraph.git"
},
"contributors": [
{
"name": "Tom French",
"url": "https://github.com/tomafrench"
},
{
"name": "Gnosis",
"url": "https://gnosis.io"
}
],
"license": "LGPL-3.0",
"bugs": {
"url": "https://github.com/TokenUnion/polymarket-subgraph/issues"
},
"homepage": "https://github.com/TokenUnion/polymarket-subgraph#readme",
"devDependencies": {
"@as-pect/cli": "^8.1.0",
"@goldskycom/cli": "^7.4.0",
"@graphprotocol/graph-cli": "^0.86.0",
"@graphprotocol/graph-ts": "^0.35.1",
"@types/fs-extra": "^9.0.13",
"@types/js-yaml": "^4.0.5",
"eslint": "^8.24.0",
"eslint-config-airbnb-typescript-prettier": "^5.0.0",
"fs-extra": "^10.1.0",
"handlebars": "^4.7.7",
"js-yaml": "^4.1.0",
"matchstick-as": "^0.6.0",
"path": "^0.12.7",
"prettier": "^2.7.1",
"ts-node": "^9.1.1",
"typescript": "^3.9.7"
}
}