-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
51 lines (51 loc) · 2.5 KB
/
package.json
File metadata and controls
51 lines (51 loc) · 2.5 KB
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
{
"license": "MIT",
"scripts": {
"uv": "uv sync; echo \"to enable vyper builds, run:\n source ./.venv/bin/activate\"",
"foundryup": "curl -L https://foundry.paradigm.xyz | bash && foundryup",
"CI": "./lib/bao-base/run CI",
"clean": "./lib/bao-base/run clean",
"git-diffs": "./lib/bao-base/run git-diffs",
"prettier": "prettier --log-level warn '{src,test,script}/**/*.sol'",
"prettier:bash": "./run fmt-bash bin test",
"fmt": "yarn prettier --write",
"fmt:check": "yarn prettier --check",
"fmt:bash": "yarn prettier:bash --write",
"test": "mkdir -p results; ./lib/bao-base/run test",
"gas": "./lib/bao-base/run regression-of gas",
"coverage": "./lib/bao-base/run regression-of coverage",
"wake": "wake detect all",
"slither": "./lib/bao-base/run slither --filter-paths 'PostRebalanceRemediationForStabilityPool_v2'",
"verify-audit": "lib/bao-base/run verify-audit",
"validate": "./lib/bao-base/run validate",
"script": "forge script --force --ffi",
"disabled": "echo 'disabled tests:' && grep -n -e '^\\s*function\\s*test.*(.*).*private' test/**/*.t.sol",
"doc": "forge doc",
"svg": "cd results && find . -name \"*.gp\" -exec gnuplot -e \"set output '{}.svg'\" {} \\;",
"png": "cd results && find . -name \"*.svg\" -exec convert {} {}.png \\;",
"deploy": "./script/deploy",
"deploy:local": "./script/deploy --local",
"contracts": "awk '/gas_reports *=/ {flag=1; next} /]/ {flag=0} flag {gsub(/\"|,/, \"\"); print $1}' foundry.toml",
"contracts:regexp": "yarn contracts | paste -sd '|'",
"sizes:raw:contracts": "yarn sizes:raw | grep -E \"^\\| Contract |^\\|---|$(yarn contracts:regexp)\"",
"sizes:raw": "forge clean; forge build --sizes",
"sizes": "./lib/bao-base/run regression-of sizes",
"lint": "solhint 'src/**/*.sol' --config ./lib/bao-base/.solhint.json --disc",
"lint:test": "solhint 'test/**/*.sol' --config ./lib/bao-base/.solhint-test.json --disc",
"lint:bash": "./lib/bao-base/run lint-bash --lint script",
"regression": "yarn sizes; yarn gas; yarn coverage",
"wtf": "grep -rn NaN results/*.csv | awk -F: '!a[$1]++'",
"mermaid": "mmdc"
},
"prettier": "./lib/bao-base/prettier.config.js",
"dependencies": {
"@mermaid-js/mermaid-cli": "^11.4.2",
"@openzeppelin/upgrades-core": "^1.42.2",
"@solidity-parser/parser": "^0.20.1",
"prettier": "^3.6.2",
"prettier-plugin-solidity": "^2.1.0",
"puppeteer": "^24.10.0",
"solhint": "^5.0.5"
},
"packageManager": "yarn@4.5.0"
}