forked from GaloyMoney/blink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
97 lines (97 loc) · 4.9 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
93
94
95
96
97
{
"name": "galoy",
"scripts": {
"lint": "tslint --project tsconfig.json",
"build": "tsc -p tsconfig-build.json && cp -R src/protos lib && cp src/schema.graphql lib",
"start": "yarn build && source ./exportLocal.sh && node lib/entrypoint/graphql.js | pino-pretty -c -l",
"trigger": "yarn build && source ./exportLocal.sh && node lib/entrypoint/trigger.js | pino-pretty -c -l",
"test": "export JEST_JUNIT_OUTPUT_DIR=\"./artifacts\" && jest --ci --reporters=default --reporters=jest-junit --forceExit",
"watch": "nodemon -V -e ts,graphql -w ./src -x yarn run start",
"watch-trigger": "nodemon -V -e ts,graphql -w ./src -x yarn trigger",
"kill-graphql": "kill $(lsof -t -i:4000)",
"remove-charts": "helm uninstall lnd | helm uninstall lnd-outside-1 | helm uninstall lnd-outside-2 | helm uninstall bitcoind | helm uninstall galoy",
"add-charts": "export LOCAL=true && source ./exportLocal.sh && ./initLocalTest.sh",
"forward-mongodb": "kubectl port-forward $(kubectl get pods -l app.kubernetes.io/name=mongodb | awk '/mongo/ {print $1}') 27017",
"test-local-restart": "./deletePods.sh && source ./exportLocal.sh && yarn run test-local",
"restart-charts": "yarn use-minikube && yarn remove-charts || : && sleep 5 && yarn run add-charts",
"use-minikube": "kubectl config use-context minikube",
"test-local-clean": "yarn run restart-charts && yarn jest --clearCache && yarn run test-local",
"test-local": "yarn use-minikube && source ./exportLocal.sh && yarn jest --runInBand --verbose $TEST | pino-pretty -c -l",
"cron": "yarn build && source exportLocal.sh && node src/entrypoint/cron.js",
"exporter": "yarn build && source exportLocal.sh && node src/entrypoint/exporter.js",
"lnd-connection": "source exportLocal.sh && echo $MACAROON | base64 -d > ./macaroon && echo $TLS | base64 -d > ./tls.cert && lncli --network regtest --macaroonpath=./macaroon --tlscertpath=./tls.cert --rpcserver=${LNDIP}:${LNDRPCPORT} getinfo",
"lncli": "source exportLocal.sh && echo $MACAROON | base64 -d > ./macaroon && echo $TLS | base64 -d > ./tls.cert && lncli --network regtest --macaroonpath=./macaroon --tlscertpath=./tls.cert --rpcserver=${LNDIP}:${LNDRPCPORT}",
"postman": "yarn node src/postman/newman.ts",
"bitcoin-cli": "source ./exportLocal.sh && kubectl exec bitcoind-0 -- bitcoin-cli -rpcuser=rpcuser -rpcpassword=$BITCOINDRPCPASS -regtest",
"update-postman": "curl --location --request GET \"https://api.getpostman.com/collections/4e3fee88-7267-44e1-a316-b81e90b0bd2b\" --header \"X-Api-Key: $POSTMANAPIKEY\" | jq . > src/postman/graphql.postman_collection.json",
"autocannon-rn-no-auth": "yarn autocannon https://graphql.testnet.galoy.io:443/graphql -m POST -H Content-Type=application/json -b '{\"query\":\"query gql_query_anonymous {\n prices {\n __typename\n id\n o\n }\n earnList {\n __typename\n id\n value\n }\n maps {\n __typename\n id\n title\n coordinate {\n __typename\n latitude\n longitude\n }\n }\n}\",\"variables\":{}}' -c 20 -d 10"
},
"engines": {
"node": "14"
},
"main": "src/index.js",
"dependencies": {
"@google-cloud/storage": "^5.3.0",
"@grpc/grpc-js": "^1.2.11",
"@grpc/proto-loader": "^0.5.6",
"@profusion/apollo-validation-directives": "^2.1.3",
"apollo-server-express": "^2.21.2",
"axios": "^0.21.1",
"bitcoin-core": "^3.0.0",
"bluebird": "^3.7.2",
"ccxt": "^1.36.95",
"csv-writer": "^1.6.0",
"dotenv": "^8.2.0",
"dropbox": "^8.2.0",
"express": "^4.17.1",
"express-jwt": "^6.0.0",
"firebase-admin": "^9.3.0",
"graphql": "^14.5.0",
"graphql-middleware": "^6.0.10",
"graphql-shield": "^7.5.0",
"graphql-tools": "^7.0.5",
"invoices": "https://github.com/nicolasburtey/invoices#master",
"ioredis": "^4.27.3",
"js-yaml": "^4.0.0",
"jsonwebtoken": "^8.5.1",
"lightning": "^3.3.5",
"ln-service": "^51.5.0",
"lodash": "^4.17.21",
"medici": "^4.0.1",
"moment": "^2.29.1",
"mongoose": "^5.10.11",
"node-cache": "^5.1.2",
"pino": "^6.7.0",
"pino-http": "^5.3.0",
"prom-client": "^12.0.0",
"rate-limiter-flexible": "^2.2.2",
"redlock": "^4.2.0",
"swagger-stats": "^0.95.18",
"twilio": "^3.50.0",
"uuid": "^8.3.1"
},
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/preset-env": "^7.12.1",
"@jest/test-sequencer": "^26.6.1",
"@types/graphql": "^14.5.0",
"@types/ioredis": "^4.26.4",
"@types/jest": "^26.0.19",
"@types/lodash": "^4.14.163",
"@types/node": "^14.14.6",
"@types/uuid": "^8.3.0",
"apollo-server-testing": "^2.23.0",
"autocannon": "^6.5.0",
"bolt07": "^1.6.0",
"jest": "^26.6.1",
"jest-junit": "^12.0.0",
"newman": "^5.2.3",
"pino-pretty": "^4.3.0",
"ts-jest": "^26.4.3",
"ts-node": "^9.0.0",
"tsconfig-paths": "^3.9.0",
"tslint": "^6.1.3",
"typescript": "^4.0.5"
},
"private": true
}