forked from privacy-scaling-explorations/maci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
200 lines (200 loc) · 10.3 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
{
"name": "maci-contracts",
"version": "2.5.0",
"description": "Solidity Smart Contracts for MACI (Minimal Anti-Collusion Infrastructure)",
"main": "build/ts/index.js",
"exports": {
".": {
"types": "./build/ts/index.d.ts",
"default": "./build/ts/index.js"
},
"./typechain-types": {
"types": "./build/typechain-types/index.d.ts",
"default": "./build/typechain-types/index.js"
},
"./tasks/deploy": {
"types": "./build/tasks/deploy/index.d.ts",
"default": "./build/tasks/deploy/index.js"
},
"./tasks/deploy/maci/*": "./build/tasks/deploy/maci/*.js",
"./tasks/deploy/poll/*": "./build/tasks/deploy/poll/*.js",
"./tasks/runner/*": "./build/tasks/runner/*.js"
},
"bin": {
"maci-contracts": "./build/ts/index.js"
},
"files": [
"build",
"contracts",
"README.md",
"CHANGELOG.md"
],
"scripts": {
"watch": "tsc --watch",
"hardhat": "hardhat node",
"compileSol": "TS_NODE_TRANSPILE_ONLY=1 ts-node ./scripts/compileSol.ts",
"moveIntegrationArtifacts": "cp -r artifacts/ ../integrationTests/artifacts",
"prebuild": "pnpm run compileSol",
"build": "tsc -p tsconfig.build.json",
"postbuild": "cp -r ./artifacts ./build",
"types": "tsc -p tsconfig.json --noEmit",
"docs": "hardhat docgen",
"test": "hardhat test --network hardhat",
"test:maci": "pnpm run test ./tests/MACI.test.ts",
"test:poll": "pnpm run test ./tests/Poll.test.ts",
"test:messageProcessor": "pnpm run test ./tests/MessageProcessor.test.ts",
"test:tally": "pnpm run test ./tests/Tally.test.ts",
"test:tallyNonQv": "pnpm run test ./tests/TallyNonQv.test.ts",
"test:hasher": "pnpm run test ./tests/Hasher.test.ts",
"test:utilities": "pnpm run test ./tests/Utilities.test.ts",
"test:signupGatekeeper": "pnpm run test ./tests/gatekeepers/SignUpGatekeeper.test.ts",
"test:verifier": "pnpm run test ./tests/Verifier.test.ts",
"test:hasherBenchmarks": "pnpm run test ./tests/HasherBenchmarks.test.ts",
"test:vkRegistry": "pnpm run test ./tests/VkRegistry.test.ts",
"test:pollFactory": "pnpm run test ./tests/PollFactory.test.ts",
"test:eas_gatekeeper": "pnpm run test ./tests/gatekeepers/EASGatekeeper.test.ts",
"test:hats_gatekeeper": "pnpm run test ./tests/gatekeepers/HatsGatekeeper.test.ts",
"test:gitcoin_gatekeeper": "pnpm run test ./tests/gatekeepers/GitcoinPassportGatekeeper.test.ts",
"test:zupass_gatekeeper": "pnpm run test ./tests/gatekeepers/ZupassGatekeeper.test.ts",
"test:semaphore_gatekeeper": "pnpm run test ./tests/gatekeepers/SemaphoreGatekeeper.test.ts",
"test:anon_aadhaar_gatekeeper": "pnpm run test ./tests/gatekeepers/AnonAadhaarGatekeeper.test.ts",
"deploy": "hardhat deploy-full",
"deploy-poll": "hardhat deploy-poll",
"verify": "hardhat verify-full",
"merge": "hardhat merge",
"prove": "hardhat prove",
"submitOnChain": "hardhat submitOnChain",
"benchmark": "hardhat benchmark",
"deploy:localhost": "pnpm run deploy",
"deploy:sepolia": "pnpm run deploy --network sepolia",
"deploy:optimism-sepolia": "pnpm run deploy --network optimism_sepolia",
"deploy:optimism": "pnpm run deploy --network optimism",
"deploy:scroll": "pnpm run deploy --network scroll",
"deploy:scroll-sepolia": "pnpm run deploy --network scroll_sepolia",
"deploy:arbitrum": "pnpm run deploy --network arbitrum",
"deploy:arbitrum-sepolia": "pnpm run deploy --network arbitrum_sepolia",
"deploy:base": "pnpm run deploy --network base",
"deploy:base-sepolia": "pnpm run deploy --network base_sepolia",
"deploy:gnosis": "pnpm run deploy --network gnosis",
"deploy:gnosis-chiado": "pnpm run deploy --network gnosis_chiado",
"deploy:polygon": "pnpm run deploy --network polygon",
"deploy:polygon-amoy": "pnpm run deploy --network polygon_amoy",
"deploy-poll:localhost": "pnpm run deploy-poll",
"deploy-poll:sepolia": "pnpm run deploy-poll --network sepolia",
"deploy-poll:optimism-sepolia": "pnpm run deploy-poll --network optimism_sepolia",
"deploy-poll:optimism": "pnpm run deploy-poll --network optimism",
"deploy-poll:scroll": "pnpm run deploy-poll --network scroll",
"deploy-poll:scroll-sepolia": "pnpm run deploy-poll --network scroll_sepolia",
"deploy-poll:arbitrum": "pnpm run deploy-poll --network arbitrum",
"deploy-poll:arbitrum-sepolia": "pnpm run deploy-poll --network arbitrum_sepolia",
"deploy-poll:base": "pnpm run deploy-poll --network base",
"deploy-poll:base-sepolia": "pnpm run deploy-poll --network base_sepolia",
"deploy-poll:gnosis": "pnpm run deploy-poll --network gnosis",
"deploy-poll:gnosis-chiado": "pnpm run deploy-poll --network gnosis_chiado",
"deploy-poll:polygon": "pnpm run deploy-poll --network polygon",
"deploy-poll:polygon-amoy": "pnpm run deploy-poll --network polygon_amoy",
"merge:localhost": "pnpm run merge",
"merge:sepolia": "pnpm run merge --network sepolia",
"merge:optimism-sepolia": "pnpm run merge --network optimism_sepolia",
"merge:optimism": "pnpm run merge --network optimism",
"merge:scroll": "pnpm run merge --network scroll",
"merge:scroll-sepolia": "pnpm run merge --network scroll_sepolia",
"merge:arbitrum": "pnpm run merge --network arbitrum",
"merge:arbitrum-sepolia": "pnpm run merge --network arbitrum_sepolia",
"merge:base": "pnpm run merge --network base",
"merge:base-sepolia": "pnpm run merge --network base_sepolia",
"merge:gnosis": "pnpm run merge --network gnosis",
"merge:gnosis-chiado": "pnpm run merge --network gnosis_chiado",
"merge:polygon": "pnpm run merge --network polygon",
"merge:polygon-amoy": "pnpm run merge --network polygon_amoy",
"prove:localhost": "pnpm run prove",
"prove:sepolia": "pnpm run prove --network sepolia",
"prove:optimism-sepolia": "pnpm run prove --network optimism_sepolia",
"prove:optimism": "pnpm run prove --network optimism",
"prove:scroll": "pnpm run prove --network scroll",
"prove:scroll-sepolia": "pnpm run prove --network scroll_sepolia",
"prove:arbitrum": "pnpm run prove --network arbitrum",
"prove:arbitrum-sepolia": "pnpm run prove --network arbitrum_sepolia",
"prove:base": "pnpm run prove --network base",
"prove:base-sepolia": "pnpm run prove --network base_sepolia",
"prove:gnosis": "pnpm run prove --network gnosis",
"prove:gnosis-chiado": "pnpm run prove --network gnosis_chiado",
"prove:polygon": "pnpm run prove --network polygon",
"prove:polygon-amoy": "pnpm run prove --network polygon_amoy",
"submitOnChain:localhost": "pnpm run submitOnChain --network localhost",
"submitOnChain:sepolia": "pnpm run submitOnChain --network sepolia",
"submitOnChain:optimism-sepolia": "pnpm run submitOnChain --network optimism_sepolia",
"submitOnChain:optimism": "pnpm run submitOnChain --network optimism",
"submitOnChain:scroll": "pnpm run submitOnChain --network scroll",
"submitOnChain:scroll-sepolia": "pnpm run submitOnChain --network scroll_sepolia",
"submitOnChain:arbitrum": "pnpm run submitOnChain --network arbitrum",
"submitOnChain:arbitrum-sepolia": "pnpm run submitOnChain --network arbitrum_sepolia",
"submitOnChain:base": "pnpm run submitOnChain --network base",
"submitOnChain:base-sepolia": "pnpm run submitOnChain --network base_sepolia",
"submitOnChain:gnosis": "pnpm run submitOnChain --network gnosis",
"submitOnChain:gnosis-chiado": "pnpm run submitOnChain --network gnosis_chiado",
"submitOnChain:polygon": "pnpm run submitOnChain --network polygon",
"submitOnChain:polygon-amoy": "pnpm run submitOnChain --network polygon_amoy",
"verify:sepolia": "pnpm run verify --network sepolia",
"verify:optimism-sepolia": "pnpm run verify --network optimism_sepolia",
"verify:optimism": "pnpm run verify --network optimism",
"verify:scroll": "pnpm run verify --network scroll",
"verify:scroll-sepolia": "pnpm run verify --network scroll_sepolia",
"verify:arbitrum-sepolia": "pnpm run verify --network arbitrum_sepolia",
"verify:base": "pnpm run verify --network base",
"verify:base-sepolia": "pnpm run verify --network base_sepolia",
"verify:gnosis": "pnpm run verify --network gnosis",
"verify:gnosis-chiado": "pnpm run verify --network gnosis_chiado",
"verify:polygon": "pnpm run verify --network polygon",
"verify:polygon-amoy": "pnpm run verify --network polygon_amoy",
"benchmark:sepolia": "hardhat benchmark --network sepolia",
"benchmark:optimism-sepolia": "hardhat benchmark --network optimism_sepolia",
"benchmark:optimism": "pnpm run benchmark --network optimism",
"benchmark:scroll": "pnpm run benchmark --network scroll",
"benchmark:scroll-sepolia": "pnpm run benchmark --network scroll_sepolia",
"benchmark:arbitrum": "pnpm run benchmark --network arbitrum",
"benchmark:arbitrum-sepolia": "pnpm run benchmark --network arbitrum_sepolia",
"benchmark:base": "pnpm run benchmark --network base",
"benchmark:base-sepolia": "pnpm run benchmark --network base_sepolia",
"benchmark:gnosis": "pnpm run benchmark --network gnosis",
"benchmark:gnosis-chiado": "pnpm run benchmark --network gnosis_chiado",
"benchmark:polygon": "pnpm run benchmark --network polygon",
"benchmark:polygon-amoy": "pnpm run benchmark --network polygon_amoy"
},
"dependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.8",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@openzeppelin/contracts": "^5.1.0",
"@openzeppelin/merkle-tree": "^1.0.7",
"@pcd/util": "^0.9.0",
"@zk-kit/imt.sol": "2.0.0-beta.12",
"@zk-kit/lean-imt": "^2.1.0",
"circomlibjs": "^0.1.7",
"ethers": "^6.13.4",
"hardhat": "^2.22.15",
"lowdb": "^1.0.0",
"maci-circuits": "^2.5.0",
"maci-core": "^2.5.0",
"maci-crypto": "^2.5.0",
"maci-domainobjs": "^2.5.0",
"solidity-docgen": "^0.6.0-beta.36",
"uuid": "^11.0.2"
},
"devDependencies": {
"@types/chai": "^4.3.11",
"@types/chai-as-promised": "^7.1.8",
"@types/circomlibjs": "^0.1.6",
"@types/lowdb": "^1.0.15",
"@types/mocha": "^10.0.8",
"@types/node": "^22.9.0",
"@types/snarkjs": "^0.7.8",
"@types/uuid": "^10.0.0",
"chai": "^4.3.10",
"chai-as-promised": "^7.1.2",
"dotenv": "^16.4.5",
"hardhat-artifactor": "^0.2.0",
"hardhat-contract-sizer": "^2.10.0",
"ts-node": "^10.9.1",
"typescript": "^5.6.3"
}
}