This repository has been archived by the owner on Nov 27, 2024. It is now read-only.
forked from 0xPolygonHermez/zkevm-contracts
-
Notifications
You must be signed in to change notification settings - Fork 68
/
package.json
91 lines (91 loc) · 5.16 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
{
"name": "cdk-validium-contracts",
"description": "Core contracts for the Polygon CDK Validium",
"version": "0.0.1",
"repository": {
"type": "git",
"url": "git+https://github.com/0xPolygon/cdk-validium-contracts.git"
},
"main": "index.js",
"keywords": [
"zkevm",
"snark",
"polygon",
"stark",
"validium",
"EVM",
"ethereum",
"blockchain"
],
"author": "0xPolygon",
"files": [
"contracts",
"index.js",
"compiled-contracts",
"src"
],
"bugs": {
"url": "https://github.com/0xPolygon/cdk-validium-contracts/issues"
},
"homepage": "https://github.com/0xPolygon/CDKValidium-contracts#readme",
"license": "pending",
"dependencies": {
"chai": "^4.3.7",
"ethers": "^5.7.2"
},
"devDependencies": {
"@0xpolygonhermez/zkevm-commonjs": "github:0xPolygonHermez/zkevm-commonjs#develop",
"@nomiclabs/hardhat-ethers": "^2.2.2",
"@nomiclabs/hardhat-etherscan": "^3.1.7",
"@nomiclabs/hardhat-waffle": "^2.0.5",
"@openzeppelin/contracts": "4.8.2",
"@openzeppelin/contracts-upgradeable": "4.8.2",
"@openzeppelin/hardhat-upgrades": "1.22.1",
"@openzeppelin/test-helpers": "0.5.16",
"circomlibjs": "0.1.1",
"dotenv": "^8.6.0",
"eslint": "^8.36.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-mocha": "^9.0.0",
"ethereum-waffle": "^3.4.4",
"ffjavascript": "^0.2.57",
"hardhat": "^2.16.1",
"hardhat-dependency-compiler": "^1.1.3",
"hardhat-gas-reporter": "^1.0.9",
"prettier": "^2.8.4",
"prettier-plugin-solidity": "^1.1.3",
"solc-0.8": "npm:solc@0.8.20",
"solidity-coverage": "^0.7.22",
"solidity-docgen": "^0.5.17"
},
"scripts": {
"saveDeployment:sepolia": "mkdir -p deployments/sepolia_$(date +%s) && cp -r deployment/deploy_*.json deployments/sepolia_$(date +%s) && cp .openzeppelin/sepolia.json deployments/sepolia_$(date +%s) && cp deployment/genesis.json deployments/sepolia_$(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)",
"test": "npx hardhat test test/contracts/**.test.js",
"docgen": "npx solidity-docgen --solc-module solc-0.8 -t ./docs/templates -e ./contracts/verifiers,./contracts/mocks",
"prepare:testnet:CDKValidium:localhost": "npx hardhat run deployment/testnet/prepareTestnet.js --network localhost",
"deploy:CDKValidium:localhost": "rm -f .openzeppelin/unknown-31337.json && node deployment/1_createGenesis.js && npx hardhat run deployment/2_deployCDKValidiumDeployer.js --network localhost && npx hardhat run deployment/3_deployContracts.js --network localhost",
"deploy:testnet:CDKValidium:localhost": "npm run prepare:testnet:CDKValidium:localhost && npm run deploy:CDKValidium:localhost",
"prepare:testnet:CDKValidium:sepolia": "npx hardhat run deployment/testnet/prepareTestnet.js --network sepolia",
"deploy:CDKValidium:sepolia": "node deployment/1_createGenesis.js && npx hardhat run deployment/3_deployContracts.js --network sepolia && npm run saveDeployment:sepolia",
"deploy:deployer:CDKValidium:sepolia": "npx hardhat run deployment/2_deployCDKValidiumDeployer.js --network sepolia",
"verify:deployer:CDKValidium:sepolia": "npx hardhat run deployment/verifyCDKValidiumDeployer.js --network sepolia",
"deploy:testnet:CDKValidium:sepolia": "npm run prepare:testnet:CDKValidium:sepolia && npm run deploy:CDKValidium:sepolia",
"upgrade:timelock:sepolia": "npx hardhat run upgrade/timeLockUpgrade.js --network sepolia",
"verify:CDKValidium:sepolia": "npx hardhat run deployment/verifyContracts.js --network sepolia",
"deploy:deployer:CDKValidium:mainnet": "npx hardhat run deployment/2_deployCDKValidiumDeployer.js --network mainnet",
"verify:deployer:CDKValidium:mainnet": "npx hardhat run deployment/verifyCDKValidiumDeployer.js --network mainnet",
"deploy:CDKValidium: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:CDKValidium:mainnet": "npx hardhat run deployment/verifyContracts.js --network mainnet",
"lint": "npx eslint ./test && npx eslint ./docker/scripts && npx eslint ./deployment && npx eslint ./src",
"lint:fix": "npx eslint ./test --fix && npx eslint ./docker/scripts --fix && npx eslint ./deployment --fix && npx eslint ./src --fix",
"compile": "npx hardhat compile",
"docker:contracts": "./docker/scripts/deploy-docker.sh",
"push:docker:contracts": "docker push hermeznetwork/geth-cdk-validium-contracts",
"update:genesis": "node deployment/1_createGenesis.js && node deployment/1_createGenesis.js --test --input ../docker/scripts/deploy_parameters_docker.json --out ../docker/scripts/genesis_docker.json",
"coverage": "npx hardhat coverage",
"gas:report": "REPORT_GAS=true npx hardhat test",
"gas:report:file": "rm -f .openzeppelin/unknown-31337.json && REPORT_GAS=true REPORT_GAS_FILE=true npx hardhat test"
}
}