forked from BoltzExchange/boltz-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 6.12 KB
/
Copy pathpackage.json
File metadata and controls
144 lines (144 loc) · 6.12 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
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "boltz-backend",
"version": "3.13.0",
"description": "Backend of Boltz",
"main": "dist/lib/Boltz.js",
"scarfSettings": {
"enabled": false
},
"scripts": {
"postinstall": "node parseGitCommit.js && npm run proto && npm run generate:typechain",
"proto": "node protos.js",
"generate:typechain": "node generateTypechain.js",
"compile": "npm run compile:rust && npm run compile:typescript",
"compile:release": "npm run compile:rust:release && npm run compile:typescript",
"compile:typescript": "node parseGitCommit.js && npm run swagger && tsc --project tsconfig.build.json && npm run postcompile",
"postcompile": "cp package.json dist && cp -R lib/api/static dist/lib/api/static && cp swagger-spec.json dist/lib/api/static",
"compile:typescript:test": "tsc --project tsconfig.test.json",
"compile:rust": "cargo build",
"compile:rust:release": "cargo build --release",
"swagger": "node swagger.js",
"swagger:validate": "cd tools && uv sync && uv run openapi-spec-validator ../swagger-spec.json",
"swagger:ui": "docker run --rm -p 8082:8080 -e SWAGGER_JSON=/boltz-backend/swagger-spec.json -v .:/boltz-backend swaggerapi/swagger-ui",
"compile:watch": "tsc -w --project tsconfig.build.json",
"start": "node bin/boltzd",
"dev": "npm run compile && npm run start",
"lint": "eslint --max-warnings 0 --concurrency auto --cache --cache-location node_modules/.cache/eslint/ .",
"prettier": "npx prettier --cache --cache-location node_modules/.cache/prettier/cache '{lib,test}/**/*.ts' lib/api/static bin docs boltzr/migrations/**/*.sql .github README.md '*/README.md'",
"prettier:write": "npm run prettier -- --write",
"prettier:check": "npm run prettier -- --check",
"regtest:start:ci": "sh -c 'cd \"$1\" && COMPOSE_PROFILES=backend-dev ./start.sh' -- \"${BOLTZ_REGTEST:-regtest}\" && npm run regtest:db:setup && npm run regtest:solidity:deploy",
"regtest:start": "npm run regtest:start:ci && npm run regtest:solidity:fund && npm run docker:nginx",
"regtest:stop": "sh -c 'cd \"$1\" && COMPOSE_PROFILES=backend-dev ./stop.sh' -- \"${BOLTZ_REGTEST:-regtest}\" && npm run docker:nginx:stop",
"regtest:db:setup": "docker exec boltz-postgres sh -c \"sleep 5 && psql -U boltz -tc \\\"SELECT 1 FROM pg_database WHERE datname = 'boltz_test'\\\" | grep -q 1 || psql -U boltz -c \\\"CREATE DATABASE boltz_test\\\"\"",
"regtest:solidity:deploy": "./tools/install-boltz-core-solidity-libs.sh && cd node_modules/boltz-core && PERMIT2_ADDRESS=0x000000000022D473030F116dDEE9F6B43aC78BA3 npm run deploy:solidity",
"regtest:solidity:fund": "./target/debug/boltzr-cli evm -p 0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d send $(./target/debug/boltzr-cli evm address) 100.0",
"docker:nginx": "docker run -d --rm --name boltz-nginx --network host -v ./docker/nginx.conf:/etc/nginx/conf.d/nginx.conf:z nginx:stable",
"docker:nginx:stop": "docker stop boltz-nginx",
"test:unit": "GRPC_NODE_VERBOSITY=NONE jest --testTimeout 10000 test/unit",
"changelog": "git-cliff -o CHANGELOG.md",
"prepublishOnly": "npm run compile && rm -f dist/package.json",
"docs:setup": "node docs/setup.js",
"docs:dev": "npm run docs:setup && vitepress dev docs",
"docs:build": "npm run docs:setup && vitepress build docs",
"docs:preview": "vitepress preview docs"
},
"bin": {
"boltzd": "./bin/boltzd"
},
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "git+https://github.com/BoltzExchange/boltz-backend"
},
"files": [
"bin",
"LICENSE",
"README.md",
"dist/**/!(tsconfig.tsbuildinfo)"
],
"engines": {
"node": ">=22.4"
},
"dependencies": {
"@bufbuild/protobuf": "^2.12.1",
"@grpc/grpc-js": "^1.14.4",
"@iarna/toml": "^2.2.5",
"@noble/curves": "^2.2.0",
"@noble/hashes": "^2.2.0",
"@opentelemetry/api": "^1.9.1",
"@opentelemetry/exporter-trace-otlp-grpc": "^0.219.0",
"@opentelemetry/instrumentation-express": "^0.67.0",
"@opentelemetry/instrumentation-grpc": "^0.219.0",
"@opentelemetry/instrumentation-http": "^0.219.0",
"@opentelemetry/instrumentation-pg": "^0.71.0",
"@opentelemetry/instrumentation-winston": "^0.63.0",
"@opentelemetry/sdk-node": "^0.221.0",
"@pyroscope/nodejs": "^0.4.13",
"@scure/base": "^2.2.0",
"@scure/bip32": "^2.2.0",
"@scure/bip39": "^2.2.0",
"@scure/btc-signer": "^2.2.0",
"@vulpemventures/secp256k1-zkp": "^3.2.1",
"async-lock": "^1.4.1",
"boltz-core": "^5.0.0",
"colors": "^1.4.0",
"ethers": "^6.17.0",
"express": "^5.2.1",
"jose": "^6.2.8",
"liquidjs-lib": "^6.0.2-liquid.38",
"node-forge": "^1.4.0",
"node-schedule": "^2.1.1",
"pg": "^8.22.0",
"prom-client": "^15.1.3",
"redis": "^6.0.0",
"sequelize": "^6.37.8",
"swagger-ui-dist": "^5.32.7",
"winston": "^3.19.0",
"winston-loki": "^6.1.4",
"yargs": "^18.0.0"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@openzeppelin/contracts": "^5.6.1",
"@swc-contrib/mut-cjs-exports": "^14.14.0",
"@swc/core": "^1.15.43",
"@swc/jest": "^0.2.39",
"@trivago/prettier-plugin-sort-imports": "^6.0.2",
"@typechain/ethers-v6": "^0.5.1",
"@types/async-lock": "^1.4.2",
"@types/express": "^5.0.6",
"@types/jest": "^30.0.0",
"@types/node-forge": "^1.3.14",
"@types/node-schedule": "^2.1.8",
"@types/pg": "^8.20.0",
"@types/yargs": "^17.0.35",
"bolt11": "^1.4.1",
"eslint": "^9.39.2",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jest": "^29.15.2",
"eslint-plugin-n": "^18.1.0",
"git-cliff": "^2.13.1",
"globals": "^17.7.0",
"google-proto-files": "^5.0.2",
"grpc-tools": "^1.13.1",
"jest": "^30.4.2",
"prettier": "^3.8.4",
"prettier-plugin-sql": "^0.20.0",
"sqlite3": "^6.0.1",
"swagger-jsdoc": "^6.3.0",
"ts-proto": "^2.11.8",
"typechain": "^8.3.2",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.0",
"vitepress": "^1.6.4",
"vitepress-plugin-llms": "^1.13.2"
},
"optionalDependencies": {
"@types/nodemailer": "^8.0.1",
"nodemailer": "^9.0.1"
},
"overrides": {
"protobufjs": "^7.6.5"
}
}