-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage.json
More file actions
105 lines (105 loc) · 4.76 KB
/
Copy pathpackage.json
File metadata and controls
105 lines (105 loc) · 4.76 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
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
{
"name": "@rgbk/v3-contracts",
"version": "2.4.2",
"description": "Ethereum asset management",
"homepage": "https://github.com/rigoblock/v3-contracts/",
"license": "Apache-2.0",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"files": [
"contracts",
"dist",
"src",
"test",
"build",
"out"
],
"scripts": {
"build": "forge compile",
"build:hardhat": "hardhat compile",
"build:foundry:ir": "forge compile --via-ir",
"build:ts": "yarn rimraf dist && tsc",
"test": "hardhat test --deploy-fixture",
"test:foundry": "forge test --no-match-path 'test/{extensions/{Polygon,A0xRouterUnichain}Fork,debug/*}.t.sol' --no-match-contract 'DelegationLibFuzz|ECrosschainFuzzTest'",
"test:foundry:gas": "forge test --no-match-path 'test/{extensions/{Polygon,A0xRouterUnichain}Fork,debug/*}.t.sol' --no-match-contract 'DelegationLibFuzz|ECrosschainFuzzTest' --gas-report 2>&1 | awk '/^╭/{found=1} found' | tee coverage/gas-report.txt",
"test:polygon": "forge test --match-path test/extensions/PolygonFork.t.sol --fork-url polygon",
"test:unichain": "forge test --match-path test/extensions/A0xRouterUnichainFork.t.sol --fork-url unichain",
"test:bsc": "forge test --match-path test/debug/BscPoolUpgradeDebug.t.sol -vvv",
"test:fuzz": "forge test --match-contract 'DelegationLibFuzz|ECrosschainFuzzTest' -vvv",
"coverage": "yarn coverage:all",
"coverage:setup": "mkdir -p coverage",
"coverage:hardhat": "hardhat coverage && mv -f coverage.json coverage/coverage.json 2>/dev/null || true",
"coverage:foundry": "forge build && chmod +x ./scripts/foundry-coverage.sh && ./scripts/foundry-coverage.sh",
"coverage:foundry:no-forks": "rm -f lcov.info && forge build && forge coverage --no-match-coverage \"mocks/|examples/|test/|tokens/|utils/\" --no-match-contract 'A0xRouterForkTest|ENavViewForkTest|AIntentsRealForkTest|EscrowWorkingTest|VSOnlyModelTest|AIntentsPerformanceAttributionAnalysisTest|PolygonForkTest|A0xRouterUnichainForkTest|PoolDonateTest|AGmxV2ForkTest|AUniswapForkTest|BscPoolUpgradeDebugTest' --report lcov && mv lcov.info coverage/foundry_lcov.info",
"coverage:all": "yarn coverage:setup && yarn coverage:hardhat && yarn coverage:foundry && chmod +x ./scripts/analyze-coverage.sh && ./scripts/analyze-coverage.sh",
"coverage:clean": "rm -rf ~/.foundry/cache/rpc && yarn coverage:all && echo '✅ Coverage from clear RPC cache completed.'",
"security": "chmod +x ./scripts/security-analysis.sh && ./scripts/security-analysis.sh",
"security:high": "chmod +x ./scripts/security-analysis.sh && ./scripts/security-analysis.sh contracts/protocol/ high",
"benchmark": "yarn test benchmark/*.ts",
"deploy-custom": "rm -rf deployments/custom && yarn deploy-all custom",
"deploy-all": "hardhat deploy-contracts --network",
"deploy": "hardhat deploy --network",
"lint": "yarn lint:sol && yarn lint:ts",
"lint:sol": "solhint 'contracts/**/*.sol'",
"lint:ts": "eslint --max-warnings 0 .",
"fmt:sol": "prettier 'contracts/**/*.sol' -w",
"fmt:sol:protocol": "prettier 'contracts/protocol/**/*.sol' -w",
"prepack": "yarn build",
"prepare": "chmod +x ./.husky/pre-commit && husky install",
"prepublish": "yarn rimraf build && yarn build:ts"
},
"repository": {
"type": "git",
"url": "https://github.com/RigoBlock/v3-contracts"
},
"keywords": [
"Ethereum",
"Wallet",
"Rigoblock"
],
"author": "gab@rigoblock.com",
"bugs": {
"url": "https://github.com/rigoblock/v3-contracts/issues"
},
"devDependencies": {
"@gnosis.pm/mock-contract": "^4.0.0",
"@nomicfoundation/hardhat-foundry": "^1.1.3",
"@nomicfoundation/hardhat-verify": "^2.0.13",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-waffle": "^2.0.0",
"@safe-global/safe-singleton-factory": "^2.0.0",
"@types/chai": "^4.2.14",
"@types/mocha": "^10.0.1",
"@types/node": "^25.0.0",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"argv": "^0.0.3",
"chai": "^4.2.0",
"debug": "^4.2.0",
"dotenv": "^17.0.0",
"eslint": "^7.13.0",
"eslint-config-prettier": "^10.0.1",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-no-only-tests": "^3.0.0",
"eslint-plugin-prettier": "^4.2.1",
"ethereum-waffle": "^4.0.10",
"ethers": "^5.1.4",
"hardhat": "^2.13.1",
"hardhat-deploy": "1.0.4",
"husky": "^9.0.10",
"prettier": "^3.8.1",
"prettier-plugin-solidity": "^1.4.2",
"solc": "0.8.35",
"solhint": "^5.0.5",
"solhint-plugin-prettier": "^0.1.0",
"solidity-coverage": "^0.8.2",
"ts-node": "^10.8.1",
"typescript": "^6.0.3",
"yargs": "^18.0.0"
},
"peerDependencies": {
"ethers": "^5.1.4"
},
"dependencies": {}
}