-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
84 lines (84 loc) · 4.38 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
{
"name": "amm-core",
"version": "1.0.0",
"description": "Core AMM contracts for Reservoir Finance",
"eslintConfig": {
"parserOptions": {
"project": [
"./scripts/tsconfig.json"
],
"sourceType": "module"
},
"extends": [
"@proxima-oss/eslint-config/style/standard"
],
"overrides": [
{
"files": [
"*"
],
"rules": {
"brace-style": [
"off"
]
}
}
]
},
"scripts": {
"build": "forge build",
"build:balancer": "cd reference/balancer-v2-monorepo/pkg/solidity-utils && yarn build",
"ci": "forge build --force && npm run lint:check && npm run test:unit && npm run gas:check && npm run slither:check",
"clean": "forge clean",
"coverage": "export FOUNDRY_PROFILE=coverage && script/coverage_patch_deployer.sh && forge coverage --report lcov",
"deploy:avax:test": "forge script script/DeployScript.s.sol --target-contract DeployScript --fork-url \"http://127.0.0.1:8545\" --broadcast -vvvv --verify --ledger --mnemonic-derivation-paths \"m/44'/60'/0'/0/1\" --sender 0x2508b97B8041960ccA8AaBC7662F07EC8e285F6d",
"deploy:avax": "forge script script/DeployScript.s.sol --target-contract DeployScript --fork-url https://api.avax.network/ext/bc/C/rpc --broadcast -vvvv --verify --ledger --mnemonic-derivation-paths \"m/44'/60'/0'/0/1\" --sender 0x2508b97B8041960ccA8AaBC7662F07EC8e285F6d",
"eslint": "npm run eslint:check",
"eslint:check": "eslint scripts",
"eslint:fix": "eslint scripts --fix",
"gas:snapshot": "forge snapshot",
"gas:check": "forge snapshot --check",
"generate": "typechain --target ethers-v5 --out-dir typings 'out/**/*.json'",
"install": "npm run install:uniswap && npm run install:balancer",
"install:uniswap": "cd reference/uniswap-v2-core && npm ci",
"install:balancer": "cd reference/balancer-v2-monorepo && yarn",
"lint": "npm run lint:check",
"lint:check": "npm run solhint:check && npm run prettier:check && npm run mdlint:check",
"lint:fix": "npm run solhint:fix && npm run prettier:fix && npm run eslint:fix && npm run mdlint:fix",
"mdlint": "npm run mdlint:check",
"mdlint:check": "markdownlint --config .markdownlint.yaml .",
"mdlint:fix": "markdownlint --config .markdownlint.yaml . --fix",
"myth": "npm run myth:check",
"myth:check": "myth analyze src/**/*.sol --solc-json .mythril.json --execution-timeout 30",
"myth:deep-check": "myth analyze src/**/*.sol --solc-json .mythril.json --execution-timeout 3600 --parallel-solving",
"prettier": "npm run prettier:check",
"prettier:check": "prettier --check '**/*.json'",
"prettier:fix": "prettier --write '**/*.json'",
"prettier:list": "prettier --list-different '**/*.json'",
"reinstall": "rm -rf node_modules package-lock.json && npm install",
"slither": "npm run slither:check",
"slither:check": "slither .",
"slither:triage": "slither . --triage-mode",
"slither:report": "slither . --checklist --markdown-root https://github.com/proximacapital/vault/blob/$(git rev-parse --verify HEAD)/ > slither-report.md",
"solhint": "npm run solhint:check",
"solhint:check": "solhint --config src/.solhint.json 'src/**/*.sol' && solhint --config test/.solhint.json 'test/**/*.sol'",
"solhint:fix": "solhint --config src/.solhint.json 'src/**/*.sol' --fix && solhint --config test/.solhint.json 'test/**/*.sol' --fix",
"submodule:check": "cd lib && find . -mindepth 1 -maxdepth 1 -type d -exec bash -c 'cd \"{}\" && pwd && ../../scripts/git-master-diff.sh && echo' \\;",
"submodule:reset": "git submodule update --recursive",
"test": "npm run test:unit",
"test:all": "script/coverage_patch_deployer.sh && npm run test:unit && npm run test:integration",
"test:balancer": "export FOUNDRY_PROFILE=differential && script/coverage_patch_deployer.sh && forge test",
"test:differential": "export FOUNDRY_PROFILE=differential && forge test",
"test:e2e": "./test/e2e/deployment.sh",
"test:integration": "export FOUNDRY_PROFILE=integration && script/coverage_patch_deployer.sh && forge test ",
"test:uniswap": "cd reference/uniswap-v2-core && npm run test",
"test:unit": "script/coverage_patch_deployer.sh && forge test"
},
"devDependencies": {
"@proxima-oss/eslint-config": "6.0.1",
"markdownlint-cli": "0.31.1",
"prettier": "2.6.2",
"ts-node": "10.8.1",
"solhint": "3.3.8"
}
}