forked from argotorg/sourcify
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
136 lines (136 loc) · 5.4 KB
/
package.json
File metadata and controls
136 lines (136 loc) · 5.4 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
{
"name": "sourcify-server",
"version": "3.9.1",
"description": "Solidity metadata-based re-compilation and source verification tool",
"main": "dist/server/server.js",
"types": "dist/server/server.d.ts",
"bin": "dist/server/cli.js",
"repository": {
"type": "git",
"url": "git+https://github.com/argotorg/sourcify.git"
},
"scripts": {
"prebuild": "copyfiles -u 1 src/**/*.yaml src/*.json dist && git rev-parse HEAD > dist/git-commit-hash.txt",
"build": "tsc",
"start": "node ./dist/server/cli.js",
"postgres-test:start": "docker-compose -f test/docker-compose.yml up -d",
"postgres-test:stop": "docker-compose -f test/docker-compose.yml rm -fsv",
"postgres-test:migrate": "cd ../database && git submodule update --init && SERVICE_NAME=server DATABASE_URL=postgres://sourcify:sourcify@${SOURCIFY_POSTGRES_HOST:-sourcify-db}:${DOCKER_HOST_POSTGRES_TEST_PORT:-5432}/sourcify?sslmode=disable DBMATE_SCHEMA_FILE=./sourcify-database.sql npm run migrate:up-no-dump",
"test:unit": "mocha --exit --recursive test/unit/**",
"test": "npm run postgres-test:migrate & npx c8 --reporter=none mocha --exit --recursive test/unit/** test/integration/**",
"test:chains": "npm run postgres-test:migrate && mocha test/chains/chain-tests.spec.ts --reporter mochawesome --reporter-options reportDir=chain-tests-report,reportFilename=report --exit",
"test:etherscan-instances": "npm run postgres-test:migrate && mocha --exit test/chains/etherscan-instances.spec.ts ",
"test-local": "export DOCKER_HOST_POSTGRES_TEST_PORT=${DOCKER_HOST_POSTGRES_TEST_PORT:-5431} && npm run postgres-test:start && sleep 2 && SOURCIFY_POSTGRES_HOST=localhost npm run test; status=$?; npm run postgres-test:stop; exit $status",
"test-local:chains": "export DOCKER_HOST_POSTGRES_TEST_PORT=${DOCKER_HOST_POSTGRES_TEST_PORT:-5431} && npm run postgres-test:start && sleep 2 && SOURCIFY_POSTGRES_HOST=localhost npm run test:chains; status=$?; npm run postgres-test:stop; exit $status",
"test-local:etherscan-instances": "export DOCKER_HOST_POSTGRES_TEST_PORT=${DOCKER_HOST_POSTGRES_TEST_PORT:-5431} && npm run postgres-test:start && sleep 2 && SOURCIFY_POSTGRES_HOST=localhost npm run test:etherscan-instances; status=$?; npm run postgres-test:stop; exit $status",
"generate-test-case": "ts-node test/integration/verification-cases/generate-test-case.ts",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"./**/*.{ts,js,yaml,yml}\" --write",
"fix:lint": "eslint . --ext .ts --fix",
"check": "run-s check:*",
"check:eslint": "eslint . --ext .ts",
"check:prettier": "prettier \"./**/*.{ts,js,yaml,yml}\" --check",
"check:tsc": "tsc --noEmit -p ./tsconfig.lint.json",
"cov": "run-s -c build test-local cov:html cov:lcov && open-cli coverage/index.html",
"cov:html": "c8 report --reporter=html",
"cov:lcov": "c8 report --reporter=lcov",
"cov:check": "c8 report && c8 check-coverage --lines 100 --functions 100 --branches 100"
},
"keywords": [
"ethereum",
"solidity",
"verification",
"bytecode",
"metadata"
],
"author": "sourcifyeth",
"license": "MIT",
"bugs": {
"url": "https://github.com/argotorg/sourcify/issues"
},
"homepage": "https://github.com/argotorg/sourcify#readme",
"dependencies": {
"@aws-sdk/client-s3": "3.992.0",
"@ethereum-sourcify/bytecode-utils": "^1.3.20",
"@ethereum-sourcify/compilers": "^1.0.17",
"@ethereum-sourcify/lib-sourcify": "^3.1.1",
"@google-cloud/cloud-sql-connector": "1.9.0",
"@shazow/whatsabi": "0.25.0",
"@solidity-parser/parser": "0.20.2",
"bunyan": "1.8.15",
"chalk": "4.1.2",
"config": "3.3.12",
"connect-pg-simple": "9.0.1",
"cors": "2.8.6",
"directory-tree": "3.6.0",
"dotenv": "16.6.1",
"ethers": "6.16.0",
"express": "5.2.1",
"express-fileupload": "1.5.2",
"express-openapi-validator": "5.6.2",
"express-session": "1.19.0",
"http-status-codes": "2.3.0",
"json-refs": "3.0.15",
"memorystore": "1.6.7",
"pg": "8.18.0",
"piscina": "5.1.4",
"semver": "7.7.4",
"serve-index": "1.9.2",
"swagger-ui-express": "5.0.1",
"ts-node": "10.9.2",
"uuid": "10.0.0",
"winston": "3.19.0",
"yamljs": "0.3.0"
},
"devDependencies": {
"@types/bunyan": "1.8.11",
"@types/chai": "4.3.20",
"@types/chai-as-promised": "8.0.2",
"@types/config": "3.3.5",
"@types/connect-pg-simple": "7.0.3",
"@types/cors": "2.8.19",
"@types/express": "5.0.6",
"@types/express-session": "1.18.2",
"@types/mocha": "10.0.10",
"@types/mochawesome": "6.2.5",
"@types/node": "22.19.11",
"@types/pg": "8.16.0",
"@types/serve-index": "1.9.4",
"@types/sinon": "17.0.4",
"@types/swagger-ui-express": "4.1.8",
"@types/uuid": "9.0.8",
"@types/yamljs": "0.2.34",
"c8": "10.1.3",
"chai": "4.5.0",
"chai-as-promised": "7.1.2",
"chai-http": "4.4.0",
"commander": "12.1.0",
"copyfiles": "2.4.1",
"hardhat": "2.28.6",
"mocha": "10.8.2",
"mochawesome": "7.1.4",
"nock": "14.0.11",
"npm-run-all2": "5.0.2",
"open-cli": "8.0.0",
"rimraf": "4.4.1",
"sinon": "19.0.5",
"tree-kill": "1.2.2",
"typestrict": "1.0.2"
},
"optionalDependencies": {
"fsevents": "2.3.3"
},
"c8": {
"exclude": [
"test/**/*.*",
"packages/**/*.*",
"src/common/loggerLoki.ts"
],
"reporter": [
"html",
"lcov",
"text",
"text-summary"
]
}
}