forked from trifle-labs/anybody-problem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
128 lines (128 loc) · 3.77 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
{
"name": "anybody-problem",
"version": "1.0.0",
"license": "CC-BY-NC-4.0",
"targets": {
"module": {
"optimize": true,
"source": "src/index.js",
"isLibrary": true
},
"iframe": {
"source": "src/index.html",
"optimize": true
}
},
"source": "src/index.js",
"main": "dist/module.js",
"module": "dist/module.js",
"iframe": "dist/index.html",
"scripts": {
"prepare": "husky",
"build": "rm -rf .parcel-cache && rm -rf dist && yarn parcel build",
"dev": "rm -rf .parcel-cache && rm -rf dist && yarn parcel watch src/index.js",
"serve": "rm -rf .parcel-cache && yarn parcel src/index.html --open",
"chain": "hardhat node",
"circom": "./scripts/basic_circom.sh",
"circom:game-test": "yarn circom game_2_20 && yarn circom game_3_20 && yarn circom game_4_20 && yarn circom game_5_20 && yarn circom game_6_20",
"circom:game-prod": "yarn circom game_2_250 && yarn circom game_3_250 && yarn circom game_4_250 && yarn circom game_5_125 && yarn circom game_6_125",
"deploy": "hardhat run scripts/deploy.cjs",
"test:circom": "ls test/*.js | grep -v -e 'bodies' -e 'problems' -e 'solver' -e 'problemMetadata' -e 'bodyMetadata' | xargs npx hardhat test",
"test:solidity": "hardhat test test/problems.test.js test/problemMetadata.test.js test/bodyMetadata.test.js test/bodies.test.js test/solver.test.js",
"test": "hardhat test",
"precommit": "echo 'husky is working : )' && lint-staged && yarn build && git add dist"
},
"lint-staged": {
"*.{js,jsx}": [
"eslint --fix",
"prettier --write --ignore-unknown"
],
"*.{ts,tsx}": [
"prettier --write --ignore-unknown"
],
"**/*": "prettier --write --ignore-unknown"
},
"eslintConfig": {
"env": {
"amd": true,
"browser": true,
"es2020": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"modules": true
},
"ecmaVersion": "latest",
"parser": "@babel/eslint-parser",
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"prettier"
],
"globals": {
"assert": "readonly",
"before": "readonly",
"describe": "readonly",
"it": "readonly"
},
"ignorePatterns": [
"/docs/index.js",
"**/*.min.js",
"**/*.worker.js",
"/dist/*"
],
"root": true
},
"dependencies": {
"ethers": "^5.7.0",
"tone": "^15.0.4"
},
"devDependencies": {
"@babel/core": "^7.24.0",
"@babel/eslint-parser": "^7.23.10",
"@babel/preset-env": "^7.24.0",
"@nomicfoundation/hardhat-chai-matchers": "^2.0.6",
"@nomicfoundation/hardhat-network-helpers": "^1.0.9",
"@nomicfoundation/hardhat-verify": "^2.0.8",
"@nomiclabs/hardhat-ethers": "*",
"@nomiclabs/hardhat-ganache": "*",
"@nomiclabs/hardhat-waffle": "*",
"@openzeppelin/contracts": "^4.6.0",
"@parcel/optimizer-data-url": "2.12.0",
"@parcel/transformer-inline": "^2.12.0",
"@parcel/transformer-inline-string": "2.12.0",
"base64-sol": "^1.1.0",
"circom_tester": "^0.0.20",
"circomlib": "^2.0.3",
"circomlibjs": "^0.1.2",
"dotenv": "^16.0.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"ethereum-waffle": "*",
"hardhat": "2.21.0",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^2.2.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"parcel": "^2.12.0",
"prettier": "3.2.5",
"sindri": "^0.0.1-alpha.55",
"snarkjs": "0.7.3",
"solidity-coverage": "^0.8.6",
"xmldom": "^0.6.0"
},
"resolutions": {
"web-worker": "1.2.0"
},
"type": "module",
"browserslist": [
"> 1%",
"last 2 versions",
"not dead",
"not ie 11"
],
"readme": "ERROR: No README data found!",
"_id": "[email protected]"
}