-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathpackage.json
More file actions
65 lines (65 loc) · 3.67 KB
/
package.json
File metadata and controls
65 lines (65 loc) · 3.67 KB
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
{
"name": "@superfluid-finance/subgraph",
"description": "Subgraph for the Superfluid Ethereum contracts.",
"version": "2.2.3",
"dependencies": {
"@graphprotocol/graph-cli": "0.98.1",
"@graphprotocol/graph-ts": "0.38.2",
"@superfluid-finance/sdk-core": "0.9.0",
"mustache": "4.2.0"
},
"devDependencies": {
"@superfluid-finance/metadata": "^1.6.2",
"coingecko-api": "^1.0.10",
"graphql": "^16.12.0",
"graphql-request": "^6.1.0",
"lodash": "^4.17.23",
"matchstick-as": "^0.6.0"
},
"homepage": "https://github.com/superfluid-finance/protocol-monorepo/tree/dev/packages/subgraph",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/superfluid-finance/protocol-monorepo.git",
"directory": "packages/subgraph"
},
"scripts": {
"getAbi": "node scripts/getAbi",
"codegen": "graph codegen",
"build": "graph build",
"testenv:start": "tasks/testenv-ctl.sh start",
"testenv:stop": "tasks/testenv-ctl.sh stop",
"pretest": "yarn testenv:start",
"test": "npx hardhat test",
"matchstick": "run-s matchstick:*",
"matchstick:build-network-config": "npx ts-node scripts/buildNetworkConfig.ts polygon-mainnet",
"matchstick:prepare-manifest": "mustache config/polygon-mainnet.json subgraph.template.yaml > subgraph.yaml",
"matchstick:prepare-addresses": "mustache config/polygon-mainnet.json src/addresses.template.ts > src/addresses.ts",
"matchstick:prepare-generated": "yarn getAbi && yarn codegen && yarn generate-sf-meta-local",
"matchstick:test": "graph test",
"dev": "yarn matchstick && nodemon -e ts -x yarn matchstick:test",
"posttest": "yarn testenv:stop",
"integrity": "npx hardhat run scripts/dataIntegrity/dataIntegrityTest.ts --network",
"check-indexing-completeness": "ts-node scripts/checkIsDeployedOnAllNetworks.ts",
"prepare-manifest-local": "mustache config/hardhat.json subgraph.template.yaml > subgraph.yaml",
"set-network-local": "mustache config/hardhat.json src/addresses.template.ts > src/addresses.ts",
"create-local": "graph create superfluid-test --node http://localhost:8020/",
"remove-local": "graph remove superfluid-test --node http://localhost:8020/",
"deploy-local": "graph deploy superfluid-test --node http://localhost:8020/ --ipfs http://localhost:5001 --version-label v1.0.0",
"prepare-local": "run-s prepare-local:*",
"prepare-local:deploy-contracts": "cd ../ethereum-contracts && npx hardhat run dev-scripts/run-deploy-contracts-and-token.js && cd ../subgraph",
"prepare-local:manifest": "yarn prepare-manifest-local",
"prepare-local:network": "yarn set-network-local",
"prepare-local:abi": "yarn getAbi",
"prepare-local:sf-meta": "yarn generate-sf-meta-local",
"build-and-deploy-local": "yarn codegen && yarn create-local && yarn deploy-local",
"watch": "graph deploy superfluid-test --node http://localhost:8020/ --ipfs http://localhost:5001 --watch",
"lint": "run-s lint:*",
"lint:js-eslint": "eslint . --max-warnings=0 --report-unused-disable-directives && echo '✔ Your .js files look good.'",
"generate-sf-meta": "./tasks/getSFMeta.sh",
"generate-sf-meta-local": "COMMIT_HASH=local CONFIGURATION=local BRANCH=local TAG=local ./tasks/getSFMeta.sh",
"check-updates": "ncu --target minor --dep prod,dev",
"cloc": "cloc src",
"example:deploy-to-goldsky": "GOLDSKY_API_KEY=${YOUR_API_KEY} bash ./tasks/deploy.sh -o goldsky -n ${NETWORK} -r ${TAG} -v ${VERSION}"
}
}