-
Notifications
You must be signed in to change notification settings - Fork 41
/
package.json
137 lines (137 loc) · 6.03 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
{
"name": "@bancor/carbon",
"version": "1.0.0",
"description": "Carbon v1.0",
"repository": {
"type": "git",
"url": "git+https://github.com/bancorprotocol/carbon-contracts.git"
},
"homepage": "https://github.com/bancorprotocol/carbon-contracts#readme",
"bugs": {
"url": "https://github.com/bancorprotocol/carbon-contracts/issues"
},
"author": "Bancor",
"license": "SEE LICENSE IN LICENSE",
"main": "dist/typechain-types/index.js",
"types": "dist/typechain-types/index.d.ts",
"files": [
"/contracts/**/*.sol",
"!/contracts/helpers",
"/artifacts",
"/typechain-types",
"/deployments/mainnet"
],
"scripts": {
"build": "hardhat compile",
"cleanbuild": "pnpm clean && pnpm build",
"test": "forge test",
"test:hardhat": "NODE_OPTIONS='--max-old-space-size=8192' hardhat test",
"test:coverage": "forge coverage",
"test:coverage:nightly": "NIGHTLY=1 pnpm test:coverage",
"test:coverage:report": "forge coverage --report lcov && genhtml lcov.info --branch-coverage --output-dir coverage",
"test:nightly": "NIGHTLY=1 CI=1 forge test",
"test:deploy": "TEST_FORK=1 ./deployments/run-fork.sh HARDHAT_NETWORK=tenderly mocha --require hardhat/register --extension ts --recursive --exit --timeout 600000 --bail --no-exit 'deploy/tests/network/**/*.ts'",
"test:deploy:mainnet": "TEST_FORK=1 ./deployments/run-fork.sh HARDHAT_NETWORK=tenderly mocha --require hardhat/register --extension ts --recursive --exit --timeout 600000 --bail --no-exit 'deploy/tests/mainnet/**/*.ts'",
"test:health": "pnpm test:deploy:mainnet",
"export:storage": "pnpm cleanbuild && hardhat run deployments/storage-layout.ts",
"deploy:prepare": "rm -rf ./node_modules && rm pnpm-lock.yaml && pnpm install && pnpm cleanbuild",
"deploy:network": "./deployments/run-network.sh hardhat deploy",
"deploy:mainnet": "HARDHAT_NETWORK=mainnet hardhat deploy",
"verify:mainnet": "HARDHAT_NETWORK=mainnet hardhat etherscan-verify --license None --force-license",
"verify:rinkeby": "HARDHAT_NETWORK=rinkeby hardhat etherscan-verify --license None --force-license",
"setup:fork": "./deployments/run-fork.sh pnpm run:tenderly deployments/setup-fork.ts",
"setup:testnet": "./deployments/run-testnet.sh pnpm run:tenderly deployments/setup-testnet.ts",
"run:mainnet": "HARDHAT_NETWORK=mainnet hardhat run",
"run:tenderly": "HARDHAT_NETWORK=tenderly hardhat run",
"pol:enable:trading:check:mainnet": "pnpm run:mainnet scripts/enableTrading.ts",
"pol:enable:trading:check:fork": "pnpm run:fork scripts/enableTrading.ts",
"pol:enable:trading:mainnet": "ENABLE_TRADING=1 pnpm run:mainnet scripts/enableTrading.ts",
"pol:enable:trading:fork": "ENABLE_TRADING=1 pnpm run:fork scripts/enableTrading.ts",
"dev": "hardhat node --no-deploy",
"watch": "hardhat watch test",
"size": "forge build --sizes",
"flatten": "hardhat flatten",
"where": "which hardhat",
"lint": "pnpm lint:sol && pnpm lint:ts",
"lint:sol": "solhint --max-warnings 0 contracts/**/*.sol test/**/*.sol",
"lint:ts": "pnpm eslint components deploy test utils",
"format": "NODE_OPTIONS='--max-old-space-size=8192' prettier --check --write components/**/*.ts contracts/**/*.sol test/**/*.sol deploy/**/*.ts scripts/**/*.ts test/**/*.ts test/**/*.json utils/**/*.ts --config .prettierrc",
"prepare": "pnpm clean && pnpm build && tsc && copyfiles -u 1 \"typechain-types/**/*.d.ts\" dist/typechain-types",
"clean": "rm -rf artifacts cache coverage typechain-types"
},
"dependencies": {
"hardhat": "2.22.8"
},
"devDependencies": {
"@anders-t/ethers-ledger": "^1.0.4",
"@ethersproject/abi": "^5.7.0",
"@ethersproject/providers": "^5.7.2",
"@metamask/eth-sig-util": "^5.0.2",
"@nomicfoundation/hardhat-verify": "^2.0.8",
"@nomiclabs/hardhat-ethers": "npm:[email protected]",
"@nomiclabs/hardhat-solhint": "^3.0.1",
"@nomiclabs/hardhat-waffle": "2.0.4",
"@openzeppelin/contracts": "4.9.2",
"@openzeppelin/contracts-upgradeable": "4.9.2",
"@sentry/hub": "^7.56.0",
"@sentry/node": "^7.56.0",
"@sentry/types": "^7.56.0",
"@sentry/utils": "^7.56.0",
"@tenderly/hardhat-tenderly": "1.8.0",
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
"@typechain/ethers-v5": "^11.0.0",
"@typechain/hardhat": "^6.1.5",
"@types/adm-zip": "^0.5.0",
"@types/chai": "^4.3.4",
"@types/humanize-duration": "^3.27.1",
"@types/lodash": "^4.14.191",
"@types/mocha": "^10.0.1",
"@types/node": "^20.3.1",
"@typescript-eslint/eslint-plugin": "^7.7.0",
"@typescript-eslint/parser": "^7.7.0",
"adm-zip": "^0.5.10",
"chai": "^4.3.7",
"chai-arrays": "^2.2.0",
"coingecko-api-v3": "^0.0.29",
"copyfiles": "^2.4.1",
"decimal.js": "10.4.3",
"dotenv": "^16.3.1",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.6.0",
"eslint-config-standard": "^17.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-mocha": "^10.1.0",
"eslint-plugin-n": "^16.0.0",
"eslint-plugin-promise": "^6.1.1",
"ethereum-waffle": "^3.4.4",
"ethereumjs-util": "^7.1.5",
"ethers": "^5.7.2",
"glob": "^10.2.7",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-dependency-compiler": "^1.1.3",
"hardhat-deploy": "0.11.34",
"hardhat-deploy-tenderly": "^0.2.0",
"hardhat-storage-layout": "^0.1.7",
"hardhat-watcher": "^2.5.0",
"humanize-duration": "^3.28.0",
"lodash": "^4.17.21",
"lru-cache": "^11.0.1",
"mocha": "^10.2.0",
"mocha-silent-reporter": "^1.0.0",
"module-alias": "^2.2.2",
"prettier": "^2.8.4",
"prettier-package-json": "^2.8.0",
"prettier-plugin-solidity": "^1.1.3",
"solc": "0.8.19",
"solhint": "^3.3.8",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.9.1",
"typechain": "^8.1.1",
"typescript": "^5.1.3"
},
"resolutions": {
"@tenderly/hardhat-tenderly>@nomiclabs/hardhat-ethers": "npm:[email protected]",
"solhint>@solidity-parser/parser": "0.16",
"solidity-coverage>@solidity-parser/parser": "0.16"
}
}