-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
68 lines (68 loc) · 4.5 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
{
"name": "subjectivocracy",
"version": "1.0.0",
"main": "index.js",
"repository": "[email protected]:RealityETH/subjectivocracy.git",
"author": "josojo <[email protected]>",
"license": "MIT",
"scripts": {
"fmt": "prettier 'contracts/**/*.sol' -w && prettier 'test/**/*.sol' -w",
"fmt:check": "prettier 'contracts/**/*.sol' -c && prettier 'test/**/*.sol' -c",
"lint": "solhint 'contracts/**/*.sol' 'test/**/*.sol'",
"hardhatCompile": "hardhat compile",
"prepare:testnet:ZkEVM:localhost": "npx hardhat run deployment/testnet/prepareTestnet.js --network localhost",
"deploy:ZkEVM:localhost": "rm -f .openzeppelin/unknown-31337.json && node deployment/1_createGenesis.js && npx hardhat run deployment/2_deployPolygonZKEVMDeployer.js --network localhost && npx hardhat run deployment/3_deployContracts.js --network localhost",
"deploy:ZkEVM:goerli": "node deployment/1_createGenesis.js && npx hardhat run deployment/3_deployContracts.js --network goerli && npm run saveDeployment:goerli",
"deploy:deployer:ZkEVM:goerli": "npx hardhat run deployment/2_deployPolygonZKEVMDeployer.js --network goerli",
"verify:deployer:ZkEVM:goerli": "npx hardhat run deployment/verifyzkEVMDeployer.js --network goerli",
"deploy:testnet:ZkEVM:goerli": "npm run prepare:testnet:ZkEVM:goerli && npm run deploy:ZkEVM:goerli",
"upgrade:timelock:goerli": "npx hardhat run upgrade/timeLockUpgrade.js --network goerli",
"verify:ZkEVM:goerli": "npx hardhat run deployment/verifyContracts.js --network goerli",
"saveDeployment:sepolia": "mkdir -p deployments/sepolia_$(date +%s) && cp -r src/deployment/deploy_*.json deployments/sepolia_$(date +%s) && cp .openzeppelin/sepolia.json deployments/sepolia_$(date +%s) && cp src/deployment/genesis.json deployments/sepolia_$(date +%s)",
"saveDeployment:goerli": "mkdir -p deployments/goerli_$(date +%s) && cp -r deployment/deploy_*.json deployments/goerli_$(date +%s) && cp .openzeppelin/goerli.json deployments/goerli_$(date +%s) && cp deployment/genesis.json deployments/goerli_$(date +%s)",
"saveDeployment:mainnet": "mkdir -p deployments/mainnet_$(date +%s) && cp -r deployment/deploy_*.json deployments/mainnet_$(date +%s) && cp .openzeppelin/mainnet.json deployments/mainnet_$(date +%s) && cp deployment/genesis.json deployments/mainnet_$(date +%s)",
"deploy:ZkEVM:mainnet": "node deployment/1_createGenesis.js && npx hardhat run deployment/3_deployContracts.js --network mainnet && npm run saveDeployment:mainnet",
"upgrade:timelock:mainnet": "npx hardhat run upgrade/timeLockUpgrade.js --network mainnet",
"verify:ZkEVM:mainnet": "npx hardhat run deployment/verifyContracts.js --network mainnet",
"deployApplications:backstopTestnet0": "npx hardhat run src/deployment/4_deployL1Applications.js --network sepolia && npx hardhat run src/deployment/5_deployL2Applications.js --network backstopTestnet0 && npx hardhat run src/deployment/6_chainInfoUpdate.js --network sepolia && npx hardhat run src/deployment/7_claimChainInfo.js --network backstopTestnet0",
"compile": "npx hardhat compile",
"lintjs": "npx eslint ./src && npx eslint ./test",
"lintjs:fix": "npx eslint ./src --fix && npx eslint ./test --fix",
"test": "npx hardhat test"
},
"dependencies": {
"axios": "^1.6.2",
"chai": "^4.3.7",
"ethereum-waffle": "^4.0.10",
"ethers": "^5.7.2",
"forge": "^2.3.0",
"hardhat": "^2.19.4"
},
"devDependencies": {
"@0xpolygonhermez/zkevm-commonjs": "github:0xPolygonHermez/zkevm-commonjs#2a5fee0cfd47d4d538270a0345dd1f062dba783d",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@nomicfoundation/hardhat-verify": "^2.0.3",
"@nomiclabs/hardhat-ethers": "^2.2.3",
"@nomiclabs/hardhat-waffle": "^2.0.6",
"@openzeppelin/contracts": "^4.9.5",
"@openzeppelin/contracts-upgradeable": "^4.9.5",
"@openzeppelin/hardhat-upgrades": "1.22.1",
"@reality.eth/contracts": "4.0.0-rc.8",
"@RealityETH/zkevm-contracts": "github:RealityETH/zkevm-contracts#38dd8579b1a644ddebd59226d571b2574c76fd35",
"@types/sinon-chai": "^3.2.3",
"circomlibjs": "0.1.1",
"dotenv": "^8.6.0",
"eslint": "^8.36.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.28.0",
"eslint-plugin-mocha": "^9.0.0",
"hardhat-dependency-compiler": "^1.1.3",
"hardhat-gas-reporter": "^1.0.9",
"hardhat-preprocessor": "^0.1.5",
"prettier": "^3.0.0",
"prettier-plugin-solidity": "^1.3.1",
"solhint": "^4.1.1",
"solhint-plugin-prettier": "^0.1.0",
"solidity-coverage": "^0.8.4"
}
}