-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(contract): apply linter for deploy scripts and contracts
- [x] Update hardhat, ethers and add @nomicfoundation/hardhat-toolbox - [x] Linter fixes for deploy scripts - [x] Prettier fixes for solidity contracts - [x] Optimize e2e workflow - [x] Fixes for cli and integrations tests due to contracts dependency update - [x] Type fixes
- Loading branch information
Showing
111 changed files
with
17,387 additions
and
7,076 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
node_modules | ||
dist | ||
coverage | ||
build | ||
build | ||
typechain-types | ||
.eslintrc.js |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"**/*.ts": ["prettier --ignore-unknown --write", "eslint --fix"], | ||
"**/*.{sol, yaml, yml, md}": ["prettier --ignore-unknown --write"] | ||
"**/*.{ts,js}": ["prettier --ignore-unknown --write", "eslint --fix"], | ||
"**/*.{sol, yaml, yml, md, json}": ["prettier --ignore-unknown --write"] | ||
} |
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 |
---|---|---|
|
@@ -8,3 +8,4 @@ package-lock.json | |
**/package-lock.json | ||
CHANGELOG.md | ||
.eslintignore | ||
circuits/ts/verifier_groth16.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"avoid-suicide": "error", | ||
"avoid-sha3": "warn", | ||
"max-line-length": ["warn", 120], | ||
"quotes": ["error", "single"], | ||
"func-visibility": ["error", { "ignoreConstructors": true }], | ||
"state-visibility": "error" | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,25 @@ | ||
import type { HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
|
||
import path from "path"; | ||
|
||
import { DEFAULT_ETH_SK, DEFAULT_ETH_PROVIDER } from "./ts/utils/defaults"; | ||
|
||
const parentDir = __dirname.includes("build") ? ".." : ""; | ||
|
||
const config: HardhatUserConfig = { | ||
defaultNetwork: "localhost", | ||
networks: { | ||
localhost: { | ||
url: process.env.ETH_PROVIDER || DEFAULT_ETH_PROVIDER, | ||
accounts: [process.env.ETH_SK || DEFAULT_ETH_SK], | ||
loggingEnabled: false, | ||
}, | ||
}, | ||
paths: { | ||
sources: path.resolve(__dirname, parentDir, "../contracts/contracts"), | ||
artifacts: path.resolve(__dirname, parentDir, "../contracts/artifacts"), | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.