-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
86 lines (84 loc) · 5.17 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
{
"name": "pflsc",
"version": "1.0.0",
"main": "index.js",
"scripts": {
"expenv": "export $(grep -v '^#' .env | xargs)",
"source": "source .env",
"allexport": "set -o allexport; source .env; set +o allexport",
"reinstall": "rm -rf node_modules && rm -f yarn.lock && yarn clean && yarn",
"clean": "rm -rf build cache coverage coverage.json test-results.xml && forge clean",
"clean-deployed": "rm -rf abis && rm -f .openzeppelin/unknown-31337.json && rm -f .openzeppelin/mumbai.json",
"coverage": "forge coverage --report lcov && genhtml lcov.info -o report --branch-coverage && open report/index.html",
"clean-test": "rm -rf abis .openzeppelin/${npm_config_network:-'unknown-31337'}.json deployments/${npm_config_network:-hardhat}/*.json test-results.xml",
"verify": "yarn hint && yarn test",
"compile": "hardhat --show-stack-traces --max-memory 8192 compile",
"test": "yarn clean-test && hardhat test --show-stack-traces && yarn clean-test",
"test-only": "yarn clean-test && hardhat test --show-stack-traces",
"watch-test": "hardhat watch test",
"hint": "solhint \"contracts/**/*.sol\"",
"hh-coverage": "yarn clean-test && hardhat --show-stack-traces coverage --temp coverage_build && yarn clean-test",
"hardhat_gas": "REPORT_GAS=true hardhat test",
"gas": "forge test -vv --gas-report",
"ftest": "source .env && forge test -vvv --gas-report",
"ftest-ci": "forge test -vvvv",
"ftest-fork": "source .env && forge test -vvv --fork-url ${ALCHEMY_APIKEY_MUMBAI} --fork-block-number 26702726 --gas-report",
"ftrpc": "forge test -vv --ffi",
"start": "hardhat node --port 8545",
"anvil": "anvil",
"anvil-mumbai": "anvil -f $ALCHEMY_APIKEY_MUMBAI",
"anvil-polygon": "anvil -f $ALCHEMY_APIKEY_POLYGON",
"anvil-polygon-old": "source .env && anvil -f $ALCHEMY_APIKEY_POLYGON --fork-block-number 32499027",
"mappings": "forge remappings > remappings.txt",
"deploy": "yarn clean-test && hardhat deploy",
"deploy-only": "hardhat deploy --tags",
"gen-docs": "solidity-docgen -i contracts -o docs",
"gen-relay-inheritance": "slither contracts/auction-handler/FastLaneAuctionHandler.sol --print inheritance-graph",
"gen-relay-interface": "cast interface -n IFastLaneAuctionHandler -o contracts/interfaces/IFastLaneAuctionHandler.sol ./out/FastLaneAuctionHandler.sol/FastLaneAuctionHandler.json",
"gen-relay-abi": "jq '.abi' out/FastLaneAuctionHandler.sol/FastLaneAuctionHandler.json > contracts/abis/FastLaneAuctionHandlerAbi.json",
"slither": "slither . --compile-force-framework foundry --filter-paths 'test|lib'",
"snapshot": "source .env && forge snapshot -vvv --gas-report",
"gen-prepush": "yarn gen-inheritance && yarn gen-interface && yarn gen-abi",
"sizes": "forge build --sizes",
"relayTest": "forge test -vvv --match-contract PFLAuctionHandlerTest",
"snapshot-relay": "source .env && forge snapshot -vvv --match-contract PFLAuctionHandlerTest --gas-report",
"solc": "solc-select install 0.8.16 && solc-select use 0.8.16",
"layout-relay": "slither-read-storage contracts/auction-handler/FastLaneAuctionHandler.sol 0x7D8Ade77A347Ba6ee34eac0f825Fc37B0A66B268 --layout --solc-remaps 'openzeppelin-contracts/=./lib/openzeppelin-contracts/ solmate/=./lib/solmate/src/' --rpc-url http://localhost:8545 2> .storage-relay-layout",
"deploy-anvil-factory": "source .env && forge script script/PreProxyDeploy.s.sol:Deploy --fork-url http://localhost:8545 --private-key $TESTNET_KEY --broadcast",
"deploy-anvil-eoa": "source .env && forge script script/EOADeploy.s.sol:Deploy --fork-url http://localhost:8545 --private-key $TESTNET_KEY --broadcast",
"deploy-anvil-proxy": "source .env && forge script script/UUPSDeploy.s.sol:Deploy --fork-url http://localhost:8545 --private-key $TESTNET_KEY --broadcast",
"deploy-live-beta-proxy": "source .env && forge script script/UUPSDeploy.s.sol:Deploy --rpc-url $ALCHEMY_APIKEY_POLYGON --private-key $TESTNET_KEY --broadcast --etherscan-api-key $POLYGONSCAN_APIKEY --verify --gas-price 50000000000 --with-gas-price 50000000000",
"deploy-live-trial-eoa": "source .env && forge script script/EOADeploy.s.sol:Deploy --rpc-url $ALCHEMY_APIKEY_POLYGON --private-key $TESTNET_KEY --broadcast --etherscan-api-key $POLYGONSCAN_APIKEY --verify --gas-price 50000000000 --with-gas-price 50000000000"
},
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.6",
"@nomiclabs/hardhat-etherscan": "^3.0.4",
"chai": "^4.3.6",
"chalk": "^5.0.1",
"debug": "^4.3.4",
"dotenv": "^16.0.1",
"eslint": "^8.17.0",
"eslint-plugin-jest": "^26.4.6",
"ethers": "^5.6.8",
"ganache-cli": "^6.12.2",
"hardhat": "^2.9.7",
"hardhat-abi-exporter": "^2.9.0",
"hardhat-gas-reporter": "^1.0.8",
"hardhat-preprocessor": "^0.1.4",
"husky": "^8.0.1",
"lodash": "^4.17.21",
"solc": "^0.8.16",
"solhint": "^3.3.7",
"solhint-plugin-prettier": "^0.0.5",
"solidity-coverage": "^0.7.21",
"solidity-docgen": "^0.6.0-beta.25",
"typechain": "^8.1.0",
"typescript": "^4.7.3"
},
"dependencies": {
"dateformat": "^5.0.3",
"hardhat-watcher": "^2.3.0",
"moment": "^2.29.3",
"sleep-promise": "^9.1.0"
}
}