-
Notifications
You must be signed in to change notification settings - Fork 118
/
package.json
208 lines (208 loc) · 11.7 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
{
"name": "@hirosystems/stacks-blockchain-api",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"dev": "cross-env NODE_ENV=development STACKS_CHAIN_ID=0x80000000 ts-node-transpile-only src/index.ts",
"dev:watch": "cross-env NODE_ENV=development nodemon -e ts -x 'ts-node-transpile-only src/index.ts'",
"dev:integrated": "npm run devenv:build && concurrently npm:dev npm:devenv:deploy",
"dev:follower": "npm run devenv:build && concurrently npm:dev npm:devenv:follower",
"test": "cross-env NODE_ENV=test jest --runInBand",
"test:api": "npm run test -- --config ./tests/jest.config.api.js",
"test:subnets": "npm run test -- --config ./tests/jest.config.subnets.js",
"test:2.5": "npm run test -- --config ./tests/jest.config.2.5.js",
"test:rosetta": "npm run test -- --config ./tests/jest.config.rosetta.js",
"test:rosetta-construction": "npm run test -- --config ./tests/jest.config.rosetta-construction.js",
"test:rosetta-cli-data": "STACKS_CHAIN_ID=0x80000000 npm run test -- --config ./tests/jest.config.rosetta-cli-data.js",
"test:rosetta-cli-construction": "STACKS_CHAIN_ID=0x80000000 npm run test -- --config ./tests/jest.config.rosetta-cli-construction.js",
"test:bns": "npm run test -- --config ./tests/jest.config.bns.js",
"test:bns-e2e": "npm run test -- --config ./tests/jest.config.bns-e2e.js",
"test:rpc": "npm run test -- --config ./tests/jest.config.rpc.js",
"test:event-replay": "npm run test -- --config ./tests/jest.config.event-replay.js",
"test:btc-faucet": "npm run test -- --config ./tests/jest.config.btc-faucet.js",
"test:integration": "concurrently \"docker compose -f docker/docker-compose.dev.postgres.yml up --force-recreate -V\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.js --no-cache --runInBand; npm run devenv:stop:pg\"",
"test:integration:subnets": "concurrently --hide \"devenv:deploy:subnets\" \"npm:devenv:deploy:subnets\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.subnets.js --no-cache --runInBand; npm run devenv:stop:subnets\"",
"test:integration:2.5": "concurrently --hide \"devenv:deploy-krypton\" \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.2.5.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:rosetta": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.rosetta.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:rosetta-construction": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.rosetta-construction.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:rosetta-cli:data": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test STACKS_CHAIN_ID=0x80000000 jest --config ./tests/jest.config.rosetta-cli-data.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:rosetta-cli:construction": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test STACKS_CHAIN_ID=0x80000000 jest --config ./tests/jest.config.rosetta-cli-construction.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:bns": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.bns.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:bns-e2e": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.bns-e2e.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:rpc": "concurrently \"npm:devenv:deploy-krypton\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.rpc.js --no-cache --runInBand; npm run devenv:stop-krypton\"",
"test:integration:event-replay": "concurrently \"docker compose -f docker/docker-compose.dev.postgres.yml up --force-recreate -V\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.event-replay.js --no-cache --runInBand; npm run devenv:stop\"",
"test:integration:btc-faucet": "concurrently \"docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.bitcoind.yml up --force-recreate -V\" \"cross-env NODE_ENV=test jest --config ./tests/jest.config.btc-faucet.js --no-cache --runInBand; npm run devenv:stop\"",
"generate:git-info": "rimraf .git-info && api-toolkit-git-info",
"generate:openapi": "node -r ts-node/register/transpile-only ./src/openapi-generator.ts",
"generate:redoc": "redocly build-docs ./docs/openapi.yaml --output ./docs/.tmp/index.html",
"generate:postman": "openapi2postmanv2 --spec ./docs/openapi.yaml --output ./docs/.tmp/collection.json --options folderStrategy=Tags,requestParametersResolution=Example,exampleParametersResolution=Example,schemaFaker=false 2>/dev/null",
"generate:client": "openapi-typescript ./docs/openapi.yaml -o ./client/src/generated/schema.d.ts",
"build": "npm run generate:git-info && rimraf ./lib && tsc -p tsconfig.build.json",
"build:tests": "tsc -p tsconfig.json",
"build:docs": "npm run generate:git-info && npm run generate:openapi && npm run generate:redoc",
"build:client": "npm run generate:git-info && npm run generate:openapi && npm run generate:client",
"start": "node ./lib/index.js",
"lint": "npm run lint:eslint && npm run lint:prettier",
"lint:unused-exports": "ts-unused-exports tsconfig.json --showLineNumber",
"lint:eslint": "eslint . --ext .js,.jsx,.ts,.tsx -f unix",
"lint:prettier": "prettier --check src/**/*.{ts,json}",
"lint:fix": "eslint . --ext .js,.jsx,.ts,.tsx -f unix --fix && prettier --write --check src/**/*.{ts,json}",
"migrate": "node-pg-migrate -m migrations",
"devenv:build": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-blockchain.yml -f docker/docker-compose.dev.bitcoind.yml -f docker/docker-compose.dev.rosetta-cli.yml build --no-cache",
"devenv:deploy": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-blockchain.yml -f docker/docker-compose.dev.bitcoind.yml up --force-recreate -V",
"devenv:follower": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-blockchain-follower.yml up --force-recreate -V",
"devenv:stop": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-blockchain.yml -f docker/docker-compose.dev.bitcoind.yml down -v -t 0",
"devenv:deploy:subnets": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.subnets.yml up --force-recreate -V",
"devenv:stop:subnets": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.subnets.yml down -v -t 0",
"devenv:deploy-krypton": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-krypton.yml up --force-recreate -V",
"devenv:stop-krypton": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-krypton.yml down -v -t 0",
"devenv:stop:pg": "docker compose -f docker/docker-compose.dev.postgres.yml down -v -t 0",
"devenv:logs": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-blockchain.yml -f docker/docker-compose.dev.bitcoind.yml logs -t -f",
"devenv:logs:subnets": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.subnets.yml logs -t -f",
"devenv:logs-krypton": "docker compose -f docker/docker-compose.dev.postgres.yml -f docker/docker-compose.dev.stacks-krypton.yml logs -t -f"
},
"repository": {
"type": "git",
"url": "git+https://github.com/hirosystems/stacks-blockchain-api.git"
},
"author": "Hiro Systems PBC <[email protected]> (https://hiro.so)",
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/hirosystems/stacks-blockchain-api/issues"
},
"homepage": "https://github.com/hirosystems/stacks-blockchain-api#readme",
"prettier": "@stacks/prettier-config",
"engines": {
"node": ">=20"
},
"engineStrict": true,
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"dependencies": {
"@apidevtools/json-schema-ref-parser": "9.0.9",
"@fastify/cors": "9.0.1",
"@fastify/formbody": "7.4.0",
"@fastify/http-proxy": "9.5.0",
"@fastify/multipart": "8.3.0",
"@fastify/swagger": "8.15.0",
"@fastify/type-provider-typebox": "4.0.0",
"@hirosystems/api-toolkit": "1.6.2",
"@scure/base": "1.1.1",
"@sinclair/typebox": "0.32.35",
"@stacks/common": "6.10.0",
"@stacks/encryption": "6.13.1",
"@stacks/network": "6.11.3",
"@stacks/stacking": "6.13.2",
"@stacks/transactions": "6.11.3",
"@types/lru-cache": "5.1.1",
"@types/ws": "7.4.7",
"ajv": "8.17.1",
"ajv-formats": "3.0.1",
"bignumber.js": "9.0.2",
"bitcoinjs-lib": "6.1.0",
"c32check": "1.1.3",
"coinselect": "3.1.12",
"cors": "2.8.5",
"cross-env": "7.0.3",
"dotenv": "8.6.0",
"dotenv-flow": "3.2.0",
"duckdb": "0.9.2",
"ecpair": "2.1.0",
"elliptic": "6.6.0",
"escape-goat": "3.0.0",
"evt": "1.10.1",
"express": "4.21.2",
"fastify": "4.28.1",
"fastify-metrics": "11.0.0",
"getopts": "2.3.0",
"http-proxy-middleware": "2.0.7",
"jsonc-parser": "3.0.0",
"jsonrpc-lite": "2.2.0",
"lru-cache": "6.0.0",
"micro-base58": "0.5.1",
"node-fetch": "2.6.7",
"node-pg-migrate": "6.2.1",
"p-queue": "6.6.2",
"pg": "8.7.1",
"pg-copy-streams": "5.1.1",
"pg-cursor": "2.7.1",
"pino": "8.11.0",
"pino-http": "8.3.3",
"pino-pretty": "10.3.0",
"postgres": "3.3.1",
"prom-client": "15.1.3",
"rpc-bitcoin": "2.0.0",
"socket.io": "4.8.0",
"source-map-support": "0.5.21",
"split2": "3.2.2",
"stacks-encoding-native-js": "1.1.0-beta.8",
"strict-event-emitter-types": "2.0.0",
"tiny-secp256k1": "2.2.1",
"ts-unused-exports": "7.0.3",
"undici": "6.21.0",
"uuid": "8.3.2",
"ws": "7.5.10",
"zone-file": "2.0.0-beta.3"
},
"devDependencies": {
"@actions/core": "1.10.0",
"@actions/exec": "1.1.0",
"@actions/github": "6.0.0",
"@actions/io": "1.1.1",
"@commitlint/cli": "19.2.2",
"@commitlint/config-conventional": "10.0.0",
"@redocly/cli": "1.19.0",
"@stacks/eslint-config": "1.2.0",
"@types/cors": "2.8.12",
"@types/dotenv-flow": "3.2.0",
"@types/elliptic": "6.4.14",
"@types/express": "4.17.13",
"@types/is-ci": "3.0.0",
"@types/jest": "29.5.6",
"@types/node": "20.11.4",
"@types/node-fetch": "2.5.12",
"@types/pg": "7.14.11",
"@types/pg-copy-streams": "1.2.1",
"@types/source-map-support": "0.5.4",
"@types/split2": "2.1.6",
"@types/supertest": "2.0.11",
"@types/tiny-secp256k1": "2.0.1",
"@types/uuid": "7.0.5",
"@typescript-eslint/eslint-plugin": "5.46.1",
"@typescript-eslint/parser": "5.51.0",
"concurrently": "7.3.0",
"docker-compose": "0.24.8",
"eslint": "8.29.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-tsdoc": "0.2.17",
"husky": "4.3.8",
"is-ci": "3.0.1",
"jest": "29.7.0",
"nock": "13.5.4",
"nodemon": "3.1.0",
"openapi-to-postmanv2": "4.23.1",
"openapi-typescript": "7.3.0",
"pg-connection-string": "2.5.0",
"prettier": "2.8.8",
"rimraf": "5.0.0",
"rpc-websocket-client": "1.1.4",
"socket.io-client": "4.5.4",
"supertest": "4.0.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.2",
"typescript": "5.5.4",
"why-is-node-running": "2.2.0"
},
"optionalDependencies": {
"bufferutil": "4.0.5",
"utf-8-validate": "5.0.7"
}
}