-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(contracts-rfq): CI workflows [SLT-245] (#3178)
* fix: license, files * fix: package name * build: update solhint to latest * build: remove prettier dependencies * fix: solhint workflows * build: update solhint in other packages as well * chore: solhint rules, exceptions * fix: silence linter warnings in tests * chore: forge fmt * add variable to test linter CI * Revert "add variable to test linter CI" This reverts commit 0629309.
- Loading branch information
1 parent
0daec70
commit 74b620e
Showing
11 changed files
with
60 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
{ | ||
"extends": "solhint:recommended" | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"code-complexity": ["error"], | ||
"func-name-mixedcase": "error", | ||
"func-visibility": ["error", { "ignoreConstructors": true }], | ||
"gas-custom-errors": "off", | ||
"immutable-vars-naming": ["error", { "immutablesAsConstants": false }], | ||
"max-line-length": ["warn", 120], | ||
"modifier-name-mixedcase": "error", | ||
"ordering": "warn", | ||
"var-name-mixedcase": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
contracts/FastBridge.sol | ||
contracts/interfaces/IFastBridge.sol | ||
script/FastBridge.s.sol | ||
test/FastBridge.t.sol | ||
test/FastBridgeMock.sol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,30 @@ | ||
{ | ||
"name": "FastBridge", | ||
"license": "UNLICENSED", | ||
"name": "@synapsecns/contracts-rfq", | ||
"license": "MIT", | ||
"version": "0.4.1", | ||
"description": "FastBridge contracts.", | ||
"private": true, | ||
"files": [ | ||
"src/*.sol" | ||
"contracts/**/*.sol" | ||
], | ||
"dependencies": { | ||
"@openzeppelin/contracts": "5.0.1" | ||
}, | ||
"devDependencies": { | ||
"@synapsecns/solidity-devops": "^0.4.5", | ||
"prettier": "^2.5.1", | ||
"prettier-plugin-solidity": "^1.0.0-beta.19", | ||
"solhint": "^3.3.6" | ||
"solhint": "5.0.3" | ||
}, | ||
"scripts": { | ||
"build": " ", | ||
"build:contracts": "forge build", | ||
"build:slither": "forge build --out=out --build-info --force", | ||
"test:coverage": "echo 'Please use foundry'", | ||
"test": "forge test", | ||
"lint:contracts:fix": "forge fmt && solhint --fix -c .solhint.json '{contracts,script,test}/**/*.sol'", | ||
"lint": "forge fmt && npm run prettier && npm run solhint", | ||
"ci:lint": "yarn lint", | ||
"lint": "forge fmt && npm run solhint", | ||
"lint:check": "forge fmt --check && npm run solhint:check", | ||
"ci:lint": "npm run lint:check", | ||
"build:go": "./flatten.sh contracts/*.sol test/*.sol", | ||
"prettier": "prettier --write **.sol", | ||
"prettier:list": "prettier --list-different **.sol", | ||
"prettier:check": "prettier --check **.sol", | ||
"solhint": "solhint --config ./.solhint.json 'src/**/*.sol' --fix", | ||
"solhint:check": "solhint --config ./.solhint.json 'src/**/*.sol'", | ||
"lint:check": "npm run prettier:check && npm run solhint:check" | ||
"solhint": "solhint '{contracts,script,test}/**/*.sol' --fix --noPrompt", | ||
"solhint:check": "solhint '{contracts,script,test}/**/*.sol'" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,6 @@ | |
"vp": "js/verifyProxy.js" | ||
}, | ||
"devDependencies": { | ||
"solhint": "^4.5.4" | ||
"solhint": "5.0.3" | ||
} | ||
} |
Oops, something went wrong.