forked from ExchangeUnion/xud
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
232 lines (232 loc) · 11.2 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
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
{
"name": "xud",
"minCompatibleVersion": "1.0.0-rc.1",
"version": "1.2.0",
"description": "Exchange Union Daemon",
"main": "lib/Xud.js",
"bin": {
"xud": "./bin/xud",
"xucli": "./bin/xucli"
},
"scripts": {
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
"config": "gulp config.create",
"postinstall": "npm run precompile",
"precompile": "node parseGitCommit.js",
"compile": "npm run precompile && tsc && cross-os postcompile",
"compile:dev": "npm run precompile && tsc --incremental --tsBuildInfoFile ./dist/.tsbuildinfo && cross-os postcompile",
"compile:seedutil": "(cd seedutil && export PATH=\"$PWD/go/bin:$PATH\" && GOPATH=$PWD/go GO111MODULE=on go build -v)",
"compile:watch": "tsc -w",
"dev": "npm run compile:dev && npm start",
"dev:watch": "concurrently --kill-others \"npm run compile:watch\" \"npm run nodemon:watch\"",
"dev:watch:inspect": "concurrently --kill-others \"npm run compile:watch\" \"npm run nodemon:watch:inspect\"",
"lint": "tslint --fix --project tsconfig.json && tslint --fix --config tslint-alt.json 'bin/*' 'test/**/*.ts' 'tasks/**/*.ts'",
"lintNoFix": "tslint --project tsconfig.json && tslint --config tslint-alt.json 'bin/*' 'test/**/*.ts' 'tasks/**/*.ts'",
"nodemon:watch": "nodemon --watch dist -e js dist/Xud.js",
"nodemon:watch:inspect": "nodemon --inspect-brk --watch dist -e js dist/Xud.js",
"prepublishOnly": "cross-os clean && npm run compile",
"proto": "cross-os proto && cross-os swagger && cross-os protodocs && cross-os prototest && cross-os protoFixDeprecation",
"slate": "proto2slate proto/xudrpc.proto",
"start": "node dist/Xud.js",
"stop": "cross-os stop",
"test": "npm run test:unit && npm run test:crypto && npm run test:int && npm run test:p2p && npm run test:jest",
"test:int": "mocha --timeout 10000 -r ts-node/register test/integration/*",
"test:int:watch": "mocha --timeout 10000 -r ts-node/register test/integration/* --watch --watch-extensions ts",
"test:unit": "mocha --timeout 10000 -r ts-node/register test/unit/*",
"test:unit:watch": "mocha --timeout 10000 -r ts-node/register test/unit/* --watch --watch-extensions ts",
"test:p2p": "mocha --timeout 10000 -r ts-node/register test/p2p/*",
"test:p2p:watch": "mocha --timeout 10000 -r ts-node/register test/p2p/* --watch --watch-extensions ts",
"test:crypto": "mocha --timeout 10000 -r ts-node/register test/crypto/*",
"test:sim": "(npm run test:sim:build && npm run test:sim:run)",
"test:sim:build": "(npm run test:sim:compile:xud && npm run test:sim:compile:custom-xud && cd test/simulation && ./docker-build.sh)",
"test:sim:build:test": "(cd test/simulation && ./docker-build.sh test)",
"test:sim:build:xud": "(npm run test:sim:compile:xud && npm run test:sim:compile:custom-xud && cd test/simulation && ./docker-build.sh xud)",
"test:sim:build:lnd": "(cd test/simulation && ./docker-build.sh lnd)",
"test:sim:build:connext": "(cd test/simulation && ./docker-build.sh connext)",
"test:sim:run": "(cd test/simulation && ./docker-run.sh)",
"test:sim:run:integration": "(cd test/simulation && ./docker-run.sh TestIntegration)",
"test:sim:run:instability": "(cd test/simulation && ./docker-run.sh TestInstability)",
"test:sim:run:security": "(cd test/simulation && ./docker-run.sh TestSecurity)",
"test:sim:compile:xud": "(npm run compile && mkdir -p test/simulation/docker-xud/xud && cp -a dist test/simulation/docker-xud/xud && cp -a bin test/simulation/docker-xud/xud && cp package.json test/simulation/docker-xud/xud)",
"test:sim:compile:custom-xud": "(npm run test:sim:custom-xud:apply && npm run compile && mkdir -p test/simulation/docker-xud/custom-xud/dist && npm run test:sim:custom-xud:reverse && cp -a dist test/simulation/docker-xud/custom-xud && cp -a bin test/simulation/docker-xud/custom-xud && cp package.json test/simulation/docker-xud/custom-xud)",
"test:sim:custom-xud:patch": "git diff -- . ':(exclude)test/simulation/custom-xud.patch' > test/simulation/custom-xud.patch",
"test:sim:custom-xud:apply": "git apply --reject test/simulation/custom-xud.patch",
"test:sim:custom-xud:reverse": "git apply -R test/simulation/custom-xud.patch",
"test:sim:clean": "(cd test/simulation && ./docker-clean.sh)",
"test:sim:clean:indra": "rm -rf test/simulation/temp/indra",
"test:sim:clean:xud": "(cd test/simulation && ./docker-clean.sh xud)",
"test:sim:clean:lnd": "(cd test/simulation && ./docker-clean.sh lnd)",
"test:sim:clean:connext": "(cd test/simulation && ./docker-clean.sh connext)",
"test:sim:clean:custom-xud": "(cd test/simulation && ./docker-clean.sh custom-xud)",
"test:sim:logs": "cd test/simulation && ./logs.sh",
"test:jest": "jest --unhandled-rejections=strict --rootDir test/jest",
"test:seedutil": "jest --rootDir seedutil",
"test:jest:watch": "jest --watch",
"typedoc": "typedoc --out typedoc --module commonjs --target es6 lib --readme none",
"preversion": "npm run lintNoFix && npm test && npm run test:sim:build && npm run test:sim",
"postversion": "npm run compile",
"version": "npm run config && npm run changelog && git add sample-xud.conf CHANGELOG.md && npm run typedoc && npm run slate"
},
"cross-os": {
"clean": {
"linux": "rm -rf ./dist",
"darwin": "rm -rf ./dist",
"win32": "rd /q /s dist || cd ."
},
"postcompile": {
"linux": "rsync -am --include '*/' --include '*.js*' --exclude '*' lib/proto/ dist/proto",
"darwin": "rsync -am --include '*/' --include '*.js*' --exclude '*' lib/proto/ dist/proto",
"win32": "xcopy /s lib\\proto\\*.js* dist\\proto\\* >nul"
},
"protoFixDeprecation": {
"linux": "sed -i -- 's/new Buffer(/Buffer.from(/g' lib/proto/*.js",
"darwin": "sed -i '' 's/new Buffer(/Buffer.from(/g' lib/proto/*.js",
"win32": "@powershell -NoProfile -ExecutionPolicy Unrestricted -Command ./winFixDeprecation.ps1"
},
"proto": {
"linux": "grpc_tools_node_protoc --js_out='import_style=commonjs,binary:lib/proto' --ts_out='lib/proto' --grpc_out='lib/proto' --plugin='protoc-gen-ts=node_modules/.bin/protoc-gen-ts' -I='proto' proto/*.proto proto/google/api/*.proto proto/google/protobuf/*.proto",
"darwin": "grpc_tools_node_protoc --js_out='import_style=commonjs,binary:lib/proto' --ts_out='lib/proto' --grpc_out='lib/proto' --plugin='protoc-gen-ts=node_modules/.bin/protoc-gen-ts' -I='proto' proto/*.proto proto/google/api/*.proto proto/google/protobuf/*.proto",
"win32": "grpc_tools_node_protoc --js_out=\"import_style=commonjs,binary:lib\\proto\" --ts_out=\"lib\\proto\" --grpc_out=\"lib\\proto\" --plugin=\"protoc-gen-ts=node_modules\\.bin\\protoc-gen-ts.cmd\" -I=\"proto\" proto\\xudrpc.proto proto\\xudp2p.proto proto\\lndrpc.proto proto\\lndinvoices.proto proto\\annotations.proto proto\\google\\api\\http.proto proto\\google\\protobuf\\descriptor.proto"
},
"swagger": {
"linux": "./node_modules/grpc-tools/bin/protoc --swagger_out='lib/proto' -I='proto' proto/xudrpc.proto",
"darwin": "./node_modules/grpc-tools/bin/protoc --swagger_out='lib/proto' -I='proto' proto/xudrpc.proto",
"win32": "node_modules\\grpc-tools\\bin\\protoc --swagger_out=\"lib\\proto\" -I=\"proto\" proto\\xudrpc.proto"
},
"protodocs": {
"linux": "./node_modules/grpc-tools/bin/protoc --doc_out='docs' --doc_opt=markdown,api.md -I='proto' proto/xudrpc.proto",
"darwin": "./node_modules/grpc-tools/bin/protoc --doc_out='docs' --doc_opt=markdown,api.md -I='proto' proto/xudrpc.proto",
"win32": "node_modules\\grpc-tools\\bin\\protoc --doc_out=\"docs\" --doc_opt=markdown,api.md -I=\"proto\" proto\\xudrpc.proto"
},
"prototest": {
"linux": "./node_modules/grpc-tools/bin/protoc --go_out='plugins=grpc:test/simulation/xudrpc' -I='proto' proto/xudrpc.proto",
"darwin": "./node_modules/grpc-tools/bin/protoc --go_out='plugins=grpc:test/simulation/xudrpc' -I='proto' proto/xudrpc.proto",
"win32": "node_modules\\grpc-tools\\bin\\protoc --go_out=\"plugins=grpc:test\\simulation\\xudrpc\" -I=\"proto\" proto\\xudrpc.proto"
},
"stop": {
"linux": "./bin/xucli shutdown",
"darwin": "./bin/xucli shutdown",
"win32": "node bin\\xucli shutdown"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/ExchangeUnion/xud.git"
},
"keywords": [
"Exchange Union",
"XU",
"xud",
"OpenDEX",
"OpenDEX Network",
"bitcoin",
"litecoin",
"ethereum",
"cryptocurrency",
"lightning",
"lightning network",
"connext",
"connext network",
"payment channels",
"atomic swaps",
"cross-chain",
"DEX",
"decentralized exchange"
],
"author": "Daniel McNally <[email protected]>",
"contributors": [
"Moshe Shababo",
"Balamurali Pandranki <[email protected]> (https://balamurali.me)",
"michael1011",
"Karl Ranna <[email protected]>"
],
"license": "AGPL-3.0",
"bugs": {
"url": "https://github.com/ExchangeUnion/xud/issues"
},
"homepage": "https://github.com/ExchangeUnion/xud#readme",
"files": [
"npm-shrinkwrap.json",
"bin",
"dist/**/!(.tsbuildinfo)",
"tasks",
".env",
"README.md",
"LICENSE"
],
"dependencies": {
"@ethersproject/solidity": "5.0.3",
"@exchangeunion/grpc-dynamic-gateway": "^0.3.10",
"bip39": "3.0.2",
"body-parser": "^1.19.0",
"chalk": "^2.4.2",
"cli-table3": "^0.5.1",
"colors": "^1.4.0",
"cross-os": "^1.3.0",
"distributions-poisson-quantile": "0.0.0",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"fastpriorityqueue": "^0.6.3",
"google-protobuf": "^3.10.0",
"grpc": "^1.24.3",
"gulp": "^4.0.2",
"json-stable-stringify": "^1.0.1",
"keccak": "^2.0.0",
"moment": "^2.24.0",
"node-forge": "^0.10.0",
"rxjs": "^6.5.5",
"secp256k1": "^3.7.1",
"semver": "^6.3.0",
"sequelize": "^6.3.3",
"socks": "^2.3.3",
"sqlite3": "^4.1.0",
"swagger-ui-express": "^4.1.2",
"toml": "^3.0.0",
"uuid": "^3.3.3",
"winston": "^3.2.1",
"yargs": "^14.2.0"
},
"devDependencies": {
"@types/chai": "^4.2.12",
"@types/chai-as-promised": "^7.1.3",
"@types/distributions-poisson-quantile": "0.0.0",
"@types/dotenv": "^6.1.1",
"@types/express": "^4.17.1",
"@types/gulp": "^4.0.6",
"@types/jest": "^26.0.8",
"@types/json-stable-stringify": "^1.0.32",
"@types/mocha": "^8.0.1",
"@types/node": "^14.0.10",
"@types/node-forge": "^0.8.6",
"@types/secp256k1": "^3.5.0",
"@types/semver": "^6.0.2",
"@types/sinon": "^9.0.4",
"@types/supertest": "^2.0.10",
"@types/swagger-ui-express": "^3.0.1",
"@types/uuid": "^3.4.5",
"@types/validator": "^13.1.0",
"@types/yargs": "^13.0.3",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"concurrently": "^5.2.0",
"conventional-changelog-cli": "^2.0.34",
"grpc-tools": "1.8.0",
"grpc_tools_node_protoc_ts": "^2.5.5",
"jest": "^26.2.2",
"mocha": "^8.1.1",
"nodemon": "^2.0.4",
"proto2slate": "^1.1.0",
"sinon": "^9.0.2",
"supertest": "^4.0.2",
"ts-jest": "^26.1.4",
"ts-node": "^8.4.1",
"tslint": "^5.20.0",
"tslint-config-airbnb": "^5.11.2",
"tslint-no-circular-imports": "^0.7.0",
"typedoc": "^0.17.7",
"typescript": "^3.9.3"
},
"engines": {
"node": ">=10.2.0"
}
}