forked from flare-foundation/attestation-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
186 lines (186 loc) · 7.7 KB
/
package.json
File metadata and controls
186 lines (186 loc) · 7.7 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
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
{
"name": "Attestation-Suite",
"version": "1.0.0",
"repository": "https://github.com/flare-foundation/attestation-client.git",
"author": "flare",
"license": "MIT",
"prettier": {
"trailingComma": "es5",
"tabWidth": 2,
"printWidth": 160,
"semi": true,
"singleQuote": false
},
"lint-staged": {
"lib/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
"lint-check"
]
},
"engines": {
"node": ">=12.0.0"
},
"scripts": {
"prebuild": "yarn routes",
"build": "yarn tsc",
"-------LINT------": "",
"lint": "yarn prettier -w 'lib/**/*.{ts,tsx}' --config ./package.json",
"lint-check": "yarn prettier -c 'lib/**/*.{ts,tsx}' --config ./package.json",
"lint2": "tslint -c tslint.json -p tsconfig.json --fix",
"-------DOCKER------": "",
"docker-build": "bash scripts/docker-build.sh",
"docker-deploy": "bash scripts/docker-deploy.sh",
"-------SOLIDITY------": "",
"typechain-web3-v1": "yarn typechain --target=web3-v1 --out-dir typechain-web3-v1 \"artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json\" 1> nul",
"compile": "yarn hardhat compile && yarn typechain-truffle-v5 && yarn typechain-web3-v1",
"c": "yarn compile",
"typechain-truffle-v5": "yarn typechain --target=truffle-v5 --out-dir typechain-truffle \"artifacts/!(build-info)/**/+([a-zA-Z0-9_]).json\" 1> nul",
"deploy": "yarn hardhat run scripts/deploy.ts --network local",
"stateconnector": "yarn hardhat run scripts/deploy.ts --network scdev",
"-------CODE-GEN------": "",
"codegen": "env NODE_ENV=development yarn ts-node lib/verification/codegen/codegen.ts",
"-------DEV-RUNNERS------": "",
"dev": "env CONFIG_PATH=.secure.dev NODE_ENV=development yarn ts-node lib/runAttesterClient.ts",
"prewatch-and-run": "npm-run-all typechain-web3-v1",
"watch-and-run": "ts-node-dev --notify --respawn -- lib/runAttesterClient.ts",
"watch-and-run-alerts": "ts-node-dev --trace-warnings --notify --respawn -- lib/alerts/alerts.ts",
"devprod": "env CONFIG_PATH=prod NODE_ENV=production node dist/lib/runAttesterClient.js",
"devindexer": "env CONFIG_PATH=.secure.dev DOTENV=DEV yarn ts-node lib/runIndexer.ts",
"devalerts": "env CONFIG_PATH=.secure.dev DOTENV=DEV yarn watch-and-run-alerts",
"devspammer_old": "env DOTENV=DEV DOTENV_INCLUDE=\".indexer.remote.dev.read.env\" yarn ts-node-dev --notify --respawn -- lib/spammer/attestation-spammer.ts -- -c XRP -r http://127.0.0.1:9650/ext/bc/C/rpc -a artifacts/contracts/StateConnector.sol/StateConnector.json -t $(cat .stateconnector-address) -b 1 -o 1 -f 1 -d 1000 -l XRP -k test-1020-accounts.json",
"devspammer": "env CONFIG_PATH=.secure.dev NODE_ENV=development yarn ts-node-dev --notify --respawn -- lib/spammer/attestation-spammer.ts -- -c ALGO",
"devctail": "env CONFIG_PATH=dev NODE_ENV=development yarn ts-node-dev --notify --respawn lib/tools/ctail/ctail.ts",
"devconfig": "yarn ts-node-dev --notify --respawn lib/attester/configvalidate.ts",
"devadmin": "env DOTENV=DEV CONFIG_PATH=.secure.dev yarn ts-node lib/admin/admin.ts",
"devinstall": "env DOTENV=DEV CONFIG_PATH=.secure.dev yarn ts-node lib/install/install.ts ../attestation-suite-config/",
"devinstallfile": "env JSON_CONFIG_PATH=../attestation-suite-config/ yarn ts-node lib/install/install-file.ts -i ./scripts/files/frontend.env -o ./scripts/files/frontend.env.out -r HOSTNAME -w www.something.com -c Coston",
"-------MONITORING---------": "",
"admin": "env CONFIG_PATH=.secure node dist/lib/admin/admin.js",
"-------TESTS---------": "",
"htest": "yarn codegen && yarn c && yarn hardhat test test/HashTest.test.ts",
"test": "mocha -r ts-node/register -t 0 --exit",
"test-all-contracts": "yarn hardhat test test/**/*.test-contract.ts",
"test-all-other": "mocha -r ts-node/register -t 0 --exit test/**/*.test.ts",
"test-all": "npm-run-all test-all-contracts test-all-other",
"test:coverage": "nyc yarn test-all",
"atest": "yarn hardhat run scripts/generateAttestationRequest.ts --network local",
"-------BACKEND-------": "",
"preroutes": "ts-node lib/scripts/create-routes-folder.ts",
"routes": "yarn tsoa routes && yarn tsoa spec",
"predevbackend": "yarn routes",
"devbackend": "env CONFIG_PATH=.secure.dev NODE_ENV=development yarn ts-node-dev --notify --respawn -- lib/webserver/server.ts",
"-------DOCS_GEN------": "",
"generateDocs": "yarn typedoc --options typedoc.config.json",
"-------WS-SERVER------": "",
"predevbackend2": "rimraf dist",
"predevwsserver": "rimraf dist",
"devbackend2": "env CONFIG_PATH=.secure.dev NODE_ENV=development yarn nest start web-server --debug --watch",
"devwsserver": "env CONFIG_PATH=.secure.dev NODE_ENV=development yarn nest start ws-server --debug --watch"
},
"dependencies": {
"@flarenetwork/mcc": "2.0.8",
"@google-cloud/secret-manager": "4.0.0",
"@nestjs/common": "^9.0.0",
"@nestjs/core": "^9.0.0",
"@nestjs/platform-express": "^9.0.0",
"@nestjs/platform-ws": "^9.1.4",
"@nestjs/swagger": "^6.1.2",
"@nestjs/typeorm": "^9.0.1",
"@nestjs/websockets": "^9.1.4",
"@openzeppelin/contracts": "4.5.0",
"assert": "2.0.0",
"body-parser": "1.20.0",
"clarinet": "0.12.5",
"compression": "1.7.4",
"cookie-parser": "1.4.6",
"dotenv": "16.0.1",
"event-stream": "4.0.1",
"express": "4.18.1",
"glob": "8.0.3",
"helmet": "5.1.0",
"multer": "^1.4.5-lts.1",
"mysql2": "2.3.3",
"node-disk-info": "1.3.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.2.0",
"safe-stable-stringify": "2.4.1",
"single-instance": "0.0.1",
"swagger-ui-express": "4.4.0",
"tail": "2.2.4",
"tsoa": "4.1.0",
"typeorm": "0.3.6",
"typescript-ioc": "3.2.2",
"web3": "1.7.3",
"web3-utils": "1.7.3",
"winston": "3.7.2",
"yargs": "17.6.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@knodes/typedoc-plugin-pages": "^0.23.1",
"@nestjs/cli": "^9.0.0",
"@nestjs/schematics": "^9.0.0",
"@nestjs/testing": "^9.0.0",
"@nomiclabs/hardhat-truffle5": "2.0.6",
"@nomiclabs/hardhat-web3": "2.0.0",
"@openzeppelin/test-helpers": "0.5.15",
"@typechain/hardhat": "6.1.0",
"@typechain/truffle-v5": "7.0.0",
"@typechain/web3-v1": "3.1.0",
"@types/assert": "1.5.6",
"@types/body-parser": "1.19.2",
"@types/chai": "4.3.3",
"@types/chai-as-promised": "7.1.5",
"@types/clarinet": "^0.12.1",
"@types/cookie-parser": "1.4.3",
"@types/express": "4.17.13",
"@types/glob": "7.2.0",
"@types/helmet": "4.0.0",
"@types/mocha": "9.1.1",
"@types/node": "17.0.42",
"@types/swagger-ui-express": "4.1.3",
"@types/web3": "1.2.2",
"@types/ws": "^8.5.3",
"@types/yargs": "17.0.10",
"@typescript-eslint/eslint-plugin": "^5.41.0",
"@typescript-eslint/parser": "^5.41.0",
"axios": "0.27.2",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"eslint": "^8.26.0",
"eslint-plugin-node": "^11.1.0",
"fs-extra": "10.1.0",
"hardhat": "2.9.9",
"npm-run-all": "4.1.5",
"nyc": "15.1.0",
"prettier": "2.6.2",
"prettier-plugin-solidity": "^1.0.0-beta.24",
"rimraf": "3.0.2",
"ts-loader": "^9.4.1",
"ts-node": "10.9.1",
"ts-node-dev": "2.0.0",
"tslint": "6.1.3",
"typechain": "5.1.2",
"typedoc": "^0.23.14",
"typedoc-plugin-merge-modules": "^4.0.1",
"typescript": "4.6.2",
"wait-on": "6.0.1"
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"check-coverage": true,
"all": true,
"include": [
"lib/**/!(*.test.*).[tj]s?(x)"
],
"exclude": [
"src/_tests_/**/*.*"
],
"reporter": [
"html",
"lcov",
"text",
"text-summary"
],
"report-dir": "coverage"
}
}