-
Notifications
You must be signed in to change notification settings - Fork 24
/
package.json
163 lines (163 loc) · 13.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
{
"name": "contracts",
"version": "0.1.1",
"description": "Iden3 smartcontracts",
"repository": {
"type": "git",
"url": "https://github.com/iden3/contracts.git"
},
"license": "GPL-3.0",
"bugs": {
"url": "https://github.com/iden3/contracts/issues"
},
"homepage": "https://github.com/iden3/contracts",
"devDependencies": {
"@0xpolygonid/js-sdk": "1.20.0",
"@iden3/js-crypto": "^1.1.0",
"@iden3/js-iden3-core": "1.4.1",
"@iden3/js-jsonld-merklization": "1.4.1",
"@nomicfoundation/hardhat-ledger": "^1.0.3",
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
"@openzeppelin/contracts": "5.0.2",
"@openzeppelin/contracts-upgradeable": "5.0.2",
"@openzeppelin/hardhat-upgrades": "^3.0.5",
"@types/chai": "^4.3.14",
"@types/chai-as-promised": "^7.1.5",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.6",
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"circomlibjs": "^0.1.6",
"dotenv": "^16.4.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-promise": "^6.1.1",
"hardhat": "^2.22.9",
"patch-package": "^8.0.0",
"prettier": "^3.2.5",
"prettier-plugin-solidity": "^1.1.1",
"solhint": "4.1.1",
"solhint-plugin-prettier": "^0.1.0",
"solidity-bytes-utils": "^0.8.0",
"ts-node": "^10.9.2",
"typescript": "^5.4.4"
},
"scripts": {
"node:local": "npx hardhat node",
"compile": "npx hardhat compile",
"test": "npx hardhat test",
"test:verifiers": "npx hardhat test test/verifier/*.test.ts",
"test:validators": "npx hardhat test test/validators/**/*.ts",
"test:identitytreestore": "npx hardhat test test/identitytreestore/*.test.ts",
"test:oracle:proof:validator": "npx hardhat test test/cross-chain/cross-chain-proof-validator.test.ts",
"test:submitzkpresponse:v2": "npx hardhat test test/verifier/universal-verifier-submit-v2.test.ts",
"test:primitive:utils": "npx hardhat test test/primitiveUtils/primitiveUtils.test.ts",
"test:poseidon": "npx hardhat test test/poseidon/poseidon.test.ts",
"test:state": "npx hardhat test test/state/state.test.ts",
"test:state:localhost": "npx hardhat test test/state/state.test.ts --network localhost",
"test:gas": "COINMARKETCAP_KEY=<put your key here> REPORT_GAS=true npx hardhat test",
"test:coverage": "npx hardhat coverage",
"deploy:create2:address:anchor:localhost": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network localhost",
"deploy:create2:address:anchor:polygon-amoy": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network polygon-amoy",
"deploy:create2:address:anchor:zkevm-cardona": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network zkevm-cardona",
"deploy:create2:address:anchor:linea-sepolia": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network linea-sepolia",
"deploy:create2:address:anchor:ethereum-sepolia": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network ethereum-sepolia",
"deploy:create2:address:anchor:privado-test": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network privado-test",
"deploy:create2:address:anchor:polygon-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network polygon-mainnet",
"deploy:create2:address:anchor:zkevm-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network zkevm-mainnet",
"deploy:create2:address:anchor:linea-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network linea-mainnet",
"deploy:create2:address:anchor:ethereum-mainnet": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network ethereum-mainnet",
"deploy:create2:address:anchor:privado-main": "npx hardhat run scripts/deploy/deployCreate2AddressAnchor.ts --network privado-main",
"deploy:state:localhost": "npx hardhat run scripts/deploy/deployState.ts --network localhost",
"deploy:state:polygon-amoy": "npx hardhat run scripts/deploy/deployState.ts --network polygon-amoy",
"deploy:state:zkevm-cardona": "npx hardhat run scripts/deploy/deployState.ts --network zkevm-cardona",
"deploy:state:linea-sepolia": "npx hardhat run scripts/deploy/deployState.ts --network linea-sepolia",
"deploy:state:ethereum-sepolia": "npx hardhat run scripts/deploy/deployState.ts --network ethereum-sepolia",
"deploy:state:privado-test": "npx hardhat run scripts/deploy/deployState.ts --network privado-test",
"deploy:state:polygon-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network polygon-mainnet",
"deploy:state:zkevm-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network zkevm-mainnet",
"deploy:state:linea-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network linea-mainnet",
"deploy:state:ethereum-mainnet": "npx hardhat run scripts/deploy/deployState.ts --network ethereum-mainnet",
"deploy:state:privado-main": "npx hardhat run scripts/deploy/deployState.ts --network privado-main",
"deploy:libraries:localhost": "npx hardhat run scripts/deploy/deployLibraries.ts --network localhost",
"deploy:libraries:polygon-amoy": "npx hardhat run scripts/deploy/deployLibraries.ts --network polygon-amoy",
"deploy:libraries:zkevm-cardona": "npx hardhat run scripts/deploy/deployLibraries.ts --network zkevm-cardona",
"deploy:libraries:linea-sepolia": "npx hardhat run scripts/deploy/deployLibraries.ts --network linea-sepolia",
"deploy:libraries:ethereum-sepolia": "npx hardhat run scripts/deploy/deployLibraries.ts --network ethereum-sepolia",
"deploy:libraries:privado-test": "npx hardhat run scripts/deploy/deployLibraries.ts --network privado-test",
"deploy:libraries:polygon-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network polygon-mainnet",
"deploy:libraries:zkevm-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network zkevm-mainnet",
"deploy:libraries:linea-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network linea-mainnet",
"deploy:libraries:ethereum-mainnet": "npx hardhat run scripts/deploy/deployLibraries.ts --network ethereum-mainnet",
"deploy:libraries:privado-main": "npx hardhat run scripts/deploy/deployLibraries.ts --network privado-main",
"deploy:its:localhost": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network localhost",
"deploy:its:polygon-amoy": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network polygon-amoy",
"deploy:its:zkevm-cardona": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network zkevm-cardona",
"deploy:its:linea-sepolia": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network linea-sepolia",
"deploy:its:ethereum-sepolia": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network ethereum-sepolia",
"deploy:its:privado-test": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network privado-test",
"deploy:its:polygon-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network polygon-mainnet",
"deploy:its:zkevm-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network zkevm-mainnet",
"deploy:its:linea-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network linea-mainnet",
"deploy:its:ethereum-mainnet": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network ethereum-mainnet",
"deploy:its:privado-main": "npx hardhat run scripts/deploy/deployIdentityTreeStore.ts --network privado-main",
"deploy:validators:localhost": "npx hardhat run scripts/deploy/deployValidators.ts --network localhost",
"deploy:validators:polygon-amoy": "npx hardhat run scripts/deploy/deployValidators.ts --network polygon-amoy",
"deploy:validators:zkevm-cardona": "npx hardhat run scripts/deploy/deployValidators.ts --network zkevm-cardona",
"deploy:validators:linea-sepolia": "npx hardhat run scripts/deploy/deployValidators.ts --network linea-sepolia",
"deploy:validators:ethereum-sepolia": "npx hardhat run scripts/deploy/deployValidators.ts --network ethereum-sepolia",
"deploy:validators:privado-test": "npx hardhat run scripts/deploy/deployValidators.ts --network privado-test",
"deploy:validators:polygon-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network polygon-mainnet",
"deploy:validators:zkevm-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network zkevm-mainnet",
"deploy:validators:linea-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network linea-mainnet",
"deploy:validators:ethereum-mainnet": "npx hardhat run scripts/deploy/deployValidators.ts --network ethereum-mainnet",
"deploy:validators:privado-main": "npx hardhat run scripts/deploy/deployValidators.ts --network privado-main",
"deploy:universalverifier:localhost": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network localhost",
"deploy:universalverifier:polygon-amoy": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network polygon-amoy",
"deploy:universalverifier:zkevm-cardona": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network zkevm-cardona",
"deploy:universalverifier:linea-sepolia": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network linea-sepolia",
"deploy:universalverifier:ethereum-sepolia": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network ethereum-sepolia",
"deploy:universalverifier:privado-test": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network privado-test",
"deploy:universalverifier:polygon-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network polygon-mainnet",
"deploy:universalverifier:zkevm-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network zkevm-mainnet",
"deploy:universalverifier:linea-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network linea-mainnet",
"deploy:universalverifier:ethereum-mainnet": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network ethereum-mainnet",
"deploy:universalverifier:privado-main": "npx hardhat run scripts/deploy/deployUniversalVerifier.ts --network privado-main",
"deploy:stateCrossChainFullSet:localhost": "npx hardhat run scripts/deploy/deployCrossChainVerifierWithRequests.ts --network localhost",
"deploy:stateCrossChainFullSet:polygon-amoy": "npx hardhat run scripts/deploy/deployCrossChainVerifierWithRequests.ts --network polygon-amoy",
"deploy:stateCrossChainFullSet:zkevm-cardona": "npx hardhat run scripts/deploy/deployCrossChainVerifierWithRequests.ts --network zkevm-cardona",
"deploy:stateCrossChainFullSet:zkevm-mainnet": "npx hardhat run scripts/deploy/deployCrossChainVerifierWithRequests.ts --network zkevm-mainnet",
"deploy:stateCrossChainFullSet:linea-sepolia": "npx hardhat run scripts/deploy/deployCrossChainVerifierWithRequests.ts --network linea-sepolia",
"deploy:set:request:polygon-amoy": "npx hardhat run scripts/maintenance/setProofRequest.ts --network polygon-amoy",
"deploy:set:request:linea-sepolia": "npx hardhat run scripts/maintenance/setProofRequest.ts --network linea-sepolia",
"deploy:vc-payment:polygon-amoy": "npx hardhat run scripts/deploy/deployVCPayment.ts --network polygon-amoy",
"upgrade:contracts:universal:verifier:localhost": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network localhost",
"upgrade:contracts:universal:verifier:polygon-amoy": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network polygon-amoy",
"upgrade:contracts:universal:verifier:ethereum-sepolia": "npx hardhat run scripts/upgrade/verifiers/universal-verifier-upgrade.ts --network ethereum-sepolia",
"upgrade:contracts:its:polygon-amoy": "npx hardhat run scripts/upgrade/identitytreestore/identitytreestore-upgrade.ts --network polygon-amoy",
"upgrade:contracts:its:polygon-mainnet": "npx hardhat run scripts/upgrade/identitytreestore/identitytreestore-upgrade.ts --network polygon-mainnet",
"upgrade:contracts:state:localhost": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network localhost",
"upgrade:contracts:state:polygon-amoy": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network polygon-amoy",
"upgrade:contracts:state:polygon-mainnet": "npx hardhat run scripts/upgrade/state/state-upgrade.ts --network polygon-mainnet",
"disable:proxy:contract:localhost": "npx hardhat run scripts/maintenance/disableProxyContract.ts --network localhost",
"add:validators:universal:verifier:localhost": "npx hardhat run scripts/maintenance/addValidatorsToUniversalVerifier.ts --network localhost",
"add:validators:universal:verifier:polygon-amoy": "npx hardhat run scripts/maintenance/addValidatorsToUniversalVerifier.ts --network polygon-amoy",
"payment:set-payment-value:polygon-amoy": "npx hardhat run scripts/maintenance/setPaymentValue.ts --network polygon-amoy",
"set:oracle:signing:address:polygon-amoy": "npx hardhat run scripts/maintenance/setOracleSigningAddress.ts --network polygon-amoy",
"set:oracle:signing:address:polygon-mainnet": "npx hardhat run scripts/maintenance/setOracleSigningAddress.ts --network polygon-mainnet",
"verify:polygon-mainnet": "npx hardhat run scripts/maintenance/verifyEtherescan.js --network polygon-mainnet",
"lint:contracts": "npx solhint contracts/**/*.sol",
"prettier:contracts": "prettier --write --plugin=prettier-plugin-solidity 'contracts/**/*.sol'",
"slither": "slither .",
"postinstall": "patch-package"
},
"overrides": {
"ws": "^8.17.1",
"elliptic": "^6.6.0",
"cookie": "^1.0.1"
}
}