Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
123 lines (123 loc) · 4.62 KB
/
Copy pathpackage.json
File metadata and controls
123 lines (123 loc) · 4.62 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
{
"name": "boltz-backend",
"version": "3.3.0",
"description": "Backend of Boltz",
"main": "dist/lib/Boltz.js",
"scripts": {
"postinstall": "npm run precompile",
"proto": "node protos.js",
"precompile": "node parseGitCommit.js",
"compile": "tsc && cross-os postcompile",
"compile:watch": "tsc -w",
"start": "node bin/boltzd",
"dev": "npm run compile && npm run start",
"lint": "eslint --max-warnings 0 --ext .ts .",
"prettier": "npx prettier '{lib,test}/**/*.ts'",
"prettier:write": "npm run prettier -- --write",
"prettier:check": "npm run prettier -- --check",
"docker:build": "docker build . -t boltz/backend:latest -f ./docker/boltz/Dockerfile",
"docker:regtest": "./docker/regtest/startRegtest.sh",
"docker:solidity": "docker run -d --name anvil -p 8545:8545 ghcr.io/foundry-rs/foundry \"anvil --host 0.0.0.0\"",
"docker:solidity:deploy": "cd node_modules/boltz-core && cp -R ../@openzeppelin node_modules/ && npm run deploy:solidity",
"docker:solidity:fund": "./bin/boltz-ethereum send 100000000000 && ./bin/boltz-ethereum send 1000000000 --token",
"docker:start": "npm run docker:regtest && npm run docker:solidity && npm run docker:solidity:deploy && npm run docker:solidity:fund",
"docker:stop": "docker kill regtest && docker rm regtest && docker kill anvil && docker rm anvil",
"test": "npm run test:unit && npm run docker:start && npm run test:int && npm run docker:stop",
"test:nodocker": "npm run test:unit && npm run test:int",
"test:unit": "jest test/unit",
"test:unit:coverage": "jest test/unit --coverage",
"test:int": "jest test/integration --runInBand --testTimeout 10000",
"changelog": "git-cliff -o CHANGELOG.md",
"prepublishOnly": "npm run compile && rm -f dist/package.json",
"python:install": "cd tools && poetry install",
"python:proto": "cd tools && poetry run python -m grpc_tools.protoc -I hold/protos --python_out=hold/protos --pyi_out=hold/protos --grpc_python_out=hold/protos hold/protos/hold.proto",
"python:lint": "cd tools && poetry run ruff *.py hold/ backup/*.py ../docker/*.py",
"python:black": "cd tools && poetry run black . ../docker/",
"python:test": "cd tools && poetry run pytest"
},
"bin": {
"boltzd": "./bin/boltzd",
"boltz-cli": "./bin/boltz-cli"
},
"cross-os": {
"postcompile": {
"linux": "cp package.json dist && cp -R lib/api/static dist/lib/api/static && rsync -am --include '*/' --include '*.js*' --exclude '*' lib/proto/ dist/lib/proto",
"darwin": "cp package.json dist && cp -R lib/api/static dist/lib/api/static && cp -R lib/proto/ dist/lib/proto/"
}
},
"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": ">=16.13.0"
},
"dependencies": {
"@boltz/bolt11": "^1.2.7",
"@google-cloud/storage": "^7.3.1",
"@grpc/grpc-js": "^1.9.7",
"@iarna/toml": "^2.2.5",
"@vulpemventures/secp256k1-zkp": "^3.1.0",
"async-lock": "^1.4.0",
"axios": "^1.5.1",
"bip32": "^4.0.0",
"bip39": "^3.1.0",
"bitcoinjs-lib": "^6.1.5",
"bolt11": "^1.4.1",
"boltz-core": "^1.0.4",
"colors": "^1.4.0",
"cors": "^2.8.5",
"cross-os": "^1.5.0",
"discord.js": "^14.13.0",
"ecpair": "^2.1.0",
"ethers": "^6.8.0",
"express": "^4.18.2",
"google-protobuf": "^3.21.2",
"liquidjs-lib": "^6.0.2-liquid.31",
"node-forge": "^1.3.1",
"node-schedule": "^2.1.1",
"otplib": "^12.0.1",
"prom-client": "^15.0.0",
"sequelize": "^6.33.0",
"slip77": "^0.2.0",
"sqlite3": "^5.1.6",
"tiny-secp256k1": "^2.2.3",
"webdav": "^5.3.0",
"winston": "^3.11.0",
"winston-loki": "^6.0.8",
"yargs": "^17.7.2",
"zeromq": "^5.3.1"
},
"devDependencies": {
"@boltz/bitcoin-ops": "^2.0.0",
"@openzeppelin/contracts": "^5.0.0",
"@types/async-lock": "^1.4.1",
"@types/cors": "^2.8.15",
"@types/express": "^4.17.20",
"@types/jest": "^29.5.6",
"@types/node-forge": "^1.3.8",
"@types/node-schedule": "^2.1.2",
"@types/yargs": "^17.0.29",
"@types/zeromq": "^5.2.4",
"@typescript-eslint/eslint-plugin": "^6.8.0",
"@typescript-eslint/parser": "^6.8.0",
"eslint": "^8.52.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jest": "^27.4.3",
"eslint-plugin-node": "^11.1.0",
"grpc_tools_node_protoc_ts": "^5.3.3",
"grpc-tools": "^1.12.4",
"jest": "29.7.0",
"prettier": "^3.0.3",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typescript": "^5.2.2"
}
}